Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support environment variables for both OtlpGrpcExporter and OtlpHttpExporter #983

Merged
merged 2 commits into from
Sep 21, 2021

Commits on Sep 21, 2021

  1. 1. Add otlp_environment.h to maintain shared codes of `OtlpGrpcExpo…

    …rter` and `OtlpHttpExporter`
    
    2. Add `timeout` and `metadata` options for `OtlpGrpcExporter`
    3. Load environment variables `OTEL_EXPORTER_OTLP_TIMEOUT` , `OTEL_EXPORTER_OTLP_TRACES_TIMEOUT` , `OTEL_EXPORTER_OTLP_HEADERS` , `OTEL_EXPORTER_OTLP_TRACES_HEADERS` to initialize default options of `OtlpGrpcExporter` and `OtlpHttpExporter`
    4. Load environment variables `OTEL_EXPORTER_OTLP_ENDPOINT` , `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT` to initialize default options of `OtlpHttpExporter`
    
    Signed-off-by: owentou <owentou@tencent.com>
    owent committed Sep 21, 2021
    Configuration menu
    Copy the full SHA
    269ff8f View commit details
    Browse the repository at this point in the history
  2. Fix environment overwrite

    Signed-off-by: owentou <owentou@tencent.com>
    owent committed Sep 21, 2021
    Configuration menu
    Copy the full SHA
    b11bf4f View commit details
    Browse the repository at this point in the history