]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Rename sdig argument from otid to traceid
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 12 Jun 2025 12:27:37 +0000 (14:27 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 12 Jun 2025 12:55:23 +0000 (14:55 +0200)
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
.github/actions/spell-check/expect.txt
docs/manpages/sdig.1.rst
pdns/recursordist/docs/lua-config/protobuf.rst
pdns/sdig.cc

index e0626a36b1a0f1e53b2bb3a6a5c4ae1cd0e0a0e5..a0362dfef1661f54464c10fe59c9d251b2324bf8 100644 (file)
@@ -1439,6 +1439,7 @@ tolua
 Toosarani
 Toshifumi
 totms
+traceid
 Travaille
 treemacs
 tribool
index 5da95be9ddf4edd94a24b9560f2bfa841651ac91..4d974df248c45f0fdafc730f3ce0172b14ed8364 100644 (file)
@@ -59,7 +59,7 @@ opcode *OPNUM*
     Use opcode *OPNUM* instead of 0 (Query). For example, ``sdig 192.0.2.1 53 example.com SOA opcode 4`` sends a ``NOTIFY``.
 cookie *COOKIE*
     if *COOKIE* is ``-`` send a random client cookie. Otherwise send the given cookie, which should be a hex string received from a server earlier.
-otid *TraceID*
+traceid *TraceID*
     include a TraceID and an empty SpanID value into the EDNS data. If TraceID is ``-``, a random TraceID is generated, otherwise it is a hex string.
 Examples
 --------
index eaecdd8c1b605c99dcdead0d2ce8a708ab43bacc..b2dbd6359ec2f38b24923b027226dd61e4420651 100644 (file)
@@ -8,7 +8,7 @@ In addition, messages related to responses contain the name, type, class and rda
 Finally, if a RPZ or custom Lua policy has been applied, response messages also contain the applied policy name and some tags.
 This is particularly useful to detect and act on infected hosts.
 
-The Protobuf loggging stream can also include event information in a proprietary format and (starting with version 5.3.0) OpenTelemetry Trace data.
+The Protobuf logging stream can include event information in a proprietary format and (starting with version 5.3.0) OpenTelemetry Trace data.
 See :ref:`event-tracing` for more information.
 
 Configuring Protocol Buffer logs
index 151770d35d0f296dc5bb482bf5e2dca8b270f3f6..41f67128d9bfc3c7e84abfaaa74297f957982afe 100644 (file)
@@ -45,7 +45,7 @@ static void usage()
           "[proxy UDP(0)/TCP(1) SOURCE-IP-ADDRESS-AND-PORT DESTINATION-IP-ADDRESS-AND-PORT] "
           "[cookie -/HEX] "
           "[dumpluaraw] [opcode OPNUM] "
-          "[otid -/HEX]"
+          "[traceid -/HEX]"
        << endl;
 }
 
@@ -358,9 +358,9 @@ try {
       else if (strcmp(argv[i], "dumpluaraw") == 0) {
         dumpluaraw = true;
       }
-      else if (strcmp(argv[i], "otid") == 0) {
+      else if (strcmp(argv[i], "traceid") == 0) {
         if (argc < i + 2) {
-          cerr << "otid needs an argument" << endl;
+          cerr << "traceid needs an argument" << endl;
           exit(EXIT_FAILURE);
         }
         auto traceIDArg = std::string(argv[++i]);
@@ -371,7 +371,7 @@ try {
         else {
           auto traceIDStr = makeBytesFromHex(traceIDArg);
           if (traceIDStr.size() > traceid.size()) {
-            cerr << "Maximum length of TraceID is " << traceid.size() << " bytes" << endl;
+            cerr << "Maximum length of traceid is " << traceid.size() << " bytes" << endl;
             exit(EXIT_FAILURE);
           }
           traceIDStr.resize(traceid.size());