Skip to content
Snippets Groups Projects
Commit 830c3285 authored by ale's avatar ale
Browse files

Use the semantically correct enduser.id

parent 14201ae4
No related branches found
No related tags found
No related merge requests found
Pipeline #61211 passed
......@@ -14,6 +14,7 @@ from flask import request, session, redirect, make_response, g, \
from flask_talisman import ALLOW_FROM
from opentelemetry import trace
from opentelemetry.semconv.trace import SpanAttributes
def init_sso(app, talisman):
......@@ -148,7 +149,7 @@ def auth_required(unauth_action=_redirect_to_login_server):
# Add authentication info to the current trace, if any.
current_span = trace.get_current_span()
if current_span:
current_span.set_attribute('auth.user', g.current_user)
current_span.set_attribute(SpanAttributes.ENDUSER_ID, g.current_user)
return func(*args, **kwargs)
return _auth_wrapper
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment