Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NH-88067 setdefault for disabling aws-lambda if outside lambda #405

Merged
merged 2 commits into from
Aug 6, 2024

Conversation

tammy-baylis-swi
Copy link
Contributor

@tammy-baylis-swi tammy-baylis-swi commented Aug 6, 2024

Updates distro setdefault to disable aws-lambda (AwsLambdaInstrumentor) if outside lambda environment. Users can still set OTEL_PYTHON_DISABLED_INSTRUMENTATIONS, but if they do then they need to add aws-lambda to the list.

The config that include aws-lambda stops incorrect load_instrumentor calls by upstream auto-instrumentation if outside of lambda, which would give these uncomfortable logs:

Aug 02 04:51:29 PM [django-app-a-ot] Instrumenting of aws-lambda failed
Aug 02 04:51:29 PM [django-app-a-ot] Failed to auto initialize opentelemetry

Added tox test passes on this PR. See ticket comment for manual testing.

@tammy-baylis-swi tammy-baylis-swi marked this pull request as ready for review August 6, 2024 19:33
@tammy-baylis-swi tammy-baylis-swi requested a review from a team as a code owner August 6, 2024 19:33
Copy link
Contributor

@cheempz cheempz left a comment

Choose a reason for hiding this comment

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

👍

@tammy-baylis-swi tammy-baylis-swi merged commit 562e7fd into main Aug 6, 2024
15 of 19 checks passed
@tammy-baylis-swi tammy-baylis-swi deleted the NH-88067-setdefault-disable-aws-lambda-inst branch August 6, 2024 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants