Skip to content

Latest commit

 

History

History

error-tracking

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Error Tracking Plugin

Interact with Error Tracking directly from your build system.

Table of content

Configuration

errorTracking?: {
    disabled?: boolean;
    sourcemaps?: {
        bailOnError?: boolean;
        disableGit?: 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).

errorTracking.sourcemaps.bailOnError

default: false

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

errorTracking.sourcemaps.disableGit

default: false

Disable the Git plugin if you don't want to use it.
For instance if you see a Error: No git remotes available error.

errorTracking.sourcemaps.dryRun

default: false

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

errorTracking.sourcemaps.intakeUrl

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

Against which endpoint do you want to upload the sourcemaps.

errorTracking.sourcemaps.maxConcurrency

default: 20

Number of concurrent upload to the API.

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

errorTracking.sourcemaps.releaseVersion

required

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

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