Skip to content

Latest commit

 

History

History
149 lines (107 loc) · 5.55 KB

CONTRIBUTING.md

File metadata and controls

149 lines (107 loc) · 5.55 KB

Contributing

Welcome to the OpenTelemetry GenAI Semantic Conventions repository!

New to OpenTelemetry? Read the New Contributor Guide first — it covers the CLA, Code of Conduct, and other prerequisites.

Prerequisites

  • Docker (or a compatible runtime such as Podman aliased as docker) — make runs Weaver via the otel/weaver container image.
  • GNU Make — pre-installed on macOS and Linux. On Windows, use WSL or install via Chocolatey (choco install make) or Scoop (scoop install make).

Code structure

├── docs
│   ├── gen-ai/            # hand-written docs with embedded generated tables
│   └── registry/          # auto-generated attribute registry pages
├── model
│   └── <namespace>/       # e.g. gen-ai, mcp, openai
│       ├── registry.yaml  # attribute definitions
│       ├── spans.yaml     # span conventions
│       ├── metrics.yaml   # metric conventions
│       └── events.yaml    # event conventions

All attributes must be defined in registry.yaml files under the matching namespace folder in model/.

Making a change

1. Modify the YAML model

Refer to the Semantic Convention YAML Language to learn about the YAML file syntax.

2. Regenerate the docs

After updating the YAML, run:

make generate-all

This regenerates the attribute registry pages under docs/registry/, refreshes the generated tables embedded in the hand-written docs under docs/gen-ai/ and regenerates the status reports.

3. Validate

Run the shared policy checks:

make check-policies

This validates the model against shared OpenTelemetry policies covering naming conventions, attribute type rules, stability requirements, and backwards compatibility.

Run the link checks (optional, requires mise):

mise run links

4. Update reference scenarios

Changes under model/ or docs/ typically require updating the reference scenarios under reference/ to demonstrate that the proposed updates are capturable. See reference/CONTRIBUTING.md and the reference skill.

5. Update the changelog

Add a Towncrier fragment under changelog.d/ for any change to the conventions that a consumer would care about. Editorial changes - typos, pure rewording, and repo tooling - don't need an entry.

Use a filename of <pr-number>.<type>.md once the pull request number is known, or +.<type>.md before then. Add a numeric counter before .md when one pull request needs multiple fragments of the same type. See changelog.d/README.md for the supported types.

Keep PRs small

Small, focused PRs are much easier to review, and therefore much more likely to land quickly. Consider phasing larger changes across multiple PRs where possible.

If a PR review surfaces contentious or difficult points, consider splitting those into follow-up PRs so the uncontroversial parts can land and each of the harder points gets its own focused discussion and review.

Asking questions

Post in #otel-genai-instrumentation on CNCF Slack or join the next GenAI SIG and add your topic to the meeting agenda.

Approvers and Maintainers

Maintainers

For more information about the maintainer role, see the community repository.

Approvers

For more information about the approver role, see the community repository.

Approvers assign themselves to non-editorial PRs to signal that they will drive the review. A PR can have multiple approvers assigned, and that is highly encouraged for medium and high complexity PRs.

Over a rolling 3-month window, an approver is expected to sign up for and drive the review of at least 3 non-editorial PRs. "Driving the review" means staying engaged with the PR through to its merge or close: providing timely initial reviews and follow-up feedback, requesting changes, asking design questions, and re-reviewing revisions promptly until the PR lands or is rejected.

Emeritus

For more information about the emeritus role, see the community repository.