From 8c4a19a4391a721b4b7e27d6a2b17902963ce62e Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 23 Jan 2023 11:08:46 +0100 Subject: [PATCH] Updated changelog --- CHANGELOG.md | 44 ++++++++++++++++++++++++++++++++------------ 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dbb2f05033..8dfde55540 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,19 +4,39 @@ ### Various fixes & improvements -- Removed code coverage target (#1862) by @antonpirker -- feat(profiling): Add profile context to transaction (#1860) by @Zylphrex -- Always remove Django session related cookies. (#1842) by @antonpirker -- Make sure to noop when there is no DSN (#1852) by @antonpirker -- feat(profiling): Use co_qualname in python 3.11 (#1831) by @Zylphrex -- Fix middleware being patched multiple times when using FastAPI (#1841) by @JohnnyDeuss -- fix(opentelemetry): Use dict for sentry-trace context instead of tuple (#1847) by @AbhiPrasad -- fix extra dependency (#1825) by @bernardotorres -- Avoid import of pkg_resource with Starlette integration (#1836) by @mgu - Add `before_send_transaction` (#1840) by @antonpirker -- feat(profiling): Enable profiling for ASGI frameworks (#1824) by @Zylphrex -- feat(profiling): Better gevent support (#1822) by @Zylphrex -- fix(otel): NoOpSpan updates scope (#1834) by @Zylphrex + + Adds a hook (similar to `before_send`) that is called for all transaction events (performance releated data). + + Usage: + + ```python + import sentry_sdk + + def strip_sensitive_data(event, hint): + # modify event here (or return `None` if you want to drop the event entirely) + return event + + sentry_sdk.init( + # ... + before_send_transaction=strip_sensitive_data, + ) + ``` + + See also: https://docs.sentry.io/platforms/python/configuration/filtering/#using-platformidentifier-namebefore-send-transaction- + +- Django: Always remove values of Django session related cookies. (#1842) by @antonpirker +- Profiling: Enable profiling for ASGI frameworks (#1824) by @Zylphrex +- Profiling: Better gevent support (#1822) by @Zylphrex +- Profiling: Add profile context to transaction (#1860) by @Zylphrex +- Profiling: Use co_qualname in python 3.11 (#1831) by @Zylphrex +- OpenTelemetry: fix Use dict for sentry-trace context instead of tuple (#1847) by @AbhiPrasad +- OpenTelemetry: fix extra dependency (#1825) by @bernardotorres +- OpenTelemetry: fix NoOpSpan updates scope (#1834) by @Zylphrex +- OpenTelemetry: Make sure to noop when there is no DSN (#1852) by @antonpirker +- FastAPI: Fix middleware being patched multiple times (#1841) by @JohnnyDeuss +- Starlette: Avoid import of pkg_resource with Starlette integration (#1836) by @mgu +- Removed code coverage target (#1862) by @antonpirker ## 1.13.0