zipkin-go-opentracing – github.com/openzipkin-contrib/zipkin-go-opentracing Index | Files

package zipkintracer

import "github.com/openzipkin-contrib/zipkin-go-opentracing"

Index

Variables

var Delegator delegatorType

Delegator is the format to use for DelegatingCarrier.

Functions

func Wrap

func Wrap(tr *zipkin.Tracer, opts ...TracerOption) opentracing.Tracer

Wrap receives a zipkin tracer and returns an opentracing tracer

Types

type B3InjectOption

type B3InjectOption int

B3InjectOption type holds information on B3 injection style when using native OpenTracing HTTPHeadersCarrier.

const (
	B3InjectStandard B3InjectOption = iota
	B3InjectSingle
	B3InjectBoth
)

Available B3InjectOption values

type DelegatingCarrier

type DelegatingCarrier interface {
	State() (model.SpanContext, error)
	SetState(model.SpanContext) error
}

DelegatingCarrier is a flexible carrier interface which can be implemented by types which have a means of storing the trace metadata and already know how to serialize themselves

type FinisherWithDuration

type FinisherWithDuration interface {
	FinishedWithDuration(d time.Duration)
}

FinisherWithDuration allows to finish span with given duration

type SpanContext

type SpanContext model.SpanContext

SpanContext holds the basic Span metadata.

func (SpanContext) ForeachBaggageItem

func (c SpanContext) ForeachBaggageItem(handler func(k, v string) bool)

ForeachBaggageItem belongs to the opentracing.SpanContext interface

type TracerOption

type TracerOption func(opts *TracerOptions)

TracerOption allows for functional options. See: http://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis

func WithB3InjectOption

func WithB3InjectOption(b3InjectOption B3InjectOption) TracerOption

WithB3InjectOption sets the B3 injection style if using the native OpenTracing HTTPHeadersCarrier

func WithObserver

func WithObserver(observer otobserver.Observer) TracerOption

WithObserver assigns an initialized observer to opts.observer

type TracerOptions

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

TracerOptions allows creating a customized Tracer.

Source Files

context.go propagation.go span.go tracer.go tracer_options.go

Version
v0.5.0 (latest)
Published
Oct 11, 2022
Platform
linux/amd64
Imports
13 packages
Last checked
1 week ago

Tools for package owners.