tracer

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractCtx added in v1.1.3

func ExtractCtx(message *kafka.Message) (opentracing.SpanContext, error)

func Headers added in v1.1.3

func Headers(ctx context.Context, msgHeaders []kafka.Header) []kafka.Header

func New

func New(cfg config.Jaeger) (opentracing.Tracer, io.Closer, error)

func Setup

func Setup(cfg config.Jaeger) (io.Closer, error)

func StartChildSpan added in v1.1.3

func StartChildSpan(ctx context.Context, name string) opentracing.Span

func StartSpan

func StartSpan(name string) opentracing.Span

func StartSpanFromMessage added in v1.1.3

func StartSpanFromMessage(name string, msg *kafka.Message) opentracing.Span

Types

type KafkaHeaders added in v1.1.3

type KafkaHeaders []kafka.Header

func (*KafkaHeaders) ForeachKey added in v1.1.3

func (h *KafkaHeaders) ForeachKey(handler func(key, val string) error) error

func (*KafkaHeaders) Set added in v1.1.3

func (h *KafkaHeaders) Set(key, val string)

Jump to

Keyboard shortcuts

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