jaeger

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FieldLogID   = "Log-Id"
	FieldTraceID = "Trace-Id"
	FieldSpanID  = "Span-Id"
)
View Source
const (
	LogFieldsRequest  = "request"
	LogFieldsResponse = "response"
	LogFieldsArgs     = "args"
)

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 SetCommonTag

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

func SetError

func SetError(span opentracing.Span, err error)

func SetRequest added in v1.0.23

func SetRequest(span opentracing.Span, request string)

func SetResponse

func SetResponse(span opentracing.Span, resp string)

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