From 7f8314c8d169555e3d36a795a6aa1ffd467ce99c Mon Sep 17 00:00:00 2001 From: Miroslav Zagorac Date: Wed, 9 Dec 2020 16:31:48 +0100 Subject: [PATCH] MINOR: opentracing: add ARGC_OT enum 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 | 1 + src/log.c | 2 ++ src/sample.c | 1 + 3 files changed, 4 insertions(+) diff --git a/include/haproxy/arg-t.h b/include/haproxy/arg-t.h index 3c5591f28b..cb94ef7ea1 100644 --- a/include/haproxy/arg-t.h +++ b/include/haproxy/arg-t.h @@ -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 */ diff --git a/src/log.c b/src/log.c index 1fb98c13be..59d68a93ce 100644 --- 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 */ } diff --git a/src/sample.c b/src/sample.c index a9663bbfb1..abf820bc7c 100644 --- a/src/sample.c +++ b/src/sample.c @@ -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 */