Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
When the batch span processor in-memory queue reaches its max size, it drops the span and emits a otel metric. However, if the otel sdk does not have a metrics processor and appropriate metrics pipeline, then this is just a silent drop. Typically a user would first go to the logs to figure out what the issue is, but since the java sdk does not produce any logs for this drop it makes it very difficult to know why the spans went missing.
Describe the solution you'd like
A clear and concise description of what you want to happen.
I would like to see a log error line being populated when spans are dropped. This logger would ideally be rate limited as well. In addition, I would like to see a list of internal metrics that the otel sdk provides, so that I can create the appropriate alarming mechanisms in my cloud provider.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
|
processedSpansCounter.add(1, droppedAttrs); |
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
When the batch span processor in-memory queue reaches its max size, it drops the span and emits a otel metric. However, if the otel sdk does not have a metrics processor and appropriate metrics pipeline, then this is just a silent drop. Typically a user would first go to the logs to figure out what the issue is, but since the java sdk does not produce any logs for this drop it makes it very difficult to know why the spans went missing.
Describe the solution you'd like
A clear and concise description of what you want to happen.
I would like to see a log error line being populated when spans are dropped. This logger would ideally be rate limited as well. In addition, I would like to see a list of internal metrics that the otel sdk provides, so that I can create the appropriate alarming mechanisms in my cloud provider.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
opentelemetry-java/sdk/trace/src/main/java/io/opentelemetry/sdk/trace/export/BatchSpanProcessor.java
Line 238 in 43fba2e