mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 20:46:11 +02:00
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.
20 lines
396 B
INI
20 lines
396 B
INI
global
|
|
stats socket /tmp/haproxy-be.sock mode 666 level admin
|
|
|
|
listen stats
|
|
mode http
|
|
bind *:8002
|
|
stats uri /
|
|
stats admin if TRUE
|
|
stats refresh 10s
|
|
|
|
frontend otel-test-be-frontend
|
|
bind *:11080
|
|
default_backend servers-backend
|
|
|
|
# OTel filter
|
|
filter opentelemetry id otel-test-be config be/otel.cfg
|
|
|
|
backend servers-backend
|
|
server server-1 127.0.0.1:8000
|