Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SpanID ¶
SpanID returns the context span's span id or blank if the context span does not exist or the context span has no span id.
func StreamInterceptor ¶
func StreamInterceptor(opts ...Option) grpc.StreamServerInterceptor
StreamInterceptor returns a grpc.StreamServerInterceptor that trace request.
func TraceID ¶
TraceID returns the context span's trace id or blank if the context span does not exist or the context span has no trace id.
func UnaryInterceptor ¶
func UnaryInterceptor(opts ...Option) grpc.UnaryServerInterceptor
UnaryInterceptor returns a grpc.UnaryServerInterceptor that trace request.
Types ¶
type Option ¶
type Option func(o *options)
Option is tracing option func.
func WithPropagator ¶
func WithPropagator(propagator propagation.TextMapPropagator) Option
WithPropagator returns an Option that configure otel tracing propagator.
Click to show internal directories.
Click to hide internal directories.