1.23.0
Various fixes & improvements
-
New: Add
loguruintegration (#1994) by @PerchunPakCheck the documentation for more information.
Usage:
from loguru import logger import sentry_sdk from sentry_sdk.integrations.loguru import LoguruIntegration sentry_sdk.init( dsn="___PUBLIC_DSN___", integrations=[ LoguruIntegration(), ], ) logger.debug("I am ignored") logger.info("I am a breadcrumb") logger.error("I am an event", extra=dict(bar=43)) logger.exception("An exception happened")
- An error event with the message
"I am an event"will be created. "I am a breadcrumb"will be attached as a breadcrumb to that event.barwill end up in theextraattributes of that event."An exception happened"will send the current exception fromsys.exc_info()with the stack trace to Sentry. If there's no exception, the current stack will be attached.- The debug message
"I am ignored"will not be captured by Sentry. To capture it, setleveltoDEBUGor lower inLoguruIntegration.
- An error event with the message
-
Do not truncate request body if
request_bodiesis"always"(#2092) by @sentrivana -
Fixed Celery headers for Beat auto-instrumentation (#2102) by @antonpirker
-
Add
db.operationto Redis and MongoDB spans (#2089) by @antonpirker -
Make sure we're importing
redisthe library (#2106) by @sentrivana -
Add
include_source_contextoption (#2020) by @farhat-nawaz and @sentrivana -
Import
Markupfrommarkupsafe(#2047) by @rco-ableton -
Fix
__qualname__missing attribute in asyncio integration (#2105) by @sl0thentr0py -
Remove relay extension from AWS Layer (#2068) by @sl0thentr0py
-
Add a note about
pip freezeto the bug template (#2103) by @sentrivana