Method: NewRelic::Agent::Tracer.start_external_request_segment
- Defined in:
- lib/new_relic/agent/tracer.rb
.start_external_request_segment(library:, uri:, procedure:, start_time: nil, parent: nil) ⇒ ExternalRequestSegment
Creates and starts an external request segment using the given library, URI, and procedure. This is used to time external calls made over HTTP.
335 336 337 338 339 340 341 342 343 344 345 346 347 |
# File 'lib/new_relic/agent/tracer.rb', line 335 def start_external_request_segment(library:, uri:, procedure:, start_time: nil, parent: nil) segment = Transaction::ExternalRequestSegment.new(library, uri, procedure, start_time) start_and_add_segment(segment, parent) rescue ArgumentError raise rescue => exception log_error('start_external_request_segment', exception) end |