Skip to content

Make processor queue capacity metrics observable - #5618

Open
cijothomas wants to merge 4 commits into
open-telemetry:mainfrom
cijothomas:fix-observable-processor-capacity
Open

Make processor queue capacity metrics observable#5618
cijothomas wants to merge 4 commits into
open-telemetry:mainfrom
cijothomas:fix-observable-processor-capacity

Conversation

@cijothomas

Copy link
Copy Markdown
Member

Description

Report span and log processor queue capacity with observable up-down counters instead of recording the capacity once with synchronous counters.

A processor can be constructed before the SDK installs the real meter provider. In that case, the one-time synchronous measurement is made against a proxy instrument and is not replayed when the provider is installed, so queue capacity is never exported. Observing the fixed capacity during collection avoids that initialization-order dependency and remains compliant with the metrics semantic conventions.

Adds regression coverage for processors created before the real meter provider is installed.

@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Sep 3, 2026

Copy link
Copy Markdown

Pull request dashboard status

Waiting on reviewers · refreshed 2026-09-04 17:28 UTC

Review the latest changes.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

@cijothomas

Copy link
Copy Markdown
Member Author

@DylanRussell Please review. Hit the issue while working on open-telemetry/opentelemetry-demo#3932 and it worked around by re-ordering, but this PR would be a better fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant