Skip to content

Commit eca6d7b

Browse files
Remove session_id attachment logic from get_plans function
1 parent e4a46cf commit eca6d7b

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/backend/v4/api/router.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,13 +1405,6 @@ async def get_plans(request: Request):
14051405
user_id=user_id, team_id=current_team.team_id, status=PlanStatus.completed
14061406
)
14071407

1408-
# Attach session_id to span if plans exist
1409-
if all_plans and len(all_plans) > 0 and hasattr(all_plans[0], 'session_id'):
1410-
span = trace.get_current_span()
1411-
if span:
1412-
# Use first plan's session_id as representative
1413-
span.set_attribute("session_id", all_plans[0].session_id)
1414-
14151408
return all_plans
14161409

14171410

0 commit comments

Comments
 (0)