module HTTPX::Plugins::InternalTelemetry::RequestMethods

  1. lib/httpx/plugins/internal_telemetry.rb

Methods

Public Class

  1. included

Public Instance

  1. transition

Public Class methods

included(klass)
[show source]
   # File lib/httpx/plugins/internal_telemetry.rb
82 def self.included(klass)
83   klass.prepend TrackTimeMethods
84   super
85 end

Public Instance methods

transition(nextstate)
[show source]
   # File lib/httpx/plugins/internal_telemetry.rb
87 def transition(nextstate)
88   prev_state = @state
89   super
90   meter_elapsed_time("Request##{object_id}[#{@verb} #{@uri}: #{prev_state}] -> #{@state}") if prev_state != @state
91 end