Skip to content

Commit 2b71d13

Browse files
committed
debug segmentation fault due to trace id
1 parent fc58607 commit 2b71d13

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

axiom/nr_txn.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -3242,15 +3242,17 @@ char* nr_txn_get_current_trace_id(nrtxn_t* txn) {
32423242
const char* trace_id;
32433243

32443244
if (NULL == txn) {
3245+
nrl_debug(NRL_AGENT, "%s", "nr_txn_get_current_trace_id : txn is NULL");
32453246
return NULL;
32463247
}
32473248

32483249
trace_id = nr_distributed_trace_get_trace_id(txn->distributed_trace);
3250+
nrl_debug(NRL_AGENT, "nr_distributed_trace_get_trace_id : %s", trace_id);
32493251

32503252
if ((NULL == trace_id) || (!txn->options.distributed_tracing_enabled)) {
32513253
return NULL;
32523254
}
3253-
3255+
nrl_debug(NRL_AGENT, "returning trace_id : %s", trace_id);
32543256
return nr_strdup(trace_id);
32553257
}
32563258

0 commit comments

Comments
 (0)