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:
parent
bc24bb4e88
commit
738811b297
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue