MCPcopy Create free account
hub / github.com/codealong-dev/ride-sharing / DialOptionsWithTracing

Function DialOptionsWithTracing

shared/tracing/grpc.go:16–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14}
15
16func DialOptionsWithTracing() []grpc.DialOption {
17 return []grpc.DialOption{
18 grpc.WithStatsHandler(newClientHandler()),
19 }
20}
21
22func newClientHandler() stats.Handler {
23 return otelgrpc.NewClientHandler(otelgrpc.WithTracerProvider(otel.GetTracerProvider()))

Callers 2

NewDriverServiceClientFunction · 0.92
NewTripServiceClientFunction · 0.92

Calls 1

newClientHandlerFunction · 0.85

Tested by

no test coverage detected