You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We have a decorator that injects a new argument to the lambda_handler and this is not compatible with the current implementation of the Tracer.capture_lambda_handler, as it calls the passed lambda_handler with the standar event and context arguments only.
Describe the solution you'd like
Allow other decorators to add new arguments to the lambda_handler and pass **kwargs in addition to the event and context variables to the lambda_handler call.
Describe alternatives you've considered
Can the Tracer.capture_lambda_handler be changed not to call the lambda_handler, but pass down the decorated function with the tracer instance?