Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: error logged on empty OTEL_TRACES_SAMPLER_ARG
We were noticing errors like: > time=2024-12-18T15:00:02.080Z level=ERROR source=/go/pkg/mod/go.opentelemetry.io/contrib/samplers/[email protected]/sampler_remote_options.go:112 msg="env variable parsing failure" err="argument is not of type '<key>=<value>'" In applications using the Jaeger sampler but had not set the `OTEL_TRACES_SAMPLER_ARG` environment variable. The issue was: * `os.Getenv` would return `""` when this var was not set, and * `strings.Split("", ",")` would return `[]string{""}` since `""` does not contain `=` an error is emitted.
- Loading branch information