-
Hello, I am currently trying to integrate the Auto Instrumentation Javaagent into an existing application and ran into some problems. I now tried to access current span from within a method of the grpc Service (that method is definetly instrumented as I can see it in the Jaeger UI) but all I get is an empty span. Javaagent Version: 1.9.1 How I try to access it:
What I get:
Is there something obvious I am missing here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
A small sample app that reproduces the issue would be helpful. If you have disabled instrumentations with |
Beta Was this translation helpful? Give feedback.
-
@Taragos I had the same problem, after some investigation I found out, that I used different version of opentelemetry-api and agent :D |
Beta Was this translation helpful? Give feedback.
A small sample app that reproduces the issue would be helpful. If you have disabled instrumentations with
-Dotel.instrumentation.common.default-enabled=false
or in some other way then I'd suggest you try again with all instrumentations enabled and see whether it changes anything. If creating a sample app is too much effort then I'd suggest you start by examiningio.grpc.Context.current()
in debugger does it haveotel-context
inkeyValueEntries
field?