mirror of
https://github.com/hanzoai/otel-collector.git
synced 2026-11-03 02:20:04 +00:00
- add metadata.yaml for all relevant components and use metadata - fix the go routine leaks in component code and tests - add TODO for handling errors wherever they are unchecked or not handled so the behaviour doesn't change - address lint for the most part (so we can enable it soon) except the metricexporter that is due to be deleted and semconv which I don't want to touch right now - other changes required for bump breaking changes to pay attention to - telemetry config, address and level removed and readers should be used - change in attributes for telemetry - metrics at detailed level - failures in embedded config (addressed) --------- Co-authored-by: Nityananda Gohain <[email protected]>
36 lines
1.6 KiB
Go
36 lines
1.6 KiB
Go
package metadataexporter
|
|
|
|
import (
|
|
"context"
|
|
|
|
"go.opentelemetry.io/collector/pipeline"
|
|
)
|
|
|
|
type KeyCache interface {
|
|
// AddAttrsToResource adds attribute fingerprints for a specific resource fingerprint,
|
|
// respecting the maximum cardinalities for resource count and attributes per resource.
|
|
AddAttrsToResource(ctx context.Context, resourceFp uint64, attrFps []uint64, ds pipeline.Signal) error
|
|
|
|
// AttrsExistForResource checks which of the given attrFps exist for the given resourceFp.
|
|
// Returns a parallel slice of booleans for each attrFp.
|
|
AttrsExistForResource(ctx context.Context, resourceFp uint64, attrFps []uint64, ds pipeline.Signal) ([]bool, error)
|
|
|
|
// Debug logs internal state (for debugging).
|
|
Debug(ctx context.Context)
|
|
|
|
// ResourcesLimitExceeded returns true if the resource limit has been exceeded.
|
|
ResourcesLimitExceeded(ctx context.Context, ds pipeline.Signal) bool
|
|
|
|
// CardinalityLimitExceeded returns true if the cardinality limit has been exceeded for the given resourceFp.
|
|
CardinalityLimitExceeded(ctx context.Context, resourceFp uint64, ds pipeline.Signal) bool
|
|
|
|
// CardinalityLimitExceededMulti returns true if the cardinality limit has been exceeded for given resourceFps.
|
|
// Returns a parallel slice of booleans for each resourceFp.
|
|
CardinalityLimitExceededMulti(ctx context.Context, resourceFps []uint64, ds pipeline.Signal) ([]bool, error)
|
|
|
|
// TotalCardinalityLimitExceeded returns true if the total cardinality limit has been exceeded.
|
|
TotalCardinalityLimitExceeded(ctx context.Context, ds pipeline.Signal) bool
|
|
|
|
Close(ctx context.Context) error
|
|
}
|