Closed anze3db closed 1 month ago
Thanks for the report. Now and then our backend has problems that we're still working on, but I hadn't seen any signs of such a consistent and high error rate. Has it been like that since the beginning, and is it still like that now?
I've added some more retrying to the SDK in https://github.com/pydantic/logfire/pull/214 and released, please can you upgrade logfire and see if that helps?
The error rate has been very consistent since I configured Logfire, but I had to turn it off yesterday because I was running out of issue quota on sentry. I've reenabled now and I'll let you know if it happens again.
PS: I think you need to add structlog
as a dependency for logfire. I had to install it manually to get around this exception:
import logfire
File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/logfire/__init__.py", line 20, in <module>
from .integrations.structlog import LogfireProcessor as StructlogProcessor
File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/logfire/integrations/structlog.py", line 3, in <module>
from structlog.types import EventDict, WrappedLogger
ModuleNotFoundError: No module named 'structlog'
PS: I think you need to add structlog as a dependency for logfire. I had to install it manually to get around this exception:
woops, that's not meant to be imported eagerly, thanks for pointing it out. I've released a fix for that.
Great, I've redeployed the new version and everything looks good! I also haven't seen any timeout issues, so I think my issue is resolved so I'm closing it.
Thank you for fixing this so quickly!
Description
I have installed logfire in my Django app that I have running on my Raspberry Pi. From what I can tell the logs are all showing up correctly in Logfire, but I'm constantly seeing exceptions in Sentry.
Raw stack trace for the exception that's most common:
Let me know if I can share anything else to help debug this!
Python, Logfire & OS Versions, related packages (not required)