Skip to content

Commit

Permalink
Merge pull request #1387 from garberg/cli_tracing_ssl
Browse files Browse the repository at this point in the history
Fix proxying of traces over TLS in CLI
  • Loading branch information
garberg authored May 26, 2024
2 parents 3ea5710 + d9893be commit a36eeef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nipap-cli/nipap
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a36eeef

Please sign in to comment.