We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 189e4a9 commit 2562d79Copy full SHA for 2562d79
sentry_sdk/tracing.py
@@ -131,7 +131,7 @@ class TransactionKwargs(SpanKwargs, total=False):
131
132
# Transaction source
133
# see https://develop.sentry.dev/sdk/event-payloads/transaction/#transaction-annotations
134
-class TransactionSource(str, Enum):
+class TransactionSource(Enum):
135
COMPONENT = "component"
136
CUSTOM = "custom"
137
ROUTE = "route"
@@ -143,6 +143,12 @@ def __str__(self):
143
# type: () -> str
144
return self.value
145
146
+ def __eq__(self, other):
147
+ # type: (Any) -> bool
148
+ if isinstance(other, str):
149
+ return self.value == other
150
+ return super().__eq__(other)
151
+
152
153
# These are typically high cardinality and the server hates them
154
LOW_QUALITY_TRANSACTION_SOURCES = [
0 commit comments