Various fixes & improvements
-
New beta feature: Sentry logs for Loguru (#4445) by @sentrivana
We can now capture Loguru logs and send them to Sentry.
import sentry_sdk
from sentry_sdk.integrations.loguru import LoguruIntegration
# Setup Sentry SDK to send Loguru log messages with a level of "error" or higher to Sentry
sentry_sdk.init(
_experiments={
"enable_logs": True,
},
integrations=[
LoguruIntegration(sentry_logs_level=logging.ERROR),
]
)
- fix(logs): Don't gate user behind
send_default_pii
(#4453) by @AbhiPrasad - fix(logging): Strip log
record.name
for more robust matching (#4411) by @romaingd-spi - Migrate to modern threading interface (#4452) by @emmanuel-ferdman
- ref: Remove
_capture_experimental_log
scope
parameter (#4424) by @szokeasaurusrex - feat(logs): Add user attributes to logs (#4423) by @szokeasaurusrex
- fix: fix ARQ integration error (#4427) (#4428) by @ninoseki
- fix(grpc): Fix AttributeError when instrumenting with OTel (#4405) by @sentrivana
- fix(redis): Use
command_queue
instead ofcommand_stack
if available (#4404) by @sentrivana - fix: Handle invalid
SENTRY_DEBUG
values properly (#4400) by @szokeasaurusrex - Increase test coverage (#4393) by @mgaligniana
- tests(logs): avoid failures when running with integrations enabled (#4388) by @rominf
- Fix CI, adapt to new redis-py release (#4431) by @sentrivana
- tests: Regenerate toxgen (#4403) by @sentrivana
- tests: Regenerate tox.ini & fix CI (#4435) by @sentrivana
- build(deps): bump codecov/codecov-action from 5.4.2 to 5.4.3 (#4397) by @dependabot