summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_request.c
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_http_request.c
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 '')
-rw-r--r--src/nxt_http_request.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_http_request.c b/src/nxt_http_request.c
index 417b5a39..722197b8 100644
--- a/src/nxt_http_request.c
+++ b/src/nxt_http_request.c
@@ -322,6 +322,8 @@ nxt_http_request_start(nxt_task_t *task, void *obj, void *data)
r = obj;
+ NXT_OTEL_TRACE();
+
r->state = &nxt_http_request_body_state;
skcf = r->conf->socket_conf;
@@ -593,6 +595,8 @@ nxt_http_request_ready(nxt_task_t *task, void *obj, void *data)
r = obj;
action = r->conf->socket_conf->action;
+ NXT_OTEL_TRACE();
+
if (r->chunked) {
ret = nxt_http_request_chunked_transform(r);
if (nxt_slow_path(ret != NXT_OK)) {