Intro
This package integrates CodeSee Service Maps with a client using Datadog's Browser RUM tracing. It requires @datadog/browser-rum
to function (version ≥ 2.1.0).
Installation
Install datadog/browser-rum if it is not installed.
npm install @datadog/browser-rum
Install this package
npm install @codesee/trace-datadog-rum
Configuration
Replace your existing call to datadogRum
with the correct init function based on your datadogRum
version: codeseeDatadogRum()
or codeseeDatadogRumCompat()
.
Note: your existing datadog configuration stays the same, but is now the third argument.
@datadog/browser-rum ≥ 3.0:
import { datadogRum } from "@datadog/browser-rum";
+ import { codeseeDatadogRum } from "@codesee/trace-datadog-rum";
- datadogRum.init({
+ codeseeDatadogRum("<CodeSee Ingestion Client Key>", datadogRum, {
applicationId: "<Your Datadog ApplicationId>",
clientToken: "<Your Datadog clientToken>"
// ...more datadogRum configuration
});
2.1.0 ≤ @datadog/browser-rum < 3.0:
import { datadogRum } from "@datadog/browser-rum";
+ import { codeseeDatadogRumCompat } from "@codesee/trace-datadog-rum";
- datadogRum.init({
+ codeseeDatadogRumCompat("<CodeSee Ingestion Client Key>", datadogRum, {
applicationId: "<Your Datadog ApplicationId>",
clientToken: "<Your Datadog clientToken>",
// ...more datadogRum configuration
});
For further guidance on configuring Datadog Browser RUM, please see their documentation.