viper.AutomaticEnv is enabled and environment variable overrides works
for configuration sections outside of exporters. However, a Viper
limitation (https://github.com/spf13/viper/issues/507) prevents this
from working as expected in "sub" viper instances.
This work around allows environment variables to be used with exporter
configurations as well.
viper.AutomaticEnv
is enabled and environment variable overrides works for configuration sections outside ofexporters
. However, a Viper limitation (https://github.com/spf13/viper/issues/507) prevents this from working as expected in "sub" viper instances.This work around allows environment variables to be used with exporter configurations as well.