You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This automatically adds Datadog headers to your GraphQL requests, allowing them to be tracked by Datadog.
786
-
787
-
<divclass="alert alert-info">
788
-
<ul>
789
-
<li>The integration supports Apollo iOS version <code>1.0</code> and later.</li>
790
-
<li>The <code>query</code> and <code>mutation</code> type operations are tracked, <code>subscription</code> operations are not.</li>
791
-
<li>GraphQL payload sending is disabled by default. To enable it, set the <code>sendGraphQLPayloads</code> flag in the <code>DatadogApollo</code> interceptor constructor as follows:</li>
792
-
</ul>
793
-
794
-
<pre><codeclass="language-swift">
795
-
let datadogInterceptor = DatadogApollo.createInterceptor(sendGraphQLPayloads: true)
796
-
</code></pre>
797
-
</div>
798
-
799
756
### Automatically track errors
800
757
801
758
All "error" and "critical" logs sent with `Logger` are automatically reported as RUM errors and linked to the current RUM view:
For additional information on distributed tracing, adding custom attributes, and enabling GraphQL payload tracking, see [Advanced Configuration > Apollo instrumentation][7].
75
-
76
48
## SDWebImage
77
49
78
50
Starting from version `2.5.0`, the RUM iOS SDK can automatically track [SDWebImage][5] requests.
@@ -133,5 +105,3 @@ For additional information on sampling rate, distributed tracing, and adding cus
0 commit comments