cache_encryption
Telemetry reporters for the cache encryption key lookup and sweep.
Each logs one event through telemetry_logger and never raises.
Module
Functions
report_cache_encryption_key
def report_cache_encryption_key( resolution: CacheKeyResolution, *, enforced: bool, desktop_app: bool, enabled: bool | None,) ‑> None:Report how the cache key lookup went. Never raises.
Arguments
resolution: The lookup's result. Only its codes, its key's public id and its duration are reported.enforced: Whether this release refuses to run without a key.desktop_app: Whether the desktop app started this process.enabled:BITFOUNT_CACHE_ENCRYPTION_ENABLEDas set, orNonewhen it is unset and the release default applies.
report_cache_encryption_migration
def report_cache_encryption_migration( store_type: StoreType, result: MigrationResult,) ‑> None:Report what the sweep did with one store. Never raises.
Arguments
store_type: What the store is.result: The migration's outcome. Its path is never part of it.
report_cache_encryption_sweep
def report_cache_encryption_sweep(summary: SweepSummary) ‑> None:Report one cache encryption sweep's counts. Never raises.
Arguments
summary: The sweep's counts and settings.