Skip to content

fix: attached custom attributes to all spans#1235

Merged
poshinchen merged 1 commit intostrands-agents:mainfrom
poshinchen:fix/attributes-propagation
Nov 25, 2025
Merged

fix: attached custom attributes to all spans#1235
poshinchen merged 1 commit intostrands-agents:mainfrom
poshinchen:fix/attributes-propagation

Conversation

@poshinchen
Copy link
Contributor

Description

When specifying custom attributes, the attributes are only added into the agent span. This change propagates the attributes to all underlying spans.

Related Issues

N/A

Documentation PR

N/A

Type of Change

Bug fix / Chore change

Testing

How have you tested the change? Verify that the changes do not break functionality or introduce warnings in consuming repositories: agents-docs, agents-tools, agents-cli

  • I ran hatch run prepare

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@poshinchen poshinchen requested a review from a team November 21, 2025 21:37
@poshinchen poshinchen marked this pull request as ready for review November 21, 2025 21:37
@poshinchen poshinchen force-pushed the fix/attributes-propagation branch from 49c14fd to 05f61da Compare November 24, 2025 17:15
@github-actions github-actions bot added size/s and removed size/s labels Nov 24, 2025
@codecov
Copy link

codecov bot commented Nov 24, 2025

Codecov Report

❌ Patch coverage is 85.18519% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/strands/multiagent/base.py 55.55% 3 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

JackYPCOnline
JackYPCOnline previously approved these changes Nov 24, 2025
@poshinchen poshinchen merged commit 8e6f48a into strands-agents:main Nov 25, 2025
13 of 14 checks passed
dbschmigelski pushed a commit to dbschmigelski/sdk-python that referenced this pull request Dec 9, 2025
JackYPCOnline pushed a commit to CrysisDeu/sdk-python that referenced this pull request Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants