Skip to content

AwsLambda instrumentation not compatible with path based handlers. #3733

@akats7

Description

@akats7

Creating an issue to track this before opening a PR.

The AwsLambda Instrumentation attempts to load the lambda handler with import_module which if the user sets the handler with slashes instead of dots will cause the lambda error out. Both the lambda interfaces's bootstrap.sh and the otel_wrapper script in the layer replace the slashes with dots. Due to this, especially the fact that boostrap does the replacement, this change seems free of side effects.

I will open a PR if there are no concerns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions