Class: Aws::Plugins::ClientMetricsSendPlugin Private

Inherits:
Seahorse::Client::Plugin show all
Defined in:
lib/aws-sdk-core/plugins/client_metrics_send_plugin.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Defined Under Namespace

Classes: AttemptHandler, ErrorHandler, LatencyHandler

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Plugin

#add_options, #after_initialize, after_initialize, after_initialize_hooks, before_initialize, #before_initialize, before_initialize_hooks, handlers, literal, option, options

Methods included from Seahorse::Client::HandlerBuilder

#handle, #handle_request, #handle_response, #handler_for, #new_handler

Instance Method Details

#add_handlers(handlers, config) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/aws-sdk-core/plugins/client_metrics_send_plugin.rb', line 9

def add_handlers(handlers, config)
  if config.client_side_monitoring && config.client_side_monitoring_port
    # AttemptHandler comes just before we would retry an error.
    # Or before we would follow redirects.
    handlers.add(AttemptHandler, step: :sign, priority: 39)
    # ErrorHandler comes after we have parsed an error.
    handlers.add(ErrorHandler, step: :sign, priority: 95)
    # LatencyHandler is as close to sending as possible.
    handlers.add(LatencyHandler, step: :sign, priority: 0)
  end
end