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 b11fcec985
commit 3234931d3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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")
}