Skip to content

Instantly share code, notes, and snippets.

View ListOfFunctions.txt
+------------------------+----------------------+
| callStart() | callEnd() |
+------------------------+----------------------+
| dnsStart() | dnsEnd() |
+------------------------+----------------------+
| connectStart() | connectEnd() |
+------------------------+----------------------+
| connectionAcquired() | connectionReleased() |
+------------------------+----------------------+
@okshrey
okshrey / NetworkCallEventListener.kt
Last active Jul 19, 2022
NetworkCallEventListener logs network performance event metrics to an AnalyticsConsumer. Read more https://medium.com/@shr8bit/how-okcredit-app-boosted-network-performance-by-30-84109080c065
View NetworkCallEventListener.kt
package tech.okcredit.base.network
import okhttp3.*
import okhttp3.EventListener
import java.io.IOException
import java.net.InetAddress
import java.net.InetSocketAddress
import java.net.Proxy
import java.net.URL