Module: HTTPX::Plugins::InternalTelemetry::RequestMethods
- Defined in:
- lib/httpx/plugins/internal_telemetry.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
90 91 92 93 |
# File 'lib/httpx/plugins/internal_telemetry.rb', line 90 def self.included(klass) klass.prepend TrackTimeMethods super end |
Instance Method Details
#transition(nextstate) ⇒ Object
95 96 97 98 99 |
# File 'lib/httpx/plugins/internal_telemetry.rb', line 95 def transition(nextstate) prev_state = @state super meter_elapsed_time("Request##{object_id}[#{@verb} #{@uri}: #{prev_state}] -> #{@state}") if prev_state != @state end |