iOS and tvOS Libraries for RUM
This page lists integrated libraries you can use for iOS and tvOS applications.
Alamofire
Starting from version 2.5.0
, the RUM iOS SDK can automatically track Alamofire requests.
- Configure RUM monitoring by following the Setup guide.
- Enable
URLSessionInstrumentation
for Alamofire.SessionDelegate
:
import Alamofire
import DatadogRUM
URLSessionInstrumentation.enable(with: .init(delegateClass: Alamofire.SessionDelegate.self))
For additional information on sampling rate, distributed tracing, and adding custom attributes to tracked RUM resources, refer to Advanced Configuration > Automatically track network requests.
Apollo GraphQL
Starting from version 2.5.0
, the RUM iOS SDK can automatically track Apollo GraphQL requests.
- Configure RUM monitoring by following the Setup guide.
- Enable
URLSessionInstrumentation
for Apollo.URLSessionClient
:
import Apollo
import DatadogRUM
URLSessionInstrumentation.enable(with: .init(delegateClass: Apollo.URLSessionClient.self))
For additional information on sampling rate, distributed tracing, and adding custom attributes to tracked RUM resources, refer to Advanced Configuration > Automatically track network requests.