From d3c32ee63c19fa5108543595c06cf0ab53651581 Mon Sep 17 00:00:00 2001 From: Lukas Garberg Date: Mon, 27 May 2024 00:14:05 +0200 Subject: [PATCH] cli: Fix proxying of traces over TLS Proxying traces via nipapd over TLS now works. --- nipap-cli/nipap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nipap-cli/nipap b/nipap-cli/nipap index c77110ba8..37d0683a4 100755 --- a/nipap-cli/nipap +++ b/nipap-cli/nipap @@ -111,7 +111,7 @@ if __name__ == '__main__': # Send trace via nipapd use_grpc = False use_ssl = cfg.getboolean("global", "use_ssl") - otlp_endpoint = "https://" if use_ssl else "http://" + (cfg.get("global", "hostname") + + otlp_endpoint = ("https://" if use_ssl else "http://") + (cfg.get("global", "hostname") + ":" + cfg.get("global", "port") + "/v1/traces/") tracing.init_tracing("nipap-cli", otlp_endpoint, sampler, use_grpc)