From e8f344cf974e1f6447dd4e4d0c7bf7d7e927f8e2 Mon Sep 17 00:00:00 2001 From: Mohit Agarwal Date: Fri, 17 Apr 2020 08:38:53 +0530 Subject: [PATCH] Add spec for a Tracing abi Added proxy_set_active_span_tag to the abi. Using this ABI, we should be able to add tag key and value to an active span in case tracing is enabled for a request. --- abi-versions/vNEXT/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/abi-versions/vNEXT/README.md b/abi-versions/vNEXT/README.md index 38af8e6..e2cd2ca 100644 --- a/abi-versions/vNEXT/README.md +++ b/abi-versions/vNEXT/README.md @@ -917,3 +917,19 @@ Remove the metric (`metric_id`). - `i32 (proxy_result_t) call_result` Call registered foreign function (`function_name_data`, `function_name_size`). + + +## Request tracing: + +### `proxy_set_active_span_tag` + +* params: + - `i32 (const char*) tag_key` + - `i32 (size_t) tag_key_size` + - `i32 (const char*) tag_value` + - `i32 (size_t) tag_value_size` +* returns: + - `i32 (proxy_result_t) call_result` + +Sets a tag key (`tag_path_data`, `tag_path_size`) and +value (`tag_value_data`, `tag_value_size`) in the active span of the request being processed. \ No newline at end of file