bref
bref copied to clipboard
Expose Lambda request ID and trace ID to environment variables
Expose these new environment variables on every invocation:
_X_AMZN_TRACE_IDis a standard AWS Lambda variable that contains the X-Ray trace ID (it is exposed by default on native runtimes)LAMBDA_REQUEST_IDnow contains the current AWS Lambda request ID
These can then be used in logs to group logs of the same invocation.