Skip to content

Commit 16029af

Browse files
authored
fix: cap sentry-sdk below 3 (#327)
1 parent 705d8a3 commit 16029af

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎pyproject.toml‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ sentry = [
5454
# 2.69.0 signs `sentry-trace`/`baggage` into SigV4 SignedHeaders and then rewrites them after
5555
# signing, so every aiobotocore AWS call inside a transaction fails with SignatureDoesNotMatch
5656
# (getsentry/sentry-python#7426, fixed in 2.69.1).
57-
"sentry-sdk>=2.1,!=2.69.0; python_version < '3.13'",
58-
"sentry-sdk>=2.11,!=2.69.0; python_version == '3.13'",
59-
"sentry-sdk>=2.59,!=2.69.0; python_version >= '3.14'",
57+
# <3 because 3.0 gives LoggingIntegration an `event_level` that defaults to None, so the
58+
# `level`-only integration SentryInstrument builds would stop turning logged errors into events.
59+
"sentry-sdk>=2.1,!=2.69.0,<3; python_version < '3.13'",
60+
"sentry-sdk>=2.11,!=2.69.0,<3; python_version == '3.13'",
61+
"sentry-sdk>=2.59,!=2.69.0,<3; python_version >= '3.14'",
6062
]
6163
pyroscope = [
6264
# >=0.7.2 for pyroscope.shutdown() (PyroscopeInstrument.teardown); 0.7.1 and below carry

0 commit comments

Comments
 (0)