mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +00:00
Use the right analytics span as a parent in checkNetworkConnection (#6751)
`AnalyticsLongRunningTransaction.PushToWorkManager` was incorrectly used instead of `AnalyticsLongRunningTransaction.PushToNotification`, resulting in wrongly formatter analytic traces
This commit is contained in:
committed by
GitHub
parent
b11fcec985
commit
3234931d3c
+1
-1
@@ -153,7 +153,7 @@ class FetchPendingNotificationsWorker(
|
|||||||
|
|
||||||
private suspend fun checkNetworkConnection(requests: List<PushRequest>): Result? {
|
private suspend fun checkNetworkConnection(requests: List<PushRequest>): Result? {
|
||||||
val networkTimeoutSpans = requests.mapNotNull { request ->
|
val networkTimeoutSpans = requests.mapNotNull { request ->
|
||||||
val parent = analyticsService.getLongRunningTransaction(AnalyticsLongRunningTransaction.PushToWorkManager(request.eventId))
|
val parent = analyticsService.getLongRunningTransaction(AnalyticsLongRunningTransaction.PushToNotification(request.eventId))
|
||||||
parent?.startChild("Waiting for network connectivity", "await_network")
|
parent?.startChild("Waiting for network connectivity", "await_network")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user