class Aws::Plugins::ClientMetricsSendPlugin
Public Instance Methods
add_handlers(handlers, config)
click to toggle source
# 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