pydantic / logfire

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

Avoid importing gitpython #260

Closed alexmojaki closed 2 weeks ago

alexmojaki commented 2 weeks ago

https://pydantic.slack.com/archives/C05AF4A4WRM/p1718135501452089

import git is quite slow so this could improve startup time a bit in some cases. Even if somehow gitpython does this job better than using subprocess, this won't matter when .git isn't present, which it shouldn't be in production environments.

codecov[bot] commented 2 weeks ago

Codecov Report

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

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