Skip to content

Commit

Permalink
cli: Fix proxying of traces over TLS
Browse files Browse the repository at this point in the history
Proxying traces via nipapd over TLS now works.
  • Loading branch information
garberg committed May 26, 2024
1 parent 3ea5710 commit d9893be
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 d9893be

Please sign in to comment.