Skip to content

AWS Lambda event source key incorrect for SNS in instrumentation library. #2511

@mau-alex-ruiz

Description

@mau-alex-ruiz

Description
This line is checking for the key eventSource which will never be satisfied for SNS. Per AWS docs, the key is actually EventSource. The very simple fix would be to simply check for both eventSource and EventSource.

What is the expected behavior?
What did you expect to see?
span_kind for SNS event sources should be set to CONSUMER

What is the actual behavior?
span_kind for SNS event sources are being set to SERVER

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions