tracer

package
v2.0.4+incompatible Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: GPL-3.0 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:1

定义日志中Trace的key

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