Skip to content

Maintenance: Leverage new InvokeStore module to keep track of X-RAY trace id #4657

@svozza

Description

@svozza

Summary

The AWS Lambda team has released a new InvokeStore NPM module that allows us to retriece the X-RAY trace id from AsyncLocalStorage. It means there is now another source which we need to consider when computing the X-ray trace ID. We should use it as well.

Why is this needed?

This is needed to robustly compute the X-ray trace ID.

Which area does this relate to?

Other

Solution

Use InvokeStore module and update the common trace id calculation logic.

Acknowledgment

Future readers

Please react with 👍 and your use case to help us understand customer demand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    internalPRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.)pending-releaseThis item has been merged and will be released soon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions