You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add ability to register custom sampler factories via the Registry,
allowing users to extend the SDK with custom sampling strategies.
Implementation:
- Add SamplerFactoryInterface for sampler factory contracts
- Add factory classes for all built-in samplers (AlwaysOn, AlwaysOff,
TraceIdRatioBased, ParentBased variants)
- Add Registry::registerSamplerFactory() and Registry::samplerFactory()
- Refactor SamplerFactory to use the registry instead of hardcoded logic
- Add _register.php to auto-register built-in sampler factories
Tests:
- Add unit tests for all sampler factory classes
- Add registry tests for sampler factory registration
- Add tests for custom sampler registration with clobber behavior
0 commit comments