Skip to content

Commit

Permalink
Use delete instead of except
Browse files Browse the repository at this point in the history
  • Loading branch information
roelbondoc committed Nov 5, 2024
1 parent 5c739a5 commit 7a6c8f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/honeybadger/plugins/net_http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def request(request_data, body = nil, &block)
end

if @@hb_config.load_plugin_insights_metrics?(:net_http)
Honeybadger.gauge('duration.request', context.except(:url).merge(metric_source: 'net_http'))
context.delete(:url)
Honeybadger.gauge('duration.request', context.merge(metric_source: 'net_http'))
end
end[1] # return the response data only
end
Expand Down

0 comments on commit 7a6c8f7

Please sign in to comment.