mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
MINOR: opentracing: change the scope of the variable 'ot.uuid' from 'sess' to 'txn'
At the suggestion of Willy Tarreau, the scope of the 'ot.uuid' variable was changed from 'sess' to 'txn', so it is now limited to the transaction only.
This commit is contained in:
parent
a75f3404c8
commit
560c7b874a
@ -144,7 +144,7 @@ context is created, and flags are set that define which analyzers are used.
|
|||||||
flt_ot_runtime_context_init(<err>) {
|
flt_ot_runtime_context_init(<err>) {
|
||||||
flt_ot_pool_alloc() {
|
flt_ot_pool_alloc() {
|
||||||
}
|
}
|
||||||
/* Initializing and setting the variable 'sess.ot.uuid'. */
|
/* Initializing and setting the variable 'txn.ot.uuid'. */
|
||||||
if (flt_ot_var_register(<err>) != -1) {
|
if (flt_ot_var_register(<err>) != -1) {
|
||||||
flt_ot_var_set(<err>) {
|
flt_ot_var_set(<err>) {
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#define FLT_OT_FMT_NAME "'" FLT_OT_OPT_NAME "' : "
|
#define FLT_OT_FMT_NAME "'" FLT_OT_OPT_NAME "' : "
|
||||||
#define FLT_OT_FMT_TYPE "'filter' : "
|
#define FLT_OT_FMT_TYPE "'filter' : "
|
||||||
#define FLT_OT_VAR_UUID "sess", "ot", "uuid"
|
#define FLT_OT_VAR_UUID "txn", "ot", "uuid"
|
||||||
#define FLT_OT_ALERT(f, ...) ha_alert(FLT_OT_FMT_TYPE FLT_OT_FMT_NAME f "\n", ##__VA_ARGS__)
|
#define FLT_OT_ALERT(f, ...) ha_alert(FLT_OT_FMT_TYPE FLT_OT_FMT_NAME f "\n", ##__VA_ARGS__)
|
||||||
|
|
||||||
#define FLT_OT_CONDITION_IF "if"
|
#define FLT_OT_CONDITION_IF "if"
|
||||||
|
@ -117,7 +117,7 @@ struct flt_ot_runtime_context *flt_ot_runtime_context_init(struct stream *s, str
|
|||||||
|
|
||||||
#ifdef USE_OT_VARS
|
#ifdef USE_OT_VARS
|
||||||
/*
|
/*
|
||||||
* The HAProxy variable 'sess.ot.uuid' is registered here,
|
* The HAProxy variable 'txn.ot.uuid' is registered here,
|
||||||
* after which its value is set to runtime context UUID.
|
* after which its value is set to runtime context UUID.
|
||||||
*/
|
*/
|
||||||
if (flt_ot_var_register(FLT_OT_VAR_UUID, err) != -1)
|
if (flt_ot_var_register(FLT_OT_VAR_UUID, err) != -1)
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
ot-scope frontend_http_request
|
ot-scope frontend_http_request
|
||||||
extract "ot-ctx" use-headers
|
extract "ot-ctx" use-headers
|
||||||
span "HAProxy session" child-of "ot-ctx" root
|
span "HAProxy session" child-of "ot-ctx" root
|
||||||
baggage "haproxy_id" var(sess.ot.uuid)
|
baggage "haproxy_id" var(txn.ot.uuid)
|
||||||
span "Client session" child-of "HAProxy session"
|
span "Client session" child-of "HAProxy session"
|
||||||
span "Frontend HTTP request" child-of "Client session"
|
span "Frontend HTTP request" child-of "Client session"
|
||||||
tag "http.method" method
|
tag "http.method" method
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
ot-scope client_session_start
|
ot-scope client_session_start
|
||||||
span "HAProxy session" root
|
span "HAProxy session" root
|
||||||
baggage "haproxy_id" var(sess.ot.uuid)
|
baggage "haproxy_id" var(txn.ot.uuid)
|
||||||
span "Client session" child-of "HAProxy session"
|
span "Client session" child-of "HAProxy session"
|
||||||
event on-client-session-start
|
event on-client-session-start
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
ot-scope client_session_start_1
|
ot-scope client_session_start_1
|
||||||
span "HAProxy session" root
|
span "HAProxy session" root
|
||||||
inject "ot_ctx_1" use-headers use-vars
|
inject "ot_ctx_1" use-headers use-vars
|
||||||
baggage "haproxy_id" var(sess.ot.uuid)
|
baggage "haproxy_id" var(txn.ot.uuid)
|
||||||
event on-client-session-start
|
event on-client-session-start
|
||||||
|
|
||||||
ot-scope client_session_start_2
|
ot-scope client_session_start_2
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
ot-scope client_session_start
|
ot-scope client_session_start
|
||||||
span "HAProxy session" root
|
span "HAProxy session" root
|
||||||
baggage "haproxy_id" var(sess.ot.uuid)
|
baggage "haproxy_id" var(txn.ot.uuid)
|
||||||
span "Client session" child-of "HAProxy session"
|
span "Client session" child-of "HAProxy session"
|
||||||
event on-client-session-start
|
event on-client-session-start
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
ot-scope client_session_start
|
ot-scope client_session_start
|
||||||
span "HAProxy session" root
|
span "HAProxy session" root
|
||||||
baggage "haproxy_id" var(sess.ot.uuid)
|
baggage "haproxy_id" var(txn.ot.uuid)
|
||||||
span "Client session" child-of "HAProxy session"
|
span "Client session" child-of "HAProxy session"
|
||||||
acl acl-test-src-ip src 127.0.0.1
|
acl acl-test-src-ip src 127.0.0.1
|
||||||
event on-client-session-start if acl-test-src-ip
|
event on-client-session-start if acl-test-src-ip
|
||||||
|
Loading…
Reference in New Issue
Block a user