From 5c0d6c5fb068701fcc7367c6e4a5d8e02cf7a13c Mon Sep 17 00:00:00 2001 From: Andrey Cheptsov Date: Mon, 23 Nov 2026 13:30:37 +0100 Subject: [PATCH] Fix background tasks failing with sentry-sdk 3 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 --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 027baa405..d1f7dc804 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -239,7 +239,8 @@ server = [ "aiosqlite", "docker>=6.0.0", "python-dxf>=12.1.1", - "sentry-sdk[fastapi]>=2.27.0", + # sentry-sdk 3 removed APIs that the server uses (#4513). + "sentry-sdk[fastapi]>=2.27.0,<3", "alembic-postgresql-enum", "asyncpg", "python-json-logger>=3.1.0",