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
108 def self.included(klass)
109   klass.prepend Loggable
110   klass.prepend TrackTimeMethods
111   super
112 end

Public Instance methods

transition(nextstate)
[show source]
    # File lib/httpx/plugins/internal_telemetry.rb
114 def transition(nextstate)
115   prev_state = @state
116   super
117   meter_elapsed_time("Request##{object_id}[#{@verb} #{@uri}: #{prev_state}] -> #{@state}") if prev_state != @state
118 end