Skip to content

Commit e32e972

Browse files
committed
Fix Sentry imports
See getsentry/sentry-python#3889
1 parent 0981280 commit e32e972

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openlibrary/utils/sentry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import sentry_sdk
77
import web
8-
from sentry_sdk.tracing import TRANSACTION_SOURCE_ROUTE, Transaction
8+
from sentry_sdk.tracing import Transaction, TransactionSource
99
from sentry_sdk.utils import capture_internal_exceptions
1010

1111
from infogami.utils.app import (
@@ -139,7 +139,7 @@ def __call__(self, handler):
139139
environ,
140140
op="http.server",
141141
name=route_name,
142-
source=TRANSACTION_SOURCE_ROUTE,
142+
source=TransactionSource.ROUTE,
143143
)
144144

145145
with hub.start_transaction(transaction):

0 commit comments

Comments
 (0)