Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

RUM Plugin

Interact with our Real User Monitoring product (RUM) in Datadog directly from your build system.

Table of content

Configuration

rum?: {
    disabled?: boolean;
    sourcemaps?: {
        bailOnError?: boolean;
        dryRun?: boolean;
        intakeUrl?: string;
        maxConcurrency?: number;
        minifiedPathPrefix: string;
        releaseVersion: string;
        service: string;
    };
}

Sourcemaps Upload

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).

rum.sourcemaps.bailOnError

default: false

Should the upload of sourcemaps fail the build on first error?

rum.sourcemaps.dryRun

default: false

It will not upload the sourcemaps to Datadog, but will do everything else.

rum.sourcemaps.intakeUrl

default: https://sourcemap-intake.datadoghq.com/api/v2/srcmap

Against which endpoint do you want to upload the sourcemaps.

rum.sourcemaps.maxConcurrency

default: 20

Number of concurrent upload to the API.

rum.sourcemaps.minifiedPathPrefix

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.

rum.sourcemaps.releaseVersion

required

Is similar and will be used to match the version tag set on the RUM SDK.

rum.sourcemaps.service

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.