Repository navigation
Conversation
Pull request dashboard statusWaiting on reviewers · refreshed 2026-12-03 18:30 UTC Review the latest changes. Status above doesn't look right?
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #9060 +/- ##
============================================
- Coverage 90.56% 90.52% -0.04%
- Complexity 11220 11265 +45
============================================
Files 1032 1040 +8
Lines 30599 30766 +167
Branches 4010 4021 +11
============================================
+ Hits 27711 27851 +140
- Misses 1913 1934 +21
- Partials 975 981 +6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
rooks-ns
force-pushed
the
feat/attach-sdk-resource-provider
branch
from
December 3, 2026 17:31
a01ffca to
e5d48e7
Compare
rooks-ns
marked this pull request as ready for review
December 3, 2026 18:29
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.