module HTTPX::Plugins::InternalTelemetry::ConnectionMethods

  1. lib/httpx/plugins/internal_telemetry.rb

Methods

Public Class

  1. included

Public Instance

  1. handle_transition

Public Class methods

included(klass)
[show source]
   # File lib/httpx/plugins/internal_telemetry.rb
95 def self.included(klass)
96   klass.prepend TrackTimeMethods
97   super
98 end

Public Instance methods

handle_transition(nextstate)
[show source]
    # File lib/httpx/plugins/internal_telemetry.rb
100 def handle_transition(nextstate)
101   state = @state
102   super
103   meter_elapsed_time("Connection##{object_id}[#{@origin}]: #{state} -> #{nextstate}") if nextstate == @state
104 end