trace

package
v1.124.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeLVA added in v1.84.0

func EncodeLVA(ids []string) []byte

See GetIdsChainLVA(), used in pair

Types

type BacktracePoint

type BacktracePoint struct {
	Id     string
	Detail any
}

Also used as an origin (cause) of the event

func BacktracePointf

func BacktracePointf(id string, format string, args ...any) *BacktracePoint

new backtrace point formatted

type EventTracingCounters

type EventTracingCounters []int

func (EventTracingCounters) CloneBranchSub

func (etc EventTracingCounters) CloneBranchSub() EventTracingCounters

func (EventTracingCounters) Inc

func (etc EventTracingCounters) Inc()

type Forwardtrace

type Forwardtrace struct {
	ETC  EventTracingCounters // []int
	Tags Tags                 // []string
}

func (*Forwardtrace) TagsStringWith

func (ft *Forwardtrace) TagsStringWith(tags ...string) string

faster alternative to the ...CloneWith("*****").String() idiom

type Tags

type Tags []string

Can be reported to metrics, be careful to NOT put in them high-cardinality IDs. Last elements are most specific, first ones are the least.

func (Tags) CloneWith

func (tags Tags) CloneWith(ss ...string) Tags

func (Tags) Last

func (tags Tags) Last(neg_i int) string

E.g. to get the one before last, use Last(-2); The purpose is to easily get the last tags, which are the most specific;

func (Tags) String

func (tags Tags) String() string

Jump to

Keyboard shortcuts

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