lib/aws-sdk-applicationautoscaling/client.rb in aws-sdk-applicationautoscaling-1.90.0 vs lib/aws-sdk-applicationautoscaling/client.rb in aws-sdk-applicationautoscaling-1.91.0

- old
+ new

@@ -30,10 +30,11 @@ require 'aws-sdk-core/plugins/http_checksum.rb' require 'aws-sdk-core/plugins/checksum_algorithm.rb' require 'aws-sdk-core/plugins/request_compression.rb' require 'aws-sdk-core/plugins/defaults_mode.rb' require 'aws-sdk-core/plugins/recursion_detection.rb' +require 'aws-sdk-core/plugins/telemetry.rb' require 'aws-sdk-core/plugins/sign.rb' require 'aws-sdk-core/plugins/protocols/json_rpc.rb' Aws::Plugins::GlobalConfiguration.add_identifier(:applicationautoscaling) @@ -81,10 +82,11 @@ add_plugin(Aws::Plugins::HttpChecksum) add_plugin(Aws::Plugins::ChecksumAlgorithm) add_plugin(Aws::Plugins::RequestCompression) add_plugin(Aws::Plugins::DefaultsMode) add_plugin(Aws::Plugins::RecursionDetection) + add_plugin(Aws::Plugins::Telemetry) add_plugin(Aws::Plugins::Sign) add_plugin(Aws::Plugins::Protocols::JsonRpc) add_plugin(Aws::ApplicationAutoScaling::Plugins::Endpoints) # @overload initialize(options) @@ -335,10 +337,20 @@ # {ClientStubs#stub_responses}. See {ClientStubs} for more information. # # ** Please note ** When response stubbing is enabled, no HTTP # requests are made, and retries are disabled. # + # @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider) + # Allows you to provide a telemetry provider, which is used to + # emit telemetry data. By default, uses `NoOpTelemetryProvider` which + # will not record or emit any telemetry data. The SDK supports the + # following telemetry providers: + # + # * OpenTelemetry (OTel) - To use the OTel provider, install and require the + # `opentelemetry-sdk` gem and then, pass in an instance of a + # `Aws::Telemetry::OTelProvider` for telemetry provider. + # # @option options [Aws::TokenProvider] :token_provider # A Bearer Token Provider. This can be an instance of any one of the # following classes: # # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing @@ -3479,17 +3491,22 @@ # @param params ({}) # @api private def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) + tracer = config.telemetry_provider.tracer_provider.tracer( + Aws::Telemetry.module_to_tracer_name('Aws::ApplicationAutoScaling') + ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, - config: config) + config: config, + tracer: tracer + ) context[:gem_name] = 'aws-sdk-applicationautoscaling' - context[:gem_version] = '1.90.0' + context[:gem_version] = '1.91.0' Seahorse::Client::Request.new(handlers, context) end # @api private # @deprecated