Skip to content

Conversation

@rapphil
Copy link
Contributor

@rapphil rapphil commented Aug 15, 2023

Description

In a previous PR #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.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Unit tests

Does This PR Require a Core Repo Change?

  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

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>
Signed-off-by: Raphael Silva <rapphil@gmail.com>
@rapphil rapphil marked this pull request as ready for review August 15, 2023 06:07
@rapphil rapphil requested a review from a team August 15, 2023 06:07
Signed-off-by: Raphael Silva <rapphil@gmail.com>
OTEL_INSTRUMENTATION_AWS_LAMBDA_FLUSH_TIMEOUT = (
"OTEL_INSTRUMENTATION_AWS_LAMBDA_FLUSH_TIMEOUT"
)
OTEL_LAMBDA_USE_AWS_CONTEXT_PROPAGATION = "OTEL_LAMBDA_USE_AWS_CONTEXT_PROPAGATION"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this config name is misleading. Per open-telemetry/opentelemetry-specification#3212, x-ray propagation should often be used. The issue at hand is specific to the environment variable.

@rapphil
Copy link
Contributor Author

rapphil commented Aug 15, 2023

placing this on hold until we decide what the defaults should be.

@rapphil rapphil marked this pull request as draft August 15, 2023 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants