Documentation ¶
Overview ¶
Package trace implements a tracing system that can handle emitting large amounts of entries with minimal performance overhead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
Field holds a single key/value pair in a trace Entry.
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set manages the lifecycle of a set of Tracers.
When Tracer.Panic() is invoked on any of the tracers of this, the entries of all tracers in the set will be dumped as part of the panic message, ordered by timestamp.
func NewSet ¶
NewSet creates a new tracer Set.
Each Set has a number of 'tracers', each holding a different buffer of trace entries, and each retaining at most 'retain' entrier.
type Tracer ¶
type Tracer struct {
// contains filtered or unexported fields
}
Tracer holds a buffer of recent trace entries in a trace Registry.
Click to show internal directories.
Click to hide internal directories.