-
Notifications
You must be signed in to change notification settings - Fork 652
Comparing changes
Open a pull request
base repository: getsentry/sentry-python
base: 4cc6fda
head repository: getsentry/sentry-python
compare: 5179f60
- 14 commits
- 62 files changed
- 8 contributors
Commits on Jul 13, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 4b9f834 - Browse repository at this point
Copy the full SHA 4b9f834View commit details -
ref: Move
nullcontexttosentry_sdk.utils(#6805)Move nullcontext from _wsgi_common to utils so it can be imported without pulling in WSGI-specific code. Update all consumers. Co-authored-by: Claude Opus 4.6 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f1e104e - Browse repository at this point
Copy the full SHA f1e104eView commit details -
chore: remove Claude permission settings (#6806)
With Claude's auto mode, this is no longer required and could potentially be even counter-productive. Also gets rid of the warning when opening the repo in Claude for the first time.
Configuration menu - View commit details
-
Copy full SHA for 2b9c102 - Browse repository at this point
Copy the full SHA 2b9c102View commit details -
test: Remove flaky no cyclic garbage test (#6817)
The test flakes on 3.14t, and our test suite is not responsible for testing garbage collection details.
Configuration menu - View commit details
-
Copy full SHA for fbc85c1 - Browse repository at this point
Copy the full SHA fbc85c1View commit details
Commits on Jul 14, 2026
-
test(logging): Fix flaky test_logging_captured_warnings (#6824)
## Summary Fixes a flaky failure in `tests/integrations/logging/test_logging.py::test_logging_captured_warnings` seen in CI (`assert len(recwarn) == 1` failing with `assert 2 == 1`). ## Root cause The `recwarn` fixture records **every** warning emitted during the test. The test asserted the total count was exactly 1, which holds in isolation and in file order, but fails in the full `tests` suite when an unrelated warning leaks in from another module (warning filter/registry state is process-global). Whether it reproduces depends on test ordering. ## Fix Filter `recwarn` for the specific `"third"` warning the test actually cares about instead of asserting on the total count. This preserves the test's intent — verifying that `"third"` (emitted after `captureWarnings(False)`) is not captured by Sentry but surfaces as a normal warning — while being immune to stray warnings from other tests. Co-authored-by: Claude Opus 4.6 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for baa423f - Browse repository at this point
Copy the full SHA baa423fView commit details -
feat(tracing): Promote trace_lifecycle and ignore_spans to top-level …
…options (#6821) Expose `trace_lifecycle` and `ignore_spans` as top-level `sentry_sdk.init()` parameters instead of requiring them under `_experiments`. The `_experiments` keys remain supported for backwards compatibility, but the top-level value now takes precedence: when both sources are set, `has_span_streaming_enabled` and `is_ignored_span` respect the top-level `trace_lifecycle` and fall back to `_experiments` only when it is unset. Add a validation warning when `ignore_spans` is set but span streaming is not enabled, since the option only takes effect in stream mode. Update the span-streaming docstrings to reference the new top-level configuration. Fixes PY-2609 Fixes #6820
Configuration menu - View commit details
-
Copy full SHA for e0d2c4a - Browse repository at this point
Copy the full SHA e0d2c4aView commit details -
fix(tracing): Skip child span creation in streaming path when no curr…
…ent span (django) (#6809) ## Summary - When span streaming is enabled and there is no current span, Django integrations should not create new root segments for child-span operations - Adds a `sentry_sdk.traces.get_current_span() is None` guard before creating spans in the streaming path - Affected: django init, asgi, caching, middleware, signals_handlers, tasks, templates, views Part of #6819 --------- Co-authored-by: Claude Opus 4.6 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5c14034 - Browse repository at this point
Copy the full SHA 5c14034View commit details
Commits on Jul 15, 2026
-
fix(tracing): Skip child span creation in streaming path when no curr…
…ent span (web frameworks) (#6810)
Configuration menu - View commit details
-
Copy full SHA for dbf5d03 - Browse repository at this point
Copy the full SHA dbf5d03View commit details -
fix(tracing): Skip child span creation in streaming path when no curr…
…ent span (databases) (#6808) ## Summary - When span streaming is enabled and there is no current span, database integrations should not create new root segments for child-span operations - Adds a `sentry_sdk.traces.get_current_span() is None` guard before creating spans in the streaming path - Affected integrations: aiomysql, asyncpg, clickhouse_driver, pymongo, redis Part of #6819 --------- Co-authored-by: Claude Opus 4.6 <[email protected]> Co-authored-by: Erica Pisani <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d695a6e - Browse repository at this point
Copy the full SHA d695a6eView commit details -
fix(tracing): Skip child span creation in streaming path when no curr…
…ent span (misc) (#6815)
Configuration menu - View commit details
-
Copy full SHA for b199a9e - Browse repository at this point
Copy the full SHA b199a9eView commit details
Commits on Jul 16, 2026
-
fix(tracing): Skip child span creation in streaming path when no curr…
…ent span (task queues) (#6814) ## Summary - When span streaming is enabled and there is no current span, task queue integrations should not create new root segments for child-span operations - Adds a `sentry_sdk.traces.get_current_span() is None` guard before creating spans in the streaming path - Affected integrations: celery, huey, arq, ray ## Test plan - [ ] Existing tests pass - [ ] Verify that in streaming mode, no orphan root segments are created for task queue operations when there's no active span 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.6 <[email protected]> Co-authored-by: Erica Pisani <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for efddaab - Browse repository at this point
Copy the full SHA efddaabView commit details -
fix(tracing): Skip child span creation in streaming path when no curr…
…ent span (HTTP clients) (#6811) ## Summary - When span streaming is enabled and there is no current span, HTTP client integrations should not create new root segments for child-span operations - Adds a `sentry_sdk.traces.get_current_span() is None` guard before creating spans in the streaming path - Affected integrations: httpx, httpx2, pyreqwest, boto3, stdlib (urllib) ## Test plan - [ ] Existing tests pass - [ ] Verify that in streaming mode, no orphan root segments are created for outgoing HTTP requests when there's no active span 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.6 <[email protected]> Co-authored-by: Erica Pisani <[email protected]> Co-authored-by: Neel Shah <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5ba869c - Browse repository at this point
Copy the full SHA 5ba869cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e4bcb59 - Browse repository at this point
Copy the full SHA e4bcb59View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5179f60 - Browse repository at this point
Copy the full SHA 5179f60View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 4cc6fda...5179f60