From b0dbdabacf00f2364beedced4b5b34c5c5b0e987 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Tue, 7 Feb 2023 11:36:02 +0100 Subject: [PATCH] Made nice changelog --- CHANGELOG.md | 78 ++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 67 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53342be16d..af74dd5731 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,17 +4,73 @@ ### Various fixes & improvements -- ref(profiling): Do not send single sample profiles (#1879) by @Zylphrex -- tests(profiling): Add additional test coverage for profiler (#1877) by @Zylphrex -- fix(profiling): Always use builtin time.sleep (#1869) by @Zylphrex -- Fix check for Starlette in FastAPI integration (#1868) by @antonpirker -- tests: Add py3.11 to test-common (#1871) by @Zylphrex -- Do not overwrite default for username with email address in FlaskIntegration (#1873) by @homeworkprod -- feat(profiling): Enable profiling on all transactions (#1797) by @Zylphrex -- Add Huey Integration (#1555) by @Zhenay -- ref(profiling): Remove use of threading.Event (#1864) by @Zylphrex -- Don't log whole event in before_send / event_processor drops (#1863) by @sl0thentr0py -- fix(profiling): Defaul in_app decision to None (#1855) by @Zylphrex +- New: Add [Huey](https://huey.readthedocs.io/en/latest/) Integration (#1555) by @Zhenay + + This integration will create performance spans when Huey tasks will be enqueued and when they will be executed. + + Usage: + + Task definition in `demo.py`: + + ```python + import time + + from huey import SqliteHuey, crontab + + import sentry_sdk + from sentry_sdk.integrations.huey import HueyIntegration + + sentry_sdk.init( + dsn="...", + integrations=[ + HueyIntegration(), + ], + traces_sample_rate=1.0, + ) + + huey = SqliteHuey(filename='/tmp/demo.db') + + @huey.task() + def add_numbers(a, b): + return a + b + ``` + + Running the tasks in `run.py`: + + ```python + from demo import add_numbers, flaky_task, nightly_backup + + import sentry_sdk + from sentry_sdk.integrations.huey import HueyIntegration + from sentry_sdk.tracing import TRANSACTION_SOURCE_COMPONENT, Transaction + + + def main(): + sentry_sdk.init( + dsn="...", + integrations=[ + HueyIntegration(), + ], + traces_sample_rate=1.0, + ) + + with sentry_sdk.start_transaction(name="testing_huey_tasks", source=TRANSACTION_SOURCE_COMPONENT): + r = add_numbers(1, 2) + + if __name__ == "__main__": + main() + ``` + +- Profiling: Do not send single sample profiles (#1879) by @Zylphrex +- Profiling: Add additional test coverage for profiler (#1877) by @Zylphrex +- Profiling: Always use builtin time.sleep (#1869) by @Zylphrex +- Profiling: Defaul in_app decision to None (#1855) by @Zylphrex +- Profiling: Remove use of threading.Event (#1864) by @Zylphrex +- Profiling: Enable profiling on all transactions (#1797) by @Zylphrex +- FastAPI: Fix check for Starlette in FastAPI integration (#1868) by @antonpirker +- Flask: Do not overwrite default for username with email address in FlaskIntegration (#1873) by @homeworkprod +- Tests: Add py3.11 to test-common (#1871) by @Zylphrex +- Fix: Don't log whole event in before_send / event_processor drops (#1863) by @sl0thentr0py ## 1.14.0