-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Remove deprecated comonent.Config.[ID|SetIDName]; Deprecate config.*Settings #6718
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
Codecov ReportBase: 89.48% // Head: 89.60% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #6718 +/- ##
==========================================
+ Coverage 89.48% 89.60% +0.11%
==========================================
Files 245 245
Lines 14303 14272 -31
==========================================
- Hits 12799 12788 -11
+ Misses 1253 1231 -22
- Partials 251 253 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
…ettings Signed-off-by: Bogdan Drutu <[email protected]>
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.
Do we have an issue for the config
package refactoring? It would be nice to provide reasoning for these changes. I can help with that if we don't have it.
|
||
privateConfig() | ||
} | ||
type Config interface{} |
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.
// Config defines the configuration for a component.Component.
This description is probably not correct anymore, it can be applied to any configuration part now, not component.Component
only, right?
Do you have any further plans for this type? Do we even need it if it's just interface{}
now?
Also UnmarshalConfig
doesn't seems to be applicable to compoonent
module anymore. Do you think we should keep it here?
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.
This description is probably not correct anymore, it can be applied to any configuration part now, not component.Component only, right?
Not sure I understand. The "component.Factory.CreateDefaultConfig" returns this object. If others are using it somewhere else that is their problem... What are you looking for here?
Do you have any further plans for this type? Do we even need it if it's just interface{} now?
Good discussion if we need it. We can think in a future PR about that.
Also UnmarshalConfig doesn't seems to be applicable to compoonent module anymore. Do you think we should keep it here?
Same as previous, we can followup with more changes, for the moment the purpose of #4714 was to make sure we don't mutate the Config
and that becomes an opaque object from the core collector perspective.
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.
Not sure I understand. The "component.Factory.CreateDefaultConfig" returns this object. If others are using it somewhere else that is their problem... What are you looking for here?
Makes sense, so we still expect the Config to be mostly applied to Component even if it can be used with any other sub-configuration. That's what I was looking for
See the chloggen entry with breaking type |
Co-authored-by: Pablo Baeyens <[email protected]>
…ettings (open-telemetry#6718) * Remove deprecated comonent.Config.[ID|SetIDName]; Deprecate config.*Settings Signed-off-by: Bogdan Drutu <[email protected]> * Update .chloggen/rmcfgid-1.yaml Co-authored-by: Pablo Baeyens <[email protected]> Signed-off-by: Bogdan Drutu <[email protected]> Co-authored-by: Pablo Baeyens <[email protected]>
…ettings (open-telemetry#6718) * Remove deprecated comonent.Config.[ID|SetIDName]; Deprecate config.*Settings Signed-off-by: Bogdan Drutu <[email protected]> * Update .chloggen/rmcfgid-1.yaml Co-authored-by: Pablo Baeyens <[email protected]> Signed-off-by: Bogdan Drutu <[email protected]> Co-authored-by: Pablo Baeyens <[email protected]>
Updates #4714