| 338 | } |
| 339 | |
| 340 | void 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 | |
| 361 | void trace_span_remote(u64 trace_id_hi, u64 trade_id_lo, u64 span_id) |
| 362 | { |
nothing calls this directly
no test coverage detected