]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: opentracing: add ARGC_OT enum
authorMiroslav Zagorac <mzagorac@haproxy.com>
Wed, 9 Dec 2020 15:31:48 +0000 (16:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Dec 2020 14:49:53 +0000 (15:49 +0100)
Due to the addition of the OpenTracing filter it is necessary to define
ARGC_OT enum.  This value is used in the functions fmt_directive() and
smp_resolve_args().

include/haproxy/arg-t.h
src/log.c
src/sample.c

index 3c5591f28b202fbef99a96918d51645c03b23698..cb94ef7ea1e7ee5194ecbde468936a2c989038cc 100644 (file)
@@ -82,6 +82,7 @@ enum {
        ARGC_UBK,      /* use_backend message */
        ARGC_USRV,     /* use-server message */
        ARGC_HERR,     /* http-error */
+       ARGC_OT,       /* opentracing scope args */
 };
 
 /* flags used when compiling and executing regex */
index 1fb98c13becbb7284513295f19e7a37796823317..59d68a93ce55773a80da4e004d3d7681cbd26d8e 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -284,6 +284,8 @@ static inline const char *fmt_directive(const struct proxy *curproxy)
                return "use_backend";
        case ARGC_HERR:
                return "http-error";
+       case ARGC_OT:
+               return "ot-scope";
        default:
                return "undefined(please report this bug)"; /* must never happen */
        }
index a9663bbfb12b7439301ad9cd85454ba147efa7f3..abf820bc7c02f319e3e7424b9de4d9b61422959b 100644 (file)
@@ -1136,6 +1136,7 @@ int smp_resolve_args(struct proxy *p)
                case ARGC_SRV:   where = "in server directive in"; break;
                case ARGC_SPOE:  where = "in spoe-message directive in"; break;
                case ARGC_HERR:  where = "in http-error directive in"; break;
+               case ARGC_OT:    where = "in ot-scope directive in"; break;
                }
 
                /* set a few default settings */