-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add support for deprecated component type aliases #14349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cb2b04a to
2849f65
Compare
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (91.94%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #14349 +/- ##
==========================================
+ Coverage 92.19% 92.20% +0.01%
==========================================
Files 669 670 +1
Lines 41383 41472 +89
==========================================
+ Hits 38152 38239 +87
- Misses 2194 2195 +1
- Partials 1037 1038 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
2849f65 to
68b5783
Compare
Merging this PR will not alter performance
|
3dfb4ce to
e63f0ca
Compare
8578ef4 to
220f2aa
Compare
774c6af to
11f8fdb
Compare
osullivandonal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2026-01-07T09:30:04.939Z warn builders/builders.go:40 "olddebug" alias is deprecated; use "debug" instead {"resource": {"service.instance.id": "0868e402-b25d-4acf-a11d-ecbe8a431bac", "service.name": "otelcorecol", "service.version": "0.143.0-dev"}, "otelcol.component.id": "olddebug", "otelcol.component.kind": "exporter", "otelcol.signal": "logs"}Verified locally 🚀
11f8fdb to
55603a4
Compare
55603a4 to
cf09c2a
Compare
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.
cf09c2a to
fcbda4d
Compare
ae38f54
Related to #14208
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:
WithDeprecatedTypeAliasfactory option to experimental modules (xreceiver, xexporter, xprocessor, xconnector)Extensions are left aside for now.