openzipkin

package
v2.9.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "zipkin"

Variables

This section is empty.

Functions

func Load

func Load(opts map[string]interface{}) (*config.ZipkinConfig, error)

Load retusn a zipkin configuration from the opts.

func NewTracer

func NewTracer(zip *zipkin.Tracer) *zipkinTracer

Types

type Span

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

func (Span) BaggageItem

func (Span) BaggageItem(restrictedKey string) string

func (Span) Context

func (s Span) Context() opentracing.SpanContext

func (Span) Finish

func (s Span) Finish()

func (Span) FinishWithOptions

func (s Span) FinishWithOptions(opts opentracing.FinishOptions)

func (Span) Log

func (s Span) Log(data opentracing.LogData)

func (Span) LogEvent

func (s Span) LogEvent(event string)

func (Span) LogEventWithPayload

func (s Span) LogEventWithPayload(event string, payload interface{})

func (Span) LogFields

func (s Span) LogFields(fields ...log.Field)

func (Span) LogKV

func (s Span) LogKV(alternatingKeyValues ...interface{})

func (Span) SetBaggageItem

func (s Span) SetBaggageItem(restrictedKey, value string) opentracing.Span

func (Span) SetOperationName

func (s Span) SetOperationName(operationName string) opentracing.Span

func (Span) SetTag

func (s Span) SetTag(key string, value interface{}) opentracing.Span

func (Span) Tracer

func (s Span) Tracer() opentracing.Tracer

type Tracer

type Tracer struct {
	opentracing.Tracer
	reporter.Reporter
}

func Init

func Init(service string, opts map[string]interface{}) (*Tracer, error)

func (Tracer) Name

func (Tracer) Name() string

Jump to

Keyboard shortcuts

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