traceid

package
v1.43.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID uint64

ID helps distinguish specific object with unique IDs in Go stack traces.

Stack trace only prints integer arguments, so this ID is generated by converting a unique object ID to hex, and passing it explicitly as an argument to functions we want tagged. Just storing or logging it won't help.

func FromGUID

func FromGUID(id string) ID

FromGUID creates ID from a GUID in the format TYPE_<SOMEID>.

func FromString

func FromString(s string) ID

FromString creates ID from 8-byte prefix of a string. It does not make any assumptions about string format.

func (ID) String

func (id ID) String() string

Jump to

Keyboard shortcuts

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