Skip to content

Commit

Permalink
fix(sessions): for each session record first user by earliest span st…
Browse files Browse the repository at this point in the history
…art time (#5227)
  • Loading branch information
RogerHYang committed Oct 29, 2024
1 parent 60880e4 commit 579a855
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 579a855

Please sign in to comment.