From ae91ea1269a1b2c2091b30e73c1467c38ebab1bfc84dbe041c335e0dd90e5556 Mon Sep 17 00:00:00 2001 From: Eric Schirra Date: Wed, 26 Apr 2023 06:19:04 +0000 Subject: [PATCH 1/3] Accepting request 1082874 from home:ecsos:messenger:matrix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update to 1.21.0 - Better handling of redis span/breadcrumb data (#2033) - Add db.system to redis and SQLAlchemy db spans (#2037, #2038, #2039) (#2037) - Upgraded linting tooling (#2026) - Made code more resilient. (#2031) - Changes from 1.20.0 - Send all events to /envelope endpoint when tracing is enabled (#2009) - Note: If you’re self-hosting Sentry 9, you need to stay in the previous version of the SDK or update your self-hosted to at least 20.6.0 - Profiling: Remove profile context from SDK (#2013) - Profiling: Additionl performance improvements to the profiler (#1991) - Fix: Celery Beat monitoring without restarting the Beat process (#2001) - Fix: Using the Codecov uploader instead of deprecated python package (#2011) - Fix: Support for Quart (#2003)` (#2003) - Changes from 1.19.1 - Make auto monitoring beat update support Celery 4 and 5 (#1989) - Changes from 1.19.0 - New: Celery Beat auto monitoring (#1967) - New: gRPC integration (#1911) - New: socket integration (#1911) - Fix: Do not trim span descriptions. (#1983) - Changes from 1.18.0 - New: Implement EventScrubber (#1943) - New: Added new functions_to_trace option for central way of performance instrumentation (#1960) - Updated denylist to include other widely used cookies/headers (#1972) - Forward all sentry- baggage items (#1970) - Update OSS licensing (#1973) - Profiling: Handle non frame types in profiler (#1965) - Tests: Bad arq dependency in tests (#1966) - Better naming (#1962) - Changes from 1.17.0 - New: Monitor Celery Beat tasks with Sentry Cron Monitoring. - New: Add decorator for Sentry tracing (#1089) - Make Django signals tracing optional (#1929) - See the Django Guide to learn more. - Deprecated with_locals in favor of include_local_variables (#1924) - Added top level API to get current span (#1954) - Profiling: Add profiler options to init (#1947) - Profiling: Set active thread id for quart (#1830) - Fix: Update get_json function call for werkzeug 2.1.0+ (#1939) - Fix: Returning the tasks result. (#1931) - Fix: Rename MYPY to TYPE_CHECKING (#1934) - Fix: Fix type annotation for ignore_errors in sentry_sdk.init() (#1928) - Tests: Start a real http server instead of mocking libs (#1938) - Changes from 1.16.0 - New: Add arq Integration (#1872) - Update of Falcon Integration (#1733) - Adding Cloud Resource Context integration (#1882) - Profiling: Use the transaction timestamps to anchor the profile (#1898) - Profiling: Add debug logs to profiling (#1883) - Profiling: Start profiler thread lazily (#1903) - Fixed checks for structured http data (#1905) - Make set_measurement public api and remove experimental status (#1909) - Add trace_propagation_targets option (#1916) - Add enable_tracing to default traces_sample_rate to 1.0 (#1900) - Remove deprecated tracestate (#1907) - Sanitize URLs in Span description and breadcrumbs (#1876) - Mechanism should default to true unless set explicitly (#1889) - Better setting of in-app in stack frames (#1894) - Add workflow to test gevent (#1870) - Updated outdated HTTPX test matrix (#1917) - Switch to MIT license (#1908) OBS-URL: https://build.opensuse.org/request/show/1082874 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=47 --- python-sentry-sdk.changes | 66 +++++++++++++++++++++++++++++++++++++ python-sentry-sdk.spec | 5 +-- sentry-python-1.15.0.tar.gz | 3 -- sentry-python-1.21.0.tar.gz | 3 ++ 4 files changed, 72 insertions(+), 5 deletions(-) delete mode 100644 sentry-python-1.15.0.tar.gz create mode 100644 sentry-python-1.21.0.tar.gz diff --git a/python-sentry-sdk.changes b/python-sentry-sdk.changes index f6d4448..09d9c8c 100644 --- a/python-sentry-sdk.changes +++ b/python-sentry-sdk.changes @@ -1,3 +1,69 @@ +------------------------------------------------------------------- +Tue Apr 25 14:33:14 UTC 2023 - ecsos + +- Update to 1.21.0 + - Better handling of redis span/breadcrumb data (#2033) + - Add db.system to redis and SQLAlchemy db spans (#2037, #2038, #2039) (#2037) + - Upgraded linting tooling (#2026) + - Made code more resilient. (#2031) +- Changes from 1.20.0 + - Send all events to /envelope endpoint when tracing is enabled (#2009) + - Note: If you’re self-hosting Sentry 9, you need to stay in the + previous version of the SDK or update your self-hosted to at least 20.6.0 + - Profiling: Remove profile context from SDK (#2013) + - Profiling: Additionl performance improvements to the profiler (#1991) + - Fix: Celery Beat monitoring without restarting the Beat process (#2001) + - Fix: Using the Codecov uploader instead of deprecated python package (#2011) + - Fix: Support for Quart (#2003)` (#2003) +- Changes from 1.19.1 + - Make auto monitoring beat update support Celery 4 and 5 (#1989) +- Changes from 1.19.0 + - New: Celery Beat auto monitoring (#1967) + - New: gRPC integration (#1911) + - New: socket integration (#1911) + - Fix: Do not trim span descriptions. (#1983) +- Changes from 1.18.0 + - New: Implement EventScrubber (#1943) + - New: Added new functions_to_trace option for central way of performance instrumentation (#1960) + - Updated denylist to include other widely used cookies/headers (#1972) + - Forward all sentry- baggage items (#1970) + - Update OSS licensing (#1973) + - Profiling: Handle non frame types in profiler (#1965) + - Tests: Bad arq dependency in tests (#1966) + - Better naming (#1962) +- Changes from 1.17.0 + - New: Monitor Celery Beat tasks with Sentry Cron Monitoring. + - New: Add decorator for Sentry tracing (#1089) + - Make Django signals tracing optional (#1929) + - See the Django Guide to learn more. + - Deprecated with_locals in favor of include_local_variables (#1924) + - Added top level API to get current span (#1954) + - Profiling: Add profiler options to init (#1947) + - Profiling: Set active thread id for quart (#1830) + - Fix: Update get_json function call for werkzeug 2.1.0+ (#1939) + - Fix: Returning the tasks result. (#1931) + - Fix: Rename MYPY to TYPE_CHECKING (#1934) + - Fix: Fix type annotation for ignore_errors in sentry_sdk.init() (#1928) + - Tests: Start a real http server instead of mocking libs (#1938) +- Changes from 1.16.0 + - New: Add arq Integration (#1872) + - Update of Falcon Integration (#1733) + - Adding Cloud Resource Context integration (#1882) + - Profiling: Use the transaction timestamps to anchor the profile (#1898) + - Profiling: Add debug logs to profiling (#1883) + - Profiling: Start profiler thread lazily (#1903) + - Fixed checks for structured http data (#1905) + - Make set_measurement public api and remove experimental status (#1909) + - Add trace_propagation_targets option (#1916) + - Add enable_tracing to default traces_sample_rate to 1.0 (#1900) + - Remove deprecated tracestate (#1907) + - Sanitize URLs in Span description and breadcrumbs (#1876) + - Mechanism should default to true unless set explicitly (#1889) + - Better setting of in-app in stack frames (#1894) + - Add workflow to test gevent (#1870) + - Updated outdated HTTPX test matrix (#1917) + - Switch to MIT license (#1908) + ------------------------------------------------------------------- Tue Feb 7 12:11:22 UTC 2023 - ecsos diff --git a/python-sentry-sdk.spec b/python-sentry-sdk.spec index 9696b93..44534fc 100644 --- a/python-sentry-sdk.spec +++ b/python-sentry-sdk.spec @@ -21,7 +21,7 @@ %define skip_python2 1 %define skip_python36 1 Name: python-sentry-sdk -Version: 1.15.0 +Version: 1.21.0 Release: 0 Summary: Python SDK for Sentry.io License: BSD-2-Clause @@ -45,7 +45,7 @@ BuildRequires: %{python_module rq >= 0.6} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module starlette >= 0.19.1} BuildRequires: %{python_module tornado >= 5} -# upstream use %{python_module urllib3 >= 1.26.11} +# upstream use %%{python_module urllib3 >= 1.26.11} BuildRequires: %{python_module urllib3 >= 1.25.10} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -55,6 +55,7 @@ BuildRequires: %{python_module eventlet} BuildRequires: %{python_module gevent} BuildRequires: %{python_module hypothesis} BuildRequires: %{python_module jsonschema >= 3.2.0} +BuildRequires: %{python_module mock} BuildRequires: %{python_module pyramid} BuildRequires: %{python_module pyrsistent >= 0.16.0} BuildRequires: %{python_module pytest-cov >= 2.8.1} diff --git a/sentry-python-1.15.0.tar.gz b/sentry-python-1.15.0.tar.gz deleted file mode 100644 index 4f54503..0000000 --- a/sentry-python-1.15.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:305f6fb1a25036deeec7c749e8458ab0ba9cb9bad188aab7f396e6d6cadf351f -size 317804 diff --git a/sentry-python-1.21.0.tar.gz b/sentry-python-1.21.0.tar.gz new file mode 100644 index 0000000..adabdf9 --- /dev/null +++ b/sentry-python-1.21.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c0b0f1990b2f0faa097e49fcb45f31fa039aa20f3e6efe213e67221845a352d8 +size 346948 From ace847fdba3349c7a64db1e819b7b377fe8a593bc81222821022fde115091aad Mon Sep 17 00:00:00 2001 From: Eric Schirra Date: Fri, 26 May 2023 08:18:22 +0000 Subject: [PATCH 2/3] Accepting request 1089155 from home:ecsos:messenger:matrix - Update to 1.24.0 - New: Celery Beat exclude tasks option (#2130) - New: Add support for ExceptionGroups (#2025) - Prefer importlib.metadata over pkg_resources if available (#2081) - Work with a copy of request, vars in the event (#2125) - Pinned version of dependency that broke the build (#2133) - Changes from 1.23.1 - Disable Django Cache spans by default. (#2120) - Changes from 1.23.0 - New: Add loguru integration (#1994) - Do not truncate request body if request_bodies is "always" (#2092) - Fixed Celery headers for Beat auto-instrumentation (#2102) - Add db.operation to Redis and MongoDB spans (#2089) - Make sure we're importing redis the library (#2106) - Add include_source_context option (#2020) - Import Markup from markupsafe (#2047) - Fix __qualname__ missing attribute in asyncio integration (#2105) - Remove relay extension from AWS Layer (#2068) - Add a note about pip freeze to the bug template (#2103) - Changes from 1.22.2 - Fix: Django caching spans when using keyword arguments (#2086) - Fix: Duration in Celery Beat tasks monitoring (#2087) - Fix: Docstrings of SPANDATA (#2084) by @antonpirker - Changes from 1.22.1 - Fix: Handle a list of keys (not just a single key) in Django cache spans (#2082) - Changes from 1.22.0 - Add cache.hit and cache.item_size to Django (#2057) - Use http.method instead of method (#2054) - Handle non-int exc.status_code in Starlette (#2075) - Handle SQLAlchemy engine.name being bytes (#2074) - Fix KeyError in capture_checkin if SDK is not initialized (#2073) - Use functools.wrap for ThreadingIntegration patches to fix attributes (#2080) - Pin urllib3 to <2.0.0 for now (#2069) - Changes from 1.21.1 - Do not send monitor_config when unset (#2058) - Add db.system span data (#2040, #2042) - Fix memory leak in profiling (#2049) - Fix crash loop when returning none in before_send (#2045) OBS-URL: https://build.opensuse.org/request/show/1089155 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=48 --- python-sentry-sdk.changes | 42 +++++++++++++++++++++++++++++++++++++ python-sentry-sdk.spec | 2 +- sentry-python-1.21.0.tar.gz | 3 --- sentry-python-1.24.0.tar.gz | 3 +++ 4 files changed, 46 insertions(+), 4 deletions(-) delete mode 100644 sentry-python-1.21.0.tar.gz create mode 100644 sentry-python-1.24.0.tar.gz diff --git a/python-sentry-sdk.changes b/python-sentry-sdk.changes index 09d9c8c..c4e4483 100644 --- a/python-sentry-sdk.changes +++ b/python-sentry-sdk.changes @@ -1,3 +1,45 @@ +------------------------------------------------------------------- +Tue May 23 10:39:34 UTC 2023 - ecsos + +- Update to 1.24.0 + - New: Celery Beat exclude tasks option (#2130) + - New: Add support for ExceptionGroups (#2025) + - Prefer importlib.metadata over pkg_resources if available (#2081) + - Work with a copy of request, vars in the event (#2125) + - Pinned version of dependency that broke the build (#2133) +- Changes from 1.23.1 + - Disable Django Cache spans by default. (#2120) +- Changes from 1.23.0 + - New: Add loguru integration (#1994) + - Do not truncate request body if request_bodies is "always" (#2092) + - Fixed Celery headers for Beat auto-instrumentation (#2102) + - Add db.operation to Redis and MongoDB spans (#2089) + - Make sure we're importing redis the library (#2106) + - Add include_source_context option (#2020) + - Import Markup from markupsafe (#2047) + - Fix __qualname__ missing attribute in asyncio integration (#2105) + - Remove relay extension from AWS Layer (#2068) + - Add a note about pip freeze to the bug template (#2103) +- Changes from 1.22.2 + - Fix: Django caching spans when using keyword arguments (#2086) + - Fix: Duration in Celery Beat tasks monitoring (#2087) + - Fix: Docstrings of SPANDATA (#2084) by @antonpirker +- Changes from 1.22.1 + - Fix: Handle a list of keys (not just a single key) in Django cache spans (#2082) +- Changes from 1.22.0 + - Add cache.hit and cache.item_size to Django (#2057) + - Use http.method instead of method (#2054) + - Handle non-int exc.status_code in Starlette (#2075) + - Handle SQLAlchemy engine.name being bytes (#2074) + - Fix KeyError in capture_checkin if SDK is not initialized (#2073) + - Use functools.wrap for ThreadingIntegration patches to fix attributes (#2080) + - Pin urllib3 to <2.0.0 for now (#2069) +- Changes from 1.21.1 + - Do not send monitor_config when unset (#2058) + - Add db.system span data (#2040, #2042) + - Fix memory leak in profiling (#2049) + - Fix crash loop when returning none in before_send (#2045) + ------------------------------------------------------------------- Tue Apr 25 14:33:14 UTC 2023 - ecsos diff --git a/python-sentry-sdk.spec b/python-sentry-sdk.spec index 44534fc..24ecdff 100644 --- a/python-sentry-sdk.spec +++ b/python-sentry-sdk.spec @@ -21,7 +21,7 @@ %define skip_python2 1 %define skip_python36 1 Name: python-sentry-sdk -Version: 1.21.0 +Version: 1.24.0 Release: 0 Summary: Python SDK for Sentry.io License: BSD-2-Clause diff --git a/sentry-python-1.21.0.tar.gz b/sentry-python-1.21.0.tar.gz deleted file mode 100644 index adabdf9..0000000 --- a/sentry-python-1.21.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c0b0f1990b2f0faa097e49fcb45f31fa039aa20f3e6efe213e67221845a352d8 -size 346948 diff --git a/sentry-python-1.24.0.tar.gz b/sentry-python-1.24.0.tar.gz new file mode 100644 index 0000000..d9a3e13 --- /dev/null +++ b/sentry-python-1.24.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b81eaf26491182d827572c67727d48fb2e10b2ddb2b62ce4cf428940794b092a +size 360564 From 852b673dcf01067c971dec34db0e47f7f8ac446a5a1843b5cd9a6c2d44f01208 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 29 May 2023 13:31:53 +0000 Subject: [PATCH 3/3] - add mock.patch to use mock from stdlib OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=49 --- mock.patch | 63 +++++++++++++++++++++++++++++++++++++++ python-sentry-sdk.changes | 5 ++++ python-sentry-sdk.spec | 4 +-- 3 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 mock.patch diff --git a/mock.patch b/mock.patch new file mode 100644 index 0000000..0b008d3 --- /dev/null +++ b/mock.patch @@ -0,0 +1,63 @@ +Index: sentry-python-1.24.0/tests/tracing/test_decorator_py3.py +=================================================================== +--- sentry-python-1.24.0.orig/tests/tracing/test_decorator_py3.py ++++ sentry-python-1.24.0/tests/tracing/test_decorator_py3.py +@@ -1,4 +1,4 @@ +-import mock ++from unittest import mock + import pytest + import sys + +Index: sentry-python-1.24.0/tests/tracing/test_misc.py +=================================================================== +--- sentry-python-1.24.0.orig/tests/tracing/test_misc.py ++++ sentry-python-1.24.0/tests/tracing/test_misc.py +@@ -1,4 +1,4 @@ +-from mock import MagicMock ++from unittest.mock import MagicMock + import pytest + import gc + import uuid +Index: sentry-python-1.24.0/tests/test_api.py +=================================================================== +--- sentry-python-1.24.0.orig/tests/test_api.py ++++ sentry-python-1.24.0/tests/test_api.py +@@ -1,4 +1,4 @@ +-import mock ++from unittest import mock + + from sentry_sdk import ( + configure_scope, +Index: sentry-python-1.24.0/tests/test_client.py +=================================================================== +--- sentry-python-1.24.0.orig/tests/test_client.py ++++ sentry-python-1.24.0/tests/test_client.py +@@ -1,7 +1,7 @@ + # coding: utf-8 + import os + import json +-import mock ++from unittest import mock + import pytest + import subprocess + import sys +Index: sentry-python-1.24.0/tests/test_crons.py +=================================================================== +--- sentry-python-1.24.0.orig/tests/test_crons.py ++++ sentry-python-1.24.0/tests/test_crons.py +@@ -1,4 +1,4 @@ +-import mock ++from unittest import mock + import pytest + import uuid + +Index: sentry-python-1.24.0/tests/tracing/test_decorator_py2.py +=================================================================== +--- sentry-python-1.24.0.orig/tests/tracing/test_decorator_py2.py ++++ sentry-python-1.24.0/tests/tracing/test_decorator_py2.py +@@ -1,4 +1,4 @@ +-import mock ++from unittest import mock + + from sentry_sdk.tracing_utils_py2 import ( + start_child_span_decorator as start_child_span_decorator_py2, diff --git a/python-sentry-sdk.changes b/python-sentry-sdk.changes index c4e4483..977f872 100644 --- a/python-sentry-sdk.changes +++ b/python-sentry-sdk.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 29 13:31:22 UTC 2023 - Dirk Müller + +- add mock.patch to use mock from stdlib + ------------------------------------------------------------------- Tue May 23 10:39:34 UTC 2023 - ecsos diff --git a/python-sentry-sdk.spec b/python-sentry-sdk.spec index 24ecdff..3dbcdb1 100644 --- a/python-sentry-sdk.spec +++ b/python-sentry-sdk.spec @@ -28,6 +28,7 @@ License: BSD-2-Clause Group: Development/Languages/Python URL: https://github.com/getsentry/sentry-python Source0: https://github.com/getsentry/sentry-python/archive/%{version}/sentry-python-%{version}.tar.gz +Patch1: mock.patch BuildRequires: %{python_module Django >= 1.8} BuildRequires: %{python_module Flask >= 0.11} BuildRequires: %{python_module SQLAlchemy >= 1.2} @@ -55,7 +56,6 @@ BuildRequires: %{python_module eventlet} BuildRequires: %{python_module gevent} BuildRequires: %{python_module hypothesis} BuildRequires: %{python_module jsonschema >= 3.2.0} -BuildRequires: %{python_module mock} BuildRequires: %{python_module pyramid} BuildRequires: %{python_module pyrsistent >= 0.16.0} BuildRequires: %{python_module pytest-cov >= 2.8.1} @@ -115,7 +115,7 @@ A Python SDK for Sentry.io. https://sentry.io/for/python/ %prep -%setup -q -n sentry-python-%{version} +%autosetup -p1 -n sentry-python-%{version} %build %python_build