How can I disable all instrumentation related to metrics and logs in OpenTelemetry Java Agent, enabling only traces? #12537
Unanswered
shahparthiv
asked this question in
Q&A
Replies: 3 comments 5 replies
-
@srinusanduri , according to the following link, I believe you have worked on similar stuff. As mentioned in the comment attached in the following link you have achieved to disable metrics and logs and only enabled the traces. Your help would be really appreciated! |
Beta Was this translation helpful? Give feedback.
0 replies
-
@jack-berg , will this open-telemetry/opentelemetry-java#6549 is useful here? |
Beta Was this translation helpful? Give feedback.
0 replies
-
did you want more than |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using the OpenTelemetry Java Agent to instrument my application, but I only want to instrument traces. Currently, the agent also instruments logs and metrics, which I’d like to disable to reduce overhead and focus purely on tracing.
Could someone guide me on how to configure the OpenTelemetry Java Agent so that:
In short, I want the agent to only handle tracing without any additional instrumentation for logs and metrics.
I’ve tried setting a few properties but am unsure if I’m missing anything or if there’s an all-encompassing way to achieve this. Any guidance or recommended configuration settings would be much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions