|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 1.15.0 |
| 4 | + |
| 5 | +### Various fixes & improvements |
| 6 | + |
| 7 | +- New: Add [Huey](https://huey.readthedocs.io/en/latest/) Integration (#1555) by @Zhenay |
| 8 | + |
| 9 | + This integration will create performance spans when Huey tasks will be enqueued and when they will be executed. |
| 10 | + |
| 11 | + Usage: |
| 12 | + |
| 13 | + Task definition in `demo.py`: |
| 14 | + |
| 15 | + ```python |
| 16 | + import time |
| 17 | + |
| 18 | + from huey import SqliteHuey, crontab |
| 19 | + |
| 20 | + import sentry_sdk |
| 21 | + from sentry_sdk.integrations.huey import HueyIntegration |
| 22 | + |
| 23 | + sentry_sdk.init( |
| 24 | + dsn="...", |
| 25 | + integrations=[ |
| 26 | + HueyIntegration(), |
| 27 | + ], |
| 28 | + traces_sample_rate=1.0, |
| 29 | + ) |
| 30 | + |
| 31 | + huey = SqliteHuey(filename='/tmp/demo.db') |
| 32 | + |
| 33 | + @huey.task() |
| 34 | + def add_numbers(a, b): |
| 35 | + return a + b |
| 36 | + ``` |
| 37 | + |
| 38 | + Running the tasks in `run.py`: |
| 39 | + |
| 40 | + ```python |
| 41 | + from demo import add_numbers, flaky_task, nightly_backup |
| 42 | + |
| 43 | + import sentry_sdk |
| 44 | + from sentry_sdk.integrations.huey import HueyIntegration |
| 45 | + from sentry_sdk.tracing import TRANSACTION_SOURCE_COMPONENT, Transaction |
| 46 | + |
| 47 | + |
| 48 | + def main(): |
| 49 | + sentry_sdk.init( |
| 50 | + dsn="...", |
| 51 | + integrations=[ |
| 52 | + HueyIntegration(), |
| 53 | + ], |
| 54 | + traces_sample_rate=1.0, |
| 55 | + ) |
| 56 | + |
| 57 | + with sentry_sdk.start_transaction(name="testing_huey_tasks", source=TRANSACTION_SOURCE_COMPONENT): |
| 58 | + r = add_numbers(1, 2) |
| 59 | + |
| 60 | + if __name__ == "__main__": |
| 61 | + main() |
| 62 | + ``` |
| 63 | + |
| 64 | +- Profiling: Do not send single sample profiles (#1879) by @Zylphrex |
| 65 | +- Profiling: Add additional test coverage for profiler (#1877) by @Zylphrex |
| 66 | +- Profiling: Always use builtin time.sleep (#1869) by @Zylphrex |
| 67 | +- Profiling: Defaul in_app decision to None (#1855) by @Zylphrex |
| 68 | +- Profiling: Remove use of threading.Event (#1864) by @Zylphrex |
| 69 | +- Profiling: Enable profiling on all transactions (#1797) by @Zylphrex |
| 70 | +- FastAPI: Fix check for Starlette in FastAPI integration (#1868) by @antonpirker |
| 71 | +- Flask: Do not overwrite default for username with email address in FlaskIntegration (#1873) by @homeworkprod |
| 72 | +- Tests: Add py3.11 to test-common (#1871) by @Zylphrex |
| 73 | +- Fix: Don't log whole event in before_send / event_processor drops (#1863) by @sl0thentr0py |
| 74 | + |
| 75 | +## 1.14.0 |
| 76 | + |
| 77 | +### Various fixes & improvements |
| 78 | + |
| 79 | +- Add `before_send_transaction` (#1840) by @antonpirker |
| 80 | + |
| 81 | + Adds a hook (similar to `before_send`) that is called for all transaction events (performance releated data). |
| 82 | + |
| 83 | + Usage: |
| 84 | + |
| 85 | + ```python |
| 86 | + import sentry_sdk |
| 87 | + |
| 88 | + def strip_sensitive_data(event, hint): |
| 89 | + # modify event here (or return `None` if you want to drop the event entirely) |
| 90 | + return event |
| 91 | + |
| 92 | + sentry_sdk.init( |
| 93 | + # ... |
| 94 | + before_send_transaction=strip_sensitive_data, |
| 95 | + ) |
| 96 | + ``` |
| 97 | + |
| 98 | + See also: https://docs.sentry.io/platforms/python/configuration/filtering/#using-platformidentifier-namebefore-send-transaction- |
| 99 | + |
| 100 | +- Django: Always remove values of Django session related cookies. (#1842) by @antonpirker |
| 101 | +- Profiling: Enable profiling for ASGI frameworks (#1824) by @Zylphrex |
| 102 | +- Profiling: Better gevent support (#1822) by @Zylphrex |
| 103 | +- Profiling: Add profile context to transaction (#1860) by @Zylphrex |
| 104 | +- Profiling: Use co_qualname in python 3.11 (#1831) by @Zylphrex |
| 105 | +- OpenTelemetry: fix Use dict for sentry-trace context instead of tuple (#1847) by @AbhiPrasad |
| 106 | +- OpenTelemetry: fix extra dependency (#1825) by @bernardotorres |
| 107 | +- OpenTelemetry: fix NoOpSpan updates scope (#1834) by @Zylphrex |
| 108 | +- OpenTelemetry: Make sure to noop when there is no DSN (#1852) by @antonpirker |
| 109 | +- FastAPI: Fix middleware being patched multiple times (#1841) by @JohnnyDeuss |
| 110 | +- Starlette: Avoid import of pkg_resource with Starlette integration (#1836) by @mgu |
| 111 | +- Removed code coverage target (#1862) by @antonpirker |
| 112 | + |
3 | 113 | ## 1.13.0 |
4 | 114 |
|
5 | 115 | ### Various fixes & improvements |
|
0 commit comments