diff --git a/src/phoenix/db/insertion/span.py b/src/phoenix/db/insertion/span.py index a5fcba714f..7aa575d104 100644 --- a/src/phoenix/db/insertion/span.py +++ b/src/phoenix/db/insertion/span.py @@ -54,8 +54,8 @@ async def insert_span( project_session.project_id = project_rowid if span.start_time < project_session.start_time: project_session.start_time = span.start_time - if session_user and project_session.session_user != session_user: - project_session.session_user = session_user + if session_user and project_session.session_user != session_user: + project_session.session_user = session_user else: project_session = models.ProjectSession( project_id=project_rowid,