forked from open-telemetry/opentelemetry-python-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Use the lambda runtime as parent context as opt-in
In a previous PR open-telemetry#1657 the lambda behaviour was changed so that it extracs the context from the headers of the lambda event instead of from the lambda runtime, using the _X_AMZN_TRACE_ID env var. This behaviour is undesireble as it is a breaking change to existing users. This PR will add the previous behaviour through an opt-in flag so that users can be gracefully migrated or these two "modes" of operation can exist without conflict. Signed-off-by: Raphael Silva <rapphil@gmail.com>
- Loading branch information
Showing
2 changed files
with
122 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters