blob: 21b15dd61bb9decc218a279babb19bb7501396f0 [file] [log] [blame]
Miroslav Zagorac70230c62020-12-09 16:54:31 +01001[ot-test-cmp]
2 ot-tracer ot-test-tracer
3 config cmp/cfg-jaeger.yml
4 plugin libjaeger_opentracing_plugin-0.5.0.so
5# log localhost:514 local7 debug
6 option dontlog-normal
7 option hard-errors
8 no option disabled
9 rate-limit 100.0
10
11 scopes client_session_start
12 scopes frontend_tcp_request
13 scopes frontend_http_request
14 scopes backend_tcp_request
15 scopes backend_http_request
16 scopes server_unavailable
17
18 scopes server_session_start
19 scopes tcp_response
20 scopes http_response http_response-error server_session_end client_session_end
21
22 ot-scope client_session_start
23 span "HAProxy session" root
24 baggage "haproxy_id" var(sess.ot.uuid)
25 span "Client session" child-of "HAProxy session"
26 event on-client-session-start
27
28 ot-scope frontend_tcp_request
29 span "Frontend TCP request" child-of "Client session"
30 event on-frontend-tcp-request
31
32 ot-scope frontend_http_request
33 span "Frontend HTTP request" follows-from "Frontend TCP request"
34 tag "http.method" method
35 tag "http.url" url
36 tag "http.version" str("HTTP/") req.ver
37 finish "Frontend TCP request"
38 event on-frontend-http-request
39
40 ot-scope backend_tcp_request
41 span "Backend TCP request" follows-from "Frontend HTTP request"
42 finish "Frontend HTTP request"
43 event on-backend-tcp-request
44
45 ot-scope backend_http_request
46 span "Backend HTTP request" follows-from "Backend TCP request"
47 finish "Backend TCP request"
48 event on-backend-http-request
49
50 ot-scope server_unavailable
51 span "HAProxy session"
52 tag "error" bool(true)
53 log "status" str("503 Service Unavailable")
54 finish *
55 event on-server-unavailable
56
57 ot-scope server_session_start
58 span "Server session" child-of "HAProxy session"
59 finish "Backend HTTP request"
60 event on-server-session-start
61
62 ot-scope tcp_response
63 span "TCP response" child-of "Server session"
64 event on-tcp-response
65
66 ot-scope http_response
67 span "HTTP response" follows-from "TCP response"
68 tag "http.status_code" status
69 finish "TCP response"
70 event on-http-response
71
72 ot-scope http_response-error
73 span "HTTP response"
74 tag "error" bool(true)
75 event on-http-response if !acl-http-status-ok
76
77 ot-scope server_session_end
78 finish "HTTP response" "Server session"
79 event on-http-response
80
81 ot-scope client_session_end
82 finish "*"
83 event on-http-response