tracer

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 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

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

func Headers

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

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

func StartSpan

func StartSpan(name string) opentracing.Span

func StartSpanFromMessage

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

Types

type KafkaHeaders

type KafkaHeaders []kafka.Header

func (*KafkaHeaders) ForeachKey

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

func (*KafkaHeaders) Set

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