tracer

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

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

Instance generate the uuid for per goroutine, use to mark user requests.

func New

func New() *Instance

func (*Instance) Get

func (tracer *Instance) Get() (id string)

Get returns the uuid for this goroutine, it will generate a unique string if it doesn't exist'

func (*Instance) Release

func (tracer *Instance) Release()

Release remove the uuid of this goroutine

func (*Instance) Set

func (tracer *Instance) Set(id string)

Set sets the uuid for this goroutine

Jump to

Keyboard shortcuts

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