How open-telemetry/opentelemetry-collector-releases works
Project type and purpose
• This is a Go-based tooling repository (monorepo) that assembles and publishes multiple OpenTelemetry Collector distributions (“core”, “contrib”, “k8s”, “otlp”, “ebpf-profiler”).
• The primary function is build-and-release orchestration: compile Go binaries, build multi-arch container images, package OS installers (deb, rpm, brew), and push artifacts via GitHub Releases and container registries.
File structure analysis
• Top-level directories:
• cmd/ – CLI entrypoints: builder, goreleaser, opampsupervisor
• distributions/ – one subfolder per Collector distribution (each with its own Dockerfile, goreleaser config, service scripts, manifests)
• internal/tools/ – shared build utilities and Go modules
• scripts/ – shell scripts for ci, packaging and validation
• tests/ – Docker-based integration tests and MSI packaging tests
• Config and pipeline definitions:
• .github/workflows/ – GitHub Actions YAMLs for CI, testing, release
• .goreleaser.yaml & per-cmd/.goreleaser.yml – goreleaser definitions controlling artifact builds and publishing
• .chloggen/ & CHANGELOG.md – automated changelog generation
• Makefile – orchestrated local commands
README insights
• Describes purpose: assembly of distributions, artifacts produced, and lists sub-repos in distributions/
• Points to per-distribution README.md for details on config and packaging for each flavor