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

De-duplicate glossaries across spec & otel.io

Open svrnm opened this issue 2 months ago • 4 comments

What are you trying to achieve?

We discussed this in the past already: currently we have 2 glossaries, one on the website and one here in the spec repo. I think this is fine except when there is a duplication of terms (and worst case conflicting definitions), so it would be good if we can find a way to either only have one glossary, or keep them "in sync", i.e. the spec glossary is authorative, we merge it into the docs glossary and add additional terms there that we might not want to have in the spec because they are not relevant enough or to vague.

Additional context.

A solution I could imagine is the following:

  • have a YAML file (?) in spec that is rendered to the glossary in the spec
  • have another YAML file in docs
  • In docs we "merge" those 2 and render it to a global glossary under https://opentelemetry.io/docs/concepts/glossary/

cc @open-telemetry/docs-approvers

cc @jpkrohling @danielgblanco @pellared as we discussed this during EU triage.

svrnm avatar Oct 27 '25 10:10 svrnm

I'd rather stay away from YAML for docs or doc pieces. I'd vote for a markdown file with special formatting rules (e.g., a markdown file with only glossary entries, each beginning with a level 2 heading).

chalin avatar Oct 27 '25 17:10 chalin

I'd rather stay away from YAML for docs or doc pieces. I'd vote for a markdown file with special formatting rules (e.g., a markdown file with only glossary entries, each beginning with a level 2 heading).

That works as well, I think that's also what k8s is doing: https://github.com/kubernetes/website/tree/main/content/en/docs/reference/glossary

svrnm avatar Oct 27 '25 18:10 svrnm

Right, though I was thinking a single markdown file.

chalin avatar Oct 27 '25 18:10 chalin

Right, though I was thinking a single markdown file.

yes, that works as well 👍

svrnm avatar Oct 28 '25 11:10 svrnm