trace

package
v0.0.0-...-e120e2b Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderTraceReqId = "trace-req-id"
	HeaderTraceUid   = "trace-uid"
)

Variables

This section is empty.

Functions

func Clean

func Clean()

func GetMetadata

func GetMetadata(goId ...int64) metadata.MD

func GetReqId

func GetReqId(inputId ...int64) string

func GetUid

func GetUid() (ret dt.ID)

func GoRun

func GoRun(f func())

func GoRunWithContext

func GoRunWithContext(ctx context.Context, f func(ctx context.Context))

func InitContext

func InitContext(initMetadata ...metadata.MD)

func InitReqId

func InitReqId(reqId ...string)

func SetUid

func SetUid(uid dt.ID)

func Wait

func Wait()

func WithContext

func WithContext(ctx context.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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