Interact with our Real User Monitoring product (RUM) in Datadog directly from your build system.
rum?: {
disabled?: boolean;
sourcemaps?: {
bailOnError?: boolean;
dryRun?: boolean;
intakeUrl?: string;
maxConcurrency?: number;
minifiedPathPrefix: string;
releaseVersion: string;
service: string;
};
}
Upload JavaScript sourcemaps to Datadog to un-minify your errors.
Note
You can override the intake URL by setting the DATADOG_SOURCEMAP_INTAKE_URL
environment variable (eg. https://sourcemap-intake.datadoghq.com/v1/input
).
Or only the domain with the DATADOG_SITE
environment variable (eg. datadoghq.com
).
default:
false
Should the upload of sourcemaps fail the build on first error?
default:
false
It will not upload the sourcemaps to Datadog, but will do everything else.
default:
https://sourcemap-intake.datadoghq.com/api/v2/srcmap
Against which endpoint do you want to upload the sourcemaps.
default:
20
Number of concurrent upload to the API.
required
Should be a prefix common to all your JS source files, depending on the URL they are served from.
The prefix can be a full URL or an absolute path.
Example: if you're uploading dist/file.js
to https://example.com/static/file.js
, you can use minifiedPathPrefix: 'https://example.com/static/'
or minifiedPathPrefix: '/static/'
.minifiedPathPrefix: '/'
is a valid input when you upload JS at the root directory of the server.
required
Is similar and will be used to match the version
tag set on the RUM SDK.
required
Should be set as the name of the service you're uploading sourcemaps for, and Datadog will use this service name to find the corresponding sourcemaps based on the service
tag set on the RUM SDK.