-
Notifications
You must be signed in to change notification settings - Fork 893
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
How should OpenTelemetry-internal metrics be exposed? #959
Comments
Just as a reference the Java SDK is currently emitting metrics for our BatchSpanProcessor: https://github.com/open-telemetry/opentelemetry-java/blob/ddb38970fabadd82e7fa875789d74b9bd29fd257/sdk/tracing/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpanProcessor.java#L140-L152 |
@jkwatson
|
@lzchen I think that code is from the time when DROP was called NOT_RECORD, so when it uses "dropped" it talks about (sampled) spans being dropped from the queue of the batch span processor (due to it being full), not spans being dropped by the sampler. |
Following back up on this one. Looking at the java implementation, the answers to my questions above are:
One question I would wonder: how would one turn off all opentelemetry metrics, in such a setup? do exporters or MeterProviders provide some mechanism to no-op a whole namespace? |
@jkwatson |
Perhaps, but that's not the metric that I'm recording in the BatchSpanProcessor. :) |
Is there an intention to define a common set of internal metrics across all SDK impls? @jkwatson currently I don't think the java sdk is recording a metric related to queue size. Do you think this would be generally useful (i.e. to track how close a tracer is getting to dropping spans)? If so, I'll create an issue in the java repo. |
What are you trying to achieve?
From a conversation in #942, there is a need to have metrics internal to opentelemetry. This is a ticket to start the discussion of how that would work.
Design decisions include:
This may also be better started in a SIG discussion.
The text was updated successfully, but these errors were encountered: