File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
runtime/runtime-core/common/src/aws/smithy/kotlin/runtime/businessmetrics Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,6 @@ public enum class SmithyBusinessMetric(public override val identifier: String) :
8282 * Emits a business metric if the current [Attributes] instance is of type [ExecutionContext].
8383 */
8484@InternalApi
85- public fun Attributes.emitBusinessMetric (metric : BusinessMetric ): Unit =
86- when (this ) {
87- is ExecutionContext -> this .emitBusinessMetric(metric)
88- else -> throw UnsupportedOperationException (" Business metric emission is supported only for attributes of type 'execution context'" )
89- }
85+ public fun Attributes.emitBusinessMetric (metric : BusinessMetric ) {
86+ if (this is ExecutionContext ) this .emitBusinessMetric(metric)
87+ }
You can’t perform that action at this time.
0 commit comments