Documentation
¶
Index ¶
- func ActiveSpan(ctx context.Context) ot.Span
- func ExtractOTHeadersFromContext(ctx context.Context) *metadata.MD
- func GRPCClientOptions() []grpc.DialOption
- func GRPCServerOptions() []grpc.ServerOption
- func GlobalTracer() ot.Tracer
- func InitGlobalTracer(name string)
- func StartChildSpan(childSpan ot.Span, name string) ot.Span
- func StartSpan(ctx context.Context, name string) (ot.Span, context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActiveSpan ¶
ActiveSpan gets the current span from the context
func ExtractOTHeadersFromContext ¶
ExtractOTHeadersFromContext creates metadata from Zipkin B3 propagation HTTP headers
func GRPCClientOptions ¶
func GRPCClientOptions() []grpc.DialOption
GRPCClientOptions applies interceptors for tracing on GRPC clients
func GRPCServerOptions ¶
func GRPCServerOptions() []grpc.ServerOption
GRPCServerOptions applies interceptors for tracing on GRPC servers
func GlobalTracer ¶
GlobalTracer returns the global instance of the Jaeger tracer
func InitGlobalTracer ¶
func InitGlobalTracer(name string)
InitGlobalTracer applies a jaeger based global tracer
func StartChildSpan ¶
StartChildSpan is a wrapper method to start a subspan
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.