@sentry/core 10.52.0 → 10.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/browser.js +3 -0
  2. package/build/cjs/browser.js +529 -0
  3. package/build/cjs/browser.js.map +1 -0
  4. package/build/cjs/client.js +9 -0
  5. package/build/cjs/client.js.map +1 -1
  6. package/build/cjs/index.js +69 -68
  7. package/build/cjs/index.js.map +1 -1
  8. package/build/cjs/instrument/console.js +43 -3
  9. package/build/cjs/instrument/console.js.map +1 -1
  10. package/build/cjs/integrations/captureconsole.js +2 -2
  11. package/build/cjs/integrations/captureconsole.js.map +1 -1
  12. package/build/cjs/integrations/console.js +5 -1
  13. package/build/cjs/integrations/console.js.map +1 -1
  14. package/build/cjs/integrations/express/index.js +2 -2
  15. package/build/cjs/integrations/express/index.js.map +1 -1
  16. package/build/cjs/integrations/mcp-server/errorCapture.js +2 -2
  17. package/build/cjs/integrations/mcp-server/errorCapture.js.map +1 -1
  18. package/build/cjs/integrations/mcp-server/handlers.js +72 -0
  19. package/build/cjs/integrations/mcp-server/handlers.js.map +1 -1
  20. package/build/cjs/integrations/mcp-server/index.js +10 -1
  21. package/build/cjs/integrations/mcp-server/index.js.map +1 -1
  22. package/build/cjs/integrations/supabase.js +4 -4
  23. package/build/cjs/integrations/supabase.js.map +1 -1
  24. package/build/cjs/server.js +563 -0
  25. package/build/cjs/server.js.map +1 -0
  26. package/build/cjs/tracing/ai/utils.js +2 -2
  27. package/build/cjs/tracing/ai/utils.js.map +1 -1
  28. package/build/cjs/tracing/anthropic-ai/index.js +3 -3
  29. package/build/cjs/tracing/anthropic-ai/index.js.map +1 -1
  30. package/build/cjs/tracing/anthropic-ai/streaming.js +3 -3
  31. package/build/cjs/tracing/anthropic-ai/streaming.js.map +1 -1
  32. package/build/cjs/tracing/anthropic-ai/utils.js +2 -2
  33. package/build/cjs/tracing/anthropic-ai/utils.js.map +1 -1
  34. package/build/cjs/tracing/google-genai/index.js +3 -3
  35. package/build/cjs/tracing/google-genai/index.js.map +1 -1
  36. package/build/cjs/tracing/google-genai/streaming.js +2 -2
  37. package/build/cjs/tracing/google-genai/streaming.js.map +1 -1
  38. package/build/cjs/tracing/langchain/embeddings.js +2 -2
  39. package/build/cjs/tracing/langchain/embeddings.js.map +1 -1
  40. package/build/cjs/tracing/langchain/index.js +4 -4
  41. package/build/cjs/tracing/langchain/index.js.map +1 -1
  42. package/build/cjs/tracing/langgraph/index.js +3 -3
  43. package/build/cjs/tracing/langgraph/index.js.map +1 -1
  44. package/build/cjs/tracing/langgraph/utils.js +2 -2
  45. package/build/cjs/tracing/langgraph/utils.js.map +1 -1
  46. package/build/cjs/tracing/openai/index.js +3 -3
  47. package/build/cjs/tracing/openai/index.js.map +1 -1
  48. package/build/cjs/tracing/openai/streaming.js +2 -2
  49. package/build/cjs/tracing/openai/streaming.js.map +1 -1
  50. package/build/cjs/tracing/sentrySpan.js +5 -0
  51. package/build/cjs/tracing/sentrySpan.js.map +1 -1
  52. package/build/cjs/tracing/spans/extractGenAiSpans.js +60 -0
  53. package/build/cjs/tracing/spans/extractGenAiSpans.js.map +1 -0
  54. package/build/cjs/tracing/spans/spanJsonToStreamedSpan.js +26 -0
  55. package/build/cjs/tracing/spans/spanJsonToStreamedSpan.js.map +1 -0
  56. package/build/cjs/tracing/vercel-ai/index.js +6 -1
  57. package/build/cjs/tracing/vercel-ai/index.js.map +1 -1
  58. package/build/cjs/trpc.js +3 -3
  59. package/build/cjs/trpc.js.map +1 -1
  60. package/build/cjs/utils/exports.js +7 -7
  61. package/build/cjs/utils/exports.js.map +1 -1
  62. package/build/cjs/utils/flushIfServerless.js +2 -2
  63. package/build/cjs/utils/flushIfServerless.js.map +1 -1
  64. package/build/cjs/utils/string.js +9 -2
  65. package/build/cjs/utils/string.js.map +1 -1
  66. package/build/cjs/utils/traceData.js +2 -2
  67. package/build/cjs/utils/traceData.js.map +1 -1
  68. package/build/cjs/utils/version.js +1 -1
  69. package/build/esm/browser.js +142 -0
  70. package/build/esm/browser.js.map +1 -0
  71. package/build/esm/client.js +9 -0
  72. package/build/esm/client.js.map +1 -1
  73. package/build/esm/index.js +17 -17
  74. package/build/esm/instrument/console.js +44 -5
  75. package/build/esm/instrument/console.js.map +1 -1
  76. package/build/esm/integrations/console.js +6 -2
  77. package/build/esm/integrations/console.js.map +1 -1
  78. package/build/esm/integrations/mcp-server/handlers.js +72 -1
  79. package/build/esm/integrations/mcp-server/handlers.js.map +1 -1
  80. package/build/esm/integrations/mcp-server/index.js +11 -2
  81. package/build/esm/integrations/mcp-server/index.js.map +1 -1
  82. package/build/esm/package.json +1 -1
  83. package/build/esm/server.js +157 -0
  84. package/build/esm/server.js.map +1 -0
  85. package/build/esm/tracing/sentrySpan.js +5 -0
  86. package/build/esm/tracing/sentrySpan.js.map +1 -1
  87. package/build/esm/tracing/spans/extractGenAiSpans.js +58 -0
  88. package/build/esm/tracing/spans/extractGenAiSpans.js.map +1 -0
  89. package/build/esm/tracing/spans/spanJsonToStreamedSpan.js +24 -0
  90. package/build/esm/tracing/spans/spanJsonToStreamedSpan.js.map +1 -0
  91. package/build/esm/tracing/vercel-ai/index.js +6 -1
  92. package/build/esm/tracing/vercel-ai/index.js.map +1 -1
  93. package/build/esm/utils/exports.js +7 -7
  94. package/build/esm/utils/exports.js.map +1 -1
  95. package/build/esm/utils/string.js +9 -2
  96. package/build/esm/utils/string.js.map +1 -1
  97. package/build/esm/utils/version.js +1 -1
  98. package/build/types/browser-exports.d.ts +11 -0
  99. package/build/types/browser-exports.d.ts.map +1 -0
  100. package/build/types/browser.d.ts +3 -0
  101. package/build/types/browser.d.ts.map +1 -0
  102. package/build/types/build-time-plugins/buildTimeOptionsBase.d.ts +8 -0
  103. package/build/types/build-time-plugins/buildTimeOptionsBase.d.ts.map +1 -1
  104. package/build/types/carrier.d.ts +1 -1
  105. package/build/types/carrier.d.ts.map +1 -1
  106. package/build/types/client.d.ts.map +1 -1
  107. package/build/types/index.d.ts +3 -232
  108. package/build/types/index.d.ts.map +1 -1
  109. package/build/types/instrument/console.d.ts +7 -0
  110. package/build/types/instrument/console.d.ts.map +1 -1
  111. package/build/types/integrations/captureconsole.d.ts +1 -1
  112. package/build/types/integrations/captureconsole.d.ts.map +1 -1
  113. package/build/types/integrations/console.d.ts +5 -0
  114. package/build/types/integrations/console.d.ts.map +1 -1
  115. package/build/types/integrations/conversationId.d.ts +1 -1
  116. package/build/types/integrations/conversationId.d.ts.map +1 -1
  117. package/build/types/integrations/dedupe.d.ts +1 -1
  118. package/build/types/integrations/dedupe.d.ts.map +1 -1
  119. package/build/types/integrations/eventFilters.d.ts +2 -2
  120. package/build/types/integrations/eventFilters.d.ts.map +1 -1
  121. package/build/types/integrations/extraerrordata.d.ts +1 -1
  122. package/build/types/integrations/extraerrordata.d.ts.map +1 -1
  123. package/build/types/integrations/functiontostring.d.ts +1 -1
  124. package/build/types/integrations/functiontostring.d.ts.map +1 -1
  125. package/build/types/integrations/linkederrors.d.ts +1 -1
  126. package/build/types/integrations/linkederrors.d.ts.map +1 -1
  127. package/build/types/integrations/mcp-server/handlers.d.ts +18 -0
  128. package/build/types/integrations/mcp-server/handlers.d.ts.map +1 -1
  129. package/build/types/integrations/mcp-server/index.d.ts +8 -1
  130. package/build/types/integrations/mcp-server/index.d.ts.map +1 -1
  131. package/build/types/integrations/requestdata.d.ts +1 -1
  132. package/build/types/integrations/requestdata.d.ts.map +1 -1
  133. package/build/types/integrations/spanStreaming.d.ts +1 -1
  134. package/build/types/integrations/spanStreaming.d.ts.map +1 -1
  135. package/build/types/integrations/supabase.d.ts +1 -1
  136. package/build/types/integrations/supabase.d.ts.map +1 -1
  137. package/build/types/integrations/zoderrors.d.ts +1 -1
  138. package/build/types/integrations/zoderrors.d.ts.map +1 -1
  139. package/build/types/logs/console-integration.d.ts +1 -1
  140. package/build/types/logs/console-integration.d.ts.map +1 -1
  141. package/build/types/server-exports.d.ts +26 -0
  142. package/build/types/server-exports.d.ts.map +1 -0
  143. package/build/types/server.d.ts +10 -0
  144. package/build/types/server.d.ts.map +1 -0
  145. package/build/types/shared-exports.d.ts +215 -0
  146. package/build/types/shared-exports.d.ts.map +1 -0
  147. package/build/types/tracing/sentrySpan.d.ts.map +1 -1
  148. package/build/types/tracing/spans/extractGenAiSpans.d.ts +15 -0
  149. package/build/types/tracing/spans/extractGenAiSpans.d.ts.map +1 -0
  150. package/build/types/tracing/spans/spanJsonToStreamedSpan.d.ts +6 -0
  151. package/build/types/tracing/spans/spanJsonToStreamedSpan.d.ts.map +1 -0
  152. package/build/types/tracing/vercel-ai/index.d.ts.map +1 -1
  153. package/build/types/types-hoist/envelope.d.ts +1 -1
  154. package/build/types/types-hoist/envelope.d.ts.map +1 -1
  155. package/build/types/types-hoist/options.d.ts +8 -0
  156. package/build/types/types-hoist/options.d.ts.map +1 -1
  157. package/build/types/utils/string.d.ts +1 -1
  158. package/build/types/utils/string.d.ts.map +1 -1
  159. package/build/types-ts3.8/browser-exports.d.ts +11 -0
  160. package/build/types-ts3.8/browser.d.ts +3 -0
  161. package/build/types-ts3.8/build-time-plugins/buildTimeOptionsBase.d.ts +8 -0
  162. package/build/types-ts3.8/carrier.d.ts +1 -1
  163. package/build/types-ts3.8/index.d.ts +3 -234
  164. package/build/types-ts3.8/instrument/console.d.ts +7 -0
  165. package/build/types-ts3.8/integrations/captureconsole.d.ts +1 -1
  166. package/build/types-ts3.8/integrations/console.d.ts +5 -0
  167. package/build/types-ts3.8/integrations/conversationId.d.ts +1 -1
  168. package/build/types-ts3.8/integrations/dedupe.d.ts +1 -1
  169. package/build/types-ts3.8/integrations/eventFilters.d.ts +2 -2
  170. package/build/types-ts3.8/integrations/extraerrordata.d.ts +1 -1
  171. package/build/types-ts3.8/integrations/functiontostring.d.ts +1 -1
  172. package/build/types-ts3.8/integrations/linkederrors.d.ts +1 -1
  173. package/build/types-ts3.8/integrations/mcp-server/handlers.d.ts +18 -0
  174. package/build/types-ts3.8/integrations/mcp-server/index.d.ts +8 -1
  175. package/build/types-ts3.8/integrations/requestdata.d.ts +1 -1
  176. package/build/types-ts3.8/integrations/spanStreaming.d.ts +1 -1
  177. package/build/types-ts3.8/integrations/supabase.d.ts +1 -1
  178. package/build/types-ts3.8/integrations/zoderrors.d.ts +1 -1
  179. package/build/types-ts3.8/logs/console-integration.d.ts +1 -1
  180. package/build/types-ts3.8/server-exports.d.ts +21 -0
  181. package/build/types-ts3.8/server.d.ts +10 -0
  182. package/build/types-ts3.8/shared-exports.d.ts +214 -0
  183. package/build/types-ts3.8/tracing/spans/extractGenAiSpans.d.ts +15 -0
  184. package/build/types-ts3.8/tracing/spans/spanJsonToStreamedSpan.d.ts +6 -0
  185. package/build/types-ts3.8/types-hoist/envelope.d.ts +1 -1
  186. package/build/types-ts3.8/types-hoist/options.d.ts +8 -0
  187. package/build/types-ts3.8/utils/string.d.ts +1 -1
  188. package/package.json +24 -2
  189. package/server.js +3 -0
@@ -1,235 +1,4 @@
1
- export { ClientClass as SentryCoreCurrentScopes } from './sdk';
2
- export { AsyncContextStrategy } from './asyncContext/types';
3
- export { Carrier } from './carrier';
4
- export { OfflineStore, OfflineTransportOptions } from './transports/offline';
5
- export { ServerRuntimeClientOptions } from './server-runtime-client';
6
- export { IntegrationIndex } from './integration';
7
- export * from './tracing';
8
- export * from './semanticAttributes';
9
- export { createEventEnvelope, createSessionEnvelope, createSpanEnvelope } from './envelope';
10
- export { captureCheckIn, withMonitor, captureException, captureEvent, captureMessage, lastEventId, close, flush, setContext, setExtra, setExtras, setTag, setTags, setUser, setConversationId, isInitialized, isEnabled, startSession, endSession, captureSession, addEventProcessor, } from './exports';
11
- export { getCurrentScope, getIsolationScope, getGlobalScope, withScope, withIsolationScope, getClient, getTraceContextFromScope, registerExternalPropagationContext, getExternalPropagationContext, hasExternalPropagationContext, } from './currentScopes';
12
- export { getDefaultCurrentScope, getDefaultIsolationScope } from './defaultScopes';
13
- export { setAsyncContextStrategy } from './asyncContext';
14
- export { getGlobalSingleton, getMainCarrier } from './carrier';
15
- export { makeSession, closeSession, updateSession } from './session';
16
- export { Scope } from './scope';
17
- export { CaptureContext, ScopeContext, ScopeData } from './scope';
18
- export { notifyEventProcessors } from './eventProcessors';
19
- export { getEnvelopeEndpointWithUrlEncodedAuth, getReportDialogEndpoint, SENTRY_API_VERSION } from './api';
20
- export { Client } from './client';
21
- export { ServerRuntimeClient } from './server-runtime-client';
22
- export { initAndBind, setCurrentClient } from './sdk';
23
- export { createTransport } from './transports/base';
24
- export { makeOfflineTransport } from './transports/offline';
25
- export { makeMultiplexedTransport, MULTIPLEXED_TRANSPORT_EXTRA_KEY } from './transports/multiplexed';
26
- export { getIntegrationsToSetup, addIntegration, defineIntegration, installedIntegrations } from './integration';
27
- export { _INTERNAL_skipAiProviderWrapping, _INTERNAL_shouldSkipAiProviderWrapping, _INTERNAL_clearAiProviderSkips, } from './utils/ai/providerSkip';
28
- export { envToBool } from './utils/envToBool';
29
- export { applyScopeDataToEvent, mergeScopeData, getCombinedScopeData } from './utils/scopeData';
30
- export { prepareEvent } from './utils/prepareEvent';
31
- export { ExclusiveEventHintOrCaptureContext } from './utils/prepareEvent';
32
- export { createCheckInEnvelope } from './checkin';
33
- export { hasSpansEnabled } from './utils/hasSpansEnabled';
34
- export { withStreamedSpan } from './tracing/spans/beforeSendSpan';
35
- export { isStreamedBeforeSendSpanCallback } from './tracing/spans/beforeSendSpan';
36
- export { safeSetSpanJSONAttributes } from './tracing/spans/captureSpan';
37
- export { isSentryRequestUrl } from './utils/isSentryRequestUrl';
38
- export { handleCallbackErrors } from './utils/handleCallbackErrors';
39
- export { parameterize, fmt } from './utils/parameterize';
40
- export { HandleTunnelRequestOptions } from './utils/tunnel';
41
- export { handleTunnelRequest } from './utils/tunnel';
42
- export { addAutoIpAddressToSession } from './utils/ipAddress';
43
- export { addAutoIpAddressToUser } from './utils/ipAddress';
44
- export { convertSpanLinksForEnvelope, spanToTraceHeader, spanToJSON, spanToStreamedSpanJSON, spanIsSampled, spanToTraceContext, getSpanDescendants, getStatusMessage, getRootSpan, INTERNAL_getSegmentSpan, getActiveSpan, addChildSpanToSpan, spanTimeInputToSeconds, updateSpanName, } from './utils/spanUtils';
45
- export { _setSpanForScope as _INTERNAL_setSpanForScope } from './utils/spanOnScope';
46
- export { parseSampleRate } from './utils/parseSampleRate';
47
- export { applySdkMetadata } from './utils/sdkMetadata';
48
- export { getTraceData } from './utils/traceData';
49
- export { shouldPropagateTraceForUrl } from './utils/tracePropagationTargets';
50
- export { getTraceMetaTags } from './utils/meta';
51
- export { debounce } from './utils/debounce';
52
- export { makeWeakRef, derefWeakRef } from './utils/weakRef';
53
- export { MaybeWeakRef } from './utils/weakRef';
54
- export { shouldIgnoreSpan } from './utils/should-ignore-span';
55
- export { winterCGHeadersToDict, winterCGRequestToRequestData, captureBodyFromWinterCGRequest, httpRequestToRequestData, extractQueryParamsFromUrl, headersToDict, httpHeadersToSpanAttributes, getMaxBodyByteLength, MAX_BODY_BYTE_LENGTH, } from './utils/request';
56
- export { MaxRequestBodySize } from './utils/request';
57
- export { DEFAULT_ENVIRONMENT, DEV_ENVIRONMENT } from './constants';
58
- export { addBreadcrumb } from './breadcrumbs';
59
- export { functionToStringIntegration } from './integrations/functiontostring';
60
- export { inboundFiltersIntegration } from './integrations/eventFilters';
61
- export { eventFiltersIntegration } from './integrations/eventFilters';
62
- export { linkedErrorsIntegration } from './integrations/linkederrors';
63
- export { moduleMetadataIntegration } from './integrations/moduleMetadata';
64
- export { requestDataIntegration } from './integrations/requestdata';
65
- export { captureConsoleIntegration } from './integrations/captureconsole';
66
- export { patchExpressModule, setupExpressErrorHandler, expressErrorHandler } from './integrations/express/index';
67
- export { ExpressIntegrationOptions, ExpressHandlerOptions, ExpressMiddleware, ExpressErrorMiddleware, } from './integrations/express/types';
68
- export { dedupeIntegration } from './integrations/dedupe';
69
- export { extraErrorDataIntegration } from './integrations/extraerrordata';
70
- export { rewriteFramesIntegration } from './integrations/rewriteframes';
71
- export { supabaseIntegration, instrumentSupabaseClient } from './integrations/supabase';
72
- export { instrumentPostgresJsSql } from './integrations/postgresjs';
73
- export { zodErrorsIntegration } from './integrations/zoderrors';
74
- export { thirdPartyErrorFilterIntegration } from './integrations/third-party-errors-filter';
75
- export { consoleIntegration } from './integrations/console';
76
- export { FeatureFlagsIntegration } from './integrations/featureFlags';
77
- export { featureFlagsIntegration } from './integrations/featureFlags';
78
- export { growthbookIntegration } from './integrations/featureFlags';
79
- export { conversationIdIntegration } from './integrations/conversationId';
80
- export { patchHttpModuleClient } from './integrations/http/client-patch';
81
- export { getHttpClientSubscriptions } from './integrations/http/client-subscriptions';
82
- export { addOutgoingRequestBreadcrumb } from './integrations/http/add-outgoing-request-breadcrumb';
83
- export { getRequestUrl, getRequestUrlObject, getRequestUrlFromClientRequest, getRequestOptions, } from './integrations/http/get-request-url';
84
- export { HTTP_ON_CLIENT_REQUEST, HTTP_ON_SERVER_REQUEST } from './integrations/http/constants';
85
- export { HttpInstrumentationOptions, HttpClientRequest, HttpIncomingMessage, HttpServerResponse, HttpModuleExport, } from './integrations/http/types';
86
- export { profiler } from './profiling';
87
- export { instrumentFetchRequest, _INTERNAL_getTracingHeadersForFetchRequest } from './fetch';
88
- export { trpcMiddleware } from './trpc';
89
- export { wrapMcpServerWithSentry } from './integrations/mcp-server';
90
- export { captureFeedback } from './feedback';
91
- export { ReportDialogOptions } from './report-dialog';
92
- export { _INTERNAL_captureLog, _INTERNAL_flushLogsBuffer, _INTERNAL_captureSerializedLog } from './logs/internal';
93
- import * as logger_1 from './logs/public-api';
94
- export { logger_1 as logger };
95
- export { consoleLoggingIntegration } from './logs/console-integration';
96
- export { _INTERNAL_captureMetric, _INTERNAL_flushMetricsBuffer, _INTERNAL_captureSerializedMetric, } from './metrics/internal';
97
- import * as metrics_1 from './metrics/public-api';
98
- export { metrics_1 as metrics };
99
- export { MetricOptions } from './metrics/public-api';
100
- export { createConsolaReporter } from './integrations/consola';
101
- export { addVercelAiProcessors } from './tracing/vercel-ai';
102
- export { _INTERNAL_getSpanContextForToolCallId, _INTERNAL_cleanupToolCallSpanContext } from './tracing/vercel-ai/utils';
103
- export { toolCallSpanContextMap as _INTERNAL_toolCallSpanContextMap } from './tracing/vercel-ai/constants';
104
- export { instrumentOpenAiClient } from './tracing/openai';
105
- export { OPENAI_INTEGRATION_NAME } from './tracing/openai/constants';
106
- export { instrumentAnthropicAiClient } from './tracing/anthropic-ai';
107
- export { ANTHROPIC_AI_INTEGRATION_NAME } from './tracing/anthropic-ai/constants';
108
- export { instrumentGoogleGenAIClient } from './tracing/google-genai';
109
- export { GOOGLE_GENAI_INTEGRATION_NAME } from './tracing/google-genai/constants';
110
- export { GoogleGenAIResponse } from './tracing/google-genai/types';
111
- export { createLangChainCallbackHandler, instrumentLangChainEmbeddings } from './tracing/langchain';
112
- export { LANGCHAIN_INTEGRATION_NAME } from './tracing/langchain/constants';
113
- export { LangChainOptions, LangChainIntegration } from './tracing/langchain/types';
114
- export { instrumentStateGraphCompile, instrumentCreateReactAgent, instrumentLangGraph } from './tracing/langgraph';
115
- export { LANGGRAPH_INTEGRATION_NAME } from './tracing/langgraph/constants';
116
- export { LangGraphOptions, LangGraphIntegration, CompiledGraph } from './tracing/langgraph/types';
117
- export { OpenAiClient, OpenAiOptions, InstrumentedMethod } from './tracing/openai/types';
118
- export { AnthropicAiClient, AnthropicAiOptions, AnthropicAiInstrumentedMethod, AnthropicAiResponse, } from './tracing/anthropic-ai/types';
119
- export { GoogleGenAIClient, GoogleGenAIChat, GoogleGenAIOptions, GoogleGenAIInstrumentedMethod, } from './tracing/google-genai/types';
120
- export { GoogleGenAIIstrumentedMethod } from './tracing/google-genai/types';
121
- export { SpanBuffer } from './tracing/spans/spanBuffer';
122
- export { hasSpanStreamingEnabled } from './tracing/spans/hasSpanStreamingEnabled';
123
- export { spanStreamingIntegration } from './integrations/spanStreaming';
124
- export { FeatureFlag } from './utils/featureFlags';
125
- export { _INTERNAL_copyFlagsFromScopeToEvent, _INTERNAL_insertFlagToScope, _INTERNAL_addFeatureFlagToActiveSpan, _INTERNAL_FLAG_BUFFER_SIZE, _INTERNAL_MAX_FLAGS_PER_SPAN, } from './utils/featureFlags';
126
- export { applyAggregateErrorsToEvent } from './utils/aggregate-errors';
127
- export { getBreadcrumbLogLevelFromHttpStatusCode } from './utils/breadcrumb-log-level';
128
- export { getComponentName, getLocationHref, htmlTreeAsString } from './utils/browser';
129
- export { dsnFromString, dsnToString, makeDsn } from './utils/dsn';
130
- export { SentryError } from './utils/error';
131
- export { GLOBAL_OBJ } from './utils/worldwide';
132
- export { InternalGlobal } from './utils/worldwide';
133
- export { addConsoleInstrumentationHandler } from './instrument/console';
134
- export { addFetchEndInstrumentationHandler, addFetchInstrumentationHandler } from './instrument/fetch';
135
- export { addGlobalErrorInstrumentationHandler } from './instrument/globalError';
136
- export { addGlobalUnhandledRejectionInstrumentationHandler } from './instrument/globalUnhandledRejection';
137
- export { addHandler, maybeInstrument, resetInstrumentationHandlers, triggerHandlers } from './instrument/handlers';
138
- export { isDOMError, isDOMException, isElement, isError, isErrorEvent, isEvent, isInstanceOf, isParameterizedString, isPlainObject, isPrimitive, isRegExp, isString, isSyntheticEvent, isThenable, isVueViewModel, } from './utils/is';
139
- export { isBrowser } from './utils/isBrowser';
140
- export { CONSOLE_LEVELS, consoleSandbox, debug, originalConsoleMethods } from './utils/debug-logger';
141
- export { SentryDebugLogger } from './utils/debug-logger';
142
- export { addContextToFrame, addExceptionMechanism, addExceptionTypeValue, checkOrSetAlreadyCaught, isAlreadyCaptured, getEventDescription, parseSemver, uuid4, } from './utils/misc';
143
- export { isNodeEnv, loadModule } from './utils/node';
144
- export { normalize, normalizeToSize, normalizeUrlToBase } from './utils/normalize';
145
- export { setNormalizationDepthOverrideHint, setSkipNormalizationHint } from './utils/normalizationHints';
146
- export { addNonEnumerableProperty, convertToPlainObject, dropUndefinedKeys, extractExceptionKeysForMessage, fill, getOriginalFunction, markFunctionWrapped, objectify, } from './utils/object';
147
- export { basename, dirname, isAbsolute, join, normalizePath, relative, resolve } from './utils/path';
148
- export { makePromiseBuffer, SENTRY_BUFFER_FULL_ERROR } from './utils/promisebuffer';
149
- export { PromiseBuffer } from './utils/promisebuffer';
150
- export { severityLevelFromString } from './utils/severity';
151
- export { replaceExports } from './utils/exports';
152
- export { UNKNOWN_FUNCTION, createStackParser, getFramesFromEvent, getFunctionName, stackParserFromStackParserOptions, stripSentryFramesAndReverse, } from './utils/stacktrace';
153
- export { filenameIsInApp, node, nodeStackLineParser } from './utils/node-stack-trace';
154
- export { isMatchingPattern, safeJoin, snipLine, stringMatchesSomePattern, truncate } from './utils/string';
155
- export { isNativeFunction, supportsDOMError, supportsDOMException, supportsErrorEvent, supportsFetch, supportsHistory, supportsNativeFetch, supportsReferrerPolicy, supportsReportingObserver, } from './utils/supports';
156
- export { SyncPromise, rejectedSyncPromise, resolvedSyncPromise } from './utils/syncpromise';
157
- export { browserPerformanceTimeOrigin, dateTimestampInSeconds, timestampInSeconds } from './utils/time';
158
- export { TRACEPARENT_REGEXP, extractTraceparentData, generateSentryTraceHeader, propagationContextFromHeaders, shouldContinueTrace, generateTraceparentHeader, } from './utils/tracing';
159
- export { getSDKSource, isBrowserBundle } from './utils/env';
160
- export { SdkSource } from './utils/env';
161
- export { addItemToEnvelope, createAttachmentEnvelopeItem, createEnvelope, createEventEnvelopeHeaders, createSpanEnvelopeItem, envelopeContainsItemType, envelopeItemTypeToDataCategory, forEachEnvelopeItem, getSdkMetadataForEnvelopeHeader, parseEnvelope, serializeEnvelope, } from './utils/envelope';
162
- export { createClientReportEnvelope } from './utils/clientreport';
163
- export { DEFAULT_RETRY_AFTER, disabledUntil, isRateLimited, parseRetryAfterHeader, updateRateLimits, } from './utils/ratelimit';
164
- export { RateLimits } from './utils/ratelimit';
165
- export { MAX_BAGGAGE_STRING_LENGTH, SENTRY_BAGGAGE_KEY_PREFIX, SENTRY_BAGGAGE_KEY_PREFIX_REGEX, baggageHeaderToDynamicSamplingContext, dynamicSamplingContextToSentryBaggageHeader, parseBaggageHeader, objectToBaggageHeader, mergeBaggageHeaders, } from './utils/baggage';
166
- export { getSanitizedUrlString, parseUrl, stripUrlQueryAndFragment, parseStringToURLObject, getHttpSpanDetailsFromUrlObject, isURLObjectRelative, getSanitizedUrlStringFromUrlObject, stripDataUrlContent, } from './utils/url';
167
- export { eventFromMessage, eventFromUnknownInput, exceptionFromError, parseStackFrames, _enhanceErrorWithSentryInfo as _INTERNAL_enhanceErrorWithSentryInfo, } from './utils/eventbuilder';
168
- export { callFrameToStackFrame, watchdogTimer } from './utils/anr';
169
- export { LRUMap } from './utils/lru';
170
- export { generateTraceId, generateSpanId } from './utils/propagationContext';
171
- export { vercelWaitUntil } from './utils/vercelWaitUntil';
172
- export { flushIfServerless } from './utils/flushIfServerless';
173
- export { SDK_VERSION } from './utils/version';
174
- export { getDebugImagesForResources, getFilenameToDebugIdMap } from './utils/debug-ids';
175
- export { getFilenameToMetadataMap } from './metadata';
176
- export { escapeStringForRegex } from './vendor/escapeStringForRegex';
177
- export { Attachment } from './types-hoist/attachment';
178
- export { Breadcrumb, BreadcrumbHint, FetchBreadcrumbData, XhrBreadcrumbData, FetchBreadcrumbHint, XhrBreadcrumbHint, } from './types-hoist/breadcrumb';
179
- export { ClientReport, Outcome, EventDropReason } from './types-hoist/clientreport';
180
- export { Context, Contexts, DeviceContext, OsContext, AppContext, CultureContext, TraceContext, CloudResourceContext, MissingInstrumentationContext, } from './types-hoist/context';
181
- export { DataCategory } from './types-hoist/datacategory';
182
- export { DsnComponents, DsnLike, DsnProtocol } from './types-hoist/dsn';
183
- export { DebugImage, DebugMeta } from './types-hoist/debugMeta';
184
- export { AttachmentItem, BaseEnvelopeHeaders, BaseEnvelopeItemHeaders, ClientReportEnvelope, ClientReportItem, DynamicSamplingContext, Envelope, EnvelopeItemType, EnvelopeItem, EventEnvelope, EventEnvelopeHeaders, EventItem, ReplayEnvelope, FeedbackItem, SessionEnvelope, SessionItem, UserFeedbackItem, CheckInItem, CheckInEnvelope, RawSecurityEnvelope, RawSecurityItem, ProfileItem, ProfileChunkEnvelope, ProfileChunkItem, SpanEnvelope, StreamedSpanEnvelope, SpanItem, LogEnvelope, MetricEnvelope, } from './types-hoist/envelope';
185
- export { ExtendedError } from './types-hoist/error';
186
- export { Event, EventHint, EventType, ErrorEvent, TransactionEvent } from './types-hoist/event';
187
- export { EventProcessor } from './types-hoist/eventprocessor';
188
- export { Exception } from './types-hoist/exception';
189
- export { Extra, Extras } from './types-hoist/extra';
190
- export { Integration, IntegrationFn } from './types-hoist/integration';
191
- export { Mechanism } from './types-hoist/mechanism';
192
- export { ExtractedNodeRequestData, HttpHeaderValue, Primitive, WorkerLocation } from './types-hoist/misc';
193
- export { ClientOptions, CoreOptions as Options, ServerRuntimeOptions } from './types-hoist/options';
194
- export { Package } from './types-hoist/package';
195
- export { PolymorphicEvent, PolymorphicRequest } from './types-hoist/polymorphics';
196
- export { ThreadId, FrameId, StackId, ThreadCpuSample, ThreadCpuStack, ThreadCpuFrame, ThreadCpuProfile, ContinuousThreadCpuProfile, Profile, ProfileChunk, } from './types-hoist/profiling';
197
- export { ReplayEndEvent, ReplayEvent, ReplayRecordingData, ReplayRecordingMode, ReplayStartEvent, ReplayStopReason, } from './types-hoist/replay';
198
- export { FeedbackErrorCode, FeedbackErrorMessages, FeedbackEvent, FeedbackFormData, FeedbackInternalOptions, FeedbackModalIntegration, FeedbackScreenshotIntegration, SendFeedback, SendFeedbackParams, UserFeedback, } from './types-hoist/feedback';
199
- export { QueryParams, RequestEventData, RequestHookInfo, ResponseHookInfo, SanitizedRequestData, } from './types-hoist/request';
200
- export { Runtime } from './types-hoist/runtime';
201
- export { SdkInfo } from './types-hoist/sdkinfo';
202
- export { SdkMetadata } from './types-hoist/sdkmetadata';
203
- export { SessionAggregates, AggregationCounts, Session, SessionContext, SessionStatus, SerializedSession, } from './types-hoist/session';
204
- export { SeverityLevel } from './types-hoist/severity';
205
- export { Span, SentrySpanArguments, SpanOrigin, SpanAttributeValue, SpanAttributes, SpanTimeInput, SpanJSON, SpanContextData, TraceFlag, SerializedStreamedSpan, SerializedStreamedSpanContainer, StreamedSpanJSON, } from './types-hoist/span';
206
- export { SpanStatus } from './types-hoist/spanStatus';
207
- export { Log, LogSeverityLevel } from './types-hoist/log';
208
- export { SpanLink } from './types-hoist/link';
209
- export { Metric, MetricType, SerializedMetric, SerializedMetricContainer, SerializedMetricAttributeValue, } from './types-hoist/metric';
210
- export { TimedEvent } from './types-hoist/timedEvent';
211
- export { StackFrame } from './types-hoist/stackframe';
212
- export { Stacktrace, StackParser, StackLineParser, StackLineParserFn } from './types-hoist/stacktrace';
213
- export { PropagationContext, TracePropagationTargets, SerializedTraceData } from './types-hoist/tracing';
214
- export { StartSpanOptions } from './types-hoist/startSpanOptions';
215
- export { TraceparentData, TransactionSource } from './types-hoist/transaction';
216
- export { TracesSamplerSamplingContext, CustomSamplingContext, SamplingContext, } from './types-hoist/samplingcontext';
217
- export { DurationUnit, InformationUnit, FractionUnit, MeasurementUnit, NoneUnit, Measurements, } from './types-hoist/measurement';
218
- export { Thread } from './types-hoist/thread';
219
- export { Transport, TransportRequest, TransportMakeRequestResponse, InternalBaseTransportOptions, BaseTransportOptions, TransportRequestExecutor, } from './types-hoist/transport';
220
- export { User } from './types-hoist/user';
221
- export { WebFetchHeaders, WebFetchRequest } from './types-hoist/webfetchapi';
222
- export { WrappedFunction } from './types-hoist/wrappedfunction';
223
- export { HandlerDataFetch, HandlerDataXhr, HandlerDataDom, HandlerDataConsole, HandlerDataHistory, HandlerDataError, HandlerDataUnhandledRejection, ConsoleLevel, SentryXhrData, SentryWrappedXMLHttpRequest, } from './types-hoist/instrument';
224
- export { BrowserClientReplayOptions, BrowserClientProfilingOptions } from './types-hoist/browseroptions';
225
- export { CheckIn, MonitorConfig, FinishedCheckIn, InProgressCheckIn, SerializedCheckIn, } from './types-hoist/checkin';
226
- export { ParameterizedString } from './types-hoist/parameterize';
227
- export { ContinuousProfiler, ProfilingIntegration, Profiler } from './types-hoist/profiling';
228
- export { ViewHierarchyData, ViewHierarchyWindow } from './types-hoist/view-hierarchy';
229
- export { LegacyCSPReport } from './types-hoist/csp';
230
- export { SerializedLog, SerializedLogContainer } from './types-hoist/log';
231
- export { BuildTimeOptionsBase, UnstableVitePluginOptions, UnstableRollupPluginOptions, UnstableWebpackPluginOptions, } from './build-time-plugins/buildTimeOptionsBase';
232
- export { RandomSafeContextRunner as _INTERNAL_RandomSafeContextRunner } from './utils/randomSafeContext';
233
- export { withRandomSafeContext as _INTERNAL_withRandomSafeContext, safeMathRandom as _INTERNAL_safeMathRandom, safeDateNow as _INTERNAL_safeDateNow, } from './utils/randomSafeContext';
234
- export { safeUnref as _INTERNAL_safeUnref } from './utils/timer';
1
+ export * from './shared-exports';
2
+ export * from './server-exports';
3
+ export * from './browser-exports';
235
4
  //# sourceMappingURL=index.d.ts.map
@@ -7,4 +7,11 @@ import { HandlerDataConsole } from '../types-hoist/instrument';
7
7
  * @hidden
8
8
  */
9
9
  export declare function addConsoleInstrumentationHandler(handler: (data: HandlerDataConsole) => void): () => void;
10
+ /**
11
+ * Add a filter to the console instrumentation to filter out console messages that match the given strings or regular expressions.
12
+ * Returns a function to remove the filter.
13
+ */
14
+ export declare function addConsoleInstrumentationFilter(filter: (string | RegExp)[]): () => void;
15
+ /** Only exported for tests. */
16
+ export declare function _INTERNAL_resetConsoleInstrumentationOptions(): void;
10
17
  //# sourceMappingURL=console.d.ts.map
@@ -11,6 +11,6 @@ interface CaptureConsoleOptions {
11
11
  /**
12
12
  * Send Console API calls as Sentry Events.
13
13
  */
14
- export declare const captureConsoleIntegration: (options?: CaptureConsoleOptions | undefined) => import("../types-hoist/integration").Integration;
14
+ export declare const captureConsoleIntegration: (options?: CaptureConsoleOptions | undefined) => import("..").Integration;
15
15
  export {};
16
16
  //# sourceMappingURL=captureconsole.d.ts.map
@@ -1,6 +1,11 @@
1
1
  import { ConsoleLevel } from '../types-hoist/instrument';
2
2
  interface ConsoleIntegrationOptions {
3
3
  levels: ConsoleLevel[];
4
+ /**
5
+ * Filter out console messages that match the given strings or regular expressions.
6
+ * These will neither be passed to the handler, and they will also not be logged to the user, unless they have debug enabled.
7
+ */
8
+ filter?: (string | RegExp)[];
4
9
  }
5
10
  /**
6
11
  * Captures calls to the `console` API as breadcrumbs in Sentry.
@@ -5,5 +5,5 @@
5
5
  * and applies it to spans when they start. This ensures the conversation ID is
6
6
  * available for all AI-related operations.
7
7
  */
8
- export declare const conversationIdIntegration: () => import("../types-hoist/integration").Integration;
8
+ export declare const conversationIdIntegration: () => import("..").Integration;
9
9
  //# sourceMappingURL=conversationId.d.ts.map
@@ -2,7 +2,7 @@ import { Event } from '../types-hoist/event';
2
2
  /**
3
3
  * Deduplication filter.
4
4
  */
5
- export declare const dedupeIntegration: () => import("../types-hoist/integration").Integration;
5
+ export declare const dedupeIntegration: () => import("..").Integration;
6
6
  /** only exported for tests. */
7
7
  export declare function _shouldDropEvent(currentEvent: Event, previousEvent?: Event): boolean;
8
8
  //# sourceMappingURL=dedupe.d.ts.map
@@ -20,7 +20,7 @@ export interface EventFiltersOptions {
20
20
  *
21
21
  * Events filtered by this integration will not be sent to Sentry.
22
22
  */
23
- export declare const eventFiltersIntegration: (options?: Partial<EventFiltersOptions> | undefined) => import("../types-hoist/integration").Integration;
23
+ export declare const eventFiltersIntegration: (options?: Partial<EventFiltersOptions> | undefined) => import("..").Integration;
24
24
  /**
25
25
  * An integration that filters out events (errors and transactions) based on:
26
26
  *
@@ -37,5 +37,5 @@ export declare const eventFiltersIntegration: (options?: Partial<EventFiltersOpt
37
37
  * @deprecated this integration was renamed and will be removed in a future major version.
38
38
  * Use `eventFiltersIntegration` instead.
39
39
  */
40
- export declare const inboundFiltersIntegration: (options?: Partial<EventFiltersOptions> | undefined) => import("../types-hoist/integration").Integration;
40
+ export declare const inboundFiltersIntegration: (options?: Partial<EventFiltersOptions> | undefined) => import("..").Integration;
41
41
  //# sourceMappingURL=eventFilters.d.ts.map
@@ -10,6 +10,6 @@ interface ExtraErrorDataOptions {
10
10
  */
11
11
  captureErrorCause: boolean;
12
12
  }
13
- export declare const extraErrorDataIntegration: (options?: Partial<ExtraErrorDataOptions> | undefined) => import("../types-hoist/integration").Integration;
13
+ export declare const extraErrorDataIntegration: (options?: Partial<ExtraErrorDataOptions> | undefined) => import("..").Integration;
14
14
  export {};
15
15
  //# sourceMappingURL=extraerrordata.d.ts.map
@@ -9,5 +9,5 @@
9
9
  * });
10
10
  * ```
11
11
  */
12
- export declare const functionToStringIntegration: () => import("../types-hoist/integration").Integration;
12
+ export declare const functionToStringIntegration: () => import("..").Integration;
13
13
  //# sourceMappingURL=functiontostring.d.ts.map
@@ -2,6 +2,6 @@ interface LinkedErrorsOptions {
2
2
  key?: string;
3
3
  limit?: number;
4
4
  }
5
- export declare const linkedErrorsIntegration: (options?: LinkedErrorsOptions | undefined) => import("../types-hoist/integration").Integration;
5
+ export declare const linkedErrorsIntegration: (options?: LinkedErrorsOptions | undefined) => import("..").Integration;
6
6
  export {};
7
7
  //# sourceMappingURL=linkederrors.d.ts.map
@@ -30,4 +30,22 @@ export declare function wrapPromptHandlers(serverInstance: MCPServerInstance): v
30
30
  * @param serverInstance - MCP server instance
31
31
  */
32
32
  export declare function wrapAllMCPHandlers(serverInstance: MCPServerInstance): void;
33
+ /**
34
+ * Retroactively wraps handlers on tools, resources, and prompts that were registered
35
+ * before `wrapMcpServerWithSentry` was called.
36
+ *
37
+ * The MCP SDK stores registered entries in private maps and invokes them via the entry's
38
+ * own property at call time — `executor` for tools, `readCallback` for resources, and
39
+ * `handler` for prompts. Replacing those properties
40
+ * in-place is therefore equivalent to having wrapped the original registration call.
41
+ *
42
+ * NOTE: This intentionally accesses private MCP SDK internals (`_registeredTools` etc.).
43
+ * The properties and their shapes are verified against @modelcontextprotocol/sdk source:
44
+ * https://github.com/modelcontextprotocol/typescript-sdk/blob/2c0c481cb9dbfd15c8613f765c940a5f5bace94d/packages/server/src/server/mcp.ts#L304
45
+ * When upgrading the MCP SDK, re-verify that these internal maps and their callable
46
+ * properties still exist and are invoked directly (not captured by closure at registration).
47
+ * All access is defensive — if a property is absent or not a function we skip silently.
48
+ * @internal
49
+ */
50
+ export declare function wrapExistingHandlers(serverInstance: MCPServerInstance): void;
33
51
  //# sourceMappingURL=handlers.d.ts.map
@@ -6,17 +6,24 @@ import { McpServerWrapperOptions } from './types';
6
6
  * and versions that expose the newer `registerTool`/`registerResource`/`registerPrompt` API (introduced in 1.x, sole API in 2.x).
7
7
  * Automatically instruments transport methods and handler functions for comprehensive monitoring.
8
8
  *
9
+ * Both call orderings are supported: wrapping before or after registering tools, resources,
10
+ * and prompts. Sentry patches the registration methods for future handlers and retroactively
11
+ * wraps any already-registered ones. Wrapping at construction time is recommended by
12
+ * convention (consistent with other SDK integrations), but is not required.
13
+ *
9
14
  * @example
10
15
  * ```typescript
11
16
  * import * as Sentry from '@sentry/core';
12
17
  * import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
13
18
  * import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
14
19
  *
15
- * // Default: inputs/outputs captured based on sendDefaultPii option
20
+ * // Wrap first, then register tools this is the correct order
16
21
  * const server = Sentry.wrapMcpServerWithSentry(
17
22
  * new McpServer({ name: "my-server", version: "1.0.0" })
18
23
  * );
19
24
  *
25
+ * server.registerTool('my-tool', schema, handler);
26
+ *
20
27
  * // Explicitly control input/output capture
21
28
  * const server = Sentry.wrapMcpServerWithSentry(
22
29
  * new McpServer({ name: "my-server", version: "1.0.0" }),
@@ -16,6 +16,6 @@ type RequestDataIntegrationOptions = {
16
16
  * Add data about a request to an event. Primarily for use in Node-based SDKs, but included in `@sentry/core`
17
17
  * so it can be used in cross-platform SDKs like `@sentry/nextjs`.
18
18
  */
19
- export declare const requestDataIntegration: (options?: RequestDataIntegrationOptions | undefined) => import("../types-hoist/integration").Integration;
19
+ export declare const requestDataIntegration: (options?: RequestDataIntegrationOptions | undefined) => import("..").Integration;
20
20
  export {};
21
21
  //# sourceMappingURL=requestdata.d.ts.map
@@ -1,2 +1,2 @@
1
- export declare const spanStreamingIntegration: () => import("../types-hoist/integration").Integration;
1
+ export declare const spanStreamingIntegration: () => import("..").Integration;
2
2
  //# sourceMappingURL=spanStreaming.d.ts.map
@@ -95,6 +95,6 @@ export declare function translateFiltersIntoMethods(key: string, query: string):
95
95
  export declare const instrumentSupabaseClient: (supabaseClient: unknown) => void;
96
96
  export declare const supabaseIntegration: (options: {
97
97
  supabaseClient: any;
98
- }) => import("../types-hoist/integration").Integration;
98
+ }) => import("..").Integration;
99
99
  export {};
100
100
  //# sourceMappingURL=supabase.d.ts.map
@@ -71,6 +71,6 @@ export declare function applyZodErrorsToEvent(limit: number, saveZodIssuesAsAtta
71
71
  /**
72
72
  * Sentry integration to process Zod errors, making them easier to work with in Sentry.
73
73
  */
74
- export declare const zodErrorsIntegration: (options?: ZodErrorsOptions | undefined) => import("../types-hoist/integration").Integration;
74
+ export declare const zodErrorsIntegration: (options?: ZodErrorsOptions | undefined) => import("..").Integration;
75
75
  export {};
76
76
  //# sourceMappingURL=zoderrors.d.ts.map
@@ -22,6 +22,6 @@ interface CaptureConsoleOptions {
22
22
  * });
23
23
  * ```
24
24
  */
25
- export declare const consoleLoggingIntegration: (options?: Partial<CaptureConsoleOptions> | undefined) => import("../types-hoist/integration").Integration;
25
+ export declare const consoleLoggingIntegration: (options?: Partial<CaptureConsoleOptions> | undefined) => import("..").Integration;
26
26
  export {};
27
27
  //# sourceMappingURL=console-integration.d.ts.map
@@ -0,0 +1,21 @@
1
+ export { ServerRuntimeClientOptions } from './server-runtime-client';
2
+ export { ServerRuntimeClient } from './server-runtime-client';
3
+ export { ServerRuntimeOptions } from './types-hoist/options';
4
+ export { trpcMiddleware } from './trpc';
5
+ export { wrapMcpServerWithSentry } from './integrations/mcp-server';
6
+ export { isNodeEnv, loadModule } from './utils/node';
7
+ export { filenameIsInApp, node, nodeStackLineParser } from './utils/node-stack-trace';
8
+ export { vercelWaitUntil } from './utils/vercelWaitUntil';
9
+ export { flushIfServerless } from './utils/flushIfServerless';
10
+ export { callFrameToStackFrame, watchdogTimer } from './utils/anr';
11
+ export { safeUnref as _INTERNAL_safeUnref } from './utils/timer';
12
+ export { patchExpressModule, setupExpressErrorHandler, expressErrorHandler } from './integrations/express/index';
13
+ export { ExpressIntegrationOptions, ExpressHandlerOptions, ExpressMiddleware, ExpressErrorMiddleware, } from './integrations/express/types';
14
+ export { instrumentPostgresJsSql } from './integrations/postgresjs';
15
+ export { patchHttpModuleClient } from './integrations/http/client-patch';
16
+ export { getHttpClientSubscriptions } from './integrations/http/client-subscriptions';
17
+ export { addOutgoingRequestBreadcrumb } from './integrations/http/add-outgoing-request-breadcrumb';
18
+ export { getRequestUrl, getRequestUrlObject, getRequestUrlFromClientRequest, getRequestOptions, } from './integrations/http/get-request-url';
19
+ export { HTTP_ON_CLIENT_REQUEST, HTTP_ON_SERVER_REQUEST } from './integrations/http/constants';
20
+ export { HttpInstrumentationOptions, HttpClientRequest, HttpIncomingMessage, HttpServerResponse, HttpModuleExport, } from './integrations/http/types';
21
+ //# sourceMappingURL=server-exports.d.ts.map
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The Sentry core SDK and integrations used by node, node-core, cloudflare,
3
+ * bun, deno, aws lambda, and other server-side platforms, where bundle size
4
+ * is less of an issue.
5
+ *
6
+ * This export should not contain anything strictly browser-specific.
7
+ */
8
+ export * from './shared-exports';
9
+ export * from './server-exports';
10
+ //# sourceMappingURL=server.d.ts.map