]> git.kaiwu.me - haproxy.git/commit
MINOR: otel: test: added test and benchmark suite for the OTel filter
authorMiroslav Zagorac <mzagorac@haproxy.com>
Tue, 27 Jan 2026 12:02:59 +0000 (13:02 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 13 Apr 2026 07:23:26 +0000 (09:23 +0200)
commitd8e69f07dc01915aac3cbd24658ef6e3baefa2a5
treed508c31b767e4e939d08325a12318c67628d8add
parentbc6402f60925bd9a9670b2ec9e10dba6b100d869
MINOR: otel: test: added test and benchmark suite for the OTel filter

Added a test suite under addons/otel/test/ for the OpenTelemetry filter.
Five scenarios exercise different filter capabilities: standalone (sa)
covers all hook points including idle-timeout heartbeats, metrics and log
records; compact (cmp) covers the full request/response lifecycle with
ACL-based error handling; context (ctx) tests explicit inject/extract
propagation through numbered context variables; frontend/backend (fe/be)
tests distributed tracing across two HAProxy instances; and empty tests
bare filter initialisation with no active scopes.

A performance benchmarking script (test-speed.sh) uses wrk to measure
throughput and latency at different rate-limit settings (100% through 0%,
disabled, and filter-off).  Each scenario includes comprehensive YAML
exporter definitions covering OTLP file/gRPC/HTTP, ostream, memory,
Zipkin, and Elasticsearch backends.
26 files changed:
addons/otel/test/be/haproxy.cfg [new file with mode: 0644]
addons/otel/test/be/otel.cfg [new file with mode: 0644]
addons/otel/test/be/otel.yml [new file with mode: 0644]
addons/otel/test/cmp/haproxy.cfg [new file with mode: 0644]
addons/otel/test/cmp/otel.cfg [new file with mode: 0644]
addons/otel/test/cmp/otel.yml [new file with mode: 0644]
addons/otel/test/copy-yml.sh [new file with mode: 0755]
addons/otel/test/ctx/haproxy.cfg [new file with mode: 0644]
addons/otel/test/ctx/otel.cfg [new file with mode: 0644]
addons/otel/test/ctx/otel.yml [new file with mode: 0644]
addons/otel/test/empty/haproxy.cfg [new file with mode: 0644]
addons/otel/test/empty/otel.cfg [new file with mode: 0644]
addons/otel/test/empty/otel.yml [new file with mode: 0644]
addons/otel/test/fe/haproxy.cfg [new file with mode: 0644]
addons/otel/test/fe/otel.cfg [new file with mode: 0644]
addons/otel/test/fe/otel.yml [new file with mode: 0644]
addons/otel/test/haproxy-common.cfg [new file with mode: 0644]
addons/otel/test/index.html [new file with mode: 0644]
addons/otel/test/run-cmp.sh [new file with mode: 0755]
addons/otel/test/run-ctx.sh [new file with mode: 0755]
addons/otel/test/run-fe-be.sh [new file with mode: 0755]
addons/otel/test/run-sa.sh [new file with mode: 0755]
addons/otel/test/sa/haproxy.cfg [new file with mode: 0644]
addons/otel/test/sa/otel.cfg [new file with mode: 0644]
addons/otel/test/sa/otel.yml [new file with mode: 0644]
addons/otel/test/test-speed.sh [new file with mode: 0755]