openzipkin

package
v2.9.0-beta3-crd+incom... Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "zipkin"

Variables

This section is empty.

Functions

func NewTracer

func NewTracer(zip *zipkin.Tracer) *zipkinTracer

Types

type Config

type Config struct {
	Reporter Reporter `json:"reporter"`
	Sampler  Sampler  `json:"sampler"`
}

func Load

func Load(opts map[string]interface{}) (*Config, error)

type Reporter

type Reporter struct {
	URL        string `json:"url"`
	BatchSize  int    `json:"batch_size"`
	MaxBacklog int    `json:"max_backlog"`
}

type Sampler

type Sampler struct {
	Name string  `json:"name"`
	Rate float64 `json:"rate"`
	Salt int64   `json:"salt"`
	Mod  uint64  `json:"mod"`
}

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