Skip to content

Add support in Tracer for additional arguments in the lambda_handler #242

Closed
@hanninen

Description

@hanninen

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions