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
90 def self.included(klass)
91   klass.prepend TrackTimeMethods
92   super
93 end

Public Instance methods

transition(nextstate)
[show source]
   # File lib/httpx/plugins/internal_telemetry.rb
95 def transition(nextstate)
96   prev_state = @state
97   super
98   meter_elapsed_time("Request##{object_id}[#{@verb} #{@uri}: #{prev_state}] -> #{@state}") if prev_state != @state
99 end