Files
6b97478f19 OCB init (#14530)
This introduces a new `ocb init` command which is meant to setup a new
custom collector repository.

The intent for this new subcommand at the moment is to be rather simple.
We discussed the potential of making it more powerful with things such
as `--from-config` that would initialize the manifest from an existing
collector config.
In order to keep things reviewable, we'll do this in iterations.

---------

Co-authored-by: Arthur Silva Sens <[email protected]>
Co-authored-by: Pablo Baeyens <[email protected]>
2026-02-22 00:54:49 -08:00

17 lines
405 B
Cheetah

GOMODULES := $(shell find . -mindepth 2 \
-type f \
-name "go.mod" \
-not -path "./internal/tools/*" \
-exec dirname {} \; | sort )
.PHONY: generate
generate:
go tool go.opentelemetry.io/collector/cmd/builder --verbose --config manifest.yaml
cd build/collector && go mod tidy
.PHONY: run
run: generate
@cd build/collector && \
./{{.Name}} --config ../../config.yaml