Skip to content

feat(agentscope): Add ReAct Span Support#140

Open
sipercai wants to merge 3 commits intomainfrom
liuyu/agentscope-react-step
Open

feat(agentscope): Add ReAct Span Support#140
sipercai wants to merge 3 commits intomainfrom
liuyu/agentscope-react-step

Conversation

@sipercai
Copy link
Collaborator

@sipercai sipercai commented Mar 10, 2026

Description

Add react step span instrumentation for AgentScope ReAct agents. Each ReAct iteration (reasoning → acting) is wrapped in a dedicated span for trace visualization.
Implemented via AgentScope's built-in instance-level hook system, no internal monkey-patching needed.

Fixes #137

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

5 new VCR test cases covering: text-only response, single/multi tool calls, exception handling, hook cleanup.
Verified with live traffic against CMS 2.0 OTLP backend.

  • TestReactStepSpan — 5 tests passed

Does This PR Require a Core Repo Change?

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

Change-Id: I531eed928a02863b167eaf8716adcd0cb8a1490a
Co-developed-by: Cursor <noreply@cursor.com>
Change-Id: I00078449e10b00c5757c77a5cd5f7fd3d97f99a7
Co-developed-by: Cursor <noreply@cursor.com>
@Cirilla-zmh Cirilla-zmh added documentation Improvements or additions to documentation enhancement New feature or request instrumentaion The instrumentation label represents issues related to instrumentation. genai The genai label represents issues related to generative AI. labels Mar 10, 2026
Change-Id: I35332b6ec9e130332442d9ac372df0c4b0a521ee
Co-developed-by: Cursor <noreply@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request genai The genai label represents issues related to generative AI. instrumentaion The instrumentation label represents issues related to instrumentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Refactor loongsuite-instrumentation-agentscope for the latest OTel/LoongSuite semantic conventions.

4 participants