AWS SDK

AWS SDK

rev. 02e7b8399b284d0da0663fba1446cf7c52e6b096 (ignoring whitespace)

Files changed:

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

@@ -0,1 +0,40 @@
           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 downcast to check if it's specifically the OTel implementation
          29  +
            // This is more reliable than string matching on type names
          30  +
            if let Some(_otel_provider) = meter_provider
          31  +
                .as_any()
          32  +
                .downcast_ref::<aws_smithy_observability_otel::meter::OtelMeterProvider>()
          33  +
            {
          34  +
                cfg.interceptor_state().store_append(SmithySdkFeature::ObservabilityOtelMetrics);
          35  +
            }
          36  +
        }
          37  +
          38  +
        Ok(())
          39  +
    }
          40  +
}

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

@@ -1,1 +67,75 @@
   14     14   
protocol = "aws.protocols#awsJson1_1"
   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 = "0.1.5"
          41  +
          42  +
[dependencies.aws-smithy-observability-otel]
          43  +
path = "../aws-smithy-observability-otel"
          44  +
version = "0.1.3"
          45  +
   38     46   
[dependencies.aws-smithy-runtime]
   39     47   
path = "../aws-smithy-runtime"
   40     48   
features = ["client"]
   41     49   
version = "1.9.5"
   42     50   
   43     51   
[dependencies.aws-smithy-runtime-api]
   44     52   
path = "../aws-smithy-runtime-api"
   45     53   
features = ["client", "http-02x"]
   46     54   
version = "1.9.3"
   47     55   

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

@@ -1277,1277 +1336,1337 @@
 1297   1297   
        runtime_components.push_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::HttpStatusCodeClassifier::default());
 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  +
        runtime_components.push_interceptor(crate::observability_feature::ObservabilityFeatureTrackerInterceptor);
 1307   1308   
        Self { config, runtime_components }
 1308   1309   
    }
 1309   1310   
}
 1310   1311   
 1311   1312   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1312   1313   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1313   1314   
        self.config.clone()
 1314   1315   
    }
 1315   1316   
 1316   1317   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {

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

@@ -162,162 +207,209 @@
  182    182   
  183    183   
/// All operations that this crate can perform.
  184    184   
pub mod operation;
  185    185   
  186    186   
/// Primitives such as `Blob` or `DateTime` used by other types.
  187    187   
pub mod primitives;
  188    188   
  189    189   
/// Data structures used by operation inputs/outputs.
  190    190   
pub mod types;
  191    191   
         192  +
mod observability_feature;
         193  +
  192    194   
pub(crate) mod protocol_serde;
  193    195   
  194    196   
mod sdk_feature_tracker;
  195    197   
  196    198   
mod serialization_settings;
  197    199   
  198    200   
mod endpoint_lib;
  199    201   
  200    202   
mod lens;
  201    203   

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

@@ -0,1 +0,40 @@
           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 downcast to check if it's specifically the OTel implementation
          29  +
            // This is more reliable than string matching on type names
          30  +
            if let Some(_otel_provider) = meter_provider
          31  +
                .as_any()
          32  +
                .downcast_ref::<aws_smithy_observability_otel::meter::OtelMeterProvider>()
          33  +
            {
          34  +
                cfg.interceptor_state().store_append(SmithySdkFeature::ObservabilityOtelMetrics);
          35  +
            }
          36  +
        }
          37  +
          38  +
        Ok(())
          39  +
    }
          40  +
}

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

@@ -1,1 +115,123 @@
   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 = "0.1.5"
          41  +
          42  +
[dependencies.aws-smithy-observability-otel]
          43  +
path = "../aws-smithy-observability-otel"
          44  +
version = "0.1.3"
          45  +
   38     46   
[dependencies.aws-smithy-runtime]
   39     47   
path = "../aws-smithy-runtime"
   40     48   
features = ["client"]
   41     49   
version = "1.9.5"
   42     50   
   43     51   
[dependencies.aws-smithy-runtime-api]
   44     52   
path = "../aws-smithy-runtime-api"
   45     53   
features = ["client", "http-02x"]
   46     54   
version = "1.9.3"
   47     55   
   48     56   
[dependencies.aws-smithy-types]
   49     57   
path = "../aws-smithy-types"
   50     58   
version = "1.3.5"
   51     59   
   52     60   
[dependencies.aws-types]
   53     61   
path = "../aws-types"
   54     62   
version = "1.3.11"
   55     63   
   56     64   
[dependencies.bytes]
   57     65   
version = "1.4.0"
   58     66   
   59     67   
[dependencies.fastrand]
   60     68   
version = "2.0.0"
   61     69   
   62     70   
[dependencies.http]
   63     71   
version = "0.2.9"
   64     72   
   65     73   
[dependencies.regex-lite]
   66     74   
version = "0.1.5"
   67     75   
   68     76   
[dependencies.tracing]
   69     77   
version = "0.1"
   70     78   
[dev-dependencies.approx]
   71     79   
version = "0.5.1"
   72     80   
   73     81   
[dev-dependencies.aws-config]
   74     82   
path = "../aws-config"
   75     83   
version = "1.8.12"
   76     84   
   77     85   
[dev-dependencies.aws-credential-types]
   78     86   
path = "../aws-credential-types"
   79     87   
features = ["test-util"]
   80     88   
version = "1.2.11"
   81     89   
   82     90   
[dev-dependencies.aws-runtime]
   83     91   
path = "../aws-runtime"
   84     92   
features = ["test-util"]
   85         -
version = "1.5.17"
          93  +
version = "1.5.18"
   86     94   
   87     95   
[dev-dependencies.aws-smithy-async]
   88     96   
path = "../aws-smithy-async"
   89     97   
features = ["test-util"]
   90     98   
version = "1.2.7"
   91     99   
   92    100   
[dev-dependencies.aws-smithy-http-client]
   93    101   
path = "../aws-smithy-http-client"
   94    102   
features = ["test-util", "wire-mock"]
   95    103   
version = "1.1.5"

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

@@ -1310,1310 +1369,1370 @@
 1330   1330   
        runtime_components.push_interceptor(crate::sdk_feature_tracker::retry_mode::RetryModeFeatureTrackerInterceptor::new());
 1331   1331   
        runtime_components.push_interceptor(::aws_runtime::service_clock_skew::ServiceClockSkewInterceptor::new());
 1332   1332   
        runtime_components.push_interceptor(::aws_runtime::request_info::RequestInfoInterceptor::new());
 1333   1333   
        runtime_components.push_interceptor(::aws_runtime::user_agent::UserAgentInterceptor::new());
 1334   1334   
        runtime_components.push_interceptor(::aws_runtime::invocation_id::InvocationIdInterceptor::new());
 1335   1335   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1336   1336   
        runtime_components.push_interceptor(crate::account_id_endpoint::AccountIdEndpointFeatureTrackerInterceptor);
 1337   1337   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1338   1338   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1339   1339   
        ));
        1340  +
        runtime_components.push_interceptor(crate::observability_feature::ObservabilityFeatureTrackerInterceptor);
 1340   1341   
        Self { config, runtime_components }
 1341   1342   
    }
 1342   1343   
}
 1343   1344   
 1344   1345   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1345   1346   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1346   1347   
        self.config.clone()
 1347   1348   
    }
 1348   1349   
 1349   1350   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {

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

@@ -184,184 +234,236 @@
  204    204   
  205    205   
/// Data structures used by operation inputs/outputs.
  206    206   
pub mod types;
  207    207   
  208    208   
mod account_id_endpoint;
  209    209   
  210    210   
pub(crate) mod client_idempotency_token;
  211    211   
  212    212   
mod idempotency_token;
  213    213   
         214  +
mod observability_feature;
         215  +
  214    216   
pub(crate) mod protocol_serde;
  215    217   
  216    218   
mod sdk_feature_tracker;
  217    219   
  218    220   
mod serialization_settings;
  219    221   
  220    222   
mod endpoint_lib;
  221    223   
  222    224   
mod lens;
  223    225   

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

@@ -0,1 +0,40 @@
           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 downcast to check if it's specifically the OTel implementation
          29  +
            // This is more reliable than string matching on type names
          30  +
            if let Some(_otel_provider) = meter_provider
          31  +
                .as_any()
          32  +
                .downcast_ref::<aws_smithy_observability_otel::meter::OtelMeterProvider>()
          33  +
            {
          34  +
                cfg.interceptor_state().store_append(SmithySdkFeature::ObservabilityOtelMetrics);
          35  +
            }
          36  +
        }
          37  +
          38  +
        Ok(())
          39  +
    }
          40  +
}

tmp-codegen-diff/aws-sdk/sdk/dynamodb/tests/observability-metrics.rs

@@ -0,1 +0,90 @@
           1  +
/*
           2  +
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
           3  +
 * SPDX-License-Identifier: Apache-2.0
           4  +
 */
           5  +
           6  +
use aws_config::Region;
           7  +
use aws_credential_types::Credentials;
           8  +
use aws_runtime::user_agent::test_util::assert_ua_contains_metric_values;
           9  +
use aws_sdk_dynamodb::config::Builder;
          10  +
use aws_smithy_observability::TelemetryProvider;
          11  +
use aws_smithy_runtime::client::http::test_util::{ReplayEvent, StaticReplayClient};
          12  +
use aws_smithy_types::body::SdkBody;
          13  +
use http::header::USER_AGENT;
          14  +
use std::sync::Arc;
          15  +
          16  +
fn test_client(
          17  +
    update_builder: fn(Builder) -> Builder,
          18  +
) -> (aws_sdk_dynamodb::Client, StaticReplayClient) {
          19  +
    let http_client = StaticReplayClient::new(vec![ReplayEvent::new(
          20  +
        http::Request::builder()
          21  +
            .uri("https://dynamodb.us-east-1.amazonaws.com/")
          22  +
            .body(SdkBody::empty())
          23  +
            .unwrap(),
          24  +
        http::Response::builder()
          25  +
            .status(200)
          26  +
            .body(SdkBody::from(r#"{"TableNames":[]}"#))
          27  +
            .unwrap(),
          28  +
    )]);
          29  +
          30  +
    let config = update_builder(
          31  +
        aws_sdk_dynamodb::Config::builder()
          32  +
            .credentials_provider(Credentials::for_tests_with_account_id())
          33  +
            .region(Region::from_static("us-east-1"))
          34  +
            .http_client(http_client.clone()),
          35  +
    )
          36  +
    .build();
          37  +
          38  +
    (aws_sdk_dynamodb::Client::from_conf(config), http_client)
          39  +
}
          40  +
          41  +
async fn call_operation(client: aws_sdk_dynamodb::Client) {
          42  +
    let _ = client.list_tables().send().await;
          43  +
}
          44  +
          45  +
#[tokio::test]
          46  +
async fn observability_metrics_in_user_agent() {
          47  +
    // Test case 1: No telemetry provider configured (default noop)
          48  +
    {
          49  +
        let (client, rx) = test_client(std::convert::identity);
          50  +
        call_operation(client).await;
          51  +
        let req = rx.expect_request();
          52  +
        let user_agent = req.headers().get("x-amz-user-agent").unwrap();
          53  +
          54  +
        // Should NOT contain observability metrics when using noop provider
          55  +
        let ua_str = user_agent.to_str().unwrap();
          56  +
        assert!(!ua_str.contains("m/4")); // OBSERVABILITY_TRACING = "4"
          57  +
        assert!(!ua_str.contains("m/6")); // OBSERVABILITY_OTEL_TRACING = "6"
          58  +
        assert!(!ua_str.contains("m/7")); // OBSERVABILITY_OTEL_METRICS = "7"
          59  +
    }
          60  +
          61  +
    // Test case 2: OpenTelemetry metrics provider configured
          62  +
    {
          63  +
        use aws_smithy_observability_otel::meter::OtelMeterProvider;
          64  +
        use opentelemetry_sdk::metrics::{PeriodicReader, SdkMeterProvider};
          65  +
        use opentelemetry_sdk::runtime::Tokio;
          66  +
        use opentelemetry_sdk::testing::metrics::InMemoryMetricsExporter;
          67  +
          68  +
        // Create OTel meter provider
          69  +
        let exporter = InMemoryMetricsExporter::default();
          70  +
        let reader = PeriodicReader::builder(exporter.clone(), Tokio).build();
          71  +
        let otel_mp = SdkMeterProvider::builder().with_reader(reader).build();
          72  +
        let sdk_mp = Arc::new(OtelMeterProvider::new(otel_mp));
          73  +
        let sdk_tp = TelemetryProvider::builder().meter_provider(sdk_mp).build();
          74  +
          75  +
        // Set global telemetry provider
          76  +
        aws_smithy_observability::global::set_telemetry_provider(sdk_tp).unwrap();
          77  +
          78  +
        let (client, rx) = test_client(std::convert::identity);
          79  +
        call_operation(client).await;
          80  +
        let req = rx.expect_request();
          81  +
        let user_agent = req.headers().get("x-amz-user-agent").unwrap();
          82  +
          83  +
        // Should contain OBSERVABILITY_OTEL_METRICS metric
          84  +
        assert_ua_contains_metric_values(user_agent.to_str().unwrap(), &["7"]);
          85  +
          86  +
        // Reset to noop for other tests
          87  +
        aws_smithy_observability::global::set_telemetry_provider(TelemetryProvider::noop())
          88  +
            .unwrap();
          89  +
    }
          90  +
}

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

@@ -1,1 +117,125 @@
   14     14   
protocol = "aws.protocols#ec2Query"
   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 = "0.1.5"
          41  +
          42  +
[dependencies.aws-smithy-observability-otel]
          43  +
path = "../aws-smithy-observability-otel"
          44  +
version = "0.1.3"
          45  +
   38     46   
[dependencies.aws-smithy-query]
   39     47   
path = "../aws-smithy-query"
   40     48   
version = "0.60.9"
   41     49   
   42     50   
[dependencies.aws-smithy-runtime]
   43     51   
path = "../aws-smithy-runtime"
   44     52   
features = ["client"]
   45     53   
version = "1.9.5"
   46     54   
   47     55   
[dependencies.aws-smithy-runtime-api]
   48     56   
path = "../aws-smithy-runtime-api"
   49     57   
features = ["client", "http-02x"]
   50     58   
version = "1.9.3"
   51     59   
   52     60   
[dependencies.aws-smithy-types]
   53     61   
path = "../aws-smithy-types"
   54     62   
version = "1.3.5"
   55     63   
   56     64   
[dependencies.aws-smithy-xml]
   57     65   
path = "../aws-smithy-xml"
   58     66   
version = "0.60.13"
   59     67   
   60     68   
[dependencies.aws-types]
   61     69   
path = "../aws-types"
   62     70   
version = "1.3.11"
   63     71   
   64     72   
[dependencies.fastrand]
   65     73   
version = "2.0.0"
   66     74   
   67     75   
[dependencies.http]
   68     76   
version = "0.2.9"
   69     77   
   70     78   
[dependencies.regex-lite]
   71     79   
version = "0.1.5"
   72     80   
   73     81   
[dependencies.tracing]
   74     82   
version = "0.1"
   75     83   
[dev-dependencies.aws-config]
   76     84   
path = "../aws-config"
   77     85   
version = "1.8.12"
   78     86   
   79     87   
[dev-dependencies.aws-credential-types]
   80     88   
path = "../aws-credential-types"
   81     89   
features = ["test-util"]
   82     90   
version = "1.2.11"
   83     91   
   84     92   
[dev-dependencies.aws-runtime]
   85     93   
path = "../aws-runtime"
   86     94   
features = ["test-util"]
   87         -
version = "1.5.17"
          95  +
version = "1.5.18"
   88     96   
   89     97   
[dev-dependencies.aws-smithy-async]
   90     98   
path = "../aws-smithy-async"
   91     99   
features = ["test-util"]
   92    100   
version = "1.2.7"
   93    101   
   94    102   
[dev-dependencies.aws-smithy-http-client]
   95    103   
path = "../aws-smithy-http-client"
   96    104   
features = ["test-util", "wire-mock"]
   97    105   
version = "1.1.5"

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

@@ -1295,1295 +1354,1355 @@
 1315   1315   
        runtime_components.push_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::HttpStatusCodeClassifier::default());
 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  +
        runtime_components.push_interceptor(crate::observability_feature::ObservabilityFeatureTrackerInterceptor);
 1325   1326   
        Self { config, runtime_components }
 1326   1327   
    }
 1327   1328   
}
 1328   1329   
 1329   1330   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1330   1331   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1331   1332   
        self.config.clone()
 1332   1333   
    }
 1333   1334   
 1334   1335   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {

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

@@ -178,178 +228,230 @@
  198    198   
/// Primitives such as `Blob` or `DateTime` used by other types.
  199    199   
pub mod primitives;
  200    200   
  201    201   
/// Data structures used by operation inputs/outputs.
  202    202   
pub mod types;
  203    203   
  204    204   
pub(crate) mod client_idempotency_token;
  205    205   
  206    206   
mod idempotency_token;
  207    207   
         208  +
mod observability_feature;
         209  +
  208    210   
pub(crate) mod protocol_serde;
  209    211   
  210    212   
mod sdk_feature_tracker;
  211    213   
  212    214   
mod serialization_settings;
  213    215   
  214    216   
mod endpoint_lib;
  215    217   
  216    218   
mod lens;
  217    219   

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

@@ -0,1 +0,40 @@
           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 downcast to check if it's specifically the OTel implementation
          29  +
            // This is more reliable than string matching on type names
          30  +
            if let Some(_otel_provider) = meter_provider
          31  +
                .as_any()
          32  +
                .downcast_ref::<aws_smithy_observability_otel::meter::OtelMeterProvider>()
          33  +
            {
          34  +
                cfg.interceptor_state().store_append(SmithySdkFeature::ObservabilityOtelMetrics);
          35  +
            }
          36  +
        }
          37  +
          38  +
        Ok(())
          39  +
    }
          40  +
}

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

@@ -1,1 +67,75 @@
   14     14   
protocol = "aws.protocols#awsJson1_1"
   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 = "0.1.5"
          41  +
          42  +
[dependencies.aws-smithy-observability-otel]
          43  +
path = "../aws-smithy-observability-otel"
          44  +
version = "0.1.3"
          45  +
   38     46   
[dependencies.aws-smithy-runtime]
   39     47   
path = "../aws-smithy-runtime"
   40     48   
features = ["client"]
   41     49   
version = "1.9.5"
   42     50   
   43     51   
[dependencies.aws-smithy-runtime-api]
   44     52   
path = "../aws-smithy-runtime-api"
   45     53   
features = ["client", "http-02x"]
   46     54   
version = "1.9.3"
   47     55   

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

@@ -1295,1295 +1354,1355 @@
 1315   1315   
        runtime_components.push_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::HttpStatusCodeClassifier::default());
 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  +
        runtime_components.push_interceptor(crate::observability_feature::ObservabilityFeatureTrackerInterceptor);
 1325   1326   
        Self { config, runtime_components }
 1326   1327   
    }
 1327   1328   
}
 1328   1329   
 1329   1330   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1330   1331   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1331   1332   
        self.config.clone()
 1332   1333   
    }
 1333   1334   
 1334   1335   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {