EXAMPLES: add "traces.cfg" with traces examples

Add an example on how to use the traces section. The example use the
3.1-dev8 syntax and enables all traces on stderr.
This commit is contained in:
William Lallemand 2024-11-06 17:19:57 +01:00
parent e9928c306c
commit 66bff034d7
1 changed files with 21 additions and 0 deletions

21
examples/traces.cfg Normal file
View File

@ -0,0 +1,21 @@
# This configuration example enables all trace available and output them on
# stderr.
# "stream" traces need haproxy to be compiled with -DDEBUG_DEV or -DDEBUG_FULL
.if version_atleast(3.1-dev8)
traces
trace all sink stderr level developer
trace pt verbosity complete start now
trace h1 verbosity complete start now
trace h2 verbosity complete start now
trace fcgi verbosity complete start now
trace spop verbosity complete start now
trace stream verbosity complete start now
trace check verbosity complete start now
trace applet verbosity complete start now
trace h3 start now
trace quic start now
trace qmux start now
trace peers start now
.endif