Add traffic stats and traceability #139

Open
opened 2024-01-07 19:59:04 +01:00 by pfm · 1 comment
Collaborator

Make it possible for the Lacre admin to inspect the runtime and retrieve statistics:

  • When was the most recent message processed?
  • How many messages has Lacre processed in last hour?
  • What was average processing time?

Also: consider making it easy to answer questions like:

  • Did we deliver a particular message?
  • Was it encrypted?
Make it possible for the Lacre admin to inspect the runtime and retrieve statistics: * When was the most recent message processed? * How many messages has Lacre processed in last hour? * What was average processing time? Also: consider making it easy to answer questions like: * Did we deliver a particular message? * Was it encrypted?
pfm added the
IDEA
label 2024-01-07 19:59:04 +01:00
Author
Collaborator

We could use logging for this purpose: set up a new logger with a handler that wouldn't send messages to syslog but to a dedicated log file, containing 1 line per each delivery attempt with a timestamp, recipient's address and delivery status (encryption success, encryption failure, cleartext because no key known).

We could include time of processing (number of milliseconds), and maybe value of the Message-Id heaader to maybe make it more transparent / auditable.

We could use `logging` for this purpose: set up a new logger with a handler that wouldn't send messages to syslog but to a dedicated log file, containing 1 line per each delivery attempt with a timestamp, recipient's address and delivery status (encryption success, encryption failure, cleartext because no key known). We could include time of processing (number of milliseconds), and *maybe* value of the Message-Id heaader to maybe make it more transparent / auditable.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Disroot/gpg-lacre#139
No description provided.