sentry-python icon indicating copy to clipboard operation
sentry-python copied to clipboard

Sentry doesn't support loguru level=trace

Open WesleyYue opened this issue 1 year ago • 3 comments

How do you use Sentry?

Sentry Saas (sentry.io)

Version

1.40.5

Steps to Reproduce

sentry_loguru = LoguruIntegration(
        level=LoggingLevels.TRACE.value,  # Capture info and above as breadcrumbs
        event_level=LoggingLevels.ERROR.value,  # Send errors as events
    )
    sentry_sdk.init(
        dsn="xxx",
        integrations=[
            sentry_loguru,
        ],
    )

Expected Result

SDK to report my .trace() logs like the other levels

Actual Result

image

WesleyYue avatar Feb 24 '24 19:02 WesleyYue

Thanks @WesleyYue, this might need to be adjusted on the server side. We'll take a look.

sentrivana avatar Feb 27 '24 14:02 sentrivana

See also: https://github.com/getsentry/sentry-python/issues/2799#issue-2178956427

sentrivana avatar Jun 28 '24 07:06 sentrivana

Also level SUCCESS throws similar warning.

andyshinn avatar Jul 01 '24 18:07 andyshinn