Skip to content

Commit 61af54c

Browse files
committed
fix: delete root span from ctx
1 parent 6b90688 commit 61af54c

File tree

1 file changed

+2
-0
lines changed
  • plugins/node/opentelemetry-koa-instrumentation/src

1 file changed

+2
-0
lines changed

plugins/node/opentelemetry-koa-instrumentation/src/koa.ts

+2
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ export class KoaInstrumentation extends BasePlugin<typeof koa> {
151151
context.request.ctx.parentSpan.updateName(
152152
`${context.method} ${context._matchedRoute}`
153153
);
154+
155+
delete context.request.ctx.parentSpan;
154156
}
155157
}
156158
}

0 commit comments

Comments
 (0)