transmitter
transmitter
¶
Explicit submission of inspected envelopes; failures retain local data.
Classes¶
TelemetryTransmitter
¶
Lazy, bounded HTTP client. No receiver or background sending is configured.
A successful HTTP response acknowledges a whole batch. Retrying after a lost response may deliver duplicates; the receiver must handle that possibility.
Source code in src/marianne/telemetry/transmitter.py
Methods:¶
submit
async
¶
Check fresh consent at the network boundary; never raise into a run.
Source code in src/marianne/telemetry/transmitter.py
flush
async
¶
Return submitted count, zero for a no-op, or -1 on a retained failure.
Source code in src/marianne/telemetry/transmitter.py
MockTelemetryTransmitter
¶
Bases: TelemetryTransmitter
Network-free test double exercising the real consent and prune paths.