- Audit trails: Track who made changes and from where
- Debugging: Add request IDs and other debugging context
- Business context: Include business-specific metadata about changes
- Change grouping: Group related changes across tables
How it works
Transaction annotations are JSON objects that you attach to a transaction. Any changes that occur within that transaction following the annotation statement will include the annotations in their metadata. To set annotations:metadata.transaction_annotations
field of all messages in that transaction: