From c1f06ac28fef5498952994e0399312b1fc567f22 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 10 May 2019 20:08:01 +0200 Subject: Implement asynchronous scope identifiers. Without entering an asynchronous scope, logs are the same before. When entering an asynchronous scope (either thread-based of scheduler/task-based), all log lines within an asynchronous scope contain its ID. Currently this is only used in GNU Taler, for debugging requests across multiple services. This allows us to get all log lines pertaining to a particular request for a user or another service. --- src/include/gnunet_curl_lib.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/include/gnunet_curl_lib.h') diff --git a/src/include/gnunet_curl_lib.h b/src/include/gnunet_curl_lib.h index 86cb54f6b..84c8d59f8 100644 --- a/src/include/gnunet_curl_lib.h +++ b/src/include/gnunet_curl_lib.h @@ -294,6 +294,16 @@ void GNUNET_CURL_gnunet_scheduler_reschedule (void *cls); +/** + * Enable sending the async scope ID as a header. + * + * @param ctx the context to enable this for + * @param header_name name of the header to send. + */ +void +GNUNET_CURL_enable_async_scope_header (struct GNUNET_CURL_Context *ctx, const char *header_name); + + #endif /** @} */ /* end of group */ -- cgit v1.2.3