From c783e1c3eeb58d8a406c37b721d5bc67e304e199 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Wed, 25 Sep 2024 13:24:47 +1200 Subject: [PATCH] Remove extra details from trace - not particularly useful. --- lib/falcon/middleware/proxy.rb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/falcon/middleware/proxy.rb b/lib/falcon/middleware/proxy.rb index 438dc91..45e4af3 100644 --- a/lib/falcon/middleware/proxy.rb +++ b/lib/falcon/middleware/proxy.rb @@ -151,18 +151,9 @@ def call(request) Traces::Provider(self) do def call(request) attributes = { - authority: request.authority, + "authority" => request.authority, } - if host = lookup(request) - attributes[:endpoint] = host.endpoint.inspect - - if client = @clients[host.endpoint] - attributes[:client] = client.as_json - attributes[:pool] = client.pool.as_json - end - end - Traces.trace('falcon.middleware.proxy.call', attributes: attributes) do super end