@@ -667,6 +667,7 @@ StreamOutcome AWSClient::MakeRequestWithUnparsedResponse(const Aws::Http::URI& u
667
667
const char * signerRegionOverride,
668
668
const char * signerServiceNameOverride) const
669
669
{
670
+ m_featureLogger.LogFeature (this , __func__);
670
671
HttpResponseOutcome httpResponseOutcome = AttemptExhaustively (uri, request, method, signerName, signerRegionOverride, signerServiceNameOverride);
671
672
if (httpResponseOutcome.IsSuccess ())
672
673
{
@@ -685,6 +686,7 @@ StreamOutcome AWSClient::MakeRequestWithUnparsedResponse(const Aws::Http::URI& u
685
686
const char * signerRegionOverride,
686
687
const char * signerServiceNameOverride) const
687
688
{
689
+ m_featureLogger.LogFeature (this , __func__);
688
690
HttpResponseOutcome httpResponseOutcome = AttemptExhaustively (uri, method, signerName, requestName, signerRegionOverride, signerServiceNameOverride);
689
691
if (httpResponseOutcome.IsSuccess ())
690
692
{
@@ -703,6 +705,7 @@ StreamOutcome AWSClient::MakeRequestWithUnparsedResponse(const Aws::AmazonWebSer
703
705
const char * signerRegionOverride,
704
706
const char * signerServiceNameOverride) const
705
707
{
708
+ m_featureLogger.LogFeature (this , __func__);
706
709
const Aws::Http::URI& uri = endpoint.GetURI ();
707
710
if (endpoint.GetAttributes ()) {
708
711
signerName = endpoint.GetAttributes ()->authScheme .GetName ().c_str ();
@@ -727,6 +730,7 @@ XmlOutcome AWSXMLClient::MakeRequestWithEventStream(const Aws::AmazonWebServiceR
727
730
const char * signerRegionOverride,
728
731
const char * signerServiceNameOverride) const
729
732
{
733
+ m_featureLogger.LogFeature (this , __func__);
730
734
const Aws::Http::URI& uri = endpoint.GetURI ();
731
735
if (endpoint.GetAttributes ()) {
732
736
signerName = endpoint.GetAttributes ()->authScheme .GetName ().c_str ();
@@ -751,6 +755,7 @@ XmlOutcome AWSXMLClient::MakeRequestWithEventStream(const Aws::Http::URI& uri,
751
755
const char * signerRegionOverride,
752
756
const char * signerServiceNameOverride) const
753
757
{
758
+ m_featureLogger.LogFeature (this , __func__);
754
759
HttpResponseOutcome httpOutcome = AttemptExhaustively (uri, request, method, signerName, signerRegionOverride, signerServiceNameOverride);
755
760
if (httpOutcome.IsSuccess ())
756
761
{
@@ -767,6 +772,7 @@ XmlOutcome AWSXMLClient::MakeRequestWithEventStream(const Aws::Http::URI& uri,
767
772
const char * signerRegionOverride,
768
773
const char * signerServiceNameOverride) const
769
774
{
775
+ m_featureLogger.LogFeature (this , __func__);
770
776
HttpResponseOutcome httpOutcome = AttemptExhaustively (uri, method, signerName, requestName, signerRegionOverride, signerServiceNameOverride);
771
777
if (httpOutcome.IsSuccess ())
772
778
{
@@ -925,31 +931,37 @@ void AWSClient::BuildHttpRequest(const Aws::AmazonWebServiceRequest& request, co
925
931
926
932
Aws::String AWSClient::GeneratePresignedUrl (const Aws::Http::URI& uri, Aws::Http::HttpMethod method, long long expirationInSeconds, const std::shared_ptr<Aws::Http::ServiceSpecificParameters> serviceSpecificParameter)
927
933
{
934
+ m_featureLogger.LogFeature (this , __func__);
928
935
return AWSUrlPresigner (*this ).GeneratePresignedUrl (uri, method, expirationInSeconds, serviceSpecificParameter);
929
936
}
930
937
931
938
Aws::String AWSClient::GeneratePresignedUrl (const Aws::Http::URI& uri, Aws::Http::HttpMethod method, const Aws::Http::HeaderValueCollection& customizedHeaders, long long expirationInSeconds, const std::shared_ptr<Aws::Http::ServiceSpecificParameters> serviceSpecificParameter)
932
939
{
940
+ m_featureLogger.LogFeature (this , __func__);
933
941
return AWSUrlPresigner (*this ).GeneratePresignedUrl (uri, method, customizedHeaders, expirationInSeconds, serviceSpecificParameter);
934
942
}
935
943
936
944
Aws::String AWSClient::GeneratePresignedUrl (const Aws::Http::URI& uri, Aws::Http::HttpMethod method, const char * region, long long expirationInSeconds, const std::shared_ptr<Aws::Http::ServiceSpecificParameters> serviceSpecificParameter) const
937
945
{
946
+ m_featureLogger.LogFeature (this , __func__);
938
947
return AWSUrlPresigner (*this ).GeneratePresignedUrl (uri, method, region, expirationInSeconds, serviceSpecificParameter);
939
948
}
940
949
941
950
Aws::String AWSClient::GeneratePresignedUrl (const Aws::Http::URI& uri, Aws::Http::HttpMethod method, const char * region, const Aws::Http::HeaderValueCollection& customizedHeaders, long long expirationInSeconds, const std::shared_ptr<Aws::Http::ServiceSpecificParameters> serviceSpecificParameter)
942
951
{
952
+ m_featureLogger.LogFeature (this , __func__);
943
953
return AWSUrlPresigner (*this ).GeneratePresignedUrl (uri, method, region, customizedHeaders, expirationInSeconds, serviceSpecificParameter);
944
954
}
945
955
946
956
Aws::String AWSClient::GeneratePresignedUrl (const Aws::Http::URI& uri, Aws::Http::HttpMethod method, const char * region, const char * serviceName, long long expirationInSeconds, const std::shared_ptr<Aws::Http::ServiceSpecificParameters> serviceSpecificParameter) const
947
957
{
958
+ m_featureLogger.LogFeature (this , __func__);
948
959
return AWSUrlPresigner (*this ).GeneratePresignedUrl (uri, method, region, serviceName, expirationInSeconds, serviceSpecificParameter);
949
960
}
950
961
951
962
Aws::String AWSClient::GeneratePresignedUrl (const Aws::Http::URI& uri, Aws::Http::HttpMethod method, const char * region, const char * serviceName, const Aws::Http::HeaderValueCollection& customizedHeaders, long long expirationInSeconds, const std::shared_ptr<Aws::Http::ServiceSpecificParameters> serviceSpecificParameter)
952
963
{
964
+ m_featureLogger.LogFeature (this , __func__);
953
965
return AWSUrlPresigner (*this ).GeneratePresignedUrl (uri, method, region, serviceName, customizedHeaders, expirationInSeconds, serviceSpecificParameter);
954
966
}
955
967
@@ -960,6 +972,7 @@ Aws::String AWSClient::GeneratePresignedUrl(const Aws::Http::URI& uri, Aws::Http
960
972
961
973
Aws::String AWSClient::GeneratePresignedUrl (const Aws::Http::URI& uri, Aws::Http::HttpMethod method, const char * region, const char * serviceName, const char * signerName, const Aws::Http::HeaderValueCollection& customizedHeaders, long long expirationInSeconds, const std::shared_ptr<Aws::Http::ServiceSpecificParameters> serviceSpecificParameter)
962
974
{
975
+ m_featureLogger.LogFeature (this , __func__);
963
976
return AWSUrlPresigner (*this ).GeneratePresignedUrl (uri, method, region, serviceName, signerName, customizedHeaders, expirationInSeconds, serviceSpecificParameter);
964
977
}
965
978
@@ -972,18 +985,21 @@ Aws::String AWSClient::GeneratePresignedUrl(const Aws::Endpoint::AWSEndpoint& en
972
985
const char * signerServiceNameOverride /* = nullptr */ ,
973
986
const std::shared_ptr<Aws::Http::ServiceSpecificParameters> serviceSpecificParameter)
974
987
{
988
+ m_featureLogger.LogFeature (this , __func__);
975
989
return AWSUrlPresigner (*this ).GeneratePresignedUrl (endpoint, method, customizedHeaders, expirationInSeconds, signerName, signerRegionOverride, signerServiceNameOverride, serviceSpecificParameter);
976
990
}
977
991
978
992
Aws::String AWSClient::GeneratePresignedUrl (const Aws::AmazonWebServiceRequest& request, const Aws::Http::URI& uri, Aws::Http::HttpMethod method, const char * region,
979
993
const Aws::Http::QueryStringParameterCollection& extraParams, long long expirationInSeconds, const std::shared_ptr<Aws::Http::ServiceSpecificParameters> serviceSpecificParameter) const
980
994
{
995
+ m_featureLogger.LogFeature (this , __func__);
981
996
return AWSUrlPresigner (*this ).GeneratePresignedUrl (request, uri, method, region, extraParams, expirationInSeconds, serviceSpecificParameter);
982
997
}
983
998
984
999
Aws::String AWSClient::GeneratePresignedUrl (const Aws::AmazonWebServiceRequest& request, const Aws::Http::URI& uri, Aws::Http::HttpMethod method, const char * region, const char * serviceName,
985
1000
const Aws::Http::QueryStringParameterCollection& extraParams, long long expirationInSeconds, const std::shared_ptr<Aws::Http::ServiceSpecificParameters> serviceSpecificParameter) const
986
1001
{
1002
+ m_featureLogger.LogFeature (this , __func__);
987
1003
return AWSUrlPresigner (*this ).GeneratePresignedUrl (request, uri, method, region, serviceName, extraParams, expirationInSeconds, serviceSpecificParameter);
988
1004
}
989
1005
@@ -997,17 +1013,20 @@ Aws::String AWSClient::GeneratePresignedUrl(const Aws::AmazonWebServiceRequest&
997
1013
long long expirationInSeconds,
998
1014
const std::shared_ptr<Aws::Http::ServiceSpecificParameters> serviceSpecificParameter) const
999
1015
{
1016
+ m_featureLogger.LogFeature (this , __func__);
1000
1017
return AWSUrlPresigner (*this ).GeneratePresignedUrl (request, uri, method, region, serviceName, signerName, extraParams, expirationInSeconds, serviceSpecificParameter);
1001
1018
}
1002
1019
1003
1020
Aws::String AWSClient::GeneratePresignedUrl (const Aws::AmazonWebServiceRequest& request, const Aws::Http::URI& uri, Aws::Http::HttpMethod method,
1004
1021
const Aws::Http::QueryStringParameterCollection& extraParams, long long expirationInSeconds, const std::shared_ptr<Aws::Http::ServiceSpecificParameters> serviceSpecificParameter) const
1005
1022
{
1023
+ m_featureLogger.LogFeature (this , __func__);
1006
1024
return AWSUrlPresigner (*this ).GeneratePresignedUrl (request, uri, method, extraParams, expirationInSeconds, serviceSpecificParameter);
1007
1025
}
1008
1026
1009
1027
std::shared_ptr<Aws::Http::HttpResponse> AWSClient::MakeHttpRequest (std::shared_ptr<Aws::Http::HttpRequest>& request) const
1010
1028
{
1029
+ m_featureLogger.LogFeature (this , __func__);
1011
1030
return m_httpClient->MakeRequest (request, m_readRateLimiter.get (), m_writeRateLimiter.get ());
1012
1031
}
1013
1032
@@ -1045,4 +1064,12 @@ void AWSClient::AppendRecursionDetectionHeader(std::shared_ptr<Aws::Http::HttpRe
1045
1064
xAmznTraceIdVal = xAmznTraceIdValEncodedStr.str ();
1046
1065
1047
1066
ioRequest->SetHeaderValue (Aws::Http::X_AMZN_TRACE_ID_HEADER, xAmznTraceIdVal);
1048
- }
1067
+ }
1068
+
1069
+ void FeatureLogger::LogFeature (const AWSClient* clientPtr, const std::string& featureMetadata) const
1070
+ {
1071
+ if (clientPtr)
1072
+ {
1073
+ clientPtr->m_userAgentInterceptor ->SetFeatureMetadataIfNotSet (featureMetadata);
1074
+ }
1075
+ }
0 commit comments