We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b73088 commit dbfb973Copy full SHA for dbfb973
aws-runtime/aws-http/common/src/aws/sdk/kotlin/runtime/http/interceptors/BusinessMetricsInterceptor.kt
@@ -20,6 +20,7 @@ import aws.smithy.kotlin.runtime.http.request.toBuilder
20
public class BusinessMetricsInterceptor : HttpInterceptor {
21
override suspend fun modifyBeforeTransmit(context: ProtocolRequestInterceptorContext<Any, HttpRequest>): HttpRequest {
22
context.executionContext.getOrNull(BusinessMetrics)?.let { metrics ->
23
+ throw Exception("Metrics: $metrics")
24
val metricsString = formatMetrics(metrics)
25
val currentUserAgentHeader = context.protocolRequest.headers[USER_AGENT]
26
val modifiedRequest = context.protocolRequest.toBuilder()
0 commit comments