Skip to content

Commit 98b6a1c

Browse files
authored
feat(remix): Remove @sentry/tracing dependency from Remix SDK (#7575)
1 parent eb1a87c commit 98b6a1c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

packages/remix/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"@sentry/integrations": "7.44.2",
2626
"@sentry/node": "7.44.2",
2727
"@sentry/react": "7.44.2",
28-
"@sentry/tracing": "7.44.2",
2928
"@sentry/types": "7.44.2",
3029
"@sentry/utils": "7.44.2",
3130
"@sentry/webpack-plugin": "1.19.0",

packages/remix/src/index.client.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
/* eslint-disable import/export */
2-
import { configureScope, init as reactInit, Integrations } from '@sentry/react';
2+
import { configureScope, init as reactInit } from '@sentry/react';
33

44
import { buildMetadata } from './utils/metadata';
55
import type { RemixOptions } from './utils/remixOptions';
66
export { remixRouterInstrumentation, withSentry } from './performance/client';
7-
export { BrowserTracing } from '@sentry/tracing';
87
export * from '@sentry/react';
98

10-
export { Integrations };
11-
129
export function init(options: RemixOptions): void {
1310
buildMetadata(options, ['remix', 'react']);
1411
options.environment = options.environment || process.env.NODE_ENV;

packages/remix/src/index.server.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import type { RemixOptions } from './utils/remixOptions';
88

99
export { ErrorBoundary, withErrorBoundary } from '@sentry/react';
1010
export { remixRouterInstrumentation, withSentry } from './performance/client';
11-
export { BrowserTracing, Integrations } from '@sentry/tracing';
1211
export * from '@sentry/node';
1312
export { wrapExpressCreateRequestHandler } from './utils/serverAdapters/express';
1413

packages/remix/test/index.server.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as SentryNode from '@sentry/node';
22
import { getCurrentHub } from '@sentry/node';
33
import { GLOBAL_OBJ } from '@sentry/utils';
44

5-
import { init } from '../src/index.server';
5+
import { init, Integrations } from '../src/index.server';
66

77
const nodeInit = jest.spyOn(SentryNode, 'init');
88

@@ -57,4 +57,9 @@ describe('Server init()', () => {
5757
// @ts-ignore need access to protected _tags attribute
5858
expect(currentScope._tags).toEqual({ runtime: 'node' });
5959
});
60+
61+
it('has both node and tracing integrations', () => {
62+
expect(Integrations.Apollo).not.toBeUndefined();
63+
expect(Integrations.Http).not.toBeUndefined();
64+
});
6065
});

0 commit comments

Comments
 (0)