module HTTPX::Plugins::InternalTelemetry::InstanceMethods

  1. lib/httpx/plugins/internal_telemetry.rb

Methods

Public Class

  1. included
  2. new

Public Instance

  1. close

Public Class methods

included(klass)
[show source]
   # File lib/httpx/plugins/internal_telemetry.rb
45 def self.included(klass)
46   klass.prepend TrackTimeMethods
47   super
48 end
new(*)
[show source]
   # File lib/httpx/plugins/internal_telemetry.rb
50 def initialize(*)
51   meter_elapsed_time("Session: initializing...")
52   super
53   meter_elapsed_time("Session: initialized!!!")
54   resolver_type = @options.resolver_class
55   resolver_type = Resolver.resolver_for(resolver_type)
56   return unless resolver_type <= Resolver::Native
57 
58   resolver_type.prepend TrackTimeMethods
59   resolver_type.prepend NativeResolverMethods
60   @options = @options.merge(resolver_class: resolver_type)
61 end

Public Instance methods

close(*)
[show source]
   # File lib/httpx/plugins/internal_telemetry.rb
63 def close(*)
64   super
65   meter_elapsed_time("Session -> close")
66 end