Skip to content

Commit

Permalink
chore(otel): clean
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Oct 28, 2024
1 parent f4eda83 commit 4bde29a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/otel/src/middleware/trace-outer.middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export async function middleware(
const container = ctx.app.getApplicationContext()
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
const traceSvc = container.get(TraceService) ?? await container.getAsync(TraceService)
if (! traceSvc.config.enable) { return }
await traceSvc.startOnRequest(ctx)

ctx.res.once('finish', () => { finishCallback(ctx, traceSvc) })
Expand Down

0 comments on commit 4bde29a

Please sign in to comment.