Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .changelog/feature-async-codegen.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"type": "feature",
"category": "aws-cpp-sdk-core",
"contributor": "sbiscigl",
"description": "Codegen true async path for CRT HTTP based clients"
}
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ MigrationHubClient::InvokeOperationOutcome MigrationHubClient::InvokeServiceOper
{TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}},
smithy::components::tracing::SpanKind::CLIENT);

return TracingUtils::MakeCallWithTiming<InvokeOperationOutcome>(
return Aws::Client::AsyncOperationState::MakeCallWithTiming<InvokeOperationOutcome>(
request, std::move(span),
[&]() -> InvokeOperationOutcome {
auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming<ResolveEndpointOutcome>(
[&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); },
Expand All @@ -189,7 +190,7 @@ MigrationHubClient::InvokeOperationOutcome MigrationHubClient::InvokeServiceOper

return InvokeOperationOutcome{MakeRequest(request, endpointResolutionOutcome.GetResult(), httpMethod, Aws::Auth::SIGV4_SIGNER)};
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter,
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter,
{{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ AccessAnalyzerClient::InvokeOperationOutcome AccessAnalyzerClient::InvokeService
{TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}},
smithy::components::tracing::SpanKind::CLIENT);

return TracingUtils::MakeCallWithTiming<InvokeOperationOutcome>(
return Aws::Client::AsyncOperationState::MakeCallWithTiming<InvokeOperationOutcome>(
request, std::move(span),
[&]() -> InvokeOperationOutcome {
auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming<ResolveEndpointOutcome>(
[&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); },
Expand All @@ -210,7 +211,7 @@ AccessAnalyzerClient::InvokeOperationOutcome AccessAnalyzerClient::InvokeService

return InvokeOperationOutcome{MakeRequest(request, endpointResolutionOutcome.GetResult(), httpMethod, Aws::Auth::SIGV4_SIGNER)};
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter,
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter,
{{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ AccountAccessClient::InvokeOperationOutcome AccountAccessClient::InvokeServiceOp
{TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}},
smithy::components::tracing::SpanKind::CLIENT);

return TracingUtils::MakeCallWithTiming<InvokeOperationOutcome>(
return Aws::Client::AsyncOperationState::MakeCallWithTiming<InvokeOperationOutcome>(
request, std::move(span),
[&]() -> InvokeOperationOutcome {
auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming<ResolveEndpointOutcome>(
[&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); },
Expand All @@ -182,7 +183,7 @@ AccountAccessClient::InvokeOperationOutcome AccountAccessClient::InvokeServiceOp

return InvokeOperationOutcome{MakeRequest(request, endpointResolutionOutcome.GetResult(), httpMethod, Aws::Auth::SIGV4_SIGNER)};
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter,
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter,
{{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}});
}

Expand Down
5 changes: 3 additions & 2 deletions generated/src/aws-cpp-sdk-account/source/AccountClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ AccountClient::InvokeOperationOutcome AccountClient::InvokeServiceOperation(
{TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}},
smithy::components::tracing::SpanKind::CLIENT);

return TracingUtils::MakeCallWithTiming<InvokeOperationOutcome>(
return Aws::Client::AsyncOperationState::MakeCallWithTiming<InvokeOperationOutcome>(
request, std::move(span),
[&]() -> InvokeOperationOutcome {
auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming<ResolveEndpointOutcome>(
[&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); },
Expand All @@ -188,7 +189,7 @@ AccountClient::InvokeOperationOutcome AccountClient::InvokeServiceOperation(

return InvokeOperationOutcome{MakeRequest(request, endpointResolutionOutcome.GetResult(), httpMethod, Aws::Auth::SIGV4_SIGNER)};
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter,
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter,
{{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}});
}

Expand Down
5 changes: 3 additions & 2 deletions generated/src/aws-cpp-sdk-acm-pca/source/ACMPCAClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ ACMPCAClient::InvokeOperationOutcome ACMPCAClient::InvokeServiceOperation(const
{TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}},
smithy::components::tracing::SpanKind::CLIENT);

return TracingUtils::MakeCallWithTiming<InvokeOperationOutcome>(
return Aws::Client::AsyncOperationState::MakeCallWithTiming<InvokeOperationOutcome>(
request, std::move(span),
[&]() -> InvokeOperationOutcome {
auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming<ResolveEndpointOutcome>(
[&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); },
Expand All @@ -190,7 +191,7 @@ ACMPCAClient::InvokeOperationOutcome ACMPCAClient::InvokeServiceOperation(const

return InvokeOperationOutcome{MakeRequest(request, endpointResolutionOutcome.GetResult(), httpMethod, Aws::Auth::SIGV4_SIGNER)};
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter,
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter,
{{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}});
}

Expand Down
5 changes: 3 additions & 2 deletions generated/src/aws-cpp-sdk-acm/source/ACMClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ ACMClient::InvokeOperationOutcome ACMClient::InvokeServiceOperation(const Amazon
{TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}},
smithy::components::tracing::SpanKind::CLIENT);

return TracingUtils::MakeCallWithTiming<InvokeOperationOutcome>(
return Aws::Client::AsyncOperationState::MakeCallWithTiming<InvokeOperationOutcome>(
request, std::move(span),
[&]() -> InvokeOperationOutcome {
auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming<ResolveEndpointOutcome>(
[&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); },
Expand All @@ -205,7 +206,7 @@ ACMClient::InvokeOperationOutcome ACMClient::InvokeServiceOperation(const Amazon

return InvokeOperationOutcome{MakeRequest(request, endpointResolutionOutcome.GetResult(), httpMethod, Aws::Auth::SIGV4_SIGNER)};
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter,
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter,
{{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ AgentRegistryControlClient::InvokeOperationOutcome AgentRegistryControlClient::I
{TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}},
smithy::components::tracing::SpanKind::CLIENT);

return TracingUtils::MakeCallWithTiming<InvokeOperationOutcome>(
return Aws::Client::AsyncOperationState::MakeCallWithTiming<InvokeOperationOutcome>(
request, std::move(span),
[&]() -> InvokeOperationOutcome {
auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming<ResolveEndpointOutcome>(
[&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); },
Expand All @@ -194,7 +195,7 @@ AgentRegistryControlClient::InvokeOperationOutcome AgentRegistryControlClient::I

return InvokeOperationOutcome{MakeRequest(request, endpointResolutionOutcome.GetResult(), httpMethod, Aws::Auth::SIGV4_SIGNER)};
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter,
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter,
{{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ AgentRegistryClient::InvokeOperationOutcome AgentRegistryClient::InvokeServiceOp
{TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}},
smithy::components::tracing::SpanKind::CLIENT);

return TracingUtils::MakeCallWithTiming<InvokeOperationOutcome>(
return Aws::Client::AsyncOperationState::MakeCallWithTiming<InvokeOperationOutcome>(
request, std::move(span),
[&]() -> InvokeOperationOutcome {
auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming<ResolveEndpointOutcome>(
[&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); },
Expand All @@ -174,7 +175,7 @@ AgentRegistryClient::InvokeOperationOutcome AgentRegistryClient::InvokeServiceOp

return InvokeOperationOutcome{MakeRequest(request, endpointResolutionOutcome.GetResult(), httpMethod, Aws::Auth::SIGV4_SIGNER)};
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter,
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter,
{{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}});
}

Expand Down
5 changes: 3 additions & 2 deletions generated/src/aws-cpp-sdk-aiops/source/AIOpsClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ AIOpsClient::InvokeOperationOutcome AIOpsClient::InvokeServiceOperation(
{TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}},
smithy::components::tracing::SpanKind::CLIENT);

return TracingUtils::MakeCallWithTiming<InvokeOperationOutcome>(
return Aws::Client::AsyncOperationState::MakeCallWithTiming<InvokeOperationOutcome>(
request, std::move(span),
[&]() -> InvokeOperationOutcome {
auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming<ResolveEndpointOutcome>(
[&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); },
Expand All @@ -181,7 +182,7 @@ AIOpsClient::InvokeOperationOutcome AIOpsClient::InvokeServiceOperation(

return InvokeOperationOutcome{MakeRequest(request, endpointResolutionOutcome.GetResult(), httpMethod, Aws::Auth::SIGV4_SIGNER)};
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter,
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter,
{{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ PrometheusServiceClient::InvokeOperationOutcome PrometheusServiceClient::InvokeS
{TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}},
smithy::components::tracing::SpanKind::CLIENT);

return TracingUtils::MakeCallWithTiming<InvokeOperationOutcome>(
return Aws::Client::AsyncOperationState::MakeCallWithTiming<InvokeOperationOutcome>(
request, std::move(span),
[&]() -> InvokeOperationOutcome {
auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming<ResolveEndpointOutcome>(
[&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); },
Expand All @@ -219,7 +220,7 @@ PrometheusServiceClient::InvokeOperationOutcome PrometheusServiceClient::InvokeS

return InvokeOperationOutcome{MakeRequest(request, endpointResolutionOutcome.GetResult(), httpMethod, Aws::Auth::SIGV4_SIGNER)};
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter,
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter,
{{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}});
}

Expand Down
5 changes: 3 additions & 2 deletions generated/src/aws-cpp-sdk-amplify/source/AmplifyClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ AmplifyClient::InvokeOperationOutcome AmplifyClient::InvokeServiceOperation(
{TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}},
smithy::components::tracing::SpanKind::CLIENT);

return TracingUtils::MakeCallWithTiming<InvokeOperationOutcome>(
return Aws::Client::AsyncOperationState::MakeCallWithTiming<InvokeOperationOutcome>(
request, std::move(span),
[&]() -> InvokeOperationOutcome {
auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming<ResolveEndpointOutcome>(
[&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); },
Expand All @@ -207,7 +208,7 @@ AmplifyClient::InvokeOperationOutcome AmplifyClient::InvokeServiceOperation(

return InvokeOperationOutcome{MakeRequest(request, endpointResolutionOutcome.GetResult(), httpMethod, Aws::Auth::SIGV4_SIGNER)};
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter,
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter,
{{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ AmplifyBackendClient::InvokeOperationOutcome AmplifyBackendClient::InvokeService
{TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}},
smithy::components::tracing::SpanKind::CLIENT);

return TracingUtils::MakeCallWithTiming<InvokeOperationOutcome>(
return Aws::Client::AsyncOperationState::MakeCallWithTiming<InvokeOperationOutcome>(
request, std::move(span),
[&]() -> InvokeOperationOutcome {
auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming<ResolveEndpointOutcome>(
[&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); },
Expand All @@ -202,7 +203,7 @@ AmplifyBackendClient::InvokeOperationOutcome AmplifyBackendClient::InvokeService

return InvokeOperationOutcome{MakeRequest(request, endpointResolutionOutcome.GetResult(), httpMethod, Aws::Auth::SIGV4_SIGNER)};
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter,
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter,
{{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ AmplifyUIBuilderClient::InvokeOperationOutcome AmplifyUIBuilderClient::InvokeSer
{TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}},
smithy::components::tracing::SpanKind::CLIENT);

return TracingUtils::MakeCallWithTiming<InvokeOperationOutcome>(
return Aws::Client::AsyncOperationState::MakeCallWithTiming<InvokeOperationOutcome>(
request, std::move(span),
[&]() -> InvokeOperationOutcome {
auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming<ResolveEndpointOutcome>(
[&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); },
Expand All @@ -203,7 +204,7 @@ AmplifyUIBuilderClient::InvokeOperationOutcome AmplifyUIBuilderClient::InvokeSer

return InvokeOperationOutcome{MakeRequest(request, endpointResolutionOutcome.GetResult(), httpMethod, Aws::Auth::SIGV4_SIGNER)};
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter,
TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter,
{{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}});
}

Expand Down
Loading
Loading