MCPcopy Create free account
hub / github.com/ElementsProject/lightning / trace_span_start_

Function trace_span_start_

common/trace.c:340–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340void trace_span_start_(const char *name, const void *key)
341{
342 size_t numkey = trace_key(key);
343
344 trace_init();
345 if (disable_trace)
346 return;
347
348 assert(trace_span_find(numkey) == NULL);
349 struct span *s = trace_span_slot();
350 if (!s)
351 return;
352 init_span(s, numkey, name, current);
353 current = s;
354 DTRACE_PROBE1(lightningd, span_start, s->id);
355 if (trace_to_file) {
356 fprintf(trace_to_file, "span_start %016"PRIx64" %s\n", s->id, name);
357 fflush(trace_to_file);
358 }
359}
360
361void trace_span_remote(u64 trace_id_hi, u64 trade_id_lo, u64 span_id)
362{

Callers

nothing calls this directly

Calls 5

trace_keyFunction · 0.85
trace_initFunction · 0.85
trace_span_findFunction · 0.85
trace_span_slotFunction · 0.85
init_spanFunction · 0.85

Tested by

no test coverage detected