-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Remove reference to defaultcomponents
in core and deprecate include_core
flag
#4087
Remove reference to defaultcomponents
in core and deprecate include_core
flag
#4087
Conversation
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 removes a lot of unit tests. Is there a reason they are no longer needed, or should we add them back in in the new location?
@dashpole they are already copied to contrib https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/internal/components/extensions_test.go |
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.
Got it, thanks.
…ore' into remove-default-components-from-core
Codecov Report
@@ Coverage Diff @@
## main #4087 +/- ##
==========================================
- Coverage 90.67% 90.50% -0.18%
==========================================
Files 179 178 -1
Lines 10414 10455 +41
==========================================
+ Hits 9443 9462 +19
- Misses 755 776 +21
- Partials 216 217 +1
Continue to review full report at Codecov.
|
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
…ference to defaultcomponents and extracted otel-config components to a function
Hi @bogdandrutu, with reference to the discussions, I have made the following changes:
Please let me know if there may be a recommended approach/fixes to address the issue for next steps. Thank you. |
@Aneurysm9 @codeboten can you pl re-review? |
As discussed during the SIG meeting today, we need first to get the builder to deprecate/remove the |
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.
You might need to set the default value of the flag in DefaultConfig
. This would solve your nil pointer error. Also, make sure the distribution is indeed not having the default components, as I believe there might be a change needed in the templates.
Thank you for your reply. I have set the default value of the flag in the I have implemented a suggested approach to include the warn log before unmarshalling the config and the |
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.
I think those are my final concerns, after this, this will be ready to be merged.
defaultcomponents
in core and deprecate include_core
flag
I no longer understand what to put in my builder.yml to get the core modules back, or which ones were default-in that I was relying upon without knowing it. Would appreciate more clarity in the builder's README file on this. Edit: I copy pastad from this example and now it's working |
I apologize, this change should have been better communicated. This PR brought clarity to the readme: #4664 If you think there's still something we should document elsewhere, let me know. |
Thank you for the README example improvement! |
Description:
This PR is to remove reference to
defaultcomponents
in core and deprecate theinclude_core
flag in builder.Link to tracking Issue:
Issue #3927