Documentation ¶
Overview ¶
Package telemetry provides monitoring utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReportRuntime ¶
ReportRuntime starts a loop updating runtime metrics once every interval. Intended to be launched as a goroutine.
Types ¶
type Bandwidth ¶
func NewBandwidth ¶
type ResourceGauge ¶
type ResourceGauge struct {
// contains filtered or unexported fields
}
ResourceGauge counts and logs the number of a specific resource.
func (*ResourceGauge) Alloc ¶
func (r *ResourceGauge) Alloc()
Alloc records the addition of a resource.
type ResourceMetric ¶
type ResourceMetric interface { Alloc() Free() }
ResourceMetric records allocation and freeing of a resource.
func NewResourceMetric ¶
NewResourceMetric builds a new ResourceMetric recording stats on scope and logging to l.
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime reports goroutine and memory statistics exposed by the runtime package.
func NewRuntime ¶
NewRuntime constructs runtime metrics from the given scope.
Click to show internal directories.
Click to hide internal directories.