Repository navigation
Fix background tasks failing with sentry-sdk 3 - #4514
Merged
Merged
Conversation
sentry-sdk 3.0.0, released on 2026-11-23, removed `sentry_sdk.start_transaction` and the `enable_tracing` and `profiles_sample_rate` options. `pyproject.toml` had no upper bound, so new environments installed it: every pipeline and scheduled task of the server failed with `AttributeError`, `sentry_sdk.init` failed with `TypeError` when a DSN is set, and pyright failed in CI. Require sentry-sdk below 3 until the server moves to its new API. Fixes #4513. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
r4victor
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New environments install
sentry-sdk3.0.0, released on 2026-11-23, and the server then fails: every pipeline and scheduled task raisesAttributeError: module 'sentry_sdk' has no attribute 'start_transaction', so runs, instances, fleets, gateways and volumes are not processed. WithDSTACK_SENTRY_DSNset,sentry_sdk.initraisesTypeError: Unknown option 'enable_tracing'. pyright fails in CI for the same calls.sentry-sdkis now required below 3. With it, a new environment gets 2.76.0, the tasks run, and a server started from this branch logs no errors.Released versions have the same open requirement, so installations made after the
sentry-sdkrelease are affected until a release with this fix;pip install "sentry-sdk<3"works around it.Moving the server to the
sentry-sdk3 API (start_span,traces_sample_rate,profile_session_sample_rate) is left for a separate change.Fixes #4513.
🤖 Generated with Claude Code