lib/aws-sdk-iotdataplane/client.rb in aws-sdk-iotdataplane-1.61.0 vs lib/aws-sdk-iotdataplane/client.rb in aws-sdk-iotdataplane-1.62.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/rest_json.rb'
Aws::Plugins::GlobalConfiguration.add_identifier(:iotdataplane)
@@ -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::RestJson)
add_plugin(Aws::IoTDataPlane::Plugins::Endpoints)
# @overload initialize(options)
@@ -328,10 +330,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
@@ -818,17 +830,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::IoTDataPlane')
+ )
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-iotdataplane'
- context[:gem_version] = '1.61.0'
+ context[:gem_version] = '1.62.0'
Seahorse::Client::Request.new(handlers, context)
end
# @api private
# @deprecated