Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ring ¶
type Ring struct {
// contains filtered or unexported fields
}
Ring is a fixed size ring buffer of completed traces. The slots are allocated once and rewritten in place, so retention costs no allocation per trace. It is not safe for concurrent use; the tracer holds its lock around every call.
func (*Ring) List ¶
List returns the retained traces, newest first. The pointers alias the ring slots, so they are valid until the next Push; callers copy the values out under the lock they hold around every call.
Click to show internal directories.
Click to hide internal directories.