Skip to content
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

Trace sdk processor metrics #6393

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dashpole
Copy link
Contributor

@dashpole dashpole commented Mar 2, 2025

Adds otel.sdk.processor.span.queue.size, otel.sdk.processor.span.queue.capacity, and otel.sdk.processor.span.processed.count metrics to the trace batch span processor.

These are defined in https://github.com/open-telemetry/semantic-conventions/blob/cb11bb9bac24f4b0e95ad0f61ce01813d8ceada8/docs/otel/sdk-metrics.md, and are experimental. Because of this, metrics are behind the OTEL_GO_X_SELF_OBSERVABILITY feature gate.

Given the feature is experimental, it always uses the global meterprovider when enabled.

Copy link

codecov bot commented Mar 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.8%. Comparing base (f04e951) to head (68bcd1b).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #6393     +/-   ##
=======================================
- Coverage   81.9%   81.8%   -0.1%     
=======================================
  Files        283     283             
  Lines      24899   24959     +60     
=======================================
+ Hits       20394   20430     +36     
- Misses      4102    4121     +19     
- Partials     403     408      +5     

see 5 files with indirect coverage changes

dashpole added a commit that referenced this pull request Mar 5, 2025
I would like to be able to use a private option in
#6393 in tests,
and decided to split this refactoring out into its own PR.

This moves the batch span processor benchmarks into benchmark_test.go,
and replaces one instance of the tracetest.NewInMemoryExporter with a
different test exporter implementation. It then moves most unit tests
from `trace_test` to the main `trace` package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant