tracing

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SpanID

func SpanID(ctx context.Context) string

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

func TraceID(ctx context.Context) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL