Loguru Integration sets invalid level values on event
How do you use Sentry?
Sentry Saas (sentry.io)
Version
1.41.0
Steps to Reproduce
N/A
Expected Result
The Loguru integration only should set valid level values on the event and breadcrumb objects. The only valid values, according to the docs, are "fatal", "error", "warning", "info", and "debug". Relay additionally recognizes "log" and "critical" as aliases for "info" and "fatal", respectively.
Actual Result
The Loguru integration sometimes sets the event or breadcrumb level to "trace" or "success" – both of which are invalid values that Relay will reject.
See also https://github.com/getsentry/sentry-python/issues/2759
We could either add the new levels to relay or preprocess them in the SDK somehow (e.g., change trace to debug).
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
Closing in favor of https://github.com/getsentry/sentry-python/issues/2759