mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
In order to enable the assignment of a context name, and yet exclude the use of that name (prefix in this case) when extracting the context from the HTTP header, a special character '-' has been added, which can be specified at the beginning of the prefix. So let's say if we look at examples of the fe-be configuration, we can transfer the context via an HTTP header without a prefix like this: fe/ot.cfg: .. span "HAProxy session" inject "" use-headers event on-backend-http-request Such a context can be read in another process using a name that has a special '-' sign at the beginning: be/ot.cfg: ot-scope frontend_http_request extract "-ot-ctx" use-headers span "HAProxy session" child-of "-ot-ctx" root .. This means that the context name will be '-ot-ctx' but it will not be used when extracting data from HTTP headers. Of course, if the context does not have a prefix set, all HTTP headers will be inserted into the OpenTracing library as context. All of the above will only work correctly if that library can figure out what is relevant to the context and what is not. |
||
---|---|---|
.github | ||
addons | ||
admin | ||
contrib | ||
dev | ||
doc | ||
examples | ||
include | ||
reg-tests | ||
scripts | ||
src | ||
tests | ||
.cirrus.yml | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
BRANCHES | ||
CHANGELOG | ||
CONTRIBUTING | ||
INSTALL | ||
LICENSE | ||
MAINTAINERS | ||
Makefile | ||
README | ||
ROADMAP | ||
SUBVERS | ||
VERDATE | ||
VERSION |
The HAProxy documentation has been split into a number of different files for ease of use. Please refer to the following files depending on what you're looking for : - INSTALL for instructions on how to build and install HAProxy - BRANCHES to understand the project's life cycle and what version to use - LICENSE for the project's license - CONTRIBUTING for the process to follow to submit contributions The more detailed documentation is located into the doc/ directory : - doc/intro.txt for a quick introduction on HAProxy - doc/configuration.txt for the configuration's reference manual - doc/lua.txt for the Lua's reference manual - doc/SPOE.txt for how to use the SPOE engine - doc/network-namespaces.txt for how to use network namespaces under Linux - doc/management.txt for the management guide - doc/regression-testing.txt for how to use the regression testing suite - doc/peers.txt for the peers protocol reference - doc/coding-style.txt for how to adopt HAProxy's coding style - doc/internals for developer-specific documentation (not all up to date)