Skip to content

Conversation

@wangzlei
Copy link
Contributor

@wangzlei wangzlei commented Dec 5, 2025

Issue #, if available:

When using the OpenTelemetry Django instrumentation, users must set the DJANGO_SETTINGS_MODULE environment variable before Python starts. Otherwise, Django will fail to launch because it cannot locate the required settings module.

Description of changes:
In the ADOT distribution, we can add logic so that if Django is installed, the Django instrumentation is enabled only when the DJANGO_SETTINGS_MODULE environment variable is present.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@wangzlei wangzlei requested a review from a team as a code owner December 5, 2025 22:03
@wangzlei wangzlei added the skip changelog doesn't need a CHANGELOG entry label Dec 5, 2025
@wangzlei wangzlei removed the skip changelog doesn't need a CHANGELOG entry label Dec 5, 2025
@wangzlei wangzlei enabled auto-merge (squash) December 5, 2025 22:24
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.

1 participant