We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43b2ef6 commit 8cfa9a1Copy full SHA for 8cfa9a1
packages/interceptors-opentelemetry/src/worker/index.ts
@@ -34,7 +34,7 @@ export class OpenTelemetryActivityInboundInterceptor implements ActivityInboundC
34
}
35
36
async execute(input: ActivityExecuteInput, next: Next<ActivityInboundCallsInterceptor, 'execute'>): Promise<unknown> {
37
- const context = await Promise.resolve(extractContextFromHeaders(input.headers));
+ const context = extractContextFromHeaders(input.headers);
38
const spanName = `${SpanName.ACTIVITY_EXECUTE}${SPAN_DELIMITER}${this.ctx.info.activityType}`;
39
return await instrument({ tracer: this.tracer, spanName, fn: () => next(input), context });
40
0 commit comments