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
This change allows component authors to register one optional deprecated alias per component type, enabling smooth migrations when renaming components. When an alias is used in configuration, the collector will automatically resolve it to the original component and log a deprecation warning.
Changes:
- Add `WithDeprecatedTypeAlias` factory option to experimental modules (xreceiver, xexporter, xprocessor, xconnector)
- Add `DeprecatedAlias()` method to factory interfaces
- Generate alias expansion code in builder template that:
- Populates factory maps with aliases pointing to original factories
- Updates module information maps for aliased types
- Validates that aliases don't conflict with existing component types
- Add deprecation warnings that log when an alias is used: "Using deprecated alias <alias>; use <original> instead"
Extensions are left aside for now.
0 commit comments