AWS SDK

AWS SDK

rev. fd8f5872be2db6c5b8cfe56c2ef4fb19d0024a51 (ignoring whitespace)

Files changed:

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

@@ -0,1 +0,37 @@
           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  +
            // Check the provider name to detect OpenTelemetry without importing the otel crate
          29  +
            // This avoids compilation issues with the opentelemetry dependency
          30  +
            if meter_provider.provider_name() == "otel" {
          31  +
                cfg.interceptor_state().store_append(SmithySdkFeature::ObservabilityOtelMetrics);
          32  +
            }
          33  +
        }
          34  +
          35  +
        Ok(())
          36  +
    }
          37  +
}

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

@@ -1,1 +81,85 @@
   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", "http-02x"]
   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-checksums]
   36     36   
path = "../aws-smithy-checksums"
   37     37   
version = "0.63.12"
   38     38   
   39     39   
[dependencies.aws-smithy-eventstream]
   40     40   
path = "../aws-smithy-eventstream"
   41     41   
version = "0.60.14"
   42     42   
   43     43   
[dependencies.aws-smithy-http]
   44     44   
path = "../aws-smithy-http"
   45     45   
features = ["event-stream"]
   46     46   
version = "0.62.6"
   47     47   
   48     48   
[dependencies.aws-smithy-json]
   49     49   
path = "../aws-smithy-json"
   50     50   
version = "0.61.8"
   51     51   
          52  +
[dependencies.aws-smithy-observability]
          53  +
path = "../aws-smithy-observability"
          54  +
version = "0.1.6"
          55  +
   52     56   
[dependencies.aws-smithy-runtime]
   53     57   
path = "../aws-smithy-runtime"
   54     58   
features = ["client"]
   55     59   
version = "1.9.5"
   56     60   
   57     61   
[dependencies.aws-smithy-runtime-api]
   58     62   
path = "../aws-smithy-runtime-api"
   59     63   
features = ["client", "http-02x"]
   60     64   
version = "1.9.3"
   61     65   
@@ -104,108 +164,168 @@
  124    128   
version = "1.8.12"
  125    129   
  126    130   
[dev-dependencies.aws-credential-types]
  127    131   
path = "../aws-credential-types"
  128    132   
features = ["test-util"]
  129    133   
version = "1.2.11"
  130    134   
  131    135   
[dev-dependencies.aws-runtime]
  132    136   
path = "../aws-runtime"
  133    137   
features = ["test-util"]
  134         -
version = "1.5.17"
         138  +
version = "1.5.18"
  135    139   
  136    140   
[dev-dependencies.aws-smithy-async]
  137    141   
path = "../aws-smithy-async"
  138    142   
features = ["test-util"]
  139    143   
version = "1.2.7"
  140    144   
  141    145   
[dev-dependencies.aws-smithy-eventstream]
  142    146   
path = "../aws-smithy-eventstream"
  143    147   
features = ["test-util"]
  144    148   
version = "0.60.14"

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

@@ -1435,1435 +1494,1495 @@
 1455   1455   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1456   1456   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1457   1457   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1458   1458   
        ));
 1459   1459   
        #[cfg(feature = "sigv4a")]
 1460   1460   
        {
 1461   1461   
            runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1462   1462   
                ::aws_runtime::auth::sigv4a::SigV4aAuthScheme::new(),
 1463   1463   
            ));
 1464   1464   
        }
        1465  +
        runtime_components.push_interceptor(crate::observability_feature::ObservabilityFeatureTrackerInterceptor);
 1465   1466   
        Self { config, runtime_components }
 1466   1467   
    }
 1467   1468   
}
 1468   1469   
 1469   1470   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1470   1471   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1471   1472   
        self.config.clone()
 1472   1473   
    }
 1473   1474   
 1474   1475   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {

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

@@ -184,184 +243,245 @@
  204    204   
pub(crate) mod client_idempotency_token;
  205    205   
  206    206   
mod event_receiver;
  207    207   
  208    208   
pub(crate) mod http_request_checksum;
  209    209   
  210    210   
pub(crate) mod http_response_checksum;
  211    211   
  212    212   
mod idempotency_token;
  213    213   
         214  +
mod observability_feature;
         215  +
  214    216   
pub mod presigning;
  215    217   
  216    218   
pub(crate) mod presigning_interceptors;
  217    219   
  218    220   
pub(crate) mod protocol_serde;
  219    221   
  220    222   
mod rest_xml_unwrapped_errors;
  221    223   
  222    224   
mod s3_expires_interceptor;
  223    225   

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

@@ -0,1 +0,37 @@
           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  +
            // Check the provider name to detect OpenTelemetry without importing the otel crate
          29  +
            // This avoids compilation issues with the opentelemetry dependency
          30  +
            if meter_provider.provider_name() == "otel" {
          31  +
                cfg.interceptor_state().store_append(SmithySdkFeature::ObservabilityOtelMetrics);
          32  +
            }
          33  +
        }
          34  +
          35  +
        Ok(())
          36  +
    }
          37  +
}

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

@@ -1,1 +119,123 @@
   14     14   
protocol = "aws.protocols#restXml"
   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.6"
          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-smithy-xml]
   53     57   
path = "../aws-smithy-xml"
   54     58   
version = "0.60.13"
   55     59   
   56     60   
[dependencies.aws-types]
   57     61   
path = "../aws-types"
   58     62   
version = "1.3.11"
   59     63   
   60     64   
[dependencies.fastrand]
   61     65   
version = "2.0.0"
   62     66   
   63     67   
[dependencies.http]
   64     68   
version = "0.2.9"
   65     69   
   66     70   
[dependencies.md-5]
   67     71   
version = "0.10.0"
   68     72   
   69     73   
[dependencies.regex-lite]
   70     74   
version = "0.1.5"
   71     75   
   72     76   
[dependencies.tracing]
   73     77   
version = "0.1"
   74     78   
   75     79   
[dependencies.url]
   76     80   
version = "2.3.1"
   77     81   
[dev-dependencies.aws-config]
   78     82   
path = "../aws-config"
   79     83   
version = "1.8.12"
   80     84   
   81     85   
[dev-dependencies.aws-credential-types]
   82     86   
path = "../aws-credential-types"
   83     87   
features = ["test-util"]
   84     88   
version = "1.2.11"
   85     89   
   86     90   
[dev-dependencies.aws-runtime]
   87     91   
path = "../aws-runtime"
   88     92   
features = ["test-util"]
   89         -
version = "1.5.17"
          93  +
version = "1.5.18"
   90     94   
   91     95   
[dev-dependencies.aws-smithy-async]
   92     96   
path = "../aws-smithy-async"
   93     97   
features = ["test-util"]
   94     98   
version = "1.2.7"
   95     99   
   96    100   
[dev-dependencies.aws-smithy-http-client]
   97    101   
path = "../aws-smithy-http-client"
   98    102   
features = ["test-util", "wire-mock"]
   99    103   
version = "1.1.5"

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

@@ -1306,1306 +1365,1366 @@
 1326   1326   
        runtime_components.push_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::HttpStatusCodeClassifier::default());
 1327   1327   
        runtime_components.push_interceptor(crate::sdk_feature_tracker::retry_mode::RetryModeFeatureTrackerInterceptor::new());
 1328   1328   
        runtime_components.push_interceptor(::aws_runtime::service_clock_skew::ServiceClockSkewInterceptor::new());
 1329   1329   
        runtime_components.push_interceptor(::aws_runtime::request_info::RequestInfoInterceptor::new());
 1330   1330   
        runtime_components.push_interceptor(::aws_runtime::user_agent::UserAgentInterceptor::new());
 1331   1331   
        runtime_components.push_interceptor(::aws_runtime::invocation_id::InvocationIdInterceptor::new());
 1332   1332   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1333   1333   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1334   1334   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1335   1335   
        ));
        1336  +
        runtime_components.push_interceptor(crate::observability_feature::ObservabilityFeatureTrackerInterceptor);
 1336   1337   
        Self { config, runtime_components }
 1337   1338   
    }
 1338   1339   
}
 1339   1340   
 1340   1341   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1341   1342   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1342   1343   
        self.config.clone()
 1343   1344   
    }
 1344   1345   
 1345   1346   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {

tmp-codegen-diff/aws-sdk/sdk/s3control/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_http_checksum_required;
  191    191   
  192    192   
pub(crate) mod client_idempotency_token;
  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/s3control/src/observability_feature.rs

@@ -0,1 +0,37 @@
           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  +
            // Check the provider name to detect OpenTelemetry without importing the otel crate
          29  +
            // This avoids compilation issues with the opentelemetry dependency
          30  +
            if meter_provider.provider_name() == "otel" {
          31  +
                cfg.interceptor_state().store_append(SmithySdkFeature::ObservabilityOtelMetrics);
          32  +
            }
          33  +
        }
          34  +
          35  +
        Ok(())
          36  +
    }
          37  +
}

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

@@ -1,1 +67,71 @@
   14     14   
protocol = "aws.protocols#restJson1"
   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.6"
          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/signin/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/signin/src/lib.rs

@@ -96,96 +139,141 @@
  116    116   
  117    117   
/// All operations that this crate can perform.
  118    118   
pub mod operation;
  119    119   
  120    120   
/// Primitives such as `Blob` or `DateTime` used by other types.
  121    121   
pub mod primitives;
  122    122   
  123    123   
/// Data structures used by operation inputs/outputs.
  124    124   
pub mod types;
  125    125   
         126  +
mod observability_feature;
         127  +
  126    128   
pub(crate) mod protocol_serde;
  127    129   
  128    130   
mod sdk_feature_tracker;
  129    131   
  130    132   
mod serialization_settings;
  131    133   
  132    134   
mod endpoint_lib;
  133    135   
  134    136   
mod serde_util;
  135    137   

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

@@ -0,1 +0,37 @@
           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  +
            // Check the provider name to detect OpenTelemetry without importing the otel crate
          29  +
            // This avoids compilation issues with the opentelemetry dependency
          30  +
            if meter_provider.provider_name() == "otel" {
          31  +
                cfg.interceptor_state().store_append(SmithySdkFeature::ObservabilityOtelMetrics);
          32  +
            }
          33  +
        }
          34  +
          35  +
        Ok(())
          36  +
    }
          37  +
}

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

@@ -1,1 +67,71 @@
   14     14   
protocol = "aws.protocols#restJson1"
   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.6"
          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/sso/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/sso/src/lib.rs

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