-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into yoann/inject-browse…
…r-sdk
- Loading branch information
Showing
57 changed files
with
696 additions
and
406 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file added
BIN
+9.84 KB
.yarn/cache/@open-draft-deferred-promise-npm-2.2.0-adf396dc9f-bc3bb1668a.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import type { Env } from '@dd/core/types'; | ||
|
||
declare global { | ||
namespace NodeJS { | ||
interface ProcessEnv { | ||
[key: string]: string | undefined; | ||
BUILD_PLUGINS_ENV?: Env; | ||
NO_CLEANUP?: '1'; | ||
NEED_BUILD?: '1'; | ||
REQUESTED_BUNDLERS?: string; | ||
JEST_SILENT?: '1'; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Analytics Plugin <!-- #omit in toc --> | ||
|
||
Send some analytics data to Datadog internally. | ||
|
||
It gives you acces to the `context.sendLog()` function. | ||
|
||
```typescript | ||
// Send a basic log. | ||
context.sendLog('My basic log'); | ||
|
||
// Send some context with the log. | ||
context.sendLog('My contextual log', { some: 'context' }); | ||
``` | ||
|
||
Every log already has some context to it: | ||
|
||
```typescript | ||
{ | ||
ddsource: string; // Name of the bundler plugin (e.g. `@datadog/webpack-plugin`). | ||
env: Env; // Environment (e.g. `production`). | ||
message; // The log message. | ||
service: 'build-plugins'; | ||
bundler: { | ||
name: string; // Name of the bundler (e.g. `webpack`). | ||
version: string; // Version of the bundler. | ||
}; | ||
plugins: PluginName[]; // List of the plugins/features enabled. | ||
version: string; // Version of the plugin. | ||
} | ||
``` |
Oops, something went wrong.