Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aaronransley/nuxt-datadog-trace
Nuxt module for Datadog tracing of SSR / HTTP requests
https://github.com/aaronransley/nuxt-datadog-trace
datadog datadog-apm metrics-gathering nuxt nuxtjs performance-analysis
Last synced: 3 months ago
JSON representation
Nuxt module for Datadog tracing of SSR / HTTP requests
- Host: GitHub
- URL: https://github.com/aaronransley/nuxt-datadog-trace
- Owner: aaronransley
- Created: 2019-05-24T22:16:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T23:53:30.000Z (over 1 year ago)
- Last Synced: 2024-04-29T01:02:29.573Z (9 months ago)
- Topics: datadog, datadog-apm, metrics-gathering, nuxt, nuxtjs, performance-analysis
- Language: JavaScript
- Homepage:
- Size: 37.1 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# 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
1. Install npm package
```sh
$ yarn add nuxt-datadog-trace # or npm i nuxt-datadog-trace
```2. Edit your `nuxt.config.js` file to add module
```js
export default {
modules: ['nuxt-datadog-trace']
}
```3. Change options as needed. See Usage section for details.
# Usage
1. Configure `dd-trace` instance by adding `datadogTrace` to `nuxt.config.js`.
- Learn [more about `dd-trace` options](https://datadog.github.io/dd-trace-js/interfaces/traceroptions.html)```js
export default {
datadogTrace: {
hostname: 'cool.net',
logInjection: false
// ...
}
}
```2. By default, `nuxt-datadog-trace` is configured like so:
```js
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](./CHANGELOG.md)