nx
The Monorepo Platform that amplifies both developers and AI agents. Nx optimizes your builds, scales your CI, and fixes failed PRs automatically. Ship in half the time.
- 29k
- TypeScript
- MIT
- 2 d ago
A set of universal bundler plugins to interact with Datadog directly from your builds.
Repo DataDog/build-plugins, read from GitHub 22 h ago. DataDog has not joined Take My Repo.
DataDog/build-plugins is a public repo on GitHub by DataDog. A set of universal bundler plugins to interact with Datadog directly from your builds. It declares the MIT license on GitHub. It is written mainly in TypeScript, has 111 stars and last changed on 2026-11-21. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-22.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
A set of bundler plugins for:
@datadog/esbuild-plugin@datadog/rollup-plugin@datadog/rspack-plugin@datadog/vite-plugin@datadog/webpack-pluginTo interact with Datadog directly from your builds.
[!NOTE] Migrations:
yarn add -D @datadog/{{bundler}}-plugin
npm install --save-dev @datadog/{{bundler}}-plugin
In your bundler's configuration file:
const { datadog{{Bundler}}Plugin } = require('@datadog/{{bundler}}-plugin');
export const config = {
plugins: [
datadog{{Bundler}}Plugin({
// Configuration
}),
],
};
[!TIP] It is best to have the plugin in the first position in order to report every other plugins.
Follow the specific documentation for each bundler:
@datadog/esbuild-plugin@datadog/rollup-plugin@datadog/rspack-plugin@datadog/vite-plugin@datadog/webpack-plugin{
auth?: {
apiKey?: string;
appKey?: string;
site?: Site;
};
customPlugins?: (arg: GetPluginsArg) => UnpluginPlugin[];
enableGit?: boolean;
gitRepositoryUrl?: string;
logLevel?: 'debug' | 'info' | 'warn' | 'error' | 'none',
metadata?: {
name?: string;
version?: string;
};
sourcemaps?:
| {
debugId: true;
upload?: false;
}
| {
bailOnError?: boolean;
debugId: true;
dryRun?: boolean;
experimentalDuplicateCheck?: boolean;
maxConcurrency?: number;
upload: true;
};
errorTracking?: {
enable?: boolean;
sourcemaps?:
| {
bailOnError?: boolean;
debugId: true;
dryRun?: boolean;
experimentalDuplicateCheck?: boolean;
maxConcurrency?: number;
}
| {
bailOnError?: boolean;
debugId?: false;
dryRun?: boolean;
maxConcurrency?: number;
minifiedPathPrefix: string;
releaseVersion?: string;
service: string;
};
};
metrics?: {
enable?: boolean;
enableDefaultPrefix?: boolean;
enableTracing?: boolean;
prefix?: string;
tags?: string[];
timestamp?: number;
filters?: ((metric: Metric) => Metric | null)[];
};
output?: {
enable?: boolean;
path?: string;
files?: {
build?: boolean | string;
bundler?: boolean | string;
dependencies?: boolean | string;
errors?: boolean | string;
logs?: boolean | string;
metrics?: boolean | string;
timings?: boolean | string;
warnings?: boolean | string;
};
};
rum?: {
enable?: boolean;
sdk?: {
applicationId: string;
clientToken?: string;
// [...] See https://docs.datadoghq.com/real_user_monitoring/browser/setup/client?tab=rum#configuration for all options.
};
sourceCodeContext?:
| {
debugId: true;
service?: string;
version?: string;
}
| {
debugId?: false;
service: string;
version?: string;
};
};
}
auth.apiKeydefault
null
In order to interact with Datadog, you have to use your own API Key.
auth.appKeydefault
null
In order to interact with Datadog, you have to use your own Application Key.
auth.sitedefault
'datadoghq.com'
The Datadog site to use APIs from, and which Datadog site telemetry metrics and error tracking sourcemaps are sent to. Must be one of the documented Datadog sites:
'datadoghq.com''us3.datadoghq.com''us5.datadoghq.com''datadoghq.eu''ddog-gov.com''us2.ddog-gov.com''ap1.datadoghq.com''ap2.datadoghq.com''uk1.datadoghq.com'You can also prefix any of the sites above with a single-label custom subdomain of letters, digits and inner hyphens (e.g. 'myorg.us5.datadoghq.com'), if your organization uses a custom Datadog URL. All API calls (metrics, error tracking sourcemaps) still go to the base site.
The value is parsed the way the Datadog apps CLI parses it: surrounding whitespace, a URL scheme and any path are stripped ('https://myorg.datadoghq.com/' works), an app or api subdomain resolves to the base site, and ports are not accepted. An unsupported value (including a whitespace-only one, from configuration or the DATADOG_SITE / DD_SITE environment variable) will throw at plugin initialization. An empty value is treated as unset, as it is for every other DATADOG_* / DD_* override variable, such as DATADOG_API_KEY; so is a null auth.site from a plain JavaScript config.
[!NOTE] The
DATADOG_SITEenvironment variable takes priority over this configuration. The order of precedence is:
DATADOG_SITEenvironment variable, orDD_SITEwhenDATADOG_SITEis unset or empty (highest priority)auth.siteconfiguration'datadoghq.com'(default)
customPluginsdefault:
[]
This is a way for you to inject any Unplugin Plugin you want.
It's particularly useful to use our global, shared context of the main plugin.
And to prototype some new plugins in the same environment.
{
customPlugins: ({ options, context }) => {
const name = 'my-custom-plugin';
const log = context.getLogger(name);
return [{
name,
buildStart() {
log.info('Hello world');
},
}]
};
}
Your function will receive three arguments:
options: The options you passed to the main plugin (including your custom plugins).context: The global context shared accross our plugin.bundler: The currently running bundler's instance.The context is a shared object that is mutated during the build process.
Your function has to return an array of Unplugin Plugins definitions.
You can also use our own custom hooks.
type GlobalContext = {
// Trigger an asynchronous custom hook.
asyncHook: async (name: string, ...args: any[]) => Promise;
// Mirror of the user's config.
auth?: {
apiKey?: string;
appKey?: string;
};
// Available in the `buildReport` hook.
build: BuildReport;
// Available in the `bundlerReport` hook.
bundler: BundlerReport;
buildRoot: string;
env: string;
getLogger: (name: string) => Logger;
// Available in the `git` hook.
git?: Git;
// Trigger a synchronous custom hook.
hook: (name: string, ...args: any[]) => void;
inject: Injection;
// The list of all the plugin names that are currently running in the ecosystem.
pluginNames: string[];
// The list of all the plugin instances that are currently running in the ecosystem.
plugins: Plugin[];
// Send a log to Datadog.
sendLog: ({ message: string, context?: Record }) => Promise;
// The start time of the build.
start: number;
// The version of the plugin.
version: string;
}
enableGitdefault:
true
Enable the Git plugin to use git information in your build.
Set to false if you don't want to use it, for instance if you see a Error: No git remotes available error.
gitRepositoryUrldefault: detected from the Git remote
Override the repository URL included in Git metadata and sourcemap uploads. Set this to the repository URL recognized by Source Code Integration when CI clones through a mirror or proxy.
{
gitRepositoryUrl: 'https://github.com/my-org/my-repository',
}
This option takes precedence over the detected Git remote and also works when the checkout has no remote. The checkout must still contain Git history: the commit SHA, branch, and tracked files are read from it as usual. The checkout's remote configuration is not changed.
Leading and trailing whitespace is removed, and an empty value falls back to remote discovery. URL credentials, query parameters, and fragments are stripped using the same filtering as detected remote URLs. This option does not enable Git metadata collection when enableGit is false or sourcemap uploads are disabled.
logLeveldefault:
'warn'
Which level of log do you want to show.
metadata.namedefault:
null
The name of the build.
This is used to identify the build in logs, metrics and spans.
metadata.versiondefault:
null
An immutable identifier for the deployed build (typically a release tag, a git commit SHA, or a CI build ID).
This is the canonical place to declare the version once. Plugins that need a build version (for sourcemap upload, source-code resolution, runtime SDK initialization, etc.) read it from here unless they're given a more specific override.
sourcemapsdefault:
null
Inject a debug ID into each JavaScript bundle and, optionally, upload the corresponding source maps during the build.
{
auth: {
apiKey: process.env.DATADOG_API_KEY,
site: 'datadoghq.com',
},
sourcemaps: {
debugId: true,
upload: true,
},
}
Setting debugId: true enables injection. Set upload: true to upload the source maps directly from the build plugin. Uploading requires auth.apiKey or the DATADOG_API_KEY environment variable.
The bailOnError, dryRun, experimentalDuplicateCheck, and maxConcurrency upload options are available when upload is true.
Existing rum.sourceCodeContext and errorTracking.sourcemaps configurations remain supported. The top-level sourcemaps option can be combined with rum.sourceCodeContext.service and rum.sourceCodeContext.version; this metadata is independent of debug ID matching. Do not combine the top-level option with errorTracking.sourcemaps or with rum.sourceCodeContext.debugId: false.
Interact with Error Tracking directly from your build system.
datadogWebpackPlugin({
errorTracking?: {
enable?: boolean,
sourcemaps?:
| {
bailOnError?: boolean,
debugId: true,
dryRun?: boolean,
experimentalDuplicateCheck?: boolean,
maxConcurrency?: number,
}
| {
bailOnError?: boolean,
debugId?: false,
dryRun?: boolean,
maxConcurrency?: number,
minifiedPathPrefix: string,
releaseVersion?: string,
service: string,
},
}
});
Display and send metrics to Datadog.
datadogWebpackPlugin({
metrics?: {
enable?: boolean,
enableDefaultPrefix?: boolean,
enableTracing?: boolean,
prefix?: string,
tags?: string[],
timestamp?: number,
filters?: ((metric: Metric) => Metric | null)[],
}
});
Export build reports, metrics, and bundler data to JSON files for analysis and monitoring.
datadogWebpackPlugin({
output?: {
enable?: boolean,
path?: string,
files?: {
build?: boolean | string,
bundler?: boolean | string,
dependencies?: boolean | string,
errors?: boolean | string,
logs?: boolean | string,
metrics?: boolean | string,
timings?: boolean | string,
warnings?: boolean | string,
},
}
});
[!NOTE] This feature is in beta and may misbehave in edgiest cases.
Interact with Real User Monitoring (RUM) directly from your build system.
datadogWebpackPlugin({
rum?: {
enable?: boolean,
sdk?: {
applicationId: string,
clientToken?: string,
// [...] See https://docs.datadoghq.com/real_user_monitoring/browser/setup/client?tab=rum#configuration for all options.
},
sourceCodeContext?:
| {
debugId: true,
service?: string,
version?: string,
}
| {
debugId?: false,
service: string,
version?: string,
},
}
});
Check out CONTRIBUTING.md for more information about how to work with the build-plugins ecosystem.
DataDog/build-plugins is a public repo on GitHub by DataDog. A set of universal bundler plugins to interact with Datadog directly from your builds.
It declares the MIT license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-11-21. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
The Monorepo Platform that amplifies both developers and AI agents. Nx optimizes your builds, scales your CI, and fixes failed PRs automatically. Ship in half the time.
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.
a fast, scalable, multi-language and extensible build system
The Prometheus monitoring system and time series database.

:snake: :mag: GuardDog is a CLI tool to Identify malicious PyPI and npm packages
Give your AI agent a Pup — a CLI companion with 200+ commands across 33+ Datadog products.
Datadog Go Library including APM tracing, profiling, and security monitoring.