You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Motivation
Ref: #2444
gRFC A78 defines the XdsClient OpenTelemetry metrics, and #2669 added
the framework-agnostic `MetricsRecorder` extension point in `xds-client`
— but shipped no bundled backend. Every consumer therefore had to
implement the
trait by hand just to get the metrics into OpenTelemetry. This PR
provides that backend and exposes it through `tonic-xds`.
## Solution
Now an `OtelMetricsRecorder` is bundled when `otel` feature flag is
enabled. User can provide their own OTEL meter and the five A78
XdsClient metrics (`connected`, `server_failure`,
`resource_update_valid/invalid`, `resources`) are emitted through that
meter. This PR marks the completion of metrics support in `tonic-xds`
based on the currently supported xDS features.
## Out of Scope
A few gaps exist as compared to A78, all because of other unsupported
gRFCs:
1. `nached_but_cached` and `cache_state` are not emitted, pending A88
data-error caching.
2.`grpc.xds.authority` uses `#old` sentinel for now as xDS Federation is
not yet supported.
0 commit comments