nuxt-datadog-trace
Enable Datadog tracing in your Nuxt application
20,447
3
| Install | |
|---|---|
npm install nuxt-datadog-trace |
|
| Latest Version: | 0.1.2 |
| License: | MIT |
| Last Updated: | Jul 11, 2023 |
| Links: | GitHub · npm |
Maintainer: aaronransley
nuxt-datadog-trace
A module to add dd-trace / Datadog APM tracing to your Nuxt application. Captures requests passing
through the Nuxt instance / http module in Node.js.
Note: This module is in alpha stages at the moment, and doesn't yet provide an interface to the dd-trace scope manager.
Installation
- Install npm package
$ yarn add nuxt-datadog-trace # or npm i nuxt-datadog-trace
- Edit your
nuxt.config.jsfile to add module
export default {
modules: ['nuxt-datadog-trace']
}
- Change options as needed. See Usage section for details.
Usage
- Configure
dd-traceinstance by addingdatadogTracetonuxt.config.js.
export default {
datadogTrace: {
hostname: 'cool.net',
logInjection: false
// ...
}
}
- By default,
nuxt-datadog-traceis configured like so:
export default {
datadogTrace: {
hostname: process.env.DATADOG_AGENT_HOST || 'localhost',
env: process.env.NODE_ENV,
service: `host app's [package.json].name property`,
logInjection: true,
...yourOverrides
}
}
Changelog
Version History
| Version | Released | License |
|---|---|---|
| 0.1.2 | MIT | |
| 0.1.1 | MIT | |
| 0.1.0 | MIT | |
| 0.0.5 | MIT | |
| 0.0.4 | MIT | |
| 0.0.3 | MIT | |
| 0.0.2 | MIT |