Expand description
Per-request observability for calls to Suotar.
Bodies must be scrubbed with crate::credit_registration_events::scrub_suotar_body before
insert; credit_registration_ids replaces the removed identifiers for drill-down.
Structs§
Enums§
Constants§
- BODY_
SAMPLE_ MAX_ BYTES - Hard cap on a stored body, applied after sampling.
- FULL_
BODY_ ITEM_ LIMIT - Bodies are sampled in full up to this many items.
- RETENTION_
DAYS - How long call rows are kept.
- SAMPLED_
BODY_ ITEM_ COUNT - Above
FULL_BODY_ITEM_LIMIT, only this many items are kept plus a count.
Functions§
- delete_
older_ than - Hard-deletes rows past the retention window: the stored bodies must stop existing.
- get_
by_ credit_ registration_ id - Calls that mention a ledger row, for the per-item drill-down.
- get_
by_ id - get_
recent - get_
recent_ by_ endpoint - get_
recent_ failures - insert