opentracing

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Tracer opentracing.Tracer

Functions

func GetSpanID

func GetSpanID(span opentracing.Span) string

func GetTraceID

func GetTraceID(span opentracing.Span) string

func NewJaegerTracer

func NewJaegerTracer(connCfg *Config, serviceName string) (opentracing.Tracer, io.Closer, error)

func SetBasicTags added in v1.0.11

func SetBasicTags(ctx context.Context, span opentracing.Span)

func SetLogID added in v1.0.11

func SetLogID(ctx context.Context, span opentracing.Span)

func SetRequest

func SetRequest(span opentracing.Span, request interface{})

func SetResponse

func SetResponse(span opentracing.Span, response interface{})

func SetTraceTag added in v1.0.11

func SetTraceTag(ctx context.Context, span opentracing.Span)

Types

type Config

type Config struct {
	Host string
	Port string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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