Skip to content

Commit 154e7c1

Browse files
committed
suggested changes
1 parent f5cd36f commit 154e7c1

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

opentelemetry/build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@ dependencies {
1717
testImplementation project(':grpc-testing'),
1818
project(':grpc-testing-proto'),
1919
project(':grpc-inprocess'),
20-
project(':grpc-stub'),
21-
project(':grpc-protobuf'),
2220
testFixtures(project(':grpc-core')),
2321
testFixtures(project(':grpc-api')),
2422
libraries.opentelemetry.sdk.testing,
2523
libraries.assertj.core // opentelemetry.sdk.testing uses compileOnly for assertj
26-
libraries.protobuf.java
2724

2825
annotationProcessor libraries.auto.value
2926

opentelemetry/src/main/java/io/grpc/opentelemetry/OpenTelemetryMetricsModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static String recordMethodName(String fullMethodName, boolean isGeneratedMethod)
132132
}
133133

134134
private static Context otelContextWithBaggage() {
135-
Baggage baggage = BAGGAGE_KEY.get(io.grpc.Context.current());
135+
Baggage baggage = BAGGAGE_KEY.get();
136136
if (baggage == null) {
137137
return Context.current();
138138
}

opentelemetry/src/main/java/io/grpc/opentelemetry/OpenTelemetryTracingModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ public <ReqT, RespT> ServerCall.Listener<ReqT> interceptCall(ServerCall<ReqT, Re
339339
}
340340
Context serverCallContext = Context.current();
341341
serverCallContext = serverCallContext.with(span);
342-
Baggage baggage = BAGGAGE_KEY.get(io.grpc.Context.current());
342+
Baggage baggage = BAGGAGE_KEY.get();
343343
if (baggage != null) {
344344
serverCallContext = serverCallContext.with(baggage);
345345
}

0 commit comments

Comments
 (0)