Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codesee/trace-datadog-rum

Package Overview
Dependencies
Maintainers
7
Versions
656
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codesee/trace-datadog-rum

CodeSee datadog client side trace library

  • 0.728.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-63.64%
Maintainers
7
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 01 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc