forked from pool/python-sentry-sdk
Compare commits
22 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 53f88a46f7 | |||
| b8a505b373 | |||
| 1604e00778 | |||
| 893a4d21bb | |||
| dbdf04a09c | |||
| dd58154f7d | |||
| 4f24643a8d | |||
| f679475338 | |||
| 949189e404 | |||
| b8f90ea5f5 | |||
| 460b03eca5 | |||
| e8b7901255 | |||
| 37472acc5d | |||
| 549338341d | |||
| 3252d63911 | |||
| 0091b28ebd | |||
| f462d571a6 | |||
| 5290a6143a | |||
| c9c22c1aa0 | |||
| 525a8ed69a | |||
| a75f01bc27 | |||
| fb1c94987f |
@@ -1,3 +1,375 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- Update to 2.20.0
|
||||
- New integration: Add Typer integration (#3869) by @patrick91
|
||||
- For more information, see the documentation for the TyperIntegration.
|
||||
- New integration: Add Unleash feature flagging integration (#3888) by @aliu39
|
||||
- For more information, see the documentation for the UnleashIntegration.
|
||||
- Add custom tracking of feature flag evaluations (#3860) by @aliu39
|
||||
- Feature Flags: Register LD hook in setup instead of init, and don't check for initialization (#3890) by @aliu39
|
||||
- Feature Flags: Moved adding of flags context into Scope (#3917) by @antonpirker
|
||||
- Create a separate group for feature flag test suites (#3911) by @sentrivana
|
||||
- Fix flaky LaunchDarkly tests (#3896) by @aliu39
|
||||
- Fix LRU cache copying (#3883) by @ffelixg
|
||||
- Fix cache pollution from mutable reference (#3887) by @cmanallen
|
||||
- Centralize minimum version checking (#3910) by @sentrivana
|
||||
- Support SparkIntegration activation after SparkContext created (#3411) by @seyoon-lim
|
||||
- Preserve ARQ enqueue_job kwdefaults after patching (#3903) by @danmr
|
||||
- Add Github workflow to comment on issues when a fix was released (#3866) by @antonpirker
|
||||
- Update test matrix for Sanic (#3904) by @antonpirker
|
||||
- Rename scripts (#3885) by @sentrivana
|
||||
- Fix CI (#3878) by @sentrivana
|
||||
- Treat potel-base as release branch in CI (#3912) by @sentrivana
|
||||
- build(deps): bump actions/create-github-app-token from 1.11.0 to 1.11.1 (#3893) by @dependabot
|
||||
- build(deps): bump codecov/codecov-action from 5.0.7 to 5.1.1 (#3867) by @dependabot
|
||||
- build(deps): bump codecov/codecov-action from 5.1.1 to 5.1.2 (#3892) by @dependabot
|
||||
- Changes from 2.19.2
|
||||
* Various fixes & improvements
|
||||
- Deepcopy and ensure get_all function always terminates (#3861) by @cmanallen
|
||||
- Cleanup chalice test environment (#3858) by @antonpirker
|
||||
- Changes from 2.19.1
|
||||
* Various fixes & improvements
|
||||
- Fix errors when instrumenting Django cache (#3855) by @BYK
|
||||
- Copy scope.client reference as well (#3857) by @sl0thentr0py
|
||||
- Don't give up on Spotlight on 3 errors (#3856) by @BYK
|
||||
- Add missing stack frames (#3673) by @antonpirker
|
||||
- Fix wrong metadata type in async gRPC interceptor (#3205) by @fdellekart
|
||||
- Rename launch darkly hook to match JS SDK (#3743) by @aliu39
|
||||
- Script for checking if our instrumented libs are Python 3.13 compatible (#3425) by @antonpirker
|
||||
- Improve Ray tests (#3846) by @antonpirker
|
||||
- Test with Celery 5.5.0rc3 (#3842) by @sentrivana
|
||||
- Fix asyncio testing setup (#3832) by @sl0thentr0py
|
||||
- Bump codecov/codecov-action from 5.0.2 to 5.0.7 (#3821) by @dependabot
|
||||
- Fix CI (#3834) by @sentrivana
|
||||
- Use new ClickHouse GH action (#3826) by @antonpirker
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 23 16:34:15 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 14 11:54:57 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- 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
|
||||
@szokeasaurusrex
|
||||
- Unpin pytest for celery tests (#3701) by @szokeasaurusrex
|
||||
- Unpin pytest on Python 3.8+ gevent tests (#3700) by
|
||||
@szokeasaurusrex
|
||||
- Unpin pytest for Python 3.8+ common tests (#3697) by
|
||||
@szokeasaurusrex
|
||||
- Remove pytest pin in requirements-devenv.txt (#3696) by
|
||||
@szokeasaurusrex
|
||||
- Test with Falcon 4.0 (#3684) by @sentrivana
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 12 02:14:34 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Remove ipdb from BuildRequires, it should have been removed with 2.8.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 1 15:10:38 UTC 2024 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 8 06:08:53 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||
|
||||
- Update to 2.15.0:
|
||||
* Integrations
|
||||
Please see release notes for details
|
||||
https://github.com/getsentry/sentry-python/releases/tag/2.15.0
|
||||
* Miscellaneous
|
||||
- Deprecate sentry_sdk.metrics (#3512) by @szokeasaurusrex
|
||||
- Add name parameter to start_span() and deprecate description
|
||||
parameter (#3524 & #3525) by @antonpirker
|
||||
- Fix add_query_source with modules outside of project root
|
||||
(#3313) by @rominf
|
||||
- Test more integrations on 3.13 (#3578) by @sentrivana
|
||||
- Fix trailing whitespace (#3579) by @sentrivana
|
||||
- Improve get_integration typing (#3550) by @szokeasaurusrex
|
||||
- Make import-related tests stable (#3548) by @BYK
|
||||
- Fix breadcrumb sorting (#3511) by @sentrivana
|
||||
- Fix breadcrumb timestamp casting and its tests (#3546) by
|
||||
@BYK
|
||||
- Don't use deprecated logger.warn (#3552) by @sentrivana
|
||||
- Fix Cohere API change (#3549) by @BYK
|
||||
- Fix deprecation message (#3536) by @antonpirker
|
||||
- Remove experimental explain_plan feature. (#3534) by
|
||||
@antonpirker
|
||||
- X-fail one of the Lambda tests (#3592) by @antonpirker
|
||||
- Update Codecov config (#3507) by @antonpirker
|
||||
- Update actions/upload-artifact to v4 with merge (#3545) by
|
||||
@joshuarli
|
||||
- Bump actions/checkout from 4.1.7 to 4.2.0 (#3585) by
|
||||
@dependabot
|
||||
- Update to 2.14.0:
|
||||
* New SysExitIntegration (#3401) by @szokeasaurusrex
|
||||
* For more information, see the documentation for the
|
||||
SysExitIntegration.
|
||||
* Add SENTRY_SPOTLIGHT env variable support (#3443) by @BYK
|
||||
* Support Strawberry 0.239.2 (#3491) by @szokeasaurusrex
|
||||
* Add separate pii_denylist to EventScrubber and run it always
|
||||
(#3463) by @sl0thentr0py
|
||||
* Celery: Add wrapper for Celery().send_task to support behavior
|
||||
as Task.apply_async (#2377) by @divaltor
|
||||
* Django: SentryWrappingMiddleware.init fails if super() is
|
||||
object (#2466) by @cameron-simpson
|
||||
* Fix data_category for sessions envelope items (#3473) by
|
||||
@sl0thentr0py
|
||||
* Fix non-UTC timestamps (#3461) by @szokeasaurusrex
|
||||
* Remove obsolete object as superclass (#3480) by @sentrivana
|
||||
* Replace custom TYPE_CHECKING with stdlib typing.TYPE_CHECKING
|
||||
(#3447) by @dev-satoshi
|
||||
* Refactor tracing_utils.py (#3452) by @rominf
|
||||
* Explicitly export symbol in subpackages instead of ignoring
|
||||
(#3400) by @hartungstenio
|
||||
* Better test coverage reports (#3498) by @antonpirker
|
||||
* Fixed config for old coverage versions (#3504) by @antonpirker
|
||||
* Fix AWS Lambda tests (#3495) by @antonpirker
|
||||
* Remove broken Bottle tests (#3505) by @sentrivana
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 21 03:59:32 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- 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)
|
||||
* Remove apparently unnecessary `if` (#3298)
|
||||
* Preliminary support for Python 3.13 (#3200)
|
||||
* Move `sentry_sdk.init` out of `hub.py` (#3276)
|
||||
* Unhardcode integration list (#3240)
|
||||
* Allow passing of PostgreSQL port in tests (#3281)
|
||||
* Add tests for `@ai_track` decorator (#3325)
|
||||
* Do not include type checking code in coverage report (#3327)
|
||||
* Fix test_installed_modules (#3309)
|
||||
* Fix typos and grammar in a comment (#3293)
|
||||
* Fixed failed tests setup (#3303)
|
||||
* Only assert warnings we are interested in (#3314)
|
||||
- Switch to pyproject macros.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 17 13:51:46 UTC 2024 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 29 19:24:30 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- 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
|
||||
* Added Event type
|
||||
* Improve scrub_dict typing
|
||||
* Fix compatibility with `greenlet`/`gevent`
|
||||
* Fix query source relative filepath
|
||||
* Support `clickhouse-driver==0.2.7`
|
||||
* Deprecate `last_event_id()`.
|
||||
* `parsed_url` can be `None`
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 15 19:22:19 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
|
||||
|
||||
- Only require install requirements. The extra requirements are
|
||||
mostly for integrations and not meant to be dependencies.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 13 18:57:20 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-sentry-sdk
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,56 +18,61 @@
|
||||
|
||||
# nothing provides python2-venusian >= 1.0 needed by python2-pyramid
|
||||
%{?sle15_python_module_pythons}
|
||||
# ipdb no longer available for python 3.9
|
||||
%global skip_python39 1
|
||||
Name: python-sentry-sdk
|
||||
Version: 1.40.4
|
||||
Version: 2.39.0
|
||||
Release: 0
|
||||
Summary: Python SDK for Sentry.io
|
||||
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
|
||||
BuildRequires: %{python_module Django >= 1.8}
|
||||
BuildRequires: %{python_module Flask >= 0.11}
|
||||
# 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 Flask >= 1.0}
|
||||
BuildRequires: %{python_module MarkupSafe}
|
||||
BuildRequires: %{python_module SQLAlchemy >= 1.2}
|
||||
BuildRequires: %{python_module aiohttp >= 3.5}
|
||||
BuildRequires: %{python_module asttokens}
|
||||
BuildRequires: %{python_module asyncpg >= 0.23}
|
||||
BuildRequires: %{python_module base >= 3.6}
|
||||
BuildRequires: %{python_module blinker >= 1.1}
|
||||
BuildRequires: %{python_module bottle >= 0.12.13}
|
||||
BuildRequires: %{python_module celery >= 3}
|
||||
BuildRequires: %{python_module celery >= 4}
|
||||
BuildRequires: %{python_module certifi}
|
||||
BuildRequires: %{python_module executing}
|
||||
BuildRequires: %{python_module falcon >= 1.4}
|
||||
BuildRequires: %{python_module grpcio >= 1.21.1}
|
||||
BuildRequires: %{python_module grpcio >= 1.39}
|
||||
BuildRequires: %{python_module httpx >= 0.16.0}
|
||||
BuildRequires: %{python_module loguru >= 0.5}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pymongo >= 3.1}
|
||||
BuildRequires: %{python_module rq >= 0.6}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module starlette >= 0.19.1}
|
||||
BuildRequires: %{python_module tornado >= 5}
|
||||
BuildRequires: %{python_module tornado >= 6}
|
||||
BuildRequires: %{python_module urllib3 >= 1.26.11}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module Werkzeug}
|
||||
BuildRequires: %{python_module Brotli}
|
||||
BuildRequires: %{python_module PySocks}
|
||||
BuildRequires: %{python_module Werkzeug}
|
||||
BuildRequires: %{python_module eventlet}
|
||||
BuildRequires: %{python_module fastapi >= 0.79.0}
|
||||
BuildRequires: %{python_module gevent}
|
||||
BuildRequires: %{python_module greenlet}
|
||||
BuildRequires: %{python_module h2}
|
||||
BuildRequires: %{python_module hypothesis}
|
||||
BuildRequires: %{python_module ipdb}
|
||||
BuildRequires: %{python_module jsonschema >= 3.2.0}
|
||||
BuildRequires: %{python_module pyramid}
|
||||
BuildRequires: %{python_module pyrsistent >= 0.16.0}
|
||||
BuildRequires: %{python_module pytest-asyncio}
|
||||
BuildRequires: %{python_module pytest-cov >= 2.8.1}
|
||||
BuildRequires: %{python_module pytest-forked >= 1.4.0}
|
||||
BuildRequires: %{python_module pytest-localserver >= 0.5.1}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module responses}
|
||||
BuildRequires: %{python_module tox >= 3.7.0}
|
||||
# /SECTION
|
||||
# SECTION test requirements - which rise up buildtime error or missing in openSUSE
|
||||
#BuildRequires: %%{python_module pytest-watch >= 4.2.0}
|
||||
@@ -80,37 +85,39 @@ BuildRequires: %{python_module tox >= 3.7.0}
|
||||
#BuildRequires: %%{python_module pure_eval}
|
||||
#BuildRequires: %%{python_module chalice >= 1.16.0}
|
||||
#BuildRequires: %%{python_module starlite >= 1.48}
|
||||
#BuildRequires: %%{python_module fastapi >= 0.79.0}
|
||||
#BuildRequires: %%{python_module quart >= 0.16.1}
|
||||
#BuildRequires: %%{python_module sanic >= 0.8}
|
||||
#BuildRequires: %%{python_module opentelemetry-distro >= 0.40b0}
|
||||
#BuildRequires: %%{python_module beam >= 2.12}
|
||||
#BuildRequires: %%{python_module chalice >= 1.16.0}
|
||||
#BuildRequires: %%{python_module clickhouse-driver >= 0.2.0}
|
||||
#BuildRequires: %%{python_module fastapi >= 0.79.0}
|
||||
# /SECTION
|
||||
Requires: python-Django >= 1.8
|
||||
Requires: python-Flask >= 0.11
|
||||
Requires: python-MarkupSafe
|
||||
Requires: python-SQLAlchemy >= 1.2
|
||||
Requires: python-aiohttp >= 3.5
|
||||
Requires: python-asttokens
|
||||
Requires: python-asyncpg >= 0.23
|
||||
Requires: python-blinker >= 1.1
|
||||
Requires: python-bottle >= 0.12.13
|
||||
Requires: python-celery >= 3
|
||||
# Install requirements
|
||||
Requires: python-certifi
|
||||
Requires: python-executing
|
||||
Requires: python-falcon >= 1.4
|
||||
Requires: python-grpcio >= 1.21.1
|
||||
Requires: python-httpx >= 0.16.0
|
||||
Requires: python-jsonschema
|
||||
Requires: python-loguru >= 0.5
|
||||
Requires: python-pymongo >= 3.1
|
||||
Requires: python-rq >= 0.6
|
||||
Requires: python-starlette >= 0.19.1
|
||||
Requires: python-tornado >= 5
|
||||
Requires: python-urllib3 >= 1.26.11
|
||||
# Extra requirements
|
||||
Suggests: python-Django >= 2.0
|
||||
Suggests: python-Flask >= 1.0
|
||||
Suggests: python-MarkupSafe
|
||||
Suggests: python-SQLAlchemy >= 1.2
|
||||
Suggests: python-aiohttp >= 3.5
|
||||
Suggests: python-asttokens
|
||||
Suggests: python-asyncpg >= 0.23
|
||||
Suggests: python-blinker >= 1.1
|
||||
Suggests: python-bottle >= 0.12.13
|
||||
Suggests: python-celery >= 4
|
||||
Suggests: python-executing
|
||||
Suggests: python-falcon >= 1.4
|
||||
Suggests: python-fastapi >= 0.79.0
|
||||
Suggests: python-grpcio >= 1.39
|
||||
Suggests: python-httpx >= 0.16.0
|
||||
Suggests: python-jsonschema
|
||||
Suggests: python-loguru >= 0.5
|
||||
Suggests: python-pymongo >= 3.1
|
||||
Suggests: python-rq >= 0.6
|
||||
Suggests: python-starlette >= 0.19.1
|
||||
Suggests: python-tornado >= 6
|
||||
Suggests: python-h2
|
||||
# SECTION extra requirements - which rise up buildtime error or missing in openSUSE
|
||||
#Requires: python-sanic >= 0.8
|
||||
#Requires: python-apache-beam >= 2.12
|
||||
@@ -120,7 +127,6 @@ Requires: python-urllib3 >= 1.26.11
|
||||
#Requires: python-pure_eval
|
||||
#Requires: python-chalice >= 1.16.0
|
||||
#Requires: python-starlite >= 1.48
|
||||
#Requires: python-fastapi >= 0.79.0
|
||||
#Requires: python-quart >= 0.16.1
|
||||
#Requires: python-sanic >= 0.8
|
||||
#Requires: python-opentelemetry-distro >= 0.40b0
|
||||
@@ -140,23 +146,30 @@ https://sentry.io/for/python/
|
||||
%autosetup -p1 -n sentry-python-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
# Fix python-bytecode-inconsistent-mtime
|
||||
pushd %{buildroot}%{python_sitelib}
|
||||
find . -name '*.pyc' -exec rm -f '{}' ';'
|
||||
python%python_bin_suffix -m compileall *.py ';'
|
||||
popd
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
export PYTEST_ADDOPTS="-W ignore::DeprecationWarning"
|
||||
export DJANGO_SETTINGS_MODULE=tests.conftest
|
||||
# do not test integration (many package are missing at SUSE):
|
||||
rm -r tests/integrations
|
||||
# test_auto_enabling_integrations_catches_import_error asert False where False = ..., not sure
|
||||
%pytest -rs -k 'not (test_transport_works or test_auto_enabling_integrations_catches_import_error or test_filename or test_transport_infinite_loop or test_simple_rate_limits or test_data_category_limits or test_complex_limits_without_data_category or test_leaks or test_utils or test_metrics)'
|
||||
IGNORED_CHECKS="(test_default_release and test_utils)"
|
||||
IGNORED_CHECKS="${IGNORED_CHECKS} or test_socks_proxy or test_datetime_from_isoformat"
|
||||
%pytest -rs -k "not (${IGNORED_CHECKS})"
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md CHANGELOG.md CONTRIBUTING.md CONTRIBUTING-aws-lambda.md
|
||||
%doc README.md CHANGELOG.md CONTRIBUTING.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/sentry*/
|
||||
%{python_sitelib}/sentry_sdk
|
||||
%{python_sitelib}/sentry_sdk-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
48
release.patch
Normal file
48
release.patch
Normal file
@@ -0,0 +1,48 @@
|
||||
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")
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6bf702dcee87ee2c276eeb257e5550a502e7342600e3d4be7e09d6f440a28d13
|
||||
size 458601
|
||||
3
sentry-python-2.39.0.tar.gz
Normal file
3
sentry-python-2.39.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c21d07e1d1f1dbba3887678f3711e43987bfc30c12e5e42a4c1db443bd8fbc50
|
||||
size 746737
|
||||
Reference in New Issue
Block a user