stats/opencensus: Handle PickerUpdated to avoid "Received unexpected stats" error (#7153)

This commit is contained in:
Brad Town 2024-04-22 13:23:08 -07:00 committed by GitHub
parent 34c76758b1
commit 34de5cf483
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -122,9 +122,9 @@ func recordRPCData(ctx context.Context, s stats.RPCStats, mi *metricsInfo) {
return
}
switch st := s.(type) {
case *stats.InHeader, *stats.OutHeader, *stats.InTrailer, *stats.OutTrailer:
// Headers and Trailers are not relevant to the measures, as the
// measures concern number of messages and bytes for messages. This
case *stats.InHeader, *stats.OutHeader, *stats.InTrailer, *stats.OutTrailer, *stats.PickerUpdated:
// Headers, Trailers, and picker updates are not relevant to the measures,
// as the measures concern number of messages and bytes for messages. This
// aligns with flow control.
case *stats.Begin:
recordDataBegin(ctx, mi, st)