-
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
Build info flag #4671
Comments
@esnible, this is similar to the PR you sent recently. Do you think this would have helped you debug problems with missing components? |
@jpkrohling Yes, I believe it would be valuable to be able to find out what components are compiled in. It might also be good to include commit/version in the info output, perhaps using the technique of https://belief-driven-design.com/build-time-variables-in-go-51439b26ef9/ , for both opentelementry-collector and -contrib. |
We do have the commit/version already as part of the bootstrap logs and I agree it should definitely be part of the build info command. |
i would like to work on this if it is ok. |
@bogdandrutu, @tigrannajaryan, is this something that would be accepted? |
Happy to support this, but we need to look into:
|
Related to #5438 |
Hi @cuichenli, are you still working on this? I will like to take this up |
Hi @Chinwendu20 , no, I am not working on this. |
Okay thanks, I would work on this. I just want to clarify that by a stock collector you mean, a custom built collector distribution. @fld-opensource |
I would definitely prefer this to be in a machine-readable format. Something like yaml is probably best since we can make it both reasonably human-readable and can also use for programmatic use-cases like this. |
Hello @jpkrohling please could you point me to the bootstrap logs that you speak of? Does it mean that after the distribution is creation, there is a place the YAML config for generating it is stored?
|
If you can generate a builder manifest like that, it would be great, but I don't think it's easily doable. It would already be useful to print out the list of components available, plus the version of the distribution. To get the version of the distribution, take a look at the output printed in the logs when starting the collector: there's already the build version there. When you find where this is printed, you'll find where the version information is stored. |
Thanks for this @jpkrohling on it now |
Signed-off-by: Maureen <[email protected]>
Signed-off-by: Maureen <[email protected]>
Signed-off-by: Maureen <[email protected]>
When using the stock collector, a custom build, it would nice to have something like a --build-info, it would output pretty version of the manifest (yaml config) used for the build. I would then be easy to see what receivers, exporters, processor etc ... we have built in.
The text was updated successfully, but these errors were encountered: