lib/aws-sdk-cloudsearchdomain/client.rb in aws-sdk-cloudsearchdomain-1.47.0 vs lib/aws-sdk-cloudsearchdomain/client.rb in aws-sdk-cloudsearchdomain-1.48.0
- old
+ new
@@ -27,10 +27,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/signature_v4.rb'
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
require 'aws-sdk-cloudsearchdomain/plugins/conditional_signing.rb'
require 'aws-sdk-cloudsearchdomain/plugins/switch_to_post.rb'
@@ -77,10 +78,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::SignatureV4)
add_plugin(Aws::Plugins::Protocols::RestJson)
add_plugin(Aws::CloudSearchDomain::Plugins::ConditionalSigning)
add_plugin(Aws::CloudSearchDomain::Plugins::SwitchToPost)
@@ -270,10 +272,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
@@ -956,17 +968,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::CloudSearchDomain')
+ )
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-cloudsearchdomain'
- context[:gem_version] = '1.47.0'
+ context[:gem_version] = '1.48.0'
Seahorse::Client::Request.new(handlers, context)
end
# @api private
# @deprecated