Skip to content

Comments

Add subcomponent attribute support for Strands and Autogen agent/tool spans#1651

Closed
sgoel-nr wants to merge 17 commits intomainfrom
strands-subcomponet-support
Closed

Add subcomponent attribute support for Strands and Autogen agent/tool spans#1651
sgoel-nr wants to merge 17 commits intomainfrom
strands-subcomponet-support

Conversation

@sgoel-nr
Copy link
Contributor

@sgoel-nr sgoel-nr commented Feb 10, 2026

Summary

  • Adds a subcomponent span attribute to agent and tool FunctionTrace spans in both Strands and Autogen instrumentation hooks
  • The attribute is a JSON-encoded string containing type (APM-AI_AGENT or APM-AI_TOOL) and name (the agent or tool name), enabling downstream systems to identify and classify agentic subcomponents within a trace
  • Registers subcomponent as an allowed agent attribute in the core attribute allowlist
  • Adds validate_span_events assertions to existing Autogen tests (assistant agent and teams) to verify the attribute is present with correct values

@sgoel-nr sgoel-nr requested a review from a team as a code owner February 10, 2026 05:54
@sgoel-nr sgoel-nr changed the title Strands subcomponet support [Do not review] Strands subcomponet support Feb 10, 2026
@github-actions
Copy link

github-actions bot commented Feb 10, 2026

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 7 0 0 1.01s
✅ MARKDOWN markdownlint 7 0 0 0 1.43s
✅ PYTHON ruff 967 0 0 0 1.06s
✅ PYTHON ruff-format 967 0 0 0 0.37s
✅ YAML prettier 15 0 0 0 1.49s
✅ YAML v8r 15 0 0 4.85s
✅ YAML yamllint 15 0 0 0.68s

See detailed reports in MegaLinter artifacts

MegaLinter is graciously provided by OX Security

@mergify mergify bot added the tests-failing Tests failing in CI. label Feb 10, 2026
@codecov-commenter
Copy link

codecov-commenter commented Feb 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.71%. Comparing base (1efa4a5) to head (ab9733c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1651      +/-   ##
==========================================
- Coverage   81.71%   81.71%   -0.01%     
==========================================
  Files         210      210              
  Lines       24690    24697       +7     
  Branches     3884     3884              
==========================================
+ Hits        20175    20180       +5     
- Misses       3198     3200       +2     
  Partials     1317     1317              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sgoel-nr sgoel-nr changed the title [Do not review] Strands subcomponet support Add subcomponent attribute support for Strands and Autogen agent/tool spans Feb 10, 2026
@TimPansino
Copy link
Contributor

TimPansino commented Feb 19, 2026

Superseded by #1666

@TimPansino TimPansino closed this Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests-failing Tests failing in CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants