@seneca/telemetry-datadog
v0.0.1
Published

Keywords
Readme

Seneca Telemetry Datadog is a plugin for Seneca
Handle incoming messages within other frameworks.
@seneca/telemetry-datadog
|
| This open source module is sponsored and supported by Voxgig. |
| ---------------------------------------------------- | --------------------------------------------------------------------------------------- |
Notice
This piece of software is currently at the prototype stage, which means, among other things, that its API can be unstable,
and the software - buggy. For the duration of the prototype stage, we will also be using some auxiliary packages such as
assert-plus and fetch-prop - that are expected to help catch bugs.
Install
- Install and enable the
datadog-agentdaemon from the Datadog website - Install the
dd-tracepackage - Initialize the
dd-tracepackage in your project - Install this plugin
- Use this plugin with your Seneca instance, IMPORTANT - wrap your
dd-tracein a function and pass to the plugin via thegetTraceroption:
const DdTrace = require('dd-trace')
const Seneca = require('seneca')
const seneca = Seneca()
const tracer = DdTrace.init()
seneca.use('telemetry-datadog', {
getTracer: () => tracer
})