diff --git a/.gitignore b/.gitignore index f083144..d971ed9 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,6 @@ go.work # built binaries bin/ +# sqlite databases +*.db + diff --git a/Makefile b/Makefile index 57f5b93..48a6589 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,13 @@ setup: - mkdir 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 + mkdir -p bin + 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 + +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 diff --git a/config.go b/config.go index f4051f4..f5b88f8 100644 --- a/config.go +++ b/config.go @@ -16,6 +16,8 @@ type Config struct { Path string `mapstructure:"path"` // 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 {