Skip to content

fix(telemetry): correct environment variable precedence for OTEL config #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 29, 2025

Conversation

JackYPCOnline
Copy link
Contributor

Description

[Provide a detailed description of the changes in this PR]
Correct environment variable precedence for OTEL config

Related Issues

[Link to related issues using #issue-number format]

Documentation PR

[Link to related associated PR in the agent-docs repo]

Type of Change

x Bug fix

  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe):

[Choose one of the above types of changes]

Testing

[How have you tested the change?]
Local test and local deploy, test otel behavior then validate via Langfuse.

  • hatch fmt --linter
  • hatch fmt --formatter
  • hatch test --all
  • Verify that the changes do not break functionality or introduce warnings in consuming repositories: agents-docs, agents-tools, agents-cli

Checklist

  • [x ] I have read the CONTRIBUTING document
  • [x ] I have added tests that prove my fix is effective or my feature works
  • [x ] I have updated the documentation accordingly
  • [x ] I have added an appropriate example to the documentation to outline the feature
  • [x ] My changes generate no new warnings
  • [x ] 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.

@JackYPCOnline JackYPCOnline requested a review from a team as a code owner May 23, 2025 15:46
@JackYPCOnline JackYPCOnline requested a review from zastrowm May 23, 2025 19:34
@JackYPCOnline JackYPCOnline marked this pull request as draft May 23, 2025 20:11
@JackYPCOnline JackYPCOnline requested a review from Unshure May 23, 2025 21:25
@JackYPCOnline JackYPCOnline marked this pull request as ready for review May 23, 2025 21:25
@JackYPCOnline JackYPCOnline marked this pull request as draft May 27, 2025 15:24
@JackYPCOnline JackYPCOnline marked this pull request as ready for review May 27, 2025 15:43
@JackYPCOnline
Copy link
Contributor Author

Tested locally with constructor, env. Export as designed.

zastrowm
zastrowm previously approved these changes May 27, 2025
@Unshure Unshure merged commit 73dae72 into strands-agents:main May 29, 2025
20 checks passed
jer96 pushed a commit to lukehau/sdk-python that referenced this pull request Jun 3, 2025
…ig (strands-agents#86)

* fix(telemetry): correct environment variable precedence for OTEL configuration

* fix(telemetry): update get_tracer function to adapt the changes

* fix(telemetry): fix tracer initialization

---------

Co-authored-by: Jack Yuan <[email protected]>
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