Skip to content

Commit

Permalink
chore: fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarchaud committed Dec 16, 2020
1 parent 2695e84 commit dac7eed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/opentelemetry-instrumentation-grpc/src/grpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export class GrpcInstrumentation extends InstrumentationBase<typeof grpcTypes> {
}

private _setSpanContext(metadata: grpcTypes.Metadata): void {
propagation.inject(metadata, {
propagation.inject(context.active(), metadata, {
set: (metadata, k, v) => metadata.set(k, v as grpcTypes.MetadataValue),
});
}
Expand Down Expand Up @@ -216,7 +216,7 @@ export class GrpcInstrumentation extends InstrumentationBase<typeof grpcTypes> {
);

context.with(
propagation.extract(call.metadata, {
propagation.extract(context.active(), call.metadata, {
get: (metadata, key) => metadata.get(key).map(String),
keys: metadata => Object.keys(metadata.getMap()),
}),
Expand Down

0 comments on commit dac7eed

Please sign in to comment.