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

Add initial experimental SDK self-observability metric #6153

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dashpole
Copy link
Contributor

@dashpole dashpole commented Jan 10, 2025

Part of #2547

This adds the OTEL_GO_X_SELF_OBSERVABILITY feature gate, the otel.sdk.span.processor.queue_size metric behind it.

Note: I opted for a single environment variable for all SDKs and for all signals, rather than multiple environment variables.

TODO:

  • Add unit tests
  • Wait for experimental semantic conventions to be merged

Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.2%. Comparing base (5363a52) to head (dda5658).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #6153     +/-   ##
=======================================
- Coverage   82.3%   82.2%   -0.1%     
=======================================
  Files        273     273             
  Lines      23735   23770     +35     
=======================================
+ Hits       19534   19552     +18     
- Misses      3853    3867     +14     
- Partials     348     351      +3     

see 4 files with indirect coverage changes

Copy link
Contributor

@MrAlias MrAlias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a good start, I like the approach. 👍

sdk/trace/batch_span_processor.go Show resolved Hide resolved
@dashpole
Copy link
Contributor Author

Turns out there are already proposed semantic conventions: open-telemetry/semantic-conventions#1631

@dashpole dashpole force-pushed the experimental_sdk_metrics branch from 5fb833a to 18534c3 Compare January 23, 2025 03:18
@dashpole dashpole force-pushed the experimental_sdk_metrics branch from 18534c3 to dda5658 Compare January 23, 2025 03:23
@dashpole
Copy link
Contributor Author

I updated this to match the proposed conventions.

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.

2 participants