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 ¶
func (*ECSDataPointHasher) UpdateScope(pcommon.InstrumentationScope)
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)
Click to show internal directories.
Click to hide internal directories.