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:
1
changelog.d/7602.sdk
Normal file
1
changelog.d/7602.sdk
Normal file
@@ -0,0 +1 @@
|
||||
Add sentry tracking around send message task.
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user