Skip to content

Commit da211b2

Browse files
committed
feat: Add environment credentials feature tracking to User-Agent
- Add CREDENTIALS_ENV_VARS enum to UserAgentFeature with metric ID 'g' - Track environment credentials usage in AWSClient::AttemptOneRequest - Check for AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY presence - Implements env-credentials SEP specification for business metrics - Add unit test for environment credentials feature tracking Resolves environment credentials tracking for User-Agent 2.1 business metrics.
1 parent 29e4924 commit da211b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/aws-cpp-sdk-monitoring-unit-tests/CloudWatchUnitTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ TEST_F(CloudWatchTest, TestUserAgentCompressionTracking) {
107107
metricDatum.SetTimestamp(Aws::Utils::DateTime::Now());
108108

109109
// Create large metadata to exceed compression threshold
110-
std::string largeValue(20000, 'A'); // 20KB value to exceed compression threshold
110+
Aws::String largeValue(20000, 'A'); // 20KB value to exceed compression threshold
111111
Dimension dimension;
112112
dimension.SetName("LargeDimension");
113113
dimension.SetValue(largeValue);

0 commit comments

Comments
 (0)