AWS SDK

AWS SDK

rev. ee5e070d7cd2ab07c3c351b7759e5b56cc264c68

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/config.rs

@@ -1278,1278 +1337,1338 @@
 1298   1298   
        runtime_components.push_interceptor(crate::sdk_feature_tracker::retry_mode::RetryModeFeatureTrackerInterceptor::new());
 1299   1299   
        runtime_components.push_interceptor(::aws_runtime::service_clock_skew::ServiceClockSkewInterceptor::new());
 1300   1300   
        runtime_components.push_interceptor(::aws_runtime::request_info::RequestInfoInterceptor::new());
 1301   1301   
        runtime_components.push_interceptor(::aws_runtime::user_agent::UserAgentInterceptor::new());
 1302   1302   
        runtime_components.push_interceptor(::aws_runtime::invocation_id::InvocationIdInterceptor::new());
 1303   1303   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1304   1304   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1305   1305   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1306   1306   
        ));
 1307   1307   
        runtime_components.push_interceptor(crate::config::endpoint::EndpointOverrideFeatureTrackerInterceptor);
        1308  +
        runtime_components.push_interceptor(crate::observability_feature::ObservabilityFeatureTrackerInterceptor);
 1308   1309   
        Self { config, runtime_components }
 1309   1310   
    }
 1310   1311   
}
 1311   1312   
 1312   1313   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1313   1314   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1314   1315   
        self.config.clone()
 1315   1316   
    }
 1316   1317   
 1317   1318   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/lib.rs

@@ -128,128 +169,171 @@
  148    148   
  149    149   
/// All operations that this crate can perform.
  150    150   
pub mod operation;
  151    151   
  152    152   
/// Primitives such as `Blob` or `DateTime` used by other types.
  153    153   
pub mod primitives;
  154    154   
  155    155   
/// Data structures used by operation inputs/outputs.
  156    156   
pub mod types;
  157    157   
         158  +
mod observability_feature;
         159  +
  158    160   
pub(crate) mod protocol_serde;
  159    161   
  160    162   
mod sdk_feature_tracker;
  161    163   
  162    164   
mod serialization_settings;
  163    165   
  164    166   
mod endpoint_lib;
  165    167   
  166    168   
mod json_errors;
  167    169   

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/observability_feature.rs

@@ -0,1 +0,38 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/*
           3  +
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
           4  +
 * SPDX-License-Identifier: Apache-2.0
           5  +
 */
           6  +
           7  +
use aws_smithy_runtime::client::sdk_feature::SmithySdkFeature;
           8  +
use aws_smithy_runtime_api::{
           9  +
    box_error::BoxError,
          10  +
    client::interceptors::{context::BeforeSerializationInterceptorContextRef, Intercept},
          11  +
};
          12  +
use aws_smithy_types::config_bag::ConfigBag;
          13  +
          14  +
// Interceptor that tracks Smithy SDK features for observability (tracing/metrics).
          15  +
#[derive(Debug, Default)]
          16  +
pub(crate) struct ObservabilityFeatureTrackerInterceptor;
          17  +
          18  +
impl Intercept for ObservabilityFeatureTrackerInterceptor {
          19  +
    fn name(&self) -> &'static str {
          20  +
        "ObservabilityFeatureTrackerInterceptor"
          21  +
    }
          22  +
          23  +
    fn read_before_execution(&self, _context: &BeforeSerializationInterceptorContextRef<'_>, cfg: &mut ConfigBag) -> Result<(), BoxError> {
          24  +
        // Check if an OpenTelemetry meter provider is configured via the global provider
          25  +
        if let Ok(telemetry_provider) = aws_smithy_observability::global::get_telemetry_provider() {
          26  +
            let meter_provider = telemetry_provider.meter_provider();
          27  +
          28  +
            // Use provider_name() to detect OpenTelemetry without importing the otel crate.
          29  +
            // This avoids adding aws-smithy-observability-otel as a dependency.
          30  +
            // Note: as_any() is available for type-based checking if stronger guarantees are needed.
          31  +
            if meter_provider.provider_name() == "otel" {
          32  +
                cfg.interceptor_state().store_append(SmithySdkFeature::ObservabilityOtelMetrics);
          33  +
            }
          34  +
        }
          35  +
          36  +
        Ok(())
          37  +
    }
          38  +
}

tmp-codegen-diff/aws-sdk/sdk/sts/Cargo.toml

@@ -1,1 +113,117 @@
   14     14   
protocol = "aws.protocols#awsQuery"
   15     15   
[package.metadata.docs.rs]
   16     16   
all-features = true
   17     17   
targets = ["x86_64-unknown-linux-gnu"]
   18     18   
[dependencies.aws-credential-types]
   19     19   
path = "../aws-credential-types"
   20     20   
version = "1.2.11"
   21     21   
   22     22   
[dependencies.aws-runtime]
   23     23   
path = "../aws-runtime"
   24         -
version = "1.5.17"
          24  +
version = "1.5.18"
   25     25   
   26     26   
[dependencies.aws-smithy-async]
   27     27   
path = "../aws-smithy-async"
   28     28   
version = "1.2.7"
   29     29   
   30     30   
[dependencies.aws-smithy-http]
   31     31   
path = "../aws-smithy-http"
   32     32   
version = "0.62.6"
   33     33   
   34     34   
[dependencies.aws-smithy-json]
   35     35   
path = "../aws-smithy-json"
   36     36   
version = "0.61.8"
   37     37   
          38  +
[dependencies.aws-smithy-observability]
          39  +
path = "../aws-smithy-observability"
          40  +
version = "1.0.0"
          41  +
   38     42   
[dependencies.aws-smithy-query]
   39     43   
path = "../aws-smithy-query"
   40     44   
version = "0.60.9"
   41     45   
   42     46   
[dependencies.aws-smithy-runtime]
   43     47   
path = "../aws-smithy-runtime"
   44     48   
features = ["client"]
   45     49   
version = "1.9.5"
   46     50   
   47     51   
[dependencies.aws-smithy-runtime-api]
   48     52   
path = "../aws-smithy-runtime-api"
   49     53   
features = ["client", "http-02x"]
   50     54   
version = "1.9.3"
   51     55   
   52     56   
[dependencies.aws-smithy-types]
   53     57   
path = "../aws-smithy-types"
   54     58   
version = "1.3.5"
   55     59   
   56     60   
[dependencies.aws-smithy-xml]
   57     61   
path = "../aws-smithy-xml"
   58     62   
version = "0.60.13"
   59     63   
   60     64   
[dependencies.aws-types]
   61     65   
path = "../aws-types"
   62     66   
version = "1.3.11"
   63     67   
   64     68   
[dependencies.fastrand]
   65     69   
version = "2.0.0"
   66     70   
   67     71   
[dependencies.http]
   68     72   
version = "0.2.9"
   69     73   
   70     74   
[dependencies.regex-lite]
   71     75   
version = "0.1.5"
   72     76   
   73     77   
[dependencies.tracing]
   74     78   
version = "0.1"
   75     79   
[dev-dependencies.aws-credential-types]
   76     80   
path = "../aws-credential-types"
   77     81   
features = ["test-util"]
   78     82   
version = "1.2.11"
   79     83   
   80     84   
[dev-dependencies.aws-runtime]
   81     85   
path = "../aws-runtime"
   82     86   
features = ["test-util"]
   83         -
version = "1.5.17"
          87  +
version = "1.5.18"
   84     88   
   85     89   
[dev-dependencies.aws-smithy-async]
   86     90   
path = "../aws-smithy-async"
   87     91   
features = ["test-util"]
   88     92   
version = "1.2.7"
   89     93   
   90     94   
[dev-dependencies.aws-smithy-http-client]
   91     95   
path = "../aws-smithy-http-client"
   92     96   
features = ["test-util", "wire-mock"]
   93     97   
version = "1.1.5"

tmp-codegen-diff/aws-sdk/sdk/sts/src/config.rs

@@ -1278,1278 +1337,1338 @@
 1298   1298   
        runtime_components.push_interceptor(crate::sdk_feature_tracker::retry_mode::RetryModeFeatureTrackerInterceptor::new());
 1299   1299   
        runtime_components.push_interceptor(::aws_runtime::service_clock_skew::ServiceClockSkewInterceptor::new());
 1300   1300   
        runtime_components.push_interceptor(::aws_runtime::request_info::RequestInfoInterceptor::new());
 1301   1301   
        runtime_components.push_interceptor(::aws_runtime::user_agent::UserAgentInterceptor::new());
 1302   1302   
        runtime_components.push_interceptor(::aws_runtime::invocation_id::InvocationIdInterceptor::new());
 1303   1303   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1304   1304   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1305   1305   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1306   1306   
        ));
 1307   1307   
        runtime_components.push_interceptor(crate::config::endpoint::EndpointOverrideFeatureTrackerInterceptor);
        1308  +
        runtime_components.push_interceptor(crate::observability_feature::ObservabilityFeatureTrackerInterceptor);
 1308   1309   
        Self { config, runtime_components }
 1309   1310   
    }
 1310   1311   
}
 1311   1312   
 1312   1313   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1313   1314   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1314   1315   
        self.config.clone()
 1315   1316   
    }
 1316   1317   
 1317   1318   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {

tmp-codegen-diff/aws-sdk/sdk/sts/src/lib.rs

@@ -114,114 +157,159 @@
  134    134   
  135    135   
/// All operations that this crate can perform.
  136    136   
pub mod operation;
  137    137   
  138    138   
/// Primitives such as `Blob` or `DateTime` used by other types.
  139    139   
pub mod primitives;
  140    140   
  141    141   
/// Data structures used by operation inputs/outputs.
  142    142   
pub mod types;
  143    143   
         144  +
mod observability_feature;
         145  +
  144    146   
pub(crate) mod protocol_serde;
  145    147   
  146    148   
mod sdk_feature_tracker;
  147    149   
  148    150   
mod serialization_settings;
  149    151   
  150    152   
mod endpoint_lib;
  151    153   
  152    154   
mod rest_xml_wrapped_errors;
  153    155   

tmp-codegen-diff/aws-sdk/sdk/sts/src/observability_feature.rs

@@ -0,1 +0,38 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/*
           3  +
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
           4  +
 * SPDX-License-Identifier: Apache-2.0
           5  +
 */
           6  +
           7  +
use aws_smithy_runtime::client::sdk_feature::SmithySdkFeature;
           8  +
use aws_smithy_runtime_api::{
           9  +
    box_error::BoxError,
          10  +
    client::interceptors::{context::BeforeSerializationInterceptorContextRef, Intercept},
          11  +
};
          12  +
use aws_smithy_types::config_bag::ConfigBag;
          13  +
          14  +
// Interceptor that tracks Smithy SDK features for observability (tracing/metrics).
          15  +
#[derive(Debug, Default)]
          16  +
pub(crate) struct ObservabilityFeatureTrackerInterceptor;
          17  +
          18  +
impl Intercept for ObservabilityFeatureTrackerInterceptor {
          19  +
    fn name(&self) -> &'static str {
          20  +
        "ObservabilityFeatureTrackerInterceptor"
          21  +
    }
          22  +
          23  +
    fn read_before_execution(&self, _context: &BeforeSerializationInterceptorContextRef<'_>, cfg: &mut ConfigBag) -> Result<(), BoxError> {
          24  +
        // Check if an OpenTelemetry meter provider is configured via the global provider
          25  +
        if let Ok(telemetry_provider) = aws_smithy_observability::global::get_telemetry_provider() {
          26  +
            let meter_provider = telemetry_provider.meter_provider();
          27  +
          28  +
            // Use provider_name() to detect OpenTelemetry without importing the otel crate.
          29  +
            // This avoids adding aws-smithy-observability-otel as a dependency.
          30  +
            // Note: as_any() is available for type-based checking if stronger guarantees are needed.
          31  +
            if meter_provider.provider_name() == "otel" {
          32  +
                cfg.interceptor_state().store_append(SmithySdkFeature::ObservabilityOtelMetrics);
          33  +
            }
          34  +
        }
          35  +
          36  +
        Ok(())
          37  +
    }
          38  +
}

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/Cargo.toml

@@ -1,1 +116,120 @@
   14     14   
protocol = "aws.protocols#awsJson1_0"
   15     15   
[package.metadata.docs.rs]
   16     16   
all-features = true
   17     17   
targets = ["x86_64-unknown-linux-gnu"]
   18     18   
[dependencies.aws-credential-types]
   19     19   
path = "../aws-credential-types"
   20     20   
version = "1.2.11"
   21     21   
   22     22   
[dependencies.aws-runtime]
   23     23   
path = "../aws-runtime"
   24         -
version = "1.5.17"
          24  +
version = "1.5.18"
   25     25   
   26     26   
[dependencies.aws-smithy-async]
   27     27   
path = "../aws-smithy-async"
   28     28   
version = "1.2.7"
   29     29   
   30     30   
[dependencies.aws-smithy-http]
   31     31   
path = "../aws-smithy-http"
   32     32   
version = "0.62.6"
   33     33   
   34     34   
[dependencies.aws-smithy-json]
   35     35   
path = "../aws-smithy-json"
   36     36   
version = "0.61.8"
   37     37   
          38  +
[dependencies.aws-smithy-observability]
          39  +
path = "../aws-smithy-observability"
          40  +
version = "1.0.0"
          41  +
   38     42   
[dependencies.aws-smithy-runtime]
   39     43   
path = "../aws-smithy-runtime"
   40     44   
features = ["client"]
   41     45   
version = "1.9.5"
   42     46   
   43     47   
[dependencies.aws-smithy-runtime-api]
   44     48   
path = "../aws-smithy-runtime-api"
   45     49   
features = ["client", "http-02x"]
   46     50   
version = "1.9.3"
   47     51   
   48     52   
[dependencies.aws-smithy-types]
   49     53   
path = "../aws-smithy-types"
   50     54   
version = "1.3.5"
   51     55   
   52     56   
[dependencies.aws-types]
   53     57   
path = "../aws-types"
   54     58   
version = "1.3.11"
   55     59   
   56     60   
[dependencies.bytes]
   57     61   
version = "1.4.0"
   58     62   
   59     63   
[dependencies.fastrand]
   60     64   
version = "2.0.0"
   61     65   
   62     66   
[dependencies.http]
   63     67   
version = "0.2.9"
   64     68   
   65     69   
[dependencies.regex-lite]
   66     70   
version = "0.1.5"
   67     71   
   68     72   
[dependencies.tokio]
   69     73   
version = "1.23.1"
   70     74   
features = ["sync"]
   71     75   
   72     76   
[dependencies.tracing]
   73     77   
version = "0.1"
   74     78   
[dev-dependencies.aws-config]
   75     79   
path = "../aws-config"
   76     80   
version = "1.8.12"
   77     81   
   78     82   
[dev-dependencies.aws-credential-types]
   79     83   
path = "../aws-credential-types"
   80     84   
features = ["test-util"]
   81     85   
version = "1.2.11"
   82     86   
   83     87   
[dev-dependencies.aws-runtime]
   84     88   
path = "../aws-runtime"
   85     89   
features = ["test-util"]
   86         -
version = "1.5.17"
          90  +
version = "1.5.18"
   87     91   
   88     92   
[dev-dependencies.aws-smithy-async]
   89     93   
path = "../aws-smithy-async"
   90     94   
features = ["test-util"]
   91     95   
version = "1.2.7"
   92     96   
   93     97   
[dev-dependencies.aws-smithy-http-client]
   94     98   
path = "../aws-smithy-http-client"
   95     99   
features = ["test-util", "wire-mock"]
   96    100   
version = "1.1.5"

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/config.rs

@@ -1296,1296 +1355,1356 @@
 1316   1316   
        runtime_components.push_interceptor(crate::sdk_feature_tracker::retry_mode::RetryModeFeatureTrackerInterceptor::new());
 1317   1317   
        runtime_components.push_interceptor(::aws_runtime::service_clock_skew::ServiceClockSkewInterceptor::new());
 1318   1318   
        runtime_components.push_interceptor(::aws_runtime::request_info::RequestInfoInterceptor::new());
 1319   1319   
        runtime_components.push_interceptor(::aws_runtime::user_agent::UserAgentInterceptor::new());
 1320   1320   
        runtime_components.push_interceptor(::aws_runtime::invocation_id::InvocationIdInterceptor::new());
 1321   1321   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1322   1322   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1323   1323   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1324   1324   
        ));
 1325   1325   
        runtime_components.push_interceptor(crate::config::endpoint::EndpointOverrideFeatureTrackerInterceptor);
        1326  +
        runtime_components.push_interceptor(crate::observability_feature::ObservabilityFeatureTrackerInterceptor);
 1326   1327   
        Self { config, runtime_components }
 1327   1328   
    }
 1328   1329   
}
 1329   1330   
 1330   1331   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1331   1332   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1332   1333   
        self.config.clone()
 1333   1334   
    }
 1334   1335   
 1335   1336   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/lib.rs

@@ -166,166 +211,213 @@
  186    186   
  187    187   
/// Data structures used by operation inputs/outputs.
  188    188   
pub mod types;
  189    189   
  190    190   
pub(crate) mod client_idempotency_token;
  191    191   
  192    192   
pub mod endpoint_discovery;
  193    193   
  194    194   
mod idempotency_token;
  195    195   
         196  +
mod observability_feature;
         197  +
  196    198   
pub(crate) mod protocol_serde;
  197    199   
  198    200   
mod sdk_feature_tracker;
  199    201   
  200    202   
mod serialization_settings;
  201    203   
  202    204   
mod endpoint_lib;
  203    205   
  204    206   
mod lens;
  205    207   

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/observability_feature.rs

@@ -0,1 +0,38 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/*
           3  +
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
           4  +
 * SPDX-License-Identifier: Apache-2.0
           5  +
 */
           6  +
           7  +
use aws_smithy_runtime::client::sdk_feature::SmithySdkFeature;
           8  +
use aws_smithy_runtime_api::{
           9  +
    box_error::BoxError,
          10  +
    client::interceptors::{context::BeforeSerializationInterceptorContextRef, Intercept},
          11  +
};
          12  +
use aws_smithy_types::config_bag::ConfigBag;
          13  +
          14  +
// Interceptor that tracks Smithy SDK features for observability (tracing/metrics).
          15  +
#[derive(Debug, Default)]
          16  +
pub(crate) struct ObservabilityFeatureTrackerInterceptor;
          17  +
          18  +
impl Intercept for ObservabilityFeatureTrackerInterceptor {
          19  +
    fn name(&self) -> &'static str {
          20  +
        "ObservabilityFeatureTrackerInterceptor"
          21  +
    }
          22  +
          23  +
    fn read_before_execution(&self, _context: &BeforeSerializationInterceptorContextRef<'_>, cfg: &mut ConfigBag) -> Result<(), BoxError> {
          24  +
        // Check if an OpenTelemetry meter provider is configured via the global provider
          25  +
        if let Ok(telemetry_provider) = aws_smithy_observability::global::get_telemetry_provider() {
          26  +
            let meter_provider = telemetry_provider.meter_provider();
          27  +
          28  +
            // Use provider_name() to detect OpenTelemetry without importing the otel crate.
          29  +
            // This avoids adding aws-smithy-observability-otel as a dependency.
          30  +
            // Note: as_any() is available for type-based checking if stronger guarantees are needed.
          31  +
            if meter_provider.provider_name() == "otel" {
          32  +
                cfg.interceptor_state().store_append(SmithySdkFeature::ObservabilityOtelMetrics);
          33  +
            }
          34  +
        }
          35  +
          36  +
        Ok(())
          37  +
    }
          38  +
}

tmp-codegen-diff/aws-sdk/sdk/timestreamwrite/Cargo.toml

@@ -1,1 +67,71 @@
   14     14   
protocol = "aws.protocols#awsJson1_0"
   15     15   
[package.metadata.docs.rs]
   16     16   
all-features = true
   17     17   
targets = ["x86_64-unknown-linux-gnu"]
   18     18   
[dependencies.aws-credential-types]
   19     19   
path = "../aws-credential-types"
   20     20   
version = "1.2.11"
   21     21   
   22     22   
[dependencies.aws-runtime]
   23     23   
path = "../aws-runtime"
   24         -
version = "1.5.17"
          24  +
version = "1.5.18"
   25     25   
   26     26   
[dependencies.aws-smithy-async]
   27     27   
path = "../aws-smithy-async"
   28     28   
version = "1.2.7"
   29     29   
   30     30   
[dependencies.aws-smithy-http]
   31     31   
path = "../aws-smithy-http"
   32     32   
version = "0.62.6"
   33     33   
   34     34   
[dependencies.aws-smithy-json]
   35     35   
path = "../aws-smithy-json"
   36     36   
version = "0.61.8"
   37     37   
          38  +
[dependencies.aws-smithy-observability]
          39  +
path = "../aws-smithy-observability"
          40  +
version = "1.0.0"
          41  +
   38     42   
[dependencies.aws-smithy-runtime]
   39     43   
path = "../aws-smithy-runtime"
   40     44   
features = ["client"]
   41     45   
version = "1.9.5"
   42     46   
   43     47   
[dependencies.aws-smithy-runtime-api]
   44     48   
path = "../aws-smithy-runtime-api"
   45     49   
features = ["client", "http-02x"]
   46     50   
version = "1.9.3"
   47     51   

tmp-codegen-diff/aws-sdk/sdk/timestreamwrite/src/config.rs

@@ -1296,1296 +1355,1356 @@
 1316   1316   
        runtime_components.push_interceptor(crate::sdk_feature_tracker::retry_mode::RetryModeFeatureTrackerInterceptor::new());
 1317   1317   
        runtime_components.push_interceptor(::aws_runtime::service_clock_skew::ServiceClockSkewInterceptor::new());
 1318   1318   
        runtime_components.push_interceptor(::aws_runtime::request_info::RequestInfoInterceptor::new());
 1319   1319   
        runtime_components.push_interceptor(::aws_runtime::user_agent::UserAgentInterceptor::new());
 1320   1320   
        runtime_components.push_interceptor(::aws_runtime::invocation_id::InvocationIdInterceptor::new());
 1321   1321   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1322   1322   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1323   1323   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1324   1324   
        ));
 1325   1325   
        runtime_components.push_interceptor(crate::config::endpoint::EndpointOverrideFeatureTrackerInterceptor);
        1326  +
        runtime_components.push_interceptor(crate::observability_feature::ObservabilityFeatureTrackerInterceptor);
 1326   1327   
        Self { config, runtime_components }
 1327   1328   
    }
 1328   1329   
}
 1329   1330   
 1330   1331   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1331   1332   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1332   1333   
        self.config.clone()
 1333   1334   
    }
 1334   1335   
 1335   1336   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {

tmp-codegen-diff/aws-sdk/sdk/timestreamwrite/src/lib.rs

@@ -170,170 +215,217 @@
  190    190   
  191    191   
/// Data structures used by operation inputs/outputs.
  192    192   
pub mod types;
  193    193   
  194    194   
pub(crate) mod client_idempotency_token;
  195    195   
  196    196   
pub mod endpoint_discovery;
  197    197   
  198    198   
mod idempotency_token;
  199    199   
         200  +
mod observability_feature;
         201  +
  200    202   
pub(crate) mod protocol_serde;
  201    203   
  202    204   
mod sdk_feature_tracker;
  203    205   
  204    206   
mod serialization_settings;
  205    207   
  206    208   
mod endpoint_lib;
  207    209   
  208    210   
mod lens;
  209    211   

tmp-codegen-diff/aws-sdk/sdk/timestreamwrite/src/observability_feature.rs

@@ -0,1 +0,38 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/*
           3  +
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
           4  +
 * SPDX-License-Identifier: Apache-2.0
           5  +
 */
           6  +
           7  +
use aws_smithy_runtime::client::sdk_feature::SmithySdkFeature;
           8  +
use aws_smithy_runtime_api::{
           9  +
    box_error::BoxError,
          10  +
    client::interceptors::{context::BeforeSerializationInterceptorContextRef, Intercept},
          11  +
};
          12  +
use aws_smithy_types::config_bag::ConfigBag;
          13  +
          14  +
// Interceptor that tracks Smithy SDK features for observability (tracing/metrics).
          15  +
#[derive(Debug, Default)]
          16  +
pub(crate) struct ObservabilityFeatureTrackerInterceptor;
          17  +
          18  +
impl Intercept for ObservabilityFeatureTrackerInterceptor {
          19  +
    fn name(&self) -> &'static str {
          20  +
        "ObservabilityFeatureTrackerInterceptor"
          21  +
    }
          22  +
          23  +
    fn read_before_execution(&self, _context: &BeforeSerializationInterceptorContextRef<'_>, cfg: &mut ConfigBag) -> Result<(), BoxError> {
          24  +
        // Check if an OpenTelemetry meter provider is configured via the global provider
          25  +
        if let Ok(telemetry_provider) = aws_smithy_observability::global::get_telemetry_provider() {
          26  +
            let meter_provider = telemetry_provider.meter_provider();
          27  +
          28  +
            // Use provider_name() to detect OpenTelemetry without importing the otel crate.
          29  +
            // This avoids adding aws-smithy-observability-otel as a dependency.
          30  +
            // Note: as_any() is available for type-based checking if stronger guarantees are needed.
          31  +
            if meter_provider.provider_name() == "otel" {
          32  +
                cfg.interceptor_state().store_append(SmithySdkFeature::ObservabilityOtelMetrics);
          33  +
            }
          34  +
        }
          35  +
          36  +
        Ok(())
          37  +
    }
          38  +
}

tmp-codegen-diff/aws-sdk/sdk/transcribestreaming/Cargo.toml

@@ -1,1 +130,134 @@
   15     15   
[package.metadata.docs.rs]
   16     16   
all-features = true
   17     17   
targets = ["x86_64-unknown-linux-gnu"]
   18     18   
[dependencies.aws-credential-types]
   19     19   
path = "../aws-credential-types"
   20     20   
version = "1.2.11"
   21     21   
   22     22   
[dependencies.aws-runtime]
   23     23   
path = "../aws-runtime"
   24     24   
features = ["event-stream"]
   25         -
version = "1.5.17"
          25  +
version = "1.5.18"
   26     26   
   27     27   
[dependencies.aws-sigv4]
   28     28   
path = "../aws-sigv4"
   29     29   
version = "1.3.7"
   30     30   
   31     31   
[dependencies.aws-smithy-async]
   32     32   
path = "../aws-smithy-async"
   33     33   
version = "1.2.7"
   34     34   
   35     35   
[dependencies.aws-smithy-eventstream]
   36     36   
path = "../aws-smithy-eventstream"
   37     37   
version = "0.60.14"
   38     38   
   39     39   
[dependencies.aws-smithy-http]
   40     40   
path = "../aws-smithy-http"
   41     41   
features = ["event-stream"]
   42     42   
version = "0.62.6"
   43     43   
   44     44   
[dependencies.aws-smithy-json]
   45     45   
path = "../aws-smithy-json"
   46     46   
version = "0.61.8"
   47     47   
          48  +
[dependencies.aws-smithy-observability]
          49  +
path = "../aws-smithy-observability"
          50  +
version = "1.0.0"
          51  +
   48     52   
[dependencies.aws-smithy-runtime]
   49     53   
path = "../aws-smithy-runtime"
   50     54   
features = ["client"]
   51     55   
version = "1.9.5"
   52     56   
   53     57   
[dependencies.aws-smithy-runtime-api]
   54     58   
path = "../aws-smithy-runtime-api"
   55     59   
features = ["client", "http-02x"]
   56     60   
version = "1.9.3"
   57     61   
   58     62   
[dependencies.aws-smithy-types]
   59     63   
path = "../aws-smithy-types"
   60     64   
features = ["http-body-0-4-x"]
   61     65   
version = "1.3.5"
   62     66   
   63     67   
[dependencies.aws-types]
   64     68   
path = "../aws-types"
   65     69   
version = "1.3.11"
   66     70   
   67     71   
[dependencies.bytes]
   68     72   
version = "1.4.0"
   69     73   
   70     74   
[dependencies.fastrand]
   71     75   
version = "2.0.0"
   72     76   
   73     77   
[dependencies.http]
   74     78   
version = "0.2.9"
   75     79   
   76     80   
[dependencies.hyper]
   77     81   
version = "0.14.26"
   78     82   
features = ["stream"]
   79     83   
   80     84   
[dependencies.regex-lite]
   81     85   
version = "0.1.5"
   82     86   
   83     87   
[dependencies.tracing]
   84     88   
version = "0.1"
   85     89   
[dev-dependencies.async-stream]
   86     90   
version = "0.3.0"
   87     91   
   88     92   
[dev-dependencies.aws-config]
   89     93   
path = "../aws-config"
   90     94   
version = "1.8.12"
   91     95   
   92     96   
[dev-dependencies.aws-credential-types]
   93     97   
path = "../aws-credential-types"
   94     98   
features = ["test-util"]
   95     99   
version = "1.2.11"
   96    100   
   97    101   
[dev-dependencies.aws-runtime]
   98    102   
path = "../aws-runtime"
   99    103   
features = ["test-util"]
  100         -
version = "1.5.17"
         104  +
version = "1.5.18"
  101    105   
  102    106   
[dev-dependencies.aws-smithy-async]
  103    107   
path = "../aws-smithy-async"
  104    108   
features = ["test-util"]
  105    109   
version = "1.2.7"
  106    110   
  107    111   
[dev-dependencies.aws-smithy-eventstream]
  108    112   
path = "../aws-smithy-eventstream"
  109    113   
features = ["test-util"]
  110    114   
version = "0.60.14"