Skip to content

Commit fbc0aee

Browse files
committed
add profile span to permissions endpoint
1 parent 5650206 commit fbc0aee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

services/web/server/src/simcore_service_webserver/users/_notifications_rest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
parse_request_path_parameters_as,
1313
)
1414
from servicelib.redis import handle_redis_returns_union_types
15+
from servicelib.tracing import with_profiled_span
1516

1617
from .._meta import API_VTAG
1718
from ..login.decorators import login_required
@@ -123,6 +124,7 @@ async def mark_notification_as_read(request: web.Request) -> web.Response:
123124

124125
@routes.get(f"/{API_VTAG}/me/permissions", name="list_user_permissions")
125126
@login_required
127+
@with_profiled_span
126128
@permission_required("user.permissions.read")
127129
async def list_user_permissions(request: web.Request) -> web.Response:
128130
req_ctx = UsersRequestContext.model_validate(request)

0 commit comments

Comments
 (0)