mirror of https://github.com/grpc/grpc-go.git
stats/opencensus: Handle PickerUpdated to avoid "Received unexpected stats" error (#7153)
This commit is contained in:
parent
34c76758b1
commit
34de5cf483
|
|
@ -122,9 +122,9 @@ func recordRPCData(ctx context.Context, s stats.RPCStats, mi *metricsInfo) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
switch st := s.(type) {
|
switch st := s.(type) {
|
||||||
case *stats.InHeader, *stats.OutHeader, *stats.InTrailer, *stats.OutTrailer:
|
case *stats.InHeader, *stats.OutHeader, *stats.InTrailer, *stats.OutTrailer, *stats.PickerUpdated:
|
||||||
// Headers and Trailers are not relevant to the measures, as the
|
// Headers, Trailers, and picker updates are not relevant to the measures,
|
||||||
// measures concern number of messages and bytes for messages. This
|
// as the measures concern number of messages and bytes for messages. This
|
||||||
// aligns with flow control.
|
// aligns with flow control.
|
||||||
case *stats.Begin:
|
case *stats.Begin:
|
||||||
recordDataBegin(ctx, mi, st)
|
recordDataBegin(ctx, mi, st)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue