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:
Jorge Martin Espinosa 2026-05-12 15:04:13 +02:00 committed by GitHub
parent bc24bb4e88
commit 738811b297

View file

@ -153,7 +153,7 @@ class FetchPendingNotificationsWorker(
private suspend fun checkNetworkConnection(requests: List<PushRequest>): Result? {
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")
}