Module: RSpec::Buildkite::Analytics::Network::HTTPPatch

Defined in:
lib/rspec/buildkite/analytics/network.rb

Instance Method Summary collapse

Instance Method Details

#perform(request, options) ⇒ Object



34
35
36
37
38
39
40
41
42
43
# File 'lib/rspec/buildkite/analytics/network.rb', line 34

def perform(request, options)
  detail = { method: request.verb.to_s.upcase, url: request.uri.to_s, lib: "http" }

  http_tracer = RSpec::Buildkite::Analytics::Uploader.tracer
  http_tracer&.enter("http", **detail)

  super
ensure
  http_tracer&.leave
end