Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
// (it waits for the tracing-channel binding), so a nested db span here proves
// `DenoClient.init()` installs that strategy on the direct-construction path.
// Without it, the subscriber never binds and no span is produced.
import { createStackParser, nodeStackLineParser } from '@sentry/core';
import { createStackParser } from '@sentry/core';
import { nodeStackLineParser } from '@sentry/core/server';
import { DenoClient, getCurrentScope, getDefaultIntegrations, startSpan } from '@sentry/deno';
import { tracingChannel } from 'node:diagnostics_channel';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Context, flushIfServerless } from '@sentry/core';
import { Context } from '@sentry/core';
import { flushIfServerless } from '@sentry/core/server';
import * as SentryNode from '@sentry/node';
import { H3Error } from 'h3';
import type { CapturedErrorContext } from 'nitropack';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { McpServer, ResourceTemplate } from '@modelcontextprotocol/sdk/server/mc
import { SSEServerTransport } from '@modelcontextprotocol/sdk/server/sse.js';
import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
import { z } from 'zod';
import { wrapMcpServerWithSentry } from '@sentry/core';
import { wrapMcpServerWithSentry } from '@sentry/node';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l: The @sentry/core dependency can then also be removed if this switches to @sentry/node

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we still use a type from this somewhere 🤔


// Helper to check if request is an initialize request (compatible with all MCP SDK versions)
function isInitializeRequest(body: unknown): boolean {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Sentry from '@sentry/node';
import { uuid4 } from '@sentry/core/server';
import { uuid4 } from '@sentry/core';
import { waitForConnection } from '@sentry-internal/node-integration-tests';
import pg from 'pg';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Sentry from '@sentry/node';
import { uuid4 } from '@sentry/core/server';
import { uuid4 } from '@sentry/core';
import { waitForConnection } from '@sentry-internal/node-integration-tests';
import { Client } from 'pg';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Sentry from '@sentry/node';
import { uuid4 } from '@sentry/core/server';
import { uuid4 } from '@sentry/core';
import { waitForConnection } from '@sentry-internal/node-integration-tests';
import pg from 'pg';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Sentry from '@sentry/node';
import { uuid4 } from '@sentry/core/server';
import { uuid4 } from '@sentry/core';
import { waitForConnection } from '@sentry-internal/node-integration-tests';
import { Client } from 'pg';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Sentry from '@sentry/node';
import { uuid4 } from '@sentry/core/server';
import { uuid4 } from '@sentry/core';
import postgres from 'postgres';
import { waitForConnection } from '@sentry-internal/node-integration-tests';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Sentry from '@sentry/node';
import { uuid4 } from '@sentry/core/server';
import { uuid4 } from '@sentry/core';
import postgres from 'postgres';
import { waitForConnection } from '@sentry-internal/node-integration-tests';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Sentry from '@sentry/node';
import { uuid4 } from '@sentry/core/server';
import { uuid4 } from '@sentry/core';
import postgres from 'postgres';
import { waitForConnection } from '@sentry-internal/node-integration-tests';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Sentry from '@sentry/node';
import { uuid4 } from '@sentry/core/server';
import { uuid4 } from '@sentry/core';
import postgres from 'postgres';
import { waitForConnection } from '@sentry-internal/node-integration-tests';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Sentry from '@sentry/node';
import { uuid4 } from '@sentry/core/server';
import { uuid4 } from '@sentry/core';
import postgres from 'postgres';
import { waitForConnection } from '@sentry-internal/node-integration-tests';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Sentry from '@sentry/node';
import { uuid4 } from '@sentry/core/server';
import { uuid4 } from '@sentry/core';
import postgres from 'postgres';
import { waitForConnection } from '@sentry-internal/node-integration-tests';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Sentry from '@sentry/node';
import { uuid4 } from '@sentry/core/server';
import { uuid4 } from '@sentry/core';
import postgres from 'postgres';
import { waitForConnection } from '@sentry-internal/node-integration-tests';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Sentry from '@sentry/node';
import { uuid4 } from '@sentry/core/server';
import { uuid4 } from '@sentry/core';
import postgres from 'postgres';
import { waitForConnection } from '@sentry-internal/node-integration-tests';

Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/server/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { HTTP_SERVER } from '@sentry/conventions/op';
import type { Span, SpanAttributes } from '@sentry/core';
import {
addNonEnumerableProperty,
flushIfServerless,
getIsolationScope,
getRootSpan,
getUrlFragment,
Expand All @@ -26,6 +25,7 @@ import {
filterCollectedUrl,
filterCollectedUrlQuery,
} from '@sentry/core';
import { flushIfServerless } from '@sentry/core/server';
import {
captureException,
continueTrace,
Expand Down
3 changes: 2 additions & 1 deletion packages/browser-utils/src/performance/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { SentrySpan, Span, SpanTimeInput, StartSpanOptions } from '@sentry/core';
import { spanToStaticSpanJSON, withActiveSpan, startInactiveSpan } from '@sentry/core/browser';
import { spanToStaticSpanJSON, withActiveSpan } from '@sentry/core';
import { startInactiveSpan } from '@sentry/core/browser';
import { WINDOW } from '../types';

/**
Expand Down
3 changes: 2 additions & 1 deletion packages/browser-utils/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { FetchBreadcrumbHint, HandlerDataFetch, XhrBreadcrumbHint } from '@sentry/core';
import type { FetchBreadcrumbHint, HandlerDataFetch } from '@sentry/core';
import type { XhrBreadcrumbHint } from '@sentry/core/browser';
import { GLOBAL_OBJ } from '@sentry/core';

export const WINDOW = GLOBAL_OBJ as typeof GLOBAL_OBJ &
Expand Down
6 changes: 3 additions & 3 deletions packages/browser/src/client.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type {
BrowserClientReplayOptions,
ClientOptions,
Event,
EventHint,
Options as CoreOptions,
ParameterizedString,
Scope,
SeverityLevel,
} from '@sentry/core/browser';
import { addAutoIpAddressToSession, applySdkMetadata, Client, getSDKSource } from '@sentry/core/browser';
} from '@sentry/core';
import type { BrowserClientReplayOptions } from '@sentry/core/browser';
import { addAutoIpAddressToSession, applySdkMetadata, Client, getSDKSource } from '@sentry/core';
import { eventFromException, eventFromMessage } from './eventbuilder';
import { WINDOW } from './helpers';
import type { BrowserTransportOptions } from './transports/types';
Expand Down
2 changes: 1 addition & 1 deletion packages/browser/src/diagnose-sdk.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getClient, suppressTracing } from '@sentry/core/browser';
import { getClient, suppressTracing } from '@sentry/core';

/**
* A function to diagnose why the SDK might not be successfully sending data.
Expand Down
4 changes: 2 additions & 2 deletions packages/browser/src/eventbuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {
SeverityLevel,
StackFrame,
StackParser,
} from '@sentry/core/browser';
} from '@sentry/core';
import {
_INTERNAL_enhanceErrorWithSentryInfo,
addExceptionMechanism,
Expand All @@ -22,7 +22,7 @@ import {
isPlainObject,
normalizeToSize,
resolvedSyncPromise,
} from '@sentry/core/browser';
} from '@sentry/core';

type Prototype = { constructor: (...args: unknown[]) => unknown };

Expand Down
6 changes: 3 additions & 3 deletions packages/browser/src/exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type {
ExclusiveEventHintOrCaptureContext,
Log,
LogSeverityLevel,
} from '@sentry/core/browser';
} from '@sentry/core';

export type { BrowserOptions } from './client';

Expand Down Expand Up @@ -74,14 +74,14 @@ export {
withStaticSpan,
// oxlint-disable-next-line typescript/no-deprecated
withStreamedSpan,
} from '@sentry/core/browser';
} from '@sentry/core';

export {
SEMANTIC_ATTRIBUTE_SENTRY_OP,
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
SENTRY_SEGMENT_NAME_SOURCE,
} from '@sentry/core/browser';
} from '@sentry/core';

export { WINDOW } from './helpers';
export { BrowserClient } from './client';
Expand Down
4 changes: 2 additions & 2 deletions packages/browser/src/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Mechanism, WrappedFunction } from '@sentry/core/browser';
import type { Mechanism, WrappedFunction } from '@sentry/core';
import {
addExceptionMechanism,
addExceptionTypeValue,
Expand All @@ -8,7 +8,7 @@ import {
GLOBAL_OBJ,
markFunctionWrapped,
withScope,
} from '@sentry/core/browser';
} from '@sentry/core';
import { getLocationHref } from '@sentry/browser-utils';

export const WINDOW = GLOBAL_OBJ as typeof GLOBAL_OBJ & Window;
Expand Down
2 changes: 1 addition & 1 deletion packages/browser/src/index.bundle.logs.metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {

export * from './index.bundle.base';

export { logger, consoleLoggingIntegration, metrics } from '@sentry/core/browser';
export { logger, consoleLoggingIntegration, metrics } from '@sentry/core';

export { elementTimingIntegration } from '@sentry/browser-utils';

Expand Down
2 changes: 1 addition & 1 deletion packages/browser/src/index.bundle.replay.logs.metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {

export * from './index.bundle.base';

export { logger, consoleLoggingIntegration, metrics } from '@sentry/core/browser';
export { logger, consoleLoggingIntegration, metrics } from '@sentry/core';

export { replayIntegration, getReplay } from '@sentry/replay';

Expand Down
10 changes: 4 additions & 6 deletions packages/browser/src/index.bundle.tracing.logs.metrics.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
import { registerSpanErrorInstrumentation } from '@sentry/core/browser';
import { registerSpanErrorInstrumentation } from '@sentry/core';
import { feedbackIntegrationShim, replayIntegrationShim } from '@sentry-internal/integration-shims';

registerSpanErrorInstrumentation();

export * from './index.bundle.base';

export { logger, consoleLoggingIntegration, metrics } from '@sentry/core/browser';
export { logger, consoleLoggingIntegration, metrics } from '@sentry/core';

export {
getActiveSpan,
getRootSpan,
getSpanDescendants,
setMeasurement,
startInactiveSpan,
startNewTrace,
startSpan,
startSpanManual,
withActiveSpan,
spanStreamingIntegration,
} from '@sentry/core/browser';
} from '@sentry/core';

export { startSpan, startInactiveSpan, startSpanManual } from '@sentry/core/browser';
export {
browserTracingIntegration,
startBrowserTracingNavigationSpan,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { registerSpanErrorInstrumentation } from '@sentry/core/browser';
import { registerSpanErrorInstrumentation } from '@sentry/core';
import { feedbackAsyncIntegration } from './feedbackAsync';

registerSpanErrorInstrumentation();
Expand All @@ -10,16 +10,14 @@ export {
getRootSpan,
getSpanDescendants,
setMeasurement,
startInactiveSpan,
startNewTrace,
startSpan,
startSpanManual,
withActiveSpan,
logger,
consoleLoggingIntegration,
metrics,
spanStreamingIntegration,
} from '@sentry/core/browser';
} from '@sentry/core';
export { startSpan, startInactiveSpan, startSpanManual } from '@sentry/core/browser';

export {
browserTracingIntegration,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { registerSpanErrorInstrumentation } from '@sentry/core/browser';
import { registerSpanErrorInstrumentation } from '@sentry/core';
import {
consoleLoggingIntegrationShim,
elementTimingIntegrationShim,
Expand All @@ -16,15 +16,13 @@ export { consoleLoggingIntegrationShim as consoleLoggingIntegration, loggerShim
export {
getActiveSpan,
getRootSpan,
startSpan,
startInactiveSpan,
startSpanManual,
startNewTrace,
withActiveSpan,
getSpanDescendants,
setMeasurement,
spanStreamingIntegration,
} from '@sentry/core/browser';
} from '@sentry/core';
export { startSpan, startInactiveSpan, startSpanManual } from '@sentry/core/browser';

export {
browserTracingIntegration,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
import { registerSpanErrorInstrumentation } from '@sentry/core/browser';
import { registerSpanErrorInstrumentation } from '@sentry/core';
import { feedbackIntegrationShim } from '@sentry-internal/integration-shims';

registerSpanErrorInstrumentation();

export * from './index.bundle.base';

export { logger, consoleLoggingIntegration, metrics } from '@sentry/core/browser';
export { logger, consoleLoggingIntegration, metrics } from '@sentry/core';

export {
getActiveSpan,
getRootSpan,
getSpanDescendants,
setMeasurement,
startInactiveSpan,
startNewTrace,
startSpan,
startSpanManual,
withActiveSpan,
spanStreamingIntegration,
} from '@sentry/core/browser';
} from '@sentry/core';
export { startSpan, startInactiveSpan, startSpanManual } from '@sentry/core/browser';

export {
browserTracingIntegration,
Expand Down
8 changes: 3 additions & 5 deletions packages/browser/src/index.bundle.tracing.replay.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { registerSpanErrorInstrumentation } from '@sentry/core/browser';
import { registerSpanErrorInstrumentation } from '@sentry/core';
import {
consoleLoggingIntegrationShim,
elementTimingIntegrationShim,
Expand All @@ -16,15 +16,13 @@ export { consoleLoggingIntegrationShim as consoleLoggingIntegration, loggerShim
export {
getActiveSpan,
getRootSpan,
startSpan,
startInactiveSpan,
startSpanManual,
startNewTrace,
withActiveSpan,
getSpanDescendants,
setMeasurement,
spanStreamingIntegration,
} from '@sentry/core/browser';
} from '@sentry/core';
export { startSpan, startInactiveSpan, startSpanManual } from '@sentry/core/browser';

export {
browserTracingIntegration,
Expand Down
8 changes: 3 additions & 5 deletions packages/browser/src/index.bundle.tracing.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { registerSpanErrorInstrumentation } from '@sentry/core/browser';
import { registerSpanErrorInstrumentation } from '@sentry/core';
import {
consoleLoggingIntegrationShim,
elementTimingIntegrationShim,
Expand All @@ -17,15 +17,13 @@ export { consoleLoggingIntegrationShim as consoleLoggingIntegration, loggerShim
export {
getActiveSpan,
getRootSpan,
startSpan,
startInactiveSpan,
startSpanManual,
startNewTrace,
withActiveSpan,
getSpanDescendants,
setMeasurement,
spanStreamingIntegration,
} from '@sentry/core/browser';
} from '@sentry/core';
export { startSpan, startInactiveSpan, startSpanManual } from '@sentry/core/browser';

export {
browserTracingIntegration,
Expand Down
Loading
Loading