2023-07-27 07:13:53 +02:00
|
|
|
#ifndef LIGHTNING_COMMON_TRACE_H
|
|
|
|
#define LIGHTNING_COMMON_TRACE_H
|
|
|
|
#include "config.h"
|
2023-12-01 17:58:55 +01:00
|
|
|
#include <ccan/short_types/short_types.h>
|
|
|
|
|
|
|
|
#define SPAN_ID_SIZE 8
|
|
|
|
#define TRACE_ID_SIZE 16
|
2023-07-27 07:13:53 +02:00
|
|
|
|
|
|
|
void trace_span_start(const char *name, const void *key);
|
|
|
|
void trace_span_end(const void *key);
|
|
|
|
void trace_span_suspend(const void *key);
|
|
|
|
void trace_span_resume(const void *key);
|
|
|
|
void trace_span_tag(const void *key, const char *name, const char *value);
|
2023-12-15 01:21:56 +01:00
|
|
|
void trace_cleanup(void);
|
2023-12-01 17:58:55 +01:00
|
|
|
void trace_span_remote(u8 trace_id[TRACE_ID_SIZE], u8 span_id[SPAN_ID_SIZE]);
|
2023-07-27 07:13:53 +02:00
|
|
|
|
|
|
|
#endif /* LIGHTNING_COMMON_TRACE_H */
|