opentelemetry-php icon indicating copy to clipboard operation
opentelemetry-php copied to clipboard

Implement migration to ComponentProvider pattern for environment-base… #1681

Open 31oli31 opened this issue 2 months ago • 3 comments

…d factories

  • Introduced new factories: ComponentProviderBasedSpanProcessorFactory, ComponentProviderBasedSamplerFactory, ComponentProviderBasedExporterFactory, and ComponentProviderBasedLogRecordProcessorFactory to replace legacy factory interfaces.
  • Updated TracerProviderFactory to utilize the new ComponentProvider-based factories.
  • Added MIGRATION_SUMMARY.md detailing the migration process, benefits, and testing outcomes.
  • Ensured backward compatibility and maintained existing environment variable configurations.

Should solve issue #1681

31oli31 avatar Oct 02 '25 18:10 31oli31

Thanks for opening your first pull request! If you haven't yet signed our Contributor License Agreement (CLA), then please do so that we can accept your contribution. A link should appear shortly in this PR if you have not already signed one.

welcome[bot] avatar Oct 02 '25 18:10 welcome[bot]

Hey @31oli31 👋

I think a lot of this might already have been implemented in https://github.com/open-telemetry/opentelemetry-php/tree/2.x

Potentially worth double checking there first to see if there are any unidentified areas that need coverage.

ChrisLightfootWild avatar Oct 03 '25 09:10 ChrisLightfootWild