MEDIUM: stream/trace: Register a new trace source with its events
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 Nov 2019 15:18:10 +0000 (16:18 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Nov 2019 09:14:32 +0000 (10:14 +0100)
commiteea8fc737b37ca2d61cef6f35e29d990656c10d4
tree097ee953853ddd87089d504f5f4c7ce435b950dd
parentdb703b19181a093e54e8619ae7c4aeac07dd8daf
MEDIUM: stream/trace: Register a new trace source with its events

Runtime traces are now supported for the streams, only if compiled with
debug. process_stream() is covered as well as TCP/HTTP analyzers and filters.

In traces, the first argument is always a stream. So it is easy to get the info
about the channels and the stream-interfaces. The second argument, when defined,
is always a HTTP transaction. And the third one is an HTTP message. The trace
message is adapted to report HTTP info when possible.
include/proto/stream.h
src/backend.c
src/filters.c
src/http_ana.c
src/stream.c
src/tcp_rules.c