trace

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxTraceId = 100000000
)

Variables

This section is empty.

Functions

func GenTraceId

func GenTraceId() (traceId string)

func GetTraceId

func GetTraceId(ctx context.Context) (traceId string)

func WithTraceId

func WithTraceId(ctx context.Context, traceId string) context.Context

Types

type MetadataTextMap

type MetadataTextMap metadata.MD

metadataTextMap extends a metadata.MD to be an opentracing textmap

func (MetadataTextMap) ForeachKey

func (m MetadataTextMap) ForeachKey(callback func(key, val string) error) error

ForeachKey is a opentracing.TextMapReader interface that extracts values.

func (MetadataTextMap) Set

func (m MetadataTextMap) Set(key, val string)

Set is a opentracing.TextMapReader interface that extracts values.

Jump to

Keyboard shortcuts

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