Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Getter ¶
type Getter interface {
GetPriority() Priority
}
Getter is an interface for structs that wish to indicate their Priority. For example, implemented by tracedata.TraceData to indicate its caching priority.
type Priority ¶
type Priority uint8
Priority indicates the priority of a sampling decision We use small uint8 type because it will be stored in cache Higher priority should be represented by higher integer value.
const ( // Low indicates that the trace has a low priority as it is unlikely to be sampled Low Priority // Unspecified indicates that the priority of a sampling decision has not been specified. Unspecified )
Click to show internal directories.
Click to hide internal directories.