agentleFS
radra23radra23/otel-as-code-plugin/.agents/skills/otel-instrument/SKILL.md

otel-instrument

Skill1 starsChanged 49 days agoApache-2.0View on GitHub

Generate OpenTelemetry SDK bootstrap (Node.js / Python), Java agent config, or .NET SDK wiring, plus OTLP wiring for a service. Use when adding OTel instrumentation to a codebase.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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:

    Follow the canonical procedure in this repo — it is the single source of truth:

    line 10
  2. Very specific:

    Read commands/otel-instrument.md (repo root) and execute its steps.

    line 12

≈ “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

otel-instrument (Codex bridge)

Requires the otel-as-code repo. The commands/ / skills/ / agents/ files referenced below live there — if they're not present in your workspace, stop and tell the user to add the repo (see AGENTS.md).

Follow the canonical procedure in this repo — it is the single source of truth:

  1. Read commands/otel-instrument.md (repo root) and execute its steps.
  2. Apply these knowledge skills as you go: skills/language-maturity/SKILL.md (gate signals by maturity / --experimental) and skills/semconv-discipline/SKILL.md (conformant output).
  3. Codex has no subagent dispatch: if the context cache is stale/absent, otel-instrument.md runs /otel-init logic inline — read agents/repo-context-scanner.md and run that scan first. Then where it runs the instrumentation-gen agent, read agents/instrumentation-gen.md and generate the bootstrap files yourself.

Two steps deserve care because getting them wrong writes code that cannot run:

  • Step 2 selects a service, not just a language. Filter to services with generatorSupported: true and prompt when more than one qualifies; never fall back to services[0]. A browser SPA reports language: nodejs with runtime: browser — refuse it with its instrumentableReason rather than generating a Node bootstrap for a bundle.
  • Step 4 finds the existing bootstrap via existingOtel.bootstrapFiles, then by globbing the service subtree — not by testing for tracing.js in the service root. That test misses api/src/tracing.ts and writes a second, competing bootstrap beside the real one.

Args: $ARGUMENTS (e.g. python --experimental, --service api, --fix SC-2,SH-1, --force).

Codex note: .codex/hooks.json enforces write-guard + semconv-lint here — a denied overwrite of an existing bootstrap means regenerate deliberately. --force is a full regeneration: read the files first and carry their deliberate local decisions across, or use --fix <ids> to apply specific /otel-evaluate findings in place instead.

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.