-
Notifications
You must be signed in to change notification settings - Fork 1k
Instrument instrumentation suppression api #14565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instrument instrumentation suppression api #14565
Conversation
...telemetry/javaagent/instrumentation/opentelemetryapi/InstrumentationUtilInstrumentation.java
Outdated
Show resolved
Hide resolved
...ava/io/opentelemetry/javaagent/instrumentation/opentelemetryapi/InstrumentationUtilTest.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Jay DeLuca <[email protected]>
|
@laurit can you elaborate a bit on why this is needed ? My understanding so far was that when an application was using the API/SDK for manual instrumentation then the agent would bridge it to its own internal SDK, is that still the case ? |
yes, this is how it is bridged. |
| public static boolean methodEnter(@Advice.Argument(0) Runnable runnable) { | ||
| InstrumentationUtil.suppressInstrumentation(runnable); | ||
| return true; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the return value needed here?
| public static boolean methodEnter(@Advice.Argument(0) Runnable runnable) { | |
| InstrumentationUtil.suppressInstrumentation(runnable); | |
| return true; | |
| } | |
| public static void methodEnter(@Advice.Argument(0) Runnable runnable) { | |
| InstrumentationUtil.suppressInstrumentation(runnable); | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is needed
breedx-splk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
When an application using the agent also uses the sdk we shouldn't let the agent collect traces from the sdk.