From 010ebcaf877ef194e16e110a15b2b03b0c3e49f6 Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Tue, 30 Jan 2024 10:54:00 +0100 Subject: [PATCH] feat(tracing): Export proper type for browser tracing To make it easier to extend this. --- .../src/browser/browserTracingIntegration.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/tracing-internal/src/browser/browserTracingIntegration.ts b/packages/tracing-internal/src/browser/browserTracingIntegration.ts index 87169c55c8b5..e0ed5b790b63 100644 --- a/packages/tracing-internal/src/browser/browserTracingIntegration.ts +++ b/packages/tracing-internal/src/browser/browserTracingIntegration.ts @@ -1,7 +1,7 @@ /* eslint-disable max-lines, complexity */ import type { IdleTransaction } from '@sentry/core'; import { getClient } from '@sentry/core'; -import { defineIntegration, getCurrentHub } from '@sentry/core'; +import { getCurrentHub } from '@sentry/core'; import { SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, TRACING_DEFAULTS, @@ -151,8 +151,10 @@ const DEFAULT_BROWSER_TRACING_OPTIONS: BrowserTracingOptions = { * * The integration can be configured with a variety of options, and can be extended to use * any routing library. This integration uses {@see IdleTransaction} to create transactions. + * + * We explicitly export the proper type here, as this has to be extended in some cases. */ -export const _browserTracingIntegration = ((_options: Partial = {}) => { +export const browserTracingIntegration = ((_options: Partial = {}) => { const _hasSetTracePropagationTargets = DEBUG_BUILD ? !!( // eslint-disable-next-line deprecation/deprecation @@ -389,8 +391,6 @@ export const _browserTracingIntegration = ((_options: Partial