pydantic / logfire

Uncomplicated Observability for Python and beyond! 🪵🔥
https://docs.pydantic.dev/logfire/
MIT License
1.62k stars 46 forks source link

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

Closed deepakdinesh1123 closed 3 weeks ago

deepakdinesh1123 commented 3 weeks ago

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.

alexmojaki commented 3 weeks ago

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

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:loudspeaker: Thoughts on this report? Let us know!