Skip to content

Conversation

@mbissa
Copy link
Contributor

@mbissa mbissa commented Oct 8, 2025

Addresses A89

RELEASE NOTES:

  • stats/opentelemetry: Add support for optional label grpc.lb.backend_service in per-call metrics

@mbissa mbissa self-assigned this Oct 8, 2025
@codecov
Copy link

codecov bot commented Oct 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.96%. Comparing base (ece7397) to head (acbd0fe).
⚠️ Report is 10 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8637      +/-   ##
==========================================
- Coverage   82.17%   81.96%   -0.22%     
==========================================
  Files         415      415              
  Lines       40709    40759      +50     
==========================================
- Hits        33453    33408      -45     
- Misses       5883     5992     +109     
+ Partials     1373     1359      -14     
Files with missing lines Coverage Δ
internal/xds/balancer/clusterimpl/clusterimpl.go 82.47% <100.00%> (-0.98%) ⬇️
internal/xds/balancer/clusterimpl/picker.go 96.96% <100.00%> (+0.03%) ⬆️
stats/opentelemetry/client_metrics.go 86.66% <100.00%> (+0.07%) ⬆️

... and 34 files with indirect coverage changes

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

@mbissa mbissa added the Area: Observability Includes Stats, Tracing, Channelz, Healthz, Binlog, Reflection, Admin, GCP Observability label Oct 8, 2025
@mbissa mbissa added this to the 1.77 Release milestone Oct 8, 2025
@mbissa mbissa added the Type: Feature New features or improvements in behavior label Oct 8, 2025
@mbissa mbissa changed the title stats/otel: changes for A89 to make backend service available experimental/stats: changes for A89 to make backend service available Oct 8, 2025
Copy link
Member

@dfawley dfawley left a comment

Choose a reason for hiding this comment

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

LGTM thanks! Assigning @easwars for visibility

// Nothing to assert for the other stats.Handler callouts.
}

}
Copy link
Member

Choose a reason for hiding this comment

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

Similar here.

@dfawley dfawley assigned easwars and unassigned dfawley and mbissa Oct 8, 2025
@easwars easwars changed the title experimental/stats: changes for A89 to make backend service available stats/opentelemetry: Add support for optional label grpc.lb.backend_service in per-call metrics Oct 9, 2025
@easwars easwars assigned mbissa and unassigned easwars Oct 9, 2025
@easwars easwars mentioned this pull request Oct 9, 2025
@davinci26
Copy link
Contributor

One small comment/question on the implementation given the dependency on istats.GetLabel would that label/metric be available for people who are using custom statsHandler?

@easwars
Copy link
Contributor

easwars commented Oct 10, 2025

One small comment/question on the implementation given the dependency on istats.GetLabel would that label/metric be available for people who are using custom statsHandler?

You are correct that a custom statsHandler would not have access to these labels. But if you have a reason to want access to these labels, we can have a discussion about it, and we could move this out of internal into an experimental package. That way, you will have access to the labels, but we will retain the right to make changes to the API.

Please let us know what you think. Thanks.

@davinci26
Copy link
Contributor

@easwars yeah that works for me, I can add integration tests in my implementation and check before upgrades. As long as there is a method breaking changes are totally fine

@mbissa mbissa assigned easwars and unassigned mbissa Oct 14, 2025
@easwars easwars assigned mbissa and unassigned easwars Oct 14, 2025
@easwars
Copy link
Contributor

easwars commented Oct 14, 2025

@davinci26 : Please feel free to send us a PR. Thanks.

@mbissa mbissa merged commit 2d92271 into grpc:master Oct 14, 2025
15 checks passed
@mbissa mbissa deleted the a89-backend-service-label branch October 14, 2025 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Observability Includes Stats, Tracing, Channelz, Healthz, Binlog, Reflection, Admin, GCP Observability Type: Feature New features or improvements in behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants