tracing

package
v5.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2020 License: AGPL-3.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartRootSpanByContext

func StartRootSpanByContext(ctx context.Context, operationName string) (opentracing.Span, context.Context)

func StartSpanWithParentByContext

func StartSpanWithParentByContext(ctx context.Context, operationName string) (opentracing.Span, context.Context)

Types

type LogrusAdapter

type LogrusAdapter struct {
}

func (LogrusAdapter) Error

func (LogrusAdapter) Error(msg string)

Error - logrus adapter for span errors

func (LogrusAdapter) Infof

func (LogrusAdapter) Infof(msg string, args ...interface{})

Infof - logrus adapter for span info logging

type Tracer

type Tracer struct {
	// contains filtered or unexported fields
}

Tracer is a wrapper around Jaeger OpenTracing client, used to properly de-initialize jaeger on exit

func New

func New() (*Tracer, error)

New instantiates Jaeger opentracing client with default options To override the defaults use environment variables listed here: https://github.com/jaegertracing/jaeger-client-go/blob/master/config/config.go

func (*Tracer) Close

func (t *Tracer) Close() error

Jump to

Keyboard shortcuts

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