census-instrumentation / opencensus-service

OpenCensus service allows OpenCensus libraries to export to an exporter service rather than having to link vendor-specific exports.
Apache License 2.0
153 stars 63 forks source link

Support environment variables when configuring exporters #621

Closed c2nes closed 2 years ago

c2nes commented 5 years ago

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.

dashpole commented 2 years ago

This repository is now archived, and is succeeded by https://github.com/open-telemetry/opentelemetry-collector.