mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-07 13:22:43 +02:00
internal/telemetry: fix grpc server stats (#2811)
This commit is contained in:
parent
e2e0646f70
commit
54ec88fb93
1 changed files with 3 additions and 1 deletions
|
@ -67,7 +67,9 @@ func (h *GRPCServerStatsHandler) TagRPC(ctx context.Context, tagInfo *grpcstats.
|
||||||
trace.WithSpanKind(trace.SpanKindServer))
|
trace.WithSpanKind(trace.SpanKindServer))
|
||||||
}
|
}
|
||||||
|
|
||||||
metricCtx := h.metricsHandler.TagRPC(ctx, tagInfo)
|
// ocgrpc's TagRPC must be called to attach the context rpcDataKey correctly
|
||||||
|
// https://github.com/census-instrumentation/opencensus-go/blob/bf52d9df8bb2d44cad934587ab946794456cf3c8/plugin/ocgrpc/server_stats_handler.go#L45
|
||||||
|
metricCtx := h.metricsHandler.TagRPC(h.Handler.TagRPC(ctx, tagInfo), tagInfo)
|
||||||
return metricCtx
|
return metricCtx
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue