polish Makefile

main
William Perron 10 months ago
parent fc75806cb5
commit 6e4715f003
Signed by: wperron
GPG Key ID: BFDB4EF72D73C5F2

3
.gitignore vendored

@ -24,3 +24,6 @@ go.work
# built binaries # built binaries
bin/ bin/
# sqlite databases
*.db

@ -1,4 +1,13 @@
setup: setup:
mkdir bin mkdir -p bin
curl -fsSL https://github.com/open-telemetry/opentelemetry-collector/releases/download/cmd%2Fbuilder%2Fv0.84.0/ocb_0.84.0_linux_amd64 -o ./bin/ocb curl -fsSL https://github.com/open-telemetry/opentelemetry-collector/releases/download/cmd%2Fbuilder%2Fv0.93.0/ocb_0.93.0_linux_amd64 -o ./bin/ocb
chmod +x ./bin/ocb chmod +x ./bin/ocb
custom-collector: setup
./bin/ocb --config builder-config.yaml
test:
go test -v -count=1 ./...
run-dev: custom-collector
./bin/otelcol-dev/otelcol-dev --config=otelcol-dev-config.yaml

@ -16,6 +16,8 @@ type Config struct {
Path string `mapstructure:"path"` Path string `mapstructure:"path"`
// TODO(wperron) add options for WAL/journal mode, etc. // TODO(wperron) add options for WAL/journal mode, etc.
// TODO(wperron) add option of "hoisted fields" like service name and duration
} }
func (cfg *Config) Validate() error { func (cfg *Config) Validate() error {

Loading…
Cancel
Save