Instrumentation Agent does not produce traces #11655
Unanswered
HackiHaakert
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wrote a little Hello World program in Java 21 with several methods calling each other. I included no database and no remote communication. To be able to instrument Java methods I added the annotation dependency and the annotation “@WithSpan”.
Annotation dependency:
Then I use a shell script to start the Application:
I use agent version 2.4.0. There arrive no spans in my OTEL-Collector.
I changed the traces exporter to console but also no spans for a trace are generated.
The output is:
What is my error?
Beta Was this translation helpful? Give feedback.
All reactions