1
2
3
4
5
6
7
8
9
10
11
12
13
14
| import tracer from 'dd-trace';
const hostname = process.env.DD_AGENT_HOST;
const env = process.env.NODE_ENV;
tracer.init({
env: env,
hostname: hostname,
dogstatsd: {
hostname: hostname,
},
service: 'service',
tags: [`env:${env}`],
}
export default tracer;
|