Repository navigation
Conversation
Update autoconfigure and declarative configuration to attach a shared SdkResourceProvider to SdkTracerProvider, SdkMeterProvider, and SdkLoggerProvider instead of a static Resource. - In declarative config, use Sdk*ProviderUtil.setSdkResourceProvider to attach the provider built from the resolved resource model. - In autoconfigure, introduce and use setDefaultSdkResourceProvider on the signal provider builders to set the baseline resource provider while allowing signal-specific customizers to override or merge resources via setResource or addResource without throwing IllegalStateException. - Preserve fail-fast guards when setSdkResourceProvider and setResource/addResource are explicitly configured on the same builder. - Add unit tests verifying default provider usage, customizer overrides, and cross-signal provider sharing.
Pull request dashboard statusWaiting on the author · refreshed 2026-11-24 23:28 UTC Move out of draft to request review. Status above doesn't look right?
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #9060 +/- ##
============================================
+ Coverage 90.45% 90.54% +0.08%
- Complexity 11179 11204 +25
============================================
Files 1032 1032
Lines 30500 30572 +72
Branches 3991 4005 +14
============================================
+ Hits 27590 27681 +91
+ Misses 1935 1915 -20
- Partials 975 976 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implements follow-up 1 from #8865 by attaching
SdkResourceProvidertoSdkMeterProvider,SdkLoggerProvider, andSdkTracerProviderinstead of a staticResource.Changes
SdkResourceProviderviaSdk*ProviderUtil.setSdkResourceProvider(...)across all signal builders.setDefaultSdkResourceProvidertoSdkTracerProviderBuilder,SdkMeterProviderBuilder, andSdkLoggerProviderBuilder. Autoconfigure supplies the baseline provider without tripping the strictIllegalStateExceptionguard if a user customizer subsequently overrides or merges resources via.setResource(...)or.addResource(...).setSdkResourceProvidercontinue to fail-fast against conflictingsetResource/addResourceinvocations.