]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: trace: move the known trace context into a dedicated struct
authorWilly Tarreau <w@1wt.eu>
Tue, 6 Aug 2024 16:04:31 +0000 (18:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Aug 2024 14:02:59 +0000 (16:02 +0200)
commit7d55a70f5a76941769dbd28471bba62a09321c23
treeb2a853748655e8e5cd6ac8856e0db364138c462c
parentd465610ec3ea46ceb40309e83e72e20997759b50
MINOR: trace: move the known trace context into a dedicated struct

We now have a trace_ctx to hold the sess, conn, qc, stream and so on.
This will allow us to pass it across layers so that other helpers can
help fill them.

Ideally it should be passed as an argument to __trace_enabled() by
__trace() so that it can be passed back to the trace callback. But
it seems that trace callbacks are smart enough to figure all their
info when they need them.
include/haproxy/trace-t.h
src/trace.c