Skip to main content

Module suotar_api_calls

Module suotar_api_calls 

Source
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§

NewSuotarApiCall
SuotarApiCall

Enums§

SuotarEndpoint

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