From 9f0814acae8eed660208830e2c94ccaace80c987 Mon Sep 17 00:00:00 2001 From: Barbora Plasovska Date: Fri, 21 Nov 2025 13:27:14 +0100 Subject: [PATCH 1/2] Fix graphql description, apollo interceptor not released yet --- .../application_monitoring/ios/integrated_libraries.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/en/real_user_monitoring/application_monitoring/ios/integrated_libraries.md b/content/en/real_user_monitoring/application_monitoring/ios/integrated_libraries.md index eed376a5b09..b63db5133ba 100644 --- a/content/en/real_user_monitoring/application_monitoring/ios/integrated_libraries.md +++ b/content/en/real_user_monitoring/application_monitoring/ios/integrated_libraries.md @@ -56,6 +56,8 @@ network requests][4]. ] ``` + **Note**: This package is a work in progress, currently awaiting its first release. + 4. Add the Datadog interceptor to your Apollo Client setup: ```swift @@ -65,7 +67,7 @@ network requests][4]. class CustomInterceptorProvider: DefaultInterceptorProvider { override func interceptors(for operation: Operation) -> [ApolloInterceptor] { var interceptors = super.interceptors(for: operation) - interceptors.insert(DatadogApollo.createInterceptor(), at: 0) + interceptors.insert(DatadogApolloInterceptor(), at: 0) return interceptors } } From 3a281a9d54c5ba176869183a865143c7c7437bba Mon Sep 17 00:00:00 2001 From: Barbora Plasovska Date: Mon, 24 Nov 2025 17:13:40 +0000 Subject: [PATCH 2/2] Remove documentation for Apollo Interceptor for iOS --- .../ios/advanced_configuration.md | 43 ------------------- .../ios/integrated_libraries.md | 32 -------------- 2 files changed, 75 deletions(-) diff --git a/content/en/real_user_monitoring/application_monitoring/ios/advanced_configuration.md b/content/en/real_user_monitoring/application_monitoring/ios/advanced_configuration.md index 66fd18b6ce3..d276418e350 100644 --- a/content/en/real_user_monitoring/application_monitoring/ios/advanced_configuration.md +++ b/content/en/real_user_monitoring/application_monitoring/ios/advanced_configuration.md @@ -753,49 +753,6 @@ URLSessionInstrumentation.disable(delegateClass: .self) {{% /tab %}} {{< /tabs >}} -#### Apollo instrumentation - -1. Set up [RUM monitoring with Datadog iOS RUM][2]. - -2. Set up [URLSession instrumentation with the Datadog RUM SDK](#basic-network-instrumentation). - -3. Add the following to your `Package.swift` file: - - ```swift - dependencies: [ - .package(url: "https://github.com/DataDog/dd-sdk-ios-apollo-interceptor", .upToNextMajor(from: "1.0.0")) - ] - ``` - -4. Add the Datadog interceptor to your Apollo Client setup: - - ```swift - import Apollo - import DatadogApollo - - class CustomInterceptorProvider: DefaultInterceptorProvider { - override func interceptors(for operation: Operation) -> [ApolloInterceptor] { - var interceptors = super.interceptors(for: operation) - interceptors.insert(DatadogApollo.createInterceptor(), at: 0) - return interceptors - } - } - ``` - -This automatically adds Datadog headers to your GraphQL requests, allowing them to be tracked by Datadog. - -
-
    -
  • The integration supports Apollo iOS version 1.0 and later.
  • -
  • The query and mutation type operations are tracked, subscription operations are not.
  • -
  • GraphQL payload sending is disabled by default. To enable it, set the sendGraphQLPayloads flag in the DatadogApollo interceptor constructor as follows:
  • -
- -

-let datadogInterceptor = DatadogApollo.createInterceptor(sendGraphQLPayloads: true)
-  
-
- ### Automatically track errors All "error" and "critical" logs sent with `Logger` are automatically reported as RUM errors and linked to the current RUM view: diff --git a/content/en/real_user_monitoring/application_monitoring/ios/integrated_libraries.md b/content/en/real_user_monitoring/application_monitoring/ios/integrated_libraries.md index b63db5133ba..0e8f6cfcaab 100644 --- a/content/en/real_user_monitoring/application_monitoring/ios/integrated_libraries.md +++ b/content/en/real_user_monitoring/application_monitoring/ios/integrated_libraries.md @@ -9,9 +9,6 @@ further_reading: - link: https://github.com/DataDog/dd-sdk-ios tag: "Source Code" text: Source code for dd-sdk-ios -- link: https://github.com/DataDog/dd-sdk-ios-apollo-interceptor - tag: "Source Code" - text: Datadog Integration for Apollo iOS --- This page lists integrated libraries you can use for iOS and tvOS applications. @@ -48,33 +45,6 @@ For additional information on sampling rate, distributed tracing, and adding cus attributes to tracked RUM resources, see [Advanced Configuration > Automatically track network requests][4]. -3. Add the [Datadog Apollo interceptor][8] package to your `Package.swift` file: - - ```swift - dependencies: [ - .package(url: "https://github.com/DataDog/dd-sdk-ios-apollo-interceptor", .upToNextMajor(from: "1.0.0")) - ] - ``` - - **Note**: This package is a work in progress, currently awaiting its first release. - -4. Add the Datadog interceptor to your Apollo Client setup: - - ```swift - import Apollo - import DatadogApollo - - class CustomInterceptorProvider: DefaultInterceptorProvider { - override func interceptors(for operation: Operation) -> [ApolloInterceptor] { - var interceptors = super.interceptors(for: operation) - interceptors.insert(DatadogApolloInterceptor(), at: 0) - return interceptors - } - } - ``` - -For additional information on distributed tracing, adding custom attributes, and enabling GraphQL payload tracking, see [Advanced Configuration > Apollo instrumentation][7]. - ## SDWebImage Starting from version `2.5.0`, the RUM iOS SDK can automatically track [SDWebImage][5] requests. @@ -135,5 +105,3 @@ For additional information on sampling rate, distributed tracing, and adding cus [4]: /real_user_monitoring/application_monitoring/ios/advanced_configuration/#automatically-track-network-requests [5]: https://github.com/SDWebImage/SDWebImage [6]: https://github.com/OpenAPITools/openapi-generator -[7]: /real_user_monitoring/application_monitoring/ios/advanced_configuration/#apollo-instrumentation -[8]: https://github.com/DataDog/dd-sdk-ios-apollo-interceptor