8000 GitHub - tsloughter/otel_config_validator: OpenTelemetry SDK Configuration Schema Validator
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tsloughter/otel_config_validator

Repository files navigation

OpenTelemetry SDK Configuration Validator

This application will validate a yaml or json file against the OpenTelemetry SDK Configuration schema.

Build

$ go get
$ go build

Usage

The command otel_config_validator takes one argument, the path to the yaml or json configuration file and optionally the path to a file to output the configuration after environment variable expansion and validation has been done. The format (json or yaml) of the output is based on the extension (.json or yml/.yaml) of the output file name.

$ ./otel_config_validator -o out.json examples/kitchen-sink.yaml

Environment variable substitution is supported with the syntax ${VARIABLE}. Default values are supported in the form ${VARIABLE:default}.

Testing

Run the Go unit tests:

$ go test .

Running the tests of the compiled CLI requires shelltest, jq and yq:

$ shelltest -c --diff --all shelltests/*.test

About

OpenTelemetry SDK Configuration Schema Validator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0