attrs

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package attrs provides reusable OpenTelemetry attribute key constants to avoid duplication across middlewares. It defines telemetry attribute keys used for observability and monitoring across the hypercache system. These constants provide standardized key names for metrics, traces, and logs to ensure consistent telemetry data collection.

Index

Constants

View Source
const (
	// AttrKeyLength represents the telemetry attribute key for measuring the length
	// of a cache key in bytes. This metric helps monitor key size distribution
	// and identify potential performance impacts from oversized keys.
	AttrKeyLength = "key.len"
	// AttrKeysCount represents the telemetry attribute key for measuring the number
	// of cache keys being processed. This metric helps monitor the workload and
	// identify potential bottlenecks in key management.
	AttrKeysCount = "keys.count"
	// AttrResultCount represents the telemetry attribute key for measuring the number
	// of cache results returned. This metric helps monitor the effectiveness of cache
	// lookups and identify potential issues with cache population.
	AttrResultCount = "result.count"
	// AttrFailedCount represents the telemetry attribute key for measuring the number
	// of cache operations that failed. This metric helps monitor error rates and
	// identify potential issues with cache reliability.
	AttrFailedCount = "failed.count"
	// AttrExpirationMS represents the telemetry attribute key for measuring the expiration
	// time of cache items in milliseconds. This metric helps monitor cache item lifetimes
	// and identify potential issues with cache eviction policies.
	AttrExpirationMS = "expiration.ms"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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