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.
23 lines
501 B
INI
23 lines
501 B
INI
global
|
|
stats socket /tmp/haproxy.sock mode 666 level admin
|
|
|
|
listen stats
|
|
mode http
|
|
bind *:8001
|
|
stats uri /
|
|
stats admin if TRUE
|
|
stats refresh 10s
|
|
|
|
frontend otel-test-cmp-frontend
|
|
bind *:10080
|
|
default_backend servers-backend
|
|
|
|
# ACL used to distinguish successful from error responses
|
|
acl acl-http-status-ok status 100:399
|
|
|
|
# OTel filter
|
|
filter opentelemetry id otel-test-cmp config cmp/otel.cfg
|
|
|
|
backend servers-backend
|
|
server server-1 127.0.0.1:8000
|