From 4097d81a5fcb8003d8de87643db54fae0ad97b59 Mon Sep 17 00:00:00 2001 From: Evan Morris Date: Mon, 4 Nov 2024 15:59:09 -0500 Subject: [PATCH] changing default otlp endpoint changing default otlp endpoint host to be consistent with other apps, and to include http:// which seems to be necessary --- src/otel_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/otel_config.py b/src/otel_config.py index 227925f..059a6f8 100644 --- a/src/otel_config.py +++ b/src/otel_config.py @@ -19,7 +19,7 @@ def configure_otel(service_name, APP): # these supresses such warnings. logging.captureWarnings(capture=True) warnings.filterwarnings("ignore",category=ResourceWarning) - jaeger_host = os.environ.get('JAEGER_HOST', 'jaeger-otel-collector') + jaeger_host = os.environ.get('JAEGER_HOST', 'http://localhost/').rstrip('/') jaeger_port = int(os.environ.get('JAEGER_PORT', '4317')) jaeger_endpoint = f'{jaeger_host}:{jaeger_port}' otlp_exporter = OTLPSpanExporter(endpoint=jaeger_endpoint)