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 Jun 14, 2024
1 parent f43c775 commit d3c32ee
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 d3c32ee

Please sign in to comment.