Socket
Book a DemoInstallSign in
Socket

@twilio-labs/docusaurus-plugin-datadog-rum

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twilio-labs/docusaurus-plugin-datadog-rum

Datadog RUM plugin for Docusaurus.

latest
Source
npmnpm
Version
0.1.0-pre1
Version published
Maintainers
2
Created
Source

docusaurus-plugin-datadog-rum

Integrates Datadog RUM with your Docusaurus site.

Installation

npm install --save @twilio-labs/docusaurus-plugin-datadog-rum

Or, if you prefer Yarn:

yarn add @twilio-labs/docusaurus-plugin-datadog-rum

Configuration

Accepted fields:

NameTypeDefaultDescription
clientTokenstringRequiredThe client token for your Datadog RUM application
applicationIdstringRequiredThe application ID for your Datadog RUM application
servicestring"docusaurus"The name your service will show within the Datadog UI
envstringprocess.env.NODE_ENVThe environment of your deployed application

To create your application:

  • Login to Datadog
  • Choose UX Monitoring > RUM Applications
  • Click New Application
  • Choose JS (JavaScript) for the Application type
  • Enter an Application name
  • Click Create New RUM Application
  • Under Instrument your application, choose the NPM type and find your clientToken and applicationId in the code sample that you can copy into your docusaurus.config.js.

Screenshot

If you already have an existing application created, instead of steps 3-6, click the Edit Application button next to your application and continue at step 7.

Example configuration

docusaurus.config.js

  plugins: [
    [
      "@twilio-labs/docusaurus-plugin-datadog-rum",
      {
        clientToken: "3EBOWfRPv8qwertyZXCvbnMAsD2f1g0Hf96",
        applicationId: "01234567-89ab-cdef-0123-456789abcdef",
        service: "my-docusaurus-site"
      },
    ],
  ],

FAQs

Package last updated on 24 Jun 2022

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