2

From firebase's help doc, it states

For all app types, Performance Monitoring automatically collects a trace for each network request issued by your app, called an HTTP/S network request trace Performance Monitoring automatically collects metrics for network requests that use the following networking libraries: URLSession, URLConnection

How are they tracking the http requests automatically ?

Murugappan Vr
  • 175
  • 1
  • 6

1 Answers1

4

On iOS, Firebase Performance Monitoring uses method swizzling to effectively rewrite calls to NSURLConnection to its own implementation (which in turn calls back into the original iOS implementation). This allows the SDK to record what the app is doing for HTTP requests.

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441