17
0

Compare commits

20 Commits

Author SHA256 Message Date
5d0e6b2aaf Accepting request 1240306 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1240306
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sentry-sdk?expand=0&rev=41
2025-01-27 19:52:34 +00:00
c7223d7577 Accepting request 1240260 from home:ecsos:python
Update.

OBS-URL: https://build.opensuse.org/request/show/1240260
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=89
2025-01-25 21:11:10 +00:00
e28d0640c2 Accepting request 1225980 from devel:languages:python
- update to 2.19.0:
  * New: introduce `rust_tracing` integration. See https://docs.s
    entry.io/platforms/python/integrations/rust_tracing/ (#3717)
  * Auto enable Litestar integration
  * Deprecate `sentry_sdk.init` context manager
  * feat(spotlight): Send PII to Spotlight when no DSN is set
  * feat(spotlight): Add info logs when Sentry is enabled
  * feat(spotlight): Inject Spotlight button on Django
  * feat(spotlight): Auto enable cache_spans for Spotlight on
    DEBUG
  * fix(logging): Handle parameter `stack_info` for the
    `LoggingIntegration`
  * fix(pure-eval): Make sentry-sdk[pure-eval] installable with
    pip==24.0
  * fix(rust_tracing): include_tracing_fields arg to control
    unvetted data in rust_tracing integration
  * fix(aws) Fix aws lambda tests (by reducing event size)
  * fix(arq): fix integration with Worker settings as a dict
  * fix(httpx): Prevent Sentry baggage duplication
  * fix(falcon): Don't exhaust request body stream
  * fix(integrations): Check `retries_left` before capturing
    exception
  * fix(openai): Use name instead of description
  * test(gcp): Only run GCP tests when they should

- Remove ipdb from BuildRequires, it should have been removed with 2.8.
  * Additional integrations will now be activated automatically if

OBS-URL: https://build.opensuse.org/request/show/1225980
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sentry-sdk?expand=0&rev=40
2024-11-24 10:04:39 +00:00
f003493f88 - update to 2.19.0:
* New: introduce `rust_tracing` integration. See https://docs.s
    entry.io/platforms/python/integrations/rust_tracing/ (#3717)
  * Auto enable Litestar integration
  * Deprecate `sentry_sdk.init` context manager
  * feat(spotlight): Send PII to Spotlight when no DSN is set
  * feat(spotlight): Add info logs when Sentry is enabled
  * feat(spotlight): Inject Spotlight button on Django
  * feat(spotlight): Auto enable cache_spans for Spotlight on
    DEBUG
  * fix(logging): Handle parameter `stack_info` for the
    `LoggingIntegration`
  * fix(pure-eval): Make sentry-sdk[pure-eval] installable with
    pip==24.0
  * fix(rust_tracing): include_tracing_fields arg to control
    unvetted data in rust_tracing integration
  * fix(aws) Fix aws lambda tests (by reducing event size)
  * fix(arq): fix integration with Worker settings as a dict
  * fix(httpx): Prevent Sentry baggage duplication
  * fix(falcon): Don't exhaust request body stream
  * fix(integrations): Check `retries_left` before capturing
    exception
  * fix(openai): Use name instead of description
  * test(gcp): Only run GCP tests when they should
- Remove ipdb from BuildRequires, it should have been removed with 2.8.
  * Additional integrations will now be activated automatically if

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=87
2024-11-23 16:35:38 +00:00
a0a28bc6b2 Accepting request 1224204 from devel:languages:python
- Update to 2.18.0:
  * Various fixes & improvements
    - Add LaunchDarkly and OpenFeature integration (#3648) by
      @cmanallen
    - Correct typo in a comment (#3726) by @szokeasaurusrex
    - End http.client span on timeout (#3723) by @Zylphrex
    - Check for h2 existence in HTTP/2 transport (#3690) by @BYK
    - Use type() instead when extracting frames (#3716) by @Zylphrex
    - Prefer python_multipart import over multipart (#3710) by
      @musicinmybrain
    - Update active thread for asgi (#3669) by @Zylphrex
    - Only enable HTTP2 when DSN is HTTPS (#3678) by @BYK
    - Prepare for upstream Strawberry extension removal (#3649) by
      @DoctorJohn
    - Enhance README with improved clarity and developer-friendly
      examples (#3667) by @UTSAVS26
    - Run license compliance action on all PRs (#3699) by
      @szokeasaurusrex
    - Run CodeQL action on all PRs (#3698) by @szokeasaurusrex
    - Fix UTC assuming test (#3722) by @BYK
    - Exclude fakeredis 2.26.0 on py3.6 and 3.7 (#3695) by
      @szokeasaurusrex
    - Unpin pytest for tornado-latest tests (#3714) by
      @szokeasaurusrex
    - Install pytest-asyncio for redis tests (Python 3.12-13) (#3706)
      by @szokeasaurusrex
    - Clarify that only pinned tests are required (#3713) by
      @szokeasaurusrex
    - Remove accidentally-committed print (#3712) by @szokeasaurusrex
    - Disable broken RQ test in newly-released RQ 2.0 (#3708) by

OBS-URL: https://build.opensuse.org/request/show/1224204
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sentry-sdk?expand=0&rev=39
2024-11-14 15:10:29 +00:00
688e6211e9 - Update to 2.18.0:
* Various fixes & improvements
    - Add LaunchDarkly and OpenFeature integration (#3648) by
      @cmanallen
    - Correct typo in a comment (#3726) by @szokeasaurusrex
    - End http.client span on timeout (#3723) by @Zylphrex
    - Check for h2 existence in HTTP/2 transport (#3690) by @BYK
    - Use type() instead when extracting frames (#3716) by @Zylphrex
    - Prefer python_multipart import over multipart (#3710) by
      @musicinmybrain
    - Update active thread for asgi (#3669) by @Zylphrex
    - Only enable HTTP2 when DSN is HTTPS (#3678) by @BYK
    - Prepare for upstream Strawberry extension removal (#3649) by
      @DoctorJohn
    - Enhance README with improved clarity and developer-friendly
      examples (#3667) by @UTSAVS26
    - Run license compliance action on all PRs (#3699) by
      @szokeasaurusrex
    - Run CodeQL action on all PRs (#3698) by @szokeasaurusrex
    - Fix UTC assuming test (#3722) by @BYK
    - Exclude fakeredis 2.26.0 on py3.6 and 3.7 (#3695) by
      @szokeasaurusrex
    - Unpin pytest for tornado-latest tests (#3714) by
      @szokeasaurusrex
    - Install pytest-asyncio for redis tests (Python 3.12-13) (#3706)
      by @szokeasaurusrex
    - Clarify that only pinned tests are required (#3713) by
      @szokeasaurusrex
    - Remove accidentally-committed print (#3712) by @szokeasaurusrex
    - Disable broken RQ test in newly-released RQ 2.0 (#3708) by

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=85
2024-11-14 13:13:09 +00:00
4fc6a2c3a0 Accepting request 1223471 from devel:languages:python
- Remove ipdb from BuildRequires, it should have been removed with 2.8.

OBS-URL: https://build.opensuse.org/request/show/1223471
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sentry-sdk?expand=0&rev=38
2024-11-12 18:22:02 +00:00
708ab3f407 - Remove ipdb from BuildRequires, it should have been removed with 2.8.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=83
2024-11-12 02:15:00 +00:00
a3901de2bd Accepting request 1220113 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1220113
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sentry-sdk?expand=0&rev=37
2024-11-01 22:03:26 +00:00
efcf556acb Accepting request 1220089 from home:ecsos:python
- Update to 2.17.0
  * Various fixes & improvements
    - Add support for async calls in Anthropic and OpenAI
      integration (#3497) by @vetyy
    - Allow custom transaction names in ASGI (#3664)
      by @sl0thentr0py
    - Langchain: Handle case when parent span wasn't traced (#3656)
      by @rbasoalto
    - Fix Anthropic integration when using tool calls (#3615)
      by @kwnath
    - More defensive Django Spotlight middleware injection (#3665)
      by @BYK
    - Remove ensure_integration_enabled_async (#3632) by @sentrivana
    - Test with newer Falcon version (#3644, #3653, #3662)
      by @sentrivana
    - Fix mypy (#3657) by @sentrivana
    - Fix flaky transport test (#3666) by @sentrivana
    - Remove pin on sphinx (#3650) by @sentrivana
    - Bump actions/checkout from 4.2.0 to 4.2.1 (#3651) by @dependabot
- Changes from 2.16.0
  * Integrations
    - Bottle: Add failed_request_status_codes (#3618)
      by @szokeasaurusrex
    - Bottle: Delete never-reached code (#3605) by @szokeasaurusrex
    - Redis: Remove flaky test (#3626) by @sentrivana
    - Django: Improve getting psycopg3 connection info (#3580)
      by @nijel
    - Django: Add SpotlightMiddleware when Spotlight is enabled
      (#3600) by @BYK
    - Django: Open relevant error when SpotlightMiddleware is on
      (#3614) by @BYK
    - Django: Support http_methods_to_capture in ASGI Django
      (#3607) by @sentrivana
  * Miscellaneous
    - Add 3.13 to setup.py (#3574) by @sentrivana
    - Add 3.13 to basepython (#3589) by @sentrivana
    - Fix type of sample_rate in DSC (and add explanatory tests)
      (#3603) by @antonpirker
    - Add httpcore based HTTP2Transport (#3588) by @BYK
    - Add opportunistic Brotli compression (#3612) by @BYK
    - Add __notes__ support (#3620) by @szokeasaurusrex
    - Remove useless makefile targets (#3604) by @antonpirker
    - Simplify tox version spec (#3609) by @sentrivana
    - Consolidate contributing docs (#3606) by @antonpirker
    - Bump codecov/codecov-action from 4.5.0 to 4.6.0 (#3617)
      by @dependabot

OBS-URL: https://build.opensuse.org/request/show/1220089
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=81
2024-11-01 21:14:56 +00:00
d82821763e Accepting request 1206304 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1206304
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sentry-sdk?expand=0&rev=36
2024-10-08 15:25:22 +00:00
3014c38b1e Accepting request 1206236 from home:ojkastl_buildservice:Branch_devel_languages_python
update to 2.15.0 (and ignore one failing check, see https://github.com/getsentry/sentry-python/issues/3624)

OBS-URL: https://build.opensuse.org/request/show/1206236
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=79
2024-10-08 11:19:39 +00:00
7d66d7bb95 Accepting request 1194964 from devel:languages:python
- Update to 2.13.0:
  * New integration: Ray
  * New integration: Litestar
  * Profiling: Add client SDK info to profile chunk (#3386)
  * Serialize vars early to avoid living references (#3409)
  * Deprecate hub-based `sessions.py` logic (#3419)
  * Deprecate `is_auto_session_tracking_enabled` (#3428)
  * API: `push_scope` deprecation warning (#3355) (#3355)
  * API: Replace `push_scope` (#3353, #3354)
  * OTel: Remove experimental autoinstrumentation (#3239)
  * Graphene: Add span for grapqhl operation (#2788)
  * AI: Add async support for `ai_track` decorator (#3376)
  * CI: Workaround bug preventing Django test runs (#3371)
  * CI: Remove Django setuptools pin (#3378)
  * Tests: Test with Django 5.1 RC (#3370)
  * Broaden `add_attachment` type (#3342)
  * Add span data to the transactions trace context (#3374)
  * Gracefully fail attachment path not found case (#3337)
  * Document attachment parameters (#3342)
  * Add `disabled_integrations` (#3328)
  * Use operation name as transaction name in Strawberry (#3294)
  * WSGI integrations respect `SCRIPT_NAME` env variable (#2622)
  * Make Django DB spans have origin `auto.db.django` (#3319)
  * Sort breadcrumbs by time before sending (#3307)
  * Fix `KeyError('sentry-monitor-start-timestamp-s')` (#3278)
  * Set MongoDB tags directly on span data (#3290)
  * Lower logger level for some messages (#3305)
  * Emit deprecation warnings from `Hub` API (#3280)
  * Clarify that `instrumenter` is internal-only (#3299)
  * Support Django 5.1 (#3207)

OBS-URL: https://build.opensuse.org/request/show/1194964
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sentry-sdk?expand=0&rev=35
2024-08-21 21:25:56 +00:00
352527f729 - Update to 2.13.0:
* New integration: Ray
  * New integration: Litestar
  * Profiling: Add client SDK info to profile chunk (#3386)
  * Serialize vars early to avoid living references (#3409)
  * Deprecate hub-based `sessions.py` logic (#3419)
  * Deprecate `is_auto_session_tracking_enabled` (#3428)
  * API: `push_scope` deprecation warning (#3355) (#3355)
  * API: Replace `push_scope` (#3353, #3354)
  * OTel: Remove experimental autoinstrumentation (#3239)
  * Graphene: Add span for grapqhl operation (#2788)
  * AI: Add async support for `ai_track` decorator (#3376)
  * CI: Workaround bug preventing Django test runs (#3371)
  * CI: Remove Django setuptools pin (#3378)
  * Tests: Test with Django 5.1 RC (#3370)
  * Broaden `add_attachment` type (#3342)
  * Add span data to the transactions trace context (#3374)
  * Gracefully fail attachment path not found case (#3337)
  * Document attachment parameters (#3342)
  * Add `disabled_integrations` (#3328)
  * Use operation name as transaction name in Strawberry (#3294)
  * WSGI integrations respect `SCRIPT_NAME` env variable (#2622)
  * Make Django DB spans have origin `auto.db.django` (#3319)
  * Sort breadcrumbs by time before sending (#3307)
  * Fix `KeyError('sentry-monitor-start-timestamp-s')` (#3278)
  * Set MongoDB tags directly on span data (#3290)
  * Lower logger level for some messages (#3305)
  * Emit deprecation warnings from `Hub` API (#3280)
  * Clarify that `instrumenter` is internal-only (#3299)
  * Support Django 5.1 (#3207)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=77
2024-08-21 03:59:59 +00:00
0421c9b797 Accepting request 1188499 from devel:languages:python
- Update to 2.10.0
  * refactored a big part of the foundation of the SDK
  * Additional integrations will now be activated automatically if 
    the SDK detects the respective package is installed
  * Added new API for custom instrumentation: new_scope, isolation_scope
  * Many breaking changes, see CHANGELOG.md
  * Removed support for Python 2 and Python 3.5
  * Removed support for Celery 3.*
  * Removed support for Django 1.8, 1.9, 1.10
  * Removed support for Flask 0.*
  * Removed support for gRPC < 1.39
  * Removed support for Tornado < 6
  * few deprecations
  * fix(integrations): don't send full env to subprocess
    (bsc#1228128, CVE-2024-40647)
  * many more changes, see CHANGELOG.md
- Revised tests

- update to 1.45.0:
  * Allow to upsert monitors
  * It's now possible to provide `monitor_config` to the
    `monitor` decorator/context manager directly:
  * Add Django `signals_denylist` to filter signals that are
    attached to by `signals_spans`
  * `increment` for metrics
  * Add `value`, `unit` to `before_emit_metric`
  * New normalization rules for metric keys, names, units, tags
  * Change `data_category` from `statsd` to `metric_bucket`
  * Accessing `__mro__` might throw a `ValueError`
  * Suppress prompt spawned by subprocess when using `pythonw`

OBS-URL: https://build.opensuse.org/request/show/1188499
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sentry-sdk?expand=0&rev=34
2024-07-19 13:27:06 +00:00
28c8dfd7e4 Note CVE fix and bug reference in changelog
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=75
2024-07-19 00:38:50 +00:00
d47e88990b Accepting request 1188207 from home:mcalabkova:branches:devel:languages:python
- Update to 2.10.0
  * refactored a big part of the foundation of the SDK
  * Additional integrations will now be activated automatically if 
    the SDK detects the respective package is installed
  * Added new API for custom instrumentation: new_scope, isolation_scope
  * Many breaking changes, see CHANGELOG.md
  * Removed support for Python 2 and Python 3.5
  * Removed support for Celery 3.*
  * Removed support for Django 1.8, 1.9, 1.10
  * Removed support for Flask 0.*
  * Removed support for gRPC < 1.39
  * Removed support for Tornado < 6
  * few deprecations
  * many more changes, see CHANGELOG.md
- Revised tests

OBS-URL: https://build.opensuse.org/request/show/1188207
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=74
2024-07-18 06:45:21 +00:00
d2179131d9 - update to 1.45.0:
* Allow to upsert monitors
  * It's now possible to provide `monitor_config` to the
    `monitor` decorator/context manager directly:
  * Add Django `signals_denylist` to filter signals that are
    attached to by `signals_spans`
  * `increment` for metrics
  * Add `value`, `unit` to `before_emit_metric`
  * New normalization rules for metric keys, names, units, tags
  * Change `data_category` from `statsd` to `metric_bucket`
  * Accessing `__mro__` might throw a `ValueError`
  * Suppress prompt spawned by subprocess when using `pythonw`
  * Handle `None` in GraphQL query
  * Do not send "quiet" Sanic exceptions to Sentry
  * Implement `metric_bucket` rate limits
  * Fix type hints for `monitor` decorator
  * Remove deprecated `typing` imports in crons
  * Make `monitor_config` a `TypedDict`
  * Make `monitor` async friendly
  * Fixed `Event | None` runtime `TypeError`
  * ref: Define types at runtime
  * Explicit reexport of types
  * Add optional `keep_alive`
  * Add support for Celery Redbeat cron tasks
  * `aws_event` can be an empty list
  * Re-export `Event` in `types.py`
  * We added an integration for OpenAI to capture errors and also
    performance data when using the OpenAI Python SDK.
  * Discard open OpenTelemetry spans after 10 minutes
  * Propagate sentry-trace and baggage headers to Huey tasks

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=73
2024-06-29 19:27:25 +00:00
3d00852368 Accepting request 1183486 from devel:languages:python
Forwarded request #1181071 from Vogtinator

Reduce dependencies from 260MiB to 14MiB.

  - Only require install requirements. The extra requirements are
    mostly for integrations and not meant to be dependencies.

OBS-URL: https://build.opensuse.org/request/show/1183486
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sentry-sdk?expand=0&rev=33
2024-06-27 14:03:44 +00:00
f0a41c5f31 Accepting request 1181071 from home:Vogtinator:branches:devel:languages:python
Reduce dependencies from 260MiB to 14MiB.

- Only require install requirements. The extra requirements are
  mostly for integrations and not meant to be dependencies.

OBS-URL: https://build.opensuse.org/request/show/1181071
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sentry-sdk?expand=0&rev=71
2024-06-26 20:19:43 +00:00
5 changed files with 15 additions and 85 deletions

View File

@@ -1,32 +1,3 @@
-------------------------------------------------------------------
Fri Oct 3 08:42:53 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Update to 2.39.0
* Fix incompatibility with new Strawberry version
* Add failed_request_status_codes to Litestar
* The enable_tracing option is now deprecated. Please use traces_sample_rate instead
* Add Statsig integration
* Fix(asyncio): Improve asyncio integration error handling
* Fix memory leak by not piling up breadcrumbs forever in Spark workers
* New Beta Feature Enable Sentry logs in logging Integration
* Change CODEOWNERS back to Python SDK owners
* Deprecate set_measurement() API
* Allow configuring keep_alive via environment variable
* Sentry logs for Loguru
* Fix CI, adapt to new redis-py release
* Add support for openai-agents
* Add top-level start- and end session methods
* Use span.data instead of measurements for token usage
* Considerably raise DEFAULT_MAX_VALUE_LENGTH
* The OpenAIIntegration now supports OpenAI Responses API
* The data captured will also show up in the new AI Agents Dashboard
* Langchain and Anthropic Integration now support the Sentry AI dashboard
* Add the unraisable exception integration
* Add support for langgraph
* Many more fixes and improvements, see upstream changelog
* Note: This is my last release. So long, and thanks for all the fish! by @antonpirker
- Add upstream release.patch to fix failing test
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jan 24 18:35:13 UTC 2025 - ecsos <ecsos@opensuse.org> Fri Jan 24 18:35:13 UTC 2025 - ecsos <ecsos@opensuse.org>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-sentry-sdk # spec file for package python-sentry-sdk
# #
# Copyright (c) 2025 SUSE LLC and contributors # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -19,14 +19,12 @@
# nothing provides python2-venusian >= 1.0 needed by python2-pyramid # nothing provides python2-venusian >= 1.0 needed by python2-pyramid
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-sentry-sdk Name: python-sentry-sdk
Version: 2.39.0 Version: 2.20.0
Release: 0 Release: 0
Summary: Python SDK for Sentry.io Summary: Python SDK for Sentry.io
License: BSD-2-Clause License: BSD-2-Clause
URL: https://github.com/getsentry/sentry-python URL: https://github.com/getsentry/sentry-python
Source0: https://github.com/getsentry/sentry-python/archive/%{version}/sentry-python-%{version}.tar.gz Source0: https://github.com/getsentry/sentry-python/archive/%{version}/sentry-python-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/getsentry/sentry-python/pull/4879 fix(tests): Don't assume release is set
Patch: release.patch
BuildRequires: %{python_module Django >= 2.0} BuildRequires: %{python_module Django >= 2.0}
BuildRequires: %{python_module Flask >= 1.0} BuildRequires: %{python_module Flask >= 1.0}
BuildRequires: %{python_module MarkupSafe} BuildRequires: %{python_module MarkupSafe}
@@ -162,8 +160,17 @@ export PYTEST_ADDOPTS="-W ignore::DeprecationWarning"
export DJANGO_SETTINGS_MODULE=tests.conftest export DJANGO_SETTINGS_MODULE=tests.conftest
# do not test integration (many package are missing at SUSE): # do not test integration (many package are missing at SUSE):
rm -r tests/integrations rm -r tests/integrations
# test_auto_enabling_integrations_catches_import_error asert False where False = ..., not sure
IGNORED_CHECKS="(test_default_release and test_utils)" IGNORED_CHECKS="(test_default_release and test_utils)"
IGNORED_CHECKS="${IGNORED_CHECKS} or test_socks_proxy or test_datetime_from_isoformat" IGNORED_CHECKS="${IGNORED_CHECKS} or test_new_scopes_compat_event"
IGNORED_CHECKS="${IGNORED_CHECKS} or test_transport_works"
IGNORED_CHECKS="${IGNORED_CHECKS} or test_auto_enabling_integrations_catches_import_error"
IGNORED_CHECKS="${IGNORED_CHECKS} or test_socks_proxy or test_utils"
# https://github.com/getsentry/sentry-python/issues/3624
IGNORED_CHECKS="${IGNORED_CHECKS} or test_redis_disabled_when_not_installed"
# Related to this report gh#getsentry/sentry-python#576, looks like it
# freeze also with python 3.13
IGNORED_CHECKS="${IGNORED_CHECKS} or eventlet or greenlet"
%pytest -rs -k "not (${IGNORED_CHECKS})" %pytest -rs -k "not (${IGNORED_CHECKS})"
%files %{python_files} %files %{python_files}

View File

@@ -1,48 +0,0 @@
From f3e8a5ccd0a341cf139f474856163f0e5335741c Mon Sep 17 00:00:00 2001
From: Ivana Kellyer <ivana.kellyer@sentry.io>
Date: Fri, 3 Oct 2025 08:40:35 +0200
Subject: [PATCH] fix(tests): Don't assume release is set (#4879)
### Description
Even though we try to figure out the current release automatically if
it's not provided, it can still end up being `None`. If that's the case,
it won't be attached to logs. The `test_logs_attributes` test assumes
there always is a release, which is incorrect.
I opted for conditionally checking for `sentry.release` in the test
instead of removing the check altogether, even though the test itself is
supposed to test custom user provided attributes. The reason is that
there is no other generic logs test testing `sentry.release`.
#### Issues
Closes https://github.com/getsentry/sentry-python/issues/4878
#### Reminders
- Please add tests to validate your changes, and lint your code using
`tox -e linters`.
- Add GH Issue ID _&_ Linear ID (if applicable)
- PR title should use [conventional
commit](https://develop.sentry.dev/engineering-practices/commit-messages/#type)
style (`feat:`, `fix:`, `ref:`, `meta:`)
- For external contributors:
[CONTRIBUTING.md](https://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md),
[Sentry SDK development docs](https://develop.sentry.dev/sdk/), [Discord
community](https://discord.gg/Ww9hbqr)
---
tests/test_logs.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/test_logs.py b/tests/test_logs.py
index 596a31922e..1e252c5bfb 100644
--- a/tests/test_logs.py
+++ b/tests/test_logs.py
@@ -230,7 +230,8 @@ def test_logs_attributes(sentry_init, capture_envelopes):
for k, v in attrs.items():
assert logs[0]["attributes"][k] == v
assert logs[0]["attributes"]["sentry.environment"] == "production"
- assert "sentry.release" in logs[0]["attributes"]
+ if sentry_sdk.get_client().options.get("release") is not None:
+ assert "sentry.release" in logs[0]["attributes"]
assert logs[0]["attributes"]["sentry.message.parameter.my_var"] == "some value"
assert logs[0]["attributes"][SPANDATA.SERVER_ADDRESS] == "test-server"
assert logs[0]["attributes"]["sentry.sdk.name"].startswith("sentry.python")

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fdd3ca2d0db684d315ad07e5e5f023fb9565df0407ab6770a2ee05ceb2e840fb
size 597011

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c21d07e1d1f1dbba3887678f3711e43987bfc30c12e5e42a4c1db443bd8fbc50
size 746737