logtrace

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendKeyValue

func AppendKeyValue(ctx context.Context, key, value string) bool

Ctx add k,v

func AppendLogTraceMetadataContext

func AppendLogTraceMetadataContext(ctx context.Context, metadata map[string]string) context.Context

metadata转ctx

func AppendNewRpcId

func AppendNewRpcId(ctx context.Context) bool

Append RpcId 1.1.1=>1.1.1.0

func ExtractTraceNodeToXexContext

func ExtractTraceNodeToXexContext(ctx context.Context) context.Context

func GetMetadataKey

func GetMetadataKey() string

context key

func IncrementRpcId

func IncrementRpcId(ctx context.Context) bool

Incr RpcId 1.1.1=>1.1.2

func InjectMetadata

func InjectMetadata(ctx context.Context, mapPtr *map[string]string) bool

TraceNode add other kv

func InjectTraceNodeToRpcx

func InjectTraceNodeToRpcx(ctx context.Context) context.Context

func NewTraceId

func NewTraceId() string

Types

type TraceNode

type TraceNode struct {
	// contains filtered or unexported fields
}

func ExtractTraceNodeFromXesContext

func ExtractTraceNodeFromXesContext(ctx context.Context) *TraceNode

Get TraceNode

func GenLogTraceMetadata

func GenLogTraceMetadata() *TraceNode

InitTraceNode

func NewTraceNode

func NewTraceNode() *TraceNode

func (*TraceNode) ForkMap

func (this *TraceNode) ForkMap() map[string]string

func (*TraceNode) Get

func (this *TraceNode) Get(key string) string

func (*TraceNode) Set

func (this *TraceNode) Set(key, val string)

Jump to

Keyboard shortcuts

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