Skip to content

Commit b9aa5c6

Browse files
committed
debug segmentation fault due to trace id
1 parent 45fd52b commit b9aa5c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

axiom/nr_txn.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3259,15 +3259,17 @@ char* nr_txn_get_current_trace_id(nrtxn_t* txn) {
32593259
const char* trace_id;
32603260

32613261
if (NULL == txn) {
3262+
nrl_debug(NRL_AGENT, "%s", "nr_txn_get_current_trace_id : txn is NULL");
32623263
return NULL;
32633264
}
32643265

32653266
trace_id = nr_distributed_trace_get_trace_id(txn->distributed_trace);
3267+
nrl_debug(NRL_AGENT, "nr_distributed_trace_get_trace_id : %s", trace_id);
32663268

32673269
if ((NULL == trace_id) || (!txn->options.distributed_tracing_enabled)) {
32683270
return NULL;
32693271
}
3270-
3272+
nrl_debug(NRL_AGENT, "returning trace_id : %s", trace_id);
32713273
return nr_strdup(trace_id);
32723274
}
32733275

0 commit comments

Comments
 (0)