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 11/* eslint-disable max-lines, complexity */
22import type { IdleTransaction } from '@sentry/core' ;
33import { getClient } from '@sentry/core' ;
4- import { defineIntegration , getCurrentHub } from '@sentry/core' ;
4+ import { getCurrentHub } from '@sentry/core' ;
55import {
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.
You can’t perform that action at this time.
0 commit comments