opentelemetry-python icon indicating copy to clipboard operation
opentelemetry-python copied to clipboard

docs: examples that references code should link to actual files in github

Open xrmx opened this issue 4 months ago • 6 comments

The rendered docs/examples on read the docs references examples we have in github but some pages do not properly link them and so it's hard for an end user to find the code. For example https://opentelemetry-python.readthedocs.io/en/stable/examples/metrics/views/README.html lists a bunch of python files but these are not linked to github.

An example with a proper link is https://opentelemetry-python.readthedocs.io/en/stable/examples/django/README.html that is docs/examples/django/README.rst.

So we should review all the content of docs/examples and add proper :scm_web: links.

xrmx avatar Jul 17 '26 08:07 xrmx

I will take this one. I will review the example READMEs and add :scm_web: links for the referenced code files.

slegarraga avatar Aug 06 '26 18:08 slegarraga

There are 4 open PRs for this issue: #5428, #5433, #5484, #5515. None of them is complete on its own. #5515 covers the 6 READMEs that were missing :scm_web: plus metrics/views, and #5484 is the only one that also does metrics/reader.

@xrmx could you answer the question left open in #5428 ? metrics/views/README.rst already links the directory, so the actual question is whether the individual .py filenames in the bullet list should be linked too. #5484 and #5515 both assumed yes. An answer would unblock all four PRs.

Also worth a look before merging #5433: it changes /var/log/general.log to /var/log.general.log in the sqlcommenter README, which looks unintended.

Eason09053360 avatar Aug 07 '26 06:08 Eason09053360

Thanks for the heads up @Eason09053360

There are 4 open PRs for this issue: #5428, #5433, #5484, #5515. None of them is complete on its own. #5515 covers the 6 READMEs that were missing :scm_web: plus metrics/views, and #5484 is the only one that also does metrics/reader.

What a waste of compute and reviewers time 😓 There's also #5429 that didn't reference the issue but it's related.

@xrmx could you answer the question left open in #5428 ? metrics/views/README.rst already links the directory, so the actual question is whether the individual .py filenames in the bullet list should be linked too. #5484 and #5515 both assumed yes. An answer would unblock all four PRs.

Answered, thanks!

Also worth a look before merging #5433: it changes /var/log/general.log to /var/log.general.log in the sqlcommenter README, which looks unintended.

Feel free to comment on the PR directly when you spot something.

I would wait a bit to see if #5428 author is interested in updating it, if not if it's fine but incomplete I'll merge it anyway. And then we can see what's left. A couple of PRs are not CLA clean since weeks and so I guess we can close them.

xrmx avatar Aug 18 '26 10:08 xrmx

i want to work this issue

praveenec-info avatar Aug 19 '26 16:08 praveenec-info

Merged #5428 and closed all the other dups. If #5484 author signs the CLA I think we are good.

xrmx avatar Aug 28 '26 08:08 xrmx

Merged #5484 and a followup #5606

xrmx avatar Sep 01 '26 09:09 xrmx