dd-trace-js
dd-trace-js copied to clipboard
Koa: trace context renamed from `koa.request` to `web.request` after updating to 4.13.1
Expected behaviour
The following configuration should create spans which the context name is koa.request:
ddtrace
.init({
service: "SERVICE-NAME",
sampleRate: 1,
logInjection: environment.isProduction || environment.isTesting,
runtimeMetrics: environment.isProduction || environment.isTesting,
hostname: datadogTrace.host,
port: datadogTrace.port,
version: release,
env: environment.env,
})
.use("http", {
client: {
splitByDomain: true,
},
})
.use("koa", {
middleware: true,
blacklist: ["/_ready", "/_health"],
})
.use("pino");
Actual behaviour
Instead span.context()._name returning koa.request it returns web.request.
Steps to reproduce
Environment
- Node.js version: 18.16.0
- Tracer version: 4.13.1
- Relevant library versions: [email protected]