Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Meter metric.Meter
View Source
var Tracer trace.Tracer
Functions ¶
func InitTracing ¶
func InitTracing(ctx context.Context, config *TracingConfig) (err error)
func ServerGrpcInterceptor ¶
func ServerGrpcInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
ServerGrpcInterceptor is a gRPC server interceptor for tracing and optional metadata-based context enhancement.
Types ¶
type TracingConfig ¶
Click to show internal directories.
Click to hide internal directories.