Message Fields in Depth¶
A number of fields are reserved by Eliot’s built-in message structure and should not be added to messages you create.
All messages contain
Each message is uniquely identified by the combined values in these fields.
For more information see the actions and tasks documentation.
In addition, the following field will also be present:
timestamp: Number of seconds since Unix epoch as a
float(the output of
time.time()). Since system time may move backwards and resolution may not be high enough this cannot be relied on for message ordering.
Assuming you are using
ActionType every logged message will have either
action_type fields depending whether they originated as a standalone message or as the start or end of an action.
Present in regular messages:
message_type: The type of the message, e.g.
Present in action messages:
action_type: The type of the action, e.g.
action_status: One of
The following fields can be added to your messages, but should preserve the same meaning:
exception: The fully qualified Python name (i.e. import path) of an exception type, e.g.
reason: A prose string explaining why something happened. Avoid usage if possible, better to use structured data.
traceback: A string with a traceback.
system: A string, a subsystem in your application, e.g.
It is recommended, but not necessary (and perhaps impossible across organizations) that fields with the same name have the same semantic content.