@houseninja/ember-datadog-rum

0.0.1 • Public • Published

ember-datadog-rum

Adds Datadog Real User Monitoring SDK to your Ember App.

Installation

ember install ember-datadog-rum

Configuration

Add your RUM config options to config/environment.js:

RUM Config Options

module.exports = function (environment) {
  var ENV = {
    ...
    datadog: {
      applicationId: '<DATADOG_APPLICATION_ID>', // required
      clientToken: '<DATADOG_CLIENT_TOKEN>',     // required
      
      // Configure the Service name in traces and metrics
      service: 'my-ember-app',

      // Automatically track interactions
      trackInteractions: true,

      // Connect RUM metrics and Traces
      // https://docs.datadoghq.com/real_user_monitoring/connect_rum_and_traces/?tab=browserrum
      // allowedTracingOrigins: [
      //   "https://api.example.com",
      //   /https:\/\/.*\.my-api-domain\.com/
      // ],
    }
    ...
  }
}

Content Security Policy

If you're using ember-cli-content-security-policy, you'll need to modify the content security policy. In config/environment.js, add this to the ENV hash (modify as necessary):

contentSecurityPolicy: {
  // Intake URLs
  'connect-src': "'self' https://*.logs.datadoghq.com https://*.browser-intake-datadoghq.com",

  // Session Replay worker
  'worker-src': "blob:;"
}

More information at https://docs.datadoghq.com/real_user_monitoring/faq/content_security_policy/

Usage

See https://docs.datadoghq.com/real_user_monitoring/browser/ for all options.

Compatibility

  • Ember.js v3.20 or above
  • Ember CLI v3.20 or above
  • Node.js v12 or above

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i @houseninja/ember-datadog-rum

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

7.39 kB

Total Files

7

Last publish

Collaborators

  • mileszim