Skip to content

stats: migrate the grpc request stats to use explicit tags - #48466

Merged
wbpcode merged 1 commit into
envoyproxy:mainfrom
wbpcode:dev-explicit-tags-grpc-context
Oct 21, 2026
Merged

wbpcode merged 1 commit into
envoyproxy:mainfrom
wbpcode:dev-explicit-tags-grpc-context

Conversation

@wbpcode

@wbpcode wbpcode commented Oct 20, 2026

Copy link
Copy Markdown
Member

Commit Message: stats: migrate the grpc request stats to use explicit tags
Additional Description:
The gRPC request stats charged by Grpc::ContextImpl (the <protocol>.<service>.<method>.<suffix> counters and the upstream_rq_time histogram on the cluster scope) now supply the envoy.grpc_bridge_service and envoy.grpc_bridge_method tags explicitly instead of relying on the legacy tag-extraction regexes. The flat stat names are unchanged, and the explicit tags only take effect in the explicit-tags stats mode behind the default-false envoy.reloadable_features.enable_stats_explicit_tags runtime guard; in legacy mode the extraction rules keep producing the same tags as before.

One deliberate divergence in explicit mode: the grpc-web stats get the same service/method tags, while the legacy extraction rules only match the literal "grpc" prefix. Tagging unconditionally keeps the rules simple.

Risk Level: Low
Testing: unit + integration.
Docs Changes: N/A
Release Notes: N/A

@wbpcode

wbpcode commented Oct 21, 2026

Copy link
Copy Markdown
Member Author

/retest

@wbpcode
wbpcode merged commit 94f62d4 into envoyproxy:main Oct 21, 2026
27 checks passed
@wbpcode
wbpcode deleted the dev-explicit-tags-grpc-context branch October 21, 2026 03:36
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