Skip to content

Commit ba7aa4d

Browse files
committed
opentelemetry-exporter-otlp-proto-http: fix certificate_file=False being ignored
The constructor used which caused an explicitly passed False value to be discarded due to Python's falsy evaluation. Use check instead so that False (disable SSL verification) is respected.
1 parent 9ffd585 commit ba7aa4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • exporter/opentelemetry-exporter-otlp-proto-http/src/opentelemetry/exporter/otlp/proto/http/trace_exporter

‎exporter/opentelemetry-exporter-otlp-proto-http/src/opentelemetry/exporter/otlp/proto/http/trace_exporter/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
environ.get(OTEL_EXPORTER_OTLP_ENDPOINT, DEFAULT_ENDPOINT)
9191
),
9292
)
93-
self._certificate_file = certificate_file or environ.get(
93+
self._certificate_file = certificate_file if certificate_file is not None else environ.get(
9494
OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE,
9595
environ.get(OTEL_EXPORTER_OTLP_CERTIFICATE, True),
9696
)

0 commit comments

Comments
 (0)