Skip to content

Commit

Permalink
feat:: Added --insecure of CLI argument
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycody committed May 17, 2022
1 parent 7413895 commit 8d7e24f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
from opentelemetry.sdk.environment_variables import (
OTEL_EXPORTER_JAEGER_ENDPOINT,
OTEL_EXPORTER_JAEGER_TIMEOUT,
OTEL_PYTHON_INSECURE,
)
from opentelemetry.sdk.resources import SERVICE_NAME, Resource
from opentelemetry.sdk.trace.export import SpanExporter, SpanExportResult
Expand Down Expand Up @@ -122,6 +123,9 @@ def __init__(
self.collector_endpoint = collector_endpoint or environ.get(
OTEL_EXPORTER_JAEGER_ENDPOINT, DEFAULT_GRPC_COLLECTOR_ENDPOINT
)
self.insecure = insecure or bool(
OTEL_PYTHON_INSECURE, None
)
self._timeout = timeout or int(
environ.get(OTEL_EXPORTER_JAEGER_TIMEOUT, DEFAULT_EXPORT_TIMEOUT)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,3 +421,10 @@
``DELTA``: Choose ``DELTA`` aggregation temporality for ``Counter``, ``Asynchronous Counter`` and ``Histogram``.
Choose ``CUMULATIVE`` aggregation temporality for ``UpDownCounter`` and ``Asynchronous UpDownCounter``.
"""

OTEL_PYTHON_INSECURE = "OTEL_PYTHON_INSECURE"
"""
.. envvar:: OTEL_PYTHON_INSECURE
The :envvar:`OTEL_PYTHON_INSECURE` is a boolean flag to True if collector has no encryption or authentication.
"""

0 comments on commit 8d7e24f

Please sign in to comment.