MCPcopy
hub / github.com/grpc/grpc-go / newContextWithRecorderWrapper

Function newContextWithRecorderWrapper

orca/call_metrics.go:181–183  ·  view source on GitHub ↗
(ctx context.Context, r *recorderWrapper)

Source from the content-addressed store, hash-verified

179}
180
181func newContextWithRecorderWrapper(ctx context.Context, r *recorderWrapper) context.Context {
182 return context.WithValue(ctx, callMetricsRecorderCtxKey{}, r)
183}
184
185// wrappedStream wraps the grpc.ServerStream received by the streaming
186// interceptor. Overrides only the Context() method to return a context which

Callers 2

unaryIntFunction · 0.85
streamIntFunction · 0.85

Calls 1

WithValueMethod · 0.80

Tested by

no test coverage detected