Module: HTTPX::Plugins::InternalTelemetry::InstanceMethods
- Defined in:
- lib/httpx/plugins/internal_telemetry.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
45 46 47 48 |
# File 'lib/httpx/plugins/internal_telemetry.rb', line 45 def self.included(klass) klass.prepend TrackTimeMethods super end |
Instance Method Details
#close ⇒ Object
63 64 65 66 |
# File 'lib/httpx/plugins/internal_telemetry.rb', line 63 def close(*) super meter_elapsed_time("Session -> close") end |
#initialize ⇒ Object
50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/httpx/plugins/internal_telemetry.rb', line 50 def initialize(*) meter_elapsed_time("Session: initializing...") super meter_elapsed_time("Session: initialized!!!") resolver_type = @options.resolver_class resolver_type = Resolver.resolver_for(resolver_type) return unless resolver_type <= Resolver::Native resolver_type.prepend TrackTimeMethods resolver_type.prepend NativeResolverMethods @options = @options.merge(resolver_class: resolver_type) end |