Class: Aws::Plugins::Telemetry Private

Inherits:
Seahorse::Client::Plugin show all
Defined in:
lib/aws-sdk-core/plugins/telemetry.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: Handler

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Plugin

#add_handlers, #add_options, 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

#after_initialize(client) ⇒ 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.



25
26
27
# File 'lib/aws-sdk-core/plugins/telemetry.rb', line 25

def after_initialize(client)
  validate_telemetry_provider(client.config)
end

#validate_telemetry_provider(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.



29
30
31
32
33
34
35
# File 'lib/aws-sdk-core/plugins/telemetry.rb', line 29

def validate_telemetry_provider(config)
  unless config.telemetry_provider.is_a?(Aws::Telemetry::TelemetryProviderBase)
    raise ArgumentError,
          'Must provide a telemetry provider for the '\
          '`telemetry_provider` configuration option.'
  end
end