Propagate context in queue #9657
Replies: 5 comments 3 replies
-
Did you build your extension following the sample extension https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/examples/extension ? |
Beta Was this translation helpful? Give feedback.
-
Thanks for your quick reply. I have migrated gradle script from the example project to my java project for opentelemetry extension development. When I run
From the stacktrace, it seems that I am still missing something as For your reference, the following is my
In addition, I am not sure which nominate version of OpenTelementry I should use. I don't know where the variable |
Beta Was this translation helpful? Give feedback.
-
I have added the following lines to
and received new exception during build
|
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply. I should ask a specific question. Regarding the |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your reply.
I learned
Do you mean I should use
I would like to trace every message in the queue between these two threads. Doing so requires sharing context but I am not sure how to. This is why I went through all the classes in package
I mean the |
Beta Was this translation helpful? Give feedback.
-
I would like to trace the following code:
I went through the source code and there is no exitsing extension for it. So I wrote my type instrumentation described below:
When I run it, I received the exception on
VirtualField<Object, Integer> virtualField = VirtualField.find(class1, Integer.class);
I guess I need to initialise VirtualField somehow but I don't know how to. I need advices for how to fix it.
By the way, I am using jdk:
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions