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 0981280 commit e32e972Copy full SHA for e32e972
openlibrary/utils/sentry.py
@@ -5,7 +5,7 @@
5
6
import sentry_sdk
7
import web
8
-from sentry_sdk.tracing import TRANSACTION_SOURCE_ROUTE, Transaction
+from sentry_sdk.tracing import Transaction, TransactionSource
9
from sentry_sdk.utils import capture_internal_exceptions
10
11
from infogami.utils.app import (
@@ -139,7 +139,7 @@ def __call__(self, handler):
139
environ,
140
op="http.server",
141
name=route_name,
142
- source=TRANSACTION_SOURCE_ROUTE,
+ source=TransactionSource.ROUTE,
143
)
144
145
with hub.start_transaction(transaction):
0 commit comments