Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 829 Bytes

UPGRADE.md

File metadata and controls

36 lines (29 loc) · 829 Bytes

Upgrade guide

This document provides guidance for upgrading between major versions of apollo-link-sentry.

v2 to v3

Adapt your configuration

The configuration of SentryLink has changed.

import { SentryLink } from 'apollo-link-sentry';

new SentryLink({
- filter: (operation) => ...,
+ shouldHandleOperation: (operation) => ...,
+ uri: 'https://example.com/graphql',
  setTransaction: true,
  setFingerprint: true,

- breadcrumb: {
-   enable: true,
+ attachBreadcrumbs: {
    includeQuery: false,
    includeVariables: false,
-   includeFetchResult: false,
+   includeFetchResult: false,
    includeError: false,
    includeCache: false,
-   includeContext: ['example'],
+   includeContext: ['example'],
+   transform: (breadcrumb, operation) => ...,
  },
- beforeBreadcrumb: (breadcrumb) => ...,
})