Skip to content

fix(config): Cache component providers in DeclarativeConfigContext#8070

Merged
jack-berg merged 1 commit intoopen-telemetry:mainfrom
honeycombio:mike/cache-component-providers
Feb 11, 2026
Merged

fix(config): Cache component providers in DeclarativeConfigContext#8070
jack-berg merged 1 commit intoopen-telemetry:mainfrom
honeycombio:mike/cache-component-providers

Conversation

@MikeGoldsmith
Copy link
Member

Fixes a TODO left by @jack-berg in the configuration file to cache the config providers instead of repeat loading.

Load ComponentProviders once on first access instead of on every loadComponent() call.

- Add componentProviders cache field
- Load on first access in loadComponent()
- Add test verifying single load
@MikeGoldsmith MikeGoldsmith requested a review from a team as a code owner February 11, 2026 14:04
@codecov
Copy link

codecov bot commented Feb 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.20%. Comparing base (fff95e0) to head (3f870ec).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8070   +/-   ##
=========================================
  Coverage     90.20%   90.20%           
- Complexity     7592     7593    +1     
=========================================
  Files           841      841           
  Lines         22911    22913    +2     
  Branches       2288     2289    +1     
=========================================
+ Hits          20666    20668    +2     
  Misses         1529     1529           
  Partials        716      716           

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

Copy link
Member

@jack-berg jack-berg left a comment

Choose a reason for hiding this comment

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

Thanks!

@jack-berg jack-berg merged commit 28fedfb into open-telemetry:main Feb 11, 2026
27 checks passed
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