Skip to content

Commit e75666e

Browse files
committed
Small fixes
1 parent bb32ee7 commit e75666e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/integrations/asgi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ async def _run_app(self, scope, callback):
149149
transaction = Transaction(op="asgi.server")
150150

151151
transaction.name = _DEFAULT_TRANSACTION_NAME
152-
transaction.source + TRANSACTION_SOURCE_UNKNOWN
152+
transaction.source = TRANSACTION_SOURCE_UNKNOWN
153153
transaction.set_tag("asgi.type", ty)
154154

155155
with hub.start_transaction(
@@ -218,7 +218,7 @@ def _set_transaction_name_and_source(self, event, transaction_style, asgi_scope)
218218
# done, which is sometime after the request has started. If we have
219219
# an endpoint, overwrite our generic transaction name.
220220
if endpoint:
221-
name = transaction_from_function(endpoint)
221+
name = transaction_from_function(endpoint) or ""
222222

223223
elif transaction_style == "url":
224224
# FastAPI includes the route object in the scope to let Sentry extract the

0 commit comments

Comments
 (0)