Skip to content

Commit c2a2a43

Browse files
committed
Rename integration to browserTracingIntegration
1 parent 244acf1 commit c2a2a43

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

packages/remix/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Sentry.init({
2828
dsn: '__DSN__',
2929
tracesSampleRate: 1,
3030
integrations: [
31-
Sentry.remixBrowserTracingIntegration({
31+
Sentry.browserTracingIntegration({
3232
useEffect,
3333
useLocation,
3434
useMatches,

packages/remix/src/client/browserTracingIntegration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { RemixBrowserTracingIntegrationOptions } from './performance';
66
* Creates a browser tracing integration for Remix applications.
77
* This integration will create pageload and navigation spans.
88
*/
9-
export function remixBrowserTracingIntegration(options: RemixBrowserTracingIntegrationOptions): Integration {
9+
export function browserTracingIntegration(options: RemixBrowserTracingIntegrationOptions): Integration {
1010
if (options.startTransactionOnPageLoad === undefined) {
1111
options.startTransactionOnPageLoad = true;
1212
}

packages/remix/src/client/performance.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function startNavigationSpan(matches: RouteMatch<string>[]): void {
148148
* This implementation is slightly different (and simpler) from the react-router instrumentation
149149
* as in Remix, `useMatches` hook is available where in react-router-v6 it's not yet.
150150
*
151-
* @deprecated Use `remixBrowserTracingIntegration` instead.
151+
* @deprecated Use `browserTracingIntegration` instead.
152152
*/
153153
export function remixRouterInstrumentation(useEffect: UseEffect, useLocation: UseLocation, useMatches: UseMatches) {
154154
return (

packages/remix/src/index.client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export {
77
withSentry,
88
} from './client/performance';
99

10-
export { remixBrowserTracingIntegration } from './client/browserTracingIntegration';
10+
export { browserTracingIntegration } from './client/browserTracingIntegration';
1111

1212
export * from '@sentry/react';
1313

packages/remix/src/index.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export { captureRemixServerException, wrapRemixHandleError } from './utils/instr
113113
export { ErrorBoundary, withErrorBoundary } from '@sentry/react';
114114
export { remixRouterInstrumentation, withSentry } from './client/performance';
115115
export { captureRemixErrorBoundaryError } from './client/errors';
116-
export { remixBrowserTracingIntegration } from './client/browserTracingIntegration';
116+
export { browserTracingIntegration } from './client/browserTracingIntegration';
117117
export { wrapExpressCreateRequestHandler } from './utils/serverAdapters/express';
118118

119119
export type { SentryMetaArgs } from './utils/types';

packages/remix/test/integration/app_v2_tracingIntegration/entry.client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { hydrate } from 'react-dom';
66
Sentry.init({
77
dsn: 'https://[email protected]/1337',
88
tracesSampleRate: 1,
9-
integrations: [Sentry.remixBrowserTracingIntegration({ useEffect, useLocation, useMatches })],
9+
integrations: [Sentry.browserTracingIntegration({ useEffect, useLocation, useMatches })],
1010
});
1111

1212
hydrate(<RemixBrowser />, document);

0 commit comments

Comments
 (0)