tracing

package
v0.0.0-...-39992ae Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractEventsSpan

func ExtractEventsSpan(tracer opentracing.Tracer, m *kafka.Message) (opentracing.SpanContext, error)

func ExtractGrpcSpan

func ExtractGrpcSpan(tracer opentracing.Tracer, ctx context.Context) (opentracing.SpanContext, error)

func ExtractHttpSpan

func ExtractHttpSpan(tracer opentracing.Tracer, r *http.Request) (opentracing.SpanContext, error)

func InjectEventsSpan

func InjectEventsSpan(span opentracing.Span, m *kafka.Message) error

func InjectGrpcSpan

func InjectGrpcSpan(span opentracing.Span, ctx context.Context) (context.Context, error)

func InjectHttpSpan

func InjectHttpSpan(span opentracing.Span, request *http.Request) error

func NewTracer

func NewTracer(ctx context.Context, c *config.Config, logger *zap.Logger) (opentracing.Tracer, error)

func StartSpanFromEventsRequest

func StartSpanFromEventsRequest(tracer opentracing.Tracer, m *kafka.Message) opentracing.Span

func StartSpanFromGrpcRequest

func StartSpanFromGrpcRequest(tracer opentracing.Tracer, ctx context.Context) opentracing.Span

func StartSpanFromHttpRequest

func StartSpanFromHttpRequest(tracer opentracing.Tracer, r *http.Request) opentracing.Span

Types

type JaegerLogger

type JaegerLogger interface {
	Error(msg string)
	Debug(msg string)
	Infof(msg string, args ...interface{})
}

func NewJeagerLogger

func NewJeagerLogger(l *zap.Logger) JaegerLogger

Jump to

Keyboard shortcuts

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