Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support secure OTLP exporter config for hotrod (jaegertracing#4231)
## Which problem is this PR solving? hotrod currently forces all connections to insecure in https://github.com/jaegertracing/jaeger/blob/fedeb4cab75399e4672b77efe6a067a7bd148ddf/examples/hotrod/pkg/tracing/init.go#L85 preventing SSL connections from succeeding. For example: ``` $ OTEL_EXPORTER_OTLP_ENDPOINT=https://hotrod.apm.us-east4.gcp.elastic-cloud.com:443 ./hotrod all -x otlp 2023/02/10 13:00:04 traces export: failed to send to http://hotrod.apm.us-east4.gcp.elastic-cloud.com:443/v1/traces: 400 Bad Request ``` ## Short description of the changes - use secure connections when env var `OTEL_EXPORTER_OTLP_ENDPOINT` uses `https` scheme or `OTEL_EXPORTER_OTLP_INSECURE=false` Signed-off-by: Gil Raphaelli <graphaelli@gmail.com> Signed-off-by: shubbham1215 <sawaikershubham@gmail.com>
- Loading branch information