Skip to content
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

test: validate code-based config is preferred over env vars in ZipkinExporterBuilder #2836

Merged
merged 3 commits into from
Mar 20, 2025

Conversation

gruebel
Copy link
Member

@gruebel gruebel commented Mar 19, 2025

Relates to #1225

Changes

  • I couldn't find a way to validate the timeout env var prioritization

Merge requirement checklist

  • CONTRIBUTING guidelines followed
  • Unit tests added/updated (if applicable)
  • Appropriate CHANGELOG.md files updated for non-trivial, user-facing changes
  • Changes in public API reviewed (if applicable)

@gruebel gruebel requested a review from a team as a code owner March 19, 2025 22:27
Copy link

codecov bot commented Mar 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.7%. Comparing base (dc580ff) to head (0dbe359).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #2836     +/-   ##
=======================================
+ Coverage   80.5%   80.7%   +0.1%     
=======================================
  Files        124     124             
  Lines      23477   23493     +16     
=======================================
+ Hits       18914   18961     +47     
+ Misses      4563    4532     -31     

☔ 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.

@@ -93,6 +93,9 @@ impl ZipkinExporterBuilder {
}

/// Assign client implementation
///
/// Note: Programmatically setting the timeout will override any value
/// set via the environment variable `OTEL_EXPORTER_ZIPKIN_TIMEOUT`.
Copy link
Member

Choose a reason for hiding this comment

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

this comment is for timeout, but this method is for setting client?

Copy link
Member Author

Choose a reason for hiding this comment

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

correct, you can only set the timeout manually, if you create a client, because the timeout is used during the client creation.

Copy link
Member

Choose a reason for hiding this comment

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

can you modify the comment to make it clearer?

when using with_http_client, the timeout will depend on the provided client implementation, and may not respect timeout set via the environment variable OTEL_EXPORTER_ZIPKIN_TIMEOUT.

Copy link
Member

@cijothomas cijothomas left a comment

Choose a reason for hiding this comment

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

Left a non-blocking comment about improving doc comment.

@cijothomas cijothomas merged commit 702c61d into open-telemetry:main Mar 20, 2025
23 checks passed
@gruebel gruebel deleted the add-zipkin-test branch March 22, 2025 22:25
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.

2 participants