Skip to content

Commit e0ce647

Browse files
committed
fix(starlette): Support app.host
1 parent 5dcda1d commit e0ce647

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/starlette.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ def _transaction_name_from_router(scope):
693693
for route in router.routes:
694694
match = route.matches(scope)
695695
if match[0] == Match.FULL:
696-
return route.path
696+
return getattr(route, "path", None)
697697

698698
return None
699699

0 commit comments

Comments
 (0)