Documentation ¶
Index ¶
Constants ¶
View Source
const ( UnprocessedServiceOperationValue = "AllOtherOperations" UnprocessedRemoteServiceOperationValue = "AllOtherRemoteOperations" )
Variables ¶
This section is empty.
Functions ¶
func RegisterDefaultHashFuncs ¶
func RegisterDefaultHashFuncs(cms *CountMinSketch)
Types ¶
type CountMinSketch ¶
type CountMinSketch struct {
// contains filtered or unexported fields
}
func NewCountMinSketch ¶
func NewCountMinSketch(depth, width int, hashFuncs ...CountMinSketchHashFunc) *CountMinSketch
func (*CountMinSketch) Get ¶
func (cms *CountMinSketch) Get(obj CountMinSketchEntry) int
func (*CountMinSketch) Insert ¶
func (cms *CountMinSketch) Insert(obj CountMinSketchEntry)
func (*CountMinSketch) RegisterHashFunc ¶
func (cms *CountMinSketch) RegisterHashFunc(hashFuncs ...CountMinSketchHashFunc)
type CountMinSketchEntry ¶
type CountMinSketchHashFunc ¶
type Limiter ¶
type Limiter interface {
Admit(name string, attributes, resourceAttributes pcommon.Map) (bool, error)
}
func NewMetricsLimiter ¶
func NewMetricsLimiter(config *config.LimiterConfig, logger *zap.Logger) Limiter
type MetricData ¶
type MetricData struct {
// contains filtered or unexported fields
}
MetricData represents a key-value pair.
func (MetricData) Frequency ¶
func (m MetricData) Frequency() int
func (MetricData) HashKey ¶
func (m MetricData) HashKey() string
Click to show internal directories.
Click to hide internal directories.