Skip to main content

Module metrics

Module metrics 

Source

Structs§

CacheMetrics
Caller-bound metrics for native cache loading. No collectors are registered here. Requests count only try_get_with calls, including its cache hits and callers sharing another request’s load. Plain get calls are not counted. Loads count only loader futures actually polled by the backend; their difference is not a waiter count.
CacheSizeMetric
A byte metric with labels bound for one or more cache instances.
CacheSizeMetrics
Cache byte metrics combining manually maintained gauges and sampled cache weights. Sampling does not force backend maintenance or include pending loader values.
CacheSizeRegistration
Keeps a cache instance registered for size sampling while any owner remains.
CacheSizeSource 🔒
OperationGuard 🔒
Tracks an operation, recording cancellation if dropped before completion.
OperationMetrics
Metrics for one operation, with labels bound once when constructing a cache. Completion counters are mutually exclusive. Dropping an unfinished future is cancellation.