track
suspend fun <T> track(transaction: String = defaultTransaction, operation: suspend () -> T): T
Content copied to clipboard
Tracks a given operation.
Works also with unsafe operations that throw exceptions, as the tracking gets stopped. The exceptions are not swallowed though.
Parameters
transaction
text describing the transaction
operation
function to track