Unverified Commit 8f623f65 authored by Russell Cohen's avatar Russell Cohen Committed by GitHub
Browse files

Add tracing for resolved endpoint (#784)

* Add tracing for resolved endpoint

* update changelog
parent 64a9d925
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ vNext (Month Day, Year)
**New this week**

- Moved the contents of `aws-auth` into the `aws-http` runtime crate (smithy-rs#783)
- Add tracing output for resolved AWS endpoint (smithy-rs#784)

v0.0.21-alpha (October 15th, 2021)
==================================
+1 −0
Original line number Diff line number Diff line
@@ -12,3 +12,4 @@ smithy-http = { path = "../../../rust-runtime/smithy-http"}
aws-types = { path = "../aws-types" }
http = "0.2.3"
regex = { version = "1", default-features = false, features = ["std"]}
tracing = "0.1"
+2 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ use std::sync::Arc;
/// - The URI of the endpoint (needed to actually send the request)
/// - The name of the service (needed downstream for signing)
/// - The signing region (which may differ from the actual region)
#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct AwsEndpoint {
    endpoint: Endpoint,
    credential_scope: CredentialScope,
@@ -186,6 +186,7 @@ impl MapRequest for AwsEndpointStage {
            let endpoint = provider
                .resolve_endpoint(region)
                .map_err(AwsEndpointStageError::EndpointResolutionError)?;
            tracing::debug!(endpoint = ?endpoint, base_region = ?region, "resolved endpoint");
            let signing_region = endpoint
                .credential_scope
                .region