]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: config/trace: Add a 'traces' section to declare debug traces
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 1 Oct 2024 06:48:38 +0000 (08:48 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 2 Oct 2024 08:22:51 +0000 (10:22 +0200)
commit15a520d47468b33feacb1b8928b1c0ebf777b538
tree22e685e04e453efd3c84faf8fc9cdef53a7210cd
parent53f52e67a08fc2cd5ae64caf4148a5de884f9959
MINOR: config/trace: Add a 'traces' section to declare debug traces

It is no longer supported to declare debug traces, via 'trace' directive, in
a global section. A 'traces' directive must be used instead. The syntax of
the 'trace' directive in these sections remains the same. But it is no
longer experimental.

The main reason for this change is to avoid to have a ring section defined
before a global one. Indeed, for now, forward declarations of ring sections
are not supported. So to configure traces, you had to add a ring section
before the global one defining the traces. Most of time, that meant to have
two global sections :

  global
    [...] # global settings

  ring <name>
    [...]

  global
    [...] # trace config

In addition, it will be possible to easily extend the traces section by
adding some new directives.
doc/configuration.txt
include/haproxy/cfgparse.h
src/cfgparse-global.c
src/cfgparse.c
src/trace.c