()
| 41 | } |
| 42 | |
| 43 | func (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 | |
| 50 | func (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...) |