diff --git a/changelog.d/7602.sdk b/changelog.d/7602.sdk new file mode 100644 index 0000000000..b3552a5ba2 --- /dev/null +++ b/changelog.d/7602.sdk @@ -0,0 +1 @@ +Add sentry tracking around send message task. diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/extensions/MetricsExtensions.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/extensions/MetricsExtensions.kt index 22166ff3d8..54a62690f6 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/extensions/MetricsExtensions.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/extensions/MetricsExtensions.kt @@ -25,9 +25,10 @@ import kotlin.contracts.contract /** * Executes the given [block] while measuring the transaction. * + * @param T type of the output from [block] * @param block Action/Task to be executed within this span. * - * @returns Output of the [block()] + * @return Output of the [block()] */ @OptIn(ExperimentalContracts::class) inline fun List.measureTransaction(block: () -> T): T { @@ -48,11 +49,12 @@ inline fun List.measureTransaction(block: () -> T): T { /** * Executes the given [block] while measuring a span. * + * @param T type of the output from [block] * @param operation Name of the new span. * @param description Description of the new span. * @param block Action/Task to be executed within this span. * - * @returns Output of the [block()] + * @return Output of the [block] */ @OptIn(ExperimentalContracts::class) inline fun List.measureSpan(operation: String, description: String, block: () -> T): T {