From 024e9f1bce58a43a4a57c25e25c7ea01882d7442 Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Thu, 11 Jul 2024 14:30:23 -0400 Subject: [PATCH] docs: Add apollo integration to migration docs --- MIGRATION.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/MIGRATION.md b/MIGRATION.md index 172d6cb433f3..79976b9292f1 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -711,6 +711,7 @@ Removed top-level exports: `enableAnrDetection`, `Anr`, `deepReadDirSync`, `runW - [Removal of `enableAnrDetection` and `Anr` class](./MIGRATION.md#removal-of-enableanrdetection-and-anr-class) - [Removal of `deepReadDirSync` method](./MIGRATION.md#removal-of-deepreaddirsync-method) - [Removal of `runWithAsyncContext` method](./MIGRATION.md#removal-of-runwithasynccontext-method) +- [Removal of `Apollo` integration](./MIGRATION.md#removal-of-apollo-integration) #### Removal of `enableAnrDetection` and `Anr` class @@ -737,6 +738,24 @@ Sentry.withIsolationScope(() => { }); ``` +#### Removal of Apollo integration + +The Apollo integration has been removed in `8.x` as `8.x` automatically adds GraphQL support via `graphqlIntegration` +which is automatically enabled. + +```js +// before (v7) +Sentry.init({ + integrations: [ + Sentry.integrations.Apollo(), + ], +}); + +// after (v8) +Sentry.init({}); +``` + + ### Next.js SDK Removed top-level exports: `withSentryApi`, `withSentryAPI`, `withSentryGetServerSideProps`, `withSentryGetStaticProps`,