tracer

package
v0.0.0-...-da49796 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTraceIdName  = "trace_id"
	DefaultSpanIdName   = "span_id"
	DefaultParentIdName = "parent_id"
	DefaultSeparator    = ":"
)

Variables

View Source
var LogTraceKey struct{} //格式 traceid:spanid:parentid  46b1506e7332f7c1:7f75737aa70629cc:3bb947500f42ad71
View Source
var NoTracerInfo = errors.New("no trace info")

Functions

func GetTraceInfo

func GetTraceInfo(ctx context.Context) map[string]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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