blob: edd3f76caaef38dca0b41cecb936ecde5d8a55f1 [file] [log] [blame]
Miroslav Zagorac70230c62020-12-09 16:54:31 +01001[ot-test-be]
2 ot-tracer ot-test-tracer
3 config be/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
10 scopes frontend_http_request
11 scopes backend_tcp_request
12 scopes backend_http_request
13 scopes client_session_end
14
15 scopes server_session_start
16 scopes tcp_response
17 scopes http_response
18 scopes server_session_end
19
20 ot-scope frontend_http_request
21 extract "ot-ctx" use-headers
22 span "HAProxy session" child-of "ot-ctx" root
23 baggage "haproxy_id" var(sess.ot.uuid)
24 span "Client session" child-of "HAProxy session"
25 span "Frontend HTTP request" child-of "Client session"
26 tag "http.method" method
27 tag "http.url" url
28 tag "http.version" str("HTTP/") req.ver
29 event on-frontend-http-request
30
31 ot-scope backend_tcp_request
32 span "Backend TCP request" follows-from "Frontend HTTP request"
33 finish "Frontend HTTP request"
34 event on-backend-tcp-request
35
36 ot-scope backend_http_request
37 span "Backend HTTP request" follows-from "Backend TCP request"
38 finish "Backend TCP request"
39 event on-backend-http-request
40
41 ot-scope client_session_end
42 finish "Client session"
43 event on-client-session-end
44
45 ot-scope server_session_start
46 span "Server session" child-of "HAProxy session"
47 finish "Backend HTTP request"
48 event on-server-session-start
49
50 ot-scope tcp_response
51 span "TCP response" child-of "Server session"
52 event on-tcp-response
53
54 ot-scope http_response
55 span "HTTP response" follows-from "TCP response"
56 tag "http.status_code" status
57 finish "TCP response"
58 event on-http-response
59
60 ot-scope server_session_end
61 finish *
62 event on-server-session-end