getsentry / sentry-python

The official Python SDK for Sentry.io
https://sentry.io/for/python/
MIT License
1.84k stars 478 forks source link

Sentry doesn't support loguru level=trace #2759

Open WesleyYue opened 5 months ago

WesleyYue commented 5 months ago

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

sentrivana commented 5 months ago

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

sentrivana commented 1 month ago

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

andyshinn commented 1 month ago

Also level SUCCESS throws similar warning.