-
Couldn't load subscription status.
- Fork 73
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
In AnrWatcher, CrashReporter, CrashReportIntegrationTest & PeriodicWorkTest we are using the Thread.getId() which is deprecated.
I suggest to make a utility function in common module of the sdk in the package io.opentelemetry.android.common.internal.utils
package io.opentelemetry.android.common.internal.utils
import android.os.Build
inline val Thread.threadIdCompat: Long
get() =
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.BAKLAVA) {
threadId()
} else {
@Suppress("DEPRECATION")
id
}and then replace all the usages in the above mentioned files
fractalwrench and breedx-splk
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed