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
122 def self.included(klass)
123   klass.prepend TrackTimeMethods
124   super
125 end

Public Instance methods

handle_transition(nextstate)
[show source]
    # File lib/httpx/plugins/internal_telemetry.rb
127 def handle_transition(nextstate)
128   state = @state
129   super
130   meter_elapsed_time("Connection##{object_id}[#{@origin}]: #{state} -> #{nextstate}") if nextstate == @state
131 end