def _get_insecure(param): if param is not None: return param insecure_env = Configuration().get("EXPORTER_JAEGER_INSECURE", None) if insecure_env is not None: return insecure_env.lower() == "true" return DEFAULT_INSECURE
def _get_exporter_names() -> Sequence[str]: exporter = Configuration().EXPORTER or EXPORTER_OTLP if exporter.lower().strip() == "none": return [] names = [] for exp in exporter.split(","): name = exp.strip() if name == EXPORTER_OTLP: names.append(EXPORTER_OTLP_SPAN) names.append(EXPORTER_OTLP_METRIC) else: names.append(name) return names