mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 09:07:02 +02:00
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().
This commit is contained in:
parent
6deab79d59
commit
7f8314c8d1
@ -82,6 +82,7 @@ enum {
|
|||||||
ARGC_UBK, /* use_backend message */
|
ARGC_UBK, /* use_backend message */
|
||||||
ARGC_USRV, /* use-server message */
|
ARGC_USRV, /* use-server message */
|
||||||
ARGC_HERR, /* http-error */
|
ARGC_HERR, /* http-error */
|
||||||
|
ARGC_OT, /* opentracing scope args */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* flags used when compiling and executing regex */
|
/* flags used when compiling and executing regex */
|
||||||
|
@ -284,6 +284,8 @@ static inline const char *fmt_directive(const struct proxy *curproxy)
|
|||||||
return "use_backend";
|
return "use_backend";
|
||||||
case ARGC_HERR:
|
case ARGC_HERR:
|
||||||
return "http-error";
|
return "http-error";
|
||||||
|
case ARGC_OT:
|
||||||
|
return "ot-scope";
|
||||||
default:
|
default:
|
||||||
return "undefined(please report this bug)"; /* must never happen */
|
return "undefined(please report this bug)"; /* must never happen */
|
||||||
}
|
}
|
||||||
|
@ -1136,6 +1136,7 @@ int smp_resolve_args(struct proxy *p)
|
|||||||
case ARGC_SRV: where = "in server directive in"; break;
|
case ARGC_SRV: where = "in server directive in"; break;
|
||||||
case ARGC_SPOE: where = "in spoe-message 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_HERR: where = "in http-error directive in"; break;
|
||||||
|
case ARGC_OT: where = "in ot-scope directive in"; break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* set a few default settings */
|
/* set a few default settings */
|
||||||
|
Loading…
Reference in New Issue
Block a user