opentelemetry-rust
opentelemetry-rust copied to clipboard
feat: allow Resource transformation in TracerProviderBuilder
Changes
Adds the ability to transform a Resource in the TracerProviderBuilder so it's possible to add configuration from other sources in a safe way.
This has come up when trying to add resource configuration based on vendor specific environment variables while not overriding the resources configured by the OpenTelemetry ones.
Merge requirement checklist
- [x] CONTRIBUTING guidelines followed
- [x] Unit tests added/updated (if applicable)
- [ ] Appropriate
CHANGELOG.mdfiles updated for non-trivial, user-facing changes - [ ] Changes in public API reviewed (if applicable)
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 80.7%. Comparing base (6f75c58) to head (728b991).
Additional details and impacted files
@@ Coverage Diff @@
## main #3131 +/- ##
=======================================
+ Coverage 80.6% 80.7% +0.1%
=======================================
Files 126 126
Lines 22195 22330 +135
=======================================
+ Hits 17898 18033 +135
Misses 4297 4297
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.