Versions in this module Expand all Collapse all v1 v1.1.10 Dec 12, 2023 Changes in this version + type Monitor struct + func NewMonitor() (*Monitor, error) + func (m *Monitor) Close() error + func (m *Monitor) RecordNamespace(ns string, opt RecordOpt) (types.Recorder, error) + type NetworkSampler interface + Sample func() (*network.Sample, error) + type RecordOpt struct + NetworkSampler NetworkSampler + type Sampler struct + func NewSampler[T WithTimestamp](minInterval time.Duration, maxSamples int, cb func(time.Time) (T, error)) *Sampler[T] + func NewSysSampler() (*Sampler[*types.SysSample], error) + func (s *Sampler[T]) Close() error + func (s *Sampler[T]) Record() *Sub[T] + type Sub struct + func (s *Sub[T]) Close(captureLast bool) ([]T, error) + type SysSampler = Sub[*types.SysSample] + type WithTimestamp interface + Timestamp func() time.Time