Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
antonpirker committed Feb 21, 2025
1 parent 90358dd commit 2a3f7a8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sentry_sdk/integrations/sanic.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,7 @@ async def _set_transaction(request, route, **_):
with capture_internal_exceptions():
scope = sentry_sdk.get_current_scope()
route_name = route.name.replace(request.app.name, "").strip(".")
scope.set_transaction_name(
route_name, source=TransactionSource.COMPONENT
)
scope.set_transaction_name(route_name, source=TransactionSource.COMPONENT)


def _sentry_error_handler_lookup(self, exception, *args, **kwargs):
Expand Down

0 comments on commit 2a3f7a8

Please sign in to comment.