Skip to content

Commit

Permalink
fix: record only first user for each session
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerHYang committed Oct 29, 2024
1 parent 9944b18 commit 7514b8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/phoenix/db/insertion/span.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7514b8b

Please sign in to comment.