JSPM

@dynatrace/oneagent

1.125.216-1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2027
  • Score
    100M100P100Q127156F
  • License SEE LICENSE IN LICENSE

Dynatrace node.js oneagent for PaaS environments.

Package Exports

  • @dynatrace/oneagent

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dynatrace/oneagent) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Dynatrace npm module for PaaS

This module adds enterprise grade monitoring for Node.js in environments like Cloud Foundry or Heroku. For any other environment please use the full installer provided in your Dynatrace environment.

Installation

  • Sign up for free and follow the instructions
  • Click on "Deploy Dynatrace"
  • Click on "Set up PaaS Integration"
  • Generate a PaaS token
  • Run $ npm install --save @dynatrace/oneagent in your project directory

Deploying Dynatrace to CloudFoundry

  • Set up the Dynatrace service using the credentials created in the previous step as described in our documentation
  • As first statement of your application add
try {
    require('@dynatrace/oneagent')();
} catch(err) {
    console.log(err.toString());
}
  • Deploy the application to Cloud Foundry

Deploying Dynatrace to Heroku

  • Use the credentials created in the first step and add the following code block as first statement to your application
try {
    require('@dynatrace/oneagent')({
        environmentid: '<environmentid>',
        apitoken: '<paastoken>',
    });
} catch(err) {
    console.log(err.toString());
}
  • Deploy the application to Heroku

Disclaimer

This module is supported by the Dynatrace Innovation Lab. Please create an issue for this repository if you need help.

Licence

Licensed under the MIT License. See the LICENSE file for details.