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

Function getCallInfo

stats/opentelemetry/opentelemetry.go:191–194  ·  view source on GitHub ↗

getCallInfo returns the callInfo stored in the context, or nil if there isn't one.

(ctx context.Context)

Source from the content-addressed store, hash-verified

189// getCallInfo returns the callInfo stored in the context, or nil
190// if there isn't one.
191func getCallInfo(ctx context.Context) *callInfo {
192 ci, _ := ctx.Value(callInfoKey{}).(*callInfo)
193 return ci
194}
195
196// rpcInfo is RPC information scoped to the RPC attempt life span client side,
197// and the RPC life span server side.

Callers 6

getOrCreateCallInfoFunction · 0.85
processRPCEventMethod · 0.85
processRPCEndMethod · 0.85
traceTagRPCMethod · 0.85
TagRPCMethod · 0.85
HandleRPCMethod · 0.85

Calls 1

ValueMethod · 0.45

Tested by

no test coverage detected