Skip to content

Commit

Permalink
Merge pull request #187 from NipunaMadhushan/update-propagator
Browse files Browse the repository at this point in the history
Change trace propagator to opentelemetry
  • Loading branch information
chathurace authored Oct 17, 2024
2 parents 2bab4dc + 399e6b4 commit e289a8e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
import io.grpc.netty.shaded.io.grpc.netty.NettyChannelProvider;
import io.opentelemetry.api.common.Attributes;
import io.opentelemetry.api.trace.Tracer;
import io.opentelemetry.api.trace.propagation.W3CTraceContextPropagator;
import io.opentelemetry.context.propagation.ContextPropagators;
import io.opentelemetry.exporter.otlp.trace.OtlpGrpcSpanExporter;
import io.opentelemetry.extension.trace.propagation.JaegerPropagator;
import io.opentelemetry.sdk.resources.Resource;
import io.opentelemetry.sdk.trace.SdkTracerProvider;
import io.opentelemetry.sdk.trace.SdkTracerProviderBuilder;
Expand Down Expand Up @@ -111,6 +111,6 @@ public Tracer getTracer(String serviceName) {
@Override
public ContextPropagators getPropagators() {

return ContextPropagators.create(JaegerPropagator.getInstance());
return ContextPropagators.create(W3CTraceContextPropagator.getInstance());
}
}

0 comments on commit e289a8e

Please sign in to comment.