summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_otel.h
diff options
context:
space:
mode:
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(