Skip to content

Conversation

@seth-epps
Copy link

Fixes #8682

Expose a new experimental API for registering a telemetry label callback function.

Some clients may not be instrumented with opentelemetry which restricts valuable information from being propagated to stats handlers. This gives clients the ability to collect otel labels by registering a label callback on the context and collecting the information themselves in their stats handlers.

RELEASE NOTES:

  • experimental/stats: Expose Telemetry Label Callback

@seth-epps seth-epps force-pushed the i-8682/expose-recorder branch from 09e6612 to 6dda7c7 Compare February 2, 2026 22:27
@arjan-bal arjan-bal requested a review from mbissa February 3, 2026 07:44
@arjan-bal arjan-bal added the Type: Feature New features or improvements in behavior label Feb 3, 2026
@arjan-bal arjan-bal added this to the 1.80 Release milestone Feb 3, 2026
@codecov
Copy link

codecov bot commented Feb 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.21%. Comparing base (49e224f) to head (12bf10e).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8877      +/-   ##
==========================================
+ Coverage   83.15%   83.21%   +0.05%     
==========================================
  Files         414      415       +1     
  Lines       32751    32765      +14     
==========================================
+ Hits        27235    27264      +29     
+ Misses       4096     4083      -13     
+ Partials     1420     1418       -2     
Files with missing lines Coverage Δ
experimental/stats/telemetry.go 100.00% <100.00%> (ø)
internal/xds/balancer/clusterimpl/picker.go 95.23% <100.00%> (+0.11%) ⬆️

... and 20 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

Type: Feature New features or improvements in behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose the labels package to use with custom stats handler

3 participants