tracing

package
v0.0.0-...-4e41393 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 33

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientInterceptor

func ClientInterceptor(tracer opentracing.Tracer) grpc.UnaryClientInterceptor

func CloseQuietly

func CloseQuietly(closer io.Closer)

func GlobalClientInterceptor

func GlobalClientInterceptor() grpc.DialOption

func GlobalServerInterceptor

func GlobalServerInterceptor() grpc.ServerOption

func GlobalTracer

func GlobalTracer() opentracing.Tracer

func NewGlobalTracer

func NewGlobalTracer(service string) (io.Closer, error)

func NewTracer

func NewTracer(service string) (opentracing.Tracer, io.Closer, error)

func ServerInterceptor

func ServerInterceptor(tracer opentracing.Tracer) grpc.UnaryServerInterceptor

func SetGlobalTracer

func SetGlobalTracer(tracer opentracing.Tracer)

func StartSpan

func StartSpan(
	operationName string, opts ...opentracing.StartSpanOption,
) opentracing.Span

func StartSpanFromContext

func StartSpanFromContext(
	ctx context.Context, operationName string, opts ...opentracing.StartSpanOption,
) (opentracing.Span, context.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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