Michael P. Nitowski <m...@nitow.ski> added the comment:
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. ---------- Added file: https://bugs.python.org/file50592/Screen Shot 2022-01-27 at 8.09.37 PM.png _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46557> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com