diff --git a/.changelog/feature-async-codegen.json b/.changelog/feature-async-codegen.json new file mode 100644 index 000000000000..5ac765cbcac2 --- /dev/null +++ b/.changelog/feature-async-codegen.json @@ -0,0 +1,6 @@ +{ + "type": "feature", + "category": "aws-cpp-sdk-core", + "contributor": "sbiscigl", + "description": "Codegen true async path for CRT HTTP based clients" +} diff --git a/generated/src/aws-cpp-sdk-AWSMigrationHub/source/MigrationHubClient.cpp b/generated/src/aws-cpp-sdk-AWSMigrationHub/source/MigrationHubClient.cpp index f10515501ebd..20799a2dd3c5 100644 --- a/generated/src/aws-cpp-sdk-AWSMigrationHub/source/MigrationHubClient.cpp +++ b/generated/src/aws-cpp-sdk-AWSMigrationHub/source/MigrationHubClient.cpp @@ -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( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -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}}); } diff --git a/generated/src/aws-cpp-sdk-accessanalyzer/source/AccessAnalyzerClient.cpp b/generated/src/aws-cpp-sdk-accessanalyzer/source/AccessAnalyzerClient.cpp index 1f6e2cb653fb..028223ac677d 100644 --- a/generated/src/aws-cpp-sdk-accessanalyzer/source/AccessAnalyzerClient.cpp +++ b/generated/src/aws-cpp-sdk-accessanalyzer/source/AccessAnalyzerClient.cpp @@ -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( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -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}}); } diff --git a/generated/src/aws-cpp-sdk-account-access/source/AccountAccessClient.cpp b/generated/src/aws-cpp-sdk-account-access/source/AccountAccessClient.cpp index 4d8119fd8faa..1d2b769c23b2 100644 --- a/generated/src/aws-cpp-sdk-account-access/source/AccountAccessClient.cpp +++ b/generated/src/aws-cpp-sdk-account-access/source/AccountAccessClient.cpp @@ -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( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -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}}); } diff --git a/generated/src/aws-cpp-sdk-account/source/AccountClient.cpp b/generated/src/aws-cpp-sdk-account/source/AccountClient.cpp index 9e291822912d..29b639930431 100644 --- a/generated/src/aws-cpp-sdk-account/source/AccountClient.cpp +++ b/generated/src/aws-cpp-sdk-account/source/AccountClient.cpp @@ -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( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -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}}); } diff --git a/generated/src/aws-cpp-sdk-acm-pca/source/ACMPCAClient.cpp b/generated/src/aws-cpp-sdk-acm-pca/source/ACMPCAClient.cpp index 512a187d0009..c19fad9c71ee 100644 --- a/generated/src/aws-cpp-sdk-acm-pca/source/ACMPCAClient.cpp +++ b/generated/src/aws-cpp-sdk-acm-pca/source/ACMPCAClient.cpp @@ -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( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -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}}); } diff --git a/generated/src/aws-cpp-sdk-acm/source/ACMClient.cpp b/generated/src/aws-cpp-sdk-acm/source/ACMClient.cpp index b3ef316f844b..4238559d2da0 100644 --- a/generated/src/aws-cpp-sdk-acm/source/ACMClient.cpp +++ b/generated/src/aws-cpp-sdk-acm/source/ACMClient.cpp @@ -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( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -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}}); } diff --git a/generated/src/aws-cpp-sdk-agent-registry-control/source/AgentRegistryControlClient.cpp b/generated/src/aws-cpp-sdk-agent-registry-control/source/AgentRegistryControlClient.cpp index 0aeb11b5e8c2..a07f3e000f37 100644 --- a/generated/src/aws-cpp-sdk-agent-registry-control/source/AgentRegistryControlClient.cpp +++ b/generated/src/aws-cpp-sdk-agent-registry-control/source/AgentRegistryControlClient.cpp @@ -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( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -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}}); } diff --git a/generated/src/aws-cpp-sdk-agent-registry/source/AgentRegistryClient.cpp b/generated/src/aws-cpp-sdk-agent-registry/source/AgentRegistryClient.cpp index 278395607800..21642e3a4490 100644 --- a/generated/src/aws-cpp-sdk-agent-registry/source/AgentRegistryClient.cpp +++ b/generated/src/aws-cpp-sdk-agent-registry/source/AgentRegistryClient.cpp @@ -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( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -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}}); } diff --git a/generated/src/aws-cpp-sdk-aiops/source/AIOpsClient.cpp b/generated/src/aws-cpp-sdk-aiops/source/AIOpsClient.cpp index 37974163c970..6ee7dc97dd8b 100644 --- a/generated/src/aws-cpp-sdk-aiops/source/AIOpsClient.cpp +++ b/generated/src/aws-cpp-sdk-aiops/source/AIOpsClient.cpp @@ -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( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -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}}); } diff --git a/generated/src/aws-cpp-sdk-amp/source/PrometheusServiceClient.cpp b/generated/src/aws-cpp-sdk-amp/source/PrometheusServiceClient.cpp index c03146da2010..4bf9f7ce49fc 100644 --- a/generated/src/aws-cpp-sdk-amp/source/PrometheusServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-amp/source/PrometheusServiceClient.cpp @@ -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( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -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}}); } diff --git a/generated/src/aws-cpp-sdk-amplify/source/AmplifyClient.cpp b/generated/src/aws-cpp-sdk-amplify/source/AmplifyClient.cpp index 0f5380e4bb06..257043b54403 100644 --- a/generated/src/aws-cpp-sdk-amplify/source/AmplifyClient.cpp +++ b/generated/src/aws-cpp-sdk-amplify/source/AmplifyClient.cpp @@ -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( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -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}}); } diff --git a/generated/src/aws-cpp-sdk-amplifybackend/source/AmplifyBackendClient.cpp b/generated/src/aws-cpp-sdk-amplifybackend/source/AmplifyBackendClient.cpp index 2955808faa45..69ace8048fd3 100644 --- a/generated/src/aws-cpp-sdk-amplifybackend/source/AmplifyBackendClient.cpp +++ b/generated/src/aws-cpp-sdk-amplifybackend/source/AmplifyBackendClient.cpp @@ -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( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -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}}); } diff --git a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/AmplifyUIBuilderClient.cpp b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/AmplifyUIBuilderClient.cpp index 7a9225dba3ed..1cc9ac8d1853 100644 --- a/generated/src/aws-cpp-sdk-amplifyuibuilder/source/AmplifyUIBuilderClient.cpp +++ b/generated/src/aws-cpp-sdk-amplifyuibuilder/source/AmplifyUIBuilderClient.cpp @@ -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( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -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}}); } diff --git a/generated/src/aws-cpp-sdk-apigateway/source/APIGatewayClient.cpp b/generated/src/aws-cpp-sdk-apigateway/source/APIGatewayClient.cpp index 4cdb317d43ea..c2d162e35735 100644 --- a/generated/src/aws-cpp-sdk-apigateway/source/APIGatewayClient.cpp +++ b/generated/src/aws-cpp-sdk-apigateway/source/APIGatewayClient.cpp @@ -284,7 +284,8 @@ APIGatewayClient::InvokeOperationOutcome APIGatewayClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -298,7 +299,7 @@ APIGatewayClient::InvokeOperationOutcome APIGatewayClient::InvokeServiceOperatio 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}}); } @@ -1509,7 +1510,8 @@ GetExportOutcome APIGatewayClient::GetExport(const GetExportRequest& request) co {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetExportOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1527,7 +1529,7 @@ GetExportOutcome APIGatewayClient::GetExport(const GetExportRequest& request) co auto result = MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET); return result.IsSuccess() ? GetExportOutcome(result.GetResultWithOwnership()) : GetExportOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -1926,7 +1928,8 @@ GetSdkOutcome APIGatewayClient::GetSdk(const GetSdkRequest& request) const { {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetSdkOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1944,7 +1947,7 @@ GetSdkOutcome APIGatewayClient::GetSdk(const GetSdkRequest& request) const { auto result = MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET); return result.IsSuccess() ? GetSdkOutcome(result.GetResultWithOwnership()) : GetSdkOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-apigatewaymanagementapi/source/ApiGatewayManagementApiClient.cpp b/generated/src/aws-cpp-sdk-apigatewaymanagementapi/source/ApiGatewayManagementApiClient.cpp index 4ac5ae49a085..870bb1f3790e 100644 --- a/generated/src/aws-cpp-sdk-apigatewaymanagementapi/source/ApiGatewayManagementApiClient.cpp +++ b/generated/src/aws-cpp-sdk-apigatewaymanagementapi/source/ApiGatewayManagementApiClient.cpp @@ -172,7 +172,8 @@ ApiGatewayManagementApiClient::InvokeOperationOutcome ApiGatewayManagementApiCli {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -186,7 +187,7 @@ ApiGatewayManagementApiClient::InvokeOperationOutcome ApiGatewayManagementApiCli 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}}); } diff --git a/generated/src/aws-cpp-sdk-apigatewayv2/source/ApiGatewayV2Client.cpp b/generated/src/aws-cpp-sdk-apigatewayv2/source/ApiGatewayV2Client.cpp index 45852ea60626..659763731c56 100644 --- a/generated/src/aws-cpp-sdk-apigatewayv2/source/ApiGatewayV2Client.cpp +++ b/generated/src/aws-cpp-sdk-apigatewayv2/source/ApiGatewayV2Client.cpp @@ -260,7 +260,8 @@ ApiGatewayV2Client::InvokeOperationOutcome ApiGatewayV2Client::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -274,7 +275,7 @@ ApiGatewayV2Client::InvokeOperationOutcome ApiGatewayV2Client::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}}); } @@ -1144,7 +1145,8 @@ ExportApiOutcome ApiGatewayV2Client::ExportApi(const ExportApiRequest& request) {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> ExportApiOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1160,7 +1162,7 @@ ExportApiOutcome ApiGatewayV2Client::ExportApi(const ExportApiRequest& request) auto result = MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET); return result.IsSuccess() ? ExportApiOutcome(result.GetResultWithOwnership()) : ExportApiOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-appconfig/source/AppConfigClient.cpp b/generated/src/aws-cpp-sdk-appconfig/source/AppConfigClient.cpp index 6081fb94644b..7ed1e7043395 100644 --- a/generated/src/aws-cpp-sdk-appconfig/source/AppConfigClient.cpp +++ b/generated/src/aws-cpp-sdk-appconfig/source/AppConfigClient.cpp @@ -215,7 +215,8 @@ AppConfigClient::InvokeOperationOutcome AppConfigClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -229,7 +230,7 @@ AppConfigClient::InvokeOperationOutcome AppConfigClient::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}}); } @@ -357,7 +358,8 @@ CreateHostedConfigurationVersionOutcome AppConfigClient::CreateHostedConfigurati {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> CreateHostedConfigurationVersionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -375,7 +377,7 @@ CreateHostedConfigurationVersionOutcome AppConfigClient::CreateHostedConfigurati return result.IsSuccess() ? CreateHostedConfigurationVersionOutcome(result.GetResultWithOwnership()) : CreateHostedConfigurationVersionOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -806,7 +808,8 @@ GetHostedConfigurationVersionOutcome AppConfigClient::GetHostedConfigurationVers {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetHostedConfigurationVersionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -825,7 +828,7 @@ GetHostedConfigurationVersionOutcome AppConfigClient::GetHostedConfigurationVers return result.IsSuccess() ? GetHostedConfigurationVersionOutcome(result.GetResultWithOwnership()) : GetHostedConfigurationVersionOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-appconfigdata/source/AppConfigDataClient.cpp b/generated/src/aws-cpp-sdk-appconfigdata/source/AppConfigDataClient.cpp index 0a36a549295d..a19544b78980 100644 --- a/generated/src/aws-cpp-sdk-appconfigdata/source/AppConfigDataClient.cpp +++ b/generated/src/aws-cpp-sdk-appconfigdata/source/AppConfigDataClient.cpp @@ -159,7 +159,8 @@ AppConfigDataClient::InvokeOperationOutcome AppConfigDataClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -173,7 +174,7 @@ AppConfigDataClient::InvokeOperationOutcome AppConfigDataClient::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}}); } @@ -194,7 +195,8 @@ GetLatestConfigurationOutcome AppConfigDataClient::GetLatestConfiguration(const {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetLatestConfigurationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -208,7 +210,7 @@ GetLatestConfigurationOutcome AppConfigDataClient::GetLatestConfiguration(const return result.IsSuccess() ? GetLatestConfigurationOutcome(result.GetResultWithOwnership()) : GetLatestConfigurationOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-appfabric/source/AppFabricClient.cpp b/generated/src/aws-cpp-sdk-appfabric/source/AppFabricClient.cpp index 5e344c9cbb65..316ff178d024 100644 --- a/generated/src/aws-cpp-sdk-appfabric/source/AppFabricClient.cpp +++ b/generated/src/aws-cpp-sdk-appfabric/source/AppFabricClient.cpp @@ -182,7 +182,8 @@ AppFabricClient::InvokeOperationOutcome AppFabricClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -196,7 +197,7 @@ AppFabricClient::InvokeOperationOutcome AppFabricClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-appflow/source/AppflowClient.cpp b/generated/src/aws-cpp-sdk-appflow/source/AppflowClient.cpp index 8033005c87fb..3595780147fa 100644 --- a/generated/src/aws-cpp-sdk-appflow/source/AppflowClient.cpp +++ b/generated/src/aws-cpp-sdk-appflow/source/AppflowClient.cpp @@ -181,7 +181,8 @@ AppflowClient::InvokeOperationOutcome AppflowClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -195,7 +196,7 @@ AppflowClient::InvokeOperationOutcome AppflowClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-appintegrations/source/AppIntegrationsServiceClient.cpp b/generated/src/aws-cpp-sdk-appintegrations/source/AppIntegrationsServiceClient.cpp index 7324e763f40d..fcdfded2d074 100644 --- a/generated/src/aws-cpp-sdk-appintegrations/source/AppIntegrationsServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-appintegrations/source/AppIntegrationsServiceClient.cpp @@ -188,7 +188,8 @@ AppIntegrationsServiceClient::InvokeOperationOutcome AppIntegrationsServiceClien {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -202,7 +203,7 @@ AppIntegrationsServiceClient::InvokeOperationOutcome AppIntegrationsServiceClien 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}}); } diff --git a/generated/src/aws-cpp-sdk-application-autoscaling/source/ApplicationAutoScalingClient.cpp b/generated/src/aws-cpp-sdk-application-autoscaling/source/ApplicationAutoScalingClient.cpp index 9224dedb8fc0..9107f954a7b9 100644 --- a/generated/src/aws-cpp-sdk-application-autoscaling/source/ApplicationAutoScalingClient.cpp +++ b/generated/src/aws-cpp-sdk-application-autoscaling/source/ApplicationAutoScalingClient.cpp @@ -178,7 +178,8 @@ ApplicationAutoScalingClient::InvokeOperationOutcome ApplicationAutoScalingClien {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -190,7 +191,7 @@ ApplicationAutoScalingClient::InvokeOperationOutcome ApplicationAutoScalingClien 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}}); } diff --git a/generated/src/aws-cpp-sdk-application-insights/source/ApplicationInsightsClient.cpp b/generated/src/aws-cpp-sdk-application-insights/source/ApplicationInsightsClient.cpp index ca10765676ea..500da4c9b766 100644 --- a/generated/src/aws-cpp-sdk-application-insights/source/ApplicationInsightsClient.cpp +++ b/generated/src/aws-cpp-sdk-application-insights/source/ApplicationInsightsClient.cpp @@ -193,7 +193,8 @@ ApplicationInsightsClient::InvokeOperationOutcome ApplicationInsightsClient::Inv {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -208,7 +209,7 @@ ApplicationInsightsClient::InvokeOperationOutcome ApplicationInsightsClient::Inv 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}}); } diff --git a/generated/src/aws-cpp-sdk-application-signals/source/ApplicationSignalsClient.cpp b/generated/src/aws-cpp-sdk-application-signals/source/ApplicationSignalsClient.cpp index e6d6e7366eb9..4ca79c2d9aba 100644 --- a/generated/src/aws-cpp-sdk-application-signals/source/ApplicationSignalsClient.cpp +++ b/generated/src/aws-cpp-sdk-application-signals/source/ApplicationSignalsClient.cpp @@ -191,7 +191,8 @@ ApplicationSignalsClient::InvokeOperationOutcome ApplicationSignalsClient::Invok {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -205,7 +206,7 @@ ApplicationSignalsClient::InvokeOperationOutcome ApplicationSignalsClient::Invok 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}}); } diff --git a/generated/src/aws-cpp-sdk-applicationcostprofiler/source/ApplicationCostProfilerClient.cpp b/generated/src/aws-cpp-sdk-applicationcostprofiler/source/ApplicationCostProfilerClient.cpp index 1f1d6312c948..df3672fd466b 100644 --- a/generated/src/aws-cpp-sdk-applicationcostprofiler/source/ApplicationCostProfilerClient.cpp +++ b/generated/src/aws-cpp-sdk-applicationcostprofiler/source/ApplicationCostProfilerClient.cpp @@ -171,7 +171,8 @@ ApplicationCostProfilerClient::InvokeOperationOutcome ApplicationCostProfilerCli {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -185,7 +186,7 @@ ApplicationCostProfilerClient::InvokeOperationOutcome ApplicationCostProfilerCli 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}}); } diff --git a/generated/src/aws-cpp-sdk-appmesh/source/AppMeshClient.cpp b/generated/src/aws-cpp-sdk-appmesh/source/AppMeshClient.cpp index aedeba2a39b0..72f5dc17a8ed 100644 --- a/generated/src/aws-cpp-sdk-appmesh/source/AppMeshClient.cpp +++ b/generated/src/aws-cpp-sdk-appmesh/source/AppMeshClient.cpp @@ -194,7 +194,8 @@ AppMeshClient::InvokeOperationOutcome AppMeshClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -208,7 +209,7 @@ AppMeshClient::InvokeOperationOutcome AppMeshClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-apprunner/source/AppRunnerClient.cpp b/generated/src/aws-cpp-sdk-apprunner/source/AppRunnerClient.cpp index 31ed21a2f9ba..3caed80f2c23 100644 --- a/generated/src/aws-cpp-sdk-apprunner/source/AppRunnerClient.cpp +++ b/generated/src/aws-cpp-sdk-apprunner/source/AppRunnerClient.cpp @@ -192,7 +192,8 @@ AppRunnerClient::InvokeOperationOutcome AppRunnerClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -204,7 +205,7 @@ AppRunnerClient::InvokeOperationOutcome AppRunnerClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-appstream/source/AppStreamClient.cpp b/generated/src/aws-cpp-sdk-appstream/source/AppStreamClient.cpp index 09ef9245d0ea..0f66087f45e8 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/AppStreamClient.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/AppStreamClient.cpp @@ -244,7 +244,8 @@ AppStreamClient::InvokeOperationOutcome AppStreamClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -259,7 +260,7 @@ AppStreamClient::InvokeOperationOutcome AppStreamClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-appsync/source/AppSyncClient.cpp b/generated/src/aws-cpp-sdk-appsync/source/AppSyncClient.cpp index 389b58b05e08..3634ee943d0e 100644 --- a/generated/src/aws-cpp-sdk-appsync/source/AppSyncClient.cpp +++ b/generated/src/aws-cpp-sdk-appsync/source/AppSyncClient.cpp @@ -230,7 +230,8 @@ AppSyncClient::InvokeOperationOutcome AppSyncClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -244,7 +245,7 @@ AppSyncClient::InvokeOperationOutcome AppSyncClient::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}}); } @@ -1024,7 +1025,8 @@ GetIntrospectionSchemaOutcome AppSyncClient::GetIntrospectionSchema(const GetInt {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetIntrospectionSchemaOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1040,7 +1042,7 @@ GetIntrospectionSchemaOutcome AppSyncClient::GetIntrospectionSchema(const GetInt return result.IsSuccess() ? GetIntrospectionSchemaOutcome(result.GetResultWithOwnership()) : GetIntrospectionSchemaOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-arc-region-switch/source/ARCRegionswitchClient.cpp b/generated/src/aws-cpp-sdk-arc-region-switch/source/ARCRegionswitchClient.cpp index 767683db66c6..01d639654962 100644 --- a/generated/src/aws-cpp-sdk-arc-region-switch/source/ARCRegionswitchClient.cpp +++ b/generated/src/aws-cpp-sdk-arc-region-switch/source/ARCRegionswitchClient.cpp @@ -181,7 +181,8 @@ ARCRegionswitchClient::InvokeOperationOutcome ARCRegionswitchClient::InvokeServi {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -193,7 +194,7 @@ ARCRegionswitchClient::InvokeOperationOutcome ARCRegionswitchClient::InvokeServi 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}}); } diff --git a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/ARCZonalShiftClient.cpp b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/ARCZonalShiftClient.cpp index 24523856697f..dd9fb53906d6 100644 --- a/generated/src/aws-cpp-sdk-arc-zonal-shift/source/ARCZonalShiftClient.cpp +++ b/generated/src/aws-cpp-sdk-arc-zonal-shift/source/ARCZonalShiftClient.cpp @@ -172,7 +172,8 @@ ARCZonalShiftClient::InvokeOperationOutcome ARCZonalShiftClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -186,7 +187,7 @@ ARCZonalShiftClient::InvokeOperationOutcome ARCZonalShiftClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-artifact/source/ArtifactClient.cpp b/generated/src/aws-cpp-sdk-artifact/source/ArtifactClient.cpp index 91398162c64a..fa8c2c373247 100644 --- a/generated/src/aws-cpp-sdk-artifact/source/ArtifactClient.cpp +++ b/generated/src/aws-cpp-sdk-artifact/source/ArtifactClient.cpp @@ -173,7 +173,8 @@ ArtifactClient::InvokeOperationOutcome ArtifactClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -187,7 +188,7 @@ ArtifactClient::InvokeOperationOutcome ArtifactClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-athena/source/AthenaClient.cpp b/generated/src/aws-cpp-sdk-athena/source/AthenaClient.cpp index 59f38c402fc8..987c0e3c50b6 100644 --- a/generated/src/aws-cpp-sdk-athena/source/AthenaClient.cpp +++ b/generated/src/aws-cpp-sdk-athena/source/AthenaClient.cpp @@ -225,7 +225,8 @@ AthenaClient::InvokeOperationOutcome AthenaClient::InvokeServiceOperation(const {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -237,7 +238,7 @@ AthenaClient::InvokeOperationOutcome AthenaClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-auditmanager/source/AuditManagerClient.cpp b/generated/src/aws-cpp-sdk-auditmanager/source/AuditManagerClient.cpp index c02e12b5de0a..4f82f5cc0038 100644 --- a/generated/src/aws-cpp-sdk-auditmanager/source/AuditManagerClient.cpp +++ b/generated/src/aws-cpp-sdk-auditmanager/source/AuditManagerClient.cpp @@ -219,7 +219,8 @@ AuditManagerClient::InvokeOperationOutcome AuditManagerClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -233,7 +234,7 @@ AuditManagerClient::InvokeOperationOutcome AuditManagerClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-autoscaling-plans/source/AutoScalingPlansClient.cpp b/generated/src/aws-cpp-sdk-autoscaling-plans/source/AutoScalingPlansClient.cpp index 15c4980356ad..7a7f96c11cd6 100644 --- a/generated/src/aws-cpp-sdk-autoscaling-plans/source/AutoScalingPlansClient.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling-plans/source/AutoScalingPlansClient.cpp @@ -166,7 +166,8 @@ AutoScalingPlansClient::InvokeOperationOutcome AutoScalingPlansClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -178,7 +179,7 @@ AutoScalingPlansClient::InvokeOperationOutcome AutoScalingPlansClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-autoscaling/source/AutoScalingClient.cpp b/generated/src/aws-cpp-sdk-autoscaling/source/AutoScalingClient.cpp index 25782b152fc3..9c4a053896fd 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/source/AutoScalingClient.cpp +++ b/generated/src/aws-cpp-sdk-autoscaling/source/AutoScalingClient.cpp @@ -242,7 +242,8 @@ AutoScalingClient::InvokeOperationOutcome AutoScalingClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -254,7 +255,7 @@ AutoScalingClient::InvokeOperationOutcome AutoScalingClient::InvokeServiceOperat 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}}); } AttachInstancesOutcome AutoScalingClient::AttachInstances(const AttachInstancesRequest& request) const { diff --git a/generated/src/aws-cpp-sdk-awstransfer/source/TransferClient.cpp b/generated/src/aws-cpp-sdk-awstransfer/source/TransferClient.cpp index ec2e7687cdef..16df937b06ea 100644 --- a/generated/src/aws-cpp-sdk-awstransfer/source/TransferClient.cpp +++ b/generated/src/aws-cpp-sdk-awstransfer/source/TransferClient.cpp @@ -226,7 +226,8 @@ TransferClient::InvokeOperationOutcome TransferClient::InvokeServiceOperation(co {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -238,7 +239,7 @@ TransferClient::InvokeOperationOutcome TransferClient::InvokeServiceOperation(co 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}}); } diff --git a/generated/src/aws-cpp-sdk-b2bi/source/B2BIClient.cpp b/generated/src/aws-cpp-sdk-b2bi/source/B2BIClient.cpp index 769d0fdd2cbb..95c27c4e4753 100644 --- a/generated/src/aws-cpp-sdk-b2bi/source/B2BIClient.cpp +++ b/generated/src/aws-cpp-sdk-b2bi/source/B2BIClient.cpp @@ -183,7 +183,8 @@ B2BIClient::InvokeOperationOutcome B2BIClient::InvokeServiceOperation(const Amaz {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -195,7 +196,7 @@ B2BIClient::InvokeOperationOutcome B2BIClient::InvokeServiceOperation(const Amaz 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}}); } diff --git a/generated/src/aws-cpp-sdk-backup-gateway/source/BackupGatewayClient.cpp b/generated/src/aws-cpp-sdk-backup-gateway/source/BackupGatewayClient.cpp index c90ebd12ebee..2c605117dea7 100644 --- a/generated/src/aws-cpp-sdk-backup-gateway/source/BackupGatewayClient.cpp +++ b/generated/src/aws-cpp-sdk-backup-gateway/source/BackupGatewayClient.cpp @@ -181,7 +181,8 @@ BackupGatewayClient::InvokeOperationOutcome BackupGatewayClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -196,7 +197,7 @@ BackupGatewayClient::InvokeOperationOutcome BackupGatewayClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-backup/source/BackupClient.cpp b/generated/src/aws-cpp-sdk-backup/source/BackupClient.cpp index e429d7f50e4f..82096897bfe2 100644 --- a/generated/src/aws-cpp-sdk-backup/source/BackupClient.cpp +++ b/generated/src/aws-cpp-sdk-backup/source/BackupClient.cpp @@ -271,7 +271,8 @@ BackupClient::InvokeOperationOutcome BackupClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -285,7 +286,7 @@ BackupClient::InvokeOperationOutcome BackupClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-backupsearch/source/BackupSearchClient.cpp b/generated/src/aws-cpp-sdk-backupsearch/source/BackupSearchClient.cpp index 5f89dab51ca7..1d59dda8a407 100644 --- a/generated/src/aws-cpp-sdk-backupsearch/source/BackupSearchClient.cpp +++ b/generated/src/aws-cpp-sdk-backupsearch/source/BackupSearchClient.cpp @@ -169,7 +169,8 @@ BackupSearchClient::InvokeOperationOutcome BackupSearchClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -183,7 +184,7 @@ BackupSearchClient::InvokeOperationOutcome BackupSearchClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-batch/source/BatchClient.cpp b/generated/src/aws-cpp-sdk-batch/source/BatchClient.cpp index ddd6b0d8b476..f232d9a30e07 100644 --- a/generated/src/aws-cpp-sdk-batch/source/BatchClient.cpp +++ b/generated/src/aws-cpp-sdk-batch/source/BatchClient.cpp @@ -204,7 +204,8 @@ BatchClient::InvokeOperationOutcome BatchClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -218,7 +219,7 @@ BatchClient::InvokeOperationOutcome BatchClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-bcm-dashboards/source/BCMDashboardsClient.cpp b/generated/src/aws-cpp-sdk-bcm-dashboards/source/BCMDashboardsClient.cpp index 3296aee4784b..e35969c9bbd8 100644 --- a/generated/src/aws-cpp-sdk-bcm-dashboards/source/BCMDashboardsClient.cpp +++ b/generated/src/aws-cpp-sdk-bcm-dashboards/source/BCMDashboardsClient.cpp @@ -171,7 +171,8 @@ BCMDashboardsClient::InvokeOperationOutcome BCMDashboardsClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -183,7 +184,7 @@ BCMDashboardsClient::InvokeOperationOutcome BCMDashboardsClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-bcm-data-exports/source/BCMDataExportsClient.cpp b/generated/src/aws-cpp-sdk-bcm-data-exports/source/BCMDataExportsClient.cpp index 8164421c9ab6..f119ea8052be 100644 --- a/generated/src/aws-cpp-sdk-bcm-data-exports/source/BCMDataExportsClient.cpp +++ b/generated/src/aws-cpp-sdk-bcm-data-exports/source/BCMDataExportsClient.cpp @@ -168,7 +168,8 @@ BCMDataExportsClient::InvokeOperationOutcome BCMDataExportsClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -180,7 +181,7 @@ BCMDataExportsClient::InvokeOperationOutcome BCMDataExportsClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-bcm-pricing-calculator/source/BCMPricingCalculatorClient.cpp b/generated/src/aws-cpp-sdk-bcm-pricing-calculator/source/BCMPricingCalculatorClient.cpp index ab6bbf1128d8..7caa2e6b42e9 100644 --- a/generated/src/aws-cpp-sdk-bcm-pricing-calculator/source/BCMPricingCalculatorClient.cpp +++ b/generated/src/aws-cpp-sdk-bcm-pricing-calculator/source/BCMPricingCalculatorClient.cpp @@ -200,7 +200,8 @@ BCMPricingCalculatorClient::InvokeOperationOutcome BCMPricingCalculatorClient::I {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -212,7 +213,7 @@ BCMPricingCalculatorClient::InvokeOperationOutcome BCMPricingCalculatorClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-bcm-recommended-actions/source/BCMRecommendedActionsClient.cpp b/generated/src/aws-cpp-sdk-bcm-recommended-actions/source/BCMRecommendedActionsClient.cpp index 6396b637651d..3923df05789a 100644 --- a/generated/src/aws-cpp-sdk-bcm-recommended-actions/source/BCMRecommendedActionsClient.cpp +++ b/generated/src/aws-cpp-sdk-bcm-recommended-actions/source/BCMRecommendedActionsClient.cpp @@ -165,7 +165,8 @@ BCMRecommendedActionsClient::InvokeOperationOutcome BCMRecommendedActionsClient: {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -177,7 +178,7 @@ BCMRecommendedActionsClient::InvokeOperationOutcome BCMRecommendedActionsClient: 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}}); } diff --git a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/BedrockAgentRuntimeClient.cpp b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/BedrockAgentRuntimeClient.cpp index 7378d2e08267..74f83750c450 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/BedrockAgentRuntimeClient.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent-runtime/source/BedrockAgentRuntimeClient.cpp @@ -192,14 +192,15 @@ BedrockAgentRuntimeClient::InvokeOperationOutcome BedrockAgentRuntimeClient::Inv {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto result = MakeRequestDeserialize(&request, operationName, httpMethod, [&](Aws::Endpoint::AWSEndpoint& resolvedEndpoint) -> void { resolveUri(resolvedEndpoint); }); return result.IsSuccess() ? InvokeOperationOutcome(result.GetResultWithOwnership()) : InvokeOperationOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}}); } AgenticRetrieveStreamOutcome BedrockAgentRuntimeClient::AgenticRetrieveStream(AgenticRetrieveStreamRequest& request) const { @@ -214,7 +215,8 @@ AgenticRetrieveStreamOutcome BedrockAgentRuntimeClient::AgenticRetrieveStream(Ag {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> AgenticRetrieveStreamOutcome { request.SetResponseStreamFactory([&] { request.GetEventStreamDecoder().Reset(); @@ -234,7 +236,7 @@ AgenticRetrieveStreamOutcome BedrockAgentRuntimeClient::AgenticRetrieveStream(Ag return result.IsSuccess() ? AgenticRetrieveStreamOutcome(result.GetResultWithOwnership()) : AgenticRetrieveStreamOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -571,7 +573,8 @@ InvokeAgentOutcome BedrockAgentRuntimeClient::InvokeAgent(InvokeAgentRequest& re {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeAgentOutcome { request.SetResponseStreamFactory([&] { request.GetEventStreamDecoder().Reset(); @@ -597,7 +600,7 @@ InvokeAgentOutcome BedrockAgentRuntimeClient::InvokeAgent(InvokeAgentRequest& re }); return result.IsSuccess() ? InvokeAgentOutcome(result.GetResultWithOwnership()) : InvokeAgentOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -623,7 +626,8 @@ InvokeFlowOutcome BedrockAgentRuntimeClient::InvokeFlow(InvokeFlowRequest& reque {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeFlowOutcome { request.SetResponseStreamFactory([&] { request.GetEventStreamDecoder().Reset(); @@ -646,7 +650,7 @@ InvokeFlowOutcome BedrockAgentRuntimeClient::InvokeFlow(InvokeFlowRequest& reque }); return result.IsSuccess() ? InvokeFlowOutcome(result.GetResultWithOwnership()) : InvokeFlowOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -667,7 +671,8 @@ InvokeInlineAgentOutcome BedrockAgentRuntimeClient::InvokeInlineAgent(InvokeInli {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeInlineAgentOutcome { request.SetResponseStreamFactory([&] { request.GetEventStreamDecoder().Reset(); @@ -689,7 +694,7 @@ InvokeInlineAgentOutcome BedrockAgentRuntimeClient::InvokeInlineAgent(InvokeInli return result.IsSuccess() ? InvokeInlineAgentOutcome(result.GetResultWithOwnership()) : InvokeInlineAgentOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -819,7 +824,8 @@ OptimizePromptOutcome BedrockAgentRuntimeClient::OptimizePrompt(OptimizePromptRe {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> OptimizePromptOutcome { request.SetResponseStreamFactory([&] { request.GetEventStreamDecoder().Reset(); @@ -839,7 +845,7 @@ OptimizePromptOutcome BedrockAgentRuntimeClient::OptimizePrompt(OptimizePromptRe return result.IsSuccess() ? OptimizePromptOutcome(result.GetResultWithOwnership()) : OptimizePromptOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -903,7 +909,8 @@ RetrieveAndGenerateStreamOutcome BedrockAgentRuntimeClient::RetrieveAndGenerateS {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> RetrieveAndGenerateStreamOutcome { request.SetResponseStreamFactory([&] { request.GetEventStreamDecoder().Reset(); @@ -923,7 +930,7 @@ RetrieveAndGenerateStreamOutcome BedrockAgentRuntimeClient::RetrieveAndGenerateS return result.IsSuccess() ? RetrieveAndGenerateStreamOutcome(result.GetResultWithOwnership()) : RetrieveAndGenerateStreamOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-bedrock-agent/source/BedrockAgentClient.cpp b/generated/src/aws-cpp-sdk-bedrock-agent/source/BedrockAgentClient.cpp index c731f386a8ab..64fbca638adb 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agent/source/BedrockAgentClient.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agent/source/BedrockAgentClient.cpp @@ -232,14 +232,15 @@ BedrockAgentClient::InvokeOperationOutcome BedrockAgentClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto result = MakeRequestDeserialize(&request, operationName, httpMethod, [&](Aws::Endpoint::AWSEndpoint& resolvedEndpoint) -> void { resolveUri(resolvedEndpoint); }); return result.IsSuccess() ? InvokeOperationOutcome(result.GetResultWithOwnership()) : InvokeOperationOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}}); } AssociateAgentCollaboratorOutcome BedrockAgentClient::AssociateAgentCollaborator(const AssociateAgentCollaboratorRequest& request) const { diff --git a/generated/src/aws-cpp-sdk-bedrock-agentcore-control/source/BedrockAgentCoreControlClient.cpp b/generated/src/aws-cpp-sdk-bedrock-agentcore-control/source/BedrockAgentCoreControlClient.cpp index 8547da46ecbd..c6fede453c21 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agentcore-control/source/BedrockAgentCoreControlClient.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agentcore-control/source/BedrockAgentCoreControlClient.cpp @@ -336,7 +336,8 @@ BedrockAgentCoreControlClient::InvokeOperationOutcome BedrockAgentCoreControlCli {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -350,7 +351,7 @@ BedrockAgentCoreControlClient::InvokeOperationOutcome BedrockAgentCoreControlCli 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}}); } diff --git a/generated/src/aws-cpp-sdk-bedrock-agentcore/source/BedrockAgentCoreClient.cpp b/generated/src/aws-cpp-sdk-bedrock-agentcore/source/BedrockAgentCoreClient.cpp index 4ccfd43d1bb4..b7ef7ff1193e 100644 --- a/generated/src/aws-cpp-sdk-bedrock-agentcore/source/BedrockAgentCoreClient.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-agentcore/source/BedrockAgentCoreClient.cpp @@ -233,7 +233,8 @@ BedrockAgentCoreClient::InvokeOperationOutcome BedrockAgentCoreClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -247,7 +248,7 @@ BedrockAgentCoreClient::InvokeOperationOutcome BedrockAgentCoreClient::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}}); } @@ -869,7 +870,8 @@ InvokeAgentRuntimeOutcome BedrockAgentCoreClient::InvokeAgentRuntime(const Invok {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeAgentRuntimeOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -885,7 +887,7 @@ InvokeAgentRuntimeOutcome BedrockAgentCoreClient::InvokeAgentRuntime(const Invok return result.IsSuccess() ? InvokeAgentRuntimeOutcome(result.GetResultWithOwnership()) : InvokeAgentRuntimeOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -907,7 +909,8 @@ InvokeAgentRuntimeCommandOutcome BedrockAgentCoreClient::InvokeAgentRuntimeComma {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeAgentRuntimeCommandOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -935,7 +938,7 @@ InvokeAgentRuntimeCommandOutcome BedrockAgentCoreClient::InvokeAgentRuntimeComma return result.IsSuccess() ? InvokeAgentRuntimeCommandOutcome(result.GetResultWithOwnership()) : InvokeAgentRuntimeCommandOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -980,7 +983,8 @@ InvokeCodeInterpreterOutcome BedrockAgentCoreClient::InvokeCodeInterpreter(Invok {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeCodeInterpreterOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1008,7 +1012,7 @@ InvokeCodeInterpreterOutcome BedrockAgentCoreClient::InvokeCodeInterpreter(Invok return result.IsSuccess() ? InvokeCodeInterpreterOutcome(result.GetResultWithOwnership()) : InvokeCodeInterpreterOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -1035,7 +1039,8 @@ InvokeHarnessOutcome BedrockAgentCoreClient::InvokeHarness(InvokeHarnessRequest& {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeHarnessOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1061,7 +1066,7 @@ InvokeHarnessOutcome BedrockAgentCoreClient::InvokeHarness(InvokeHarnessRequest& return result.IsSuccess() ? InvokeHarnessOutcome(result.GetResultWithOwnership()) : InvokeHarnessOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-bedrock-data-automation-runtime/source/BedrockDataAutomationRuntimeClient.cpp b/generated/src/aws-cpp-sdk-bedrock-data-automation-runtime/source/BedrockDataAutomationRuntimeClient.cpp index e68cc59815cf..a8dfada86659 100644 --- a/generated/src/aws-cpp-sdk-bedrock-data-automation-runtime/source/BedrockDataAutomationRuntimeClient.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-data-automation-runtime/source/BedrockDataAutomationRuntimeClient.cpp @@ -167,7 +167,8 @@ BedrockDataAutomationRuntimeClient::InvokeOperationOutcome BedrockDataAutomation {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto result = MakeRequestDeserialize(&request, operationName, httpMethod, @@ -175,7 +176,7 @@ BedrockDataAutomationRuntimeClient::InvokeOperationOutcome BedrockDataAutomation return result.IsSuccess() ? InvokeOperationOutcome(result.GetResultWithOwnership()) : InvokeOperationOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}}); } GetDataAutomationStatusOutcome BedrockDataAutomationRuntimeClient::GetDataAutomationStatus( diff --git a/generated/src/aws-cpp-sdk-bedrock-data-automation/source/BedrockDataAutomationClient.cpp b/generated/src/aws-cpp-sdk-bedrock-data-automation/source/BedrockDataAutomationClient.cpp index c8992f22ac77..bc0c36463ad1 100644 --- a/generated/src/aws-cpp-sdk-bedrock-data-automation/source/BedrockDataAutomationClient.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-data-automation/source/BedrockDataAutomationClient.cpp @@ -187,14 +187,15 @@ BedrockDataAutomationClient::InvokeOperationOutcome BedrockDataAutomationClient: {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto result = MakeRequestDeserialize(&request, operationName, httpMethod, [&](Aws::Endpoint::AWSEndpoint& resolvedEndpoint) -> void { resolveUri(resolvedEndpoint); }); return result.IsSuccess() ? InvokeOperationOutcome(result.GetResultWithOwnership()) : InvokeOperationOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}}); } CopyBlueprintStageOutcome BedrockDataAutomationClient::CopyBlueprintStage(const CopyBlueprintStageRequest& request) const { diff --git a/generated/src/aws-cpp-sdk-bedrock-runtime/source/BedrockRuntimeClient.cpp b/generated/src/aws-cpp-sdk-bedrock-runtime/source/BedrockRuntimeClient.cpp index 2e8bb3bbf1c1..280459964028 100644 --- a/generated/src/aws-cpp-sdk-bedrock-runtime/source/BedrockRuntimeClient.cpp +++ b/generated/src/aws-cpp-sdk-bedrock-runtime/source/BedrockRuntimeClient.cpp @@ -205,14 +205,15 @@ BedrockRuntimeClient::InvokeOperationOutcome BedrockRuntimeClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto result = MakeRequestDeserialize(&request, operationName, httpMethod, [&](Aws::Endpoint::AWSEndpoint& resolvedEndpoint) -> void { resolveUri(resolvedEndpoint); }); return result.IsSuccess() ? InvokeOperationOutcome(result.GetResultWithOwnership()) : InvokeOperationOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}}); } ApplyGuardrailOutcome BedrockRuntimeClient::ApplyGuardrail(const ApplyGuardrailRequest& request) const { @@ -273,7 +274,8 @@ ConverseStreamOutcome BedrockRuntimeClient::ConverseStream(ConverseStreamRequest {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> ConverseStreamOutcome { request.SetResponseStreamFactory([&] { request.GetEventStreamDecoder().Reset(); @@ -296,7 +298,7 @@ ConverseStreamOutcome BedrockRuntimeClient::ConverseStream(ConverseStreamRequest return result.IsSuccess() ? ConverseStreamOutcome(result.GetResultWithOwnership()) : ConverseStreamOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -357,7 +359,8 @@ InvokeModelOutcome BedrockRuntimeClient::InvokeModel(const InvokeModelRequest& r {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeModelOutcome { auto result = MakeRequestWithUnparsedResponse(&request, request.GetServiceRequestName(), Aws::Http::HttpMethod::HTTP_POST, [&](Aws::Endpoint::AWSEndpoint& resolvedEndpoint) -> void { @@ -367,7 +370,7 @@ InvokeModelOutcome BedrockRuntimeClient::InvokeModel(const InvokeModelRequest& r }); return result.IsSuccess() ? InvokeModelOutcome(result.GetResultWithOwnership()) : InvokeModelOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -470,7 +473,8 @@ InvokeModelWithResponseStreamOutcome BedrockRuntimeClient::InvokeModelWithRespon {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeModelWithResponseStreamOutcome { request.SetResponseStreamFactory([&] { request.GetEventStreamDecoder().Reset(); @@ -493,7 +497,7 @@ InvokeModelWithResponseStreamOutcome BedrockRuntimeClient::InvokeModelWithRespon return result.IsSuccess() ? InvokeModelWithResponseStreamOutcome(result.GetResultWithOwnership()) : InvokeModelWithResponseStreamOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-bedrock/source/BedrockClient.cpp b/generated/src/aws-cpp-sdk-bedrock/source/BedrockClient.cpp index 9c559d45346f..5ea39193be47 100644 --- a/generated/src/aws-cpp-sdk-bedrock/source/BedrockClient.cpp +++ b/generated/src/aws-cpp-sdk-bedrock/source/BedrockClient.cpp @@ -297,14 +297,15 @@ BedrockClient::InvokeOperationOutcome BedrockClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto result = MakeRequestDeserialize(&request, operationName, httpMethod, [&](Aws::Endpoint::AWSEndpoint& resolvedEndpoint) -> void { resolveUri(resolvedEndpoint); }); return result.IsSuccess() ? InvokeOperationOutcome(result.GetResultWithOwnership()) : InvokeOperationOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}}); } BatchDeleteAdvancedPromptOptimizationJobOutcome BedrockClient::BatchDeleteAdvancedPromptOptimizationJob( diff --git a/generated/src/aws-cpp-sdk-billing/source/BillingClient.cpp b/generated/src/aws-cpp-sdk-billing/source/BillingClient.cpp index 8ab3c8633d56..f0a5e84a9520 100644 --- a/generated/src/aws-cpp-sdk-billing/source/BillingClient.cpp +++ b/generated/src/aws-cpp-sdk-billing/source/BillingClient.cpp @@ -178,7 +178,8 @@ BillingClient::InvokeOperationOutcome BillingClient::InvokeServiceOperation(cons {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -190,7 +191,7 @@ BillingClient::InvokeOperationOutcome BillingClient::InvokeServiceOperation(cons 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}}); } diff --git a/generated/src/aws-cpp-sdk-billingconductor/source/BillingConductorClient.cpp b/generated/src/aws-cpp-sdk-billingconductor/source/BillingConductorClient.cpp index 784dde2fd073..ea74c4deb58e 100644 --- a/generated/src/aws-cpp-sdk-billingconductor/source/BillingConductorClient.cpp +++ b/generated/src/aws-cpp-sdk-billingconductor/source/BillingConductorClient.cpp @@ -195,7 +195,8 @@ BillingConductorClient::InvokeOperationOutcome BillingConductorClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -209,7 +210,7 @@ BillingConductorClient::InvokeOperationOutcome BillingConductorClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-braket/source/BraketClient.cpp b/generated/src/aws-cpp-sdk-braket/source/BraketClient.cpp index 4a672e4a92ea..49ab29257445 100644 --- a/generated/src/aws-cpp-sdk-braket/source/BraketClient.cpp +++ b/generated/src/aws-cpp-sdk-braket/source/BraketClient.cpp @@ -173,7 +173,8 @@ BraketClient::InvokeOperationOutcome BraketClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -187,7 +188,7 @@ BraketClient::InvokeOperationOutcome BraketClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-budgets/source/BudgetsClient.cpp b/generated/src/aws-cpp-sdk-budgets/source/BudgetsClient.cpp index ebac65e2de5b..29299c1d456a 100644 --- a/generated/src/aws-cpp-sdk-budgets/source/BudgetsClient.cpp +++ b/generated/src/aws-cpp-sdk-budgets/source/BudgetsClient.cpp @@ -181,7 +181,8 @@ BudgetsClient::InvokeOperationOutcome BudgetsClient::InvokeServiceOperation(cons {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -193,7 +194,7 @@ BudgetsClient::InvokeOperationOutcome BudgetsClient::InvokeServiceOperation(cons 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}}); } diff --git a/generated/src/aws-cpp-sdk-ce/source/CostExplorerClient.cpp b/generated/src/aws-cpp-sdk-ce/source/CostExplorerClient.cpp index d9626ace59a4..06e129b947ca 100644 --- a/generated/src/aws-cpp-sdk-ce/source/CostExplorerClient.cpp +++ b/generated/src/aws-cpp-sdk-ce/source/CostExplorerClient.cpp @@ -203,7 +203,8 @@ CostExplorerClient::InvokeOperationOutcome CostExplorerClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -215,7 +216,7 @@ CostExplorerClient::InvokeOperationOutcome CostExplorerClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-chatbot/source/ChatbotClient.cpp b/generated/src/aws-cpp-sdk-chatbot/source/ChatbotClient.cpp index b3662d0cbee0..05c967bc9fc0 100644 --- a/generated/src/aws-cpp-sdk-chatbot/source/ChatbotClient.cpp +++ b/generated/src/aws-cpp-sdk-chatbot/source/ChatbotClient.cpp @@ -190,7 +190,8 @@ ChatbotClient::InvokeOperationOutcome ChatbotClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -204,7 +205,7 @@ ChatbotClient::InvokeOperationOutcome ChatbotClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/ChimeSDKIdentityClient.cpp b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/ChimeSDKIdentityClient.cpp index 043de40aeff1..1ee5edc21242 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-identity/source/ChimeSDKIdentityClient.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-identity/source/ChimeSDKIdentityClient.cpp @@ -191,7 +191,8 @@ ChimeSDKIdentityClient::InvokeOperationOutcome ChimeSDKIdentityClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -205,7 +206,7 @@ ChimeSDKIdentityClient::InvokeOperationOutcome ChimeSDKIdentityClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/ChimeSDKMediaPipelinesClient.cpp b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/ChimeSDKMediaPipelinesClient.cpp index 91486fcc3863..26be696d1ec0 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/ChimeSDKMediaPipelinesClient.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-media-pipelines/source/ChimeSDKMediaPipelinesClient.cpp @@ -196,7 +196,8 @@ ChimeSDKMediaPipelinesClient::InvokeOperationOutcome ChimeSDKMediaPipelinesClien {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -210,7 +211,7 @@ ChimeSDKMediaPipelinesClient::InvokeOperationOutcome ChimeSDKMediaPipelinesClien 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}}); } diff --git a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/ChimeSDKMeetingsClient.cpp b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/ChimeSDKMeetingsClient.cpp index 330fc7a42c12..dede70ab2ca1 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/ChimeSDKMeetingsClient.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-meetings/source/ChimeSDKMeetingsClient.cpp @@ -177,7 +177,8 @@ ChimeSDKMeetingsClient::InvokeOperationOutcome ChimeSDKMeetingsClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -191,7 +192,7 @@ ChimeSDKMeetingsClient::InvokeOperationOutcome ChimeSDKMeetingsClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/ChimeSDKMessagingClient.cpp b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/ChimeSDKMessagingClient.cpp index d3c1d7eca4f9..ea443d7a3022 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/ChimeSDKMessagingClient.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-messaging/source/ChimeSDKMessagingClient.cpp @@ -212,7 +212,8 @@ ChimeSDKMessagingClient::InvokeOperationOutcome ChimeSDKMessagingClient::InvokeS {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -226,7 +227,7 @@ ChimeSDKMessagingClient::InvokeOperationOutcome ChimeSDKMessagingClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/ChimeSDKVoiceClient.cpp b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/ChimeSDKVoiceClient.cpp index 9fcebd2403c3..7ed026e88463 100644 --- a/generated/src/aws-cpp-sdk-chime-sdk-voice/source/ChimeSDKVoiceClient.cpp +++ b/generated/src/aws-cpp-sdk-chime-sdk-voice/source/ChimeSDKVoiceClient.cpp @@ -243,7 +243,8 @@ ChimeSDKVoiceClient::InvokeOperationOutcome ChimeSDKVoiceClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -257,7 +258,7 @@ ChimeSDKVoiceClient::InvokeOperationOutcome ChimeSDKVoiceClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-chime/source/ChimeClient.cpp b/generated/src/aws-cpp-sdk-chime/source/ChimeClient.cpp index 7339969a3be2..75d362aa8e47 100644 --- a/generated/src/aws-cpp-sdk-chime/source/ChimeClient.cpp +++ b/generated/src/aws-cpp-sdk-chime/source/ChimeClient.cpp @@ -218,7 +218,8 @@ ChimeClient::InvokeOperationOutcome ChimeClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -232,7 +233,7 @@ ChimeClient::InvokeOperationOutcome ChimeClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-cleanrooms/source/CleanRoomsClient.cpp b/generated/src/aws-cpp-sdk-cleanrooms/source/CleanRoomsClient.cpp index b253f3f292b6..11cca8bc31ee 100644 --- a/generated/src/aws-cpp-sdk-cleanrooms/source/CleanRoomsClient.cpp +++ b/generated/src/aws-cpp-sdk-cleanrooms/source/CleanRoomsClient.cpp @@ -259,7 +259,8 @@ CleanRoomsClient::InvokeOperationOutcome CleanRoomsClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -273,7 +274,7 @@ CleanRoomsClient::InvokeOperationOutcome CleanRoomsClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-cleanroomsml/source/CleanRoomsMLClient.cpp b/generated/src/aws-cpp-sdk-cleanroomsml/source/CleanRoomsMLClient.cpp index 49d54a78edec..d6d5fc665318 100644 --- a/generated/src/aws-cpp-sdk-cleanroomsml/source/CleanRoomsMLClient.cpp +++ b/generated/src/aws-cpp-sdk-cleanroomsml/source/CleanRoomsMLClient.cpp @@ -216,7 +216,8 @@ CleanRoomsMLClient::InvokeOperationOutcome CleanRoomsMLClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -230,7 +231,7 @@ CleanRoomsMLClient::InvokeOperationOutcome CleanRoomsMLClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-cloud9/source/Cloud9Client.cpp b/generated/src/aws-cpp-sdk-cloud9/source/Cloud9Client.cpp index b3d9d24b8624..5c462a9bc96e 100644 --- a/generated/src/aws-cpp-sdk-cloud9/source/Cloud9Client.cpp +++ b/generated/src/aws-cpp-sdk-cloud9/source/Cloud9Client.cpp @@ -168,7 +168,8 @@ Cloud9Client::InvokeOperationOutcome Cloud9Client::InvokeServiceOperation(const {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -180,7 +181,7 @@ Cloud9Client::InvokeOperationOutcome Cloud9Client::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}}); } diff --git a/generated/src/aws-cpp-sdk-cloudcontrol/source/CloudControlApiClient.cpp b/generated/src/aws-cpp-sdk-cloudcontrol/source/CloudControlApiClient.cpp index d55674a287b5..c5baeca41a8f 100644 --- a/generated/src/aws-cpp-sdk-cloudcontrol/source/CloudControlApiClient.cpp +++ b/generated/src/aws-cpp-sdk-cloudcontrol/source/CloudControlApiClient.cpp @@ -167,7 +167,8 @@ CloudControlApiClient::InvokeOperationOutcome CloudControlApiClient::InvokeServi {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -179,7 +180,7 @@ CloudControlApiClient::InvokeOperationOutcome CloudControlApiClient::InvokeServi 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}}); } diff --git a/generated/src/aws-cpp-sdk-clouddirectory/source/CloudDirectoryClient.cpp b/generated/src/aws-cpp-sdk-clouddirectory/source/CloudDirectoryClient.cpp index 37b84c6e1e91..2160c7941ab6 100644 --- a/generated/src/aws-cpp-sdk-clouddirectory/source/CloudDirectoryClient.cpp +++ b/generated/src/aws-cpp-sdk-clouddirectory/source/CloudDirectoryClient.cpp @@ -223,7 +223,8 @@ CloudDirectoryClient::InvokeOperationOutcome CloudDirectoryClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -237,7 +238,7 @@ CloudDirectoryClient::InvokeOperationOutcome CloudDirectoryClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-cloudformation/source/CloudFormationClient.cpp b/generated/src/aws-cpp-sdk-cloudformation/source/CloudFormationClient.cpp index 05bd4e5f4535..737f51c9c428 100644 --- a/generated/src/aws-cpp-sdk-cloudformation/source/CloudFormationClient.cpp +++ b/generated/src/aws-cpp-sdk-cloudformation/source/CloudFormationClient.cpp @@ -267,7 +267,8 @@ CloudFormationClient::InvokeOperationOutcome CloudFormationClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -279,7 +280,7 @@ CloudFormationClient::InvokeOperationOutcome CloudFormationClient::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}}); } ActivateOrganizationsAccessOutcome CloudFormationClient::ActivateOrganizationsAccess( diff --git a/generated/src/aws-cpp-sdk-cloudfront-keyvaluestore/source/CloudFrontKeyValueStoreClient.cpp b/generated/src/aws-cpp-sdk-cloudfront-keyvaluestore/source/CloudFrontKeyValueStoreClient.cpp index 4a46ed1aa49b..d1e181edf6c1 100644 --- a/generated/src/aws-cpp-sdk-cloudfront-keyvaluestore/source/CloudFrontKeyValueStoreClient.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront-keyvaluestore/source/CloudFrontKeyValueStoreClient.cpp @@ -175,7 +175,8 @@ CloudFrontKeyValueStoreClient::InvokeOperationOutcome CloudFrontKeyValueStoreCli {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -189,7 +190,7 @@ CloudFrontKeyValueStoreClient::InvokeOperationOutcome CloudFrontKeyValueStoreCli 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}}); } diff --git a/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontClient.cpp b/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontClient.cpp index b82efb25eeff..519755bc9d60 100644 --- a/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontClient.cpp +++ b/generated/src/aws-cpp-sdk-cloudfront/source/CloudFrontClient.cpp @@ -324,7 +324,8 @@ CloudFrontClient::InvokeOperationOutcome CloudFrontClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -338,7 +339,7 @@ CloudFrontClient::InvokeOperationOutcome CloudFrontClient::InvokeServiceOperatio 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}}); } AssociateAlias2020_05_31Outcome CloudFrontClient::AssociateAlias2020_05_31(const AssociateAlias2020_05_31Request& request) const { @@ -1429,7 +1430,8 @@ GetConnectionFunction2020_05_31Outcome CloudFrontClient::GetConnectionFunction20 {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetConnectionFunction2020_05_31Outcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1444,7 +1446,7 @@ GetConnectionFunction2020_05_31Outcome CloudFrontClient::GetConnectionFunction20 return result.IsSuccess() ? GetConnectionFunction2020_05_31Outcome(result.GetResultWithOwnership()) : GetConnectionFunction2020_05_31Outcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -1695,7 +1697,8 @@ GetFunction2020_05_31Outcome CloudFrontClient::GetFunction2020_05_31(const GetFu {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetFunction2020_05_31Outcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1710,7 +1713,7 @@ GetFunction2020_05_31Outcome CloudFrontClient::GetFunction2020_05_31(const GetFu return result.IsSuccess() ? GetFunction2020_05_31Outcome(result.GetResultWithOwnership()) : GetFunction2020_05_31Outcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-cloudhsm/source/CloudHSMClient.cpp b/generated/src/aws-cpp-sdk-cloudhsm/source/CloudHSMClient.cpp index fe13b7418e54..e5154be6f295 100644 --- a/generated/src/aws-cpp-sdk-cloudhsm/source/CloudHSMClient.cpp +++ b/generated/src/aws-cpp-sdk-cloudhsm/source/CloudHSMClient.cpp @@ -155,7 +155,8 @@ CloudHSMClient::InvokeOperationOutcome CloudHSMClient::InvokeServiceOperation(co {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -167,6 +168,6 @@ CloudHSMClient::InvokeOperationOutcome CloudHSMClient::InvokeServiceOperation(co 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}}); } diff --git a/generated/src/aws-cpp-sdk-cloudhsmv2/source/CloudHSMV2Client.cpp b/generated/src/aws-cpp-sdk-cloudhsmv2/source/CloudHSMV2Client.cpp index a82ae40e6af3..dacaeff923d6 100644 --- a/generated/src/aws-cpp-sdk-cloudhsmv2/source/CloudHSMV2Client.cpp +++ b/generated/src/aws-cpp-sdk-cloudhsmv2/source/CloudHSMV2Client.cpp @@ -173,7 +173,8 @@ CloudHSMV2Client::InvokeOperationOutcome CloudHSMV2Client::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -185,7 +186,7 @@ CloudHSMV2Client::InvokeOperationOutcome CloudHSMV2Client::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-cloudsearch/source/CloudSearchClient.cpp b/generated/src/aws-cpp-sdk-cloudsearch/source/CloudSearchClient.cpp index 613072f41396..bf227aec7b7d 100644 --- a/generated/src/aws-cpp-sdk-cloudsearch/source/CloudSearchClient.cpp +++ b/generated/src/aws-cpp-sdk-cloudsearch/source/CloudSearchClient.cpp @@ -202,7 +202,8 @@ CloudSearchClient::InvokeOperationOutcome CloudSearchClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -214,7 +215,7 @@ CloudSearchClient::InvokeOperationOutcome CloudSearchClient::InvokeServiceOperat 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}}); } BuildSuggestersOutcome CloudSearchClient::BuildSuggesters(const BuildSuggestersRequest& request) const { diff --git a/generated/src/aws-cpp-sdk-cloudsearchdomain/source/CloudSearchDomainClient.cpp b/generated/src/aws-cpp-sdk-cloudsearchdomain/source/CloudSearchDomainClient.cpp index 9001d299bbea..520b953898fd 100644 --- a/generated/src/aws-cpp-sdk-cloudsearchdomain/source/CloudSearchDomainClient.cpp +++ b/generated/src/aws-cpp-sdk-cloudsearchdomain/source/CloudSearchDomainClient.cpp @@ -168,7 +168,8 @@ CloudSearchDomainClient::InvokeOperationOutcome CloudSearchDomainClient::InvokeS {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -182,7 +183,7 @@ CloudSearchDomainClient::InvokeOperationOutcome CloudSearchDomainClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-cloudtrail-data/source/CloudTrailDataClient.cpp b/generated/src/aws-cpp-sdk-cloudtrail-data/source/CloudTrailDataClient.cpp index 9ffa9d8d256c..7cf280d1d185 100644 --- a/generated/src/aws-cpp-sdk-cloudtrail-data/source/CloudTrailDataClient.cpp +++ b/generated/src/aws-cpp-sdk-cloudtrail-data/source/CloudTrailDataClient.cpp @@ -158,7 +158,8 @@ CloudTrailDataClient::InvokeOperationOutcome CloudTrailDataClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -172,7 +173,7 @@ CloudTrailDataClient::InvokeOperationOutcome CloudTrailDataClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-cloudtrail/source/CloudTrailClient.cpp b/generated/src/aws-cpp-sdk-cloudtrail/source/CloudTrailClient.cpp index ca0c7aac19a5..e45e8148772a 100644 --- a/generated/src/aws-cpp-sdk-cloudtrail/source/CloudTrailClient.cpp +++ b/generated/src/aws-cpp-sdk-cloudtrail/source/CloudTrailClient.cpp @@ -215,7 +215,8 @@ CloudTrailClient::InvokeOperationOutcome CloudTrailClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -227,7 +228,7 @@ CloudTrailClient::InvokeOperationOutcome CloudTrailClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-cloudwatchomni/source/CloudWatchOmniClient.cpp b/generated/src/aws-cpp-sdk-cloudwatchomni/source/CloudWatchOmniClient.cpp index 49b790af8181..e74b162ffe6f 100644 --- a/generated/src/aws-cpp-sdk-cloudwatchomni/source/CloudWatchOmniClient.cpp +++ b/generated/src/aws-cpp-sdk-cloudwatchomni/source/CloudWatchOmniClient.cpp @@ -217,7 +217,8 @@ CloudWatchOmniClient::InvokeOperationOutcome CloudWatchOmniClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -232,7 +233,7 @@ CloudWatchOmniClient::InvokeOperationOutcome CloudWatchOmniClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-codeartifact/source/CodeArtifactClient.cpp b/generated/src/aws-cpp-sdk-codeartifact/source/CodeArtifactClient.cpp index 36c307017df6..7cbe68f39e42 100644 --- a/generated/src/aws-cpp-sdk-codeartifact/source/CodeArtifactClient.cpp +++ b/generated/src/aws-cpp-sdk-codeartifact/source/CodeArtifactClient.cpp @@ -209,7 +209,8 @@ CodeArtifactClient::InvokeOperationOutcome CodeArtifactClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -223,7 +224,7 @@ CodeArtifactClient::InvokeOperationOutcome CodeArtifactClient::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}}); } @@ -803,7 +804,8 @@ GetPackageVersionAssetOutcome CodeArtifactClient::GetPackageVersionAsset(const G {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetPackageVersionAssetOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -817,7 +819,7 @@ GetPackageVersionAssetOutcome CodeArtifactClient::GetPackageVersionAsset(const G return result.IsSuccess() ? GetPackageVersionAssetOutcome(result.GetResultWithOwnership()) : GetPackageVersionAssetOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-codebuild/source/CodeBuildClient.cpp b/generated/src/aws-cpp-sdk-codebuild/source/CodeBuildClient.cpp index 9bd4608b643c..febceaaa0ff9 100644 --- a/generated/src/aws-cpp-sdk-codebuild/source/CodeBuildClient.cpp +++ b/generated/src/aws-cpp-sdk-codebuild/source/CodeBuildClient.cpp @@ -214,7 +214,8 @@ CodeBuildClient::InvokeOperationOutcome CodeBuildClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -226,7 +227,7 @@ CodeBuildClient::InvokeOperationOutcome CodeBuildClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-codecatalyst/source/CodeCatalystClient.cpp b/generated/src/aws-cpp-sdk-codecatalyst/source/CodeCatalystClient.cpp index a912b9db220f..bf06c85215e8 100644 --- a/generated/src/aws-cpp-sdk-codecatalyst/source/CodeCatalystClient.cpp +++ b/generated/src/aws-cpp-sdk-codecatalyst/source/CodeCatalystClient.cpp @@ -146,7 +146,8 @@ CodeCatalystClient::InvokeOperationOutcome CodeCatalystClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -160,7 +161,7 @@ CodeCatalystClient::InvokeOperationOutcome CodeCatalystClient::InvokeServiceOper return InvokeOperationOutcome{MakeRequest(request, endpointResolutionOutcome.GetResult(), httpMethod, signerName)}; }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}}); } diff --git a/generated/src/aws-cpp-sdk-codecommit/source/CodeCommitClient.cpp b/generated/src/aws-cpp-sdk-codecommit/source/CodeCommitClient.cpp index 9a68607b8a81..ca96d5067cb5 100644 --- a/generated/src/aws-cpp-sdk-codecommit/source/CodeCommitClient.cpp +++ b/generated/src/aws-cpp-sdk-codecommit/source/CodeCommitClient.cpp @@ -235,7 +235,8 @@ CodeCommitClient::InvokeOperationOutcome CodeCommitClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -247,7 +248,7 @@ CodeCommitClient::InvokeOperationOutcome CodeCommitClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-codeconnections/source/CodeConnectionsClient.cpp b/generated/src/aws-cpp-sdk-codeconnections/source/CodeConnectionsClient.cpp index 9baa1bf24164..2211ed8e6906 100644 --- a/generated/src/aws-cpp-sdk-codeconnections/source/CodeConnectionsClient.cpp +++ b/generated/src/aws-cpp-sdk-codeconnections/source/CodeConnectionsClient.cpp @@ -186,7 +186,8 @@ CodeConnectionsClient::InvokeOperationOutcome CodeConnectionsClient::InvokeServi {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -201,7 +202,7 @@ CodeConnectionsClient::InvokeOperationOutcome CodeConnectionsClient::InvokeServi 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}}); } diff --git a/generated/src/aws-cpp-sdk-codedeploy/source/CodeDeployClient.cpp b/generated/src/aws-cpp-sdk-codedeploy/source/CodeDeployClient.cpp index 8fc07b4f40d9..25a8ff4fe19e 100644 --- a/generated/src/aws-cpp-sdk-codedeploy/source/CodeDeployClient.cpp +++ b/generated/src/aws-cpp-sdk-codedeploy/source/CodeDeployClient.cpp @@ -198,7 +198,8 @@ CodeDeployClient::InvokeOperationOutcome CodeDeployClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -210,7 +211,7 @@ CodeDeployClient::InvokeOperationOutcome CodeDeployClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/CodeGuruReviewerClient.cpp b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/CodeGuruReviewerClient.cpp index 1e8f33b7e6d0..0e5f1caba4c6 100644 --- a/generated/src/aws-cpp-sdk-codeguru-reviewer/source/CodeGuruReviewerClient.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-reviewer/source/CodeGuruReviewerClient.cpp @@ -175,7 +175,8 @@ CodeGuruReviewerClient::InvokeOperationOutcome CodeGuruReviewerClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -189,7 +190,7 @@ CodeGuruReviewerClient::InvokeOperationOutcome CodeGuruReviewerClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-codeguru-security/source/CodeGuruSecurityClient.cpp b/generated/src/aws-cpp-sdk-codeguru-security/source/CodeGuruSecurityClient.cpp index 7cd3c573747b..578d7b05bb82 100644 --- a/generated/src/aws-cpp-sdk-codeguru-security/source/CodeGuruSecurityClient.cpp +++ b/generated/src/aws-cpp-sdk-codeguru-security/source/CodeGuruSecurityClient.cpp @@ -174,7 +174,8 @@ CodeGuruSecurityClient::InvokeOperationOutcome CodeGuruSecurityClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -188,7 +189,7 @@ CodeGuruSecurityClient::InvokeOperationOutcome CodeGuruSecurityClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-codeguruprofiler/source/CodeGuruProfilerClient.cpp b/generated/src/aws-cpp-sdk-codeguruprofiler/source/CodeGuruProfilerClient.cpp index f7a859883fd5..1a616aff86a6 100644 --- a/generated/src/aws-cpp-sdk-codeguruprofiler/source/CodeGuruProfilerClient.cpp +++ b/generated/src/aws-cpp-sdk-codeguruprofiler/source/CodeGuruProfilerClient.cpp @@ -188,7 +188,8 @@ CodeGuruProfilerClient::InvokeOperationOutcome CodeGuruProfilerClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -202,7 +203,7 @@ CodeGuruProfilerClient::InvokeOperationOutcome CodeGuruProfilerClient::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}}); } @@ -382,7 +383,8 @@ GetProfileOutcome CodeGuruProfilerClient::GetProfile(const GetProfileRequest& re {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetProfileOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -397,7 +399,7 @@ GetProfileOutcome CodeGuruProfilerClient::GetProfile(const GetProfileRequest& re auto result = MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET); return result.IsSuccess() ? GetProfileOutcome(result.GetResultWithOwnership()) : GetProfileOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-codepipeline/source/CodePipelineClient.cpp b/generated/src/aws-cpp-sdk-codepipeline/source/CodePipelineClient.cpp index 9f2733a4d823..668e5caa9aa1 100644 --- a/generated/src/aws-cpp-sdk-codepipeline/source/CodePipelineClient.cpp +++ b/generated/src/aws-cpp-sdk-codepipeline/source/CodePipelineClient.cpp @@ -200,7 +200,8 @@ CodePipelineClient::InvokeOperationOutcome CodePipelineClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -212,7 +213,7 @@ CodePipelineClient::InvokeOperationOutcome CodePipelineClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-codestar-connections/source/CodeStarconnectionsClient.cpp b/generated/src/aws-cpp-sdk-codestar-connections/source/CodeStarconnectionsClient.cpp index c7dca7ccafd6..6bd9df74602c 100644 --- a/generated/src/aws-cpp-sdk-codestar-connections/source/CodeStarconnectionsClient.cpp +++ b/generated/src/aws-cpp-sdk-codestar-connections/source/CodeStarconnectionsClient.cpp @@ -187,7 +187,8 @@ CodeStarconnectionsClient::InvokeOperationOutcome CodeStarconnectionsClient::Inv {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -199,7 +200,7 @@ CodeStarconnectionsClient::InvokeOperationOutcome CodeStarconnectionsClient::Inv 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}}); } diff --git a/generated/src/aws-cpp-sdk-codestar-notifications/source/CodeStarNotificationsClient.cpp b/generated/src/aws-cpp-sdk-codestar-notifications/source/CodeStarNotificationsClient.cpp index b406133c7aca..0682e314e6f6 100644 --- a/generated/src/aws-cpp-sdk-codestar-notifications/source/CodeStarNotificationsClient.cpp +++ b/generated/src/aws-cpp-sdk-codestar-notifications/source/CodeStarNotificationsClient.cpp @@ -178,7 +178,8 @@ CodeStarNotificationsClient::InvokeOperationOutcome CodeStarNotificationsClient: {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -192,7 +193,7 @@ CodeStarNotificationsClient::InvokeOperationOutcome CodeStarNotificationsClient: 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}}); } diff --git a/generated/src/aws-cpp-sdk-cognito-identity/source/CognitoIdentityClient.cpp b/generated/src/aws-cpp-sdk-cognito-identity/source/CognitoIdentityClient.cpp index 453605780e57..b568ddc4670a 100644 --- a/generated/src/aws-cpp-sdk-cognito-identity/source/CognitoIdentityClient.cpp +++ b/generated/src/aws-cpp-sdk-cognito-identity/source/CognitoIdentityClient.cpp @@ -183,7 +183,8 @@ CognitoIdentityClient::InvokeOperationOutcome CognitoIdentityClient::InvokeServi {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -195,7 +196,7 @@ CognitoIdentityClient::InvokeOperationOutcome CognitoIdentityClient::InvokeServi return InvokeOperationOutcome{MakeRequest(request, endpointResolutionOutcome.GetResult(), httpMethod, signerName)}; }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}}); } diff --git a/generated/src/aws-cpp-sdk-cognito-idp/source/CognitoIdentityProviderClient.cpp b/generated/src/aws-cpp-sdk-cognito-idp/source/CognitoIdentityProviderClient.cpp index 5370d86c8770..11942df3c9b6 100644 --- a/generated/src/aws-cpp-sdk-cognito-idp/source/CognitoIdentityProviderClient.cpp +++ b/generated/src/aws-cpp-sdk-cognito-idp/source/CognitoIdentityProviderClient.cpp @@ -296,7 +296,8 @@ CognitoIdentityProviderClient::InvokeOperationOutcome CognitoIdentityProviderCli {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -308,7 +309,7 @@ CognitoIdentityProviderClient::InvokeOperationOutcome CognitoIdentityProviderCli return InvokeOperationOutcome{MakeRequest(request, endpointResolutionOutcome.GetResult(), httpMethod, signerName)}; }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}}); } diff --git a/generated/src/aws-cpp-sdk-cognito-sync/source/CognitoSyncClient.cpp b/generated/src/aws-cpp-sdk-cognito-sync/source/CognitoSyncClient.cpp index b5b1b7eeea34..7bfd26d15fd6 100644 --- a/generated/src/aws-cpp-sdk-cognito-sync/source/CognitoSyncClient.cpp +++ b/generated/src/aws-cpp-sdk-cognito-sync/source/CognitoSyncClient.cpp @@ -173,7 +173,8 @@ CognitoSyncClient::InvokeOperationOutcome CognitoSyncClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -187,7 +188,7 @@ CognitoSyncClient::InvokeOperationOutcome CognitoSyncClient::InvokeServiceOperat 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}}); } diff --git a/generated/src/aws-cpp-sdk-comprehend/source/ComprehendClient.cpp b/generated/src/aws-cpp-sdk-comprehend/source/ComprehendClient.cpp index 7e83aab5e102..c3072fe46a06 100644 --- a/generated/src/aws-cpp-sdk-comprehend/source/ComprehendClient.cpp +++ b/generated/src/aws-cpp-sdk-comprehend/source/ComprehendClient.cpp @@ -240,7 +240,8 @@ ComprehendClient::InvokeOperationOutcome ComprehendClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -252,7 +253,7 @@ ComprehendClient::InvokeOperationOutcome ComprehendClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-comprehendmedical/source/ComprehendMedicalClient.cpp b/generated/src/aws-cpp-sdk-comprehendmedical/source/ComprehendMedicalClient.cpp index 688982dd0370..08c9a524e633 100644 --- a/generated/src/aws-cpp-sdk-comprehendmedical/source/ComprehendMedicalClient.cpp +++ b/generated/src/aws-cpp-sdk-comprehendmedical/source/ComprehendMedicalClient.cpp @@ -185,7 +185,8 @@ ComprehendMedicalClient::InvokeOperationOutcome ComprehendMedicalClient::InvokeS {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -200,7 +201,7 @@ ComprehendMedicalClient::InvokeOperationOutcome ComprehendMedicalClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-compute-optimizer-automation/source/ComputeOptimizerAutomationClient.cpp b/generated/src/aws-cpp-sdk-compute-optimizer-automation/source/ComputeOptimizerAutomationClient.cpp index 7522ef06b160..b5fa9ff70dc1 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer-automation/source/ComputeOptimizerAutomationClient.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer-automation/source/ComputeOptimizerAutomationClient.cpp @@ -187,7 +187,8 @@ ComputeOptimizerAutomationClient::InvokeOperationOutcome ComputeOptimizerAutomat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -202,7 +203,7 @@ ComputeOptimizerAutomationClient::InvokeOperationOutcome ComputeOptimizerAutomat 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}}); } diff --git a/generated/src/aws-cpp-sdk-compute-optimizer/source/ComputeOptimizerClient.cpp b/generated/src/aws-cpp-sdk-compute-optimizer/source/ComputeOptimizerClient.cpp index 9ae0eb7bb9ef..d33da968b51d 100644 --- a/generated/src/aws-cpp-sdk-compute-optimizer/source/ComputeOptimizerClient.cpp +++ b/generated/src/aws-cpp-sdk-compute-optimizer/source/ComputeOptimizerClient.cpp @@ -188,7 +188,8 @@ ComputeOptimizerClient::InvokeOperationOutcome ComputeOptimizerClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -203,7 +204,7 @@ ComputeOptimizerClient::InvokeOperationOutcome ComputeOptimizerClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-config/source/ConfigServiceClient.cpp b/generated/src/aws-cpp-sdk-config/source/ConfigServiceClient.cpp index ae6f59b9b1dc..16a11b2744a9 100644 --- a/generated/src/aws-cpp-sdk-config/source/ConfigServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-config/source/ConfigServiceClient.cpp @@ -258,7 +258,8 @@ ConfigServiceClient::InvokeOperationOutcome ConfigServiceClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -270,7 +271,7 @@ ConfigServiceClient::InvokeOperationOutcome ConfigServiceClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-connect-contact-lens/source/ConnectContactLensClient.cpp b/generated/src/aws-cpp-sdk-connect-contact-lens/source/ConnectContactLensClient.cpp index 16bee2a5bb7a..303ebc19518d 100644 --- a/generated/src/aws-cpp-sdk-connect-contact-lens/source/ConnectContactLensClient.cpp +++ b/generated/src/aws-cpp-sdk-connect-contact-lens/source/ConnectContactLensClient.cpp @@ -162,7 +162,8 @@ ConnectContactLensClient::InvokeOperationOutcome ConnectContactLensClient::Invok {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -176,7 +177,7 @@ ConnectContactLensClient::InvokeOperationOutcome ConnectContactLensClient::Invok 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}}); } diff --git a/generated/src/aws-cpp-sdk-connect/source/ConnectClient.cpp b/generated/src/aws-cpp-sdk-connect/source/ConnectClient.cpp index 467318261435..2ab3a024675c 100644 --- a/generated/src/aws-cpp-sdk-connect/source/ConnectClient.cpp +++ b/generated/src/aws-cpp-sdk-connect/source/ConnectClient.cpp @@ -256,7 +256,8 @@ ConnectClient::InvokeOperationOutcome ConnectClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -270,7 +271,7 @@ ConnectClient::InvokeOperationOutcome ConnectClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-connectcampaigns/source/ConnectCampaignsClient.cpp b/generated/src/aws-cpp-sdk-connectcampaigns/source/ConnectCampaignsClient.cpp index bbe08e869020..397d8bc8120d 100644 --- a/generated/src/aws-cpp-sdk-connectcampaigns/source/ConnectCampaignsClient.cpp +++ b/generated/src/aws-cpp-sdk-connectcampaigns/source/ConnectCampaignsClient.cpp @@ -183,7 +183,8 @@ ConnectCampaignsClient::InvokeOperationOutcome ConnectCampaignsClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -197,7 +198,7 @@ ConnectCampaignsClient::InvokeOperationOutcome ConnectCampaignsClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2Client.cpp b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2Client.cpp index 9d58a10032d9..6675f31883a2 100644 --- a/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2Client.cpp +++ b/generated/src/aws-cpp-sdk-connectcampaignsv2/source/ConnectCampaignsV2Client.cpp @@ -198,7 +198,8 @@ ConnectCampaignsV2Client::InvokeOperationOutcome ConnectCampaignsV2Client::Invok {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -212,7 +213,7 @@ ConnectCampaignsV2Client::InvokeOperationOutcome ConnectCampaignsV2Client::Invok 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}}); } diff --git a/generated/src/aws-cpp-sdk-connectcases/source/ConnectCasesClient.cpp b/generated/src/aws-cpp-sdk-connectcases/source/ConnectCasesClient.cpp index cefd64567f27..da0e2073d74f 100644 --- a/generated/src/aws-cpp-sdk-connectcases/source/ConnectCasesClient.cpp +++ b/generated/src/aws-cpp-sdk-connectcases/source/ConnectCasesClient.cpp @@ -200,7 +200,8 @@ ConnectCasesClient::InvokeOperationOutcome ConnectCasesClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -214,7 +215,7 @@ ConnectCasesClient::InvokeOperationOutcome ConnectCasesClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-connecthealth/source/ConnectHealthClient.cpp b/generated/src/aws-cpp-sdk-connecthealth/source/ConnectHealthClient.cpp index 7039f151681e..55da9c027e81 100644 --- a/generated/src/aws-cpp-sdk-connecthealth/source/ConnectHealthClient.cpp +++ b/generated/src/aws-cpp-sdk-connecthealth/source/ConnectHealthClient.cpp @@ -180,7 +180,8 @@ ConnectHealthClient::InvokeOperationOutcome ConnectHealthClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -194,7 +195,7 @@ ConnectHealthClient::InvokeOperationOutcome ConnectHealthClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-connectparticipant/source/ConnectParticipantClient.cpp b/generated/src/aws-cpp-sdk-connectparticipant/source/ConnectParticipantClient.cpp index 00dad2828673..899add26a2e0 100644 --- a/generated/src/aws-cpp-sdk-connectparticipant/source/ConnectParticipantClient.cpp +++ b/generated/src/aws-cpp-sdk-connectparticipant/source/ConnectParticipantClient.cpp @@ -172,7 +172,8 @@ ConnectParticipantClient::InvokeOperationOutcome ConnectParticipantClient::Invok {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -186,7 +187,7 @@ ConnectParticipantClient::InvokeOperationOutcome ConnectParticipantClient::Invok 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}}); } diff --git a/generated/src/aws-cpp-sdk-controlcatalog/source/ControlCatalogClient.cpp b/generated/src/aws-cpp-sdk-controlcatalog/source/ControlCatalogClient.cpp index 9b502d23c975..5592f7ea9bed 100644 --- a/generated/src/aws-cpp-sdk-controlcatalog/source/ControlCatalogClient.cpp +++ b/generated/src/aws-cpp-sdk-controlcatalog/source/ControlCatalogClient.cpp @@ -163,7 +163,8 @@ ControlCatalogClient::InvokeOperationOutcome ControlCatalogClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -177,7 +178,7 @@ ControlCatalogClient::InvokeOperationOutcome ControlCatalogClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-controltower/source/ControlTowerClient.cpp b/generated/src/aws-cpp-sdk-controltower/source/ControlTowerClient.cpp index cfe399e0e89a..c18587dd7e8c 100644 --- a/generated/src/aws-cpp-sdk-controltower/source/ControlTowerClient.cpp +++ b/generated/src/aws-cpp-sdk-controltower/source/ControlTowerClient.cpp @@ -185,7 +185,8 @@ ControlTowerClient::InvokeOperationOutcome ControlTowerClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -199,7 +200,7 @@ ControlTowerClient::InvokeOperationOutcome ControlTowerClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-cost-optimization-hub/source/CostOptimizationHubClient.cpp b/generated/src/aws-cpp-sdk-cost-optimization-hub/source/CostOptimizationHubClient.cpp index 345d70cf927c..96dca8963984 100644 --- a/generated/src/aws-cpp-sdk-cost-optimization-hub/source/CostOptimizationHubClient.cpp +++ b/generated/src/aws-cpp-sdk-cost-optimization-hub/source/CostOptimizationHubClient.cpp @@ -168,7 +168,8 @@ CostOptimizationHubClient::InvokeOperationOutcome CostOptimizationHubClient::Inv {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -180,7 +181,7 @@ CostOptimizationHubClient::InvokeOperationOutcome CostOptimizationHubClient::Inv 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}}); } diff --git a/generated/src/aws-cpp-sdk-cur/source/CostandUsageReportServiceClient.cpp b/generated/src/aws-cpp-sdk-cur/source/CostandUsageReportServiceClient.cpp index 3c04493242d5..7e381b39397c 100644 --- a/generated/src/aws-cpp-sdk-cur/source/CostandUsageReportServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-cur/source/CostandUsageReportServiceClient.cpp @@ -171,7 +171,8 @@ CostandUsageReportServiceClient::InvokeOperationOutcome CostandUsageReportServic {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -183,7 +184,7 @@ CostandUsageReportServiceClient::InvokeOperationOutcome CostandUsageReportServic 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}}); } diff --git a/generated/src/aws-cpp-sdk-customer-profiles/source/CustomerProfilesClient.cpp b/generated/src/aws-cpp-sdk-customer-profiles/source/CustomerProfilesClient.cpp index 45bc1629c0ca..1e55b4e95c1e 100644 --- a/generated/src/aws-cpp-sdk-customer-profiles/source/CustomerProfilesClient.cpp +++ b/generated/src/aws-cpp-sdk-customer-profiles/source/CustomerProfilesClient.cpp @@ -276,7 +276,8 @@ CustomerProfilesClient::InvokeOperationOutcome CustomerProfilesClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -290,7 +291,7 @@ CustomerProfilesClient::InvokeOperationOutcome CustomerProfilesClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-databrew/source/GlueDataBrewClient.cpp b/generated/src/aws-cpp-sdk-databrew/source/GlueDataBrewClient.cpp index 2f1ae0bf9d2a..5569fa4ec585 100644 --- a/generated/src/aws-cpp-sdk-databrew/source/GlueDataBrewClient.cpp +++ b/generated/src/aws-cpp-sdk-databrew/source/GlueDataBrewClient.cpp @@ -201,7 +201,8 @@ GlueDataBrewClient::InvokeOperationOutcome GlueDataBrewClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -215,7 +216,7 @@ GlueDataBrewClient::InvokeOperationOutcome GlueDataBrewClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-dataexchange/source/DataExchangeClient.cpp b/generated/src/aws-cpp-sdk-dataexchange/source/DataExchangeClient.cpp index abf363c718bc..d4272b4796af 100644 --- a/generated/src/aws-cpp-sdk-dataexchange/source/DataExchangeClient.cpp +++ b/generated/src/aws-cpp-sdk-dataexchange/source/DataExchangeClient.cpp @@ -198,7 +198,8 @@ DataExchangeClient::InvokeOperationOutcome DataExchangeClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -212,7 +213,7 @@ DataExchangeClient::InvokeOperationOutcome DataExchangeClient::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}}); } @@ -728,7 +729,8 @@ SendApiAssetOutcome DataExchangeClient::SendApiAsset(const SendApiAssetRequest& {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> SendApiAssetOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -744,7 +746,7 @@ SendApiAssetOutcome DataExchangeClient::SendApiAsset(const SendApiAssetRequest& return result.IsSuccess() ? SendApiAssetOutcome(result.GetResultWithOwnership()) : SendApiAssetOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-datapipeline/source/DataPipelineClient.cpp b/generated/src/aws-cpp-sdk-datapipeline/source/DataPipelineClient.cpp index 86df7d04a8a0..7d7221d1e165 100644 --- a/generated/src/aws-cpp-sdk-datapipeline/source/DataPipelineClient.cpp +++ b/generated/src/aws-cpp-sdk-datapipeline/source/DataPipelineClient.cpp @@ -175,7 +175,8 @@ DataPipelineClient::InvokeOperationOutcome DataPipelineClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -187,7 +188,7 @@ DataPipelineClient::InvokeOperationOutcome DataPipelineClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-datasync/source/DataSyncClient.cpp b/generated/src/aws-cpp-sdk-datasync/source/DataSyncClient.cpp index c2f4b0d8f65f..8a7074fd5146 100644 --- a/generated/src/aws-cpp-sdk-datasync/source/DataSyncClient.cpp +++ b/generated/src/aws-cpp-sdk-datasync/source/DataSyncClient.cpp @@ -208,7 +208,8 @@ DataSyncClient::InvokeOperationOutcome DataSyncClient::InvokeServiceOperation(co {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -220,7 +221,7 @@ DataSyncClient::InvokeOperationOutcome DataSyncClient::InvokeServiceOperation(co 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}}); } diff --git a/generated/src/aws-cpp-sdk-datazone/source/DataZoneClient.cpp b/generated/src/aws-cpp-sdk-datazone/source/DataZoneClient.cpp index 8cf3ee9a94e2..88bb3ed462e3 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/DataZoneClient.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/DataZoneClient.cpp @@ -350,7 +350,8 @@ DataZoneClient::InvokeOperationOutcome DataZoneClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -364,7 +365,7 @@ DataZoneClient::InvokeOperationOutcome DataZoneClient::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}}); } @@ -2631,7 +2632,8 @@ GetLineageEventOutcome DataZoneClient::GetLineageEvent(const GetLineageEventRequ {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetLineageEventOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -2648,7 +2650,7 @@ GetLineageEventOutcome DataZoneClient::GetLineageEvent(const GetLineageEventRequ return result.IsSuccess() ? GetLineageEventOutcome(result.GetResultWithOwnership()) : GetLineageEventOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-dax/source/DAXClient.cpp b/generated/src/aws-cpp-sdk-dax/source/DAXClient.cpp index 7a6c23d98825..9e7974ab8cf3 100644 --- a/generated/src/aws-cpp-sdk-dax/source/DAXClient.cpp +++ b/generated/src/aws-cpp-sdk-dax/source/DAXClient.cpp @@ -174,7 +174,8 @@ DAXClient::InvokeOperationOutcome DAXClient::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -186,7 +187,7 @@ DAXClient::InvokeOperationOutcome DAXClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-deadline/source/DeadlineClient.cpp b/generated/src/aws-cpp-sdk-deadline/source/DeadlineClient.cpp index 08c73c790418..aa80d9b8e323 100644 --- a/generated/src/aws-cpp-sdk-deadline/source/DeadlineClient.cpp +++ b/generated/src/aws-cpp-sdk-deadline/source/DeadlineClient.cpp @@ -282,7 +282,8 @@ DeadlineClient::InvokeOperationOutcome DeadlineClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -296,7 +297,7 @@ DeadlineClient::InvokeOperationOutcome DeadlineClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-detective/source/DetectiveClient.cpp b/generated/src/aws-cpp-sdk-detective/source/DetectiveClient.cpp index 7b9ce876afcd..7fb933336a80 100644 --- a/generated/src/aws-cpp-sdk-detective/source/DetectiveClient.cpp +++ b/generated/src/aws-cpp-sdk-detective/source/DetectiveClient.cpp @@ -185,7 +185,8 @@ DetectiveClient::InvokeOperationOutcome DetectiveClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -199,7 +200,7 @@ DetectiveClient::InvokeOperationOutcome DetectiveClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-devicefarm/source/DeviceFarmClient.cpp b/generated/src/aws-cpp-sdk-devicefarm/source/DeviceFarmClient.cpp index e2d8c25feb21..83afb92d74c7 100644 --- a/generated/src/aws-cpp-sdk-devicefarm/source/DeviceFarmClient.cpp +++ b/generated/src/aws-cpp-sdk-devicefarm/source/DeviceFarmClient.cpp @@ -232,7 +232,8 @@ DeviceFarmClient::InvokeOperationOutcome DeviceFarmClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -244,7 +245,7 @@ DeviceFarmClient::InvokeOperationOutcome DeviceFarmClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-devops-agent/source/DevOpsAgentClient.cpp b/generated/src/aws-cpp-sdk-devops-agent/source/DevOpsAgentClient.cpp index 7f2245a94f9d..40d68ba7844c 100644 --- a/generated/src/aws-cpp-sdk-devops-agent/source/DevOpsAgentClient.cpp +++ b/generated/src/aws-cpp-sdk-devops-agent/source/DevOpsAgentClient.cpp @@ -220,7 +220,8 @@ DevOpsAgentClient::InvokeOperationOutcome DevOpsAgentClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -234,7 +235,7 @@ DevOpsAgentClient::InvokeOperationOutcome DevOpsAgentClient::InvokeServiceOperat 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}}); } @@ -1197,7 +1198,8 @@ SendMessageOutcome DevOpsAgentClient::SendMessage(SendMessageRequest& request) c {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> SendMessageOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1226,7 +1228,7 @@ SendMessageOutcome DevOpsAgentClient::SendMessage(SendMessageRequest& request) c auto result = MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST); return result.IsSuccess() ? SendMessageOutcome(result.GetResultWithOwnership()) : SendMessageOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-devops-guru/source/DevOpsGuruClient.cpp b/generated/src/aws-cpp-sdk-devops-guru/source/DevOpsGuruClient.cpp index 3bfc14bea919..51c5d35ae070 100644 --- a/generated/src/aws-cpp-sdk-devops-guru/source/DevOpsGuruClient.cpp +++ b/generated/src/aws-cpp-sdk-devops-guru/source/DevOpsGuruClient.cpp @@ -187,7 +187,8 @@ DevOpsGuruClient::InvokeOperationOutcome DevOpsGuruClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -201,7 +202,7 @@ DevOpsGuruClient::InvokeOperationOutcome DevOpsGuruClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-directconnect/source/DirectConnectClient.cpp b/generated/src/aws-cpp-sdk-directconnect/source/DirectConnectClient.cpp index 60d5b813b201..d8138211d56b 100644 --- a/generated/src/aws-cpp-sdk-directconnect/source/DirectConnectClient.cpp +++ b/generated/src/aws-cpp-sdk-directconnect/source/DirectConnectClient.cpp @@ -225,7 +225,8 @@ DirectConnectClient::InvokeOperationOutcome DirectConnectClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -237,7 +238,7 @@ DirectConnectClient::InvokeOperationOutcome DirectConnectClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-directory-service-data/source/DirectoryServiceDataClient.cpp b/generated/src/aws-cpp-sdk-directory-service-data/source/DirectoryServiceDataClient.cpp index 11c04e094aa0..1bdc94bce943 100644 --- a/generated/src/aws-cpp-sdk-directory-service-data/source/DirectoryServiceDataClient.cpp +++ b/generated/src/aws-cpp-sdk-directory-service-data/source/DirectoryServiceDataClient.cpp @@ -182,7 +182,8 @@ DirectoryServiceDataClient::InvokeOperationOutcome DirectoryServiceDataClient::I {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -196,7 +197,7 @@ DirectoryServiceDataClient::InvokeOperationOutcome DirectoryServiceDataClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-discovery/source/ApplicationDiscoveryServiceClient.cpp b/generated/src/aws-cpp-sdk-discovery/source/ApplicationDiscoveryServiceClient.cpp index a65036141397..57da899d9046 100644 --- a/generated/src/aws-cpp-sdk-discovery/source/ApplicationDiscoveryServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-discovery/source/ApplicationDiscoveryServiceClient.cpp @@ -190,7 +190,8 @@ ApplicationDiscoveryServiceClient::InvokeOperationOutcome ApplicationDiscoverySe {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -202,7 +203,7 @@ ApplicationDiscoveryServiceClient::InvokeOperationOutcome ApplicationDiscoverySe 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}}); } diff --git a/generated/src/aws-cpp-sdk-dlm/source/DLMClient.cpp b/generated/src/aws-cpp-sdk-dlm/source/DLMClient.cpp index 85e22bb9f938..33b3d921935e 100644 --- a/generated/src/aws-cpp-sdk-dlm/source/DLMClient.cpp +++ b/generated/src/aws-cpp-sdk-dlm/source/DLMClient.cpp @@ -162,7 +162,8 @@ DLMClient::InvokeOperationOutcome DLMClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -176,7 +177,7 @@ DLMClient::InvokeOperationOutcome DLMClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-dms/source/DatabaseMigrationServiceClient.cpp b/generated/src/aws-cpp-sdk-dms/source/DatabaseMigrationServiceClient.cpp index 8397f801b0b0..8b0b212b78f1 100644 --- a/generated/src/aws-cpp-sdk-dms/source/DatabaseMigrationServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-dms/source/DatabaseMigrationServiceClient.cpp @@ -283,7 +283,8 @@ DatabaseMigrationServiceClient::InvokeOperationOutcome DatabaseMigrationServiceC {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -295,7 +296,7 @@ DatabaseMigrationServiceClient::InvokeOperationOutcome DatabaseMigrationServiceC 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}}); } diff --git a/generated/src/aws-cpp-sdk-docdb-elastic/source/DocDBElasticClient.cpp b/generated/src/aws-cpp-sdk-docdb-elastic/source/DocDBElasticClient.cpp index a9329f01ab6b..e9026ac38644 100644 --- a/generated/src/aws-cpp-sdk-docdb-elastic/source/DocDBElasticClient.cpp +++ b/generated/src/aws-cpp-sdk-docdb-elastic/source/DocDBElasticClient.cpp @@ -176,7 +176,8 @@ DocDBElasticClient::InvokeOperationOutcome DocDBElasticClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -190,7 +191,7 @@ DocDBElasticClient::InvokeOperationOutcome DocDBElasticClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-docdb/source/DocDBClient.cpp b/generated/src/aws-cpp-sdk-docdb/source/DocDBClient.cpp index 2af3261ff7ed..9041a3e6fdc3 100644 --- a/generated/src/aws-cpp-sdk-docdb/source/DocDBClient.cpp +++ b/generated/src/aws-cpp-sdk-docdb/source/DocDBClient.cpp @@ -231,7 +231,8 @@ DocDBClient::InvokeOperationOutcome DocDBClient::InvokeServiceOperation(const Am {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -243,7 +244,7 @@ DocDBClient::InvokeOperationOutcome DocDBClient::InvokeServiceOperation(const Am 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}}); } AddSourceIdentifierToSubscriptionOutcome DocDBClient::AddSourceIdentifierToSubscription( diff --git a/generated/src/aws-cpp-sdk-drs/source/DrsClient.cpp b/generated/src/aws-cpp-sdk-drs/source/DrsClient.cpp index 80996e0e0cb8..fbfa090a8cb9 100644 --- a/generated/src/aws-cpp-sdk-drs/source/DrsClient.cpp +++ b/generated/src/aws-cpp-sdk-drs/source/DrsClient.cpp @@ -223,7 +223,8 @@ DrsClient::InvokeOperationOutcome DrsClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -237,7 +238,7 @@ DrsClient::InvokeOperationOutcome DrsClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-ds/source/DirectoryServiceClient.cpp b/generated/src/aws-cpp-sdk-ds/source/DirectoryServiceClient.cpp index f1430bb34bc7..e547a1d4bdb9 100644 --- a/generated/src/aws-cpp-sdk-ds/source/DirectoryServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-ds/source/DirectoryServiceClient.cpp @@ -240,7 +240,8 @@ DirectoryServiceClient::InvokeOperationOutcome DirectoryServiceClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -252,7 +253,7 @@ DirectoryServiceClient::InvokeOperationOutcome DirectoryServiceClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-dsql/source/DSQLClient.cpp b/generated/src/aws-cpp-sdk-dsql/source/DSQLClient.cpp index 1fde6c0e06a2..1fafd5a681a3 100644 --- a/generated/src/aws-cpp-sdk-dsql/source/DSQLClient.cpp +++ b/generated/src/aws-cpp-sdk-dsql/source/DSQLClient.cpp @@ -170,7 +170,8 @@ DSQLClient::InvokeOperationOutcome DSQLClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -184,7 +185,7 @@ DSQLClient::InvokeOperationOutcome DSQLClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-dynamodb/source/DynamoDBClient.cpp b/generated/src/aws-cpp-sdk-dynamodb/source/DynamoDBClient.cpp index 97fd9925a7b2..c97f8c291313 100644 --- a/generated/src/aws-cpp-sdk-dynamodb/source/DynamoDBClient.cpp +++ b/generated/src/aws-cpp-sdk-dynamodb/source/DynamoDBClient.cpp @@ -208,7 +208,8 @@ DynamoDBClient::InvokeOperationOutcome DynamoDBClient::InvokeServiceOperation(co {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto result = MakeRequestDeserialize(&request, operationName, httpMethod, @@ -216,7 +217,7 @@ DynamoDBClient::InvokeOperationOutcome DynamoDBClient::InvokeServiceOperation(co return result.IsSuccess() ? InvokeOperationOutcome(result.GetResultWithOwnership()) : InvokeOperationOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}}); } BatchExecuteStatementOutcome DynamoDBClient::BatchExecuteStatement(const BatchExecuteStatementRequest& request) const { diff --git a/generated/src/aws-cpp-sdk-dynamodbstreams/source/DynamoDBStreamsClient.cpp b/generated/src/aws-cpp-sdk-dynamodbstreams/source/DynamoDBStreamsClient.cpp index 6cd4bcd07716..f38680b93bd4 100644 --- a/generated/src/aws-cpp-sdk-dynamodbstreams/source/DynamoDBStreamsClient.cpp +++ b/generated/src/aws-cpp-sdk-dynamodbstreams/source/DynamoDBStreamsClient.cpp @@ -163,7 +163,8 @@ DynamoDBStreamsClient::InvokeOperationOutcome DynamoDBStreamsClient::InvokeServi {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -175,7 +176,7 @@ DynamoDBStreamsClient::InvokeOperationOutcome DynamoDBStreamsClient::InvokeServi 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}}); } diff --git a/generated/src/aws-cpp-sdk-ebs/source/EBSClient.cpp b/generated/src/aws-cpp-sdk-ebs/source/EBSClient.cpp index f3b415f399a4..89c6078ca25d 100644 --- a/generated/src/aws-cpp-sdk-ebs/source/EBSClient.cpp +++ b/generated/src/aws-cpp-sdk-ebs/source/EBSClient.cpp @@ -164,7 +164,8 @@ EBSClient::InvokeOperationOutcome EBSClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -178,7 +179,7 @@ EBSClient::InvokeOperationOutcome EBSClient::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}}); } @@ -232,7 +233,8 @@ GetSnapshotBlockOutcome EBSClient::GetSnapshotBlock(const GetSnapshotBlockReques {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetSnapshotBlockOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -249,7 +251,7 @@ GetSnapshotBlockOutcome EBSClient::GetSnapshotBlock(const GetSnapshotBlockReques return result.IsSuccess() ? GetSnapshotBlockOutcome(result.GetResultWithOwnership()) : GetSnapshotBlockOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-ec2-instance-connect/source/EC2InstanceConnectClient.cpp b/generated/src/aws-cpp-sdk-ec2-instance-connect/source/EC2InstanceConnectClient.cpp index b7c7445429bc..cfeaf4ec2125 100644 --- a/generated/src/aws-cpp-sdk-ec2-instance-connect/source/EC2InstanceConnectClient.cpp +++ b/generated/src/aws-cpp-sdk-ec2-instance-connect/source/EC2InstanceConnectClient.cpp @@ -162,7 +162,8 @@ EC2InstanceConnectClient::InvokeOperationOutcome EC2InstanceConnectClient::Invok {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -174,7 +175,7 @@ EC2InstanceConnectClient::InvokeOperationOutcome EC2InstanceConnectClient::Invok 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}}); } diff --git a/generated/src/aws-cpp-sdk-ec2/source/EC2Client.cpp b/generated/src/aws-cpp-sdk-ec2/source/EC2Client.cpp index 4c38509000c4..22d37f8c93ad 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/EC2Client.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/EC2Client.cpp @@ -254,7 +254,8 @@ EC2Client::InvokeOperationOutcome EC2Client::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -266,7 +267,7 @@ EC2Client::InvokeOperationOutcome EC2Client::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}}); } AcceptAddressTransferOutcome EC2Client::AcceptAddressTransfer(const AcceptAddressTransferRequest& request) const { diff --git a/generated/src/aws-cpp-sdk-ecr-public/source/ECRPublicClient.cpp b/generated/src/aws-cpp-sdk-ecr-public/source/ECRPublicClient.cpp index 5be9258e7af8..bbd2020074dd 100644 --- a/generated/src/aws-cpp-sdk-ecr-public/source/ECRPublicClient.cpp +++ b/generated/src/aws-cpp-sdk-ecr-public/source/ECRPublicClient.cpp @@ -178,7 +178,8 @@ ECRPublicClient::InvokeOperationOutcome ECRPublicClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -190,7 +191,7 @@ ECRPublicClient::InvokeOperationOutcome ECRPublicClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-ecr/source/ECRClient.cpp b/generated/src/aws-cpp-sdk-ecr/source/ECRClient.cpp index 61e3067bbbb5..8fa138ef4fd5 100644 --- a/generated/src/aws-cpp-sdk-ecr/source/ECRClient.cpp +++ b/generated/src/aws-cpp-sdk-ecr/source/ECRClient.cpp @@ -211,7 +211,8 @@ ECRClient::InvokeOperationOutcome ECRClient::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -223,7 +224,7 @@ ECRClient::InvokeOperationOutcome ECRClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-ecs/source/ECSClient.cpp b/generated/src/aws-cpp-sdk-ecs/source/ECSClient.cpp index 4e21e83687a7..d839bd4628cf 100644 --- a/generated/src/aws-cpp-sdk-ecs/source/ECSClient.cpp +++ b/generated/src/aws-cpp-sdk-ecs/source/ECSClient.cpp @@ -230,7 +230,8 @@ ECSClient::InvokeOperationOutcome ECSClient::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -242,7 +243,7 @@ ECSClient::InvokeOperationOutcome ECSClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-eks-auth/source/EKSAuthClient.cpp b/generated/src/aws-cpp-sdk-eks-auth/source/EKSAuthClient.cpp index 3fe7a73200c2..9564ece80fb6 100644 --- a/generated/src/aws-cpp-sdk-eks-auth/source/EKSAuthClient.cpp +++ b/generated/src/aws-cpp-sdk-eks-auth/source/EKSAuthClient.cpp @@ -157,7 +157,8 @@ EKSAuthClient::InvokeOperationOutcome EKSAuthClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -171,7 +172,7 @@ EKSAuthClient::InvokeOperationOutcome EKSAuthClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-eks/source/EKSClient.cpp b/generated/src/aws-cpp-sdk-eks/source/EKSClient.cpp index bafe8634c783..e8bbcf88be17 100644 --- a/generated/src/aws-cpp-sdk-eks/source/EKSClient.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/EKSClient.cpp @@ -224,7 +224,8 @@ EKSClient::InvokeOperationOutcome EKSClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -238,7 +239,7 @@ EKSClient::InvokeOperationOutcome EKSClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-elasticache/source/ElastiCacheClient.cpp b/generated/src/aws-cpp-sdk-elasticache/source/ElastiCacheClient.cpp index 83c273cdc91b..6b8ff5542c98 100644 --- a/generated/src/aws-cpp-sdk-elasticache/source/ElastiCacheClient.cpp +++ b/generated/src/aws-cpp-sdk-elasticache/source/ElastiCacheClient.cpp @@ -251,7 +251,8 @@ ElastiCacheClient::InvokeOperationOutcome ElastiCacheClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -263,7 +264,7 @@ ElastiCacheClient::InvokeOperationOutcome ElastiCacheClient::InvokeServiceOperat 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}}); } AddTagsToResourceOutcome ElastiCacheClient::AddTagsToResource(const AddTagsToResourceRequest& request) const { diff --git a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/ElasticBeanstalkClient.cpp b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/ElasticBeanstalkClient.cpp index 43852c0567ce..1b0974e05e8e 100644 --- a/generated/src/aws-cpp-sdk-elasticbeanstalk/source/ElasticBeanstalkClient.cpp +++ b/generated/src/aws-cpp-sdk-elasticbeanstalk/source/ElasticBeanstalkClient.cpp @@ -228,7 +228,8 @@ ElasticBeanstalkClient::InvokeOperationOutcome ElasticBeanstalkClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -240,7 +241,7 @@ ElasticBeanstalkClient::InvokeOperationOutcome ElasticBeanstalkClient::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}}); } AbortEnvironmentUpdateOutcome ElasticBeanstalkClient::AbortEnvironmentUpdate(const AbortEnvironmentUpdateRequest& request) const { diff --git a/generated/src/aws-cpp-sdk-elasticfilesystem/source/EFSClient.cpp b/generated/src/aws-cpp-sdk-elasticfilesystem/source/EFSClient.cpp index c2a8e3fdf7b2..a105b76151d1 100644 --- a/generated/src/aws-cpp-sdk-elasticfilesystem/source/EFSClient.cpp +++ b/generated/src/aws-cpp-sdk-elasticfilesystem/source/EFSClient.cpp @@ -182,7 +182,8 @@ EFSClient::InvokeOperationOutcome EFSClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -196,7 +197,7 @@ EFSClient::InvokeOperationOutcome EFSClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancing/source/ElasticLoadBalancingClient.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancing/source/ElasticLoadBalancingClient.cpp index a15531dc046b..f1077f8a14f7 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancing/source/ElasticLoadBalancingClient.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancing/source/ElasticLoadBalancingClient.cpp @@ -214,7 +214,8 @@ ElasticLoadBalancingClient::InvokeOperationOutcome ElasticLoadBalancingClient::I {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -226,7 +227,7 @@ ElasticLoadBalancingClient::InvokeOperationOutcome ElasticLoadBalancingClient::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}}); } AddTagsOutcome ElasticLoadBalancingClient::AddTags(const AddTagsRequest& request) const { diff --git a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/ElasticLoadBalancingv2Client.cpp b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/ElasticLoadBalancingv2Client.cpp index 52272c71ab0c..440f56dfffdb 100644 --- a/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/ElasticLoadBalancingv2Client.cpp +++ b/generated/src/aws-cpp-sdk-elasticloadbalancingv2/source/ElasticLoadBalancingv2Client.cpp @@ -236,7 +236,8 @@ ElasticLoadBalancingv2Client::InvokeOperationOutcome ElasticLoadBalancingv2Clien {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -248,7 +249,7 @@ ElasticLoadBalancingv2Client::InvokeOperationOutcome ElasticLoadBalancingv2Clien 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}}); } AddListenerCertificatesOutcome ElasticLoadBalancingv2Client::AddListenerCertificates(const AddListenerCertificatesRequest& request) const { diff --git a/generated/src/aws-cpp-sdk-elasticmapreduce/source/EMRClient.cpp b/generated/src/aws-cpp-sdk-elasticmapreduce/source/EMRClient.cpp index a90b73399992..ab55e68cea56 100644 --- a/generated/src/aws-cpp-sdk-elasticmapreduce/source/EMRClient.cpp +++ b/generated/src/aws-cpp-sdk-elasticmapreduce/source/EMRClient.cpp @@ -217,7 +217,8 @@ EMRClient::InvokeOperationOutcome EMRClient::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -229,7 +230,7 @@ EMRClient::InvokeOperationOutcome EMRClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-elementalinference/source/ElementalInferenceClient.cpp b/generated/src/aws-cpp-sdk-elementalinference/source/ElementalInferenceClient.cpp index 5c3e4afe1816..5237b692a6cd 100644 --- a/generated/src/aws-cpp-sdk-elementalinference/source/ElementalInferenceClient.cpp +++ b/generated/src/aws-cpp-sdk-elementalinference/source/ElementalInferenceClient.cpp @@ -182,7 +182,8 @@ ElementalInferenceClient::InvokeOperationOutcome ElementalInferenceClient::Invok {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -196,7 +197,7 @@ ElementalInferenceClient::InvokeOperationOutcome ElementalInferenceClient::Invok 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}}); } diff --git a/generated/src/aws-cpp-sdk-email/source/SESClient.cpp b/generated/src/aws-cpp-sdk-email/source/SESClient.cpp index 078d7cd973ec..b503b15c6ae0 100644 --- a/generated/src/aws-cpp-sdk-email/source/SESClient.cpp +++ b/generated/src/aws-cpp-sdk-email/source/SESClient.cpp @@ -244,7 +244,8 @@ SESClient::InvokeOperationOutcome SESClient::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -256,7 +257,7 @@ SESClient::InvokeOperationOutcome SESClient::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}}); } CloneReceiptRuleSetOutcome SESClient::CloneReceiptRuleSet(const CloneReceiptRuleSetRequest& request) const { diff --git a/generated/src/aws-cpp-sdk-emr-containers/source/EMRContainersClient.cpp b/generated/src/aws-cpp-sdk-emr-containers/source/EMRContainersClient.cpp index f452ecd5d649..e507b8b7eb05 100644 --- a/generated/src/aws-cpp-sdk-emr-containers/source/EMRContainersClient.cpp +++ b/generated/src/aws-cpp-sdk-emr-containers/source/EMRContainersClient.cpp @@ -182,7 +182,8 @@ EMRContainersClient::InvokeOperationOutcome EMRContainersClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -196,7 +197,7 @@ EMRContainersClient::InvokeOperationOutcome EMRContainersClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-emr-serverless/source/EMRServerlessClient.cpp b/generated/src/aws-cpp-sdk-emr-serverless/source/EMRServerlessClient.cpp index d63940f2f6d4..1760116e6c41 100644 --- a/generated/src/aws-cpp-sdk-emr-serverless/source/EMRServerlessClient.cpp +++ b/generated/src/aws-cpp-sdk-emr-serverless/source/EMRServerlessClient.cpp @@ -179,7 +179,8 @@ EMRServerlessClient::InvokeOperationOutcome EMRServerlessClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -193,7 +194,7 @@ EMRServerlessClient::InvokeOperationOutcome EMRServerlessClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-endusermessaging/source/EndUserMessagingClient.cpp b/generated/src/aws-cpp-sdk-endusermessaging/source/EndUserMessagingClient.cpp index 1a07e48ee51d..9031f2be6568 100644 --- a/generated/src/aws-cpp-sdk-endusermessaging/source/EndUserMessagingClient.cpp +++ b/generated/src/aws-cpp-sdk-endusermessaging/source/EndUserMessagingClient.cpp @@ -188,7 +188,8 @@ EndUserMessagingClient::InvokeOperationOutcome EndUserMessagingClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -202,7 +203,7 @@ EndUserMessagingClient::InvokeOperationOutcome EndUserMessagingClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-entityresolution/source/EntityResolutionClient.cpp b/generated/src/aws-cpp-sdk-entityresolution/source/EntityResolutionClient.cpp index 6e23f949e629..f8b2d3d1ce22 100644 --- a/generated/src/aws-cpp-sdk-entityresolution/source/EntityResolutionClient.cpp +++ b/generated/src/aws-cpp-sdk-entityresolution/source/EntityResolutionClient.cpp @@ -199,7 +199,8 @@ EntityResolutionClient::InvokeOperationOutcome EntityResolutionClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -213,7 +214,7 @@ EntityResolutionClient::InvokeOperationOutcome EntityResolutionClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-es/source/ElasticsearchServiceClient.cpp b/generated/src/aws-cpp-sdk-es/source/ElasticsearchServiceClient.cpp index a20e9241b60f..5e302448167a 100644 --- a/generated/src/aws-cpp-sdk-es/source/ElasticsearchServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-es/source/ElasticsearchServiceClient.cpp @@ -216,7 +216,8 @@ ElasticsearchServiceClient::InvokeOperationOutcome ElasticsearchServiceClient::I {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -230,7 +231,7 @@ ElasticsearchServiceClient::InvokeOperationOutcome ElasticsearchServiceClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-eventbridge/source/EventBridgeClient.cpp b/generated/src/aws-cpp-sdk-eventbridge/source/EventBridgeClient.cpp index d9f5c90c158c..b9868911cde3 100644 --- a/generated/src/aws-cpp-sdk-eventbridge/source/EventBridgeClient.cpp +++ b/generated/src/aws-cpp-sdk-eventbridge/source/EventBridgeClient.cpp @@ -216,7 +216,8 @@ EventBridgeClient::InvokeOperationOutcome EventBridgeClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -228,7 +229,7 @@ EventBridgeClient::InvokeOperationOutcome EventBridgeClient::InvokeServiceOperat 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}}); } diff --git a/generated/src/aws-cpp-sdk-eventbridgev2/source/EventBridgeV2Client.cpp b/generated/src/aws-cpp-sdk-eventbridgev2/source/EventBridgeV2Client.cpp index 6fcfa93b6c97..7f75392ecc2e 100644 --- a/generated/src/aws-cpp-sdk-eventbridgev2/source/EventBridgeV2Client.cpp +++ b/generated/src/aws-cpp-sdk-eventbridgev2/source/EventBridgeV2Client.cpp @@ -181,7 +181,8 @@ EventBridgeV2Client::InvokeOperationOutcome EventBridgeV2Client::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -196,7 +197,7 @@ EventBridgeV2Client::InvokeOperationOutcome EventBridgeV2Client::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}}); } diff --git a/generated/src/aws-cpp-sdk-events/source/CloudWatchEventsClient.cpp b/generated/src/aws-cpp-sdk-events/source/CloudWatchEventsClient.cpp index 79a47f64dd27..50f7d54b09db 100644 --- a/generated/src/aws-cpp-sdk-events/source/CloudWatchEventsClient.cpp +++ b/generated/src/aws-cpp-sdk-events/source/CloudWatchEventsClient.cpp @@ -211,7 +211,8 @@ CloudWatchEventsClient::InvokeOperationOutcome CloudWatchEventsClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -223,7 +224,7 @@ CloudWatchEventsClient::InvokeOperationOutcome CloudWatchEventsClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-evs/source/EVSClient.cpp b/generated/src/aws-cpp-sdk-evs/source/EVSClient.cpp index abbedd060c8c..5c4339bc19f5 100644 --- a/generated/src/aws-cpp-sdk-evs/source/EVSClient.cpp +++ b/generated/src/aws-cpp-sdk-evs/source/EVSClient.cpp @@ -177,7 +177,8 @@ EVSClient::InvokeOperationOutcome EVSClient::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -189,7 +190,7 @@ EVSClient::InvokeOperationOutcome EVSClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-finspace-data/source/FinSpaceDataClient.cpp b/generated/src/aws-cpp-sdk-finspace-data/source/FinSpaceDataClient.cpp index 1735d81a7d7e..6a7a38fa3d11 100644 --- a/generated/src/aws-cpp-sdk-finspace-data/source/FinSpaceDataClient.cpp +++ b/generated/src/aws-cpp-sdk-finspace-data/source/FinSpaceDataClient.cpp @@ -157,7 +157,8 @@ FinSpaceDataClient::InvokeOperationOutcome FinSpaceDataClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -171,6 +172,6 @@ FinSpaceDataClient::InvokeOperationOutcome FinSpaceDataClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-finspace/source/FinspaceClient.cpp b/generated/src/aws-cpp-sdk-finspace/source/FinspaceClient.cpp index 7b1882c6b7ae..60de32bc8c35 100644 --- a/generated/src/aws-cpp-sdk-finspace/source/FinspaceClient.cpp +++ b/generated/src/aws-cpp-sdk-finspace/source/FinspaceClient.cpp @@ -201,7 +201,8 @@ FinspaceClient::InvokeOperationOutcome FinspaceClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -215,7 +216,7 @@ FinspaceClient::InvokeOperationOutcome FinspaceClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-firehose/source/FirehoseClient.cpp b/generated/src/aws-cpp-sdk-firehose/source/FirehoseClient.cpp index 8190452c491f..efbae1749802 100644 --- a/generated/src/aws-cpp-sdk-firehose/source/FirehoseClient.cpp +++ b/generated/src/aws-cpp-sdk-firehose/source/FirehoseClient.cpp @@ -167,7 +167,8 @@ FirehoseClient::InvokeOperationOutcome FirehoseClient::InvokeServiceOperation(co {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -179,7 +180,7 @@ FirehoseClient::InvokeOperationOutcome FirehoseClient::InvokeServiceOperation(co 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}}); } diff --git a/generated/src/aws-cpp-sdk-fis/source/FISClient.cpp b/generated/src/aws-cpp-sdk-fis/source/FISClient.cpp index 538a2a609cfb..35f6664b237f 100644 --- a/generated/src/aws-cpp-sdk-fis/source/FISClient.cpp +++ b/generated/src/aws-cpp-sdk-fis/source/FISClient.cpp @@ -180,7 +180,8 @@ FISClient::InvokeOperationOutcome FISClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -194,7 +195,7 @@ FISClient::InvokeOperationOutcome FISClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-fms/source/FMSClient.cpp b/generated/src/aws-cpp-sdk-fms/source/FMSClient.cpp index 2d232377b0b7..9bb0176dd8c5 100644 --- a/generated/src/aws-cpp-sdk-fms/source/FMSClient.cpp +++ b/generated/src/aws-cpp-sdk-fms/source/FMSClient.cpp @@ -195,7 +195,8 @@ FMSClient::InvokeOperationOutcome FMSClient::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -210,7 +211,7 @@ FMSClient::InvokeOperationOutcome FMSClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-forecast/source/ForecastServiceClient.cpp b/generated/src/aws-cpp-sdk-forecast/source/ForecastServiceClient.cpp index 6e5882c724d2..841b1d1082be 100644 --- a/generated/src/aws-cpp-sdk-forecast/source/ForecastServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-forecast/source/ForecastServiceClient.cpp @@ -222,7 +222,8 @@ ForecastServiceClient::InvokeOperationOutcome ForecastServiceClient::InvokeServi {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -234,7 +235,7 @@ ForecastServiceClient::InvokeOperationOutcome ForecastServiceClient::InvokeServi 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}}); } diff --git a/generated/src/aws-cpp-sdk-forecastquery/source/ForecastQueryServiceClient.cpp b/generated/src/aws-cpp-sdk-forecastquery/source/ForecastQueryServiceClient.cpp index 213c5cdba7d3..aa3b3ac4b95a 100644 --- a/generated/src/aws-cpp-sdk-forecastquery/source/ForecastQueryServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-forecastquery/source/ForecastQueryServiceClient.cpp @@ -166,7 +166,8 @@ ForecastQueryServiceClient::InvokeOperationOutcome ForecastQueryServiceClient::I {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -178,7 +179,7 @@ ForecastQueryServiceClient::InvokeOperationOutcome ForecastQueryServiceClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-frauddetector/source/FraudDetectorClient.cpp b/generated/src/aws-cpp-sdk-frauddetector/source/FraudDetectorClient.cpp index 5ff23d78609f..c7348ad747dc 100644 --- a/generated/src/aws-cpp-sdk-frauddetector/source/FraudDetectorClient.cpp +++ b/generated/src/aws-cpp-sdk-frauddetector/source/FraudDetectorClient.cpp @@ -229,7 +229,8 @@ FraudDetectorClient::InvokeOperationOutcome FraudDetectorClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -241,7 +242,7 @@ FraudDetectorClient::InvokeOperationOutcome FraudDetectorClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-freetier/source/FreeTierClient.cpp b/generated/src/aws-cpp-sdk-freetier/source/FreeTierClient.cpp index 5d460ff14651..56add38047d4 100644 --- a/generated/src/aws-cpp-sdk-freetier/source/FreeTierClient.cpp +++ b/generated/src/aws-cpp-sdk-freetier/source/FreeTierClient.cpp @@ -160,7 +160,8 @@ FreeTierClient::InvokeOperationOutcome FreeTierClient::InvokeServiceOperation(co {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -172,7 +173,7 @@ FreeTierClient::InvokeOperationOutcome FreeTierClient::InvokeServiceOperation(co 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}}); } diff --git a/generated/src/aws-cpp-sdk-fsx/source/FSxClient.cpp b/generated/src/aws-cpp-sdk-fsx/source/FSxClient.cpp index e596d8c157e0..0841cc3db2e2 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/FSxClient.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/FSxClient.cpp @@ -201,7 +201,8 @@ FSxClient::InvokeOperationOutcome FSxClient::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -213,7 +214,7 @@ FSxClient::InvokeOperationOutcome FSxClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-gamelift/source/GameLiftClient.cpp b/generated/src/aws-cpp-sdk-gamelift/source/GameLiftClient.cpp index 5d29b837f673..2e98d45577fd 100644 --- a/generated/src/aws-cpp-sdk-gamelift/source/GameLiftClient.cpp +++ b/generated/src/aws-cpp-sdk-gamelift/source/GameLiftClient.cpp @@ -275,7 +275,8 @@ GameLiftClient::InvokeOperationOutcome GameLiftClient::InvokeServiceOperation(co {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -290,7 +291,7 @@ GameLiftClient::InvokeOperationOutcome GameLiftClient::InvokeServiceOperation(co 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}}); } diff --git a/generated/src/aws-cpp-sdk-gameliftstreams/source/GameLiftStreamsClient.cpp b/generated/src/aws-cpp-sdk-gameliftstreams/source/GameLiftStreamsClient.cpp index c23ea869f089..a365a8d9bc06 100644 --- a/generated/src/aws-cpp-sdk-gameliftstreams/source/GameLiftStreamsClient.cpp +++ b/generated/src/aws-cpp-sdk-gameliftstreams/source/GameLiftStreamsClient.cpp @@ -190,7 +190,8 @@ GameLiftStreamsClient::InvokeOperationOutcome GameLiftStreamsClient::InvokeServi {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -204,7 +205,7 @@ GameLiftStreamsClient::InvokeOperationOutcome GameLiftStreamsClient::InvokeServi 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}}); } diff --git a/generated/src/aws-cpp-sdk-geo-maps/source/GeoMapsClient.cpp b/generated/src/aws-cpp-sdk-geo-maps/source/GeoMapsClient.cpp index 51fb8032e584..b58f847d824f 100644 --- a/generated/src/aws-cpp-sdk-geo-maps/source/GeoMapsClient.cpp +++ b/generated/src/aws-cpp-sdk-geo-maps/source/GeoMapsClient.cpp @@ -161,7 +161,8 @@ GeoMapsClient::InvokeOperationOutcome GeoMapsClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -175,7 +176,7 @@ GeoMapsClient::InvokeOperationOutcome GeoMapsClient::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}}); } @@ -201,7 +202,8 @@ GetGlyphsOutcome GeoMapsClient::GetGlyphs(const GetGlyphsRequest& request) const {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetGlyphsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -216,7 +218,7 @@ GetGlyphsOutcome GeoMapsClient::GetGlyphs(const GetGlyphsRequest& request) const auto result = MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET); return result.IsSuccess() ? GetGlyphsOutcome(result.GetResultWithOwnership()) : GetGlyphsOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -253,7 +255,8 @@ GetSpritesOutcome GeoMapsClient::GetSprites(const GetSpritesRequest& request) co {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetSpritesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -271,7 +274,7 @@ GetSpritesOutcome GeoMapsClient::GetSprites(const GetSpritesRequest& request) co auto result = MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET); return result.IsSuccess() ? GetSpritesOutcome(result.GetResultWithOwnership()) : GetSpritesOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -303,7 +306,8 @@ GetStaticMapOutcome GeoMapsClient::GetStaticMap(const GetStaticMapRequest& reque {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetStaticMapOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -318,7 +322,7 @@ GetStaticMapOutcome GeoMapsClient::GetStaticMap(const GetStaticMapRequest& reque return result.IsSuccess() ? GetStaticMapOutcome(result.GetResultWithOwnership()) : GetStaticMapOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -340,7 +344,8 @@ GetStyleDescriptorOutcome GeoMapsClient::GetStyleDescriptor(const GetStyleDescri {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetStyleDescriptorOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -356,7 +361,7 @@ GetStyleDescriptorOutcome GeoMapsClient::GetStyleDescriptor(const GetStyleDescri return result.IsSuccess() ? GetStyleDescriptorOutcome(result.GetResultWithOwnership()) : GetStyleDescriptorOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -393,7 +398,8 @@ GetTileOutcome GeoMapsClient::GetTile(const GetTileRequest& request) const { {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetTileOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -410,7 +416,7 @@ GetTileOutcome GeoMapsClient::GetTile(const GetTileRequest& request) const { auto result = MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET); return result.IsSuccess() ? GetTileOutcome(result.GetResultWithOwnership()) : GetTileOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-geo-places/source/GeoPlacesClient.cpp b/generated/src/aws-cpp-sdk-geo-places/source/GeoPlacesClient.cpp index 340edf68cc7d..f068d5d26fd4 100644 --- a/generated/src/aws-cpp-sdk-geo-places/source/GeoPlacesClient.cpp +++ b/generated/src/aws-cpp-sdk-geo-places/source/GeoPlacesClient.cpp @@ -163,7 +163,8 @@ GeoPlacesClient::InvokeOperationOutcome GeoPlacesClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -177,7 +178,7 @@ GeoPlacesClient::InvokeOperationOutcome GeoPlacesClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-geo-routes/source/GeoRoutesClient.cpp b/generated/src/aws-cpp-sdk-geo-routes/source/GeoRoutesClient.cpp index c049d55da7ec..e5e07dfe5b8c 100644 --- a/generated/src/aws-cpp-sdk-geo-routes/source/GeoRoutesClient.cpp +++ b/generated/src/aws-cpp-sdk-geo-routes/source/GeoRoutesClient.cpp @@ -161,7 +161,8 @@ GeoRoutesClient::InvokeOperationOutcome GeoRoutesClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -175,7 +176,7 @@ GeoRoutesClient::InvokeOperationOutcome GeoRoutesClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-glacier/source/GlacierClient.cpp b/generated/src/aws-cpp-sdk-glacier/source/GlacierClient.cpp index 1febf13401e4..27538c2b4033 100644 --- a/generated/src/aws-cpp-sdk-glacier/source/GlacierClient.cpp +++ b/generated/src/aws-cpp-sdk-glacier/source/GlacierClient.cpp @@ -193,7 +193,8 @@ GlacierClient::InvokeOperationOutcome GlacierClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -207,7 +208,7 @@ GlacierClient::InvokeOperationOutcome GlacierClient::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}}); } @@ -579,7 +580,8 @@ GetJobOutputOutcome GlacierClient::GetJobOutput(const GetJobOutputRequest& reque {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetJobOutputOutcome { if (request.GetAccountId().size() != 12 || request.GetAccountId().find_first_not_of("0123456789") != Aws::String::npos) { AWS_LOGSTREAM_ERROR("GetJobOutput", "Required field: AccountId has invalid value"); @@ -603,7 +605,7 @@ GetJobOutputOutcome GlacierClient::GetJobOutput(const GetJobOutputRequest& reque return result.IsSuccess() ? GetJobOutputOutcome(result.GetResultWithOwnership()) : GetJobOutputOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-globalaccelerator/source/GlobalAcceleratorClient.cpp b/generated/src/aws-cpp-sdk-globalaccelerator/source/GlobalAcceleratorClient.cpp index 84e40e1276da..f3310b111f1b 100644 --- a/generated/src/aws-cpp-sdk-globalaccelerator/source/GlobalAcceleratorClient.cpp +++ b/generated/src/aws-cpp-sdk-globalaccelerator/source/GlobalAcceleratorClient.cpp @@ -216,7 +216,8 @@ GlobalAcceleratorClient::InvokeOperationOutcome GlobalAcceleratorClient::InvokeS {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -228,7 +229,7 @@ GlobalAcceleratorClient::InvokeOperationOutcome GlobalAcceleratorClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-glue/source/GlueClient.cpp b/generated/src/aws-cpp-sdk-glue/source/GlueClient.cpp index 07fd44121cb4..195c2007fd8e 100644 --- a/generated/src/aws-cpp-sdk-glue/source/GlueClient.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/GlueClient.cpp @@ -253,7 +253,8 @@ GlueClient::InvokeOperationOutcome GlueClient::InvokeServiceOperation(const Amaz {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -265,7 +266,7 @@ GlueClient::InvokeOperationOutcome GlueClient::InvokeServiceOperation(const Amaz 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}}); } diff --git a/generated/src/aws-cpp-sdk-grafana/source/ManagedGrafanaClient.cpp b/generated/src/aws-cpp-sdk-grafana/source/ManagedGrafanaClient.cpp index de947d116170..d5257960c38b 100644 --- a/generated/src/aws-cpp-sdk-grafana/source/ManagedGrafanaClient.cpp +++ b/generated/src/aws-cpp-sdk-grafana/source/ManagedGrafanaClient.cpp @@ -182,7 +182,8 @@ ManagedGrafanaClient::InvokeOperationOutcome ManagedGrafanaClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -196,7 +197,7 @@ ManagedGrafanaClient::InvokeOperationOutcome ManagedGrafanaClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-greengrass/source/GreengrassClient.cpp b/generated/src/aws-cpp-sdk-greengrass/source/GreengrassClient.cpp index 61d45bfde6a0..85467664153d 100644 --- a/generated/src/aws-cpp-sdk-greengrass/source/GreengrassClient.cpp +++ b/generated/src/aws-cpp-sdk-greengrass/source/GreengrassClient.cpp @@ -248,7 +248,8 @@ GreengrassClient::InvokeOperationOutcome GreengrassClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -262,7 +263,7 @@ GreengrassClient::InvokeOperationOutcome GreengrassClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-greengrassv2/source/GreengrassV2Client.cpp b/generated/src/aws-cpp-sdk-greengrassv2/source/GreengrassV2Client.cpp index 6c1c21bf3e3b..235c224baf1f 100644 --- a/generated/src/aws-cpp-sdk-greengrassv2/source/GreengrassV2Client.cpp +++ b/generated/src/aws-cpp-sdk-greengrassv2/source/GreengrassV2Client.cpp @@ -186,7 +186,8 @@ GreengrassV2Client::InvokeOperationOutcome GreengrassV2Client::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -200,7 +201,7 @@ GreengrassV2Client::InvokeOperationOutcome GreengrassV2Client::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}}); } diff --git a/generated/src/aws-cpp-sdk-groundstation/source/GroundStationClient.cpp b/generated/src/aws-cpp-sdk-groundstation/source/GroundStationClient.cpp index 26371c5dd4a2..c53d00338af9 100644 --- a/generated/src/aws-cpp-sdk-groundstation/source/GroundStationClient.cpp +++ b/generated/src/aws-cpp-sdk-groundstation/source/GroundStationClient.cpp @@ -197,7 +197,8 @@ GroundStationClient::InvokeOperationOutcome GroundStationClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -211,7 +212,7 @@ GroundStationClient::InvokeOperationOutcome GroundStationClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-guardduty/source/GuardDutyClient.cpp b/generated/src/aws-cpp-sdk-guardduty/source/GuardDutyClient.cpp index ebbd976351f4..8554927e99be 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/GuardDutyClient.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/GuardDutyClient.cpp @@ -255,7 +255,8 @@ GuardDutyClient::InvokeOperationOutcome GuardDutyClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -269,7 +270,7 @@ GuardDutyClient::InvokeOperationOutcome GuardDutyClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-health/source/HealthClient.cpp b/generated/src/aws-cpp-sdk-health/source/HealthClient.cpp index 0787cc6407c1..5dbbec18e356 100644 --- a/generated/src/aws-cpp-sdk-health/source/HealthClient.cpp +++ b/generated/src/aws-cpp-sdk-health/source/HealthClient.cpp @@ -170,7 +170,8 @@ HealthClient::InvokeOperationOutcome HealthClient::InvokeServiceOperation(const {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -185,7 +186,7 @@ HealthClient::InvokeOperationOutcome HealthClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-healthlake/source/HealthLakeClient.cpp b/generated/src/aws-cpp-sdk-healthlake/source/HealthLakeClient.cpp index cd8a21809337..ec83678818c3 100644 --- a/generated/src/aws-cpp-sdk-healthlake/source/HealthLakeClient.cpp +++ b/generated/src/aws-cpp-sdk-healthlake/source/HealthLakeClient.cpp @@ -181,7 +181,8 @@ HealthLakeClient::InvokeOperationOutcome HealthLakeClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -193,7 +194,7 @@ HealthLakeClient::InvokeOperationOutcome HealthLakeClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-iam-toolbox/source/IAMToolboxClient.cpp b/generated/src/aws-cpp-sdk-iam-toolbox/source/IAMToolboxClient.cpp index bb8eae113ec1..d194d52df8ff 100644 --- a/generated/src/aws-cpp-sdk-iam-toolbox/source/IAMToolboxClient.cpp +++ b/generated/src/aws-cpp-sdk-iam-toolbox/source/IAMToolboxClient.cpp @@ -157,7 +157,8 @@ IAMToolboxClient::InvokeOperationOutcome IAMToolboxClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -171,7 +172,7 @@ IAMToolboxClient::InvokeOperationOutcome IAMToolboxClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-iam/source/IAMClient.cpp b/generated/src/aws-cpp-sdk-iam/source/IAMClient.cpp index 8b0c0b3fabd3..525f9f44623f 100644 --- a/generated/src/aws-cpp-sdk-iam/source/IAMClient.cpp +++ b/generated/src/aws-cpp-sdk-iam/source/IAMClient.cpp @@ -353,7 +353,8 @@ IAMClient::InvokeOperationOutcome IAMClient::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -365,7 +366,7 @@ IAMClient::InvokeOperationOutcome IAMClient::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}}); } AcceptDelegationRequestOutcome IAMClient::AcceptDelegationRequest(const AcceptDelegationRequestRequest& request) const { diff --git a/generated/src/aws-cpp-sdk-identitystore/source/IdentityStoreClient.cpp b/generated/src/aws-cpp-sdk-identitystore/source/IdentityStoreClient.cpp index 5cbb6d287760..0a7eff5d094f 100644 --- a/generated/src/aws-cpp-sdk-identitystore/source/IdentityStoreClient.cpp +++ b/generated/src/aws-cpp-sdk-identitystore/source/IdentityStoreClient.cpp @@ -178,7 +178,8 @@ IdentityStoreClient::InvokeOperationOutcome IdentityStoreClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -190,7 +191,7 @@ IdentityStoreClient::InvokeOperationOutcome IdentityStoreClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-imagebuilder/source/ImagebuilderClient.cpp b/generated/src/aws-cpp-sdk-imagebuilder/source/ImagebuilderClient.cpp index 8929590cb4c3..80da42be7d33 100644 --- a/generated/src/aws-cpp-sdk-imagebuilder/source/ImagebuilderClient.cpp +++ b/generated/src/aws-cpp-sdk-imagebuilder/source/ImagebuilderClient.cpp @@ -234,7 +234,8 @@ ImagebuilderClient::InvokeOperationOutcome ImagebuilderClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -248,7 +249,7 @@ ImagebuilderClient::InvokeOperationOutcome ImagebuilderClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-importexport/source/ImportExportClient.cpp b/generated/src/aws-cpp-sdk-importexport/source/ImportExportClient.cpp index a8c110d33935..196f0415095d 100644 --- a/generated/src/aws-cpp-sdk-importexport/source/ImportExportClient.cpp +++ b/generated/src/aws-cpp-sdk-importexport/source/ImportExportClient.cpp @@ -183,7 +183,8 @@ ImportExportClient::InvokeOperationOutcome ImportExportClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -195,7 +196,7 @@ ImportExportClient::InvokeOperationOutcome ImportExportClient::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}}); } CancelJobOutcome ImportExportClient::CancelJob(const CancelJobRequest& request) const { diff --git a/generated/src/aws-cpp-sdk-inspector-scan/source/InspectorscanClient.cpp b/generated/src/aws-cpp-sdk-inspector-scan/source/InspectorscanClient.cpp index 690e74289e82..4d897384756b 100644 --- a/generated/src/aws-cpp-sdk-inspector-scan/source/InspectorscanClient.cpp +++ b/generated/src/aws-cpp-sdk-inspector-scan/source/InspectorscanClient.cpp @@ -158,7 +158,8 @@ InspectorscanClient::InvokeOperationOutcome InspectorscanClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -172,7 +173,7 @@ InspectorscanClient::InvokeOperationOutcome InspectorscanClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-inspector/source/InspectorClient.cpp b/generated/src/aws-cpp-sdk-inspector/source/InspectorClient.cpp index 694ac7cbd3e9..284bbea12910 100644 --- a/generated/src/aws-cpp-sdk-inspector/source/InspectorClient.cpp +++ b/generated/src/aws-cpp-sdk-inspector/source/InspectorClient.cpp @@ -192,7 +192,8 @@ InspectorClient::InvokeOperationOutcome InspectorClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -204,7 +205,7 @@ InspectorClient::InvokeOperationOutcome InspectorClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-inspector2/source/Inspector2Client.cpp b/generated/src/aws-cpp-sdk-inspector2/source/Inspector2Client.cpp index 78aa71c1e425..3c1e64b78e9b 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/Inspector2Client.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/Inspector2Client.cpp @@ -237,7 +237,8 @@ Inspector2Client::InvokeOperationOutcome Inspector2Client::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -251,7 +252,7 @@ Inspector2Client::InvokeOperationOutcome Inspector2Client::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-interconnect/source/InterconnectClient.cpp b/generated/src/aws-cpp-sdk-interconnect/source/InterconnectClient.cpp index c7829903ecfc..a03c55dbca63 100644 --- a/generated/src/aws-cpp-sdk-interconnect/source/InterconnectClient.cpp +++ b/generated/src/aws-cpp-sdk-interconnect/source/InterconnectClient.cpp @@ -169,7 +169,8 @@ InterconnectClient::InvokeOperationOutcome InterconnectClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -184,7 +185,7 @@ InterconnectClient::InvokeOperationOutcome InterconnectClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-internetmonitor/source/InternetMonitorClient.cpp b/generated/src/aws-cpp-sdk-internetmonitor/source/InternetMonitorClient.cpp index 74cc7b9da91b..0d2d8ac7d0d0 100644 --- a/generated/src/aws-cpp-sdk-internetmonitor/source/InternetMonitorClient.cpp +++ b/generated/src/aws-cpp-sdk-internetmonitor/source/InternetMonitorClient.cpp @@ -176,7 +176,8 @@ InternetMonitorClient::InvokeOperationOutcome InternetMonitorClient::InvokeServi {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -190,7 +191,7 @@ InternetMonitorClient::InvokeOperationOutcome InternetMonitorClient::InvokeServi 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}}); } diff --git a/generated/src/aws-cpp-sdk-invoicing/source/InvoicingClient.cpp b/generated/src/aws-cpp-sdk-invoicing/source/InvoicingClient.cpp index 6fce45385f72..b26a25670acb 100644 --- a/generated/src/aws-cpp-sdk-invoicing/source/InvoicingClient.cpp +++ b/generated/src/aws-cpp-sdk-invoicing/source/InvoicingClient.cpp @@ -176,7 +176,8 @@ InvoicingClient::InvokeOperationOutcome InvoicingClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -188,7 +189,7 @@ InvoicingClient::InvokeOperationOutcome InvoicingClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-iot-data/source/IoTDataPlaneClient.cpp b/generated/src/aws-cpp-sdk-iot-data/source/IoTDataPlaneClient.cpp index 35f997a4d4e8..00c03df1f3e8 100644 --- a/generated/src/aws-cpp-sdk-iot-data/source/IoTDataPlaneClient.cpp +++ b/generated/src/aws-cpp-sdk-iot-data/source/IoTDataPlaneClient.cpp @@ -172,7 +172,8 @@ IoTDataPlaneClient::InvokeOperationOutcome IoTDataPlaneClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -186,7 +187,7 @@ IoTDataPlaneClient::InvokeOperationOutcome IoTDataPlaneClient::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}}); } @@ -225,7 +226,8 @@ DeleteThingShadowOutcome IoTDataPlaneClient::DeleteThingShadow(const DeleteThing {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> DeleteThingShadowOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -241,7 +243,7 @@ DeleteThingShadowOutcome IoTDataPlaneClient::DeleteThingShadow(const DeleteThing return result.IsSuccess() ? DeleteThingShadowOutcome(result.GetResultWithOwnership()) : DeleteThingShadowOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -298,7 +300,8 @@ GetThingShadowOutcome IoTDataPlaneClient::GetThingShadow(const GetThingShadowReq {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetThingShadowOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -314,7 +317,7 @@ GetThingShadowOutcome IoTDataPlaneClient::GetThingShadow(const GetThingShadowReq return result.IsSuccess() ? GetThingShadowOutcome(result.GetResultWithOwnership()) : GetThingShadowOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -425,7 +428,8 @@ UpdateThingShadowOutcome IoTDataPlaneClient::UpdateThingShadow(const UpdateThing {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> UpdateThingShadowOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -441,7 +445,7 @@ UpdateThingShadowOutcome IoTDataPlaneClient::UpdateThingShadow(const UpdateThing return result.IsSuccess() ? UpdateThingShadowOutcome(result.GetResultWithOwnership()) : UpdateThingShadowOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-iot-jobs-data/source/IoTJobsDataPlaneClient.cpp b/generated/src/aws-cpp-sdk-iot-jobs-data/source/IoTJobsDataPlaneClient.cpp index f4db6b7ebc88..4e2630788e55 100644 --- a/generated/src/aws-cpp-sdk-iot-jobs-data/source/IoTJobsDataPlaneClient.cpp +++ b/generated/src/aws-cpp-sdk-iot-jobs-data/source/IoTJobsDataPlaneClient.cpp @@ -166,7 +166,8 @@ IoTJobsDataPlaneClient::InvokeOperationOutcome IoTJobsDataPlaneClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -180,7 +181,7 @@ IoTJobsDataPlaneClient::InvokeOperationOutcome IoTJobsDataPlaneClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-iot-managed-integrations/source/IoTManagedIntegrationsClient.cpp b/generated/src/aws-cpp-sdk-iot-managed-integrations/source/IoTManagedIntegrationsClient.cpp index 604c36161c5d..6ffb8238f039 100644 --- a/generated/src/aws-cpp-sdk-iot-managed-integrations/source/IoTManagedIntegrationsClient.cpp +++ b/generated/src/aws-cpp-sdk-iot-managed-integrations/source/IoTManagedIntegrationsClient.cpp @@ -248,7 +248,8 @@ IoTManagedIntegrationsClient::InvokeOperationOutcome IoTManagedIntegrationsClien {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -262,7 +263,7 @@ IoTManagedIntegrationsClient::InvokeOperationOutcome IoTManagedIntegrationsClien 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}}); } diff --git a/generated/src/aws-cpp-sdk-iot/source/IoTClient.cpp b/generated/src/aws-cpp-sdk-iot/source/IoTClient.cpp index 94e93e6e95b6..f99234514654 100644 --- a/generated/src/aws-cpp-sdk-iot/source/IoTClient.cpp +++ b/generated/src/aws-cpp-sdk-iot/source/IoTClient.cpp @@ -254,7 +254,8 @@ IoTClient::InvokeOperationOutcome IoTClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -268,7 +269,7 @@ IoTClient::InvokeOperationOutcome IoTClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorClient.cpp b/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorClient.cpp index 81d3aebaf79e..c3231de14169 100644 --- a/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorClient.cpp +++ b/generated/src/aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorClient.cpp @@ -175,7 +175,8 @@ IoTDeviceAdvisorClient::InvokeOperationOutcome IoTDeviceAdvisorClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -189,7 +190,7 @@ IoTDeviceAdvisorClient::InvokeOperationOutcome IoTDeviceAdvisorClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-iotfleetwise/source/IoTFleetWiseClient.cpp b/generated/src/aws-cpp-sdk-iotfleetwise/source/IoTFleetWiseClient.cpp index 32bfbf509299..ff3b0b989b27 100644 --- a/generated/src/aws-cpp-sdk-iotfleetwise/source/IoTFleetWiseClient.cpp +++ b/generated/src/aws-cpp-sdk-iotfleetwise/source/IoTFleetWiseClient.cpp @@ -213,7 +213,8 @@ IoTFleetWiseClient::InvokeOperationOutcome IoTFleetWiseClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -225,7 +226,7 @@ IoTFleetWiseClient::InvokeOperationOutcome IoTFleetWiseClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-iotsecuretunneling/source/IoTSecureTunnelingClient.cpp b/generated/src/aws-cpp-sdk-iotsecuretunneling/source/IoTSecureTunnelingClient.cpp index e6f577064568..c22ef70b4190 100644 --- a/generated/src/aws-cpp-sdk-iotsecuretunneling/source/IoTSecureTunnelingClient.cpp +++ b/generated/src/aws-cpp-sdk-iotsecuretunneling/source/IoTSecureTunnelingClient.cpp @@ -168,7 +168,8 @@ IoTSecureTunnelingClient::InvokeOperationOutcome IoTSecureTunnelingClient::Invok {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -180,7 +181,7 @@ IoTSecureTunnelingClient::InvokeOperationOutcome IoTSecureTunnelingClient::Invok 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}}); } diff --git a/generated/src/aws-cpp-sdk-iotsitewise/source/IoTSiteWiseClient.cpp b/generated/src/aws-cpp-sdk-iotsitewise/source/IoTSiteWiseClient.cpp index a07dd563d2a0..df07619bb825 100644 --- a/generated/src/aws-cpp-sdk-iotsitewise/source/IoTSiteWiseClient.cpp +++ b/generated/src/aws-cpp-sdk-iotsitewise/source/IoTSiteWiseClient.cpp @@ -306,7 +306,8 @@ IoTSiteWiseClient::InvokeOperationOutcome IoTSiteWiseClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -320,7 +321,7 @@ IoTSiteWiseClient::InvokeOperationOutcome IoTSiteWiseClient::InvokeServiceOperat 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}}); } @@ -2005,7 +2006,8 @@ InvokeAssistantOutcome IoTSiteWiseClient::InvokeAssistant(InvokeAssistantRequest {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeAssistantOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -2033,7 +2035,7 @@ InvokeAssistantOutcome IoTSiteWiseClient::InvokeAssistant(InvokeAssistantRequest return result.IsSuccess() ? InvokeAssistantOutcome(result.GetResultWithOwnership()) : InvokeAssistantOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-iotthingsgraph/source/IoTThingsGraphClient.cpp b/generated/src/aws-cpp-sdk-iotthingsgraph/source/IoTThingsGraphClient.cpp index d26dbe0b069b..714f27f1d8eb 100644 --- a/generated/src/aws-cpp-sdk-iotthingsgraph/source/IoTThingsGraphClient.cpp +++ b/generated/src/aws-cpp-sdk-iotthingsgraph/source/IoTThingsGraphClient.cpp @@ -156,7 +156,8 @@ IoTThingsGraphClient::InvokeOperationOutcome IoTThingsGraphClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -168,6 +169,6 @@ IoTThingsGraphClient::InvokeOperationOutcome IoTThingsGraphClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-iottwinmaker/source/IoTTwinMakerClient.cpp b/generated/src/aws-cpp-sdk-iottwinmaker/source/IoTTwinMakerClient.cpp index 7d76896bd118..a5733fa9b4da 100644 --- a/generated/src/aws-cpp-sdk-iottwinmaker/source/IoTTwinMakerClient.cpp +++ b/generated/src/aws-cpp-sdk-iottwinmaker/source/IoTTwinMakerClient.cpp @@ -197,7 +197,8 @@ IoTTwinMakerClient::InvokeOperationOutcome IoTTwinMakerClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -211,7 +212,7 @@ IoTTwinMakerClient::InvokeOperationOutcome IoTTwinMakerClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-iotwireless/source/IoTWirelessClient.cpp b/generated/src/aws-cpp-sdk-iotwireless/source/IoTWirelessClient.cpp index 878cb0057309..b391f42b6dcc 100644 --- a/generated/src/aws-cpp-sdk-iotwireless/source/IoTWirelessClient.cpp +++ b/generated/src/aws-cpp-sdk-iotwireless/source/IoTWirelessClient.cpp @@ -267,7 +267,8 @@ IoTWirelessClient::InvokeOperationOutcome IoTWirelessClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -281,7 +282,7 @@ IoTWirelessClient::InvokeOperationOutcome IoTWirelessClient::InvokeServiceOperat 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}}); } @@ -1150,7 +1151,8 @@ GetPositionEstimateOutcome IoTWirelessClient::GetPositionEstimate(const GetPosit {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetPositionEstimateOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1164,7 +1166,7 @@ GetPositionEstimateOutcome IoTWirelessClient::GetPositionEstimate(const GetPosit return result.IsSuccess() ? GetPositionEstimateOutcome(result.GetResultWithOwnership()) : GetPositionEstimateOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -1238,7 +1240,8 @@ GetResourcePositionOutcome IoTWirelessClient::GetResourcePosition(const GetResou {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetResourcePositionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1253,7 +1256,7 @@ GetResourcePositionOutcome IoTWirelessClient::GetResourcePosition(const GetResou return result.IsSuccess() ? GetResourcePositionOutcome(result.GetResultWithOwnership()) : GetResourcePositionOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-ivs-realtime/source/IvsrealtimeClient.cpp b/generated/src/aws-cpp-sdk-ivs-realtime/source/IvsrealtimeClient.cpp index f0249a332ac3..590bd99d39b1 100644 --- a/generated/src/aws-cpp-sdk-ivs-realtime/source/IvsrealtimeClient.cpp +++ b/generated/src/aws-cpp-sdk-ivs-realtime/source/IvsrealtimeClient.cpp @@ -195,7 +195,8 @@ IvsrealtimeClient::InvokeOperationOutcome IvsrealtimeClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -209,7 +210,7 @@ IvsrealtimeClient::InvokeOperationOutcome IvsrealtimeClient::InvokeServiceOperat 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}}); } diff --git a/generated/src/aws-cpp-sdk-ivs/source/IVSClient.cpp b/generated/src/aws-cpp-sdk-ivs/source/IVSClient.cpp index 5996f1a79932..4b7451a9bc5e 100644 --- a/generated/src/aws-cpp-sdk-ivs/source/IVSClient.cpp +++ b/generated/src/aws-cpp-sdk-ivs/source/IVSClient.cpp @@ -195,7 +195,8 @@ IVSClient::InvokeOperationOutcome IVSClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -209,7 +210,7 @@ IVSClient::InvokeOperationOutcome IVSClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-ivschat/source/IvschatClient.cpp b/generated/src/aws-cpp-sdk-ivschat/source/IvschatClient.cpp index 92958fe11bbe..bdfc7735defd 100644 --- a/generated/src/aws-cpp-sdk-ivschat/source/IvschatClient.cpp +++ b/generated/src/aws-cpp-sdk-ivschat/source/IvschatClient.cpp @@ -173,7 +173,8 @@ IvschatClient::InvokeOperationOutcome IvschatClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -187,7 +188,7 @@ IvschatClient::InvokeOperationOutcome IvschatClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-kafka/source/KafkaClient.cpp b/generated/src/aws-cpp-sdk-kafka/source/KafkaClient.cpp index 342b57cbf178..916556a5c5c2 100644 --- a/generated/src/aws-cpp-sdk-kafka/source/KafkaClient.cpp +++ b/generated/src/aws-cpp-sdk-kafka/source/KafkaClient.cpp @@ -220,7 +220,8 @@ KafkaClient::InvokeOperationOutcome KafkaClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -234,7 +235,7 @@ KafkaClient::InvokeOperationOutcome KafkaClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-kafkaconnect/source/KafkaConnectClient.cpp b/generated/src/aws-cpp-sdk-kafkaconnect/source/KafkaConnectClient.cpp index ce64b0e987f9..1c9103fbd159 100644 --- a/generated/src/aws-cpp-sdk-kafkaconnect/source/KafkaConnectClient.cpp +++ b/generated/src/aws-cpp-sdk-kafkaconnect/source/KafkaConnectClient.cpp @@ -176,7 +176,8 @@ KafkaConnectClient::InvokeOperationOutcome KafkaConnectClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -190,7 +191,7 @@ KafkaConnectClient::InvokeOperationOutcome KafkaConnectClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-kendra-ranking/source/KendraRankingClient.cpp b/generated/src/aws-cpp-sdk-kendra-ranking/source/KendraRankingClient.cpp index 22f3f4b7029c..c443e66ab0e5 100644 --- a/generated/src/aws-cpp-sdk-kendra-ranking/source/KendraRankingClient.cpp +++ b/generated/src/aws-cpp-sdk-kendra-ranking/source/KendraRankingClient.cpp @@ -165,7 +165,8 @@ KendraRankingClient::InvokeOperationOutcome KendraRankingClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -180,7 +181,7 @@ KendraRankingClient::InvokeOperationOutcome KendraRankingClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-kendra/source/KendraClient.cpp b/generated/src/aws-cpp-sdk-kendra/source/KendraClient.cpp index 947b63bc4128..4901b225d5b3 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/KendraClient.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/KendraClient.cpp @@ -221,7 +221,8 @@ KendraClient::InvokeOperationOutcome KendraClient::InvokeServiceOperation(const {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -233,7 +234,7 @@ KendraClient::InvokeOperationOutcome KendraClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-keyspaces/source/KeyspacesClient.cpp b/generated/src/aws-cpp-sdk-keyspaces/source/KeyspacesClient.cpp index c2e3f4e2af75..ecab8d0179e7 100644 --- a/generated/src/aws-cpp-sdk-keyspaces/source/KeyspacesClient.cpp +++ b/generated/src/aws-cpp-sdk-keyspaces/source/KeyspacesClient.cpp @@ -174,7 +174,8 @@ KeyspacesClient::InvokeOperationOutcome KeyspacesClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -189,7 +190,7 @@ KeyspacesClient::InvokeOperationOutcome KeyspacesClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-keyspacesstreams/source/KeyspacesStreamsClient.cpp b/generated/src/aws-cpp-sdk-keyspacesstreams/source/KeyspacesStreamsClient.cpp index 23006e60fa86..c0e07ddc9683 100644 --- a/generated/src/aws-cpp-sdk-keyspacesstreams/source/KeyspacesStreamsClient.cpp +++ b/generated/src/aws-cpp-sdk-keyspacesstreams/source/KeyspacesStreamsClient.cpp @@ -164,7 +164,8 @@ KeyspacesStreamsClient::InvokeOperationOutcome KeyspacesStreamsClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -176,7 +177,7 @@ KeyspacesStreamsClient::InvokeOperationOutcome KeyspacesStreamsClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/KinesisVideoArchivedMediaClient.cpp b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/KinesisVideoArchivedMediaClient.cpp index 15a7321fec9e..ded3b70e2c7e 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/KinesisVideoArchivedMediaClient.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-archived-media/source/KinesisVideoArchivedMediaClient.cpp @@ -171,7 +171,8 @@ KinesisVideoArchivedMediaClient::InvokeOperationOutcome KinesisVideoArchivedMedi {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -185,7 +186,7 @@ KinesisVideoArchivedMediaClient::InvokeOperationOutcome KinesisVideoArchivedMedi 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}}); } @@ -201,7 +202,8 @@ GetClipOutcome KinesisVideoArchivedMediaClient::GetClip(const GetClipRequest& re {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetClipOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -214,7 +216,7 @@ GetClipOutcome KinesisVideoArchivedMediaClient::GetClip(const GetClipRequest& re auto result = MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST); return result.IsSuccess() ? GetClipOutcome(result.GetResultWithOwnership()) : GetClipOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -266,7 +268,8 @@ GetMediaForFragmentListOutcome KinesisVideoArchivedMediaClient::GetMediaForFragm {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetMediaForFragmentListOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -280,7 +283,7 @@ GetMediaForFragmentListOutcome KinesisVideoArchivedMediaClient::GetMediaForFragm return result.IsSuccess() ? GetMediaForFragmentListOutcome(result.GetResultWithOwnership()) : GetMediaForFragmentListOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-kinesis-video-media/source/KinesisVideoMediaClient.cpp b/generated/src/aws-cpp-sdk-kinesis-video-media/source/KinesisVideoMediaClient.cpp index 31465cd18491..61697b833138 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-media/source/KinesisVideoMediaClient.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-media/source/KinesisVideoMediaClient.cpp @@ -162,7 +162,8 @@ KinesisVideoMediaClient::InvokeOperationOutcome KinesisVideoMediaClient::InvokeS {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -176,7 +177,7 @@ KinesisVideoMediaClient::InvokeOperationOutcome KinesisVideoMediaClient::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}}); } @@ -192,7 +193,8 @@ GetMediaOutcome KinesisVideoMediaClient::GetMedia(const GetMediaRequest& request {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetMediaOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -205,7 +207,7 @@ GetMediaOutcome KinesisVideoMediaClient::GetMedia(const GetMediaRequest& request auto result = MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST); return result.IsSuccess() ? GetMediaOutcome(result.GetResultWithOwnership()) : GetMediaOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-kinesis-video-signaling/source/KinesisVideoSignalingChannelsClient.cpp b/generated/src/aws-cpp-sdk-kinesis-video-signaling/source/KinesisVideoSignalingChannelsClient.cpp index 0e34c9adcd2f..b1c6c5970b7b 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-signaling/source/KinesisVideoSignalingChannelsClient.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-signaling/source/KinesisVideoSignalingChannelsClient.cpp @@ -168,7 +168,8 @@ KinesisVideoSignalingChannelsClient::InvokeOperationOutcome KinesisVideoSignalin {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -182,7 +183,7 @@ KinesisVideoSignalingChannelsClient::InvokeOperationOutcome KinesisVideoSignalin 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}}); } diff --git a/generated/src/aws-cpp-sdk-kinesis-video-webrtc-storage/source/KinesisVideoWebRTCStorageClient.cpp b/generated/src/aws-cpp-sdk-kinesis-video-webrtc-storage/source/KinesisVideoWebRTCStorageClient.cpp index fa3d7eacf7d2..b80a3b5ee4b2 100644 --- a/generated/src/aws-cpp-sdk-kinesis-video-webrtc-storage/source/KinesisVideoWebRTCStorageClient.cpp +++ b/generated/src/aws-cpp-sdk-kinesis-video-webrtc-storage/source/KinesisVideoWebRTCStorageClient.cpp @@ -167,7 +167,8 @@ KinesisVideoWebRTCStorageClient::InvokeOperationOutcome KinesisVideoWebRTCStorag {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -181,7 +182,7 @@ KinesisVideoWebRTCStorageClient::InvokeOperationOutcome KinesisVideoWebRTCStorag 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}}); } diff --git a/generated/src/aws-cpp-sdk-kinesis/source/KinesisClient.cpp b/generated/src/aws-cpp-sdk-kinesis/source/KinesisClient.cpp index 83eaf64db51f..4b367cd64473 100644 --- a/generated/src/aws-cpp-sdk-kinesis/source/KinesisClient.cpp +++ b/generated/src/aws-cpp-sdk-kinesis/source/KinesisClient.cpp @@ -201,7 +201,8 @@ KinesisClient::InvokeOperationOutcome KinesisClient::InvokeServiceOperation(cons {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -213,7 +214,7 @@ KinesisClient::InvokeOperationOutcome KinesisClient::InvokeServiceOperation(cons 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}}); } @@ -427,7 +428,8 @@ SubscribeToShardOutcome KinesisClient::SubscribeToShard(SubscribeToShardRequest& {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> SubscribeToShardOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -452,7 +454,7 @@ SubscribeToShardOutcome KinesisClient::SubscribeToShard(SubscribeToShardRequest& return result.IsSuccess() ? SubscribeToShardOutcome(result.GetResultWithOwnership()) : SubscribeToShardOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-kinesisanalytics/source/KinesisAnalyticsClient.cpp b/generated/src/aws-cpp-sdk-kinesisanalytics/source/KinesisAnalyticsClient.cpp index f151155cb435..7fc31a1a73b4 100644 --- a/generated/src/aws-cpp-sdk-kinesisanalytics/source/KinesisAnalyticsClient.cpp +++ b/generated/src/aws-cpp-sdk-kinesisanalytics/source/KinesisAnalyticsClient.cpp @@ -180,7 +180,8 @@ KinesisAnalyticsClient::InvokeOperationOutcome KinesisAnalyticsClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -192,7 +193,7 @@ KinesisAnalyticsClient::InvokeOperationOutcome KinesisAnalyticsClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/KinesisAnalyticsV2Client.cpp b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/KinesisAnalyticsV2Client.cpp index b056f9035189..af9de7976aab 100644 --- a/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/KinesisAnalyticsV2Client.cpp +++ b/generated/src/aws-cpp-sdk-kinesisanalyticsv2/source/KinesisAnalyticsV2Client.cpp @@ -193,7 +193,8 @@ KinesisAnalyticsV2Client::InvokeOperationOutcome KinesisAnalyticsV2Client::Invok {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -205,7 +206,7 @@ KinesisAnalyticsV2Client::InvokeOperationOutcome KinesisAnalyticsV2Client::Invok 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}}); } diff --git a/generated/src/aws-cpp-sdk-kinesisvideo/source/KinesisVideoClient.cpp b/generated/src/aws-cpp-sdk-kinesisvideo/source/KinesisVideoClient.cpp index cd9659559d80..b8e48eb087f7 100644 --- a/generated/src/aws-cpp-sdk-kinesisvideo/source/KinesisVideoClient.cpp +++ b/generated/src/aws-cpp-sdk-kinesisvideo/source/KinesisVideoClient.cpp @@ -189,7 +189,8 @@ KinesisVideoClient::InvokeOperationOutcome KinesisVideoClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -203,7 +204,7 @@ KinesisVideoClient::InvokeOperationOutcome KinesisVideoClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-kms/source/KMSClient.cpp b/generated/src/aws-cpp-sdk-kms/source/KMSClient.cpp index 0ae7af5c5de4..37213f796d41 100644 --- a/generated/src/aws-cpp-sdk-kms/source/KMSClient.cpp +++ b/generated/src/aws-cpp-sdk-kms/source/KMSClient.cpp @@ -207,7 +207,8 @@ KMSClient::InvokeOperationOutcome KMSClient::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -219,7 +220,7 @@ KMSClient::InvokeOperationOutcome KMSClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-lakeformation/source/LakeFormationClient.cpp b/generated/src/aws-cpp-sdk-lakeformation/source/LakeFormationClient.cpp index e1e176d8d8ef..b6aeb52fa8f0 100644 --- a/generated/src/aws-cpp-sdk-lakeformation/source/LakeFormationClient.cpp +++ b/generated/src/aws-cpp-sdk-lakeformation/source/LakeFormationClient.cpp @@ -218,7 +218,8 @@ LakeFormationClient::InvokeOperationOutcome LakeFormationClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -232,7 +233,7 @@ LakeFormationClient::InvokeOperationOutcome LakeFormationClient::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}}); } @@ -637,7 +638,8 @@ GetWorkUnitResultsOutcome LakeFormationClient::GetWorkUnitResults(const GetWorkU {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetWorkUnitResultsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -653,7 +655,7 @@ GetWorkUnitResultsOutcome LakeFormationClient::GetWorkUnitResults(const GetWorkU return result.IsSuccess() ? GetWorkUnitResultsOutcome(result.GetResultWithOwnership()) : GetWorkUnitResultsOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-lambda-core/source/LambdaCoreClient.cpp b/generated/src/aws-cpp-sdk-lambda-core/source/LambdaCoreClient.cpp index f3136f2cee58..e00bcf83a778 100644 --- a/generated/src/aws-cpp-sdk-lambda-core/source/LambdaCoreClient.cpp +++ b/generated/src/aws-cpp-sdk-lambda-core/source/LambdaCoreClient.cpp @@ -161,7 +161,8 @@ LambdaCoreClient::InvokeOperationOutcome LambdaCoreClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -175,7 +176,7 @@ LambdaCoreClient::InvokeOperationOutcome LambdaCoreClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-lambda-microvms/source/LambdaMicrovmsClient.cpp b/generated/src/aws-cpp-sdk-lambda-microvms/source/LambdaMicrovmsClient.cpp index 4471be6e4dce..e2bc341d52d0 100644 --- a/generated/src/aws-cpp-sdk-lambda-microvms/source/LambdaMicrovmsClient.cpp +++ b/generated/src/aws-cpp-sdk-lambda-microvms/source/LambdaMicrovmsClient.cpp @@ -181,7 +181,8 @@ LambdaMicrovmsClient::InvokeOperationOutcome LambdaMicrovmsClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -195,7 +196,7 @@ LambdaMicrovmsClient::InvokeOperationOutcome LambdaMicrovmsClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-lambda-web/source/LambdaWebClient.cpp b/generated/src/aws-cpp-sdk-lambda-web/source/LambdaWebClient.cpp index 078bc54e5803..d6f3a95ef89f 100644 --- a/generated/src/aws-cpp-sdk-lambda-web/source/LambdaWebClient.cpp +++ b/generated/src/aws-cpp-sdk-lambda-web/source/LambdaWebClient.cpp @@ -157,7 +157,8 @@ LambdaWebClient::InvokeOperationOutcome LambdaWebClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -171,7 +172,7 @@ LambdaWebClient::InvokeOperationOutcome LambdaWebClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-lambda/source/LambdaClient.cpp b/generated/src/aws-cpp-sdk-lambda/source/LambdaClient.cpp index 60c261664086..8ce4ffb85525 100644 --- a/generated/src/aws-cpp-sdk-lambda/source/LambdaClient.cpp +++ b/generated/src/aws-cpp-sdk-lambda/source/LambdaClient.cpp @@ -248,7 +248,8 @@ LambdaClient::InvokeOperationOutcome LambdaClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -262,7 +263,7 @@ LambdaClient::InvokeOperationOutcome LambdaClient::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}}); } @@ -1123,7 +1124,8 @@ InvokeOutcome LambdaClient::Invoke(const InvokeRequest& request) const { {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1138,7 +1140,7 @@ InvokeOutcome LambdaClient::Invoke(const InvokeRequest& request) const { auto result = MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST); return result.IsSuccess() ? InvokeOutcome(result.GetResultWithOwnership()) : InvokeOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -1160,7 +1162,8 @@ InvokeWithResponseStreamOutcome LambdaClient::InvokeWithResponseStream(InvokeWit {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeWithResponseStreamOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1188,7 +1191,7 @@ InvokeWithResponseStreamOutcome LambdaClient::InvokeWithResponseStream(InvokeWit return result.IsSuccess() ? InvokeWithResponseStreamOutcome(result.GetResultWithOwnership()) : InvokeWithResponseStreamOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-launch-wizard/source/LaunchWizardClient.cpp b/generated/src/aws-cpp-sdk-launch-wizard/source/LaunchWizardClient.cpp index 5aae86e65384..15eb025d7d7f 100644 --- a/generated/src/aws-cpp-sdk-launch-wizard/source/LaunchWizardClient.cpp +++ b/generated/src/aws-cpp-sdk-launch-wizard/source/LaunchWizardClient.cpp @@ -172,7 +172,8 @@ LaunchWizardClient::InvokeOperationOutcome LaunchWizardClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -186,7 +187,7 @@ LaunchWizardClient::InvokeOperationOutcome LaunchWizardClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-lex-models/source/LexModelBuildingServiceClient.cpp b/generated/src/aws-cpp-sdk-lex-models/source/LexModelBuildingServiceClient.cpp index dfaa2ef9b115..871fe4ec9986 100644 --- a/generated/src/aws-cpp-sdk-lex-models/source/LexModelBuildingServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-lex-models/source/LexModelBuildingServiceClient.cpp @@ -165,7 +165,8 @@ LexModelBuildingServiceClient::InvokeOperationOutcome LexModelBuildingServiceCli {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -179,6 +180,6 @@ LexModelBuildingServiceClient::InvokeOperationOutcome LexModelBuildingServiceCli 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}}); } diff --git a/generated/src/aws-cpp-sdk-lex/source/LexRuntimeServiceClient.cpp b/generated/src/aws-cpp-sdk-lex/source/LexRuntimeServiceClient.cpp index a788b8bd5112..70880fa43ca2 100644 --- a/generated/src/aws-cpp-sdk-lex/source/LexRuntimeServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-lex/source/LexRuntimeServiceClient.cpp @@ -170,7 +170,8 @@ LexRuntimeServiceClient::InvokeOperationOutcome LexRuntimeServiceClient::InvokeS {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -184,7 +185,7 @@ LexRuntimeServiceClient::InvokeOperationOutcome LexRuntimeServiceClient::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}}); } @@ -279,7 +280,8 @@ PostContentOutcome LexRuntimeServiceClient::PostContent(const PostContentRequest {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> PostContentOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -298,7 +300,7 @@ PostContentOutcome LexRuntimeServiceClient::PostContent(const PostContentRequest auto result = MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST); return result.IsSuccess() ? PostContentOutcome(result.GetResultWithOwnership()) : PostContentOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -362,7 +364,8 @@ PutSessionOutcome LexRuntimeServiceClient::PutSession(const PutSessionRequest& r {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> PutSessionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -381,7 +384,7 @@ PutSessionOutcome LexRuntimeServiceClient::PutSession(const PutSessionRequest& r auto result = MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST); return result.IsSuccess() ? PutSessionOutcome(result.GetResultWithOwnership()) : PutSessionOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-lexv2-models/source/LexModelsV2Client.cpp b/generated/src/aws-cpp-sdk-lexv2-models/source/LexModelsV2Client.cpp index cc65e259a7fb..49806473b3f9 100644 --- a/generated/src/aws-cpp-sdk-lexv2-models/source/LexModelsV2Client.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-models/source/LexModelsV2Client.cpp @@ -263,7 +263,8 @@ LexModelsV2Client::InvokeOperationOutcome LexModelsV2Client::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -277,7 +278,7 @@ LexModelsV2Client::InvokeOperationOutcome LexModelsV2Client::InvokeServiceOperat 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}}); } diff --git a/generated/src/aws-cpp-sdk-lexv2-runtime/source/LexRuntimeV2Client.cpp b/generated/src/aws-cpp-sdk-lexv2-runtime/source/LexRuntimeV2Client.cpp index 52729e1932ee..87262baca775 100644 --- a/generated/src/aws-cpp-sdk-lexv2-runtime/source/LexRuntimeV2Client.cpp +++ b/generated/src/aws-cpp-sdk-lexv2-runtime/source/LexRuntimeV2Client.cpp @@ -170,7 +170,8 @@ LexRuntimeV2Client::InvokeOperationOutcome LexRuntimeV2Client::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -184,7 +185,7 @@ LexRuntimeV2Client::InvokeOperationOutcome LexRuntimeV2Client::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}}); } @@ -296,7 +297,8 @@ PutSessionOutcome LexRuntimeV2Client::PutSession(const PutSessionRequest& reques {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> PutSessionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -316,7 +318,7 @@ PutSessionOutcome LexRuntimeV2Client::PutSession(const PutSessionRequest& reques auto result = MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST); return result.IsSuccess() ? PutSessionOutcome(result.GetResultWithOwnership()) : PutSessionOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -397,7 +399,8 @@ RecognizeUtteranceOutcome LexRuntimeV2Client::RecognizeUtterance(const Recognize {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> RecognizeUtteranceOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -419,7 +422,7 @@ RecognizeUtteranceOutcome LexRuntimeV2Client::RecognizeUtterance(const Recognize return result.IsSuccess() ? RecognizeUtteranceOutcome(result.GetResultWithOwnership()) : RecognizeUtteranceOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/LicenseManagerLinuxSubscriptionsClient.cpp b/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/LicenseManagerLinuxSubscriptionsClient.cpp index 2e9d7c28f1e1..75cf09830206 100644 --- a/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/LicenseManagerLinuxSubscriptionsClient.cpp +++ b/generated/src/aws-cpp-sdk-license-manager-linux-subscriptions/source/LicenseManagerLinuxSubscriptionsClient.cpp @@ -177,7 +177,8 @@ LicenseManagerLinuxSubscriptionsClient::InvokeOperationOutcome LicenseManagerLin {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -191,7 +192,7 @@ LicenseManagerLinuxSubscriptionsClient::InvokeOperationOutcome LicenseManagerLin 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}}); } diff --git a/generated/src/aws-cpp-sdk-license-manager-user-subscriptions/source/LicenseManagerUserSubscriptionsClient.cpp b/generated/src/aws-cpp-sdk-license-manager-user-subscriptions/source/LicenseManagerUserSubscriptionsClient.cpp index 3987c59df46f..247500b45334 100644 --- a/generated/src/aws-cpp-sdk-license-manager-user-subscriptions/source/LicenseManagerUserSubscriptionsClient.cpp +++ b/generated/src/aws-cpp-sdk-license-manager-user-subscriptions/source/LicenseManagerUserSubscriptionsClient.cpp @@ -183,7 +183,8 @@ LicenseManagerUserSubscriptionsClient::InvokeOperationOutcome LicenseManagerUser {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -197,7 +198,7 @@ LicenseManagerUserSubscriptionsClient::InvokeOperationOutcome LicenseManagerUser 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}}); } diff --git a/generated/src/aws-cpp-sdk-license-manager/source/LicenseManagerClient.cpp b/generated/src/aws-cpp-sdk-license-manager/source/LicenseManagerClient.cpp index 4380e3799069..e1c5461f7975 100644 --- a/generated/src/aws-cpp-sdk-license-manager/source/LicenseManagerClient.cpp +++ b/generated/src/aws-cpp-sdk-license-manager/source/LicenseManagerClient.cpp @@ -218,7 +218,8 @@ LicenseManagerClient::InvokeOperationOutcome LicenseManagerClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -230,7 +231,7 @@ LicenseManagerClient::InvokeOperationOutcome LicenseManagerClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-lightsail/source/LightsailClient.cpp b/generated/src/aws-cpp-sdk-lightsail/source/LightsailClient.cpp index 2cc3b2772e5a..ac949ba2cedf 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/LightsailClient.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/LightsailClient.cpp @@ -317,7 +317,8 @@ LightsailClient::InvokeOperationOutcome LightsailClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -329,7 +330,7 @@ LightsailClient::InvokeOperationOutcome LightsailClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-location/source/LocationServiceClient.cpp b/generated/src/aws-cpp-sdk-location/source/LocationServiceClient.cpp index 61e37f2e1106..ad26e41c7282 100644 --- a/generated/src/aws-cpp-sdk-location/source/LocationServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-location/source/LocationServiceClient.cpp @@ -224,7 +224,8 @@ LocationServiceClient::InvokeOperationOutcome LocationServiceClient::InvokeServi {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -238,7 +239,7 @@ LocationServiceClient::InvokeOperationOutcome LocationServiceClient::InvokeServi 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}}); } @@ -863,7 +864,8 @@ GetMapGlyphsOutcome LocationServiceClient::GetMapGlyphs(const GetMapGlyphsReques {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetMapGlyphsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -883,7 +885,7 @@ GetMapGlyphsOutcome LocationServiceClient::GetMapGlyphs(const GetMapGlyphsReques return result.IsSuccess() ? GetMapGlyphsOutcome(result.GetResultWithOwnership()) : GetMapGlyphsOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -910,7 +912,8 @@ GetMapSpritesOutcome LocationServiceClient::GetMapSprites(const GetMapSpritesReq {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetMapSpritesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -929,7 +932,7 @@ GetMapSpritesOutcome LocationServiceClient::GetMapSprites(const GetMapSpritesReq return result.IsSuccess() ? GetMapSpritesOutcome(result.GetResultWithOwnership()) : GetMapSpritesOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -951,7 +954,8 @@ GetMapStyleDescriptorOutcome LocationServiceClient::GetMapStyleDescriptor(const {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetMapStyleDescriptorOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -969,7 +973,7 @@ GetMapStyleDescriptorOutcome LocationServiceClient::GetMapStyleDescriptor(const return result.IsSuccess() ? GetMapStyleDescriptorOutcome(result.GetResultWithOwnership()) : GetMapStyleDescriptorOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -1006,7 +1010,8 @@ GetMapTileOutcome LocationServiceClient::GetMapTile(const GetMapTileRequest& req {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetMapTileOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1026,7 +1031,7 @@ GetMapTileOutcome LocationServiceClient::GetMapTile(const GetMapTileRequest& req auto result = MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET); return result.IsSuccess() ? GetMapTileOutcome(result.GetResultWithOwnership()) : GetMapTileOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-logs/source/CloudWatchLogsClient.cpp b/generated/src/aws-cpp-sdk-logs/source/CloudWatchLogsClient.cpp index 0061bed360dc..dae86118741a 100644 --- a/generated/src/aws-cpp-sdk-logs/source/CloudWatchLogsClient.cpp +++ b/generated/src/aws-cpp-sdk-logs/source/CloudWatchLogsClient.cpp @@ -272,7 +272,8 @@ CloudWatchLogsClient::InvokeOperationOutcome CloudWatchLogsClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -284,7 +285,7 @@ CloudWatchLogsClient::InvokeOperationOutcome CloudWatchLogsClient::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}}); } @@ -689,7 +690,8 @@ GetLogObjectOutcome CloudWatchLogsClient::GetLogObject(GetLogObjectRequest& requ {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetLogObjectOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -716,7 +718,7 @@ GetLogObjectOutcome CloudWatchLogsClient::GetLogObject(GetLogObjectRequest& requ return result.IsSuccess() ? GetLogObjectOutcome(result.GetResultWithOwnership()) : GetLogObjectOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -950,7 +952,8 @@ StartLiveTailOutcome CloudWatchLogsClient::StartLiveTail(StartLiveTailRequest& r {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> StartLiveTailOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -977,7 +980,7 @@ StartLiveTailOutcome CloudWatchLogsClient::StartLiveTail(StartLiveTailRequest& r return result.IsSuccess() ? StartLiveTailOutcome(result.GetResultWithOwnership()) : StartLiveTailOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-lookoutequipment/source/LookoutEquipmentClient.cpp b/generated/src/aws-cpp-sdk-lookoutequipment/source/LookoutEquipmentClient.cpp index b33a72a64dc8..48bf828d440e 100644 --- a/generated/src/aws-cpp-sdk-lookoutequipment/source/LookoutEquipmentClient.cpp +++ b/generated/src/aws-cpp-sdk-lookoutequipment/source/LookoutEquipmentClient.cpp @@ -209,7 +209,8 @@ LookoutEquipmentClient::InvokeOperationOutcome LookoutEquipmentClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -221,7 +222,7 @@ LookoutEquipmentClient::InvokeOperationOutcome LookoutEquipmentClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-m2/source/MainframeModernizationClient.cpp b/generated/src/aws-cpp-sdk-m2/source/MainframeModernizationClient.cpp index 768c1362eee8..81cf671b9671 100644 --- a/generated/src/aws-cpp-sdk-m2/source/MainframeModernizationClient.cpp +++ b/generated/src/aws-cpp-sdk-m2/source/MainframeModernizationClient.cpp @@ -202,7 +202,8 @@ MainframeModernizationClient::InvokeOperationOutcome MainframeModernizationClien {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -216,7 +217,7 @@ MainframeModernizationClient::InvokeOperationOutcome MainframeModernizationClien 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}}); } diff --git a/generated/src/aws-cpp-sdk-machinelearning/source/MachineLearningClient.cpp b/generated/src/aws-cpp-sdk-machinelearning/source/MachineLearningClient.cpp index d12f70032da5..869407f7ae06 100644 --- a/generated/src/aws-cpp-sdk-machinelearning/source/MachineLearningClient.cpp +++ b/generated/src/aws-cpp-sdk-machinelearning/source/MachineLearningClient.cpp @@ -178,7 +178,8 @@ AddTagsOutcome MachineLearningClient::AddTags(const AddTagsRequest& request) con {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> AddTagsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -190,7 +191,7 @@ AddTagsOutcome MachineLearningClient::AddTags(const AddTagsRequest& request) con auto result = MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST); return result.IsSuccess() ? AddTagsOutcome(result.GetResultWithOwnership()) : AddTagsOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -206,7 +207,8 @@ CreateBatchPredictionOutcome MachineLearningClient::CreateBatchPrediction(const {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> CreateBatchPredictionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -219,7 +221,7 @@ CreateBatchPredictionOutcome MachineLearningClient::CreateBatchPrediction(const return result.IsSuccess() ? CreateBatchPredictionOutcome(result.GetResultWithOwnership()) : CreateBatchPredictionOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -235,7 +237,8 @@ CreateDataSourceFromRDSOutcome MachineLearningClient::CreateDataSourceFromRDS(co {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> CreateDataSourceFromRDSOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -248,7 +251,7 @@ CreateDataSourceFromRDSOutcome MachineLearningClient::CreateDataSourceFromRDS(co return result.IsSuccess() ? CreateDataSourceFromRDSOutcome(result.GetResultWithOwnership()) : CreateDataSourceFromRDSOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -265,7 +268,8 @@ CreateDataSourceFromRedshiftOutcome MachineLearningClient::CreateDataSourceFromR {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> CreateDataSourceFromRedshiftOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -278,7 +282,7 @@ CreateDataSourceFromRedshiftOutcome MachineLearningClient::CreateDataSourceFromR return result.IsSuccess() ? CreateDataSourceFromRedshiftOutcome(result.GetResultWithOwnership()) : CreateDataSourceFromRedshiftOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -294,7 +298,8 @@ CreateDataSourceFromS3Outcome MachineLearningClient::CreateDataSourceFromS3(cons {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> CreateDataSourceFromS3Outcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -307,7 +312,7 @@ CreateDataSourceFromS3Outcome MachineLearningClient::CreateDataSourceFromS3(cons return result.IsSuccess() ? CreateDataSourceFromS3Outcome(result.GetResultWithOwnership()) : CreateDataSourceFromS3Outcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -323,7 +328,8 @@ CreateEvaluationOutcome MachineLearningClient::CreateEvaluation(const CreateEval {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> CreateEvaluationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -336,7 +342,7 @@ CreateEvaluationOutcome MachineLearningClient::CreateEvaluation(const CreateEval return result.IsSuccess() ? CreateEvaluationOutcome(result.GetResultWithOwnership()) : CreateEvaluationOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -352,7 +358,8 @@ CreateMLModelOutcome MachineLearningClient::CreateMLModel(const CreateMLModelReq {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> CreateMLModelOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -365,7 +372,7 @@ CreateMLModelOutcome MachineLearningClient::CreateMLModel(const CreateMLModelReq return result.IsSuccess() ? CreateMLModelOutcome(result.GetResultWithOwnership()) : CreateMLModelOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -381,7 +388,8 @@ CreateRealtimeEndpointOutcome MachineLearningClient::CreateRealtimeEndpoint(cons {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> CreateRealtimeEndpointOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -394,7 +402,7 @@ CreateRealtimeEndpointOutcome MachineLearningClient::CreateRealtimeEndpoint(cons return result.IsSuccess() ? CreateRealtimeEndpointOutcome(result.GetResultWithOwnership()) : CreateRealtimeEndpointOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -410,7 +418,8 @@ DeleteBatchPredictionOutcome MachineLearningClient::DeleteBatchPrediction(const {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> DeleteBatchPredictionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -423,7 +432,7 @@ DeleteBatchPredictionOutcome MachineLearningClient::DeleteBatchPrediction(const return result.IsSuccess() ? DeleteBatchPredictionOutcome(result.GetResultWithOwnership()) : DeleteBatchPredictionOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -439,7 +448,8 @@ DeleteDataSourceOutcome MachineLearningClient::DeleteDataSource(const DeleteData {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> DeleteDataSourceOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -452,7 +462,7 @@ DeleteDataSourceOutcome MachineLearningClient::DeleteDataSource(const DeleteData return result.IsSuccess() ? DeleteDataSourceOutcome(result.GetResultWithOwnership()) : DeleteDataSourceOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -468,7 +478,8 @@ DeleteEvaluationOutcome MachineLearningClient::DeleteEvaluation(const DeleteEval {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> DeleteEvaluationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -481,7 +492,7 @@ DeleteEvaluationOutcome MachineLearningClient::DeleteEvaluation(const DeleteEval return result.IsSuccess() ? DeleteEvaluationOutcome(result.GetResultWithOwnership()) : DeleteEvaluationOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -497,7 +508,8 @@ DeleteMLModelOutcome MachineLearningClient::DeleteMLModel(const DeleteMLModelReq {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> DeleteMLModelOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -510,7 +522,7 @@ DeleteMLModelOutcome MachineLearningClient::DeleteMLModel(const DeleteMLModelReq return result.IsSuccess() ? DeleteMLModelOutcome(result.GetResultWithOwnership()) : DeleteMLModelOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -526,7 +538,8 @@ DeleteRealtimeEndpointOutcome MachineLearningClient::DeleteRealtimeEndpoint(cons {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> DeleteRealtimeEndpointOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -539,7 +552,7 @@ DeleteRealtimeEndpointOutcome MachineLearningClient::DeleteRealtimeEndpoint(cons return result.IsSuccess() ? DeleteRealtimeEndpointOutcome(result.GetResultWithOwnership()) : DeleteRealtimeEndpointOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -555,7 +568,8 @@ DeleteTagsOutcome MachineLearningClient::DeleteTags(const DeleteTagsRequest& req {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> DeleteTagsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -567,7 +581,7 @@ DeleteTagsOutcome MachineLearningClient::DeleteTags(const DeleteTagsRequest& req auto result = MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST); return result.IsSuccess() ? DeleteTagsOutcome(result.GetResultWithOwnership()) : DeleteTagsOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -583,7 +597,8 @@ DescribeBatchPredictionsOutcome MachineLearningClient::DescribeBatchPredictions( {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> DescribeBatchPredictionsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -596,7 +611,7 @@ DescribeBatchPredictionsOutcome MachineLearningClient::DescribeBatchPredictions( return result.IsSuccess() ? DescribeBatchPredictionsOutcome(result.GetResultWithOwnership()) : DescribeBatchPredictionsOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -612,7 +627,8 @@ DescribeDataSourcesOutcome MachineLearningClient::DescribeDataSources(const Desc {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> DescribeDataSourcesOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -625,7 +641,7 @@ DescribeDataSourcesOutcome MachineLearningClient::DescribeDataSources(const Desc return result.IsSuccess() ? DescribeDataSourcesOutcome(result.GetResultWithOwnership()) : DescribeDataSourcesOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -641,7 +657,8 @@ DescribeEvaluationsOutcome MachineLearningClient::DescribeEvaluations(const Desc {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> DescribeEvaluationsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -654,7 +671,7 @@ DescribeEvaluationsOutcome MachineLearningClient::DescribeEvaluations(const Desc return result.IsSuccess() ? DescribeEvaluationsOutcome(result.GetResultWithOwnership()) : DescribeEvaluationsOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -670,7 +687,8 @@ DescribeMLModelsOutcome MachineLearningClient::DescribeMLModels(const DescribeML {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> DescribeMLModelsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -683,7 +701,7 @@ DescribeMLModelsOutcome MachineLearningClient::DescribeMLModels(const DescribeML return result.IsSuccess() ? DescribeMLModelsOutcome(result.GetResultWithOwnership()) : DescribeMLModelsOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -699,7 +717,8 @@ DescribeTagsOutcome MachineLearningClient::DescribeTags(const DescribeTagsReques {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> DescribeTagsOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -712,7 +731,7 @@ DescribeTagsOutcome MachineLearningClient::DescribeTags(const DescribeTagsReques return result.IsSuccess() ? DescribeTagsOutcome(result.GetResultWithOwnership()) : DescribeTagsOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -728,7 +747,8 @@ GetBatchPredictionOutcome MachineLearningClient::GetBatchPrediction(const GetBat {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetBatchPredictionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -741,7 +761,7 @@ GetBatchPredictionOutcome MachineLearningClient::GetBatchPrediction(const GetBat return result.IsSuccess() ? GetBatchPredictionOutcome(result.GetResultWithOwnership()) : GetBatchPredictionOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -757,7 +777,8 @@ GetDataSourceOutcome MachineLearningClient::GetDataSource(const GetDataSourceReq {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetDataSourceOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -770,7 +791,7 @@ GetDataSourceOutcome MachineLearningClient::GetDataSource(const GetDataSourceReq return result.IsSuccess() ? GetDataSourceOutcome(result.GetResultWithOwnership()) : GetDataSourceOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -786,7 +807,8 @@ GetEvaluationOutcome MachineLearningClient::GetEvaluation(const GetEvaluationReq {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetEvaluationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -799,7 +821,7 @@ GetEvaluationOutcome MachineLearningClient::GetEvaluation(const GetEvaluationReq return result.IsSuccess() ? GetEvaluationOutcome(result.GetResultWithOwnership()) : GetEvaluationOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -815,7 +837,8 @@ GetMLModelOutcome MachineLearningClient::GetMLModel(const GetMLModelRequest& req {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetMLModelOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -827,7 +850,7 @@ GetMLModelOutcome MachineLearningClient::GetMLModel(const GetMLModelRequest& req auto result = MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST); return result.IsSuccess() ? GetMLModelOutcome(result.GetResultWithOwnership()) : GetMLModelOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -843,7 +866,8 @@ PredictOutcome MachineLearningClient::Predict(const PredictRequest& request) con {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> PredictOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -855,7 +879,7 @@ PredictOutcome MachineLearningClient::Predict(const PredictRequest& request) con auto result = MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST); return result.IsSuccess() ? PredictOutcome(result.GetResultWithOwnership()) : PredictOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -871,7 +895,8 @@ UpdateBatchPredictionOutcome MachineLearningClient::UpdateBatchPrediction(const {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> UpdateBatchPredictionOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -884,7 +909,7 @@ UpdateBatchPredictionOutcome MachineLearningClient::UpdateBatchPrediction(const return result.IsSuccess() ? UpdateBatchPredictionOutcome(result.GetResultWithOwnership()) : UpdateBatchPredictionOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -900,7 +925,8 @@ UpdateDataSourceOutcome MachineLearningClient::UpdateDataSource(const UpdateData {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> UpdateDataSourceOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -913,7 +939,7 @@ UpdateDataSourceOutcome MachineLearningClient::UpdateDataSource(const UpdateData return result.IsSuccess() ? UpdateDataSourceOutcome(result.GetResultWithOwnership()) : UpdateDataSourceOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -929,7 +955,8 @@ UpdateEvaluationOutcome MachineLearningClient::UpdateEvaluation(const UpdateEval {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> UpdateEvaluationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -942,7 +969,7 @@ UpdateEvaluationOutcome MachineLearningClient::UpdateEvaluation(const UpdateEval return result.IsSuccess() ? UpdateEvaluationOutcome(result.GetResultWithOwnership()) : UpdateEvaluationOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -958,7 +985,8 @@ UpdateMLModelOutcome MachineLearningClient::UpdateMLModel(const UpdateMLModelReq {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> UpdateMLModelOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -971,7 +999,7 @@ UpdateMLModelOutcome MachineLearningClient::UpdateMLModel(const UpdateMLModelReq return result.IsSuccess() ? UpdateMLModelOutcome(result.GetResultWithOwnership()) : UpdateMLModelOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-macie2/source/Macie2Client.cpp b/generated/src/aws-cpp-sdk-macie2/source/Macie2Client.cpp index de732046d96a..d02e758bedb6 100644 --- a/generated/src/aws-cpp-sdk-macie2/source/Macie2Client.cpp +++ b/generated/src/aws-cpp-sdk-macie2/source/Macie2Client.cpp @@ -237,7 +237,8 @@ Macie2Client::InvokeOperationOutcome Macie2Client::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -251,7 +252,7 @@ Macie2Client::InvokeOperationOutcome Macie2Client::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}}); } diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerClient.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerClient.cpp index 7162c7b1aba1..d6d4c4af046a 100644 --- a/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerClient.cpp +++ b/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerClient.cpp @@ -215,7 +215,8 @@ MailManagerClient::InvokeOperationOutcome MailManagerClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -230,7 +231,7 @@ MailManagerClient::InvokeOperationOutcome MailManagerClient::InvokeServiceOperat 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}}); } diff --git a/generated/src/aws-cpp-sdk-managedblockchain-query/source/ManagedBlockchainQueryClient.cpp b/generated/src/aws-cpp-sdk-managedblockchain-query/source/ManagedBlockchainQueryClient.cpp index 69d91bb879bd..b49ad77e0a3e 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain-query/source/ManagedBlockchainQueryClient.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain-query/source/ManagedBlockchainQueryClient.cpp @@ -174,7 +174,8 @@ ManagedBlockchainQueryClient::InvokeOperationOutcome ManagedBlockchainQueryClien {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -188,7 +189,7 @@ ManagedBlockchainQueryClient::InvokeOperationOutcome ManagedBlockchainQueryClien 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}}); } diff --git a/generated/src/aws-cpp-sdk-managedblockchain/source/ManagedBlockchainClient.cpp b/generated/src/aws-cpp-sdk-managedblockchain/source/ManagedBlockchainClient.cpp index 9508fd4df1f8..ebda39fcf2bd 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain/source/ManagedBlockchainClient.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain/source/ManagedBlockchainClient.cpp @@ -188,7 +188,8 @@ ManagedBlockchainClient::InvokeOperationOutcome ManagedBlockchainClient::InvokeS {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -202,7 +203,7 @@ ManagedBlockchainClient::InvokeOperationOutcome ManagedBlockchainClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-marketplace-agreement/source/AgreementServiceClient.cpp b/generated/src/aws-cpp-sdk-marketplace-agreement/source/AgreementServiceClient.cpp index 089f12edb83c..4399f618d7e8 100644 --- a/generated/src/aws-cpp-sdk-marketplace-agreement/source/AgreementServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-marketplace-agreement/source/AgreementServiceClient.cpp @@ -185,7 +185,8 @@ AgreementServiceClient::InvokeOperationOutcome AgreementServiceClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -200,7 +201,7 @@ AgreementServiceClient::InvokeOperationOutcome AgreementServiceClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-marketplace-catalog/source/MarketplaceCatalogClient.cpp b/generated/src/aws-cpp-sdk-marketplace-catalog/source/MarketplaceCatalogClient.cpp index f34876588f6d..ab12933df933 100644 --- a/generated/src/aws-cpp-sdk-marketplace-catalog/source/MarketplaceCatalogClient.cpp +++ b/generated/src/aws-cpp-sdk-marketplace-catalog/source/MarketplaceCatalogClient.cpp @@ -176,7 +176,8 @@ MarketplaceCatalogClient::InvokeOperationOutcome MarketplaceCatalogClient::Invok {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -190,7 +191,7 @@ MarketplaceCatalogClient::InvokeOperationOutcome MarketplaceCatalogClient::Invok 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}}); } diff --git a/generated/src/aws-cpp-sdk-marketplace-deployment/source/MarketplaceDeploymentClient.cpp b/generated/src/aws-cpp-sdk-marketplace-deployment/source/MarketplaceDeploymentClient.cpp index 9edcbaaf2d3c..1c1c641b2638 100644 --- a/generated/src/aws-cpp-sdk-marketplace-deployment/source/MarketplaceDeploymentClient.cpp +++ b/generated/src/aws-cpp-sdk-marketplace-deployment/source/MarketplaceDeploymentClient.cpp @@ -169,7 +169,8 @@ MarketplaceDeploymentClient::InvokeOperationOutcome MarketplaceDeploymentClient: {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -183,7 +184,7 @@ MarketplaceDeploymentClient::InvokeOperationOutcome MarketplaceDeploymentClient: 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}}); } diff --git a/generated/src/aws-cpp-sdk-marketplace-discovery/source/MarketplaceDiscoveryClient.cpp b/generated/src/aws-cpp-sdk-marketplace-discovery/source/MarketplaceDiscoveryClient.cpp index c0461753127a..90bc39393765 100644 --- a/generated/src/aws-cpp-sdk-marketplace-discovery/source/MarketplaceDiscoveryClient.cpp +++ b/generated/src/aws-cpp-sdk-marketplace-discovery/source/MarketplaceDiscoveryClient.cpp @@ -178,7 +178,8 @@ MarketplaceDiscoveryClient::InvokeOperationOutcome MarketplaceDiscoveryClient::I {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -192,7 +193,7 @@ MarketplaceDiscoveryClient::InvokeOperationOutcome MarketplaceDiscoveryClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-marketplace-entitlement/source/MarketplaceEntitlementServiceClient.cpp b/generated/src/aws-cpp-sdk-marketplace-entitlement/source/MarketplaceEntitlementServiceClient.cpp index 138665181fee..10fa310665a7 100644 --- a/generated/src/aws-cpp-sdk-marketplace-entitlement/source/MarketplaceEntitlementServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-marketplace-entitlement/source/MarketplaceEntitlementServiceClient.cpp @@ -166,7 +166,8 @@ MarketplaceEntitlementServiceClient::InvokeOperationOutcome MarketplaceEntitleme {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -181,7 +182,7 @@ MarketplaceEntitlementServiceClient::InvokeOperationOutcome MarketplaceEntitleme 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}}); } diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingClient.cpp b/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingClient.cpp index 3aab059dcf0a..024937e894d0 100644 --- a/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingClient.cpp +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/source/MarketplaceReportingClient.cpp @@ -166,7 +166,8 @@ MarketplaceReportingClient::InvokeOperationOutcome MarketplaceReportingClient::I {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -180,7 +181,7 @@ MarketplaceReportingClient::InvokeOperationOutcome MarketplaceReportingClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-marketplacecommerceanalytics/source/MarketplaceCommerceAnalyticsClient.cpp b/generated/src/aws-cpp-sdk-marketplacecommerceanalytics/source/MarketplaceCommerceAnalyticsClient.cpp index 48a02ca1f98f..c83697948925 100644 --- a/generated/src/aws-cpp-sdk-marketplacecommerceanalytics/source/MarketplaceCommerceAnalyticsClient.cpp +++ b/generated/src/aws-cpp-sdk-marketplacecommerceanalytics/source/MarketplaceCommerceAnalyticsClient.cpp @@ -165,7 +165,8 @@ MarketplaceCommerceAnalyticsClient::InvokeOperationOutcome MarketplaceCommerceAn {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -177,7 +178,7 @@ MarketplaceCommerceAnalyticsClient::InvokeOperationOutcome MarketplaceCommerceAn 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}}); } diff --git a/generated/src/aws-cpp-sdk-mediaconnect/source/MediaConnectClient.cpp b/generated/src/aws-cpp-sdk-mediaconnect/source/MediaConnectClient.cpp index 9b3b54370e7e..8a6448e0ace8 100644 --- a/generated/src/aws-cpp-sdk-mediaconnect/source/MediaConnectClient.cpp +++ b/generated/src/aws-cpp-sdk-mediaconnect/source/MediaConnectClient.cpp @@ -239,7 +239,8 @@ MediaConnectClient::InvokeOperationOutcome MediaConnectClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -253,7 +254,7 @@ MediaConnectClient::InvokeOperationOutcome MediaConnectClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-mediaconvert/source/MediaConvertClient.cpp b/generated/src/aws-cpp-sdk-mediaconvert/source/MediaConvertClient.cpp index f40c4c339d56..9bdfb6e03e0c 100644 --- a/generated/src/aws-cpp-sdk-mediaconvert/source/MediaConvertClient.cpp +++ b/generated/src/aws-cpp-sdk-mediaconvert/source/MediaConvertClient.cpp @@ -190,7 +190,8 @@ MediaConvertClient::InvokeOperationOutcome MediaConvertClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -204,7 +205,7 @@ MediaConvertClient::InvokeOperationOutcome MediaConvertClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-medialive/source/MediaLiveClient.cpp b/generated/src/aws-cpp-sdk-medialive/source/MediaLiveClient.cpp index f3a9dd2836d7..b99044148d17 100644 --- a/generated/src/aws-cpp-sdk-medialive/source/MediaLiveClient.cpp +++ b/generated/src/aws-cpp-sdk-medialive/source/MediaLiveClient.cpp @@ -279,7 +279,8 @@ MediaLiveClient::InvokeOperationOutcome MediaLiveClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -293,7 +294,7 @@ MediaLiveClient::InvokeOperationOutcome MediaLiveClient::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}}); } @@ -1118,7 +1119,8 @@ DescribeInputDeviceThumbnailOutcome MediaLiveClient::DescribeInputDeviceThumbnai {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> DescribeInputDeviceThumbnailOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1134,7 +1136,7 @@ DescribeInputDeviceThumbnailOutcome MediaLiveClient::DescribeInputDeviceThumbnai return result.IsSuccess() ? DescribeInputDeviceThumbnailOutcome(result.GetResultWithOwnership()) : DescribeInputDeviceThumbnailOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-mediapackage-vod/source/MediaPackageVodClient.cpp b/generated/src/aws-cpp-sdk-mediapackage-vod/source/MediaPackageVodClient.cpp index 6292bcde8914..59fcf830178c 100644 --- a/generated/src/aws-cpp-sdk-mediapackage-vod/source/MediaPackageVodClient.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage-vod/source/MediaPackageVodClient.cpp @@ -177,7 +177,8 @@ MediaPackageVodClient::InvokeOperationOutcome MediaPackageVodClient::InvokeServi {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -191,7 +192,7 @@ MediaPackageVodClient::InvokeOperationOutcome MediaPackageVodClient::InvokeServi 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}}); } diff --git a/generated/src/aws-cpp-sdk-mediapackage/source/MediaPackageClient.cpp b/generated/src/aws-cpp-sdk-mediapackage/source/MediaPackageClient.cpp index 48d5bcbc2814..0ce5efdffabf 100644 --- a/generated/src/aws-cpp-sdk-mediapackage/source/MediaPackageClient.cpp +++ b/generated/src/aws-cpp-sdk-mediapackage/source/MediaPackageClient.cpp @@ -175,7 +175,8 @@ MediaPackageClient::InvokeOperationOutcome MediaPackageClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -189,7 +190,7 @@ MediaPackageClient::InvokeOperationOutcome MediaPackageClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-mediapackagev2/source/Mediapackagev2Client.cpp b/generated/src/aws-cpp-sdk-mediapackagev2/source/Mediapackagev2Client.cpp index f6b66c778bf3..d98374ec384c 100644 --- a/generated/src/aws-cpp-sdk-mediapackagev2/source/Mediapackagev2Client.cpp +++ b/generated/src/aws-cpp-sdk-mediapackagev2/source/Mediapackagev2Client.cpp @@ -187,7 +187,8 @@ Mediapackagev2Client::InvokeOperationOutcome Mediapackagev2Client::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -201,7 +202,7 @@ Mediapackagev2Client::InvokeOperationOutcome Mediapackagev2Client::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}}); } diff --git a/generated/src/aws-cpp-sdk-mediastore-data/source/MediaStoreDataClient.cpp b/generated/src/aws-cpp-sdk-mediastore-data/source/MediaStoreDataClient.cpp index 97b116bc8d97..f384779f48e9 100644 --- a/generated/src/aws-cpp-sdk-mediastore-data/source/MediaStoreDataClient.cpp +++ b/generated/src/aws-cpp-sdk-mediastore-data/source/MediaStoreDataClient.cpp @@ -166,7 +166,8 @@ MediaStoreDataClient::InvokeOperationOutcome MediaStoreDataClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -180,7 +181,7 @@ MediaStoreDataClient::InvokeOperationOutcome MediaStoreDataClient::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}}); } @@ -233,7 +234,8 @@ GetObjectOutcome MediaStoreDataClient::GetObject(const GetObjectRequest& request {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetObjectOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -246,7 +248,7 @@ GetObjectOutcome MediaStoreDataClient::GetObject(const GetObjectRequest& request auto result = MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET); return result.IsSuccess() ? GetObjectOutcome(result.GetResultWithOwnership()) : GetObjectOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-mediastore/source/MediaStoreClient.cpp b/generated/src/aws-cpp-sdk-mediastore/source/MediaStoreClient.cpp index 3cb8977f3330..44e0336aa826 100644 --- a/generated/src/aws-cpp-sdk-mediastore/source/MediaStoreClient.cpp +++ b/generated/src/aws-cpp-sdk-mediastore/source/MediaStoreClient.cpp @@ -176,7 +176,8 @@ MediaStoreClient::InvokeOperationOutcome MediaStoreClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -188,7 +189,7 @@ MediaStoreClient::InvokeOperationOutcome MediaStoreClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/MediaTailorClient.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/MediaTailorClient.cpp index 0f6638249cd0..640fd43599f1 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/MediaTailorClient.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/MediaTailorClient.cpp @@ -204,7 +204,8 @@ MediaTailorClient::InvokeOperationOutcome MediaTailorClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -218,7 +219,7 @@ MediaTailorClient::InvokeOperationOutcome MediaTailorClient::InvokeServiceOperat 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}}); } diff --git a/generated/src/aws-cpp-sdk-medical-imaging/source/MedicalImagingClient.cpp b/generated/src/aws-cpp-sdk-medical-imaging/source/MedicalImagingClient.cpp index 69899458559d..ad89c3388d4e 100644 --- a/generated/src/aws-cpp-sdk-medical-imaging/source/MedicalImagingClient.cpp +++ b/generated/src/aws-cpp-sdk-medical-imaging/source/MedicalImagingClient.cpp @@ -175,7 +175,8 @@ MedicalImagingClient::InvokeOperationOutcome MedicalImagingClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -189,7 +190,7 @@ MedicalImagingClient::InvokeOperationOutcome MedicalImagingClient::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}}); } @@ -336,7 +337,8 @@ GetImageFrameOutcome MedicalImagingClient::GetImageFrame(const GetImageFrameRequ {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetImageFrameOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -356,7 +358,7 @@ GetImageFrameOutcome MedicalImagingClient::GetImageFrame(const GetImageFrameRequ return result.IsSuccess() ? GetImageFrameOutcome(result.GetResultWithOwnership()) : GetImageFrameOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -408,7 +410,8 @@ GetImageSetMetadataOutcome MedicalImagingClient::GetImageSetMetadata(const GetIm {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetImageSetMetadataOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -428,7 +431,7 @@ GetImageSetMetadataOutcome MedicalImagingClient::GetImageSetMetadata(const GetIm return result.IsSuccess() ? GetImageSetMetadataOutcome(result.GetResultWithOwnership()) : GetImageSetMetadataOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-memorydb/source/MemoryDBClient.cpp b/generated/src/aws-cpp-sdk-memorydb/source/MemoryDBClient.cpp index 01fad5090aaf..19a93a7380a5 100644 --- a/generated/src/aws-cpp-sdk-memorydb/source/MemoryDBClient.cpp +++ b/generated/src/aws-cpp-sdk-memorydb/source/MemoryDBClient.cpp @@ -200,7 +200,8 @@ MemoryDBClient::InvokeOperationOutcome MemoryDBClient::InvokeServiceOperation(co {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -212,7 +213,7 @@ MemoryDBClient::InvokeOperationOutcome MemoryDBClient::InvokeServiceOperation(co 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}}); } diff --git a/generated/src/aws-cpp-sdk-meteringmarketplace/source/MarketplaceMeteringClient.cpp b/generated/src/aws-cpp-sdk-meteringmarketplace/source/MarketplaceMeteringClient.cpp index a7dfa5ff6a8f..574cd8f73ca3 100644 --- a/generated/src/aws-cpp-sdk-meteringmarketplace/source/MarketplaceMeteringClient.cpp +++ b/generated/src/aws-cpp-sdk-meteringmarketplace/source/MarketplaceMeteringClient.cpp @@ -164,7 +164,8 @@ MarketplaceMeteringClient::InvokeOperationOutcome MarketplaceMeteringClient::Inv {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -176,7 +177,7 @@ MarketplaceMeteringClient::InvokeOperationOutcome MarketplaceMeteringClient::Inv 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}}); } diff --git a/generated/src/aws-cpp-sdk-mgn/source/MgnClient.cpp b/generated/src/aws-cpp-sdk-mgn/source/MgnClient.cpp index e61f7f2a9f63..c495e6c86c28 100644 --- a/generated/src/aws-cpp-sdk-mgn/source/MgnClient.cpp +++ b/generated/src/aws-cpp-sdk-mgn/source/MgnClient.cpp @@ -249,7 +249,8 @@ MgnClient::InvokeOperationOutcome MgnClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -263,7 +264,7 @@ MgnClient::InvokeOperationOutcome MgnClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/MigrationHubRefactorSpacesClient.cpp b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/MigrationHubRefactorSpacesClient.cpp index 7a8d0e844fc8..be1fb43c2ebd 100644 --- a/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/MigrationHubRefactorSpacesClient.cpp +++ b/generated/src/aws-cpp-sdk-migration-hub-refactor-spaces/source/MigrationHubRefactorSpacesClient.cpp @@ -189,7 +189,8 @@ MigrationHubRefactorSpacesClient::InvokeOperationOutcome MigrationHubRefactorSpa {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -203,7 +204,7 @@ MigrationHubRefactorSpacesClient::InvokeOperationOutcome MigrationHubRefactorSpa 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}}); } diff --git a/generated/src/aws-cpp-sdk-migrationhub-config/source/MigrationHubConfigClient.cpp b/generated/src/aws-cpp-sdk-migrationhub-config/source/MigrationHubConfigClient.cpp index 4487d8cbaf8d..8ab34d00c8d4 100644 --- a/generated/src/aws-cpp-sdk-migrationhub-config/source/MigrationHubConfigClient.cpp +++ b/generated/src/aws-cpp-sdk-migrationhub-config/source/MigrationHubConfigClient.cpp @@ -164,7 +164,8 @@ MigrationHubConfigClient::InvokeOperationOutcome MigrationHubConfigClient::Invok {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -176,7 +177,7 @@ MigrationHubConfigClient::InvokeOperationOutcome MigrationHubConfigClient::Invok 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}}); } diff --git a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/MigrationHubOrchestratorClient.cpp b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/MigrationHubOrchestratorClient.cpp index 47f84506399b..cf1276a68193 100644 --- a/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/MigrationHubOrchestratorClient.cpp +++ b/generated/src/aws-cpp-sdk-migrationhuborchestrator/source/MigrationHubOrchestratorClient.cpp @@ -196,7 +196,8 @@ MigrationHubOrchestratorClient::InvokeOperationOutcome MigrationHubOrchestratorC {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -210,7 +211,7 @@ MigrationHubOrchestratorClient::InvokeOperationOutcome MigrationHubOrchestratorC 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}}); } diff --git a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/MigrationHubStrategyRecommendationsClient.cpp b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/MigrationHubStrategyRecommendationsClient.cpp index 5a3e6b3932f3..22dd6bfc5e85 100644 --- a/generated/src/aws-cpp-sdk-migrationhubstrategy/source/MigrationHubStrategyRecommendationsClient.cpp +++ b/generated/src/aws-cpp-sdk-migrationhubstrategy/source/MigrationHubStrategyRecommendationsClient.cpp @@ -190,7 +190,8 @@ MigrationHubStrategyRecommendationsClient::InvokeOperationOutcome MigrationHubSt {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -204,7 +205,7 @@ MigrationHubStrategyRecommendationsClient::InvokeOperationOutcome MigrationHubSt 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}}); } diff --git a/generated/src/aws-cpp-sdk-monitoring/source/CloudWatchClient.cpp b/generated/src/aws-cpp-sdk-monitoring/source/CloudWatchClient.cpp index 02ea24f0fcf6..1bf44e0f3ffb 100644 --- a/generated/src/aws-cpp-sdk-monitoring/source/CloudWatchClient.cpp +++ b/generated/src/aws-cpp-sdk-monitoring/source/CloudWatchClient.cpp @@ -210,7 +210,8 @@ CloudWatchClient::InvokeOperationOutcome CloudWatchClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -225,7 +226,7 @@ CloudWatchClient::InvokeOperationOutcome CloudWatchClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-mpa/source/MPAClient.cpp b/generated/src/aws-cpp-sdk-mpa/source/MPAClient.cpp index 86a97b942316..4b82bcf311ca 100644 --- a/generated/src/aws-cpp-sdk-mpa/source/MPAClient.cpp +++ b/generated/src/aws-cpp-sdk-mpa/source/MPAClient.cpp @@ -176,7 +176,8 @@ MPAClient::InvokeOperationOutcome MPAClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -190,7 +191,7 @@ MPAClient::InvokeOperationOutcome MPAClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-mq/source/MQClient.cpp b/generated/src/aws-cpp-sdk-mq/source/MQClient.cpp index e152240eb023..eb75afddf3eb 100644 --- a/generated/src/aws-cpp-sdk-mq/source/MQClient.cpp +++ b/generated/src/aws-cpp-sdk-mq/source/MQClient.cpp @@ -179,7 +179,8 @@ MQClient::InvokeOperationOutcome MQClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -193,7 +194,7 @@ MQClient::InvokeOperationOutcome MQClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-mturk-requester/source/MTurkClient.cpp b/generated/src/aws-cpp-sdk-mturk-requester/source/MTurkClient.cpp index 9177caec7ca5..399eaaa86753 100644 --- a/generated/src/aws-cpp-sdk-mturk-requester/source/MTurkClient.cpp +++ b/generated/src/aws-cpp-sdk-mturk-requester/source/MTurkClient.cpp @@ -194,7 +194,8 @@ MTurkClient::InvokeOperationOutcome MTurkClient::InvokeServiceOperation(const Am {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -206,7 +207,7 @@ MTurkClient::InvokeOperationOutcome MTurkClient::InvokeServiceOperation(const Am 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}}); } diff --git a/generated/src/aws-cpp-sdk-mwaa-serverless/source/MWAAServerlessClient.cpp b/generated/src/aws-cpp-sdk-mwaa-serverless/source/MWAAServerlessClient.cpp index 73daaab0d25f..074c5c3fa6c9 100644 --- a/generated/src/aws-cpp-sdk-mwaa-serverless/source/MWAAServerlessClient.cpp +++ b/generated/src/aws-cpp-sdk-mwaa-serverless/source/MWAAServerlessClient.cpp @@ -171,7 +171,8 @@ MWAAServerlessClient::InvokeOperationOutcome MWAAServerlessClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -183,7 +184,7 @@ MWAAServerlessClient::InvokeOperationOutcome MWAAServerlessClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-mwaa/source/MWAAClient.cpp b/generated/src/aws-cpp-sdk-mwaa/source/MWAAClient.cpp index b45fab630b2e..dfc9a62c612a 100644 --- a/generated/src/aws-cpp-sdk-mwaa/source/MWAAClient.cpp +++ b/generated/src/aws-cpp-sdk-mwaa/source/MWAAClient.cpp @@ -165,7 +165,8 @@ MWAAClient::InvokeOperationOutcome MWAAClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -179,7 +180,7 @@ MWAAClient::InvokeOperationOutcome MWAAClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-neptune-graph/source/NeptuneGraphClient.cpp b/generated/src/aws-cpp-sdk-neptune-graph/source/NeptuneGraphClient.cpp index 9269baeefdcb..80c50d4e3a17 100644 --- a/generated/src/aws-cpp-sdk-neptune-graph/source/NeptuneGraphClient.cpp +++ b/generated/src/aws-cpp-sdk-neptune-graph/source/NeptuneGraphClient.cpp @@ -191,7 +191,8 @@ NeptuneGraphClient::InvokeOperationOutcome NeptuneGraphClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -205,7 +206,7 @@ NeptuneGraphClient::InvokeOperationOutcome NeptuneGraphClient::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}}); } @@ -400,7 +401,8 @@ ExecuteQueryOutcome NeptuneGraphClient::ExecuteQuery(const ExecuteQueryRequest& {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> ExecuteQueryOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -416,7 +418,7 @@ ExecuteQueryOutcome NeptuneGraphClient::ExecuteQuery(const ExecuteQueryRequest& return result.IsSuccess() ? ExecuteQueryOutcome(result.GetResultWithOwnership()) : ExecuteQueryOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-neptune/source/NeptuneClient.cpp b/generated/src/aws-cpp-sdk-neptune/source/NeptuneClient.cpp index 0dac89c9ed61..49a0cca55008 100644 --- a/generated/src/aws-cpp-sdk-neptune/source/NeptuneClient.cpp +++ b/generated/src/aws-cpp-sdk-neptune/source/NeptuneClient.cpp @@ -246,7 +246,8 @@ NeptuneClient::InvokeOperationOutcome NeptuneClient::InvokeServiceOperation(cons {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -258,7 +259,7 @@ NeptuneClient::InvokeOperationOutcome NeptuneClient::InvokeServiceOperation(cons 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}}); } AddRoleToDBClusterOutcome NeptuneClient::AddRoleToDBCluster(const AddRoleToDBClusterRequest& request) const { diff --git a/generated/src/aws-cpp-sdk-neptunedata/source/NeptunedataClient.cpp b/generated/src/aws-cpp-sdk-neptunedata/source/NeptunedataClient.cpp index 2533810f44fa..81f38e482565 100644 --- a/generated/src/aws-cpp-sdk-neptunedata/source/NeptunedataClient.cpp +++ b/generated/src/aws-cpp-sdk-neptunedata/source/NeptunedataClient.cpp @@ -199,7 +199,8 @@ NeptunedataClient::InvokeOperationOutcome NeptunedataClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -213,7 +214,7 @@ NeptunedataClient::InvokeOperationOutcome NeptunedataClient::InvokeServiceOperat 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}}); } @@ -400,7 +401,8 @@ ExecuteGremlinExplainQueryOutcome NeptunedataClient::ExecuteGremlinExplainQuery( {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> ExecuteGremlinExplainQueryOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -414,7 +416,7 @@ ExecuteGremlinExplainQueryOutcome NeptunedataClient::ExecuteGremlinExplainQuery( return result.IsSuccess() ? ExecuteGremlinExplainQueryOutcome(result.GetResultWithOwnership()) : ExecuteGremlinExplainQueryOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -431,7 +433,8 @@ ExecuteGremlinProfileQueryOutcome NeptunedataClient::ExecuteGremlinProfileQuery( {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> ExecuteGremlinProfileQueryOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -445,7 +448,7 @@ ExecuteGremlinProfileQueryOutcome NeptunedataClient::ExecuteGremlinProfileQuery( return result.IsSuccess() ? ExecuteGremlinProfileQueryOutcome(result.GetResultWithOwnership()) : ExecuteGremlinProfileQueryOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -474,7 +477,8 @@ ExecuteOpenCypherExplainQueryOutcome NeptunedataClient::ExecuteOpenCypherExplain {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> ExecuteOpenCypherExplainQueryOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -488,7 +492,7 @@ ExecuteOpenCypherExplainQueryOutcome NeptunedataClient::ExecuteOpenCypherExplain return result.IsSuccess() ? ExecuteOpenCypherExplainQueryOutcome(result.GetResultWithOwnership()) : ExecuteOpenCypherExplainQueryOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-network-firewall/source/NetworkFirewallClient.cpp b/generated/src/aws-cpp-sdk-network-firewall/source/NetworkFirewallClient.cpp index 293c9e5b19a6..eabf31f4c482 100644 --- a/generated/src/aws-cpp-sdk-network-firewall/source/NetworkFirewallClient.cpp +++ b/generated/src/aws-cpp-sdk-network-firewall/source/NetworkFirewallClient.cpp @@ -244,7 +244,8 @@ NetworkFirewallClient::InvokeOperationOutcome NetworkFirewallClient::InvokeServi {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -256,7 +257,7 @@ NetworkFirewallClient::InvokeOperationOutcome NetworkFirewallClient::InvokeServi 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}}); } diff --git a/generated/src/aws-cpp-sdk-network-security-manager/source/NetworkSecurityManagerClient.cpp b/generated/src/aws-cpp-sdk-network-security-manager/source/NetworkSecurityManagerClient.cpp index 05c3099d17e7..1a7d8004c79a 100644 --- a/generated/src/aws-cpp-sdk-network-security-manager/source/NetworkSecurityManagerClient.cpp +++ b/generated/src/aws-cpp-sdk-network-security-manager/source/NetworkSecurityManagerClient.cpp @@ -211,7 +211,8 @@ NetworkSecurityManagerClient::InvokeOperationOutcome NetworkSecurityManagerClien {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -225,7 +226,7 @@ NetworkSecurityManagerClient::InvokeOperationOutcome NetworkSecurityManagerClien 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}}); } diff --git a/generated/src/aws-cpp-sdk-networkflowmonitor/source/NetworkFlowMonitorClient.cpp b/generated/src/aws-cpp-sdk-networkflowmonitor/source/NetworkFlowMonitorClient.cpp index 246c7ae277cc..bb6fd28b82da 100644 --- a/generated/src/aws-cpp-sdk-networkflowmonitor/source/NetworkFlowMonitorClient.cpp +++ b/generated/src/aws-cpp-sdk-networkflowmonitor/source/NetworkFlowMonitorClient.cpp @@ -186,7 +186,8 @@ NetworkFlowMonitorClient::InvokeOperationOutcome NetworkFlowMonitorClient::Invok {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -200,7 +201,7 @@ NetworkFlowMonitorClient::InvokeOperationOutcome NetworkFlowMonitorClient::Invok 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}}); } diff --git a/generated/src/aws-cpp-sdk-networkmanager/source/NetworkManagerClient.cpp b/generated/src/aws-cpp-sdk-networkmanager/source/NetworkManagerClient.cpp index f259e79fbb3b..71afc219bb3b 100644 --- a/generated/src/aws-cpp-sdk-networkmanager/source/NetworkManagerClient.cpp +++ b/generated/src/aws-cpp-sdk-networkmanager/source/NetworkManagerClient.cpp @@ -252,7 +252,8 @@ NetworkManagerClient::InvokeOperationOutcome NetworkManagerClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -266,7 +267,7 @@ NetworkManagerClient::InvokeOperationOutcome NetworkManagerClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-networkmonitor/source/NetworkMonitorClient.cpp b/generated/src/aws-cpp-sdk-networkmonitor/source/NetworkMonitorClient.cpp index 28966d39d66e..4ab5813dc845 100644 --- a/generated/src/aws-cpp-sdk-networkmonitor/source/NetworkMonitorClient.cpp +++ b/generated/src/aws-cpp-sdk-networkmonitor/source/NetworkMonitorClient.cpp @@ -169,7 +169,8 @@ NetworkMonitorClient::InvokeOperationOutcome NetworkMonitorClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -183,7 +184,7 @@ NetworkMonitorClient::InvokeOperationOutcome NetworkMonitorClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-notifications/source/NotificationsClient.cpp b/generated/src/aws-cpp-sdk-notifications/source/NotificationsClient.cpp index fd00fe15e42e..6086b90d6dba 100644 --- a/generated/src/aws-cpp-sdk-notifications/source/NotificationsClient.cpp +++ b/generated/src/aws-cpp-sdk-notifications/source/NotificationsClient.cpp @@ -197,7 +197,8 @@ NotificationsClient::InvokeOperationOutcome NotificationsClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -211,7 +212,7 @@ NotificationsClient::InvokeOperationOutcome NotificationsClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-notificationscontacts/source/NotificationsContactsClient.cpp b/generated/src/aws-cpp-sdk-notificationscontacts/source/NotificationsContactsClient.cpp index af2daf174a25..38dec1922729 100644 --- a/generated/src/aws-cpp-sdk-notificationscontacts/source/NotificationsContactsClient.cpp +++ b/generated/src/aws-cpp-sdk-notificationscontacts/source/NotificationsContactsClient.cpp @@ -174,7 +174,8 @@ NotificationsContactsClient::InvokeOperationOutcome NotificationsContactsClient: {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -188,7 +189,7 @@ NotificationsContactsClient::InvokeOperationOutcome NotificationsContactsClient: 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}}); } diff --git a/generated/src/aws-cpp-sdk-nova-act/source/NovaActClient.cpp b/generated/src/aws-cpp-sdk-nova-act/source/NovaActClient.cpp index 4befcaa39fae..f25ea4bc8f6f 100644 --- a/generated/src/aws-cpp-sdk-nova-act/source/NovaActClient.cpp +++ b/generated/src/aws-cpp-sdk-nova-act/source/NovaActClient.cpp @@ -172,7 +172,8 @@ NovaActClient::InvokeOperationOutcome NovaActClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -186,7 +187,7 @@ NovaActClient::InvokeOperationOutcome NovaActClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-oam/source/OAMClient.cpp b/generated/src/aws-cpp-sdk-oam/source/OAMClient.cpp index 506af648afcf..d408f7836898 100644 --- a/generated/src/aws-cpp-sdk-oam/source/OAMClient.cpp +++ b/generated/src/aws-cpp-sdk-oam/source/OAMClient.cpp @@ -169,7 +169,8 @@ OAMClient::InvokeOperationOutcome OAMClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -183,7 +184,7 @@ OAMClient::InvokeOperationOutcome OAMClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-observabilityadmin/source/ObservabilityAdminClient.cpp b/generated/src/aws-cpp-sdk-observabilityadmin/source/ObservabilityAdminClient.cpp index 60e76e125e66..5aca32646376 100644 --- a/generated/src/aws-cpp-sdk-observabilityadmin/source/ObservabilityAdminClient.cpp +++ b/generated/src/aws-cpp-sdk-observabilityadmin/source/ObservabilityAdminClient.cpp @@ -206,7 +206,8 @@ ObservabilityAdminClient::InvokeOperationOutcome ObservabilityAdminClient::Invok {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -220,7 +221,7 @@ ObservabilityAdminClient::InvokeOperationOutcome ObservabilityAdminClient::Invok 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}}); } diff --git a/generated/src/aws-cpp-sdk-odb/source/OdbClient.cpp b/generated/src/aws-cpp-sdk-odb/source/OdbClient.cpp index 4c591fce1376..22d9173f5794 100644 --- a/generated/src/aws-cpp-sdk-odb/source/OdbClient.cpp +++ b/generated/src/aws-cpp-sdk-odb/source/OdbClient.cpp @@ -233,7 +233,8 @@ OdbClient::InvokeOperationOutcome OdbClient::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -245,7 +246,7 @@ OdbClient::InvokeOperationOutcome OdbClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-omics/source/OmicsClient.cpp b/generated/src/aws-cpp-sdk-omics/source/OmicsClient.cpp index c4a7339c231d..c7932ef943fb 100644 --- a/generated/src/aws-cpp-sdk-omics/source/OmicsClient.cpp +++ b/generated/src/aws-cpp-sdk-omics/source/OmicsClient.cpp @@ -267,7 +267,8 @@ OmicsClient::InvokeOperationOutcome OmicsClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -281,7 +282,7 @@ OmicsClient::InvokeOperationOutcome OmicsClient::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}}); } @@ -1002,7 +1003,8 @@ GetReadSetOutcome OmicsClient::GetReadSet(const GetReadSetRequest& request) cons {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetReadSetOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1020,7 +1022,7 @@ GetReadSetOutcome OmicsClient::GetReadSet(const GetReadSetRequest& request) cons auto result = MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET); return result.IsSuccess() ? GetReadSetOutcome(result.GetResultWithOwnership()) : GetReadSetOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -1153,7 +1155,8 @@ GetReferenceOutcome OmicsClient::GetReference(const GetReferenceRequest& request {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetReferenceOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1172,7 +1175,7 @@ GetReferenceOutcome OmicsClient::GetReference(const GetReferenceRequest& request return result.IsSuccess() ? GetReferenceOutcome(result.GetResultWithOwnership()) : GetReferenceOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-opensearch/source/OpenSearchServiceClient.cpp b/generated/src/aws-cpp-sdk-opensearch/source/OpenSearchServiceClient.cpp index f240def3a10a..2a72554a4d5d 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/OpenSearchServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/OpenSearchServiceClient.cpp @@ -257,7 +257,8 @@ OpenSearchServiceClient::InvokeOperationOutcome OpenSearchServiceClient::InvokeS {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -271,7 +272,7 @@ OpenSearchServiceClient::InvokeOperationOutcome OpenSearchServiceClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-opensearchserverless/source/OpenSearchServerlessClient.cpp b/generated/src/aws-cpp-sdk-opensearchserverless/source/OpenSearchServerlessClient.cpp index 24913142cd12..44663739954e 100644 --- a/generated/src/aws-cpp-sdk-opensearchserverless/source/OpenSearchServerlessClient.cpp +++ b/generated/src/aws-cpp-sdk-opensearchserverless/source/OpenSearchServerlessClient.cpp @@ -210,7 +210,8 @@ OpenSearchServerlessClient::InvokeOperationOutcome OpenSearchServerlessClient::I {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -222,7 +223,7 @@ OpenSearchServerlessClient::InvokeOperationOutcome OpenSearchServerlessClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-organizations/source/OrganizationsClient.cpp b/generated/src/aws-cpp-sdk-organizations/source/OrganizationsClient.cpp index 125632b2e777..57c95b396eef 100644 --- a/generated/src/aws-cpp-sdk-organizations/source/OrganizationsClient.cpp +++ b/generated/src/aws-cpp-sdk-organizations/source/OrganizationsClient.cpp @@ -219,7 +219,8 @@ OrganizationsClient::InvokeOperationOutcome OrganizationsClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -231,7 +232,7 @@ OrganizationsClient::InvokeOperationOutcome OrganizationsClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-osis/source/OSISClient.cpp b/generated/src/aws-cpp-sdk-osis/source/OSISClient.cpp index a2968dabf4ee..9a5d586836c4 100644 --- a/generated/src/aws-cpp-sdk-osis/source/OSISClient.cpp +++ b/generated/src/aws-cpp-sdk-osis/source/OSISClient.cpp @@ -176,7 +176,8 @@ OSISClient::InvokeOperationOutcome OSISClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -190,7 +191,7 @@ OSISClient::InvokeOperationOutcome OSISClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-outposts/source/OutpostsClient.cpp b/generated/src/aws-cpp-sdk-outposts/source/OutpostsClient.cpp index eca6cf7f501d..8c5ff38c81b9 100644 --- a/generated/src/aws-cpp-sdk-outposts/source/OutpostsClient.cpp +++ b/generated/src/aws-cpp-sdk-outposts/source/OutpostsClient.cpp @@ -201,7 +201,8 @@ OutpostsClient::InvokeOperationOutcome OutpostsClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -215,7 +216,7 @@ OutpostsClient::InvokeOperationOutcome OutpostsClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-partnercentral-account/source/PartnerCentralAccountClient.cpp b/generated/src/aws-cpp-sdk-partnercentral-account/source/PartnerCentralAccountClient.cpp index 1657f1f5dc38..e7513ef6dc85 100644 --- a/generated/src/aws-cpp-sdk-partnercentral-account/source/PartnerCentralAccountClient.cpp +++ b/generated/src/aws-cpp-sdk-partnercentral-account/source/PartnerCentralAccountClient.cpp @@ -198,7 +198,8 @@ PartnerCentralAccountClient::InvokeOperationOutcome PartnerCentralAccountClient: {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -210,7 +211,7 @@ PartnerCentralAccountClient::InvokeOperationOutcome PartnerCentralAccountClient: 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}}); } diff --git a/generated/src/aws-cpp-sdk-partnercentral-benefits/source/PartnerCentralBenefitsClient.cpp b/generated/src/aws-cpp-sdk-partnercentral-benefits/source/PartnerCentralBenefitsClient.cpp index c2d16d0deed6..39055258d962 100644 --- a/generated/src/aws-cpp-sdk-partnercentral-benefits/source/PartnerCentralBenefitsClient.cpp +++ b/generated/src/aws-cpp-sdk-partnercentral-benefits/source/PartnerCentralBenefitsClient.cpp @@ -181,7 +181,8 @@ PartnerCentralBenefitsClient::InvokeOperationOutcome PartnerCentralBenefitsClien {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -193,7 +194,7 @@ PartnerCentralBenefitsClient::InvokeOperationOutcome PartnerCentralBenefitsClien 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}}); } diff --git a/generated/src/aws-cpp-sdk-partnercentral-channel/source/PartnerCentralChannelClient.cpp b/generated/src/aws-cpp-sdk-partnercentral-channel/source/PartnerCentralChannelClient.cpp index d684b1a60032..de286e168375 100644 --- a/generated/src/aws-cpp-sdk-partnercentral-channel/source/PartnerCentralChannelClient.cpp +++ b/generated/src/aws-cpp-sdk-partnercentral-channel/source/PartnerCentralChannelClient.cpp @@ -185,7 +185,8 @@ PartnerCentralChannelClient::InvokeOperationOutcome PartnerCentralChannelClient: {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -197,7 +198,7 @@ PartnerCentralChannelClient::InvokeOperationOutcome PartnerCentralChannelClient: 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}}); } diff --git a/generated/src/aws-cpp-sdk-partnercentral-revenue-measurement/source/PartnerCentralRevenueMeasurementClient.cpp b/generated/src/aws-cpp-sdk-partnercentral-revenue-measurement/source/PartnerCentralRevenueMeasurementClient.cpp index 245596210655..a574a7b39c7c 100644 --- a/generated/src/aws-cpp-sdk-partnercentral-revenue-measurement/source/PartnerCentralRevenueMeasurementClient.cpp +++ b/generated/src/aws-cpp-sdk-partnercentral-revenue-measurement/source/PartnerCentralRevenueMeasurementClient.cpp @@ -187,7 +187,8 @@ PartnerCentralRevenueMeasurementClient::InvokeOperationOutcome PartnerCentralRev {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -202,7 +203,7 @@ PartnerCentralRevenueMeasurementClient::InvokeOperationOutcome PartnerCentralRev 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}}); } diff --git a/generated/src/aws-cpp-sdk-partnercentral-selling/source/PartnerCentralSellingClient.cpp b/generated/src/aws-cpp-sdk-partnercentral-selling/source/PartnerCentralSellingClient.cpp index 241b541715e1..4952adfaa117 100644 --- a/generated/src/aws-cpp-sdk-partnercentral-selling/source/PartnerCentralSellingClient.cpp +++ b/generated/src/aws-cpp-sdk-partnercentral-selling/source/PartnerCentralSellingClient.cpp @@ -209,7 +209,8 @@ PartnerCentralSellingClient::InvokeOperationOutcome PartnerCentralSellingClient: {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -221,7 +222,7 @@ PartnerCentralSellingClient::InvokeOperationOutcome PartnerCentralSellingClient: 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}}); } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/PaymentCryptographyDataClient.cpp b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/PaymentCryptographyDataClient.cpp index 2bf1f059c594..cc728b46e373 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography-data/source/PaymentCryptographyDataClient.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography-data/source/PaymentCryptographyDataClient.cpp @@ -180,7 +180,8 @@ PaymentCryptographyDataClient::InvokeOperationOutcome PaymentCryptographyDataCli {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -194,7 +195,7 @@ PaymentCryptographyDataClient::InvokeOperationOutcome PaymentCryptographyDataCli 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}}); } diff --git a/generated/src/aws-cpp-sdk-payment-cryptography/source/PaymentCryptographyClient.cpp b/generated/src/aws-cpp-sdk-payment-cryptography/source/PaymentCryptographyClient.cpp index a10507d65a7c..e0fb7302db15 100644 --- a/generated/src/aws-cpp-sdk-payment-cryptography/source/PaymentCryptographyClient.cpp +++ b/generated/src/aws-cpp-sdk-payment-cryptography/source/PaymentCryptographyClient.cpp @@ -192,7 +192,8 @@ PaymentCryptographyClient::InvokeOperationOutcome PaymentCryptographyClient::Inv {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -204,7 +205,7 @@ PaymentCryptographyClient::InvokeOperationOutcome PaymentCryptographyClient::Inv 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}}); } diff --git a/generated/src/aws-cpp-sdk-pca-connector-ad/source/PcaConnectorAdClient.cpp b/generated/src/aws-cpp-sdk-pca-connector-ad/source/PcaConnectorAdClient.cpp index 8a6827cd83ef..642d1764ff71 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-ad/source/PcaConnectorAdClient.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-ad/source/PcaConnectorAdClient.cpp @@ -182,7 +182,8 @@ PcaConnectorAdClient::InvokeOperationOutcome PcaConnectorAdClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -196,7 +197,7 @@ PcaConnectorAdClient::InvokeOperationOutcome PcaConnectorAdClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-pca-connector-scep/source/PcaConnectorScepClient.cpp b/generated/src/aws-cpp-sdk-pca-connector-scep/source/PcaConnectorScepClient.cpp index 5662b5302e23..fddd8797abe1 100644 --- a/generated/src/aws-cpp-sdk-pca-connector-scep/source/PcaConnectorScepClient.cpp +++ b/generated/src/aws-cpp-sdk-pca-connector-scep/source/PcaConnectorScepClient.cpp @@ -173,7 +173,8 @@ PcaConnectorScepClient::InvokeOperationOutcome PcaConnectorScepClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -187,7 +188,7 @@ PcaConnectorScepClient::InvokeOperationOutcome PcaConnectorScepClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-pcs/source/PCSClient.cpp b/generated/src/aws-cpp-sdk-pcs/source/PCSClient.cpp index fff4cebe6fca..4d1a02b405fe 100644 --- a/generated/src/aws-cpp-sdk-pcs/source/PCSClient.cpp +++ b/generated/src/aws-cpp-sdk-pcs/source/PCSClient.cpp @@ -172,7 +172,8 @@ PCSClient::InvokeOperationOutcome PCSClient::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -184,7 +185,7 @@ PCSClient::InvokeOperationOutcome PCSClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-personalize-events/source/PersonalizeEventsClient.cpp b/generated/src/aws-cpp-sdk-personalize-events/source/PersonalizeEventsClient.cpp index b4a2c622abc2..43b12b7e2142 100644 --- a/generated/src/aws-cpp-sdk-personalize-events/source/PersonalizeEventsClient.cpp +++ b/generated/src/aws-cpp-sdk-personalize-events/source/PersonalizeEventsClient.cpp @@ -166,7 +166,8 @@ PersonalizeEventsClient::InvokeOperationOutcome PersonalizeEventsClient::InvokeS {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -180,7 +181,7 @@ PersonalizeEventsClient::InvokeOperationOutcome PersonalizeEventsClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-personalize-runtime/source/PersonalizeRuntimeClient.cpp b/generated/src/aws-cpp-sdk-personalize-runtime/source/PersonalizeRuntimeClient.cpp index acfe78469157..13807e255147 100644 --- a/generated/src/aws-cpp-sdk-personalize-runtime/source/PersonalizeRuntimeClient.cpp +++ b/generated/src/aws-cpp-sdk-personalize-runtime/source/PersonalizeRuntimeClient.cpp @@ -164,7 +164,8 @@ PersonalizeRuntimeClient::InvokeOperationOutcome PersonalizeRuntimeClient::Invok {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -178,7 +179,7 @@ PersonalizeRuntimeClient::InvokeOperationOutcome PersonalizeRuntimeClient::Invok 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}}); } diff --git a/generated/src/aws-cpp-sdk-personalize/source/PersonalizeClient.cpp b/generated/src/aws-cpp-sdk-personalize/source/PersonalizeClient.cpp index 29a5495bbd00..357f6f095f55 100644 --- a/generated/src/aws-cpp-sdk-personalize/source/PersonalizeClient.cpp +++ b/generated/src/aws-cpp-sdk-personalize/source/PersonalizeClient.cpp @@ -226,7 +226,8 @@ PersonalizeClient::InvokeOperationOutcome PersonalizeClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -238,7 +239,7 @@ PersonalizeClient::InvokeOperationOutcome PersonalizeClient::InvokeServiceOperat 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}}); } diff --git a/generated/src/aws-cpp-sdk-pi/source/PIClient.cpp b/generated/src/aws-cpp-sdk-pi/source/PIClient.cpp index 251877201971..ade4bb921757 100644 --- a/generated/src/aws-cpp-sdk-pi/source/PIClient.cpp +++ b/generated/src/aws-cpp-sdk-pi/source/PIClient.cpp @@ -167,7 +167,8 @@ PIClient::InvokeOperationOutcome PIClient::InvokeServiceOperation(const AmazonWe {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -182,7 +183,7 @@ PIClient::InvokeOperationOutcome PIClient::InvokeServiceOperation(const AmazonWe 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}}); } diff --git a/generated/src/aws-cpp-sdk-pinpoint-email/source/PinpointEmailClient.cpp b/generated/src/aws-cpp-sdk-pinpoint-email/source/PinpointEmailClient.cpp index 92d125af516e..b99c61253518 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-email/source/PinpointEmailClient.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-email/source/PinpointEmailClient.cpp @@ -199,7 +199,8 @@ PinpointEmailClient::InvokeOperationOutcome PinpointEmailClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -213,7 +214,7 @@ PinpointEmailClient::InvokeOperationOutcome PinpointEmailClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/PinpointSMSVoiceV2Client.cpp b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/PinpointSMSVoiceV2Client.cpp index b652c5b92719..5617d0f97081 100644 --- a/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/PinpointSMSVoiceV2Client.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint-sms-voice-v2/source/PinpointSMSVoiceV2Client.cpp @@ -270,7 +270,8 @@ PinpointSMSVoiceV2Client::InvokeOperationOutcome PinpointSMSVoiceV2Client::Invok {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -282,7 +283,7 @@ PinpointSMSVoiceV2Client::InvokeOperationOutcome PinpointSMSVoiceV2Client::Invok 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}}); } diff --git a/generated/src/aws-cpp-sdk-pinpoint/source/PinpointClient.cpp b/generated/src/aws-cpp-sdk-pinpoint/source/PinpointClient.cpp index 14fcdb984f75..d8faf4c8705c 100644 --- a/generated/src/aws-cpp-sdk-pinpoint/source/PinpointClient.cpp +++ b/generated/src/aws-cpp-sdk-pinpoint/source/PinpointClient.cpp @@ -278,7 +278,8 @@ PinpointClient::InvokeOperationOutcome PinpointClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -292,7 +293,7 @@ PinpointClient::InvokeOperationOutcome PinpointClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-pipes/source/PipesClient.cpp b/generated/src/aws-cpp-sdk-pipes/source/PipesClient.cpp index 550d95d8db10..a3867cd83007 100644 --- a/generated/src/aws-cpp-sdk-pipes/source/PipesClient.cpp +++ b/generated/src/aws-cpp-sdk-pipes/source/PipesClient.cpp @@ -166,7 +166,8 @@ PipesClient::InvokeOperationOutcome PipesClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -180,7 +181,7 @@ PipesClient::InvokeOperationOutcome PipesClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-polly/source/PollyClient.cpp b/generated/src/aws-cpp-sdk-polly/source/PollyClient.cpp index eaf81d478374..fac5e19e7132 100644 --- a/generated/src/aws-cpp-sdk-polly/source/PollyClient.cpp +++ b/generated/src/aws-cpp-sdk-polly/source/PollyClient.cpp @@ -173,7 +173,8 @@ PollyClient::InvokeOperationOutcome PollyClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -187,7 +188,7 @@ PollyClient::InvokeOperationOutcome PollyClient::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}}); } @@ -414,7 +415,8 @@ SynthesizeSpeechOutcome PollyClient::SynthesizeSpeech(const SynthesizeSpeechRequ {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> SynthesizeSpeechOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -428,7 +430,7 @@ SynthesizeSpeechOutcome PollyClient::SynthesizeSpeech(const SynthesizeSpeechRequ return result.IsSuccess() ? SynthesizeSpeechOutcome(result.GetResultWithOwnership()) : SynthesizeSpeechOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-pricing-plan-manager/source/PricingPlanManagerClient.cpp b/generated/src/aws-cpp-sdk-pricing-plan-manager/source/PricingPlanManagerClient.cpp index 31179d910f98..d923d636c98d 100644 --- a/generated/src/aws-cpp-sdk-pricing-plan-manager/source/PricingPlanManagerClient.cpp +++ b/generated/src/aws-cpp-sdk-pricing-plan-manager/source/PricingPlanManagerClient.cpp @@ -170,7 +170,8 @@ PricingPlanManagerClient::InvokeOperationOutcome PricingPlanManagerClient::Invok {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -184,7 +185,7 @@ PricingPlanManagerClient::InvokeOperationOutcome PricingPlanManagerClient::Invok 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}}); } diff --git a/generated/src/aws-cpp-sdk-pricing/source/PricingClient.cpp b/generated/src/aws-cpp-sdk-pricing/source/PricingClient.cpp index 073f40268bb0..2be583706d8c 100644 --- a/generated/src/aws-cpp-sdk-pricing/source/PricingClient.cpp +++ b/generated/src/aws-cpp-sdk-pricing/source/PricingClient.cpp @@ -160,7 +160,8 @@ PricingClient::InvokeOperationOutcome PricingClient::InvokeServiceOperation(cons {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -172,7 +173,7 @@ PricingClient::InvokeOperationOutcome PricingClient::InvokeServiceOperation(cons 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}}); } diff --git a/generated/src/aws-cpp-sdk-proton/source/ProtonClient.cpp b/generated/src/aws-cpp-sdk-proton/source/ProtonClient.cpp index bfd318a5ff37..95be6968b54d 100644 --- a/generated/src/aws-cpp-sdk-proton/source/ProtonClient.cpp +++ b/generated/src/aws-cpp-sdk-proton/source/ProtonClient.cpp @@ -155,7 +155,8 @@ ProtonClient::InvokeOperationOutcome ProtonClient::InvokeServiceOperation(const {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -167,6 +168,6 @@ ProtonClient::InvokeOperationOutcome ProtonClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-qapps/source/QAppsClient.cpp b/generated/src/aws-cpp-sdk-qapps/source/QAppsClient.cpp index e76c69d34241..532ed8eee12c 100644 --- a/generated/src/aws-cpp-sdk-qapps/source/QAppsClient.cpp +++ b/generated/src/aws-cpp-sdk-qapps/source/QAppsClient.cpp @@ -191,7 +191,8 @@ QAppsClient::InvokeOperationOutcome QAppsClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -205,7 +206,7 @@ QAppsClient::InvokeOperationOutcome QAppsClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-qbusiness/source/QBusinessClient.cpp b/generated/src/aws-cpp-sdk-qbusiness/source/QBusinessClient.cpp index a06045498ee2..f2c1bd7b1660 100644 --- a/generated/src/aws-cpp-sdk-qbusiness/source/QBusinessClient.cpp +++ b/generated/src/aws-cpp-sdk-qbusiness/source/QBusinessClient.cpp @@ -246,7 +246,8 @@ QBusinessClient::InvokeOperationOutcome QBusinessClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -260,7 +261,7 @@ QBusinessClient::InvokeOperationOutcome QBusinessClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-qconnect/source/QConnectClient.cpp b/generated/src/aws-cpp-sdk-qconnect/source/QConnectClient.cpp index aa81104485bc..ec4fd8c9d637 100644 --- a/generated/src/aws-cpp-sdk-qconnect/source/QConnectClient.cpp +++ b/generated/src/aws-cpp-sdk-qconnect/source/QConnectClient.cpp @@ -248,7 +248,8 @@ QConnectClient::InvokeOperationOutcome QConnectClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -262,7 +263,7 @@ QConnectClient::InvokeOperationOutcome QConnectClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-quicksight/source/QuickSightClient.cpp b/generated/src/aws-cpp-sdk-quicksight/source/QuickSightClient.cpp index 0c4a49301563..507cf6e4e922 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/QuickSightClient.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/QuickSightClient.cpp @@ -256,7 +256,8 @@ QuickSightClient::InvokeOperationOutcome QuickSightClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -270,7 +271,7 @@ QuickSightClient::InvokeOperationOutcome QuickSightClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-ram/source/RAMClient.cpp b/generated/src/aws-cpp-sdk-ram/source/RAMClient.cpp index 85b0731294fb..908237268d5d 100644 --- a/generated/src/aws-cpp-sdk-ram/source/RAMClient.cpp +++ b/generated/src/aws-cpp-sdk-ram/source/RAMClient.cpp @@ -189,7 +189,8 @@ RAMClient::InvokeOperationOutcome RAMClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -203,7 +204,7 @@ RAMClient::InvokeOperationOutcome RAMClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-rbin/source/RecycleBinClient.cpp b/generated/src/aws-cpp-sdk-rbin/source/RecycleBinClient.cpp index 70018d4e046f..4d64d320778d 100644 --- a/generated/src/aws-cpp-sdk-rbin/source/RecycleBinClient.cpp +++ b/generated/src/aws-cpp-sdk-rbin/source/RecycleBinClient.cpp @@ -166,7 +166,8 @@ RecycleBinClient::InvokeOperationOutcome RecycleBinClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -180,7 +181,7 @@ RecycleBinClient::InvokeOperationOutcome RecycleBinClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-rds-data/source/RDSDataServiceClient.cpp b/generated/src/aws-cpp-sdk-rds-data/source/RDSDataServiceClient.cpp index a37df1cbe746..bec93a12db42 100644 --- a/generated/src/aws-cpp-sdk-rds-data/source/RDSDataServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-rds-data/source/RDSDataServiceClient.cpp @@ -162,7 +162,8 @@ RDSDataServiceClient::InvokeOperationOutcome RDSDataServiceClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -176,7 +177,7 @@ RDSDataServiceClient::InvokeOperationOutcome RDSDataServiceClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-rds/source/RDSClient.cpp b/generated/src/aws-cpp-sdk-rds/source/RDSClient.cpp index 0fdd96eb5090..49be6dc7a3f2 100644 --- a/generated/src/aws-cpp-sdk-rds/source/RDSClient.cpp +++ b/generated/src/aws-cpp-sdk-rds/source/RDSClient.cpp @@ -337,7 +337,8 @@ RDSClient::InvokeOperationOutcome RDSClient::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -349,7 +350,7 @@ RDSClient::InvokeOperationOutcome RDSClient::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}}); } AddRoleToDBClusterOutcome RDSClient::AddRoleToDBCluster(const AddRoleToDBClusterRequest& request) const { diff --git a/generated/src/aws-cpp-sdk-redshift-data/source/RedshiftDataAPIServiceClient.cpp b/generated/src/aws-cpp-sdk-redshift-data/source/RedshiftDataAPIServiceClient.cpp index 56b26e47dca6..c9b6e0b629a8 100644 --- a/generated/src/aws-cpp-sdk-redshift-data/source/RedshiftDataAPIServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-redshift-data/source/RedshiftDataAPIServiceClient.cpp @@ -176,7 +176,8 @@ RedshiftDataAPIServiceClient::InvokeOperationOutcome RedshiftDataAPIServiceClien {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -188,7 +189,7 @@ RedshiftDataAPIServiceClient::InvokeOperationOutcome RedshiftDataAPIServiceClien 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}}); } diff --git a/generated/src/aws-cpp-sdk-redshift-serverless/source/RedshiftServerlessClient.cpp b/generated/src/aws-cpp-sdk-redshift-serverless/source/RedshiftServerlessClient.cpp index 68b5a75ac1de..303cfd7e209f 100644 --- a/generated/src/aws-cpp-sdk-redshift-serverless/source/RedshiftServerlessClient.cpp +++ b/generated/src/aws-cpp-sdk-redshift-serverless/source/RedshiftServerlessClient.cpp @@ -225,7 +225,8 @@ RedshiftServerlessClient::InvokeOperationOutcome RedshiftServerlessClient::Invok {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -237,7 +238,7 @@ RedshiftServerlessClient::InvokeOperationOutcome RedshiftServerlessClient::Invok 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}}); } diff --git a/generated/src/aws-cpp-sdk-redshift/source/RedshiftClient.cpp b/generated/src/aws-cpp-sdk-redshift/source/RedshiftClient.cpp index 18177b3a94bc..cbcce4eae79d 100644 --- a/generated/src/aws-cpp-sdk-redshift/source/RedshiftClient.cpp +++ b/generated/src/aws-cpp-sdk-redshift/source/RedshiftClient.cpp @@ -321,7 +321,8 @@ RedshiftClient::InvokeOperationOutcome RedshiftClient::InvokeServiceOperation(co {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -333,7 +334,7 @@ RedshiftClient::InvokeOperationOutcome RedshiftClient::InvokeServiceOperation(co 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}}); } AcceptReservedNodeExchangeOutcome RedshiftClient::AcceptReservedNodeExchange(const AcceptReservedNodeExchangeRequest& request) const { diff --git a/generated/src/aws-cpp-sdk-rekognition/source/RekognitionClient.cpp b/generated/src/aws-cpp-sdk-rekognition/source/RekognitionClient.cpp index 6ee617fe386d..f6dd71533fb0 100644 --- a/generated/src/aws-cpp-sdk-rekognition/source/RekognitionClient.cpp +++ b/generated/src/aws-cpp-sdk-rekognition/source/RekognitionClient.cpp @@ -230,7 +230,8 @@ RekognitionClient::InvokeOperationOutcome RekognitionClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -242,7 +243,7 @@ RekognitionClient::InvokeOperationOutcome RekognitionClient::InvokeServiceOperat 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}}); } diff --git a/generated/src/aws-cpp-sdk-repostspace/source/RepostspaceClient.cpp b/generated/src/aws-cpp-sdk-repostspace/source/RepostspaceClient.cpp index 317a90ebb446..4b1eefce272d 100644 --- a/generated/src/aws-cpp-sdk-repostspace/source/RepostspaceClient.cpp +++ b/generated/src/aws-cpp-sdk-repostspace/source/RepostspaceClient.cpp @@ -175,7 +175,8 @@ RepostspaceClient::InvokeOperationOutcome RepostspaceClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -189,7 +190,7 @@ RepostspaceClient::InvokeOperationOutcome RepostspaceClient::InvokeServiceOperat 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}}); } diff --git a/generated/src/aws-cpp-sdk-resiliencehub/source/ResilienceHubClient.cpp b/generated/src/aws-cpp-sdk-resiliencehub/source/ResilienceHubClient.cpp index b3958888fdf6..74baab96ed01 100644 --- a/generated/src/aws-cpp-sdk-resiliencehub/source/ResilienceHubClient.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehub/source/ResilienceHubClient.cpp @@ -220,7 +220,8 @@ ResilienceHubClient::InvokeOperationOutcome ResilienceHubClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -234,7 +235,7 @@ ResilienceHubClient::InvokeOperationOutcome ResilienceHubClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-resiliencehubv2/source/Resiliencehubv2Client.cpp b/generated/src/aws-cpp-sdk-resiliencehubv2/source/Resiliencehubv2Client.cpp index 163888092dda..53c80b8d7dcf 100644 --- a/generated/src/aws-cpp-sdk-resiliencehubv2/source/Resiliencehubv2Client.cpp +++ b/generated/src/aws-cpp-sdk-resiliencehubv2/source/Resiliencehubv2Client.cpp @@ -233,7 +233,8 @@ Resiliencehubv2Client::InvokeOperationOutcome Resiliencehubv2Client::InvokeServi {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -247,7 +248,7 @@ Resiliencehubv2Client::InvokeOperationOutcome Resiliencehubv2Client::InvokeServi 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}}); } diff --git a/generated/src/aws-cpp-sdk-resource-explorer-2/source/ResourceExplorer2Client.cpp b/generated/src/aws-cpp-sdk-resource-explorer-2/source/ResourceExplorer2Client.cpp index 2feeaa254b37..1b63c234aef4 100644 --- a/generated/src/aws-cpp-sdk-resource-explorer-2/source/ResourceExplorer2Client.cpp +++ b/generated/src/aws-cpp-sdk-resource-explorer-2/source/ResourceExplorer2Client.cpp @@ -193,7 +193,8 @@ ResourceExplorer2Client::InvokeOperationOutcome ResourceExplorer2Client::InvokeS {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -207,7 +208,7 @@ ResourceExplorer2Client::InvokeOperationOutcome ResourceExplorer2Client::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}}); } diff --git a/generated/src/aws-cpp-sdk-resource-groups/source/ResourceGroupsClient.cpp b/generated/src/aws-cpp-sdk-resource-groups/source/ResourceGroupsClient.cpp index aeeed165aaa6..41f48119d875 100644 --- a/generated/src/aws-cpp-sdk-resource-groups/source/ResourceGroupsClient.cpp +++ b/generated/src/aws-cpp-sdk-resource-groups/source/ResourceGroupsClient.cpp @@ -180,7 +180,8 @@ ResourceGroupsClient::InvokeOperationOutcome ResourceGroupsClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -194,7 +195,7 @@ ResourceGroupsClient::InvokeOperationOutcome ResourceGroupsClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-resourcegroupstaggingapi/source/ResourceGroupsTaggingAPIClient.cpp b/generated/src/aws-cpp-sdk-resourcegroupstaggingapi/source/ResourceGroupsTaggingAPIClient.cpp index 72e89419024f..cc7aa6d6ec19 100644 --- a/generated/src/aws-cpp-sdk-resourcegroupstaggingapi/source/ResourceGroupsTaggingAPIClient.cpp +++ b/generated/src/aws-cpp-sdk-resourcegroupstaggingapi/source/ResourceGroupsTaggingAPIClient.cpp @@ -173,7 +173,8 @@ ResourceGroupsTaggingAPIClient::InvokeOperationOutcome ResourceGroupsTaggingAPIC {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -185,7 +186,7 @@ ResourceGroupsTaggingAPIClient::InvokeOperationOutcome ResourceGroupsTaggingAPIC 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}}); } diff --git a/generated/src/aws-cpp-sdk-rolesanywhere/source/RolesAnywhereClient.cpp b/generated/src/aws-cpp-sdk-rolesanywhere/source/RolesAnywhereClient.cpp index 8c9b23e01045..fe141aede356 100644 --- a/generated/src/aws-cpp-sdk-rolesanywhere/source/RolesAnywhereClient.cpp +++ b/generated/src/aws-cpp-sdk-rolesanywhere/source/RolesAnywhereClient.cpp @@ -187,7 +187,8 @@ RolesAnywhereClient::InvokeOperationOutcome RolesAnywhereClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -201,7 +202,7 @@ RolesAnywhereClient::InvokeOperationOutcome RolesAnywhereClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-route53-recovery-cluster/source/Route53RecoveryClusterClient.cpp b/generated/src/aws-cpp-sdk-route53-recovery-cluster/source/Route53RecoveryClusterClient.cpp index 6c59b95dec86..edf8efa4a2c2 100644 --- a/generated/src/aws-cpp-sdk-route53-recovery-cluster/source/Route53RecoveryClusterClient.cpp +++ b/generated/src/aws-cpp-sdk-route53-recovery-cluster/source/Route53RecoveryClusterClient.cpp @@ -168,7 +168,8 @@ Route53RecoveryClusterClient::InvokeOperationOutcome Route53RecoveryClusterClien {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -180,7 +181,7 @@ Route53RecoveryClusterClient::InvokeOperationOutcome Route53RecoveryClusterClien 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}}); } diff --git a/generated/src/aws-cpp-sdk-route53-recovery-control-config/source/Route53RecoveryControlConfigClient.cpp b/generated/src/aws-cpp-sdk-route53-recovery-control-config/source/Route53RecoveryControlConfigClient.cpp index 358b1675605d..a21aa96356c1 100644 --- a/generated/src/aws-cpp-sdk-route53-recovery-control-config/source/Route53RecoveryControlConfigClient.cpp +++ b/generated/src/aws-cpp-sdk-route53-recovery-control-config/source/Route53RecoveryControlConfigClient.cpp @@ -190,7 +190,8 @@ Route53RecoveryControlConfigClient::InvokeOperationOutcome Route53RecoveryContro {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -204,7 +205,7 @@ Route53RecoveryControlConfigClient::InvokeOperationOutcome Route53RecoveryContro 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}}); } diff --git a/generated/src/aws-cpp-sdk-route53-recovery-readiness/source/Route53RecoveryReadinessClient.cpp b/generated/src/aws-cpp-sdk-route53-recovery-readiness/source/Route53RecoveryReadinessClient.cpp index 5b06e5678b02..10a36d599b60 100644 --- a/generated/src/aws-cpp-sdk-route53-recovery-readiness/source/Route53RecoveryReadinessClient.cpp +++ b/generated/src/aws-cpp-sdk-route53-recovery-readiness/source/Route53RecoveryReadinessClient.cpp @@ -197,7 +197,8 @@ Route53RecoveryReadinessClient::InvokeOperationOutcome Route53RecoveryReadinessC {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -211,7 +212,7 @@ Route53RecoveryReadinessClient::InvokeOperationOutcome Route53RecoveryReadinessC 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}}); } diff --git a/generated/src/aws-cpp-sdk-route53/source/Route53Client.cpp b/generated/src/aws-cpp-sdk-route53/source/Route53Client.cpp index 41ee66561a83..e9ee168f04aa 100644 --- a/generated/src/aws-cpp-sdk-route53/source/Route53Client.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/Route53Client.cpp @@ -228,7 +228,8 @@ Route53Client::InvokeOperationOutcome Route53Client::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -242,7 +243,7 @@ Route53Client::InvokeOperationOutcome Route53Client::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}}); } ActivateKeySigningKeyOutcome Route53Client::ActivateKeySigningKey(const ActivateKeySigningKeyRequest& request) const { diff --git a/generated/src/aws-cpp-sdk-route53domains/source/Route53DomainsClient.cpp b/generated/src/aws-cpp-sdk-route53domains/source/Route53DomainsClient.cpp index 9d07f8b5af33..66b6d9e3124f 100644 --- a/generated/src/aws-cpp-sdk-route53domains/source/Route53DomainsClient.cpp +++ b/generated/src/aws-cpp-sdk-route53domains/source/Route53DomainsClient.cpp @@ -190,7 +190,8 @@ Route53DomainsClient::InvokeOperationOutcome Route53DomainsClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -202,7 +203,7 @@ Route53DomainsClient::InvokeOperationOutcome Route53DomainsClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-route53globalresolver/source/Route53GlobalResolverClient.cpp b/generated/src/aws-cpp-sdk-route53globalresolver/source/Route53GlobalResolverClient.cpp index 6d8b3feaec15..63df38d5644d 100644 --- a/generated/src/aws-cpp-sdk-route53globalresolver/source/Route53GlobalResolverClient.cpp +++ b/generated/src/aws-cpp-sdk-route53globalresolver/source/Route53GlobalResolverClient.cpp @@ -213,7 +213,8 @@ Route53GlobalResolverClient::InvokeOperationOutcome Route53GlobalResolverClient: {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -227,7 +228,7 @@ Route53GlobalResolverClient::InvokeOperationOutcome Route53GlobalResolverClient: 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}}); } diff --git a/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesClient.cpp b/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesClient.cpp index 9e6cc43686a6..2c13fc993a1d 100644 --- a/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesClient.cpp +++ b/generated/src/aws-cpp-sdk-route53profiles/source/Route53ProfilesClient.cpp @@ -176,7 +176,8 @@ Route53ProfilesClient::InvokeOperationOutcome Route53ProfilesClient::InvokeServi {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -190,7 +191,7 @@ Route53ProfilesClient::InvokeOperationOutcome Route53ProfilesClient::InvokeServi 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}}); } diff --git a/generated/src/aws-cpp-sdk-route53resolver/source/Route53ResolverClient.cpp b/generated/src/aws-cpp-sdk-route53resolver/source/Route53ResolverClient.cpp index c60c6acff90a..8617e50fd74f 100644 --- a/generated/src/aws-cpp-sdk-route53resolver/source/Route53ResolverClient.cpp +++ b/generated/src/aws-cpp-sdk-route53resolver/source/Route53ResolverClient.cpp @@ -231,7 +231,8 @@ Route53ResolverClient::InvokeOperationOutcome Route53ResolverClient::InvokeServi {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -243,7 +244,7 @@ Route53ResolverClient::InvokeOperationOutcome Route53ResolverClient::InvokeServi 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}}); } diff --git a/generated/src/aws-cpp-sdk-rtbfabric/source/RTBFabricClient.cpp b/generated/src/aws-cpp-sdk-rtbfabric/source/RTBFabricClient.cpp index f3d0b6fa237b..52735d2bbc19 100644 --- a/generated/src/aws-cpp-sdk-rtbfabric/source/RTBFabricClient.cpp +++ b/generated/src/aws-cpp-sdk-rtbfabric/source/RTBFabricClient.cpp @@ -192,7 +192,8 @@ RTBFabricClient::InvokeOperationOutcome RTBFabricClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -206,7 +207,7 @@ RTBFabricClient::InvokeOperationOutcome RTBFabricClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-rum/source/CloudWatchRUMClient.cpp b/generated/src/aws-cpp-sdk-rum/source/CloudWatchRUMClient.cpp index 59d8e9b8a48b..c1fa285d4726 100644 --- a/generated/src/aws-cpp-sdk-rum/source/CloudWatchRUMClient.cpp +++ b/generated/src/aws-cpp-sdk-rum/source/CloudWatchRUMClient.cpp @@ -177,7 +177,8 @@ CloudWatchRUMClient::InvokeOperationOutcome CloudWatchRUMClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -191,7 +192,7 @@ CloudWatchRUMClient::InvokeOperationOutcome CloudWatchRUMClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-s3-crt/source/S3CrtClient.cpp b/generated/src/aws-cpp-sdk-s3-crt/source/S3CrtClient.cpp index d2d7f0747627..c7c22e6872a5 100644 --- a/generated/src/aws-cpp-sdk-s3-crt/source/S3CrtClient.cpp +++ b/generated/src/aws-cpp-sdk-s3-crt/source/S3CrtClient.cpp @@ -526,7 +526,8 @@ S3CrtClient::InvokeOperationOutcome S3CrtClient::InvokeServiceOperation( }()); } - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -540,7 +541,7 @@ S3CrtClient::InvokeOperationOutcome S3CrtClient::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}}); } void S3CrtClient::CrtClientShutdownCallback(void* data) { @@ -2512,7 +2513,8 @@ GetBucketPolicyOutcome S3CrtClient::GetBucketPolicy(const GetBucketPolicyRequest {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetBucketPolicyOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -2534,7 +2536,7 @@ GetBucketPolicyOutcome S3CrtClient::GetBucketPolicy(const GetBucketPolicyRequest return result.IsSuccess() ? GetBucketPolicyOutcome(result.GetResultWithOwnership()) : GetBucketPolicyOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -2704,7 +2706,8 @@ GetObjectAnnotationOutcome S3CrtClient::GetObjectAnnotation(const GetObjectAnnot {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetObjectAnnotationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -2727,7 +2730,7 @@ GetObjectAnnotationOutcome S3CrtClient::GetObjectAnnotation(const GetObjectAnnot return result.IsSuccess() ? GetObjectAnnotationOutcome(result.GetResultWithOwnership()) : GetObjectAnnotationOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -2878,7 +2881,8 @@ GetObjectTorrentOutcome S3CrtClient::GetObjectTorrent(const GetObjectTorrentRequ {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetObjectTorrentOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -2901,7 +2905,7 @@ GetObjectTorrentOutcome S3CrtClient::GetObjectTorrent(const GetObjectTorrentRequ return result.IsSuccess() ? GetObjectTorrentOutcome(result.GetResultWithOwnership()) : GetObjectTorrentOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -3800,7 +3804,8 @@ SelectObjectContentOutcome S3CrtClient::SelectObjectContent(SelectObjectContentR {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> SelectObjectContentOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -3827,7 +3832,7 @@ SelectObjectContentOutcome S3CrtClient::SelectObjectContent(SelectObjectContentR return result.IsSuccess() ? SelectObjectContentOutcome(result.GetResultWithOwnership()) : SelectObjectContentOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-s3/source/S3Client.cpp b/generated/src/aws-cpp-sdk-s3/source/S3Client.cpp index ca75a7a73ea9..402e94566f10 100644 --- a/generated/src/aws-cpp-sdk-s3/source/S3Client.cpp +++ b/generated/src/aws-cpp-sdk-s3/source/S3Client.cpp @@ -354,7 +354,8 @@ S3Client::InvokeOperationOutcome S3Client::InvokeServiceOperation( }()); } - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -368,7 +369,7 @@ S3Client::InvokeOperationOutcome S3Client::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}}); } AbortMultipartUploadOutcome S3Client::AbortMultipartUpload(const AbortMultipartUploadRequest& request) const { @@ -452,16 +453,12 @@ CopyObjectOutcome S3Client::CopyObject(const CopyObjectRequest& request) const { } CopyObjectOutcomeCallable S3Client::CopyObjectCallable(const CopyObjectRequest& request) const { - auto task = - Aws::MakeShared >(ALLOCATION_TAG, [this, request]() { return this->CopyObject(request); }); - auto packagedFunction = [task]() { (*task)(); }; - m_clientConfiguration.executor->Submit(packagedFunction); - return task->get_future(); + return SubmitCallable(&S3Client::CopyObject, request); } void S3Client::CopyObjectAsync(const CopyObjectRequest& request, const CopyObjectResponseReceivedHandler& handler, const std::shared_ptr& context) const { - m_clientConfiguration.executor->Submit([this, request, handler, context]() { handler(this, request, CopyObject(request), context); }); + SubmitAsync(&S3Client::CopyObject, request, handler, context); } CreateBucketOutcome S3Client::CreateBucket(const CreateBucketRequest& request) const { @@ -1323,7 +1320,8 @@ GetBucketPolicyOutcome S3Client::GetBucketPolicy(const GetBucketPolicyRequest& r {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetBucketPolicyOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1345,7 +1343,7 @@ GetBucketPolicyOutcome S3Client::GetBucketPolicy(const GetBucketPolicyRequest& r return result.IsSuccess() ? GetBucketPolicyOutcome(result.GetResultWithOwnership()) : GetBucketPolicyOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -1486,7 +1484,8 @@ GetObjectOutcome S3Client::GetObject(const GetObjectRequest& request) const { {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetObjectOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1505,22 +1504,18 @@ GetObjectOutcome S3Client::GetObject(const GetObjectRequest& request) const { auto result = MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET); return result.IsSuccess() ? GetObjectOutcome(result.GetResultWithOwnership()) : GetObjectOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } GetObjectOutcomeCallable S3Client::GetObjectCallable(const GetObjectRequest& request) const { - auto task = - Aws::MakeShared >(ALLOCATION_TAG, [this, request]() { return this->GetObject(request); }); - auto packagedFunction = [task]() { (*task)(); }; - m_clientConfiguration.executor->Submit(packagedFunction); - return task->get_future(); + return SubmitCallable(&S3Client::GetObject, request); } void S3Client::GetObjectAsync(const GetObjectRequest& request, const GetObjectResponseReceivedHandler& handler, const std::shared_ptr& context) const { - m_clientConfiguration.executor->Submit([this, request, handler, context]() { handler(this, request, GetObject(request), context); }); + SubmitAsync(&S3Client::GetObject, request, handler, context); } GetObjectAclOutcome S3Client::GetObjectAcl(const GetObjectAclRequest& request) const { @@ -1574,7 +1569,8 @@ GetObjectAnnotationOutcome S3Client::GetObjectAnnotation(const GetObjectAnnotati {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetObjectAnnotationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1597,7 +1593,7 @@ GetObjectAnnotationOutcome S3Client::GetObjectAnnotation(const GetObjectAnnotati return result.IsSuccess() ? GetObjectAnnotationOutcome(result.GetResultWithOwnership()) : GetObjectAnnotationOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -1748,7 +1744,8 @@ GetObjectTorrentOutcome S3Client::GetObjectTorrent(const GetObjectTorrentRequest {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetObjectTorrentOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -1771,7 +1768,7 @@ GetObjectTorrentOutcome S3Client::GetObjectTorrent(const GetObjectTorrentRequest return result.IsSuccess() ? GetObjectTorrentOutcome(result.GetResultWithOwnership()) : GetObjectTorrentOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -2450,16 +2447,12 @@ PutObjectOutcome S3Client::PutObject(const PutObjectRequest& request) const { } PutObjectOutcomeCallable S3Client::PutObjectCallable(const PutObjectRequest& request) const { - auto task = - Aws::MakeShared >(ALLOCATION_TAG, [this, request]() { return this->PutObject(request); }); - auto packagedFunction = [task]() { (*task)(); }; - m_clientConfiguration.executor->Submit(packagedFunction); - return task->get_future(); + return SubmitCallable(&S3Client::PutObject, request); } void S3Client::PutObjectAsync(const PutObjectRequest& request, const PutObjectResponseReceivedHandler& handler, const std::shared_ptr& context) const { - m_clientConfiguration.executor->Submit([this, request, handler, context]() { handler(this, request, PutObject(request), context); }); + SubmitAsync(&S3Client::PutObject, request, handler, context); } PutObjectAclOutcome S3Client::PutObjectAcl(const PutObjectAclRequest& request) const { @@ -2704,7 +2697,8 @@ SelectObjectContentOutcome S3Client::SelectObjectContent(SelectObjectContentRequ {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> SelectObjectContentOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -2731,7 +2725,7 @@ SelectObjectContentOutcome S3Client::SelectObjectContent(SelectObjectContentRequ return result.IsSuccess() ? SelectObjectContentOutcome(result.GetResultWithOwnership()) : SelectObjectContentOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-s3control/source/S3ControlClient.cpp b/generated/src/aws-cpp-sdk-s3control/source/S3ControlClient.cpp index a3eb497b4b4a..49070b2bf762 100644 --- a/generated/src/aws-cpp-sdk-s3control/source/S3ControlClient.cpp +++ b/generated/src/aws-cpp-sdk-s3control/source/S3ControlClient.cpp @@ -267,7 +267,8 @@ S3ControlClient::InvokeOperationOutcome S3ControlClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -281,7 +282,7 @@ S3ControlClient::InvokeOperationOutcome S3ControlClient::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}}); } AssociateAccessGrantsIdentityCenterOutcome S3ControlClient::AssociateAccessGrantsIdentityCenter( diff --git a/generated/src/aws-cpp-sdk-s3files/source/S3FilesClient.cpp b/generated/src/aws-cpp-sdk-s3files/source/S3FilesClient.cpp index 5f0b4a2b771d..daa8a87625a5 100644 --- a/generated/src/aws-cpp-sdk-s3files/source/S3FilesClient.cpp +++ b/generated/src/aws-cpp-sdk-s3files/source/S3FilesClient.cpp @@ -177,7 +177,8 @@ S3FilesClient::InvokeOperationOutcome S3FilesClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -191,7 +192,7 @@ S3FilesClient::InvokeOperationOutcome S3FilesClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-s3outposts/source/S3OutpostsClient.cpp b/generated/src/aws-cpp-sdk-s3outposts/source/S3OutpostsClient.cpp index 6c6194b090bf..6c7d659cc011 100644 --- a/generated/src/aws-cpp-sdk-s3outposts/source/S3OutpostsClient.cpp +++ b/generated/src/aws-cpp-sdk-s3outposts/source/S3OutpostsClient.cpp @@ -161,7 +161,8 @@ S3OutpostsClient::InvokeOperationOutcome S3OutpostsClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -175,7 +176,7 @@ S3OutpostsClient::InvokeOperationOutcome S3OutpostsClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-s3tables/source/S3TablesClient.cpp b/generated/src/aws-cpp-sdk-s3tables/source/S3TablesClient.cpp index bf5d44b19026..844d70c203e9 100644 --- a/generated/src/aws-cpp-sdk-s3tables/source/S3TablesClient.cpp +++ b/generated/src/aws-cpp-sdk-s3tables/source/S3TablesClient.cpp @@ -205,7 +205,8 @@ S3TablesClient::InvokeOperationOutcome S3TablesClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -219,7 +220,7 @@ S3TablesClient::InvokeOperationOutcome S3TablesClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-s3vectors/source/S3VectorsClient.cpp b/generated/src/aws-cpp-sdk-s3vectors/source/S3VectorsClient.cpp index 303d7962866e..f912671fc683 100644 --- a/generated/src/aws-cpp-sdk-s3vectors/source/S3VectorsClient.cpp +++ b/generated/src/aws-cpp-sdk-s3vectors/source/S3VectorsClient.cpp @@ -177,7 +177,8 @@ S3VectorsClient::InvokeOperationOutcome S3VectorsClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -191,7 +192,7 @@ S3VectorsClient::InvokeOperationOutcome S3VectorsClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-sagemaker-a2i-runtime/source/AugmentedAIRuntimeClient.cpp b/generated/src/aws-cpp-sdk-sagemaker-a2i-runtime/source/AugmentedAIRuntimeClient.cpp index 54fb0a8e34ab..d08d769ef714 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-a2i-runtime/source/AugmentedAIRuntimeClient.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-a2i-runtime/source/AugmentedAIRuntimeClient.cpp @@ -166,7 +166,8 @@ AugmentedAIRuntimeClient::InvokeOperationOutcome AugmentedAIRuntimeClient::Invok {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -180,7 +181,7 @@ AugmentedAIRuntimeClient::InvokeOperationOutcome AugmentedAIRuntimeClient::Invok 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}}); } diff --git a/generated/src/aws-cpp-sdk-sagemaker-edge/source/SagemakerEdgeManagerClient.cpp b/generated/src/aws-cpp-sdk-sagemaker-edge/source/SagemakerEdgeManagerClient.cpp index 1f12b3d97144..f76719e93ad6 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-edge/source/SagemakerEdgeManagerClient.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-edge/source/SagemakerEdgeManagerClient.cpp @@ -168,7 +168,8 @@ SagemakerEdgeManagerClient::InvokeOperationOutcome SagemakerEdgeManagerClient::I {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -182,7 +183,7 @@ SagemakerEdgeManagerClient::InvokeOperationOutcome SagemakerEdgeManagerClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/SageMakerFeatureStoreRuntimeClient.cpp b/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/SageMakerFeatureStoreRuntimeClient.cpp index a2f4f35a6229..b7ffb2ba74e6 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/SageMakerFeatureStoreRuntimeClient.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-featurestore-runtime/source/SageMakerFeatureStoreRuntimeClient.cpp @@ -172,7 +172,8 @@ SageMakerFeatureStoreRuntimeClient::InvokeOperationOutcome SageMakerFeatureStore {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -186,7 +187,7 @@ SageMakerFeatureStoreRuntimeClient::InvokeOperationOutcome SageMakerFeatureStore 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}}); } diff --git a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/SageMakerGeospatialClient.cpp b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/SageMakerGeospatialClient.cpp index 3805013c7b6c..ea4944a1fb1e 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/SageMakerGeospatialClient.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-geospatial/source/SageMakerGeospatialClient.cpp @@ -180,7 +180,8 @@ SageMakerGeospatialClient::InvokeOperationOutcome SageMakerGeospatialClient::Inv {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -194,7 +195,7 @@ SageMakerGeospatialClient::InvokeOperationOutcome SageMakerGeospatialClient::Inv 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}}); } @@ -338,7 +339,8 @@ GetTileOutcome SageMakerGeospatialClient::GetTile(const GetTileRequest& request) {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetTileOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -354,7 +356,7 @@ GetTileOutcome SageMakerGeospatialClient::GetTile(const GetTileRequest& request) auto result = MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET); return result.IsSuccess() ? GetTileOutcome(result.GetResultWithOwnership()) : GetTileOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-sagemaker-metrics/source/SageMakerMetricsClient.cpp b/generated/src/aws-cpp-sdk-sagemaker-metrics/source/SageMakerMetricsClient.cpp index 168765ecf8a7..faee7248dd64 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-metrics/source/SageMakerMetricsClient.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-metrics/source/SageMakerMetricsClient.cpp @@ -163,7 +163,8 @@ SageMakerMetricsClient::InvokeOperationOutcome SageMakerMetricsClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -177,7 +178,7 @@ SageMakerMetricsClient::InvokeOperationOutcome SageMakerMetricsClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-sagemaker-runtime-http2/source/SageMakerRuntimeHTTP2Client.cpp b/generated/src/aws-cpp-sdk-sagemaker-runtime-http2/source/SageMakerRuntimeHTTP2Client.cpp index b97cce0cbd5a..b7b917876cb3 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-runtime-http2/source/SageMakerRuntimeHTTP2Client.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-runtime-http2/source/SageMakerRuntimeHTTP2Client.cpp @@ -173,7 +173,8 @@ SageMakerRuntimeHTTP2Client::InvokeOperationOutcome SageMakerRuntimeHTTP2Client: {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -187,7 +188,7 @@ SageMakerRuntimeHTTP2Client::InvokeOperationOutcome SageMakerRuntimeHTTP2Client: 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}}); } diff --git a/generated/src/aws-cpp-sdk-sagemaker-runtime/source/SageMakerRuntimeClient.cpp b/generated/src/aws-cpp-sdk-sagemaker-runtime/source/SageMakerRuntimeClient.cpp index 0a94a0d8a6ff..d825c115f88f 100644 --- a/generated/src/aws-cpp-sdk-sagemaker-runtime/source/SageMakerRuntimeClient.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker-runtime/source/SageMakerRuntimeClient.cpp @@ -169,7 +169,8 @@ SageMakerRuntimeClient::InvokeOperationOutcome SageMakerRuntimeClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -183,7 +184,7 @@ SageMakerRuntimeClient::InvokeOperationOutcome SageMakerRuntimeClient::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}}); } @@ -204,7 +205,8 @@ InvokeEndpointOutcome SageMakerRuntimeClient::InvokeEndpoint(const InvokeEndpoin {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeEndpointOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -220,7 +222,7 @@ InvokeEndpointOutcome SageMakerRuntimeClient::InvokeEndpoint(const InvokeEndpoin return result.IsSuccess() ? InvokeEndpointOutcome(result.GetResultWithOwnership()) : InvokeEndpointOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -262,7 +264,8 @@ InvokeEndpointWithResponseStreamOutcome SageMakerRuntimeClient::InvokeEndpointWi {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeEndpointWithResponseStreamOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -290,7 +293,7 @@ InvokeEndpointWithResponseStreamOutcome SageMakerRuntimeClient::InvokeEndpointWi return result.IsSuccess() ? InvokeEndpointWithResponseStreamOutcome(result.GetResultWithOwnership()) : InvokeEndpointWithResponseStreamOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient.cpp index 1092521bd1db..f755dbe2165f 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient.cpp @@ -255,7 +255,8 @@ SageMakerClient::InvokeOperationOutcome SageMakerClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -267,7 +268,7 @@ SageMakerClient::InvokeOperationOutcome SageMakerClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-sagemakerjobruntime/source/SagemakerJobRuntimeClient.cpp b/generated/src/aws-cpp-sdk-sagemakerjobruntime/source/SagemakerJobRuntimeClient.cpp index 9890114ea63d..5fef33902382 100644 --- a/generated/src/aws-cpp-sdk-sagemakerjobruntime/source/SagemakerJobRuntimeClient.cpp +++ b/generated/src/aws-cpp-sdk-sagemakerjobruntime/source/SagemakerJobRuntimeClient.cpp @@ -169,7 +169,8 @@ SagemakerJobRuntimeClient::InvokeOperationOutcome SagemakerJobRuntimeClient::Inv {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -183,7 +184,7 @@ SagemakerJobRuntimeClient::InvokeOperationOutcome SagemakerJobRuntimeClient::Inv 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}}); } @@ -226,7 +227,8 @@ SampleOutcome SagemakerJobRuntimeClient::Sample(const SampleRequest& request) co {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> SampleOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -239,7 +241,7 @@ SampleOutcome SagemakerJobRuntimeClient::Sample(const SampleRequest& request) co auto result = MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST); return result.IsSuccess() ? SampleOutcome(result.GetResultWithOwnership()) : SampleOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -266,7 +268,8 @@ SampleWithResponseStreamOutcome SagemakerJobRuntimeClient::SampleWithResponseStr {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> SampleWithResponseStreamOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -280,7 +283,7 @@ SampleWithResponseStreamOutcome SagemakerJobRuntimeClient::SampleWithResponseStr return result.IsSuccess() ? SampleWithResponseStreamOutcome(result.GetResultWithOwnership()) : SampleWithResponseStreamOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-savingsplans/source/SavingsPlansClient.cpp b/generated/src/aws-cpp-sdk-savingsplans/source/SavingsPlansClient.cpp index 9ac56fd33422..ba20bdc5b18b 100644 --- a/generated/src/aws-cpp-sdk-savingsplans/source/SavingsPlansClient.cpp +++ b/generated/src/aws-cpp-sdk-savingsplans/source/SavingsPlansClient.cpp @@ -167,7 +167,8 @@ SavingsPlansClient::InvokeOperationOutcome SavingsPlansClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -181,7 +182,7 @@ SavingsPlansClient::InvokeOperationOutcome SavingsPlansClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-scheduler/source/SchedulerClient.cpp b/generated/src/aws-cpp-sdk-scheduler/source/SchedulerClient.cpp index 14c237620e9b..1e0116b556ed 100644 --- a/generated/src/aws-cpp-sdk-scheduler/source/SchedulerClient.cpp +++ b/generated/src/aws-cpp-sdk-scheduler/source/SchedulerClient.cpp @@ -168,7 +168,8 @@ SchedulerClient::InvokeOperationOutcome SchedulerClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -182,7 +183,7 @@ SchedulerClient::InvokeOperationOutcome SchedulerClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-schemas/source/SchemasClient.cpp b/generated/src/aws-cpp-sdk-schemas/source/SchemasClient.cpp index 731456fe0ffb..b75deafb4153 100644 --- a/generated/src/aws-cpp-sdk-schemas/source/SchemasClient.cpp +++ b/generated/src/aws-cpp-sdk-schemas/source/SchemasClient.cpp @@ -187,7 +187,8 @@ SchemasClient::InvokeOperationOutcome SchemasClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -201,7 +202,7 @@ SchemasClient::InvokeOperationOutcome SchemasClient::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}}); } @@ -508,7 +509,8 @@ GetCodeBindingSourceOutcome SchemasClient::GetCodeBindingSource(const GetCodeBin {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetCodeBindingSourceOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -528,7 +530,7 @@ GetCodeBindingSourceOutcome SchemasClient::GetCodeBindingSource(const GetCodeBin return result.IsSuccess() ? GetCodeBindingSourceOutcome(result.GetResultWithOwnership()) : GetCodeBindingSourceOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-sdb/source/SimpleDBClient.cpp b/generated/src/aws-cpp-sdk-sdb/source/SimpleDBClient.cpp index 1b7987b0847d..af524d79f24c 100644 --- a/generated/src/aws-cpp-sdk-sdb/source/SimpleDBClient.cpp +++ b/generated/src/aws-cpp-sdk-sdb/source/SimpleDBClient.cpp @@ -186,7 +186,8 @@ SimpleDBClient::InvokeOperationOutcome SimpleDBClient::InvokeServiceOperation(co {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -198,7 +199,7 @@ SimpleDBClient::InvokeOperationOutcome SimpleDBClient::InvokeServiceOperation(co 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}}); } BatchDeleteAttributesOutcome SimpleDBClient::BatchDeleteAttributes(const BatchDeleteAttributesRequest& request) const { diff --git a/generated/src/aws-cpp-sdk-secretsmanager/source/SecretsManagerClient.cpp b/generated/src/aws-cpp-sdk-secretsmanager/source/SecretsManagerClient.cpp index ddba013a6cec..903611c7f08a 100644 --- a/generated/src/aws-cpp-sdk-secretsmanager/source/SecretsManagerClient.cpp +++ b/generated/src/aws-cpp-sdk-secretsmanager/source/SecretsManagerClient.cpp @@ -179,7 +179,8 @@ SecretsManagerClient::InvokeOperationOutcome SecretsManagerClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -191,7 +192,7 @@ SecretsManagerClient::InvokeOperationOutcome SecretsManagerClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-security-ir/source/SecurityIRClient.cpp b/generated/src/aws-cpp-sdk-security-ir/source/SecurityIRClient.cpp index 2006d3cdaa69..bc596043861a 100644 --- a/generated/src/aws-cpp-sdk-security-ir/source/SecurityIRClient.cpp +++ b/generated/src/aws-cpp-sdk-security-ir/source/SecurityIRClient.cpp @@ -181,7 +181,8 @@ SecurityIRClient::InvokeOperationOutcome SecurityIRClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -195,7 +196,7 @@ SecurityIRClient::InvokeOperationOutcome SecurityIRClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-securityagent/source/SecurityAgentClient.cpp b/generated/src/aws-cpp-sdk-securityagent/source/SecurityAgentClient.cpp index bf05e5463667..26177443f782 100644 --- a/generated/src/aws-cpp-sdk-securityagent/source/SecurityAgentClient.cpp +++ b/generated/src/aws-cpp-sdk-securityagent/source/SecurityAgentClient.cpp @@ -251,7 +251,8 @@ SecurityAgentClient::InvokeOperationOutcome SecurityAgentClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -265,7 +266,7 @@ SecurityAgentClient::InvokeOperationOutcome SecurityAgentClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-securityhub/source/SecurityHubClient.cpp b/generated/src/aws-cpp-sdk-securityhub/source/SecurityHubClient.cpp index 49aa8d7b8d38..23901771143d 100644 --- a/generated/src/aws-cpp-sdk-securityhub/source/SecurityHubClient.cpp +++ b/generated/src/aws-cpp-sdk-securityhub/source/SecurityHubClient.cpp @@ -276,7 +276,8 @@ SecurityHubClient::InvokeOperationOutcome SecurityHubClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -290,7 +291,7 @@ SecurityHubClient::InvokeOperationOutcome SecurityHubClient::InvokeServiceOperat 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}}); } diff --git a/generated/src/aws-cpp-sdk-securitylake/source/SecurityLakeClient.cpp b/generated/src/aws-cpp-sdk-securitylake/source/SecurityLakeClient.cpp index e7d0b15613c3..28ae3a3734a7 100644 --- a/generated/src/aws-cpp-sdk-securitylake/source/SecurityLakeClient.cpp +++ b/generated/src/aws-cpp-sdk-securitylake/source/SecurityLakeClient.cpp @@ -188,7 +188,8 @@ SecurityLakeClient::InvokeOperationOutcome SecurityLakeClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -202,7 +203,7 @@ SecurityLakeClient::InvokeOperationOutcome SecurityLakeClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-serverlessrepo/source/ServerlessApplicationRepositoryClient.cpp b/generated/src/aws-cpp-sdk-serverlessrepo/source/ServerlessApplicationRepositoryClient.cpp index 005c4c49bdeb..bb76006f2ffd 100644 --- a/generated/src/aws-cpp-sdk-serverlessrepo/source/ServerlessApplicationRepositoryClient.cpp +++ b/generated/src/aws-cpp-sdk-serverlessrepo/source/ServerlessApplicationRepositoryClient.cpp @@ -180,7 +180,8 @@ ServerlessApplicationRepositoryClient::InvokeOperationOutcome ServerlessApplicat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -194,7 +195,7 @@ ServerlessApplicationRepositoryClient::InvokeOperationOutcome ServerlessApplicat 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}}); } diff --git a/generated/src/aws-cpp-sdk-service-quotas/source/ServiceQuotasClient.cpp b/generated/src/aws-cpp-sdk-service-quotas/source/ServiceQuotasClient.cpp index 1a14865ba172..bbe4583cca94 100644 --- a/generated/src/aws-cpp-sdk-service-quotas/source/ServiceQuotasClient.cpp +++ b/generated/src/aws-cpp-sdk-service-quotas/source/ServiceQuotasClient.cpp @@ -182,7 +182,8 @@ ServiceQuotasClient::InvokeOperationOutcome ServiceQuotasClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -194,7 +195,7 @@ ServiceQuotasClient::InvokeOperationOutcome ServiceQuotasClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-servicecatalog-appregistry/source/AppRegistryClient.cpp b/generated/src/aws-cpp-sdk-servicecatalog-appregistry/source/AppRegistryClient.cpp index 8a215e994e94..31db8f01381e 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog-appregistry/source/AppRegistryClient.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog-appregistry/source/AppRegistryClient.cpp @@ -180,7 +180,8 @@ AppRegistryClient::InvokeOperationOutcome AppRegistryClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -194,7 +195,7 @@ AppRegistryClient::InvokeOperationOutcome AppRegistryClient::InvokeServiceOperat 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}}); } diff --git a/generated/src/aws-cpp-sdk-servicecatalog/source/ServiceCatalogClient.cpp b/generated/src/aws-cpp-sdk-servicecatalog/source/ServiceCatalogClient.cpp index 265b70f3f241..e23262bddf60 100644 --- a/generated/src/aws-cpp-sdk-servicecatalog/source/ServiceCatalogClient.cpp +++ b/generated/src/aws-cpp-sdk-servicecatalog/source/ServiceCatalogClient.cpp @@ -246,7 +246,8 @@ ServiceCatalogClient::InvokeOperationOutcome ServiceCatalogClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -258,7 +259,7 @@ ServiceCatalogClient::InvokeOperationOutcome ServiceCatalogClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-servicediscovery/source/ServiceDiscoveryClient.cpp b/generated/src/aws-cpp-sdk-servicediscovery/source/ServiceDiscoveryClient.cpp index 3ebe96596881..7924fb9ad317 100644 --- a/generated/src/aws-cpp-sdk-servicediscovery/source/ServiceDiscoveryClient.cpp +++ b/generated/src/aws-cpp-sdk-servicediscovery/source/ServiceDiscoveryClient.cpp @@ -190,7 +190,8 @@ ServiceDiscoveryClient::InvokeOperationOutcome ServiceDiscoveryClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -202,7 +203,7 @@ ServiceDiscoveryClient::InvokeOperationOutcome ServiceDiscoveryClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-sesv2/source/SESV2Client.cpp b/generated/src/aws-cpp-sdk-sesv2/source/SESV2Client.cpp index 00d8607f5468..c15d071b24f6 100644 --- a/generated/src/aws-cpp-sdk-sesv2/source/SESV2Client.cpp +++ b/generated/src/aws-cpp-sdk-sesv2/source/SESV2Client.cpp @@ -276,7 +276,8 @@ SESV2Client::InvokeOperationOutcome SESV2Client::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -290,7 +291,7 @@ SESV2Client::InvokeOperationOutcome SESV2Client::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}}); } diff --git a/generated/src/aws-cpp-sdk-shield/source/ShieldClient.cpp b/generated/src/aws-cpp-sdk-shield/source/ShieldClient.cpp index ad167b8a0cb4..f3c15d73b0cf 100644 --- a/generated/src/aws-cpp-sdk-shield/source/ShieldClient.cpp +++ b/generated/src/aws-cpp-sdk-shield/source/ShieldClient.cpp @@ -190,7 +190,8 @@ ShieldClient::InvokeOperationOutcome ShieldClient::InvokeServiceOperation(const {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -202,7 +203,7 @@ ShieldClient::InvokeOperationOutcome ShieldClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-signer-data/source/SignerDataClient.cpp b/generated/src/aws-cpp-sdk-signer-data/source/SignerDataClient.cpp index c369084adf85..5a348ee3452d 100644 --- a/generated/src/aws-cpp-sdk-signer-data/source/SignerDataClient.cpp +++ b/generated/src/aws-cpp-sdk-signer-data/source/SignerDataClient.cpp @@ -157,7 +157,8 @@ SignerDataClient::InvokeOperationOutcome SignerDataClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -171,7 +172,7 @@ SignerDataClient::InvokeOperationOutcome SignerDataClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-signer/source/SignerClient.cpp b/generated/src/aws-cpp-sdk-signer/source/SignerClient.cpp index e953a075fc12..f36d73f87b07 100644 --- a/generated/src/aws-cpp-sdk-signer/source/SignerClient.cpp +++ b/generated/src/aws-cpp-sdk-signer/source/SignerClient.cpp @@ -175,7 +175,8 @@ SignerClient::InvokeOperationOutcome SignerClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -189,7 +190,7 @@ SignerClient::InvokeOperationOutcome SignerClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-signin/source/SigninClient.cpp b/generated/src/aws-cpp-sdk-signin/source/SigninClient.cpp index 36a127db2489..3f93dfdca31c 100644 --- a/generated/src/aws-cpp-sdk-signin/source/SigninClient.cpp +++ b/generated/src/aws-cpp-sdk-signin/source/SigninClient.cpp @@ -167,7 +167,8 @@ SigninClient::InvokeOperationOutcome SigninClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -181,7 +182,7 @@ SigninClient::InvokeOperationOutcome SigninClient::InvokeServiceOperation( return InvokeOperationOutcome{MakeRequest(request, endpointResolutionOutcome.GetResult(), httpMethod, signerName)}; }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}}); } diff --git a/generated/src/aws-cpp-sdk-simpledbv2/source/SimpleDBv2Client.cpp b/generated/src/aws-cpp-sdk-simpledbv2/source/SimpleDBv2Client.cpp index 33211e7b2088..cd83a05fe5b7 100644 --- a/generated/src/aws-cpp-sdk-simpledbv2/source/SimpleDBv2Client.cpp +++ b/generated/src/aws-cpp-sdk-simpledbv2/source/SimpleDBv2Client.cpp @@ -159,7 +159,8 @@ SimpleDBv2Client::InvokeOperationOutcome SimpleDBv2Client::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -173,7 +174,7 @@ SimpleDBv2Client::InvokeOperationOutcome SimpleDBv2Client::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-sms-voice/source/PinpointSMSVoiceClient.cpp b/generated/src/aws-cpp-sdk-sms-voice/source/PinpointSMSVoiceClient.cpp index cef44f8c8c2d..9c07010c94e5 100644 --- a/generated/src/aws-cpp-sdk-sms-voice/source/PinpointSMSVoiceClient.cpp +++ b/generated/src/aws-cpp-sdk-sms-voice/source/PinpointSMSVoiceClient.cpp @@ -169,7 +169,8 @@ PinpointSMSVoiceClient::InvokeOperationOutcome PinpointSMSVoiceClient::InvokeSer {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -183,7 +184,7 @@ PinpointSMSVoiceClient::InvokeOperationOutcome PinpointSMSVoiceClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-snow-device-management/source/SnowDeviceManagementClient.cpp b/generated/src/aws-cpp-sdk-snow-device-management/source/SnowDeviceManagementClient.cpp index f57b518e286f..26cd47c523f2 100644 --- a/generated/src/aws-cpp-sdk-snow-device-management/source/SnowDeviceManagementClient.cpp +++ b/generated/src/aws-cpp-sdk-snow-device-management/source/SnowDeviceManagementClient.cpp @@ -178,7 +178,8 @@ SnowDeviceManagementClient::InvokeOperationOutcome SnowDeviceManagementClient::I {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -192,7 +193,7 @@ SnowDeviceManagementClient::InvokeOperationOutcome SnowDeviceManagementClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-snowball/source/SnowballClient.cpp b/generated/src/aws-cpp-sdk-snowball/source/SnowballClient.cpp index 6ee43a9e25a2..792ef14dad93 100644 --- a/generated/src/aws-cpp-sdk-snowball/source/SnowballClient.cpp +++ b/generated/src/aws-cpp-sdk-snowball/source/SnowballClient.cpp @@ -182,7 +182,8 @@ SnowballClient::InvokeOperationOutcome SnowballClient::InvokeServiceOperation(co {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -197,7 +198,7 @@ SnowballClient::InvokeOperationOutcome SnowballClient::InvokeServiceOperation(co 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}}); } diff --git a/generated/src/aws-cpp-sdk-sns/source/SNSClient.cpp b/generated/src/aws-cpp-sdk-sns/source/SNSClient.cpp index a50cdd6fc1b8..124ed944866e 100644 --- a/generated/src/aws-cpp-sdk-sns/source/SNSClient.cpp +++ b/generated/src/aws-cpp-sdk-sns/source/SNSClient.cpp @@ -215,7 +215,8 @@ SNSClient::InvokeOperationOutcome SNSClient::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -227,7 +228,7 @@ SNSClient::InvokeOperationOutcome SNSClient::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}}); } AddPermissionOutcome SNSClient::AddPermission(const AddPermissionRequest& request) const { diff --git a/generated/src/aws-cpp-sdk-socialmessaging/source/SocialMessagingClient.cpp b/generated/src/aws-cpp-sdk-socialmessaging/source/SocialMessagingClient.cpp index 488b45ccd125..ba3b0bdf6722 100644 --- a/generated/src/aws-cpp-sdk-socialmessaging/source/SocialMessagingClient.cpp +++ b/generated/src/aws-cpp-sdk-socialmessaging/source/SocialMessagingClient.cpp @@ -198,7 +198,8 @@ SocialMessagingClient::InvokeOperationOutcome SocialMessagingClient::InvokeServi {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -212,7 +213,7 @@ SocialMessagingClient::InvokeOperationOutcome SocialMessagingClient::InvokeServi 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}}); } diff --git a/generated/src/aws-cpp-sdk-sqs/source/SQSClient.cpp b/generated/src/aws-cpp-sdk-sqs/source/SQSClient.cpp index 45173e7d1a2c..7f623cfbb67b 100644 --- a/generated/src/aws-cpp-sdk-sqs/source/SQSClient.cpp +++ b/generated/src/aws-cpp-sdk-sqs/source/SQSClient.cpp @@ -176,7 +176,8 @@ SQSClient::InvokeOperationOutcome SQSClient::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -188,7 +189,7 @@ SQSClient::InvokeOperationOutcome SQSClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-ssm-contacts/source/SSMContactsClient.cpp b/generated/src/aws-cpp-sdk-ssm-contacts/source/SSMContactsClient.cpp index 0e9918d28042..7c3816c4c901 100644 --- a/generated/src/aws-cpp-sdk-ssm-contacts/source/SSMContactsClient.cpp +++ b/generated/src/aws-cpp-sdk-ssm-contacts/source/SSMContactsClient.cpp @@ -194,7 +194,8 @@ SSMContactsClient::InvokeOperationOutcome SSMContactsClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -206,7 +207,7 @@ SSMContactsClient::InvokeOperationOutcome SSMContactsClient::InvokeServiceOperat 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}}); } diff --git a/generated/src/aws-cpp-sdk-ssm-guiconnect/source/SSMGuiConnectClient.cpp b/generated/src/aws-cpp-sdk-ssm-guiconnect/source/SSMGuiConnectClient.cpp index 0dc0b099c265..f736eea1b28f 100644 --- a/generated/src/aws-cpp-sdk-ssm-guiconnect/source/SSMGuiConnectClient.cpp +++ b/generated/src/aws-cpp-sdk-ssm-guiconnect/source/SSMGuiConnectClient.cpp @@ -160,7 +160,8 @@ SSMGuiConnectClient::InvokeOperationOutcome SSMGuiConnectClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -174,7 +175,7 @@ SSMGuiConnectClient::InvokeOperationOutcome SSMGuiConnectClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-ssm-incidents/source/SSMIncidentsClient.cpp b/generated/src/aws-cpp-sdk-ssm-incidents/source/SSMIncidentsClient.cpp index f395947a1b5a..117b7e7776e1 100644 --- a/generated/src/aws-cpp-sdk-ssm-incidents/source/SSMIncidentsClient.cpp +++ b/generated/src/aws-cpp-sdk-ssm-incidents/source/SSMIncidentsClient.cpp @@ -188,7 +188,8 @@ SSMIncidentsClient::InvokeOperationOutcome SSMIncidentsClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -202,7 +203,7 @@ SSMIncidentsClient::InvokeOperationOutcome SSMIncidentsClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-ssm-quicksetup/source/SSMQuickSetupClient.cpp b/generated/src/aws-cpp-sdk-ssm-quicksetup/source/SSMQuickSetupClient.cpp index e7dae1e058cd..8e368ad38ce5 100644 --- a/generated/src/aws-cpp-sdk-ssm-quicksetup/source/SSMQuickSetupClient.cpp +++ b/generated/src/aws-cpp-sdk-ssm-quicksetup/source/SSMQuickSetupClient.cpp @@ -171,7 +171,8 @@ SSMQuickSetupClient::InvokeOperationOutcome SSMQuickSetupClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -185,7 +186,7 @@ SSMQuickSetupClient::InvokeOperationOutcome SSMQuickSetupClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-ssm-sap/source/SsmSapClient.cpp b/generated/src/aws-cpp-sdk-ssm-sap/source/SsmSapClient.cpp index f6209aaa3d34..4ba9d7b871ca 100644 --- a/generated/src/aws-cpp-sdk-ssm-sap/source/SsmSapClient.cpp +++ b/generated/src/aws-cpp-sdk-ssm-sap/source/SsmSapClient.cpp @@ -183,7 +183,8 @@ SsmSapClient::InvokeOperationOutcome SsmSapClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -197,7 +198,7 @@ SsmSapClient::InvokeOperationOutcome SsmSapClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-ssm/source/SSMClient.cpp b/generated/src/aws-cpp-sdk-ssm/source/SSMClient.cpp index 245e13613bfd..8a014b5ec0c3 100644 --- a/generated/src/aws-cpp-sdk-ssm/source/SSMClient.cpp +++ b/generated/src/aws-cpp-sdk-ssm/source/SSMClient.cpp @@ -305,7 +305,8 @@ SSMClient::InvokeOperationOutcome SSMClient::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -317,7 +318,7 @@ SSMClient::InvokeOperationOutcome SSMClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-sso-admin/source/SSOAdminClient.cpp b/generated/src/aws-cpp-sdk-sso-admin/source/SSOAdminClient.cpp index fb26c610e6d9..527f5fcc9971 100644 --- a/generated/src/aws-cpp-sdk-sso-admin/source/SSOAdminClient.cpp +++ b/generated/src/aws-cpp-sdk-sso-admin/source/SSOAdminClient.cpp @@ -234,7 +234,8 @@ SSOAdminClient::InvokeOperationOutcome SSOAdminClient::InvokeServiceOperation(co {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -246,7 +247,7 @@ SSOAdminClient::InvokeOperationOutcome SSOAdminClient::InvokeServiceOperation(co 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}}); } diff --git a/generated/src/aws-cpp-sdk-sso-oidc/source/SSOOIDCClient.cpp b/generated/src/aws-cpp-sdk-sso-oidc/source/SSOOIDCClient.cpp index 033704a1623a..df43178da155 100644 --- a/generated/src/aws-cpp-sdk-sso-oidc/source/SSOOIDCClient.cpp +++ b/generated/src/aws-cpp-sdk-sso-oidc/source/SSOOIDCClient.cpp @@ -160,7 +160,8 @@ SSOOIDCClient::InvokeOperationOutcome SSOOIDCClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -174,7 +175,7 @@ SSOOIDCClient::InvokeOperationOutcome SSOOIDCClient::InvokeServiceOperation( return InvokeOperationOutcome{MakeRequest(request, endpointResolutionOutcome.GetResult(), httpMethod, signerName)}; }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}}); } diff --git a/generated/src/aws-cpp-sdk-sso/source/SSOClient.cpp b/generated/src/aws-cpp-sdk-sso/source/SSOClient.cpp index 02b5a3366f3b..88b1c5f30a2e 100644 --- a/generated/src/aws-cpp-sdk-sso/source/SSOClient.cpp +++ b/generated/src/aws-cpp-sdk-sso/source/SSOClient.cpp @@ -158,7 +158,8 @@ SSOClient::InvokeOperationOutcome SSOClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -172,7 +173,7 @@ SSOClient::InvokeOperationOutcome SSOClient::InvokeServiceOperation( return InvokeOperationOutcome{MakeRequest(request, endpointResolutionOutcome.GetResult(), httpMethod, signerName)}; }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}}); } diff --git a/generated/src/aws-cpp-sdk-states/source/SFNClient.cpp b/generated/src/aws-cpp-sdk-states/source/SFNClient.cpp index f58b0b06d6f3..cc8091a2dcb0 100644 --- a/generated/src/aws-cpp-sdk-states/source/SFNClient.cpp +++ b/generated/src/aws-cpp-sdk-states/source/SFNClient.cpp @@ -190,7 +190,8 @@ SFNClient::InvokeOperationOutcome SFNClient::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -202,7 +203,7 @@ SFNClient::InvokeOperationOutcome SFNClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-storagegateway/source/StorageGatewayClient.cpp b/generated/src/aws-cpp-sdk-storagegateway/source/StorageGatewayClient.cpp index 5bd18056b37f..0266f0d2e58b 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/source/StorageGatewayClient.cpp +++ b/generated/src/aws-cpp-sdk-storagegateway/source/StorageGatewayClient.cpp @@ -252,7 +252,8 @@ StorageGatewayClient::InvokeOperationOutcome StorageGatewayClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -264,7 +265,7 @@ StorageGatewayClient::InvokeOperationOutcome StorageGatewayClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-sts/source/STSClient.cpp b/generated/src/aws-cpp-sdk-sts/source/STSClient.cpp index 14f19c76f39e..f5a4aaa5affc 100644 --- a/generated/src/aws-cpp-sdk-sts/source/STSClient.cpp +++ b/generated/src/aws-cpp-sdk-sts/source/STSClient.cpp @@ -214,7 +214,8 @@ STSClient::InvokeOperationOutcome STSClient::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto result = MakeRequestDeserialize(&request, operationName, httpMethod, @@ -222,7 +223,7 @@ STSClient::InvokeOperationOutcome STSClient::InvokeServiceOperation(const Amazon return result.IsSuccess() ? InvokeOperationOutcome(result.GetResultWithOwnership()) : InvokeOperationOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}}); } AssumeRoleOutcome STSClient::AssumeRole(const AssumeRoleRequest& request) const { diff --git a/generated/src/aws-cpp-sdk-supplychain/source/SupplyChainClient.cpp b/generated/src/aws-cpp-sdk-supplychain/source/SupplyChainClient.cpp index a36f3040d49a..ea46dab6d848 100644 --- a/generated/src/aws-cpp-sdk-supplychain/source/SupplyChainClient.cpp +++ b/generated/src/aws-cpp-sdk-supplychain/source/SupplyChainClient.cpp @@ -186,7 +186,8 @@ SupplyChainClient::InvokeOperationOutcome SupplyChainClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -200,7 +201,7 @@ SupplyChainClient::InvokeOperationOutcome SupplyChainClient::InvokeServiceOperat 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}}); } diff --git a/generated/src/aws-cpp-sdk-support-app/source/SupportAppClient.cpp b/generated/src/aws-cpp-sdk-support-app/source/SupportAppClient.cpp index 9fb9400ecdc0..b3ac4f4828fb 100644 --- a/generated/src/aws-cpp-sdk-support-app/source/SupportAppClient.cpp +++ b/generated/src/aws-cpp-sdk-support-app/source/SupportAppClient.cpp @@ -166,7 +166,8 @@ SupportAppClient::InvokeOperationOutcome SupportAppClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -180,7 +181,7 @@ SupportAppClient::InvokeOperationOutcome SupportAppClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-support/source/SupportClient.cpp b/generated/src/aws-cpp-sdk-support/source/SupportClient.cpp index 468215cf123a..b29aa6cf32af 100644 --- a/generated/src/aws-cpp-sdk-support/source/SupportClient.cpp +++ b/generated/src/aws-cpp-sdk-support/source/SupportClient.cpp @@ -175,7 +175,8 @@ SupportClient::InvokeOperationOutcome SupportClient::InvokeServiceOperation(cons {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -187,7 +188,7 @@ SupportClient::InvokeOperationOutcome SupportClient::InvokeServiceOperation(cons 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}}); } diff --git a/generated/src/aws-cpp-sdk-supportauthz/source/SupportAuthZClient.cpp b/generated/src/aws-cpp-sdk-supportauthz/source/SupportAuthZClient.cpp index a28a0822ed90..9ede088fc58f 100644 --- a/generated/src/aws-cpp-sdk-supportauthz/source/SupportAuthZClient.cpp +++ b/generated/src/aws-cpp-sdk-supportauthz/source/SupportAuthZClient.cpp @@ -168,7 +168,8 @@ SupportAuthZClient::InvokeOperationOutcome SupportAuthZClient::InvokeServiceOper {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -182,7 +183,7 @@ SupportAuthZClient::InvokeOperationOutcome SupportAuthZClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-sustainability/source/SustainabilityClient.cpp b/generated/src/aws-cpp-sdk-sustainability/source/SustainabilityClient.cpp index 7329be260185..47798234982d 100644 --- a/generated/src/aws-cpp-sdk-sustainability/source/SustainabilityClient.cpp +++ b/generated/src/aws-cpp-sdk-sustainability/source/SustainabilityClient.cpp @@ -165,7 +165,8 @@ SustainabilityClient::InvokeOperationOutcome SustainabilityClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -179,7 +180,7 @@ SustainabilityClient::InvokeOperationOutcome SustainabilityClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-swf/source/SWFClient.cpp b/generated/src/aws-cpp-sdk-swf/source/SWFClient.cpp index abac746a030e..d27b7a06660f 100644 --- a/generated/src/aws-cpp-sdk-swf/source/SWFClient.cpp +++ b/generated/src/aws-cpp-sdk-swf/source/SWFClient.cpp @@ -192,7 +192,8 @@ SWFClient::InvokeOperationOutcome SWFClient::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -204,7 +205,7 @@ SWFClient::InvokeOperationOutcome SWFClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-synthetics/source/SyntheticsClient.cpp b/generated/src/aws-cpp-sdk-synthetics/source/SyntheticsClient.cpp index b0586a1cd857..9974b52de433 100644 --- a/generated/src/aws-cpp-sdk-synthetics/source/SyntheticsClient.cpp +++ b/generated/src/aws-cpp-sdk-synthetics/source/SyntheticsClient.cpp @@ -178,7 +178,8 @@ SyntheticsClient::InvokeOperationOutcome SyntheticsClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -192,7 +193,7 @@ SyntheticsClient::InvokeOperationOutcome SyntheticsClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-taxsettings/source/TaxSettingsClient.cpp b/generated/src/aws-cpp-sdk-taxsettings/source/TaxSettingsClient.cpp index 93e363240322..b774fee028ec 100644 --- a/generated/src/aws-cpp-sdk-taxsettings/source/TaxSettingsClient.cpp +++ b/generated/src/aws-cpp-sdk-taxsettings/source/TaxSettingsClient.cpp @@ -172,7 +172,8 @@ TaxSettingsClient::InvokeOperationOutcome TaxSettingsClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -186,7 +187,7 @@ TaxSettingsClient::InvokeOperationOutcome TaxSettingsClient::InvokeServiceOperat 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}}); } diff --git a/generated/src/aws-cpp-sdk-textract/source/TextractClient.cpp b/generated/src/aws-cpp-sdk-textract/source/TextractClient.cpp index 84bc07956fdf..389d1e62b81c 100644 --- a/generated/src/aws-cpp-sdk-textract/source/TextractClient.cpp +++ b/generated/src/aws-cpp-sdk-textract/source/TextractClient.cpp @@ -180,7 +180,8 @@ TextractClient::InvokeOperationOutcome TextractClient::InvokeServiceOperation(co {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -192,7 +193,7 @@ TextractClient::InvokeOperationOutcome TextractClient::InvokeServiceOperation(co 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}}); } diff --git a/generated/src/aws-cpp-sdk-timestream-influxdb/source/TimestreamInfluxDBClient.cpp b/generated/src/aws-cpp-sdk-timestream-influxdb/source/TimestreamInfluxDBClient.cpp index ca85f89f6692..ac138d6d1e1f 100644 --- a/generated/src/aws-cpp-sdk-timestream-influxdb/source/TimestreamInfluxDBClient.cpp +++ b/generated/src/aws-cpp-sdk-timestream-influxdb/source/TimestreamInfluxDBClient.cpp @@ -184,7 +184,8 @@ TimestreamInfluxDBClient::InvokeOperationOutcome TimestreamInfluxDBClient::Invok {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -196,7 +197,7 @@ TimestreamInfluxDBClient::InvokeOperationOutcome TimestreamInfluxDBClient::Invok 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}}); } diff --git a/generated/src/aws-cpp-sdk-timestream-query/source/TimestreamQueryClient.cpp b/generated/src/aws-cpp-sdk-timestream-query/source/TimestreamQueryClient.cpp index db6ca402a94c..01db55773544 100644 --- a/generated/src/aws-cpp-sdk-timestream-query/source/TimestreamQueryClient.cpp +++ b/generated/src/aws-cpp-sdk-timestream-query/source/TimestreamQueryClient.cpp @@ -175,7 +175,8 @@ TimestreamQueryClient::InvokeOperationOutcome TimestreamQueryClient::InvokeServi {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -187,7 +188,7 @@ TimestreamQueryClient::InvokeOperationOutcome TimestreamQueryClient::InvokeServi 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}}); } diff --git a/generated/src/aws-cpp-sdk-timestream-write/source/TimestreamWriteClient.cpp b/generated/src/aws-cpp-sdk-timestream-write/source/TimestreamWriteClient.cpp index e8e19346d16f..bb9d18c24b3d 100644 --- a/generated/src/aws-cpp-sdk-timestream-write/source/TimestreamWriteClient.cpp +++ b/generated/src/aws-cpp-sdk-timestream-write/source/TimestreamWriteClient.cpp @@ -179,7 +179,8 @@ TimestreamWriteClient::InvokeOperationOutcome TimestreamWriteClient::InvokeServi {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -191,7 +192,7 @@ TimestreamWriteClient::InvokeOperationOutcome TimestreamWriteClient::InvokeServi 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}}); } diff --git a/generated/src/aws-cpp-sdk-tnb/source/TnbClient.cpp b/generated/src/aws-cpp-sdk-tnb/source/TnbClient.cpp index c880fdba1c80..151cf8476e13 100644 --- a/generated/src/aws-cpp-sdk-tnb/source/TnbClient.cpp +++ b/generated/src/aws-cpp-sdk-tnb/source/TnbClient.cpp @@ -191,7 +191,8 @@ TnbClient::InvokeOperationOutcome TnbClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -205,7 +206,7 @@ TnbClient::InvokeOperationOutcome TnbClient::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}}); } @@ -373,7 +374,8 @@ GetSolFunctionPackageContentOutcome TnbClient::GetSolFunctionPackageContent(cons {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetSolFunctionPackageContentOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -389,7 +391,7 @@ GetSolFunctionPackageContentOutcome TnbClient::GetSolFunctionPackageContent(cons return result.IsSuccess() ? GetSolFunctionPackageContentOutcome(result.GetResultWithOwnership()) : GetSolFunctionPackageContentOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -417,7 +419,8 @@ GetSolFunctionPackageDescriptorOutcome TnbClient::GetSolFunctionPackageDescripto {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetSolFunctionPackageDescriptorOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -433,7 +436,7 @@ GetSolFunctionPackageDescriptorOutcome TnbClient::GetSolFunctionPackageDescripto return result.IsSuccess() ? GetSolFunctionPackageDescriptorOutcome(result.GetResultWithOwnership()) : GetSolFunctionPackageDescriptorOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -514,7 +517,8 @@ GetSolNetworkPackageContentOutcome TnbClient::GetSolNetworkPackageContent(const {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetSolNetworkPackageContentOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -530,7 +534,7 @@ GetSolNetworkPackageContentOutcome TnbClient::GetSolNetworkPackageContent(const return result.IsSuccess() ? GetSolNetworkPackageContentOutcome(result.GetResultWithOwnership()) : GetSolNetworkPackageContentOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } @@ -553,7 +557,8 @@ GetSolNetworkPackageDescriptorOutcome TnbClient::GetSolNetworkPackageDescriptor( {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetSolNetworkPackageDescriptorOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -569,7 +574,7 @@ GetSolNetworkPackageDescriptorOutcome TnbClient::GetSolNetworkPackageDescriptor( return result.IsSuccess() ? GetSolNetworkPackageDescriptorOutcome(result.GetResultWithOwnership()) : GetSolNetworkPackageDescriptorOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-transcribe/source/TranscribeServiceClient.cpp b/generated/src/aws-cpp-sdk-transcribe/source/TranscribeServiceClient.cpp index 417549fcbdc5..cf0ebb5b1e4c 100644 --- a/generated/src/aws-cpp-sdk-transcribe/source/TranscribeServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-transcribe/source/TranscribeServiceClient.cpp @@ -204,7 +204,8 @@ TranscribeServiceClient::InvokeOperationOutcome TranscribeServiceClient::InvokeS {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -216,7 +217,7 @@ TranscribeServiceClient::InvokeOperationOutcome TranscribeServiceClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-transcribestreaming/source/TranscribeStreamingServiceClient.cpp b/generated/src/aws-cpp-sdk-transcribestreaming/source/TranscribeStreamingServiceClient.cpp index 7ade3c14b225..abe06577e30a 100644 --- a/generated/src/aws-cpp-sdk-transcribestreaming/source/TranscribeStreamingServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-transcribestreaming/source/TranscribeStreamingServiceClient.cpp @@ -177,7 +177,8 @@ TranscribeStreamingServiceClient::InvokeOperationOutcome TranscribeStreamingServ {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -191,7 +192,7 @@ TranscribeStreamingServiceClient::InvokeOperationOutcome TranscribeStreamingServ 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}}); } diff --git a/generated/src/aws-cpp-sdk-translate/source/TranslateClient.cpp b/generated/src/aws-cpp-sdk-translate/source/TranslateClient.cpp index 30447e78c7fb..e69d998f2b81 100644 --- a/generated/src/aws-cpp-sdk-translate/source/TranslateClient.cpp +++ b/generated/src/aws-cpp-sdk-translate/source/TranslateClient.cpp @@ -174,7 +174,8 @@ TranslateClient::InvokeOperationOutcome TranslateClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -189,7 +190,7 @@ TranslateClient::InvokeOperationOutcome TranslateClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-trustedadvisor/source/TrustedAdvisorClient.cpp b/generated/src/aws-cpp-sdk-trustedadvisor/source/TrustedAdvisorClient.cpp index b628c7c9c499..0a2e2f0ad7df 100644 --- a/generated/src/aws-cpp-sdk-trustedadvisor/source/TrustedAdvisorClient.cpp +++ b/generated/src/aws-cpp-sdk-trustedadvisor/source/TrustedAdvisorClient.cpp @@ -169,7 +169,8 @@ TrustedAdvisorClient::InvokeOperationOutcome TrustedAdvisorClient::InvokeService {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -183,7 +184,7 @@ TrustedAdvisorClient::InvokeOperationOutcome TrustedAdvisorClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-uxc/source/UxcClient.cpp b/generated/src/aws-cpp-sdk-uxc/source/UxcClient.cpp index e8b91d6bb222..4d6a318bd802 100644 --- a/generated/src/aws-cpp-sdk-uxc/source/UxcClient.cpp +++ b/generated/src/aws-cpp-sdk-uxc/source/UxcClient.cpp @@ -157,7 +157,8 @@ UxcClient::InvokeOperationOutcome UxcClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -171,7 +172,7 @@ UxcClient::InvokeOperationOutcome UxcClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-verifiedpermissions/source/VerifiedPermissionsClient.cpp b/generated/src/aws-cpp-sdk-verifiedpermissions/source/VerifiedPermissionsClient.cpp index 6edc9b5f2183..9746a11a8995 100644 --- a/generated/src/aws-cpp-sdk-verifiedpermissions/source/VerifiedPermissionsClient.cpp +++ b/generated/src/aws-cpp-sdk-verifiedpermissions/source/VerifiedPermissionsClient.cpp @@ -194,7 +194,8 @@ VerifiedPermissionsClient::InvokeOperationOutcome VerifiedPermissionsClient::Inv {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -206,7 +207,7 @@ VerifiedPermissionsClient::InvokeOperationOutcome VerifiedPermissionsClient::Inv 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}}); } diff --git a/generated/src/aws-cpp-sdk-voice-id/source/VoiceIDClient.cpp b/generated/src/aws-cpp-sdk-voice-id/source/VoiceIDClient.cpp index 72f252f27ae0..1a6256408ad0 100644 --- a/generated/src/aws-cpp-sdk-voice-id/source/VoiceIDClient.cpp +++ b/generated/src/aws-cpp-sdk-voice-id/source/VoiceIDClient.cpp @@ -184,7 +184,8 @@ VoiceIDClient::InvokeOperationOutcome VoiceIDClient::InvokeServiceOperation(cons {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -196,7 +197,7 @@ VoiceIDClient::InvokeOperationOutcome VoiceIDClient::InvokeServiceOperation(cons 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}}); } diff --git a/generated/src/aws-cpp-sdk-vpc-lattice/source/VPCLatticeClient.cpp b/generated/src/aws-cpp-sdk-vpc-lattice/source/VPCLatticeClient.cpp index d25040fb29e2..6c4269c222b0 100644 --- a/generated/src/aws-cpp-sdk-vpc-lattice/source/VPCLatticeClient.cpp +++ b/generated/src/aws-cpp-sdk-vpc-lattice/source/VPCLatticeClient.cpp @@ -229,7 +229,8 @@ VPCLatticeClient::InvokeOperationOutcome VPCLatticeClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -243,7 +244,7 @@ VPCLatticeClient::InvokeOperationOutcome VPCLatticeClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-waf-regional/source/WAFRegionalClient.cpp b/generated/src/aws-cpp-sdk-waf-regional/source/WAFRegionalClient.cpp index 0d0b494cc31a..e1569e673ea9 100644 --- a/generated/src/aws-cpp-sdk-waf-regional/source/WAFRegionalClient.cpp +++ b/generated/src/aws-cpp-sdk-waf-regional/source/WAFRegionalClient.cpp @@ -236,7 +236,8 @@ WAFRegionalClient::InvokeOperationOutcome WAFRegionalClient::InvokeServiceOperat {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -248,7 +249,7 @@ WAFRegionalClient::InvokeOperationOutcome WAFRegionalClient::InvokeServiceOperat 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}}); } diff --git a/generated/src/aws-cpp-sdk-waf/source/WAFClient.cpp b/generated/src/aws-cpp-sdk-waf/source/WAFClient.cpp index 6f607b13cfcd..0758f3ce2497 100644 --- a/generated/src/aws-cpp-sdk-waf/source/WAFClient.cpp +++ b/generated/src/aws-cpp-sdk-waf/source/WAFClient.cpp @@ -230,7 +230,8 @@ WAFClient::InvokeOperationOutcome WAFClient::InvokeServiceOperation(const Amazon {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -242,7 +243,7 @@ WAFClient::InvokeOperationOutcome WAFClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-wafv2/source/WAFV2Client.cpp b/generated/src/aws-cpp-sdk-wafv2/source/WAFV2Client.cpp index 82289c0edbb1..ee35b330b20f 100644 --- a/generated/src/aws-cpp-sdk-wafv2/source/WAFV2Client.cpp +++ b/generated/src/aws-cpp-sdk-wafv2/source/WAFV2Client.cpp @@ -214,7 +214,8 @@ WAFV2Client::InvokeOperationOutcome WAFV2Client::InvokeServiceOperation(const Am {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -226,7 +227,7 @@ WAFV2Client::InvokeOperationOutcome WAFV2Client::InvokeServiceOperation(const Am 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}}); } diff --git a/generated/src/aws-cpp-sdk-wellarchitected/source/WellArchitectedClient.cpp b/generated/src/aws-cpp-sdk-wellarchitected/source/WellArchitectedClient.cpp index 2779b529ce1a..a51d9fc58bdb 100644 --- a/generated/src/aws-cpp-sdk-wellarchitected/source/WellArchitectedClient.cpp +++ b/generated/src/aws-cpp-sdk-wellarchitected/source/WellArchitectedClient.cpp @@ -255,7 +255,8 @@ WellArchitectedClient::InvokeOperationOutcome WellArchitectedClient::InvokeServi {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -269,7 +270,7 @@ WellArchitectedClient::InvokeOperationOutcome WellArchitectedClient::InvokeServi 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}}); } diff --git a/generated/src/aws-cpp-sdk-wickr/source/WickrClient.cpp b/generated/src/aws-cpp-sdk-wickr/source/WickrClient.cpp index 98848ae808c6..3cd603e1cfd5 100644 --- a/generated/src/aws-cpp-sdk-wickr/source/WickrClient.cpp +++ b/generated/src/aws-cpp-sdk-wickr/source/WickrClient.cpp @@ -200,7 +200,8 @@ WickrClient::InvokeOperationOutcome WickrClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -214,7 +215,7 @@ WickrClient::InvokeOperationOutcome WickrClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-wisdom/source/ConnectWisdomServiceClient.cpp b/generated/src/aws-cpp-sdk-wisdom/source/ConnectWisdomServiceClient.cpp index a2cd7dca5d9a..2f39485e38c0 100644 --- a/generated/src/aws-cpp-sdk-wisdom/source/ConnectWisdomServiceClient.cpp +++ b/generated/src/aws-cpp-sdk-wisdom/source/ConnectWisdomServiceClient.cpp @@ -204,7 +204,8 @@ ConnectWisdomServiceClient::InvokeOperationOutcome ConnectWisdomServiceClient::I {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -218,7 +219,7 @@ ConnectWisdomServiceClient::InvokeOperationOutcome ConnectWisdomServiceClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-workdocs/source/WorkDocsClient.cpp b/generated/src/aws-cpp-sdk-workdocs/source/WorkDocsClient.cpp index f2e260cdf87f..f38f1b631172 100644 --- a/generated/src/aws-cpp-sdk-workdocs/source/WorkDocsClient.cpp +++ b/generated/src/aws-cpp-sdk-workdocs/source/WorkDocsClient.cpp @@ -200,7 +200,8 @@ WorkDocsClient::InvokeOperationOutcome WorkDocsClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -214,7 +215,7 @@ WorkDocsClient::InvokeOperationOutcome WorkDocsClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-workmail/source/WorkMailClient.cpp b/generated/src/aws-cpp-sdk-workmail/source/WorkMailClient.cpp index 508d9fbc4fda..9343d281ab35 100644 --- a/generated/src/aws-cpp-sdk-workmail/source/WorkMailClient.cpp +++ b/generated/src/aws-cpp-sdk-workmail/source/WorkMailClient.cpp @@ -247,7 +247,8 @@ WorkMailClient::InvokeOperationOutcome WorkMailClient::InvokeServiceOperation(co {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -259,7 +260,7 @@ WorkMailClient::InvokeOperationOutcome WorkMailClient::InvokeServiceOperation(co 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}}); } diff --git a/generated/src/aws-cpp-sdk-workmailmessageflow/source/WorkMailMessageFlowClient.cpp b/generated/src/aws-cpp-sdk-workmailmessageflow/source/WorkMailMessageFlowClient.cpp index 2bfae95fc74c..4f5e7780e804 100644 --- a/generated/src/aws-cpp-sdk-workmailmessageflow/source/WorkMailMessageFlowClient.cpp +++ b/generated/src/aws-cpp-sdk-workmailmessageflow/source/WorkMailMessageFlowClient.cpp @@ -163,7 +163,8 @@ WorkMailMessageFlowClient::InvokeOperationOutcome WorkMailMessageFlowClient::Inv {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -177,7 +178,7 @@ WorkMailMessageFlowClient::InvokeOperationOutcome WorkMailMessageFlowClient::Inv 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}}); } @@ -198,7 +199,8 @@ GetRawMessageContentOutcome WorkMailMessageFlowClient::GetRawMessageContent(cons {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}, {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> GetRawMessageContentOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -213,7 +215,7 @@ GetRawMessageContentOutcome WorkMailMessageFlowClient::GetRawMessageContent(cons return result.IsSuccess() ? GetRawMessageContentOutcome(result.GetResultWithOwnership()) : GetRawMessageContentOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/generated/src/aws-cpp-sdk-workspaces-instances/source/WorkspacesInstancesClient.cpp b/generated/src/aws-cpp-sdk-workspaces-instances/source/WorkspacesInstancesClient.cpp index 095d26e256eb..dab00cb21744 100644 --- a/generated/src/aws-cpp-sdk-workspaces-instances/source/WorkspacesInstancesClient.cpp +++ b/generated/src/aws-cpp-sdk-workspaces-instances/source/WorkspacesInstancesClient.cpp @@ -173,7 +173,8 @@ WorkspacesInstancesClient::InvokeOperationOutcome WorkspacesInstancesClient::Inv {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -188,7 +189,7 @@ WorkspacesInstancesClient::InvokeOperationOutcome WorkspacesInstancesClient::Inv 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}}); } diff --git a/generated/src/aws-cpp-sdk-workspaces-thin-client/source/WorkSpacesThinClientClient.cpp b/generated/src/aws-cpp-sdk-workspaces-thin-client/source/WorkSpacesThinClientClient.cpp index 6766538439fa..de474a490ffc 100644 --- a/generated/src/aws-cpp-sdk-workspaces-thin-client/source/WorkSpacesThinClientClient.cpp +++ b/generated/src/aws-cpp-sdk-workspaces-thin-client/source/WorkSpacesThinClientClient.cpp @@ -181,7 +181,8 @@ WorkSpacesThinClientClient::InvokeOperationOutcome WorkSpacesThinClientClient::I {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -195,7 +196,7 @@ WorkSpacesThinClientClient::InvokeOperationOutcome WorkSpacesThinClientClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-workspaces-web/source/WorkSpacesWebClient.cpp b/generated/src/aws-cpp-sdk-workspaces-web/source/WorkSpacesWebClient.cpp index fc74adff11dd..df016e67303d 100644 --- a/generated/src/aws-cpp-sdk-workspaces-web/source/WorkSpacesWebClient.cpp +++ b/generated/src/aws-cpp-sdk-workspaces-web/source/WorkSpacesWebClient.cpp @@ -232,7 +232,8 @@ WorkSpacesWebClient::InvokeOperationOutcome WorkSpacesWebClient::InvokeServiceOp {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -246,7 +247,7 @@ WorkSpacesWebClient::InvokeOperationOutcome WorkSpacesWebClient::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}}); } diff --git a/generated/src/aws-cpp-sdk-workspaces/source/WorkSpacesClient.cpp b/generated/src/aws-cpp-sdk-workspaces/source/WorkSpacesClient.cpp index a89607b872fd..62cf7f6d3a79 100644 --- a/generated/src/aws-cpp-sdk-workspaces/source/WorkSpacesClient.cpp +++ b/generated/src/aws-cpp-sdk-workspaces/source/WorkSpacesClient.cpp @@ -246,7 +246,8 @@ WorkSpacesClient::InvokeOperationOutcome WorkSpacesClient::InvokeServiceOperatio {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -258,7 +259,7 @@ WorkSpacesClient::InvokeOperationOutcome WorkSpacesClient::InvokeServiceOperatio 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}}); } diff --git a/generated/src/aws-cpp-sdk-xray/source/XRayClient.cpp b/generated/src/aws-cpp-sdk-xray/source/XRayClient.cpp index 43a679146fc5..2746bd1c7421 100644 --- a/generated/src/aws-cpp-sdk-xray/source/XRayClient.cpp +++ b/generated/src/aws-cpp-sdk-xray/source/XRayClient.cpp @@ -192,7 +192,8 @@ XRayClient::InvokeOperationOutcome XRayClient::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming( + request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -206,7 +207,7 @@ XRayClient::InvokeOperationOutcome XRayClient::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}}); } diff --git a/src/aws-cpp-sdk-core/include/aws/core/AmazonWebServiceRequest.h b/src/aws-cpp-sdk-core/include/aws/core/AmazonWebServiceRequest.h index 7a096eb1ebeb..f8b964d0b84a 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/AmazonWebServiceRequest.h +++ b/src/aws-cpp-sdk-core/include/aws/core/AmazonWebServiceRequest.h @@ -28,6 +28,11 @@ namespace Aws class URI; } // namespace Http + namespace Client + { + class AsyncOperationState; + } // namespace Client + class AmazonWebServiceRequest; /** @@ -239,6 +244,8 @@ namespace Aws void SetRetryContext(const RetryContext& context) const { m_retryContext = context; } + virtual std::shared_ptr GetAsyncOperationState() const { return nullptr; } + virtual Aws::Vector GetRequestSpecificSupportedAuth() const { return {}; } /** diff --git a/src/aws-cpp-sdk-core/include/aws/core/client/AWSClient.h b/src/aws-cpp-sdk-core/include/aws/core/client/AWSClient.h index 070ecece9390..a03fd99dac21 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/client/AWSClient.h +++ b/src/aws-cpp-sdk-core/include/aws/core/client/AWSClient.h @@ -86,9 +86,7 @@ namespace Aws typedef Utils::Outcome, AWSError> StreamOutcome; using HttpResponseOutcomeReceivedHandler = std::function; -#if defined(AWS_CRT_HTTP_USE_ASYNC_IO) struct AWSClientAsyncRequestContext; -#endif /** * Abstract AWS Client. Contains most of the functionality necessary to build an http request, get it signed, and send it across the wire. @@ -237,16 +235,14 @@ namespace Aws const char* signerRegionOverride = nullptr, const char* signerServiceNameOverride = nullptr) const; -#if defined(AWS_CRT_HTTP_USE_ASYNC_IO) void AttemptExhaustivelyAsync(const Aws::Http::URI& uri, const Aws::AmazonWebServiceRequest& request, Http::HttpMethod httpMethod, const char* signerName, HttpResponseOutcomeReceivedHandler handler, - const std::shared_ptr& executor = nullptr, + const std::shared_ptr& executor, const char* signerRegionOverride = nullptr, const char* signerServiceNameOverride = nullptr) const; -#endif /** * Build an Http Request from the AmazonWebServiceRequest object. Signs the request, sends it across the wire @@ -375,12 +371,11 @@ namespace Aws * return true if signer's clock is adjusted, false otherwise. */ bool AdjustClockSkew(HttpResponseOutcome& outcome, const Aws::Utils::DateTime& timeRequestSent, const Aws::Utils::DateTime& timeResponseReceived, std::chrono::milliseconds attemptSkew) const; -#if defined(AWS_CRT_HTTP_USE_ASYNC_IO) std::shared_ptr StartOneAttemptAsync(const std::shared_ptr& context) const; Aws::Http::HttpClient::AttemptOutcome OnResponseReceivedAsync(const std::shared_ptr& context, std::shared_ptr httpResponse) const; Aws::Http::HttpClient::AttemptOutcome OnAttemptCompleteAsync(const std::shared_ptr& context, HttpResponseOutcome&& outcome) const; void FinishAsync(const std::shared_ptr& context) const; -#endif + static StreamOutcome ProcessUnparsedResponse(HttpResponseOutcome& httpResponseOutcome); void AddHeadersToRequest(const std::shared_ptr& httpRequest, const Http::HeaderValueCollection& headerValues) const; void AddContentBodyToRequest(const std::shared_ptr& httpRequest, const std::shared_ptr& body, bool needsContentMd5 = false, bool isChunked = false) const; @@ -401,9 +396,6 @@ namespace Aws Aws::Vector> m_interceptors; bool m_enableNewRetries; bool m_disableExpectHeader; -#if defined(AWS_CRT_HTTP_USE_ASYNC_IO) - std::shared_ptr m_executor; -#endif }; AWS_CORE_API Aws::String GetAuthorizationHeader(const Aws::Http::HttpRequest& httpRequest); diff --git a/src/aws-cpp-sdk-core/include/aws/core/client/AWSClientAsyncCRTP.h b/src/aws-cpp-sdk-core/include/aws/core/client/AWSClientAsyncCRTP.h index 5321ee272ec1..df0f9086c5e6 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/client/AWSClientAsyncCRTP.h +++ b/src/aws-cpp-sdk-core/include/aws/core/client/AWSClientAsyncCRTP.h @@ -8,6 +8,8 @@ #include #include #include +#include +#include namespace Aws { @@ -40,6 +42,27 @@ namespace Client static const bool value = false; }; + template + struct AWS_CORE_LOCAL OperationRequestOf; + + template + struct AWS_CORE_LOCAL OperationRequestOf + { + using type = typename std::decay::type; + }; + + template + struct AWS_CORE_LOCAL ProtocolOutcomeOf; + + template + struct AWS_CORE_LOCAL ProtocolOutcomeOf> + { + using type = typename std::conditional< + std::is_constructible&&>::value && !std::is_same::value, + Utils::Outcome, AWSError>, + typename ClientT::OUTCOME>::type; + }; + /** * A CRTP-base class template that is used to add template methods to call AWS Operations in parallel using ThreadExecutor @@ -51,7 +74,8 @@ namespace Client public: ClientWithAsyncTemplateMethods() : m_isInitialized(true), - m_operationsProcessed(0) + m_operationsProcessed(0), + m_asyncIOOperationsProcessed(0) { AwsServiceClientT* pThis = static_cast(this); Aws::Utils::ComponentRegistry::RegisterComponent(AwsServiceClientT::GetServiceName(), @@ -62,7 +86,8 @@ namespace Client ClientWithAsyncTemplateMethods(const ClientWithAsyncTemplateMethods& other) : m_isInitialized(other.m_isInitialized.load()), - m_operationsProcessed(0) + m_operationsProcessed(0), + m_asyncIOOperationsProcessed(0) { AwsServiceClientT* pThis = static_cast(this); Aws::Utils::ComponentRegistry::RegisterComponent(AwsServiceClientT::GetServiceName(), @@ -76,6 +101,7 @@ namespace Client { ShutdownSdkClient(static_cast(this)); m_operationsProcessed = 0; + m_asyncIOOperationsProcessed = 0; m_isInitialized = other.m_isInitialized.load(); } @@ -111,6 +137,14 @@ namespace Client pClient->DisableRequestProcessing(); } + if (Aws::Client::AsyncOperationState::IsAsyncIOEnabled()) + { + while (pClient->m_asyncIOOperationsProcessed.load() != 0) + { + pClient->m_shutdownSignal.wait_for(lock, std::chrono::milliseconds(100)); + } + } + if (timeoutMs == -1) { timeoutMs = pClient->m_clientConfiguration.requestTimeoutMs; @@ -141,6 +175,14 @@ namespace Client const std::shared_ptr& context = nullptr) const { const AwsServiceClientT* clientThis = static_cast(this); + using OperationRequestT = typename OperationRequestOf::type; + if (std::is_same::value && Aws::Client::AsyncOperationState::IsAsyncIOEnabled() && clientThis->GetHttpClient()->SupportsAsyncRequests()) + { + using OutcomeT = decltype((clientThis->*operationFunc)(request)); + SubmitAsyncIO(operationFunc, request, + [clientThis, handler, context](const OperationRequestT& asyncRequest, OutcomeT&& outcome) { handler(clientThis, asyncRequest, std::move(outcome), context); }); + return; + } Aws::Client::MakeAsyncOperation(operationFunc, clientThis, request, handler, context, clientThis->m_clientConfiguration.executor.get()); } @@ -156,6 +198,14 @@ namespace Client const std::shared_ptr& context = nullptr) const { const AwsServiceClientT* clientThis = static_cast(this); + using OperationRequestT = typename OperationRequestOf::type; + if (std::is_same::value && Aws::Client::AsyncOperationState::IsAsyncIOEnabled() && clientThis->GetHttpClient()->SupportsAsyncRequests()) + { + using OutcomeT = decltype((clientThis->*operationFunc)(request)); + SubmitAsyncIO(operationFunc, request, + [clientThis, handler, context](const OperationRequestT& asyncRequest, OutcomeT&& outcome) { handler(clientThis, asyncRequest, std::move(outcome), context); }); + return; + } Aws::Client::MakeAsyncStreamingOperation(operationFunc, clientThis, request, handler, context, clientThis->m_clientConfiguration.executor.get()); } @@ -182,6 +232,15 @@ namespace Client -> std::future(nullptr)->*operationFunc)(request))> { const AwsServiceClientT* clientThis = static_cast(this); + using OperationRequestT = typename OperationRequestOf::type; + if (std::is_same::value && Aws::Client::AsyncOperationState::IsAsyncIOEnabled() && clientThis->GetHttpClient()->SupportsAsyncRequests()) + { + using OutcomeT = decltype((clientThis->*operationFunc)(request)); + auto promise = Aws::MakeShared>(AwsServiceClientT::GetAllocationTag()); + SubmitAsyncIO(operationFunc, request, + [promise](const OperationRequestT&, OutcomeT&& outcome) { promise->set_value(std::move(outcome)); }); + return promise->get_future(); + } return Aws::Client::MakeCallableOperation(AwsServiceClientT::GetAllocationTag(), operationFunc, clientThis, request, clientThis->m_clientConfiguration.executor.get()); } @@ -195,6 +254,15 @@ namespace Client -> std::future(nullptr)->*operationFunc)(request))> { const AwsServiceClientT* clientThis = static_cast(this); + using OperationRequestT = typename OperationRequestOf::type; + if (std::is_same::value && Aws::Client::AsyncOperationState::IsAsyncIOEnabled() && clientThis->GetHttpClient()->SupportsAsyncRequests()) + { + using OutcomeT = decltype((clientThis->*operationFunc)(request)); + auto promise = Aws::MakeShared>(AwsServiceClientT::GetAllocationTag()); + SubmitAsyncIO(operationFunc, request, + [promise](const OperationRequestT&, OutcomeT&& outcome) { promise->set_value(std::move(outcome)); }); + return promise->get_future(); + } return Aws::Client::MakeCallableStreamingOperation(AwsServiceClientT::GetAllocationTag(), operationFunc, clientThis, request, clientThis->m_clientConfiguration.executor.get()); } @@ -210,6 +278,40 @@ namespace Client const AwsServiceClientT* clientThis = static_cast(this); return Aws::Client::MakeCallableOperation(AwsServiceClientT::GetAllocationTag(), operationFunc, clientThis, clientThis->m_clientConfiguration.executor.get()); } + private: + template + void SubmitAsyncIO(OperationFuncT operationFunc, const RequestT& request, DeliverT deliver) const + { + using IsEventStream = std::integral_constant::value>; + const AwsServiceClientT* clientThis = static_cast(this); + auto operationGuard = Aws::MakeShared(AwsServiceClientT::GetAllocationTag(), m_operationsProcessed, &m_shutdownSignal); + auto asyncIOOperationGuard = Aws::MakeShared(AwsServiceClientT::GetAllocationTag(), m_asyncIOOperationsProcessed, &m_shutdownSignal); + auto state = Aws::MakeShared::type>>(AwsServiceClientT::GetAllocationTag(), + clientThis->m_clientConfiguration.executor); + auto pRequest = Aws::MakeShared::type>>(AwsServiceClientT::GetAllocationTag(), request, state); + ReattachEventStreamHandler(*pRequest, IsEventStream()); + state->Bind(IsEventStream::value ? pRequest : nullptr, + [pRequest, deliver, operationGuard, asyncIOOperationGuard](OutcomeT&& outcome) { deliver(*pRequest, std::move(outcome)); }); + clientThis->m_clientConfiguration.executor->Submit([clientThis, operationFunc, pRequest, state]() + { + auto outcome = (clientThis->*operationFunc)(*pRequest); + if (state->TryTake()) + { + state->Deliver(std::move(outcome)); + } + }); + } + + template + static void ReattachEventStreamHandler(RequestT& request, std::true_type) + { + request.SetEventStreamHandler(request.GetEventStreamHandler()); + } + + template + static void ReattachEventStreamHandler(RequestT&, std::false_type) + { + } protected: template friend class BidirectionalEventStreamingTask; // allow BidirectionalEventStreamingTask to access m_isInitialized @@ -224,6 +326,7 @@ namespace Client std::atomic m_isInitialized; mutable std::atomic m_operationsProcessed; + mutable std::atomic m_asyncIOOperationsProcessed; mutable std::condition_variable m_shutdownSignal; mutable std::mutex m_shutdownMutex; diff --git a/src/aws-cpp-sdk-core/include/aws/core/client/AWSProtocolClient.h b/src/aws-cpp-sdk-core/include/aws/core/client/AWSProtocolClient.h index 5066c2f9021e..9878e7306648 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/client/AWSProtocolClient.h +++ b/src/aws-cpp-sdk-core/include/aws/core/client/AWSProtocolClient.h @@ -9,6 +9,7 @@ #include #include #include +#include namespace Aws { @@ -58,7 +59,6 @@ namespace Aws return MakeRequest(uri, request, method, signerName, signerRegionOverride, signerServiceNameOverride); } - OutcomeType MakeRequest(const Aws::Endpoint::AWSEndpoint& endpoint, Http::HttpMethod method = Http::HttpMethod::HTTP_POST, const char* signerName = Aws::Auth::SIGV4_SIGNER, @@ -83,6 +83,18 @@ namespace Aws const char* signerRegionOverride = nullptr, const char* signerServiceNameOverride = nullptr) const { + if (const auto asyncOperationState = ProtocolAsyncOperationState::Take(request)) + { + asyncOperationState->ExtendRequestLifetime(); + const char* requestName = request.GetServiceRequestName(); + BASECLASS::AttemptExhaustivelyAsync(uri, request, method, signerName, + [this, requestName, asyncOperationState](HttpResponseOutcome&& httpOutcome) + { + asyncOperationState->Complete(ProcessHttpResponse(httpOutcome, requestName)); + }, + asyncOperationState->GetExecutor(), signerRegionOverride, signerServiceNameOverride); + return OutcomeType(AWSError(CoreErrors::INTERNAL_FAILURE, "", "Request continues on the async request path", false)); + } HttpResponseOutcome httpOutcome(BASECLASS::AttemptExhaustively(uri, request, method, signerName, signerRegionOverride, signerServiceNameOverride)); return ProcessHttpResponse(httpOutcome, request.GetServiceRequestName()); } diff --git a/src/aws-cpp-sdk-core/include/aws/core/client/AWSXmlClient.h b/src/aws-cpp-sdk-core/include/aws/core/client/AWSXmlClient.h index 3f382b69f571..1ae1b458d90d 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/client/AWSXmlClient.h +++ b/src/aws-cpp-sdk-core/include/aws/core/client/AWSXmlClient.h @@ -136,6 +136,9 @@ namespace Aws const char* requestName = "", const char* signerRegionOverride = nullptr, const char* signerServiceNameOverride = nullptr) const; + + private: + XmlOutcome ProcessHttpResponse(HttpResponseOutcome& httpOutcome, const char* requestName) const; }; } // namespace Client diff --git a/src/aws-cpp-sdk-core/include/aws/core/client/AsyncOperationState.h b/src/aws-cpp-sdk-core/include/aws/core/client/AsyncOperationState.h new file mode 100644 index 000000000000..af1bf9288b5c --- /dev/null +++ b/src/aws-cpp-sdk-core/include/aws/core/client/AsyncOperationState.h @@ -0,0 +1,187 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +namespace Aws +{ + namespace Utils + { + namespace Threading + { + class Executor; + } + } + + namespace Client + { + class AWS_CORE_API OperationTelemetry + { + public: + OperationTelemetry(std::shared_ptr span, + const Aws::String& metricName, + const std::shared_ptr& meter, + Aws::Map&& attributes); + ~OperationTelemetry(); + + OperationTelemetry(const OperationTelemetry&) = delete; + OperationTelemetry& operator=(const OperationTelemetry&) = delete; + + private: + std::shared_ptr m_span; + smithy::components::tracing::TracingUtils::ScopedMetricTimer m_durationTimer; + }; + + class RequestLifetimeExtension; + + class AWS_CORE_API AsyncOperationState + { + public: + explicit AsyncOperationState(std::shared_ptr executor); + virtual ~AsyncOperationState(); + + AsyncOperationState(const AsyncOperationState&) = delete; + AsyncOperationState& operator=(const AsyncOperationState&) = delete; + + static bool IsAsyncIOEnabled(); + + const std::shared_ptr& GetExecutor() const; + + void AdoptTelemetry(Aws::UniquePtr telemetry, bool conversionOutsideTiming); + void ExtendRequestLifetime(); + bool TryTake(); + bool IsTaken() const; + + template + static T MakeCallWithTiming(const AmazonWebServiceRequest& request, + std::shared_ptr span, + std::function func, + const Aws::String& metricName, + const std::shared_ptr& meter, + Aws::Map&& attributes) + { + const auto state = request.GetAsyncOperationState(); + if (!state) + { + return smithy::components::tracing::TracingUtils::MakeCallWithTiming(std::move(func), metricName, *meter, std::move(attributes)); + } + state->AdoptTelemetry(Aws::MakeUnique("AsyncOperationState", span, metricName, meter, std::move(attributes)), + IsServiceResultOutcome::value); + auto returnValue = func(); + span->releaseScope(); + return returnValue; + } + + protected: + void BindRequest(std::shared_ptr request); + void EndTelemetryBeforeConversion(); + void EndOperation(); + + private: + template + struct IsServiceResultOutcome : std::false_type {}; + + template + struct IsServiceResultOutcome, ErrorT>> : std::true_type {}; + + std::shared_ptr m_executor; + std::shared_ptr m_request; + Aws::UniquePtr m_telemetry; + bool m_conversionOutsideTiming = false; + Aws::UniquePtr m_requestLifetimeExtension; + std::atomic m_taken{false}; + }; + + template + class ProtocolAsyncOperationState : public AsyncOperationState + { + public: + explicit ProtocolAsyncOperationState(std::shared_ptr executor) + : AsyncOperationState(std::move(executor)) + { + } + + static std::shared_ptr Take(const AmazonWebServiceRequest& request) + { + const auto state = request.GetAsyncOperationState(); + return state && state->TryTake() ? std::static_pointer_cast(state) : nullptr; + } + + virtual void Complete(ProtocolOutcomeT&& outcome) = 0; + }; + + template + class OutcomeAsyncOperationState : public ProtocolAsyncOperationState + { + public: + explicit OutcomeAsyncOperationState(std::shared_ptr executor) + : ProtocolAsyncOperationState(std::move(executor)) + { + } + + void Bind(std::shared_ptr request, std::function deliver) + { + this->BindRequest(std::move(request)); + m_deliver = std::move(deliver); + } + + void Complete(ProtocolOutcomeT&& outcome) override + { + this->EndTelemetryBeforeConversion(); + Deliver(outcome.IsSuccess() ? OutcomeT(outcome.GetResultWithOwnership()) : OutcomeT(std::move(outcome.GetError()))); + } + + void Deliver(OutcomeT&& outcome) + { + this->EndOperation(); + std::function deliver; + deliver.swap(m_deliver); + deliver(std::move(outcome)); + } + + private: + std::function m_deliver; + }; + + template + class AsyncOperationRequest final : public RequestT + { + public: + AsyncOperationRequest(const RequestT& request, const std::shared_ptr& state) + : RequestT(request), + m_state(state) + { + } + + std::shared_ptr GetAsyncOperationState() const override + { + const auto state = m_state.lock(); + return state && !state->IsTaken() ? state : nullptr; + } + + private: + std::weak_ptr m_state; + }; + } +} diff --git a/src/aws-cpp-sdk-core/include/aws/core/http/HttpClient.h b/src/aws-cpp-sdk-core/include/aws/core/http/HttpClient.h index adf27667b447..b6746e1a93bd 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/http/HttpClient.h +++ b/src/aws-cpp-sdk-core/include/aws/core/http/HttpClient.h @@ -122,6 +122,8 @@ namespace Aws false}; } + virtual bool SupportsAsyncRequests() const { return false; } + protected: bool m_bad; diff --git a/src/aws-cpp-sdk-core/include/aws/core/http/crt/CRTHttpClient.h b/src/aws-cpp-sdk-core/include/aws/core/http/crt/CRTHttpClient.h index f6def9ec46d7..fc5d25bbcf29 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/http/crt/CRTHttpClient.h +++ b/src/aws-cpp-sdk-core/include/aws/core/http/crt/CRTHttpClient.h @@ -68,6 +68,8 @@ namespace Aws bool IsDefaultAwsHttpClient() const override { return true; } + bool SupportsAsyncRequests() const override { return true; } + Aws::Crt::Optional> AcquireConnection( const std::shared_ptr& request, const std::function, int)>& onClientConnectionAvailable) override; diff --git a/src/aws-cpp-sdk-core/include/smithy/client/AwsSmithyClient.h b/src/aws-cpp-sdk-core/include/smithy/client/AwsSmithyClient.h index 2951d9ac156a..c9909d40dd18 100644 --- a/src/aws-cpp-sdk-core/include/smithy/client/AwsSmithyClient.h +++ b/src/aws-cpp-sdk-core/include/smithy/client/AwsSmithyClient.h @@ -14,6 +14,7 @@ #include +#include #include #include #include @@ -54,6 +55,8 @@ namespace client ErrorMarshallerT>> { public: + using OUTCOME = ResponseT; + static_assert(std::is_base_of::value, "MarshallerT must be derived from class Aws::Client::AWSErrorMarshaller"); explicit AwsSmithyClientT(const ServiceClientConfigurationT& clientConfig, @@ -243,6 +246,17 @@ namespace client EndpointUpdateCallback&& endpointCallback, AuthResolvedCallback&& authCallback = nullptr) const { + if (const auto asyncOperationState = request ? Aws::Client::ProtocolAsyncOperationState::Take(*request) : nullptr) + { + asyncOperationState->ExtendRequestLifetime(); + AwsSmithyClientBase::MakeRequestAsync(request, requestName, method, std::move(endpointCallback), + [this, requestName, asyncOperationState](HttpResponseOutcome&& httpResponseOutcome) + { + asyncOperationState->Complete(m_serializer->Deserialize(std::move(httpResponseOutcome), GetServiceClientName(), requestName)); + }, + std::move(authCallback), m_clientConfiguration.executor); + return ResponseT(Aws::Client::AWSError(Aws::Client::CoreErrors::INTERNAL_FAILURE, "", "Request continues on the async request path", false)); + } auto httpResponseOutcome = MakeRequestSync(request, requestName, method, std::move(endpointCallback), std::move(authCallback)); return m_serializer->Deserialize(std::move(httpResponseOutcome), GetServiceClientName(), requestName); } diff --git a/src/aws-cpp-sdk-core/include/smithy/client/AwsSmithyClientBase.h b/src/aws-cpp-sdk-core/include/smithy/client/AwsSmithyClientBase.h index 25dd7cfd5a44..038673b389d5 100644 --- a/src/aws-cpp-sdk-core/include/smithy/client/AwsSmithyClientBase.h +++ b/src/aws-cpp-sdk-core/include/smithy/client/AwsSmithyClientBase.h @@ -174,6 +174,7 @@ namespace client virtual void EnableRequestProcessing(); inline virtual const char* GetServiceClientName() const { return m_serviceName.c_str(); } inline virtual const std::shared_ptr& GetHttpClient() { return m_httpClient; } + const std::shared_ptr& GetHttpClient() const { return m_httpClient; } protected: template @@ -250,6 +251,16 @@ namespace client mutable std::shared_ptr m_clientSkew; private: void UpdateAuthSchemeFromEndpoint(const Aws::Endpoint::AWSEndpoint& endpoint, AuthSchemeOption& authscheme) const; + static StreamOutcome ProcessUnparsedResponse(HttpResponseOutcome& httpResponseOutcome); + std::shared_ptr CreateRequestContext(Aws::AmazonWebServiceRequest const * const request, + const char* requestName, + Aws::Http::HttpMethod method, + EndpointUpdateCallback&& endpointCallback, + ResponseHandlerFunc&& responseHandler, + AuthResolvedCallback&& authCallback, + std::shared_ptr pExecutor) const; + void RunAttemptsAsync(const std::shared_ptr& pRequestCtx) const; + void RunAttemptsBlocking(const std::shared_ptr& pRequestCtx) const; bool ResolveIdentityAuth( std::shared_ptr& pRequestCtx, diff --git a/src/aws-cpp-sdk-core/include/smithy/tracing/TraceSpan.h b/src/aws-cpp-sdk-core/include/smithy/tracing/TraceSpan.h index 192bec4f479e..949fbdd9bba6 100644 --- a/src/aws-cpp-sdk-core/include/smithy/tracing/TraceSpan.h +++ b/src/aws-cpp-sdk-core/include/smithy/tracing/TraceSpan.h @@ -62,6 +62,8 @@ namespace smithy { */ virtual void end() = 0; + virtual void releaseScope() {} + private: Aws::String m_name; }; diff --git a/src/aws-cpp-sdk-core/include/smithy/tracing/impl/opentelemetry/TraceAdapters.h b/src/aws-cpp-sdk-core/include/smithy/tracing/impl/opentelemetry/TraceAdapters.h index 28e5c667367e..d165922e9b39 100644 --- a/src/aws-cpp-sdk-core/include/smithy/tracing/impl/opentelemetry/TraceAdapters.h +++ b/src/aws-cpp-sdk-core/include/smithy/tracing/impl/opentelemetry/TraceAdapters.h @@ -36,6 +36,8 @@ namespace smithy { void end() override; + void releaseScope() override; + private: opentelemetry::trace::StatusCode convertStatusCode(TraceSpanStatus status); diff --git a/src/aws-cpp-sdk-core/source/client/AWSClient.cpp b/src/aws-cpp-sdk-core/source/client/AWSClient.cpp index 310f56400557..8455b59847e2 100644 --- a/src/aws-cpp-sdk-core/source/client/AWSClient.cpp +++ b/src/aws-cpp-sdk-core/source/client/AWSClient.cpp @@ -4,6 +4,7 @@ */ #include +#include #include #include #include @@ -120,7 +121,6 @@ namespace Aws { namespace Client { -#if defined(AWS_CRT_HTTP_USE_ASYNC_IO) struct AWSClientAsyncRequestContext { Aws::Http::URI uri; @@ -147,7 +147,6 @@ namespace Aws std::shared_ptr executor; Aws::Crt::Optional serviceCallTimer; }; -#endif } // namespace Client } // namespace Aws @@ -179,12 +178,7 @@ AWSClient::AWSClient(const Aws::Client::ClientConfiguration& configuration, configuration.awsChunkedBufferSize), m_userAgentInterceptor}, m_enableNewRetries{Aws::Utils::StringUtils::ToLower(Aws::Environment::GetEnv("AWS_NEW_RETRIES_2026").c_str()) == "true"}, -#if defined(AWS_CRT_HTTP_USE_ASYNC_IO) - m_disableExpectHeader(configuration.disableExpectHeader), - m_executor(configuration.executor ? configuration.executor : configuration.configFactories.executorCreateFn()) -#else m_disableExpectHeader(configuration.disableExpectHeader) -#endif { } @@ -216,12 +210,7 @@ AWSClient::AWSClient(const Aws::Client::ClientConfiguration& configuration, configuration.awsChunkedBufferSize), m_userAgentInterceptor}, m_enableNewRetries{Aws::Utils::StringUtils::ToLower(Aws::Environment::GetEnv("AWS_NEW_RETRIES_2026").c_str()) == "true"}, -#if defined(AWS_CRT_HTTP_USE_ASYNC_IO) - m_disableExpectHeader(configuration.disableExpectHeader), - m_executor(configuration.executor ? configuration.executor : configuration.configFactories.executorCreateFn()) -#else m_disableExpectHeader(configuration.disableExpectHeader) -#endif { } @@ -745,7 +734,6 @@ HttpResponseOutcome AWSClient::AttemptOneRequest(const std::shared_ptrsignerServiceName = signerServiceNameOverride; } context->handler = std::move(handler); - context->executor = executor ? executor : m_executor; + context->executor = executor; context->invocationId = Aws::Utils::UUID::PseudoRandomUUID(); context->httpRequest = CreateHttpRequest(uri, method, request.GetResponseStreamFactory()); @@ -1070,13 +1058,9 @@ void AWSClient::FinishAsync(const std::shared_ptr& Aws::Monitoring::OnFinish(this->GetServiceClientName(), request.GetServiceRequestName(), context->httpRequest, context->monitoringContexts); if (context->handler) { - context->executor->Submit([context]() - { - context->handler(std::move(context->outcome)); - }); + context->handler(std::move(context->outcome)); } } -#endif StreamOutcome AWSClient::MakeRequestWithUnparsedResponse(const Aws::Http::URI& uri, const Aws::AmazonWebServiceRequest& request, @@ -1085,7 +1069,23 @@ StreamOutcome AWSClient::MakeRequestWithUnparsedResponse(const Aws::Http::URI& u const char* signerRegionOverride, const char* signerServiceNameOverride) const { + if (const auto asyncOperationState = ProtocolAsyncOperationState::Take(request)) + { + AttemptExhaustivelyAsync(uri, request, method, signerName, + [asyncOperationState](HttpResponseOutcome&& httpResponseOutcome) + { + asyncOperationState->Complete(ProcessUnparsedResponse(httpResponseOutcome)); + }, + asyncOperationState->GetExecutor(), signerRegionOverride, signerServiceNameOverride); + return StreamOutcome(AWSError(CoreErrors::INTERNAL_FAILURE, "", "Request continues on the async request path", false)); + } + HttpResponseOutcome httpResponseOutcome = AttemptExhaustively(uri, request, method, signerName, signerRegionOverride, signerServiceNameOverride); + return ProcessUnparsedResponse(httpResponseOutcome); +} + +StreamOutcome AWSClient::ProcessUnparsedResponse(HttpResponseOutcome& httpResponseOutcome) +{ if (httpResponseOutcome.IsSuccess()) { return StreamOutcome(AmazonWebServiceResult( @@ -1169,6 +1169,23 @@ XmlOutcome AWSXMLClient::MakeRequestWithEventStream(const Aws::Http::URI& uri, const char* signerRegionOverride, const char* signerServiceNameOverride) const { + if (const auto asyncOperationState = ProtocolAsyncOperationState::Take(request)) + { + asyncOperationState->ExtendRequestLifetime(); + AttemptExhaustivelyAsync(uri, request, method, signerName, + [asyncOperationState](HttpResponseOutcome&& httpOutcome) + { + if (httpOutcome.IsSuccess()) + { + asyncOperationState->Complete(XmlOutcome(AmazonWebServiceResult(XmlDocument(), httpOutcome.GetResult()->GetHeaders()))); + return; + } + asyncOperationState->Complete(XmlOutcome(std::move(httpOutcome))); + }, + asyncOperationState->GetExecutor(), signerRegionOverride, signerServiceNameOverride); + return XmlOutcome(AWSError(CoreErrors::INTERNAL_FAILURE, "", "Request continues on the async request path", false)); + } + HttpResponseOutcome httpOutcome = AttemptExhaustively(uri, request, method, signerName, signerRegionOverride, signerServiceNameOverride); if (httpOutcome.IsSuccess()) { diff --git a/src/aws-cpp-sdk-core/source/client/AWSXmlClient.cpp b/src/aws-cpp-sdk-core/source/client/AWSXmlClient.cpp index 75fcb713bcf0..abbb7c5015cc 100644 --- a/src/aws-cpp-sdk-core/source/client/AWSXmlClient.cpp +++ b/src/aws-cpp-sdk-core/source/client/AWSXmlClient.cpp @@ -4,6 +4,7 @@ */ #include +#include #include #include #include @@ -103,7 +104,24 @@ XmlOutcome AWSXMLClient::MakeRequest(const Aws::Http::URI& uri, const char* signerRegionOverride, const char* signerServiceNameOverride) const { + if (const auto asyncOperationState = ProtocolAsyncOperationState::Take(request)) + { + const char* requestName = request.GetServiceRequestName(); + BASECLASS::AttemptExhaustivelyAsync(uri, request, method, signerName, + [this, requestName, asyncOperationState](HttpResponseOutcome&& httpOutcome) + { + asyncOperationState->Complete(ProcessHttpResponse(httpOutcome, requestName)); + }, + asyncOperationState->GetExecutor(), signerRegionOverride, signerServiceNameOverride); + return AWSError(CoreErrors::INTERNAL_FAILURE, "", "Request continues on the async request path", false); + } + HttpResponseOutcome httpOutcome(BASECLASS::AttemptExhaustively(uri, request, method, signerName, signerRegionOverride, signerServiceNameOverride)); + return ProcessHttpResponse(httpOutcome, request.GetServiceRequestName()); +} + +XmlOutcome AWSXMLClient::ProcessHttpResponse(HttpResponseOutcome& httpOutcome, const char* requestName) const +{ if (!httpOutcome.IsSuccess()) { return smithy::components::tracing::TracingUtils::MakeCallWithTiming( @@ -112,7 +130,7 @@ XmlOutcome AWSXMLClient::MakeRequest(const Aws::Http::URI& uri, }, TracingUtils::SMITHY_CLIENT_DESERIALIZATION_METRIC, *m_telemetryProvider->getMeter(this->GetServiceClientName(), {}), - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + {{TracingUtils::SMITHY_METHOD_DIMENSION, requestName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } if (httpOutcome.GetResult()->GetResponseBody().tellp() > 0) @@ -132,7 +150,7 @@ XmlOutcome AWSXMLClient::MakeRequest(const Aws::Http::URI& uri, }, TracingUtils::SMITHY_CLIENT_DESERIALIZATION_METRIC, *m_telemetryProvider->getMeter(this->GetServiceClientName(), {}), - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + {{TracingUtils::SMITHY_METHOD_DIMENSION, requestName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } return XmlOutcome(AmazonWebServiceResult(XmlDocument(), httpOutcome.GetResult()->GetHeaders())); diff --git a/src/aws-cpp-sdk-core/source/client/AsyncOperationState.cpp b/src/aws-cpp-sdk-core/source/client/AsyncOperationState.cpp new file mode 100644 index 000000000000..8532a8832269 --- /dev/null +++ b/src/aws-cpp-sdk-core/source/client/AsyncOperationState.cpp @@ -0,0 +1,116 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +using namespace Aws::Client; +using namespace smithy::components::tracing; + +static const char* ASYNC_OPERATION_STATE_TAG = "AsyncOperationState"; + +class Aws::Client::RequestLifetimeExtension +{ +public: + explicit RequestLifetimeExtension(std::shared_ptr request); + ~RequestLifetimeExtension(); + + RequestLifetimeExtension(const RequestLifetimeExtension&) = delete; + RequestLifetimeExtension& operator=(const RequestLifetimeExtension&) = delete; + +private: + std::shared_ptr m_request; + Aws::IOStreamFactory m_responseStreamFactory; +}; + +OperationTelemetry::OperationTelemetry(std::shared_ptr span, + const Aws::String& metricName, + const std::shared_ptr& meter, + Aws::Map&& attributes) + : m_span(std::move(span)), + m_durationTimer(metricName, meter, std::move(attributes)) +{ +} + +OperationTelemetry::~OperationTelemetry() = default; + +RequestLifetimeExtension::RequestLifetimeExtension(std::shared_ptr request) + : m_request(std::move(request)), + m_responseStreamFactory(m_request->GetResponseStreamFactory()) +{ + auto extendedRequest = m_request; + auto responseStreamFactory = m_responseStreamFactory; + m_request->SetResponseStreamFactory([extendedRequest, responseStreamFactory]() { return responseStreamFactory(); }); +} + +RequestLifetimeExtension::~RequestLifetimeExtension() +{ + m_request->SetResponseStreamFactory(m_responseStreamFactory); +} + +AsyncOperationState::AsyncOperationState(std::shared_ptr executor) + : m_executor(std::move(executor)) +{ +} + +AsyncOperationState::~AsyncOperationState() = default; + +bool AsyncOperationState::IsAsyncIOEnabled() +{ +#if defined(AWS_CRT_HTTP_USE_ASYNC_IO) + return true; +#else + return false; +#endif +} + +const std::shared_ptr& AsyncOperationState::GetExecutor() const +{ + return m_executor; +} + +void AsyncOperationState::AdoptTelemetry(Aws::UniquePtr telemetry, bool conversionOutsideTiming) +{ + m_telemetry = std::move(telemetry); + m_conversionOutsideTiming = conversionOutsideTiming; +} + +void AsyncOperationState::ExtendRequestLifetime() +{ + if (m_request && !m_requestLifetimeExtension) + { + m_requestLifetimeExtension = Aws::MakeUnique(ASYNC_OPERATION_STATE_TAG, m_request); + } +} + +bool AsyncOperationState::TryTake() +{ + return !m_taken.exchange(true); +} + +bool AsyncOperationState::IsTaken() const +{ + return m_taken.load(); +} + +void AsyncOperationState::BindRequest(std::shared_ptr request) +{ + m_request = std::move(request); +} + +void AsyncOperationState::EndTelemetryBeforeConversion() +{ + if (m_conversionOutsideTiming) + { + m_telemetry.reset(); + } +} + +void AsyncOperationState::EndOperation() +{ + m_telemetry.reset(); + m_requestLifetimeExtension.reset(); + m_request.reset(); +} diff --git a/src/aws-cpp-sdk-core/source/http/crt/CRTHttpClient.cpp b/src/aws-cpp-sdk-core/source/http/crt/CRTHttpClient.cpp index ae5586bc021d..5c99a1a8b041 100644 --- a/src/aws-cpp-sdk-core/source/http/crt/CRTHttpClient.cpp +++ b/src/aws-cpp-sdk-core/source/http/crt/CRTHttpClient.cpp @@ -131,7 +131,7 @@ struct AsyncRequestState { return; } if (onComplete) { - onComplete(response); + onComplete(std::move(response)); } if (latch) { latch->Done(); @@ -566,25 +566,44 @@ namespace Aws } send(request, [self](std::shared_ptr response) { - auto outcome = self->evaluate(response); - if (outcome.shouldRetry) + if (!self->executor->Submit([self, response]() { - self->schedule([self](bool canceled) + auto outcome = self->evaluate(response); + if (outcome.shouldRetry) { - if (canceled || !self->executor->Submit([self]() { self->RunAttempt(); })) + self->schedule([self](bool canceled) { - self->complete(); - } - }, outcome.backoff); - } - else if (outcome.backoff.count() > 0) - { - self->schedule([self](bool) + if (!self->executor->Submit([self, canceled]() + { + if (canceled) + { + self->complete(); + } + else + { + self->RunAttempt(); + } + })) + { + self->complete(); + } + }, outcome.backoff); + } + else if (outcome.backoff.count() > 0) + { + self->schedule([self](bool) + { + if (!self->executor->Submit([self]() { self->complete(); })) + { + self->complete(); + } + }, outcome.backoff); + } + else { self->complete(); - }, outcome.backoff); - } - else + } + })) { self->complete(); } @@ -616,8 +635,8 @@ namespace Aws latch->Add(); attemptLoop->complete = [onComplete, latch]() { - onComplete(); latch->Done(); + onComplete(); }; const CRTHttpClient* self = this; @@ -635,9 +654,9 @@ namespace Aws attemptLoop->schedule = [self](std::function task, std::chrono::milliseconds delay) { self->m_bootstrap.GetNextEventLoop().Schedule( - [task](Aws::Crt::Io::TaskStatus status) + [self, task](Aws::Crt::Io::TaskStatus status) { - task(status != Aws::Crt::Io::TaskStatus::RunReady); + task(status != Aws::Crt::Io::TaskStatus::RunReady || !self->IsRequestProcessingEnabled()); }, delay); }; @@ -672,7 +691,7 @@ namespace Aws sync->signal.WaitOne(); // TODO: is VOX support still a thing? If so we need to add the metrics for it. - return sync->response; + return std::move(sync->response); } Aws::String CRTHttpClient::ResolveConnectionPoolKey(const URI& uri) diff --git a/src/aws-cpp-sdk-core/source/smithy/client/AwsSmithyClientBase.cpp b/src/aws-cpp-sdk-core/source/smithy/client/AwsSmithyClientBase.cpp index 6140b870487b..8886461ed0db 100644 --- a/src/aws-cpp-sdk-core/source/smithy/client/AwsSmithyClientBase.cpp +++ b/src/aws-cpp-sdk-core/source/smithy/client/AwsSmithyClientBase.cpp @@ -11,6 +11,7 @@ #include #include +#include #include #include #include @@ -24,9 +25,6 @@ #include #include #include -#if defined(AWS_CRT_HTTP_USE_ASYNC_IO) -#include -#endif #include #include #include @@ -44,18 +42,6 @@ namespace smithy { } namespace { -#if defined(AWS_CRT_HTTP_USE_ASYNC_IO) -class SmithySyncInlineExecutor : public Aws::Utils::Threading::Executor -{ -protected: - bool SubmitToThread(std::function&& task) override - { - task(); - return true; - } -}; -#endif - void AddHeadersToRequest(const std::shared_ptr& httpRequest, const Aws::Http::HeaderValueCollection& headerValues) { @@ -286,6 +272,26 @@ void AwsSmithyClientBase::MakeRequestAsync(Aws::AmazonWebServiceRequest const* c ResponseHandlerFunc&& responseHandler, AuthResolvedCallback&& authCallback, std::shared_ptr pExecutor) const +{ + const auto pRequestCtx = CreateRequestContext(request, requestName, method, std::move(endpointCallback), std::move(responseHandler), std::move(authCallback), std::move(pExecutor)); + if (!pRequestCtx) + { + return; + } +#if defined(AWS_CRT_HTTP_USE_ASYNC_IO) + RunAttemptsAsync(pRequestCtx); +#else + RunAttemptsBlocking(pRequestCtx); +#endif +} + +std::shared_ptr AwsSmithyClientBase::CreateRequestContext(Aws::AmazonWebServiceRequest const* const request, + const char* requestName, + Aws::Http::HttpMethod method, + EndpointUpdateCallback&& endpointCallback, + ResponseHandlerFunc&& responseHandler, + AuthResolvedCallback&& authCallback, + std::shared_ptr pExecutor) const { if (!pExecutor) { @@ -295,7 +301,7 @@ void AwsSmithyClientBase::MakeRequestAsync(Aws::AmazonWebServiceRequest const* c { assert(!"Missing a mandatory response handler!"); AWS_LOGSTREAM_FATAL(AWS_SMITHY_CLIENT_LOG, "Unable to continue AWSClient request: response handler is missing!"); - return; + return nullptr; } auto authResolver = request->GetRequestSpecificSupportedAuth().empty() ? nullptr : Aws::MakeShared>(AWS_SMITHY_CLIENT_LOG, request->GetRequestSpecificSupportedAuth()); std::shared_ptr pRequestCtx = @@ -308,13 +314,13 @@ void AwsSmithyClientBase::MakeRequestAsync(Aws::AmazonWebServiceRequest const* c { responseHandler(std::move(outcome)); } ); - return; + return nullptr; } pRequestCtx->m_method = method; ResponseHandlerFunc modifiedResponseHandler = [&](HttpResponseOutcome&& outcome){ auto capturedOutcome = std::make_shared(std::move(outcome)); - pExecutor->Submit([capturedOutcome, &responseHandler]() + pExecutor->Submit([capturedOutcome, responseHandler]() { responseHandler(std::move(*capturedOutcome)); }); @@ -325,7 +331,7 @@ void AwsSmithyClientBase::MakeRequestAsync(Aws::AmazonWebServiceRequest const* c std::move(modifiedResponseHandler), std::move(endpointCallback))) { - return; + return nullptr; } pRequestCtx->m_requestInfo.attempt = 1; pRequestCtx->m_attemptSkew = m_clientSkew->Load(); @@ -336,7 +342,12 @@ void AwsSmithyClientBase::MakeRequestAsync(Aws::AmazonWebServiceRequest const* c pRequestCtx->m_interceptorContext = Aws::MakeShared(AWS_SMITHY_CLIENT_LOG, *request); pRequestCtx->m_responseHandler = std::move(responseHandler); pRequestCtx->m_authResolvedCallback = std::move(authCallback); + return pRequestCtx; +} +#if defined(AWS_CRT_HTTP_USE_ASYNC_IO) +void AwsSmithyClientBase::RunAttemptsAsync(const std::shared_ptr& pRequestCtx) const +{ const AwsSmithyClientBase* self = this; auto prepareAttempt = [self, pRequestCtx]() -> std::shared_ptr { @@ -348,13 +359,9 @@ void AwsSmithyClientBase::MakeRequestAsync(Aws::AmazonWebServiceRequest const* c }; auto onComplete = [pRequestCtx]() { - pRequestCtx->m_pExecutor->Submit([pRequestCtx]() - { - pRequestCtx->m_responseHandler(std::move(pRequestCtx->m_outcome)); - }); + pRequestCtx->m_responseHandler(std::move(pRequestCtx->m_outcome)); }; -#if defined(AWS_CRT_HTTP_USE_ASYNC_IO) pRequestCtx->m_outcome = HttpResponseOutcome(ClientError(CoreErrors::USER_CANCELLED, "", "Request cancelled before completion", false/*retryable*/)); auto error = m_httpClient->MakeRequestAsync(prepareAttempt, evaluateAttempt, onComplete, pRequestCtx->m_pExecutor); if (error.has_value()) @@ -362,7 +369,28 @@ void AwsSmithyClientBase::MakeRequestAsync(Aws::AmazonWebServiceRequest const* c pRequestCtx->m_outcome = HttpResponseOutcome(*error); onComplete(); } -#else +} +#endif + +void AwsSmithyClientBase::RunAttemptsBlocking(const std::shared_ptr& pRequestCtx) const +{ + const AwsSmithyClientBase* self = this; + auto prepareAttempt = [self, pRequestCtx]() -> std::shared_ptr + { + return self->AttemptOneRequestAsync(pRequestCtx); + }; + auto evaluateAttempt = [self, pRequestCtx](std::shared_ptr httpResponse) -> Aws::Http::HttpClient::AttemptOutcome + { + return self->HandleAsyncReply(pRequestCtx, std::move(httpResponse)); + }; + auto onComplete = [pRequestCtx]() + { + pRequestCtx->m_pExecutor->Submit([pRequestCtx]() + { + pRequestCtx->m_responseHandler(std::move(pRequestCtx->m_outcome)); + }); + }; + for (std::shared_ptr httpRequest = prepareAttempt(); httpRequest; httpRequest = prepareAttempt()) { auto httpResponse = TracingUtils::MakeCallWithTiming>( @@ -385,7 +413,6 @@ void AwsSmithyClientBase::MakeRequestAsync(Aws::AmazonWebServiceRequest const* c m_httpClient->RetryRequestSleep(outcome.backoff); } onComplete(); -#endif } void AwsSmithyClientBase::UpdateAuthSchemeFromEndpoint(const Aws::Endpoint::AWSEndpoint& endpoint, smithy::AuthSchemeOption& authscheme) const @@ -743,28 +770,6 @@ AwsSmithyClientBase::MakeRequestSync(Aws::AmazonWebServiceRequest const * const EndpointUpdateCallback&& endpointCallback, AuthResolvedCallback&& authCallback = nullptr) const { -#if defined(AWS_CRT_HTTP_USE_ASYNC_IO) - struct SyncState - { - HttpResponseOutcome outcome = ClientError(CoreErrors::INTERNAL_FAILURE, "", "Response handler was not called", false); - Aws::Utils::Threading::Semaphore signal{0, 1}; - }; - auto state = Aws::MakeShared(AWS_SMITHY_CLIENT_LOG); - - std::shared_ptr pExecutor = Aws::MakeShared(AWS_SMITHY_CLIENT_LOG); - assert(pExecutor); - - ResponseHandlerFunc responseHandler = [state](HttpResponseOutcome&& asyncOutcome) - { - state->outcome = std::move(asyncOutcome); - state->signal.Release(); - }; - - this->MakeRequestAsync(request, requestName, method, std::move(endpointCallback), std::move(responseHandler), std::move(authCallback), pExecutor); - state->signal.WaitOne(); - - return std::move(state->outcome); -#else std::shared_ptr pExecutor = Aws::MakeShared(AWS_SMITHY_CLIENT_LOG); assert(pExecutor); @@ -776,12 +781,14 @@ AwsSmithyClientBase::MakeRequestSync(Aws::AmazonWebServiceRequest const * const pExecutor->Submit([&]() { - this->MakeRequestAsync(request, requestName, method, std::move(endpointCallback), std::move(responseHandler), std::move(authCallback), pExecutor); + if (const auto pRequestCtx = CreateRequestContext(request, requestName, method, std::move(endpointCallback), std::move(responseHandler), std::move(authCallback), pExecutor)) + { + RunAttemptsBlocking(pRequestCtx); + } }); pExecutor->WaitUntilStopped(); return outcome; -#endif } void AwsSmithyClientBase::DisableRequestProcessing() @@ -800,8 +807,23 @@ AwsSmithyClientBase::StreamOutcome AwsSmithyClientBase::MakeRequestWithUnparsedR EndpointUpdateCallback&& endpointCallback ) const { + if (const auto asyncOperationState = request ? Aws::Client::ProtocolAsyncOperationState::Take(*request) : nullptr) + { + MakeRequestAsync(request, requestName, method, std::move(endpointCallback), + [asyncOperationState](HttpResponseOutcome&& httpResponseOutcome) + { + asyncOperationState->Complete(ProcessUnparsedResponse(httpResponseOutcome)); + }, + nullptr, m_clientConfig->executor); + return StreamOutcome(ClientError(CoreErrors::INTERNAL_FAILURE, "", "Request continues on the async request path", false)); + } + auto httpResponseOutcome = MakeRequestSync(request, requestName, method, std::move(endpointCallback)); + return ProcessUnparsedResponse(httpResponseOutcome); +} +AwsSmithyClientBase::StreamOutcome AwsSmithyClientBase::ProcessUnparsedResponse(HttpResponseOutcome& httpResponseOutcome) +{ if (httpResponseOutcome.IsSuccess()) { return StreamOutcome(Aws::AmazonWebServiceResult( diff --git a/src/aws-cpp-sdk-core/source/smithy/tracing/impl/opentelemetry/TraceAdapters.cpp b/src/aws-cpp-sdk-core/source/smithy/tracing/impl/opentelemetry/TraceAdapters.cpp index 3144ab970467..787aa19570e4 100644 --- a/src/aws-cpp-sdk-core/source/smithy/tracing/impl/opentelemetry/TraceAdapters.cpp +++ b/src/aws-cpp-sdk-core/source/smithy/tracing/impl/opentelemetry/TraceAdapters.cpp @@ -50,6 +50,10 @@ void OtelSpanAdapter::end() { otelSpan->End(); } +void OtelSpanAdapter::releaseScope() { + opentelemetry::trace::Scope released(std::move(otelScope)); +} + opentelemetry::trace::StatusCode OtelSpanAdapter::convertStatusCode(TraceSpanStatus status) { if (status == TraceSpanStatus::OK) { return opentelemetry::trace::StatusCode::kOk; diff --git a/tests/aws-cpp-sdk-bedrock-runtime-integration-tests/IntegrationTests.cpp b/tests/aws-cpp-sdk-bedrock-runtime-integration-tests/IntegrationTests.cpp index b1b9642cb590..852a4ce803e3 100644 --- a/tests/aws-cpp-sdk-bedrock-runtime-integration-tests/IntegrationTests.cpp +++ b/tests/aws-cpp-sdk-bedrock-runtime-integration-tests/IntegrationTests.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -196,6 +197,38 @@ TEST_F(BedrockRuntimeTests, TestInvokeModel) ASSERT_FALSE(ss.str().empty()); } +TEST_F(BedrockRuntimeTests, TestConverseStreamAsync) +{ + auto bedrockRequest = ConverseStreamRequest{}.WithModelId("us.amazon.nova-2-lite-v1:0") + .AddMessages(Message{}.WithRole(ConversationRole::user) + .AddContent(ContentBlock{}.WithText("Why is it always next year for the Minnesota Vikings?"))); + + Aws::String streamedText; + bool messageStopReceived = false; + ConverseStreamHandler streamHandler; + streamHandler.SetContentBlockDeltaEventCallback([&](const ContentBlockDeltaEvent& event) + { + streamedText += event.GetDelta().GetText(); + }); + streamHandler.SetMessageStopEventCallback([&](const MessageStopEvent&) + { + messageStopReceived = true; + }); + bedrockRequest.SetEventStreamHandler(streamHandler); + + std::promise converseSucceeded; + m_client->ConverseStreamAsync(bedrockRequest, + [&](const BedrockRuntimeClient*, const ConverseStreamRequest&, const ConverseStreamOutcome& outcome, + const std::shared_ptr&) + { + EXPECT_TRUE(outcome.IsSuccess()) << outcome.GetError().GetExceptionName() << " - " << outcome.GetError().GetMessage(); + converseSucceeded.set_value(outcome.IsSuccess()); + }); + ASSERT_TRUE(converseSucceeded.get_future().get()); + EXPECT_TRUE(messageStopReceived); + EXPECT_FALSE(streamedText.empty()); +} + TEST_F(BedrockRuntimeTests, TestInvokeModelWithBidirectionalStreamCompletesForShutdown) { const Aws::String promptName = Aws::Utils::UUID::RandomUUID(); diff --git a/tests/aws-cpp-sdk-dynamodb-integration-tests/TableOperationTest.cpp b/tests/aws-cpp-sdk-dynamodb-integration-tests/TableOperationTest.cpp index 05ddfac63557..9ad6c10ce377 100644 --- a/tests/aws-cpp-sdk-dynamodb-integration-tests/TableOperationTest.cpp +++ b/tests/aws-cpp-sdk-dynamodb-integration-tests/TableOperationTest.cpp @@ -39,6 +39,7 @@ #include #include +#include #include using namespace Aws::Auth; @@ -1643,3 +1644,25 @@ TEST_F(TableOperationTest, TestWriteDataApi) { } // anonymous namespace +TEST_F(TableOperationTest, AsyncHandlerHoldingTheLastClientReferenceCompletes) +{ + GTEST_FLAG_SET(death_test_style, "threadsafe"); + EXPECT_EXIT( + { + Aws::Client::ClientConfiguration config; + config.region = "us-east-1"; + auto destroyed = std::make_shared>(); + std::shared_ptr client(Aws::New(ALLOCATION_TAG, config), [destroyed](DynamoDBClient* toDelete) { + Aws::Delete(toDelete); + destroyed->set_value(); + }); + + client->ListTablesAsync([client](const DynamoDBClient*, const ListTablesRequest&, const ListTablesOutcome&, + const std::shared_ptr&) {}); + client.reset(); + + const auto status = destroyed->get_future().wait_for(std::chrono::seconds(30)); + std::_Exit(status == std::future_status::ready ? 0 : 1); + }, + ::testing::ExitedWithCode(0), ""); +} diff --git a/tests/aws-cpp-sdk-lambda-integration-tests/FunctionTest.cpp b/tests/aws-cpp-sdk-lambda-integration-tests/FunctionTest.cpp index 9c4bbdccca80..b5172a042715 100644 --- a/tests/aws-cpp-sdk-lambda-integration-tests/FunctionTest.cpp +++ b/tests/aws-cpp-sdk-lambda-integration-tests/FunctionTest.cpp @@ -3,6 +3,7 @@ * SPDX-License-Identifier: Apache-2.0. */ #include +#include #include #include @@ -23,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -395,6 +397,44 @@ TEST_F(FunctionTest, TestInvokeSync) EXPECT_EQ("ThePayload", jsonResponse.View().GetString("input")); } +TEST_F(FunctionTest, TestInvokeWithResponseStreamAsync) +{ + InvokeWithResponseStreamRequest invokeRequest; + invokeRequest.SetFunctionName(BuildResourceName(BASE_SIMPLE_FUNCTION)); + invokeRequest.SetContentType("application/javascript"); + std::shared_ptr payload = Aws::MakeShared("FunctionTest"); + Aws::Utils::Json::JsonValue jsonPayload; + jsonPayload.WithString("input", "ThePayload"); + *payload << jsonPayload.View().WriteReadable(); + invokeRequest.SetBody(payload); + + Aws::String streamedPayload; + bool isCompleteEventReceived = false; + InvokeWithResponseStreamHandler handler; + handler.SetInvokeResponseStreamUpdateCallback([&](const InvokeResponseStreamUpdate& update) + { + streamedPayload.append(update.GetPayload().begin(), update.GetPayload().end()); + }); + handler.SetInvokeWithResponseStreamCompleteEventCallback([&](const InvokeWithResponseStreamCompleteEvent&) + { + isCompleteEventReceived = true; + }); + invokeRequest.SetEventStreamHandler(handler); + + std::promise invokeSucceeded; + m_client->InvokeWithResponseStreamAsync(invokeRequest, + [&](const LambdaClient*, const InvokeWithResponseStreamRequest&, const InvokeWithResponseStreamOutcome& outcome, + const std::shared_ptr&) + { + AWS_EXPECT_SUCCESS(outcome); + invokeSucceeded.set_value(outcome.IsSuccess()); + }); + ASSERT_TRUE(invokeSucceeded.get_future().get()); + EXPECT_TRUE(isCompleteEventReceived); + auto jsonResponse = Aws::Utils::Json::JsonValue(streamedPayload); + EXPECT_EQ("ThePayload", jsonResponse.View().GetString("input")); +} + TEST_F(FunctionTest, TestInvokeSyncUnhandledFunctionError) { diff --git a/tests/aws-cpp-sdk-s3-integration-tests/BucketAndObjectOperationTest.cpp b/tests/aws-cpp-sdk-s3-integration-tests/BucketAndObjectOperationTest.cpp index 888dfd3d93d9..af4b9a4c7617 100644 --- a/tests/aws-cpp-sdk-s3-integration-tests/BucketAndObjectOperationTest.cpp +++ b/tests/aws-cpp-sdk-s3-integration-tests/BucketAndObjectOperationTest.cpp @@ -47,6 +47,7 @@ #include #include #include +#include #include #ifdef _MSC_VER @@ -1583,6 +1584,89 @@ namespace ASSERT_TRUE(isStatsEventReceived); } + TEST_F(BucketAndObjectOperationTest, TestObjectOperationWithEventStreamAsync) + { + GTEST_SKIP() << "Select objects is not supported on new AWS accounts"; + const Aws::String fullBucketName = CalculateBucketName(BASE_EVENT_STREAM_TEST_BUCKET_NAME.c_str()); + SCOPED_TRACE(Aws::String("FullBucketName ") + fullBucketName); + CreateBucketRequest createBucketRequest; + createBucketRequest.SetBucket(fullBucketName); + createBucketRequest.SetACL(BucketCannedACL::private_); + CreateBucketOutcome createBucketOutcome = CreateBucket(createBucketRequest); + AWS_ASSERT_SUCCESS(createBucketOutcome); + ASSERT_TRUE(WaitForBucketToPropagate(fullBucketName, Client)); + TagTestBucket(fullBucketName, Client); + + PutObjectRequest putObjectRequest; + putObjectRequest.SetBucket(fullBucketName); + + std::shared_ptr objectStream = Aws::MakeShared(ALLOCATION_TAG); + *objectStream << "Name,Number\nAlice,1\nBob,2"; + Aws::String firstColumn = "Name\nAlice\nBob\n"; + objectStream->flush(); + putObjectRequest.SetBody(objectStream); + putObjectRequest.SetKey(TEST_EVENT_STREAM_OBJ_KEY); + auto objectSize = putObjectRequest.GetBody()->tellp(); + putObjectRequest.SetContentLength(static_cast(objectSize)); + putObjectRequest.SetContentMD5(HashingUtils::Base64Encode(HashingUtils::CalculateMD5(*putObjectRequest.GetBody()))); + putObjectRequest.SetContentType("text/csv"); + + PutObjectOutcome putObjectOutcome = Client->PutObject(putObjectRequest); + AWS_ASSERT_SUCCESS(putObjectOutcome); + + ASSERT_TRUE(WaitForObjectToPropagate(fullBucketName, TEST_EVENT_STREAM_OBJ_KEY)); + + SelectObjectContentRequest selectObjectContentRequest; + selectObjectContentRequest.SetBucket(fullBucketName); + selectObjectContentRequest.SetKey(TEST_EVENT_STREAM_OBJ_KEY); + selectObjectContentRequest.SetExpressionType(ExpressionType::SQL); + selectObjectContentRequest.SetExpression("select s._1 from S3Object s"); + + CSVInput csvInput; + csvInput.SetFileHeaderInfo(FileHeaderInfo::NONE); + InputSerialization inputSerialization; + inputSerialization.SetCSV(csvInput); + selectObjectContentRequest.SetInputSerialization(inputSerialization); + + CSVOutput csvOutput; + OutputSerialization outputSerialization; + outputSerialization.SetCSV(csvOutput); + selectObjectContentRequest.SetOutputSerialization(outputSerialization); + + bool isRecordsEventReceived = false; + bool isStatsEventReceived = false; + + SelectObjectContentHandler handler; + handler.SetRecordsEventCallback([&](const RecordsEvent& recordsEvent) + { + isRecordsEventReceived = true; + auto recordsVector = recordsEvent.GetPayload(); + Aws::String records(recordsVector.begin(), recordsVector.end()); + ASSERT_STREQ(firstColumn.c_str(), records.c_str()); + }); + handler.SetStatsEventCallback([&](const StatsEvent& statsEvent) + { + isStatsEventReceived = true; + ASSERT_EQ(static_cast(objectSize), statsEvent.GetDetails().GetBytesScanned()); + ASSERT_EQ(static_cast(objectSize), statsEvent.GetDetails().GetBytesProcessed()); + ASSERT_EQ(static_cast(firstColumn.size()), statsEvent.GetDetails().GetBytesReturned()); + }); + + selectObjectContentRequest.SetEventStreamHandler(handler); + + std::promise selectSucceeded; + Client->SelectObjectContentAsync(selectObjectContentRequest, + [&](const S3Client*, const SelectObjectContentRequest&, const SelectObjectContentOutcome& outcome, + const std::shared_ptr&) + { + AWS_EXPECT_SUCCESS(outcome); + selectSucceeded.set_value(outcome.IsSuccess()); + }); + ASSERT_TRUE(selectSucceeded.get_future().get()); + ASSERT_TRUE(isRecordsEventReceived); + ASSERT_TRUE(isStatsEventReceived); + } + // This test is to test failed event stream request will not cause crash during retry. TEST_F(BucketAndObjectOperationTest, TestSelectObjectOperationWithEventStreamFailWithRetry) { diff --git a/tests/testing-resources/include/aws/testing/mocks/http/MockHttpClient.h b/tests/testing-resources/include/aws/testing/mocks/http/MockHttpClient.h index 5d3ae1b85a1c..830821f02b5a 100644 --- a/tests/testing-resources/include/aws/testing/mocks/http/MockHttpClient.h +++ b/tests/testing-resources/include/aws/testing/mocks/http/MockHttpClient.h @@ -78,6 +78,8 @@ class MockHttpClient : public Aws::Http::HttpClient // inline. Off by default so existing inline-completion tests are unaffected. void SetCompleteAsynchronously(bool completeAsynchronously) { m_completeAsynchronously = completeAsynchronously; } + bool SupportsAsyncRequests() const override { return true; } + Aws::Crt::Optional> MakeRequestAsync( const Aws::Http::HttpClient::PrepareAttempt& prepareAttempt, const Aws::Http::HttpClient::EvaluateAttempt& evaluateAttempt, diff --git a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/common/ServiceInvokeOperationSource.vm b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/common/ServiceInvokeOperationSource.vm index ce2f8b5e2169..4578b8a7d549 100644 --- a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/common/ServiceInvokeOperationSource.vm +++ b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/common/ServiceInvokeOperationSource.vm @@ -45,7 +45,7 @@ ${className}::InvokeOperationOutcome ${className}::InvokeServiceOperation( } #end - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming(request, std::move(span), [&]() -> InvokeOperationOutcome { auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, @@ -67,7 +67,7 @@ ${className}::InvokeOperationOutcome ${className}::InvokeServiceOperation( return InvokeOperationOutcome{MakeRequest(request, endpointResolutionOutcome.GetResult(), httpMethod, #if($serviceHasNonDefaultSigner)signerName#{else}Aws::Auth::SIGV4_SIGNER#end)}; }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}}); } diff --git a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/common/operation/withrequest/OperationAsync.vm b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/common/operation/withrequest/OperationAsync.vm index 54e5aed67b20..1f3049aabb06 100644 --- a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/common/operation/withrequest/OperationAsync.vm +++ b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/common/operation/withrequest/OperationAsync.vm @@ -7,10 +7,7 @@ #end#if($serviceModel.metadata.serviceId == "S3" && $operation.s3CrtEnabled) void ${className}::${operation.name}Async(${constText}${operation.request.shape.name}& request, const ${operation.name}ResponseReceivedHandler& handler, const std::shared_ptr& context) const { - m_clientConfiguration.executor->Submit( [this, ${refText}request, handler, context]() - { - handler(this, request, ${operation.name}(request), context); - } ); + SubmitAsync(&${className}::${operation.name}, request, handler, context); } #end \ No newline at end of file diff --git a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/common/operation/withrequest/OperationOutcomeCallable.vm b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/common/operation/withrequest/OperationOutcomeCallable.vm index ee4ad8d8177e..b191f65a8882 100644 --- a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/common/operation/withrequest/OperationOutcomeCallable.vm +++ b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/common/operation/withrequest/OperationOutcomeCallable.vm @@ -7,10 +7,7 @@ #end#if($serviceModel.metadata.serviceId == "S3" && $operation.s3CrtEnabled) ${operation.name}OutcomeCallable ${className}::${operation.name}Callable(${constText}${operation.request.shape.name}& request) const { - auto task = Aws::MakeShared< std::packaged_task< ${operation.name}Outcome() > >(ALLOCATION_TAG, [this, ${refText}request](){ return this->${operation.name}(request); } ); - auto packagedFunction = [task]() { (*task)(); }; - m_clientConfiguration.executor->Submit(packagedFunction); - return task->get_future(); + return SubmitCallable(&${className}::${operation.name}, request); } #end \ No newline at end of file diff --git a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/json/serviceoperations/withrequest/OperationOutcome.vm b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/json/serviceoperations/withrequest/OperationOutcome.vm index 4a5af3763102..baa747fc7977 100644 --- a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/json/serviceoperations/withrequest/OperationOutcome.vm +++ b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/json/serviceoperations/withrequest/OperationOutcome.vm @@ -12,7 +12,11 @@ ${operation.name}Outcome ${className}::${operation.name}(${constText}${operation auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".${operation.name}", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); +#if($operation.result.shape.hasStreamMembers() || $operation.result.shape.hasEventStreamMembers()) + return Aws::Client::AsyncOperationState::MakeCallWithTiming<${operation.name}Outcome>(request, std::move(span), +#else return TracingUtils::MakeCallWithTiming<${operation.name}Outcome>( +#end [&]()-> ${operation.name}Outcome { #parse("com/amazonaws/util/awsclientgenerator/velocity/cpp/common/ServiceClientOperationEndpointPrepareCommonBody.vm") #parse("com/amazonaws/util/awsclientgenerator/velocity/cpp/common/UriRequestQueryParams.vm") @@ -54,7 +58,11 @@ ${operation.name}Outcome ${className}::${operation.name}(${constText}${operation #end }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, +#if($operation.result.shape.hasStreamMembers() || $operation.result.shape.hasEventStreamMembers()) + meter, +#else *meter, +#end {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); #end } diff --git a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/machinelearning/MachineLearningServiceClientSource.vm b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/machinelearning/MachineLearningServiceClientSource.vm index 1658fdc2a86a..3ed0f5d99f9a 100644 --- a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/machinelearning/MachineLearningServiceClientSource.vm +++ b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/machinelearning/MachineLearningServiceClientSource.vm @@ -60,7 +60,7 @@ ${operation.name}Outcome ${className}::${operation.name}(const ${operation.reque auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming<${operation.name}Outcome>( + return Aws::Client::AsyncOperationState::MakeCallWithTiming<${operation.name}Outcome>(request, std::move(span), [&]() -> ${operation.name}Outcome{ #if($serviceModel.endpointRules) #parse("com/amazonaws/util/awsclientgenerator/velocity/cpp/common/ServiceClientOperationEndpointPrepareCommonBody.vm") @@ -80,7 +80,7 @@ ${operation.name}Outcome ${className}::${operation.name}(const ${operation.reque #end##-#if($serviceModel.endpointRules) }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, + meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/smithy/SmithyRestXmlServiceClientOperations.vm b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/smithy/SmithyRestXmlServiceClientOperations.vm index 9541454ff53b..d0f8e7fe9d70 100644 --- a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/smithy/SmithyRestXmlServiceClientOperations.vm +++ b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/smithy/SmithyRestXmlServiceClientOperations.vm @@ -50,7 +50,11 @@ ${operation.name}Outcome ${className}::${operation.name}(${constText}${operation return Aws::MakeShared(ALLOCATION_TAG, serviceSpecificParameters); }()); #end +#if($operation.result.shape.hasStreamMembers() || $operation.result.shape.hasEventStreamMembers()) + return Aws::Client::AsyncOperationState::MakeCallWithTiming<${operation.name}Outcome>(request, std::move(span), +#else return TracingUtils::MakeCallWithTiming<${operation.name}Outcome>( +#end [&]()-> ${operation.name}Outcome { #parse("com/amazonaws/util/awsclientgenerator/velocity/cpp/smithy/SmithyServiceClientOperationsEndpointPrepareCommonBody.vm") #if($operation.hasPreSignedUrl) @@ -79,7 +83,11 @@ ${operation.name}Outcome ${className}::${operation.name}(${constText}${operation #end }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, +#if($operation.result.shape.hasStreamMembers() || $operation.result.shape.hasEventStreamMembers()) + meter, +#else *meter, +#end {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); #end } diff --git a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/smithy/SmithyServiceInvokeOperationSource.vm b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/smithy/SmithyServiceInvokeOperationSource.vm index 88393d0ed898..eeed86624bc7 100644 --- a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/smithy/SmithyServiceInvokeOperationSource.vm +++ b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/smithy/SmithyServiceInvokeOperationSource.vm @@ -23,7 +23,7 @@ ${className}::InvokeOperationOutcome ${className}::InvokeServiceOperation( {TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE}}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( + return Aws::Client::AsyncOperationState::MakeCallWithTiming(request, std::move(span), [&]() -> InvokeOperationOutcome { auto result = MakeRequestDeserialize(&request, operationName, httpMethod, [&](Aws::Endpoint::AWSEndpoint& resolvedEndpoint) -> void { #if($metadata.protocol == "rest-json" || $metadata.protocol == "rest-xml") @@ -34,7 +34,7 @@ ${className}::InvokeOperationOutcome ${className}::InvokeServiceOperation( }); return result.IsSuccess() ? InvokeOperationOutcome(result.GetResultWithOwnership()) : InvokeOperationOutcome(std::move(result.GetError())); }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, operationName}, {TracingUtils::SMITHY_SERVICE_DIMENSION, serviceName}}); } diff --git a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/smithy/SmithyServiceOperationsSource.vm b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/smithy/SmithyServiceOperationsSource.vm index e0da8d400935..c5e0b332212c 100644 --- a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/smithy/SmithyServiceOperationsSource.vm +++ b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/smithy/SmithyServiceOperationsSource.vm @@ -12,7 +12,11 @@ ${operation.name}Outcome ${className}::${operation.name}(${constText}${operation auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".${operation.name}", {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); +#if($operation.result.shape.hasStreamMembers() || $operation.result.shape.hasEventStreamMembers()) + return Aws::Client::AsyncOperationState::MakeCallWithTiming<${operation.name}Outcome>(request, std::move(span), +#else return TracingUtils::MakeCallWithTiming<${operation.name}Outcome>( +#end [&]()-> ${operation.name}Outcome { #if($operation.result && $operation.result.shape.hasEventStreamMembers()) request.SetResponseStreamFactory( @@ -37,7 +41,11 @@ ${operation.name}Outcome ${className}::${operation.name}(${constText}${operation return result.IsSuccess() ? ${operation.name}Outcome(result.GetResultWithOwnership()) : ${operation.name}Outcome(std::move(result.GetError())); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, +#if($operation.result.shape.hasStreamMembers() || $operation.result.shape.hasEventStreamMembers()) + meter, +#else *meter, +#end {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); #end } diff --git a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/sqs/SQSServiceClientSource.vm b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/sqs/SQSServiceClientSource.vm index 749e6035f995..b10b3f788039 100644 --- a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/sqs/SQSServiceClientSource.vm +++ b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/sqs/SQSServiceClientSource.vm @@ -63,7 +63,7 @@ ${operation.name}Outcome ${className}::${operation.name}(const ${operation.reque auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming<${operation.name}Outcome>( + return Aws::Client::AsyncOperationState::MakeCallWithTiming<${operation.name}Outcome>(request, std::move(span), [&]() -> ${operation.name}Outcome { #set($operationsUseQueueUrlEndpoint = ['AddPermission' , 'RemovePermission' , 'ChangeMessageVisibility', 'DeleteQueue', 'DeleteMessage', 'GetQueueAttributes', 'ReceiveMessage', 'SetQueueAttributes', 'SendMessage', 'SendMessageBatch', 'ChangeMessageVisibilityBatch', @@ -79,7 +79,7 @@ ${operation.name}Outcome ${className}::${operation.name}(const ${operation.reque #end }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, + meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } diff --git a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/xml/rest/RestXmlServiceClientOperations.vm b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/xml/rest/RestXmlServiceClientOperations.vm index 15c9580e1b14..973b50338ce6 100644 --- a/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/xml/rest/RestXmlServiceClientOperations.vm +++ b/tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/xml/rest/RestXmlServiceClientOperations.vm @@ -40,7 +40,11 @@ ${operation.name}Outcome ${className}::${operation.name}(${constText}${operation auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, smithy::components::tracing::SpanKind::CLIENT); +#if($operation.result.shape.hasStreamMembers() || $operation.result.shape.hasEventStreamMembers()) + return Aws::Client::AsyncOperationState::MakeCallWithTiming<${operation.name}Outcome>(request, std::move(span), +#else return TracingUtils::MakeCallWithTiming<${operation.name}Outcome>( +#end [&]()-> ${operation.name}Outcome { #parse("com/amazonaws/util/awsclientgenerator/velocity/cpp/common/ServiceClientOperationEndpointPrepareCommonBody.vm") #parse("com/amazonaws/util/awsclientgenerator/velocity/cpp/common/UriRequestQueryParams.vm") @@ -88,7 +92,11 @@ ${operation.name}Outcome ${className}::${operation.name}(${constText}${operation #end }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, +#if($operation.result.shape.hasStreamMembers() || $operation.result.shape.hasEventStreamMembers()) + meter, +#else *meter, +#end {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); #end }