diff --git a/packages/browser/src/exports.ts b/packages/browser/src/exports.ts index 97a7b5e93b01..7fdd9ba2d5fe 100644 --- a/packages/browser/src/exports.ts +++ b/packages/browser/src/exports.ts @@ -9,9 +9,11 @@ export type { // eslint-disable-next-line deprecation/deprecation Severity, SeverityLevel, + Span, StackFrame, Stacktrace, Thread, + Transaction, User, Session, } from '@sentry/types'; diff --git a/packages/browser/src/index.ts b/packages/browser/src/index.ts index dca32f05b35d..b3c0e7750bd2 100644 --- a/packages/browser/src/index.ts +++ b/packages/browser/src/index.ts @@ -22,7 +22,14 @@ export { INTEGRATIONS as Integrations }; export { Replay } from '@sentry/replay'; export { BrowserTracing, defaultRequestInstrumentationOptions } from '@sentry-internal/tracing'; -export { addTracingExtensions, getActiveTransaction } from '@sentry/core'; +export { + addTracingExtensions, + extractTraceparentData, + getActiveTransaction, + spanStatusfromHttpCode, + trace, +} from '@sentry/core'; +export type { SpanStatusType } from '@sentry/core'; export { makeBrowserOfflineTransport } from './transports/offline'; export { onProfilingStartRouteTransaction } from './profiling/hubextensions'; export { BrowserProfilingIntegration } from './profiling/integration'; diff --git a/packages/core/src/tracing/index.ts b/packages/core/src/tracing/index.ts index 1afb556bce4d..a0d2716fda49 100644 --- a/packages/core/src/tracing/index.ts +++ b/packages/core/src/tracing/index.ts @@ -2,7 +2,7 @@ export { startIdleTransaction, addTracingExtensions } from './hubextensions'; export { IdleTransaction, TRACING_DEFAULTS } from './idletransaction'; export { Span, spanStatusfromHttpCode } from './span'; export { Transaction } from './transaction'; -export { extractTraceparentData, getActiveTransaction, stripUrlQueryAndFragment, TRACEPARENT_REGEXP } from './utils'; +export { extractTraceparentData, getActiveTransaction } from './utils'; // eslint-disable-next-line deprecation/deprecation export { SpanStatus } from './spanstatus'; export type { SpanStatusType } from './span'; diff --git a/packages/nextjs/src/index.types.ts b/packages/nextjs/src/index.types.ts index b0cd45e43084..97e48b6d8314 100644 --- a/packages/nextjs/src/index.types.ts +++ b/packages/nextjs/src/index.types.ts @@ -37,6 +37,7 @@ export declare const showReportDialog: typeof clientSdk.showReportDialog; export declare const withErrorBoundary: typeof clientSdk.withErrorBoundary; export declare const Span: typeof edgeSdk.Span; +export declare const Transaction: typeof edgeSdk.Transaction; /** * @deprecated Use `wrapApiHandlerWithSentry` instead diff --git a/packages/node/src/index.ts b/packages/node/src/index.ts index 7f0d923e4ae2..7b4e3fe5d56b 100644 --- a/packages/node/src/index.ts +++ b/packages/node/src/index.ts @@ -11,11 +11,12 @@ export type { // eslint-disable-next-line deprecation/deprecation Severity, SeverityLevel, + Span, StackFrame, Stacktrace, Thread, + Transaction, User, - Span, } from '@sentry/types'; export type { AddRequestDataToEventOptions } from '@sentry/utils'; @@ -30,6 +31,7 @@ export { captureMessage, configureScope, createTransport, + extractTraceparentData, getActiveTransaction, getHubFromCarrier, getCurrentHub, @@ -44,8 +46,11 @@ export { setTag, setTags, setUser, + spanStatusfromHttpCode, + trace, withScope, } from '@sentry/core'; +export type { SpanStatusType } from '@sentry/core'; export { autoDiscoverNodePerformanceMonitoringIntegrations } from './tracing'; export { NodeClient } from './client'; diff --git a/packages/tracing-internal/src/exports/index.ts b/packages/tracing-internal/src/exports/index.ts index 12c6e451e5a5..010e35d4ec6a 100644 --- a/packages/tracing-internal/src/exports/index.ts +++ b/packages/tracing-internal/src/exports/index.ts @@ -8,8 +8,7 @@ export { SpanStatus, spanStatusfromHttpCode, startIdleTransaction, - stripUrlQueryAndFragment, - TRACEPARENT_REGEXP, Transaction, } from '@sentry/core'; export type { SpanStatusType } from '@sentry/core'; +export { stripUrlQueryAndFragment, TRACEPARENT_REGEXP } from '@sentry/utils';