-
Hello everyone, sorry for the english. I'll be short. Is it possiblel to capture an argument value from a intrumented method using the agent? I want to know the value being passed by my app to said argument during execution. Thanks everyone. |
Beta Was this translation helpful? Give feedback.
Answered by
laurit
Jan 3, 2025
Replies: 1 comment 2 replies
-
You could use the public class MyClass {
@WithSpan
public void myMethod(@SpanAttribute("parameter1") String parameter1,
@SpanAttribute("parameter2") long parameter2) {
<...>
}
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is not possible out of the box. You can write a custom extension for this, see https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/examples/extension