1
0
mirror of https://github.com/vector-im/riotX-android synced 2025-10-06 00:02:48 +02:00

Add changelog about sentry tracking

This commit is contained in:
Amit Kumar
2022-11-21 18:07:38 +05:30
parent 98762ef042
commit 42d8bbb7b3
2 changed files with 5 additions and 2 deletions

1
changelog.d/7602.sdk Normal file
View File

@@ -0,0 +1 @@
Add sentry tracking around send message task.

View File

@@ -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 <T> List<MetricPlugin>.measureTransaction(block: () -> T): T {
@@ -48,11 +49,12 @@ inline fun <T> List<MetricPlugin>.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 <T> List<SpannableMetricPlugin>.measureSpan(operation: String, description: String, block: () -> T): T {