metricgroup

package
v0.133.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataPointHasher

type DataPointHasher interface {
	UpdateResource(pcommon.Resource)
	UpdateScope(pcommon.InstrumentationScope)
	UpdateDataPoint(datapoints.DataPoint)
	HashKey() HashKey
}

DataPointHasher is an interface for hashing data points by their identity, for grouping into a single document.

type ECSDataPointHasher

type ECSDataPointHasher struct {
	// contains filtered or unexported fields
}

ECSDataPointHasher caches resource and data point, and computes a hash on HashKey as data point attributes overwrite resource attributes in ECS mode because they are all stored at root level.

func (*ECSDataPointHasher) HashKey

func (h *ECSDataPointHasher) HashKey() HashKey

func (*ECSDataPointHasher) UpdateDataPoint

func (h *ECSDataPointHasher) UpdateDataPoint(dp datapoints.DataPoint)

func (*ECSDataPointHasher) UpdateResource

func (h *ECSDataPointHasher) UpdateResource(resource pcommon.Resource)

func (*ECSDataPointHasher) UpdateScope

type HashKey

type HashKey struct {
	// contains filtered or unexported fields
}

HashKey is a struct for comparing data point identity.

type OTelDataPointHasher

type OTelDataPointHasher struct {
	// contains filtered or unexported fields
}

OTelDataPointHasher computes a hash for each of resource, scope and data point on each Update call, to avoid wasteful hashing and sorting on data point sharing the same resource and scope.

func (*OTelDataPointHasher) HashKey

func (h *OTelDataPointHasher) HashKey() HashKey

func (*OTelDataPointHasher) UpdateDataPoint

func (h *OTelDataPointHasher) UpdateDataPoint(dp datapoints.DataPoint)

func (*OTelDataPointHasher) UpdateResource

func (h *OTelDataPointHasher) UpdateResource(resource pcommon.Resource)

func (*OTelDataPointHasher) UpdateScope

func (h *OTelDataPointHasher) UpdateScope(scope pcommon.InstrumentationScope)

Jump to

Keyboard shortcuts

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