priority

package
v0.0.0-...-5f22753 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

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
)

func (Priority) String

func (p Priority) String() string

Jump to

Keyboard shortcuts

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