diff --git a/runtime/protocol/http-client/common/src/aws/smithy/kotlin/runtime/http/operation/SdkOperationExecution.kt b/runtime/protocol/http-client/common/src/aws/smithy/kotlin/runtime/http/operation/SdkOperationExecution.kt index a765595b0..abd49a762 100644 --- a/runtime/protocol/http-client/common/src/aws/smithy/kotlin/runtime/http/operation/SdkOperationExecution.kt +++ b/runtime/protocol/http-client/common/src/aws/smithy/kotlin/runtime/http/operation/SdkOperationExecution.kt @@ -423,8 +423,11 @@ private fun emitIdentityBusinessMetrics(identity: Identity, context: ExecutionCo val identityAttributes = identity.attributes if (identityAttributes.contains(BusinessMetrics)) { - identityAttributes[BusinessMetrics].forEach { metric -> - context.emitBusinessMetric(metric) - } + identityAttributes[BusinessMetrics] + .toList() + .reversed() + .forEach { metric -> + context.emitBusinessMetric(metric) + } } }