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

Improve error raised when opentelemetry.instrumentation.django is not installed #231

Merged

Conversation

deepakdinesh1123
Copy link
Contributor

I was looking through the logfire integrations with frameworks and libraries and found that a ModuleNotFoundError was not being raised in the django integration so I have added it here.

logfire/_internal/integrations/django.py Outdated Show resolved Hide resolved
tests/otel_integrations/test_django.py Outdated Show resolved Hide resolved
@alexmojaki
Copy link
Contributor

Thanks! We should probably make something general like this for the other instrument_ methods.

@alexmojaki alexmojaki enabled auto-merge (squash) June 3, 2024 20:06
Copy link

codecov bot commented Jun 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@alexmojaki alexmojaki changed the title ModuleNotFoundError raised when opentelemetry.instrumentaion.django is not installed Improve error raised when opentelemetry.instrumentation.django is not installed Jun 3, 2024
@alexmojaki alexmojaki merged commit 7c217f0 into pydantic:main Jun 3, 2024
11 checks passed
@deepakdinesh1123 deepakdinesh1123 deleted the fix/instrumentation/django branch June 4, 2024 01:07
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