module BaselineRedRpm::Instruments::TyphoeusHydra
Public Instance Methods
run_with_trace()
click to toggle source
# File lib/baseline_red_rpm/instruments/typhoeus.rb, line 37 def run_with_trace span = ::BaselineRedRpm.tracer.start_span("typhoeus", tags: { "component" => "Typhoeus", "method" => "hydra", "http.queued_requests" => queued_requests.count, "http.max_concurrency" => max_concurrency }) BaselineRedRpm::Utils.log_source_and_backtrace(span, :typhoeus) run_without_trace rescue Exception => e if span span.set_tag('error', true) span.log_error(e) end raise ensure span.finish if span end