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.
- Docker (or a compatible runtime
such as Podman aliased as
docker) —makeruns Weaver via theotel/weavercontainer 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).
├── 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/.
Refer to the Semantic Convention YAML Language to learn about the YAML file syntax.
After updating the YAML, run:
make generate-allThis 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.
Run the shared policy checks:
make check-policiesThis 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 linksChanges 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.
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.
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.
Post in #otel-genai-instrumentation on CNCF Slack or join the next GenAI SIG and add your topic to the meeting agenda.
- Liudmila Molkova, Google
- Trask Stalnaker, Microsoft
For more information about the maintainer role, see the community repository.
- Aaron Abbott, Google
- Alex Hall, Pydantic
- Ankit Singhal, Microsoft
- Dylan Russell, Google
- Josh Winerman, Splunk
- Mike Goldsmith, Honeycomb
- Minghui Zhang, Alibaba
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.
- Mike Goldsmith, Approver
For more information about the emeritus role, see the community repository.