New beta feature: Sentry logs for Loguru (#4445) by @sentrivana
We can now capture Loguru logs and send them to Sentry.
import sentry_sdk
from sentry_sdk.integrations.loguru import LoguruIntegration
# Setup Sentry SDK to send Loguru log messages with a level of "error" or higher to Sentry
sentry_sdk.init(
_experiments={
"enable_logs": True,
},
integrations=[
LoguruIntegration(sentry_logs_level=logging.ERROR),
]
)
send_default_pii (#4453) by @AbhiPrasadrecord.name for more robust matching (#4411) by @romaingd-spi_capture_experimental_log scope parameter (#4424) by @szokeasaurusrexcommand_queue instead of command_stack if available (#4404) by @sentrivanaSENTRY_DEBUG values properly (#4400) by @szokeasaurusrexFetched March 31, 2026