Java11 - Automatic Instrumentation: Report method name or exact location where trace was taken #9840
-
Hello otel community, This is basically a question on understanding the boundaries of this great tracing framework.
And using an custom entrypoint we specify the auto exporter jar:
With this setup we are able to see the rpc call and also the http request to external api's using client libraries.
However I would like to also see the java method name where the trace was recorded. I guess I know the application Any input is much appriciated. Cheers. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
hi @julian-sotec! there is no option (currently at least) to capture the caller. this would require getting the stack trace which is a relatively expensive operation and so would probably only be useful for debugging (or under very low sampling rates) |
Beta Was this translation helpful? Give feedback.
hi @julian-sotec! there is no option (currently at least) to capture the caller. this would require getting the stack trace which is a relatively expensive operation and so would probably only be useful for debugging (or under very low sampling rates)