Skip to content

Commit

Permalink
Merge branch 'otel-clean' into otel-clean-gabor
Browse files Browse the repository at this point in the history
  • Loading branch information
avahahn authored Aug 13, 2024
2 parents 74da537 + 3489cd8 commit d978c09
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions auto/otel
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ cd src/otel
cargo build
cd ../../


nxt_feature="otel"
nxt_feature_name=NXT_HAVE_OTEL
nxt_feature_run=no
Expand Down
6 changes: 0 additions & 6 deletions src/nxt_h1proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -1837,12 +1837,6 @@ nxt_h1p_conn_sent(nxt_task_t *task, void *obj, void *data)
{
nxt_conn_t *c;
nxt_event_engine_t *engine;
#if (NXT_HAVE_OTEL)
nxt_http_request_t *r;
r = ((nxt_h1proto_t *) data)->request;
nxt_otel_test_and_call_state(task, r);
#endif

#if (NXT_HAVE_OTEL)
nxt_http_request_t *r;
r = ((nxt_h1proto_t *) data)->request;
Expand Down
2 changes: 2 additions & 0 deletions src/nxt_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ main(int argc, char **argv)

nxt_main_log.handler = nxt_log_time_handler;

#if (NXT_HAVE_OTEL)
nxt_otel_init(&otel_phase1_log_callback);
#endif
ret = nxt_runtime_create(&nxt_main_task);

if (ret != NXT_OK) {
Expand Down

0 comments on commit d978c09

Please sign in to comment.