diff --git a/lib/io_to_response_payload_ratio/patches/net_http_adapter_patch.rb b/lib/io_to_response_payload_ratio/patches/net_http_adapter_patch.rb index 0b77880..6911340 100644 --- a/lib/io_to_response_payload_ratio/patches/net_http_adapter_patch.rb +++ b/lib/io_to_response_payload_ratio/patches/net_http_adapter_patch.rb @@ -2,7 +2,7 @@ module IoToResponsePayloadRatio module NetHttpAdapterPatch - def request(*args, **kwargs, &block) + def request(*args, &block) super do |response| if response.body && IoToResponsePayloadRatio.aggregator.active? IoToResponsePayloadRatio.aggregator.increment(NetHttpAdapter.kind, response.body.bytesize)