Skip to content

Commit 8cfa9a1

Browse files
remove await in incoming activity
1 parent 43b2ef6 commit 8cfa9a1

File tree

1 file changed

+1
-1
lines changed
  • packages/interceptors-opentelemetry/src/worker

1 file changed

+1
-1
lines changed

packages/interceptors-opentelemetry/src/worker/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class OpenTelemetryActivityInboundInterceptor implements ActivityInboundC
3434
}
3535

3636
async execute(input: ActivityExecuteInput, next: Next<ActivityInboundCallsInterceptor, 'execute'>): Promise<unknown> {
37-
const context = await Promise.resolve(extractContextFromHeaders(input.headers));
37+
const context = extractContextFromHeaders(input.headers);
3838
const spanName = `${SpanName.ACTIVITY_EXECUTE}${SPAN_DELIMITER}${this.ctx.info.activityType}`;
3939
return await instrument({ tracer: this.tracer, spanName, fn: () => next(input), context });
4040
}

0 commit comments

Comments
 (0)