tracing

package
v0.0.0-...-8b4ae58 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JaegerTracer

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

JaegerTracer wraps an opentracing tracer with a jaeger reporter.

func (JaegerTracer) Close

func (jt JaegerTracer) Close() error

Close closes the tracer.

func (JaegerTracer) Extract

func (jt JaegerTracer) Extract(format interface{}, carrier interface{}) (opentracing.SpanContext, error)

Extract wraps Extract.

func (JaegerTracer) Inject

func (jt JaegerTracer) Inject(sm opentracing.SpanContext, format interface{}, carrier interface{}) error

StartSpan wraps Inject.

func (JaegerTracer) StartSpan

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

StartSpan wraps StartSpan.

type Tracer

type Tracer interface {
	StartSpan(operationName string, opts ...opentracing.StartSpanOption) opentracing.Span
	Inject(sm opentracing.SpanContext, format interface{}, carrier interface{}) error
	Extract(format interface{}, carrier interface{}) (opentracing.SpanContext, error)
	Close() error
}

Tracer defines the open tracing interface.

func NewJaegerTracer

func NewJaegerTracer(serviceName, reporterHostName, reporterPort string) (Tracer, error)

NewJaegerTracer returns a traces with defaults.

Jump to

Keyboard shortcuts

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