-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
cfggen: recognize comments in the struct while generating output #4751
Comments
I'm wondering if this is meaningful, given that here we copy verbatim from the documentation that we link to. For me personally this adds more noise, when users can find the same information under the linked details. Opinions? |
Yes, in this particular case it doesn't make much sense to have as there are detailed docs regarding tracing config which we can link to. But in the case of some Thanos-specific config (eg QueryAPI) or config without descriptive docs to link to, it can be nice to have. Currently, mdox uses |
I see now, I missed the full context (that we want this for all configs). Sounds good! Maybe then you could consider having option to generate with or without comments included for cases like this? |
Yes, plan to have certain flags/options to support this! :) |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Closing for now as promised, let us know if you need this to be reopened! 🤗 |
Is your proposal related to a problem?
As we discussed with @saswatamcode at PR #4749, the problem simply identifies that we had better to improve the tracing configuration doc as we proposed at #4748.
(Write your answer here.)
Describe the solution you'd like
We have to do some enhancements in the scripts/cfggen to make that tool recognize the comments.
Let's assume we have the following config struct:
cfggen should generate the following yaml snippet:
Describe alternatives you've considered
We can add Markdown table in below for each configuration like the following:
The text was updated successfully, but these errors were encountered: