File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/tracing-internal/src/browser Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint-disable max-lines, complexity */
2
2
import type { IdleTransaction } from '@sentry/core' ;
3
3
import { getClient } from '@sentry/core' ;
4
- import { defineIntegration , getCurrentHub } from '@sentry/core' ;
4
+ import { getCurrentHub } from '@sentry/core' ;
5
5
import {
6
6
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ,
7
7
TRACING_DEFAULTS ,
@@ -151,8 +151,10 @@ const DEFAULT_BROWSER_TRACING_OPTIONS: BrowserTracingOptions = {
151
151
*
152
152
* The integration can be configured with a variety of options, and can be extended to use
153
153
* 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.
154
156
*/
155
- export const _browserTracingIntegration = ( ( _options : Partial < BrowserTracingOptions > = { } ) => {
157
+ export const browserTracingIntegration = ( ( _options : Partial < BrowserTracingOptions > = { } ) => {
156
158
const _hasSetTracePropagationTargets = DEBUG_BUILD
157
159
? ! ! (
158
160
// eslint-disable-next-line deprecation/deprecation
@@ -389,8 +391,6 @@ export const _browserTracingIntegration = ((_options: Partial<BrowserTracingOpti
389
391
} ;
390
392
} ) satisfies IntegrationFn ;
391
393
392
- export const browserTracingIntegration = defineIntegration ( _browserTracingIntegration ) ;
393
-
394
394
/**
395
395
* Manually start a page load span.
396
396
* This will only do something if the BrowserTracing integration has been setup.
You can’t perform that action at this time.
0 commit comments