Skip to main content

Module telemetry

Module telemetry 

Source
Expand description

Cache telemetry integration.

This module provides telemetry recording for cache operations via the tracing crate and the handler callback API. Enable structured logging through the cache builder’s enable_logs() method.

Consumers can subscribe to cache events using a custom tracing_subscriber::Layer and the public constants in attributes, or register a handler::CacheEventHandler with the cache builder. See the telemetry_subscriber example for a complete demonstration.

Modules§

attributes
Public constants for cachet telemetry field names and event values.
handler
Callback-based telemetry handlers.

Structs§

CacheTelemetry
Cache telemetry provider.