agentleFS
NVIDIAKnown publisherNVIDIA/nvcf/src/compute-plane-services/byoo-otel-collector/AGENTS.md

nvcf / byoo-otel-collector

AGENTS.md261 starsChanged 9 days agoApache-2.0View on GitHub

BYO Observability OpenTelemetry Collector is a native Go subtree with three main pieces: - cmd/byoo-otel-collector/: wrapper process that extracts secrets, renders config, and runs the collector - otelcol/: checked-in OpenTelemetry Collector build output used by the Bazel lane - generator/: Python template generator for example configs and docs Run make update-config-template after changing templates under internal/otelconfig/templates/. Run make update-examples after changing template source, generator logic, or supported backend examples. Run ./scripts/update-go-work-sum.sh after changing go.mod here or in otelcol/, and commit…

The file

We split this AGENTS.md into the rules it gives an agent

7 rules. About 1 is common, 1 is distinctive, and 5 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run make update-config-template after changing templates under internal/otelconfig/templates/.

    line 22
  2. Very specific:

    Run ./scripts/update-go-work-sum.sh after changing go.mod here or in otelcol/, and commit go.work.sum.

    line 26
  3. Very specific:

    Follow the release workflow for source versions and producer handoffs.

    line 30
  4. Very specific:

    Do not add a subtree .gitlab-ci.yml.

    line 32
  5. Distinctive:

    Use the script instead of editing version strings by hand:

    line 36
  6. Very specific:

    Commit a collector version bump as fix(byoo-otel-collector):, not chore(byoo-otel-collector):.

    line 59
  7. Common:

    Test fixtures and example configs must use fake endpoints and fake secrets.

    line 70

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md 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
AGENTS.md

AGENTS.md - byoo-otel-collector

BYO Observability OpenTelemetry Collector is a native Go subtree with three main pieces:

  • cmd/byoo-otel-collector/: wrapper process that extracts secrets, renders config, and runs the collector
  • otelcol/: checked-in OpenTelemetry Collector build output used by the Bazel lane
  • generator/: Python template generator for example configs and docs

Build and Test

go test ./...
make lint
make update-config-template
make update-examples
make validate-otelconfig

Run make update-config-template after changing templates under internal/otelconfig/templates/. Run make update-examples after changing template source, generator logic, or supported backend examples.

Run ./scripts/update-go-work-sum.sh after changing go.mod here or in otelcol/, and commit go.work.sum. The Bazel otelcol genrule declares it as an input, so a clean checkout must have it. CI fails when it is stale.

Follow the release workflow for source versions and producer handoffs. Keep generated example drift, generated config drift and otelconfig checks. Do not add a subtree .gitlab-ci.yml.

Collector Version Updates

Use the script instead of editing version strings by hand:

./scripts/update-collector-version.sh v0.160.0 v1.66.0

The script updates version references in otel-collector-build.yaml, AGENTS.md, README.md, Makefile, Dockerfile, Dockerfile.nvcf-otel-collector, scripts/regenerate-otelcol.sh, and .gitlab-ci.yml when that file exists. Run it from the BYOO collector root. You can pass versions with or without the v prefix (for example, v0.160.0 or 0.160.0). Pass the optional v1.x.y provider version when the stable collector modules need a matching release. After running, regenerate otelcol/ if needed, run ./scripts/update-go-work-sum.sh, review git diff, and run the relevant build or validation command.

GitHub semantic-release calculates the NVIDIA wrapper SemVer from Conventional Commits. The tag records both sources as src/compute-plane-services/byoo-otel-collector/v<upstream>-nv-<wrapper>. The upstream part comes from otel-collector-build.yaml; do not add a VERSION file or a CI gate that requires one. RELEASE_SERIES_START anchors the first wrapper release and must remain in the repository.

Commit a collector version bump as fix(byoo-otel-collector):, not chore(byoo-otel-collector):. chore commits are not release-worthy (see RELEASE_RULES in tools/ci/github-release), so a chore bump only synthesizes a compatibility tag anchor and never triggers the image build and push. Because the upstream version is embedded directly in the published tag and image, every bump must ship a real image, not just update the pin in git.

Local Gotchas

  • Generated templates and examples are committed. Regenerate and commit them with source changes.
  • Test fixtures and example configs must use fake endpoints and fake secrets.
  • ESS-derived secrets are split into files; preserve file permission handling when touching internal/secrets/.
  • otelcol/ is intentionally built through a Bazel genrule shim around checked-in collector output. Keep that rationale in sync if the build shape changes.

References

  • README.md
  • generator/doc/README.md
  • validator/README.md

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.