Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ServiceName is our service name in external tracing and metrics services.
ServiceName = "nri-resource-policy"
)
Variables ¶
View Source
var ( // Attribute allows setting up identity without an import of tracing. Attribute = tracing.Attribute )
Functions ¶
func GetHTTPMux ¶
GetHTTPMux returns our HTTP request mux for external services.
func RegisterGatherer ¶
RegisterGatherer registers a prometheus metrics gatherer.
func SetIdentity ¶
func SetIdentity(attrs ...KeyValue)
SetIdentity sets (extra) process identity attributes for tracing.
Types ¶
type Sampling ¶
type Sampling float64
Sampling defines how often trace samples are taken.
func (Sampling) MarshalJSON ¶
MarshalJSON is the JSON marshaller for Sampling values.
func (*Sampling) UnmarshalJSON ¶
UnmarshalJSON is the JSON unmarshaller for Sampling values.
Click to show internal directories.
Click to hide internal directories.