Skip to content

Commit

Permalink
cli: Modify nipap-cli for single-file pynipap
Browse files Browse the repository at this point in the history
  • Loading branch information
garberg committed Aug 14, 2024
1 parent 719d78b commit fe9519e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nipap-cli/nipap
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import socket
import nipap_cli
import nipap_cli.nipap_cli
from nipap_cli.command import Command, CommandError
from pynipap import NipapError
import tracing
from pynipap import NipapError, init_tracing

# early close of stdout to avoid broken pipe, see #464
# If our output is being piped and the receiver of the pipe is killed off before
Expand Down Expand Up @@ -114,7 +113,7 @@ if __name__ == '__main__':
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)
init_tracing("nipap-cli", otlp_endpoint, sampler, use_grpc)
except KeyError:
pass
except ImportError:
Expand Down

0 comments on commit fe9519e

Please sign in to comment.