pypi sentry-sdk 2.30.0

latest releases: 2.36.0, 3.0.0a6, 2.35.2...
2 months ago

Various fixes & improvements

  • 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),
    ]
)

Don't miss a new sentry-sdk release

NewReleases is sending notifications on new releases.