+113
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
This commit updates an overload for runBlockingTraced that aims to work as a drop-in replacement for kotlinx.coroutines.runBlocking while tracing its execution. This change does the following: - Default context: Defaults to EmptyCoroutineContext, mirroring runBlocking. - Default spanName: Defaults the lambda to `null`, checks this later in `traceSection` - Add tests for runBlockingTraced This allows easy tracing adoption for runBlocking calls. Bug: 409734069 Flag: EXEMPT uses traceTag - TRACE_TAG_APP Test: atest RunBlockingTracedTest Change-Id: I223ba174975a7541e08e70002af4e3c3389b142f