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

Method initializeTraces

stats/opentelemetry/client_tracing.go:43–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43func (h *clientTracingHandler) initializeTraces() {
44 if h.options.TraceOptions.TracerProvider == nil {
45 log.Printf("TracerProvider is not provided in client TraceOptions")
46 return
47 }
48}
49
50func (h *clientTracingHandler) unaryInterceptor(ctx context.Context, method string, req, reply any, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {
51 ctx, _ = getOrCreateCallInfo(ctx, cc, method, opts...)

Callers 1

DialOptionFunction · 0.95

Calls 1

PrintfMethod · 0.65

Tested by

no test coverage detected