Skip to content

Commit 010ebca

Browse files
committed
feat(tracing): Export proper type for browser tracing
To make it easier to extend this.
1 parent 18c0a4f commit 010ebca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/tracing-internal/src/browser/browserTracingIntegration.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable max-lines, complexity */
22
import type { IdleTransaction } from '@sentry/core';
33
import { getClient } from '@sentry/core';
4-
import { defineIntegration, getCurrentHub } from '@sentry/core';
4+
import { getCurrentHub } from '@sentry/core';
55
import {
66
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
77
TRACING_DEFAULTS,
@@ -151,8 +151,10 @@ const DEFAULT_BROWSER_TRACING_OPTIONS: BrowserTracingOptions = {
151151
*
152152
* The integration can be configured with a variety of options, and can be extended to use
153153
* any routing library. This integration uses {@see IdleTransaction} to create transactions.
154+
*
155+
* We explicitly export the proper type here, as this has to be extended in some cases.
154156
*/
155-
export const _browserTracingIntegration = ((_options: Partial<BrowserTracingOptions> = {}) => {
157+
export const browserTracingIntegration = ((_options: Partial<BrowserTracingOptions> = {}) => {
156158
const _hasSetTracePropagationTargets = DEBUG_BUILD
157159
? !!(
158160
// eslint-disable-next-line deprecation/deprecation
@@ -389,8 +391,6 @@ export const _browserTracingIntegration = ((_options: Partial<BrowserTracingOpti
389391
};
390392
}) satisfies IntegrationFn;
391393

392-
export const browserTracingIntegration = defineIntegration(_browserTracingIntegration);
393-
394394
/**
395395
* Manually start a page load span.
396396
* This will only do something if the BrowserTracing integration has been setup.

0 commit comments

Comments
 (0)