From b700789f5feacd62df86cdd0ea162b58ad2271ae Mon Sep 17 00:00:00 2001 From: nutsoriginal Date: Wed, 12 Jul 2023 14:11:46 +0400 Subject: [PATCH] Add query tag --- lib/yabeda/http_requests.rb | 2 +- lib/yabeda/http_requests/sniffer.rb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/yabeda/http_requests.rb b/lib/yabeda/http_requests.rb index c090caa..2d4c4ac 100644 --- a/lib/yabeda/http_requests.rb +++ b/lib/yabeda/http_requests.rb @@ -21,7 +21,7 @@ module HttpRequests counter :request_total, comment: 'A counter of the total number of external HTTP \ requests.', - tags: %i[host port method] + tags: %i[host port method query] counter :response_total, comment: 'A counter of the total number of external HTTP \ responses.', diff --git a/lib/yabeda/http_requests/sniffer.rb b/lib/yabeda/http_requests/sniffer.rb index 7c5e6db..f5df62e 100644 --- a/lib/yabeda/http_requests/sniffer.rb +++ b/lib/yabeda/http_requests/sniffer.rb @@ -10,7 +10,8 @@ def request(data_item) { host: data_item.request.host, port: data_item.request.port, - method: data_item.request.method + method: data_item.request.method, + query: data_item.request.query } ) end