summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_otel.h
diff options
context:
space:
mode:
authorAva Hahn <a.hahn@f5.com>2024-10-23 16:30:39 -0700
committerAva Hahn <110854134+avahahn@users.noreply.github.com>2024-11-12 09:50:02 -0800
commitb9066210ac378a6255c1e3de5fc01ee29904a05c (patch)
tree9330ac9c327dde2c3920ba794b91ae2451ed424f /src/nxt_otel.h
parent9d3dcb800aba0c036b032ccd00197712c3f5d0d9 (diff)
downloadunit-b9066210ac378a6255c1e3de5fc01ee29904a05c.tar.gz
unit-b9066210ac378a6255c1e3de5fc01ee29904a05c.tar.bz2
otel: add header parsing and test call state
Enables Unit to parse the tracestate and traceparent headers and add it to the list, as well as calls to nxt_otel_test_and_call_state. Signed-off-by: Ava Hahn <a.hahn@f5.com> Signed-off-by: Gabor Javorszky <g.javorszky@f5.com>
Diffstat (limited to 'src/nxt_otel.h')
-rw-r--r--src/nxt_otel.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nxt_otel.h b/src/nxt_otel.h
index f5a2de8b..112f054c 100644
--- a/src/nxt_otel.h
+++ b/src/nxt_otel.h
@@ -10,6 +10,13 @@
#if (NXT_HAVE_OTEL)
+#define NXT_OTEL_TRACE() nxt_otel_test_and_call_state(task, r)
+#else
+#define NXT_OTEL_TRACE()
+#endif
+
+
+#if (NXT_HAVE_OTEL)
extern void nxt_otel_rs_send_trace(void *trace);
extern void * nxt_otel_rs_get_or_create_trace(u_char *trace_id);
extern void nxt_otel_rs_init(