From 69466cfe4aac066dbfab1180069dfb542aca5f99 Mon Sep 17 00:00:00 2001 From: 0marperez Date: Thu, 31 Oct 2024 17:12:00 -0400 Subject: [PATCH] Undo commit from main --- .../runtime/http/operation/SdkOperationExecution.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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) + } } }