Closed imjoehaines closed 5 months ago
This PR adds a decorator that wraps an AWS Lambda handler that:
event
context
Usage:
@bugsnag.aws_lambda_handler def my_handler(event, context): pass
The maximum time to wait for events and sessions to be delivered is configurable with the flush_timeout_ms parameter:
flush_timeout_ms
@bugsnag.aws_lambda_handler(flush_timeout_ms=1000) def my_handler(event, context): pass
Goal
This PR adds a decorator that wraps an AWS Lambda handler that:
event
andcontext
parameters as metadata, under the names "AWS Lambda Event" and `AWS Lambda Context"Usage:
The maximum time to wait for events and sessions to be delivered is configurable with the
flush_timeout_ms
parameter: