]> git.ipfire.org Git - thirdparty/haproxy.git/commit
Revert "MINOR: opentracing: change the scope of the variable 'ot.uuid' from 'sess...
authorMiroslav Zagorac <mzagorac@haproxy.com>
Wed, 23 Feb 2022 09:28:10 +0000 (10:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 8 Apr 2022 14:31:33 +0000 (16:31 +0200)
commit220a1ad33b37e6cc473047b5439a13439eecc145
treee4f7e1d195f4bae7bafff6ff8ce5b9105455bb40
parente6f76f06633eb460d6731e4abe709a2c2eed0557
Revert "MINOR: opentracing: change the scope of the variable 'ot.uuid' from 'sess' to 'txn'"

This reverts commit 560c7b874aef5922199e36a7f31466af323f489f.

The ot.uuid variable should have the 'sess' scope because it is created
when an OpenTracing filter is attached to a stream.  After that, the
stream processing is started and on that occasion the contexts for the
variables that have the range 'txn' and 'req' are initialized.  This
means that we cannot use variables with the specified scopes before that
point.

This patch must be backported in 2.5.
addons/ot/README-func
addons/ot/include/filter.h
addons/ot/src/scope.c
addons/ot/test/be/ot.cfg
addons/ot/test/cmp/ot.cfg
addons/ot/test/ctx/ot.cfg
addons/ot/test/fe/ot.cfg
addons/ot/test/sa/ot.cfg