Skip to content

Commit e69677c

Browse files
authored
Downgrade SDK because rc4 introduced a bug with Celery instrumentation. (#68960)
We introduces a bug in Celery instrumentation in the version 2.0.0rc4, so we will downgrade to rc3
1 parent 0bd6396 commit e69677c

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

requirements-base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ sentry-kafka-schemas>=0.1.68
6767
sentry-ophio==0.2.6
6868
sentry-redis-tools>=0.1.7
6969
sentry-relay>=0.8.56
70-
sentry-sdk>=2.0.0rc5
70+
sentry-sdk==2.0.0rc3
7171
snuba-sdk>=2.0.32
7272
simplejson>=3.17.6
7373
sqlparse>=0.4.4

requirements-dev-frozen.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ sentry-kafka-schemas==0.1.68
184184
sentry-ophio==0.2.6
185185
sentry-redis-tools==0.1.7
186186
sentry-relay==0.8.56
187-
sentry-sdk==2.0.0rc5
187+
sentry-sdk==2.0.0rc3
188188
sentry-usage-accountant==0.0.10
189189
simplejson==3.17.6
190190
six==1.16.0

requirements-frozen.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ sentry-kafka-schemas==0.1.68
124124
sentry-ophio==0.2.6
125125
sentry-redis-tools==0.1.7
126126
sentry-relay==0.8.56
127-
sentry-sdk==2.0.0rc5
127+
sentry-sdk==2.0.0rc3
128128
sentry-usage-accountant==0.0.10
129129
simplejson==3.17.6
130130
six==1.16.0

src/sentry/conf/types/sdk_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
from collections.abc import Callable
44
from typing import Any, Literal, NotRequired, TypedDict
55

6-
from sentry_sdk.types import Event, Hint
6+
Event = Any
7+
Hint = Any
78

89

910
class SdkConfig(TypedDict):

src/sentry/metrics/minimetrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def patched_emit(
100100
MetricsAggregator._emit = patched_emit # type: ignore[method-assign]
101101

102102

103-
def before_emit_metric(key: str, value: int | float | str, unit: str, tags: dict[str, Any]) -> bool:
103+
def before_emit_metric(key: str, tags: dict[str, Any]) -> bool:
104104
if not options.get("delightful_metrics.enable_common_tags"):
105105
tags.pop("transaction", None)
106106
tags.pop("release", None)

src/sentry/utils/sdk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
# Can't import models in utils because utils should be the bottom of the food chain
3030
if TYPE_CHECKING:
31-
from sentry_sdk.types import Event, Hint
31+
from sentry_sdk._types import Event, Hint
3232

3333
from sentry.models.organization import Organization
3434
from sentry.services.hybrid_cloud.organization import RpcOrganization

0 commit comments

Comments
 (0)