Skip to content

fix end span in local conversation run - #1432

Merged
enyst merged 2 commits into
OpenHands:mainfrom
lmnr-ai:local_conversation_fix_observability_span_end
Dec 18, 2025
Merged

enyst merged 2 commits into
OpenHands:mainfrom
lmnr-ai:local_conversation_fix_observability_span_end

Conversation

@Rainhunter13

@Rainhunter13 Rainhunter13 commented Dec 18, 2025 •

Copy link
Copy Markdown
Contributor

There is a mistake in the way the _end_observability_span is called as span shouldn't be ended manually inside the @observe decorator. This behaviour results in the exception during context detaching. We can remove the observability span end form run() function as it happens already inside close().

@enyst
enyst self-requested a review December 18, 2025 12:07

@enyst enyst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@enyst
enyst enabled auto-merge (squash) December 18, 2025 12:08
@enyst
enyst merged commit 52604a7 into OpenHands:main Dec 18, 2025
StressTestor pushed a commit to StressTestor/software-agent-sdk that referenced this pull request Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants