]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
EXAMPLES: add "traces.cfg" with traces examples
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 6 Nov 2024 16:19:57 +0000 (17:19 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 6 Nov 2024 16:32:32 +0000 (17:32 +0100)
Add an example on how to use the traces section. The example use the
3.1-dev8 syntax and enables all traces on stderr.

examples/traces.cfg [new file with mode: 0644]

diff --git a/examples/traces.cfg b/examples/traces.cfg
new file mode 100644 (file)
index 0000000..5a57e39
--- /dev/null
@@ -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