You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
should work as expected and not throw an exception.
Actual Behaviour
Application starts as expected.
After a few seconds it renders the following Exception:
Exception in thread "BatchSpanProcessor_WorkerThread-1" java.lang.AbstractMethodError: Receiver class com.google.api.gax.grpc.GrpcCallContext does not define or inherit an implementation of the resolved method 'abstract com.google.api.gax.rpc.ApiCallContext withEndpointContext(com.google.api.gax.rpc.EndpointContext)' of interface com.google.api.gax.rpc.ApiCallContext.
at com.google.api.gax.rpc.ClientContext.create(ClientContext.java:233)
at com.google.cloud.trace.v2.stub.GrpcTraceServiceStub.create(GrpcTraceServiceStub.java:71)
at com.google.cloud.trace.v2.stub.TraceServiceStubSettings.createStub(TraceServiceStubSettings.java:112)
at com.google.cloud.trace.v2.TraceServiceClient.<init>(TraceServiceClient.java:160)
at com.google.cloud.trace.v2.TraceServiceClient.create(TraceServiceClient.java:142)
at com.google.cloud.opentelemetry.trace.InternalTraceExporter.createWithConfiguration(InternalTraceExporter.java:103)
at com.google.cloud.opentelemetry.trace.TraceExporter.lambda$new$0(TraceExporter.java:41)
at com.google.common.base.Suppliers$NonSerializableMemoizingSupplier.get(Suppliers.java:186)
at com.google.cloud.opentelemetry.trace.TraceExporter.export(TraceExporter.java:93)
at io.opentelemetry.sdk.trace.export.BatchSpanProcessor$Worker.exportCurrentBatch(BatchSpanProcessor.java:331)
at io.opentelemetry.sdk.trace.export.BatchSpanProcessor$Worker.run(BatchSpanProcessor.java:249)
at java.base/java.lang.Thread.run(Thread.java:840)
This is due to a mismatch in transitive dependencies of
gax contains an Interface(ApiCallContext) that implements the mentioned method. gax-grpc contains a class (GrpcCallContext) implementing that interface. Due to the old version, it does not implement the method.
Expected Behavior
Using Micronaut Platform version 4.4.3 with Open Telemetry exporters as described here using
should work as expected and not throw an exception.
Actual Behaviour
Application starts as expected.
After a few seconds it renders the following Exception:
This is due to a mismatch in transitive dependencies of
com.google.api:gax-grpc micronaut-projects/micronaut-core # 2.37.0
com.google.api:gax # 2.46.1
gax contains an Interface(ApiCallContext) that implements the mentioned method. gax-grpc contains a class (GrpcCallContext) implementing that interface. Due to the old version, it does not implement the method.
Dependency tree:
Steps To Reproduce
For some reason i cannot reproduce this behaviour in a default micronaut setup.
The closest i can imagine that is needed to do it is this. No matter the reproducibility, the mismatch existst
mvn cli:
plus the mentioned exporter
com.google.cloud.opentelemetry exporter-autoEnvironment Information
No response
Example Application
No response
Version
4.4.3
The text was updated successfully, but these errors were encountered: