-
Notifications
You must be signed in to change notification settings - Fork 438
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
Docs on opentelemetry.io #1589
Comments
We thought of keeping it in one place (i.e, readthedocs) for better maintainability. But we can do something similar to OpenTelemetry .Net - i.e maintain the links to actual documentation, instead of copying the stuff. We can have links for - Overview: https://opentelemetry-cpp.readthedocs.io/en/latest/api/Overview.html Haven't done any PR to opentelemetry.io, if someone can help on that? |
Starting with updating those links is great, it gives people an easier way into it! I can take care of that. There's this issue on having the docs at opentelemetry.io for "improving user experience and SEO", so I am trying to see where languages are standing today. I understand that you want to avoid duplication and keep maintenance for the docs low, having different priorities and limited bandwidth for all the work that needs to be done. So, let me ask that differently: is the readthedocs set for the c++ docs or would the SIG be open to migrate the content over (assuming that someone else is doing the heavy lifting)? |
Just to clarify, we are only talking about non-API documentation. As API documentation uses doxygen -> breathe -> sphinx -> readthedocs to generate and push. |
Yes. Exactly. I think python sig is also keeping api & sdk docs in read the docs. |
I don't see any issue in moving non-api docs to opentelemetry.io, but I am not the only one to decide :) Will discuss this in next week's SIG meeting to see if all the members agree. Will update the issue accordingly. |
Sure, thank you :-) |
To discuss in the SIG meeting. @svrnm , @lalitb , some questions here: I would like to understand the expected workflow, from a developer perspective. opentelemetry-cpp is a repository, with issues, PR, reviewers, CI, and its own git history, release labels, etc From past experience in other organizations, having two separate flows, where a dev is asked to:
Even when the reviewers are the same persons, the burden of maintaining these parallel paths consistent makes this impractical. Can we have something like:
How to synchronize in practice:
We can organize the docs source under opentelemetry-cpp with a specific folder for content to publish in opentelemetry-io, to make that sync simpler, if needed. Regards, |
@marcalff To answer your question, yes using opentelemetry-cpp as source of truth is possible, there are currently two SIGs (go, ruby) that provide the documentation source via their project, see:
I know that some other SIG (python?) abandoned that eventually, let me see if I can track down the history, to see why they did it. And, while I agree with you that it has some upsides to keep the docs within a single source of truth, it also comes with a few downsides:
At the end the workflow needs to serve the CPP SIG best. If you like I (or @cartermp) can join one of your SIG meetings to discuss. cc: @open-telemetry/docs-approvers |
Thanks @svrnm , this is an important point to consider. We do not want to have:
Another point to consider, is that changes to the doc will most likely be:
Doing editorial changes in the -cpp repository will be awkward and inconvenient as well, I assume. Waiting for other people in the C++ SIG to comment, to find the best solution. Regards, |
Mostly because we offered to take on the burden of maintenance and updating content. Which we did! And then we also revamped the exporters, manual instrumentation, and getting started pages too. Since then the Python folks have also added some more technical content, and are diligent with reviews. It's about as good as an arrangement as we can hope for 🙂. My one caution is that my own C++ skills are from college, and so I'd need more time to ramp up on being able to write effective code samples compared to the likes of Python/Ruby/Go, etc. This would certainly be in the scope of my own maintainer's duty, but if there are subtleties in using the API/SDK that require more advanced knowledge of C++ (e.g,. this true for Go but not necessarily true for .NET) then I'd definitely need help and/or time. |
Doc team: Cpp team: cc: @open-telemetry/docs-approvers We discussed documentation in C++ SIG meeting on 2022-09-07, Regards, Desired stateDocumentation content falls into several categories. Some documentation is for the general public (users of otel-cpp), Some documentation is for maintainers of opentelemetry-cpp, Some documentation is for the general public (users of otel-cpp), For USER-DOC, the content is maintained in the opentelemetry.io repository, opentelemetry.io is the only source of truth for USER-DOC. In the long term, USER-DOC is to be translated, with each translation in a For MAINTAINER-DOC, the content is maintained in the opentelemetry-cpp There are no plans to translate MAINTAINER-DOC, it will stay in base For API-DOC, the original content is maintained in the source code, There are no plans to translate API-DOC, it will stay in base The USER-DOC in opentelemetry.io comply with the general rules
The MAINTAINER-DOC in opentelemetry-cpp comply with the rules
The API-DOC in opentelemetry-cpp comply with the rules
There is a tooling chain to publish doxygen API-DOC already. The main point here is that the choice of doc format, tools, processes, Migration pathIdentify content that is considered USER-DOC that currently resides in opentelemetry-cpp Define the desired doc format (.md ?) and source organization for USER-DOC in opentelemetry.io Create a PR for opentelemetry.io to add migrated cpp USER-DOC. Create a PR for opentelemetry-cpp to remove migrated cpp USER-DOC. Review existing issues in opentelemetry-cpp related to USER-DOC, if any, Ongoing activitiesEveryone is expected to:
Maintainers of opentelemetry-cpp are expected to:
Maintainers of opentelemetry.io are expected to:
|
Thanks, @marcalff for summarizing the discussion, this seems to cover all the aspects. Just to add, while the USER-DOC is stored/published in the opentelemetry.io, we can still maintain the links to it in readthedocs. This will require minimal maintenance from opentelemetry-cpp maintainers, but the readthedocs would look complete. otel-python already does something similar - https://opentelemetry-python.readthedocs.io/en/latest/. |
Each kind of documentation is not isolated from the rest, so sure, we can have links from one space to another. |
It's worth noting that the only docs there for python are API docs for various packages (and there's some examples for those APIs too). That's because we don't have a solution for API docs across OTel (and arguably shouldn't, since several languages have their own native way to represent API docs that are likely much more expected than if we built our own solution). |
maybe beginners tutorial , step by step to incorporate open-telemetry into exist project |
@svrnm , please raise issues in .io, and assign them to me. With the new fancy sig:cpp tag as well. |
@svrnm - Just curious how is the version mapping managed between SIG releases and it's documentation in opentelemetry.io, or if you know how other teams are handling it. In readthedocs.io, users can navigate to docs specific to the release they are on. E.g - https://opentelemetry-cpp.readthedocs.io/en/v1.6.0/ for 1.6.0 release. Do we need to have sig-specific release tags in opentelemetry.io to manage it? I understood from the last maintainers meeting that the docs team would come up with guidelines/process for publishing documents before we plan to migrate. |
We discussed this a few times, but so far we decided to not have it and keep things at the latest version (and reduce our maintenance overhead significantly): Since the USERDOCS are geared towards new comers I think this should be ok for now. If we ever run into issues with that because of breaking changes we will re-evaluate
Yes, we will follow up with some more plans, cc: @cartermp |
@lalitb , @marcalff , following up on this:
Before I go down into details, let me put upfront, that the final decision on how&where things are documented for a specific SIG of course lays with the SIG, so all we can provide are guidelines/recommendations, and that the following is how it works best for the docs contributors:
Hope that makes sense, (cc: @cartermp, did I forget anything?) |
LGTM @svrnm. I'd add that also, we're in a bit of a special time now with Metrics, where there's a lot more content that will need to be added soon, and we'll need to call upon SIG members to help with that. Once they're in, getting them into a steady state and keeping them up to date is relatively easy. |
done |
This issue was marked as stale due to lack of activity. |
yep, agreed |
Yeah we can close it I guess. We have user docs in opentelemetry.io. API docs can remain in readthedocs as of now. Unless @marcalff has some other thoughts. |
hey there,
we are currently reviewing what is still missing on the OpenTelemetry Docs over at opentelemetry.io, the C++ is empty and linking to readthedocs. I was wondering if we should have some Getting Started on the website as well or move/copy some of that content over?
TY
The text was updated successfully, but these errors were encountered: