This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mnito
Recipients eric.smith, mnito
Date 2022-01-28.01:12:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643332362.26.0.82296383154.issue46557@roundup.psfhosted.org>
In-reply-to
Content
Of course, here's an example script to reproduce:

```
import logging
import warnings

import sentry_sdk
from sentry_sdk.integrations.logging import LoggingIntegration

logging.captureWarnings(True)

sentry_logging = LoggingIntegration(
    level=logging.INFO,
    event_level=logging.WARNING
)

sentry_sdk.init(
    "<ingest URL>",
    traces_sample_rate=1.0,
    integrations=[
        LoggingIntegration(
            level=logging.INFO,
            event_level=logging.WARNING
        )
    ]
)

warnings.warn("A warning")
warnings.warn("Another warning")
```

I attached a file of what it looks like in the Sentry UI. Notice both warnings under the same issue. When logging warnings directly with the logging module, each message arrives as a separate issue. These warnings from the warnings module are both grouped together under the same issue since Sentry groups all logs with the same format string together.
History
Date User Action Args
2022-01-28 01:12:42mnitosetrecipients: + mnito, eric.smith
2022-01-28 01:12:42mnitosetmessageid: <1643332362.26.0.82296383154.issue46557@roundup.psfhosted.org>
2022-01-28 01:12:42mnitolinkissue46557 messages
2022-01-28 01:12:42mnitocreate