Implement migration to ComponentProvider pattern for environment-base… #1681
…d factories
- Introduced new factories:
ComponentProviderBasedSpanProcessorFactory,ComponentProviderBasedSamplerFactory,ComponentProviderBasedExporterFactory, andComponentProviderBasedLogRecordProcessorFactoryto replace legacy factory interfaces. - Updated
TracerProviderFactoryto utilize the new ComponentProvider-based factories. - Added
MIGRATION_SUMMARY.mddetailing the migration process, benefits, and testing outcomes. - Ensured backward compatibility and maintained existing environment variable configurations.
Should solve issue #1681
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.
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.