Skip to content

Commit 9d36fed

Browse files
Fix graphql description, apollo interceptor not released yet (#32986)
* Fix graphql description, apollo interceptor not released yet * Remove documentation for Apollo Interceptor for iOS
1 parent ea3686c commit 9d36fed

File tree

2 files changed

+0
-73
lines changed

2 files changed

+0
-73
lines changed

content/en/real_user_monitoring/application_monitoring/ios/advanced_configuration.md

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -753,49 +753,6 @@ URLSessionInstrumentation.disable(delegateClass: <YourSessionDelegate>.self)
753753
{{% /tab %}}
754754
{{< /tabs >}}
755755
756-
#### Apollo instrumentation
757-
758-
1. Set up [RUM monitoring with Datadog iOS RUM][2].
759-
760-
2. Set up [URLSession instrumentation with the Datadog RUM SDK](#basic-network-instrumentation).
761-
762-
3. Add the following to your `Package.swift` file:
763-
764-
```swift
765-
dependencies: [
766-
.package(url: "https://github.com/DataDog/dd-sdk-ios-apollo-interceptor", .upToNextMajor(from: "1.0.0"))
767-
]
768-
```
769-
770-
4. Add the Datadog interceptor to your Apollo Client setup:
771-
772-
```swift
773-
import Apollo
774-
import DatadogApollo
775-
776-
class CustomInterceptorProvider: DefaultInterceptorProvider {
777-
override func interceptors<Operation: GraphQLOperation>(for operation: Operation) -> [ApolloInterceptor] {
778-
var interceptors = super.interceptors(for: operation)
779-
interceptors.insert(DatadogApollo.createInterceptor(), at: 0)
780-
return interceptors
781-
}
782-
}
783-
```
784-
785-
This automatically adds Datadog headers to your GraphQL requests, allowing them to be tracked by Datadog.
786-
787-
<div class="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><code class="language-swift">
795-
let datadogInterceptor = DatadogApollo.createInterceptor(sendGraphQLPayloads: true)
796-
</code></pre>
797-
</div>
798-
799756
### Automatically track errors
800757
801758
All "error" and "critical" logs sent with `Logger` are automatically reported as RUM errors and linked to the current RUM view:

content/en/real_user_monitoring/application_monitoring/ios/integrated_libraries.md

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ further_reading:
99
- link: https://github.com/DataDog/dd-sdk-ios
1010
tag: "Source Code"
1111
text: Source code for dd-sdk-ios
12-
- link: https://github.com/DataDog/dd-sdk-ios-apollo-interceptor
13-
tag: "Source Code"
14-
text: Datadog Integration for Apollo iOS
1512
---
1613

1714
This page lists integrated libraries you can use for iOS and tvOS applications.
@@ -48,31 +45,6 @@ For additional information on sampling rate, distributed tracing, and adding cus
4845
attributes to tracked RUM resources, see [Advanced Configuration > Automatically track
4946
network requests][4].
5047

51-
3. Add the [Datadog Apollo interceptor][8] package to your `Package.swift` file:
52-
53-
```swift
54-
dependencies: [
55-
.package(url: "https://github.com/DataDog/dd-sdk-ios-apollo-interceptor", .upToNextMajor(from: "1.0.0"))
56-
]
57-
```
58-
59-
4. Add the Datadog interceptor to your Apollo Client setup:
60-
61-
```swift
62-
import Apollo
63-
import DatadogApollo
64-
65-
class CustomInterceptorProvider: DefaultInterceptorProvider {
66-
override func interceptors<Operation: GraphQLOperation>(for operation: Operation) -> [ApolloInterceptor] {
67-
var interceptors = super.interceptors(for: operation)
68-
interceptors.insert(DatadogApollo.createInterceptor(), at: 0)
69-
return interceptors
70-
}
71-
}
72-
```
73-
74-
For additional information on distributed tracing, adding custom attributes, and enabling GraphQL payload tracking, see [Advanced Configuration > Apollo instrumentation][7].
75-
7648
## SDWebImage
7749

7850
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
133105
[4]: /real_user_monitoring/application_monitoring/ios/advanced_configuration/#automatically-track-network-requests
134106
[5]: https://github.com/SDWebImage/SDWebImage
135107
[6]: https://github.com/OpenAPITools/openapi-generator
136-
[7]: /real_user_monitoring/application_monitoring/ios/advanced_configuration/#apollo-instrumentation
137-
[8]: https://github.com/DataDog/dd-sdk-ios-apollo-interceptor

0 commit comments

Comments
 (0)