agentleFS
ollygardenollygarden/opentelemetry-agent-skills/skills/otel-semantic-conventions/SKILL.md

otel-semantic-conventions

Skill125 starsChanged 4 months agoApache-2.0View on GitHub

OpenTelemetry semantic convention lookup and naming guidance. Use when selecting released semantic convention groups, attributes, or span naming rules, when checking semantic convention compliance, or checking which semantic-conventions version a language SDK's semconv package exposes.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 9 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when you need released semantic convention guidance for naming, attributes, or compliance checks.

    line 8
  2. Distinctive:

    Start with released semantic conventions, not model memory.

    line 13
  3. Distinctive:

    do not load the full semantic convention spec into context

    line 14
  4. Distinctive:

    use the bundled lookup script to query only the needed released group or attribute

    line 15
  5. Very specific:

    after changing the parser, run OTEL_SEMCONV_REPO=/path/to/semantic-conventions bash ./scripts/test-query-otel-semantic-conventions.sh

    line 31
  6. Distinctive:

    use required and recommended attributes before optional ones

    line 34
  7. Distinctive:

    do not prepend or append protocol labels, hostnames, product names, business hints, or other custom prose to semconv-governed span names

    line 36
  8. Distinctive:

    if the released naming rule does not provide a low-cardinality target, use the simpler fallback allowed by that convention

    line 37
  9. Distinctive:

    if no released key exists, use a stable custom namespace and keep values bounded

    line 38
  10. Distinctive:

    call out any concrete compatibility limitation if the implementation cannot fully match the released guidance

    line 42

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

OpenTelemetry Semantic Conventions

Use this skill when you need released semantic convention guidance for naming, attributes, or compliance checks.

Workflow

  1. Start with released semantic conventions, not model memory.
  • do not load the full semantic convention spec into context
  • use the bundled lookup script to query only the needed released group or attribute
  • for local verification against a checked-out upstream repo, set OTEL_SEMCONV_REPO=/path/to/semantic-conventions
  1. Choose the closest released group before inventing custom keys.
  • identify the boundary type such as http, db, messaging, rpc, or network
  • pick one primary group first, then add related groups only when they add needed context
  • for gen_ai.*, OpenAI, or MCP conventions, use open-telemetry/semantic-conventions-genai; it has no tagged release as of 2026-10-25, so cite the commit and label the guidance unreleased (the lookup script does not cover it); the core repository keeps only deprecated GenAI-era stubs after v1.42.0
  • see references/semconv-selection.md
  • to target a version a language's semconv package actually exposes (works offline, dated), see references/sdk-semconv-packages.md
  1. Query only the released guidance you need.
  • list groups: ./scripts/query-otel-semantic-conventions.sh --groups
  • inspect one group: ./scripts/query-otel-semantic-conventions.sh http
  • inspect one kind: ./scripts/query-otel-semantic-conventions.sh http spans
  • inspect one exact attribute or entry: ./scripts/query-otel-semantic-conventions.sh http http.request.method
  • see references/otel-semantic-conventions.md
  • after changing the parser, run OTEL_SEMCONV_REPO=/path/to/semantic-conventions bash ./scripts/test-query-otel-semantic-conventions.sh
  1. Apply the released naming and attribute rules directly.
  • use required and recommended attributes before optional ones
  • derive semconv-governed span names directly from the released naming rule
  • do not prepend or append protocol labels, hostnames, product names, business hints, or other custom prose to semconv-governed span names
  • if the released naming rule does not provide a low-cardinality target, use the simpler fallback allowed by that convention
  • if no released key exists, use a stable custom namespace and keep values bounded
  1. Return the result with exact source context.
  • include the group name, released version, and source URL from the script output
  • call out any concrete compatibility limitation if the implementation cannot fully match the released guidance

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.