trace

package
v1.3.26 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	IdKey = "Trace-Id" // trace header key

)

Variables

This section is empty.

Functions

func ClearTrace

func ClearTrace()

func CountTrace

func CountTrace() int64

func DelTraceId

func DelTraceId(key string) bool

func GenTraceId

func GenTraceId() string

func GetCache

func GetCache() *freecache.Cache

func GetGoIdTraceId

func GetGoIdTraceId() string

func GetTraceId

func GetTraceId(key string) string

func Go

func Go(f func())

func SetCacheSize

func SetCacheSize(size int)

func SetTraceId

func SetTraceId(key string, value string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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