When we debug (especially long sql request), it is important to be able to isolate in a log stream all logs related to a given http request. Then applying a filter on the log stream would be easy.
Subtasks
[ ] add a "attribute" in the logs unique per request
[ ] probably the http request has one already (in its header), would be nice to use this one if it exists
EDIT: request going through lambda should have a x-amzn-trace-id header that could be used for that, but we should find a way it in a way which does not hardcode this aws-specific header name in the code
Motivations
When we debug (especially long sql request), it is important to be able to isolate in a log stream all logs related to a given http request. Then applying a filter on the log stream would be easy.
Subtasks
For instance, currently the attributes are:
EDIT: request going through lambda should have a
x-amzn-trace-id
header that could be used for that, but we should find a way it in a way which does not hardcode this aws-specific header name in the code