@sentry/core 10.51.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 (361) 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 +15 -2
  5. package/build/cjs/client.js.map +1 -1
  6. package/build/cjs/fetch.js +7 -4
  7. package/build/cjs/fetch.js.map +1 -1
  8. package/build/cjs/index.js +82 -62
  9. package/build/cjs/index.js.map +1 -1
  10. package/build/cjs/instrument/console.js +43 -3
  11. package/build/cjs/instrument/console.js.map +1 -1
  12. package/build/cjs/integrations/captureconsole.js +2 -2
  13. package/build/cjs/integrations/captureconsole.js.map +1 -1
  14. package/build/cjs/integrations/console.js +5 -1
  15. package/build/cjs/integrations/console.js.map +1 -1
  16. package/build/cjs/integrations/express/index.js +4 -6
  17. package/build/cjs/integrations/express/index.js.map +1 -1
  18. package/build/cjs/integrations/express/utils.js +0 -7
  19. package/build/cjs/integrations/express/utils.js.map +1 -1
  20. package/build/cjs/integrations/http/add-outgoing-request-breadcrumb.js +43 -0
  21. package/build/cjs/integrations/http/add-outgoing-request-breadcrumb.js.map +1 -0
  22. package/build/cjs/integrations/http/client-patch.js +113 -0
  23. package/build/cjs/integrations/http/client-patch.js.map +1 -0
  24. package/build/cjs/integrations/http/client-subscriptions.js +166 -0
  25. package/build/cjs/integrations/http/client-subscriptions.js.map +1 -0
  26. package/build/cjs/integrations/http/constants.js +10 -0
  27. package/build/cjs/integrations/http/constants.js.map +1 -0
  28. package/build/cjs/integrations/http/double-wrap-warning.js +29 -0
  29. package/build/cjs/integrations/http/double-wrap-warning.js.map +1 -0
  30. package/build/cjs/integrations/http/get-outgoing-span-data.js +88 -0
  31. package/build/cjs/integrations/http/get-outgoing-span-data.js.map +1 -0
  32. package/build/cjs/integrations/http/get-request-url.js +54 -0
  33. package/build/cjs/integrations/http/get-request-url.js.map +1 -0
  34. package/build/cjs/integrations/http/inject-trace-propagation-headers.js +81 -0
  35. package/build/cjs/integrations/http/inject-trace-propagation-headers.js.map +1 -0
  36. package/build/cjs/integrations/mcp-server/errorCapture.js +2 -2
  37. package/build/cjs/integrations/mcp-server/errorCapture.js.map +1 -1
  38. package/build/cjs/integrations/mcp-server/handlers.js +72 -0
  39. package/build/cjs/integrations/mcp-server/handlers.js.map +1 -1
  40. package/build/cjs/integrations/mcp-server/index.js +10 -1
  41. package/build/cjs/integrations/mcp-server/index.js.map +1 -1
  42. package/build/cjs/integrations/requestdata.js +85 -3
  43. package/build/cjs/integrations/requestdata.js.map +1 -1
  44. package/build/cjs/integrations/supabase.js +4 -4
  45. package/build/cjs/integrations/supabase.js.map +1 -1
  46. package/build/cjs/logs/envelope.js +12 -2
  47. package/build/cjs/logs/envelope.js.map +1 -1
  48. package/build/cjs/logs/internal.js +7 -1
  49. package/build/cjs/logs/internal.js.map +1 -1
  50. package/build/cjs/metrics/envelope.js +15 -2
  51. package/build/cjs/metrics/envelope.js.map +1 -1
  52. package/build/cjs/metrics/internal.js +7 -1
  53. package/build/cjs/metrics/internal.js.map +1 -1
  54. package/build/cjs/server.js +563 -0
  55. package/build/cjs/server.js.map +1 -0
  56. package/build/cjs/tracing/ai/utils.js +2 -2
  57. package/build/cjs/tracing/ai/utils.js.map +1 -1
  58. package/build/cjs/tracing/anthropic-ai/index.js +3 -3
  59. package/build/cjs/tracing/anthropic-ai/index.js.map +1 -1
  60. package/build/cjs/tracing/anthropic-ai/streaming.js +3 -3
  61. package/build/cjs/tracing/anthropic-ai/streaming.js.map +1 -1
  62. package/build/cjs/tracing/anthropic-ai/utils.js +2 -2
  63. package/build/cjs/tracing/anthropic-ai/utils.js.map +1 -1
  64. package/build/cjs/tracing/google-genai/index.js +3 -3
  65. package/build/cjs/tracing/google-genai/index.js.map +1 -1
  66. package/build/cjs/tracing/google-genai/streaming.js +2 -2
  67. package/build/cjs/tracing/google-genai/streaming.js.map +1 -1
  68. package/build/cjs/tracing/langchain/embeddings.js +2 -2
  69. package/build/cjs/tracing/langchain/embeddings.js.map +1 -1
  70. package/build/cjs/tracing/langchain/index.js +4 -4
  71. package/build/cjs/tracing/langchain/index.js.map +1 -1
  72. package/build/cjs/tracing/langgraph/index.js +3 -3
  73. package/build/cjs/tracing/langgraph/index.js.map +1 -1
  74. package/build/cjs/tracing/langgraph/utils.js +2 -2
  75. package/build/cjs/tracing/langgraph/utils.js.map +1 -1
  76. package/build/cjs/tracing/openai/index.js +3 -3
  77. package/build/cjs/tracing/openai/index.js.map +1 -1
  78. package/build/cjs/tracing/openai/streaming.js +2 -2
  79. package/build/cjs/tracing/openai/streaming.js.map +1 -1
  80. package/build/cjs/tracing/sentrySpan.js +5 -0
  81. package/build/cjs/tracing/sentrySpan.js.map +1 -1
  82. package/build/cjs/tracing/spans/captureSpan.js +58 -23
  83. package/build/cjs/tracing/spans/captureSpan.js.map +1 -1
  84. package/build/cjs/tracing/spans/extractGenAiSpans.js +60 -0
  85. package/build/cjs/tracing/spans/extractGenAiSpans.js.map +1 -0
  86. package/build/cjs/tracing/spans/spanJsonToStreamedSpan.js +26 -0
  87. package/build/cjs/tracing/spans/spanJsonToStreamedSpan.js.map +1 -0
  88. package/build/cjs/tracing/trace.js +1 -0
  89. package/build/cjs/tracing/trace.js.map +1 -1
  90. package/build/cjs/tracing/vercel-ai/constants.js +8 -0
  91. package/build/cjs/tracing/vercel-ai/constants.js.map +1 -1
  92. package/build/cjs/tracing/vercel-ai/index.js +99 -15
  93. package/build/cjs/tracing/vercel-ai/index.js.map +1 -1
  94. package/build/cjs/trpc.js +3 -3
  95. package/build/cjs/trpc.js.map +1 -1
  96. package/build/cjs/utils/baggage.js +73 -0
  97. package/build/cjs/utils/baggage.js.map +1 -1
  98. package/build/cjs/utils/chain-and-copy-promiselike.js +1 -0
  99. package/build/cjs/utils/chain-and-copy-promiselike.js.map +1 -1
  100. package/build/cjs/utils/exports.js +7 -7
  101. package/build/cjs/utils/exports.js.map +1 -1
  102. package/build/cjs/utils/flushIfServerless.js +2 -2
  103. package/build/cjs/utils/flushIfServerless.js.map +1 -1
  104. package/build/cjs/utils/get-default-export.js +32 -0
  105. package/build/cjs/utils/get-default-export.js.map +1 -0
  106. package/build/cjs/utils/request.js +129 -0
  107. package/build/cjs/utils/request.js.map +1 -1
  108. package/build/cjs/utils/spanUtils.js +1 -1
  109. package/build/cjs/utils/spanUtils.js.map +1 -1
  110. package/build/cjs/utils/string.js +9 -2
  111. package/build/cjs/utils/string.js.map +1 -1
  112. package/build/cjs/utils/traceData.js +2 -2
  113. package/build/cjs/utils/traceData.js.map +1 -1
  114. package/build/cjs/utils/version.js +1 -1
  115. package/build/esm/browser.js +142 -0
  116. package/build/esm/browser.js.map +1 -0
  117. package/build/esm/client.js +15 -2
  118. package/build/esm/client.js.map +1 -1
  119. package/build/esm/fetch.js +7 -4
  120. package/build/esm/fetch.js.map +1 -1
  121. package/build/esm/index.js +20 -15
  122. package/build/esm/index.js.map +1 -1
  123. package/build/esm/instrument/console.js +44 -5
  124. package/build/esm/instrument/console.js.map +1 -1
  125. package/build/esm/integrations/console.js +6 -2
  126. package/build/esm/integrations/console.js.map +1 -1
  127. package/build/esm/integrations/express/index.js +3 -5
  128. package/build/esm/integrations/express/index.js.map +1 -1
  129. package/build/esm/integrations/express/utils.js +1 -7
  130. package/build/esm/integrations/express/utils.js.map +1 -1
  131. package/build/esm/integrations/http/add-outgoing-request-breadcrumb.js +41 -0
  132. package/build/esm/integrations/http/add-outgoing-request-breadcrumb.js.map +1 -0
  133. package/build/esm/integrations/http/client-patch.js +111 -0
  134. package/build/esm/integrations/http/client-patch.js.map +1 -0
  135. package/build/esm/integrations/http/client-subscriptions.js +164 -0
  136. package/build/esm/integrations/http/client-subscriptions.js.map +1 -0
  137. package/build/esm/integrations/http/constants.js +6 -0
  138. package/build/esm/integrations/http/constants.js.map +1 -0
  139. package/build/esm/integrations/http/double-wrap-warning.js +26 -0
  140. package/build/esm/integrations/http/double-wrap-warning.js.map +1 -0
  141. package/build/esm/integrations/http/get-outgoing-span-data.js +85 -0
  142. package/build/esm/integrations/http/get-outgoing-span-data.js.map +1 -0
  143. package/build/esm/integrations/http/get-request-url.js +49 -0
  144. package/build/esm/integrations/http/get-request-url.js.map +1 -0
  145. package/build/esm/integrations/http/inject-trace-propagation-headers.js +79 -0
  146. package/build/esm/integrations/http/inject-trace-propagation-headers.js.map +1 -0
  147. package/build/esm/integrations/mcp-server/handlers.js +72 -1
  148. package/build/esm/integrations/mcp-server/handlers.js.map +1 -1
  149. package/build/esm/integrations/mcp-server/index.js +11 -2
  150. package/build/esm/integrations/mcp-server/index.js.map +1 -1
  151. package/build/esm/integrations/requestdata.js +85 -3
  152. package/build/esm/integrations/requestdata.js.map +1 -1
  153. package/build/esm/logs/envelope.js +12 -2
  154. package/build/esm/logs/envelope.js.map +1 -1
  155. package/build/esm/logs/internal.js +7 -1
  156. package/build/esm/logs/internal.js.map +1 -1
  157. package/build/esm/metrics/envelope.js +15 -2
  158. package/build/esm/metrics/envelope.js.map +1 -1
  159. package/build/esm/metrics/internal.js +7 -1
  160. package/build/esm/metrics/internal.js.map +1 -1
  161. package/build/esm/package.json +1 -1
  162. package/build/esm/server.js +157 -0
  163. package/build/esm/server.js.map +1 -0
  164. package/build/esm/tracing/sentrySpan.js +5 -0
  165. package/build/esm/tracing/sentrySpan.js.map +1 -1
  166. package/build/esm/tracing/spans/captureSpan.js +58 -23
  167. package/build/esm/tracing/spans/captureSpan.js.map +1 -1
  168. package/build/esm/tracing/spans/extractGenAiSpans.js +58 -0
  169. package/build/esm/tracing/spans/extractGenAiSpans.js.map +1 -0
  170. package/build/esm/tracing/spans/spanJsonToStreamedSpan.js +24 -0
  171. package/build/esm/tracing/spans/spanJsonToStreamedSpan.js.map +1 -0
  172. package/build/esm/tracing/trace.js +1 -1
  173. package/build/esm/tracing/trace.js.map +1 -1
  174. package/build/esm/tracing/vercel-ai/constants.js +8 -1
  175. package/build/esm/tracing/vercel-ai/constants.js.map +1 -1
  176. package/build/esm/tracing/vercel-ai/index.js +101 -18
  177. package/build/esm/tracing/vercel-ai/index.js.map +1 -1
  178. package/build/esm/utils/baggage.js +73 -1
  179. package/build/esm/utils/baggage.js.map +1 -1
  180. package/build/esm/utils/chain-and-copy-promiselike.js +1 -0
  181. package/build/esm/utils/chain-and-copy-promiselike.js.map +1 -1
  182. package/build/esm/utils/exports.js +7 -7
  183. package/build/esm/utils/exports.js.map +1 -1
  184. package/build/esm/utils/get-default-export.js +30 -0
  185. package/build/esm/utils/get-default-export.js.map +1 -0
  186. package/build/esm/utils/request.js +127 -1
  187. package/build/esm/utils/request.js.map +1 -1
  188. package/build/esm/utils/spanUtils.js +1 -1
  189. package/build/esm/utils/spanUtils.js.map +1 -1
  190. package/build/esm/utils/string.js +9 -2
  191. package/build/esm/utils/string.js.map +1 -1
  192. package/build/esm/utils/version.js +1 -1
  193. package/build/types/browser-exports.d.ts +11 -0
  194. package/build/types/browser-exports.d.ts.map +1 -0
  195. package/build/types/browser.d.ts +3 -0
  196. package/build/types/browser.d.ts.map +1 -0
  197. package/build/types/build-time-plugins/buildTimeOptionsBase.d.ts +8 -0
  198. package/build/types/build-time-plugins/buildTimeOptionsBase.d.ts.map +1 -1
  199. package/build/types/carrier.d.ts +1 -1
  200. package/build/types/carrier.d.ts.map +1 -1
  201. package/build/types/client.d.ts.map +1 -1
  202. package/build/types/fetch.d.ts.map +1 -1
  203. package/build/types/index.d.ts +3 -223
  204. package/build/types/index.d.ts.map +1 -1
  205. package/build/types/instrument/console.d.ts +7 -0
  206. package/build/types/instrument/console.d.ts.map +1 -1
  207. package/build/types/integrations/captureconsole.d.ts +1 -1
  208. package/build/types/integrations/captureconsole.d.ts.map +1 -1
  209. package/build/types/integrations/console.d.ts +5 -0
  210. package/build/types/integrations/console.d.ts.map +1 -1
  211. package/build/types/integrations/conversationId.d.ts +1 -1
  212. package/build/types/integrations/conversationId.d.ts.map +1 -1
  213. package/build/types/integrations/dedupe.d.ts +1 -1
  214. package/build/types/integrations/dedupe.d.ts.map +1 -1
  215. package/build/types/integrations/eventFilters.d.ts +2 -2
  216. package/build/types/integrations/eventFilters.d.ts.map +1 -1
  217. package/build/types/integrations/express/index.d.ts.map +1 -1
  218. package/build/types/integrations/express/utils.d.ts +1 -5
  219. package/build/types/integrations/express/utils.d.ts.map +1 -1
  220. package/build/types/integrations/extraerrordata.d.ts +1 -1
  221. package/build/types/integrations/extraerrordata.d.ts.map +1 -1
  222. package/build/types/integrations/functiontostring.d.ts +1 -1
  223. package/build/types/integrations/functiontostring.d.ts.map +1 -1
  224. package/build/types/integrations/http/add-outgoing-request-breadcrumb.d.ts +6 -0
  225. package/build/types/integrations/http/add-outgoing-request-breadcrumb.d.ts.map +1 -0
  226. package/build/types/integrations/http/client-patch.d.ts +46 -0
  227. package/build/types/integrations/http/client-patch.d.ts.map +1 -0
  228. package/build/types/integrations/http/client-subscriptions.d.ts +21 -0
  229. package/build/types/integrations/http/client-subscriptions.d.ts.map +1 -0
  230. package/build/types/integrations/http/constants.d.ts +6 -0
  231. package/build/types/integrations/http/constants.d.ts.map +1 -0
  232. package/build/types/integrations/http/double-wrap-warning.d.ts +4 -0
  233. package/build/types/integrations/http/double-wrap-warning.d.ts.map +1 -0
  234. package/build/types/integrations/http/get-outgoing-span-data.d.ts +13 -0
  235. package/build/types/integrations/http/get-outgoing-span-data.d.ts.map +1 -0
  236. package/build/types/integrations/http/get-request-url.d.ts +10 -0
  237. package/build/types/integrations/http/get-request-url.d.ts.map +1 -0
  238. package/build/types/integrations/http/index.d.ts +4 -0
  239. package/build/types/integrations/http/index.d.ts.map +1 -0
  240. package/build/types/integrations/http/inject-trace-propagation-headers.d.ts +12 -0
  241. package/build/types/integrations/http/inject-trace-propagation-headers.d.ts.map +1 -0
  242. package/build/types/integrations/http/types.d.ts +249 -0
  243. package/build/types/integrations/http/types.d.ts.map +1 -0
  244. package/build/types/integrations/linkederrors.d.ts +1 -1
  245. package/build/types/integrations/linkederrors.d.ts.map +1 -1
  246. package/build/types/integrations/mcp-server/handlers.d.ts +18 -0
  247. package/build/types/integrations/mcp-server/handlers.d.ts.map +1 -1
  248. package/build/types/integrations/mcp-server/index.d.ts +8 -1
  249. package/build/types/integrations/mcp-server/index.d.ts.map +1 -1
  250. package/build/types/integrations/requestdata.d.ts +1 -1
  251. package/build/types/integrations/requestdata.d.ts.map +1 -1
  252. package/build/types/integrations/spanStreaming.d.ts +1 -1
  253. package/build/types/integrations/spanStreaming.d.ts.map +1 -1
  254. package/build/types/integrations/supabase.d.ts +1 -1
  255. package/build/types/integrations/supabase.d.ts.map +1 -1
  256. package/build/types/integrations/zoderrors.d.ts +1 -1
  257. package/build/types/integrations/zoderrors.d.ts.map +1 -1
  258. package/build/types/logs/console-integration.d.ts +1 -1
  259. package/build/types/logs/console-integration.d.ts.map +1 -1
  260. package/build/types/logs/envelope.d.ts +5 -2
  261. package/build/types/logs/envelope.d.ts.map +1 -1
  262. package/build/types/logs/internal.d.ts.map +1 -1
  263. package/build/types/metrics/envelope.d.ts +5 -2
  264. package/build/types/metrics/envelope.d.ts.map +1 -1
  265. package/build/types/metrics/internal.d.ts.map +1 -1
  266. package/build/types/server-exports.d.ts +26 -0
  267. package/build/types/server-exports.d.ts.map +1 -0
  268. package/build/types/server.d.ts +10 -0
  269. package/build/types/server.d.ts.map +1 -0
  270. package/build/types/shared-exports.d.ts +215 -0
  271. package/build/types/shared-exports.d.ts.map +1 -0
  272. package/build/types/tracing/index.d.ts +1 -1
  273. package/build/types/tracing/index.d.ts.map +1 -1
  274. package/build/types/tracing/sentrySpan.d.ts.map +1 -1
  275. package/build/types/tracing/spans/captureSpan.d.ts +4 -4
  276. package/build/types/tracing/spans/captureSpan.d.ts.map +1 -1
  277. package/build/types/tracing/spans/extractGenAiSpans.d.ts +15 -0
  278. package/build/types/tracing/spans/extractGenAiSpans.d.ts.map +1 -0
  279. package/build/types/tracing/spans/spanJsonToStreamedSpan.d.ts +6 -0
  280. package/build/types/tracing/spans/spanJsonToStreamedSpan.d.ts.map +1 -0
  281. package/build/types/tracing/trace.d.ts +1 -0
  282. package/build/types/tracing/trace.d.ts.map +1 -1
  283. package/build/types/tracing/vercel-ai/constants.d.ts +1 -0
  284. package/build/types/tracing/vercel-ai/constants.d.ts.map +1 -1
  285. package/build/types/tracing/vercel-ai/index.d.ts +9 -0
  286. package/build/types/tracing/vercel-ai/index.d.ts.map +1 -1
  287. package/build/types/types-hoist/envelope.d.ts +1 -1
  288. package/build/types/types-hoist/envelope.d.ts.map +1 -1
  289. package/build/types/types-hoist/log.d.ts +5 -0
  290. package/build/types/types-hoist/log.d.ts.map +1 -1
  291. package/build/types/types-hoist/metric.d.ts +5 -0
  292. package/build/types/types-hoist/metric.d.ts.map +1 -1
  293. package/build/types/types-hoist/options.d.ts +8 -0
  294. package/build/types/types-hoist/options.d.ts.map +1 -1
  295. package/build/types/types-hoist/webfetchapi.d.ts +2 -0
  296. package/build/types/types-hoist/webfetchapi.d.ts.map +1 -1
  297. package/build/types/utils/baggage.d.ts +13 -0
  298. package/build/types/utils/baggage.d.ts.map +1 -1
  299. package/build/types/utils/get-default-export.d.ts +22 -0
  300. package/build/types/utils/get-default-export.d.ts.map +1 -0
  301. package/build/types/utils/request.d.ts +30 -0
  302. package/build/types/utils/request.d.ts.map +1 -1
  303. package/build/types/utils/spanUtils.d.ts +1 -1
  304. package/build/types/utils/string.d.ts +1 -1
  305. package/build/types/utils/string.d.ts.map +1 -1
  306. package/build/types-ts3.8/browser-exports.d.ts +11 -0
  307. package/build/types-ts3.8/browser.d.ts +3 -0
  308. package/build/types-ts3.8/build-time-plugins/buildTimeOptionsBase.d.ts +8 -0
  309. package/build/types-ts3.8/carrier.d.ts +1 -1
  310. package/build/types-ts3.8/index.d.ts +3 -225
  311. package/build/types-ts3.8/instrument/console.d.ts +7 -0
  312. package/build/types-ts3.8/integrations/captureconsole.d.ts +1 -1
  313. package/build/types-ts3.8/integrations/console.d.ts +5 -0
  314. package/build/types-ts3.8/integrations/conversationId.d.ts +1 -1
  315. package/build/types-ts3.8/integrations/dedupe.d.ts +1 -1
  316. package/build/types-ts3.8/integrations/eventFilters.d.ts +2 -2
  317. package/build/types-ts3.8/integrations/express/utils.d.ts +1 -5
  318. package/build/types-ts3.8/integrations/extraerrordata.d.ts +1 -1
  319. package/build/types-ts3.8/integrations/functiontostring.d.ts +1 -1
  320. package/build/types-ts3.8/integrations/http/add-outgoing-request-breadcrumb.d.ts +6 -0
  321. package/build/types-ts3.8/integrations/http/client-patch.d.ts +46 -0
  322. package/build/types-ts3.8/integrations/http/client-subscriptions.d.ts +21 -0
  323. package/build/types-ts3.8/integrations/http/constants.d.ts +6 -0
  324. package/build/types-ts3.8/integrations/http/double-wrap-warning.d.ts +4 -0
  325. package/build/types-ts3.8/integrations/http/get-outgoing-span-data.d.ts +13 -0
  326. package/build/types-ts3.8/integrations/http/get-request-url.d.ts +10 -0
  327. package/build/types-ts3.8/integrations/http/index.d.ts +4 -0
  328. package/build/types-ts3.8/integrations/http/inject-trace-propagation-headers.d.ts +12 -0
  329. package/build/types-ts3.8/integrations/http/types.d.ts +252 -0
  330. package/build/types-ts3.8/integrations/linkederrors.d.ts +1 -1
  331. package/build/types-ts3.8/integrations/mcp-server/handlers.d.ts +18 -0
  332. package/build/types-ts3.8/integrations/mcp-server/index.d.ts +8 -1
  333. package/build/types-ts3.8/integrations/requestdata.d.ts +1 -1
  334. package/build/types-ts3.8/integrations/spanStreaming.d.ts +1 -1
  335. package/build/types-ts3.8/integrations/supabase.d.ts +1 -1
  336. package/build/types-ts3.8/integrations/zoderrors.d.ts +1 -1
  337. package/build/types-ts3.8/logs/console-integration.d.ts +1 -1
  338. package/build/types-ts3.8/logs/envelope.d.ts +5 -2
  339. package/build/types-ts3.8/metrics/envelope.d.ts +5 -2
  340. package/build/types-ts3.8/server-exports.d.ts +21 -0
  341. package/build/types-ts3.8/server.d.ts +10 -0
  342. package/build/types-ts3.8/shared-exports.d.ts +214 -0
  343. package/build/types-ts3.8/tracing/index.d.ts +1 -1
  344. package/build/types-ts3.8/tracing/spans/captureSpan.d.ts +4 -4
  345. package/build/types-ts3.8/tracing/spans/extractGenAiSpans.d.ts +15 -0
  346. package/build/types-ts3.8/tracing/spans/spanJsonToStreamedSpan.d.ts +6 -0
  347. package/build/types-ts3.8/tracing/trace.d.ts +1 -0
  348. package/build/types-ts3.8/tracing/vercel-ai/constants.d.ts +1 -0
  349. package/build/types-ts3.8/tracing/vercel-ai/index.d.ts +9 -0
  350. package/build/types-ts3.8/types-hoist/envelope.d.ts +1 -1
  351. package/build/types-ts3.8/types-hoist/log.d.ts +5 -0
  352. package/build/types-ts3.8/types-hoist/metric.d.ts +5 -0
  353. package/build/types-ts3.8/types-hoist/options.d.ts +8 -0
  354. package/build/types-ts3.8/types-hoist/webfetchapi.d.ts +2 -0
  355. package/build/types-ts3.8/utils/baggage.d.ts +13 -0
  356. package/build/types-ts3.8/utils/get-default-export.d.ts +22 -0
  357. package/build/types-ts3.8/utils/request.d.ts +30 -0
  358. package/build/types-ts3.8/utils/spanUtils.d.ts +1 -1
  359. package/build/types-ts3.8/utils/string.d.ts +1 -1
  360. package/package.json +24 -2
  361. package/server.js +3 -0
@@ -0,0 +1,4 @@
1
+ export { HttpInstrumentationOptions } from './types';
2
+ export * from './client-patch';
3
+ export * from './client-subscriptions';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { LRUMap } from '../../utils/lru';
2
+ import { HttpClientRequest } from './types';
3
+ /**
4
+ * Inject Sentry trace-propagation headers into an outgoing request if the
5
+ * target URL matches the configured `tracePropagationTargets`.
6
+ *
7
+ * Note: this must be called *before* calling `request.end()` (or firing the
8
+ * `http.client.request.start` diagnostics channel), because at that point,
9
+ * the headers have already been sent, and cannot be modified.
10
+ */
11
+ export declare function injectTracePropagationHeaders(request: HttpClientRequest, propagationDecisionMap: LRUMap<string, boolean>): void;
12
+ //# sourceMappingURL=inject-trace-propagation-headers.d.ts.map
@@ -0,0 +1,252 @@
1
+ /**
2
+ * Platform-portable HTTP(S) outgoing-request integration – type definitions.
3
+ *
4
+ * @module
5
+ *
6
+ * This Sentry integration is a derivative work based on the OpenTelemetry
7
+ * HTTP instrumentation.
8
+ *
9
+ * <https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation-http>
10
+ *
11
+ * Extended under the terms of the Apache 2.0 license linked below:
12
+ *
13
+ * ----
14
+ *
15
+ * Copyright The OpenTelemetry Authors
16
+ *
17
+ * Licensed under the Apache License, Version 2.0 (the "License");
18
+ * you may not use this file except in compliance with the License.
19
+ * You may obtain a copy of the License at
20
+ *
21
+ * https://www.apache.org/licenses/LICENSE-2.0
22
+ *
23
+ * Unless required by applicable law or agreed to in writing, software
24
+ * distributed under the License is distributed on an "AS IS" BASIS,
25
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26
+ * See the License for the specific language governing permissions and
27
+ * limitations under the License.
28
+ */
29
+ import { RequestEventData } from '../../types-hoist/request';
30
+ import { Span } from '../../types-hoist/span';
31
+ /** Minimal interface for a Node.js http.ClientRequest */
32
+ export interface HttpClientRequest {
33
+ method?: string;
34
+ path?: string;
35
+ host?: string;
36
+ protocol?: string;
37
+ port?: number;
38
+ end(): void;
39
+ getHeader(name: string): string | string[] | number | undefined;
40
+ getHeaders(): Record<string, string | string[] | undefined | number>;
41
+ setHeader(name: string, value: string | string[] | number): void;
42
+ removeHeader(name: string): void;
43
+ prependListener(event: 'response', listener: (res: HttpIncomingMessage) => void): this;
44
+ prependListener(event: string | symbol, listener: (...args: unknown[]) => void): this;
45
+ on(event: string | symbol, listener: (...args: unknown[]) => void): this;
46
+ once(event: string | symbol, listener: (...args: unknown[]) => void): this;
47
+ listenerCount(event: string | symbol): number;
48
+ removeListener(event: string | symbol, listener: (...args: unknown[]) => void): this;
49
+ }
50
+ /** Minimal interface for http client RequestOptions */
51
+ export interface HttpRequestOptions {
52
+ method?: string;
53
+ protocol?: string | null;
54
+ hostname?: string | null;
55
+ host?: string | null;
56
+ port?: string | number | null;
57
+ path?: string | null;
58
+ headers?: Record<string, string | string[] | undefined | number>;
59
+ }
60
+ /** Minimal interface for a Node.js http.ServerResponse */
61
+ export interface HttpServerResponse {
62
+ statusCode: number;
63
+ statusMessage?: string;
64
+ headers: Record<string, string | undefined | string[] | number>;
65
+ once(ev: string, ...data: unknown[]): this;
66
+ once(ev: 'close'): this;
67
+ on(ev: string | symbol, handler: (...data: unknown[]) => void): this;
68
+ }
69
+ export interface HttpServer {
70
+ emit(ev: string, ...data: unknown[]): this;
71
+ emit(ev: 'request', request: HttpIncomingMessage, response: HttpServerResponse): this;
72
+ }
73
+ export interface HttpSocket {
74
+ remoteAddress?: string;
75
+ remotePort?: number;
76
+ localAddress?: string;
77
+ localPort?: number;
78
+ }
79
+ /** Minimal interface for a Node.js http.IncomingMessage */
80
+ export interface HttpIncomingMessage {
81
+ statusCode?: number;
82
+ statusMessage?: string;
83
+ httpVersion?: string;
84
+ url?: string;
85
+ method?: string;
86
+ headers: Record<string, string | string[] | undefined>;
87
+ socket?: HttpSocket;
88
+ aborted?: boolean;
89
+ complete?: boolean;
90
+ resume(): void;
91
+ on(event: 'end', listener: () => void): this;
92
+ on(event: string | symbol, listener: (...args: unknown[]) => void): this;
93
+ addListener(event: 'end', listener: () => void): this;
94
+ addListener(event: string | symbol, listener: (...args: unknown[]) => void): this;
95
+ off(event: string | symbol, listener: (...args: unknown[]) => void): this;
96
+ removeListener(event: string | symbol, listener: (...args: unknown[]) => void): this;
97
+ }
98
+ /** Minimal interface for a Node.js http / https module export */
99
+ export interface HttpExport {
100
+ request: (...args: any[]) => HttpClientRequest;
101
+ get: (...args: any[]) => HttpClientRequest;
102
+ [key: string]: unknown;
103
+ }
104
+ export type HttpModuleExport = HttpExport | (HttpExport & {
105
+ default: HttpExport;
106
+ });
107
+ export interface HttpInstrumentationOptions {
108
+ /**
109
+ * Whether to create spans for outgoing HTTP requests.
110
+ * @default true
111
+ */
112
+ spans?: boolean;
113
+ /**
114
+ * Whether to inject distributed trace propagation headers
115
+ * (`sentry-trace`, `baggage`, `traceparent`) into outgoing requests.
116
+ * @default false
117
+ */
118
+ propagateTrace?: boolean;
119
+ /**
120
+ * Skip span / breadcrumb creation for requests to matching URLs.
121
+ * Receives the full URL string and the outgoing request object.
122
+ */
123
+ ignoreOutgoingRequests?: (url: string, request: HttpClientRequest) => boolean;
124
+ /**
125
+ * Whether breadcrumbs should be recorded for outgoing requests.
126
+ * @default true
127
+ */
128
+ breadcrumbs?: boolean;
129
+ /**
130
+ * Called after the outgoing-request span is created by the client.
131
+ * Use this to add custom attributes to the span.
132
+ */
133
+ outgoingRequestHook?: (span: Span, request: HttpClientRequest) => void;
134
+ /**
135
+ * Called when the response is received by the client.
136
+ */
137
+ outgoingResponseHook?: (span: Span, response: HttpIncomingMessage) => void;
138
+ /**
139
+ * Called when both the request and response are available (after the
140
+ * response ends). Useful for adding attributes based on both objects.
141
+ */
142
+ applyCustomAttributesOnSpan?: (span: Span, request: HttpClientRequest, response: HttpIncomingMessage) => void;
143
+ /**
144
+ * Symbol to use for observing errors on EventEmitters without consuming
145
+ * them. Pass `EventEmitter.errorMonitor` from Node.js `events` module.
146
+ * Falls back to the plain `'error'` event string when not provided.
147
+ *
148
+ * Using the real `errorMonitor` symbol ensures that Sentry does not
149
+ * swallow errors before they reach user-supplied `'error'` handlers.
150
+ */
151
+ errorMonitor?: symbol | string;
152
+ /**
153
+ * Controls the maximum size of incoming HTTP request bodies attached to events.
154
+ *
155
+ * Available options:
156
+ * - 'none': No request bodies will be attached
157
+ * - 'small': Request bodies up to 1,000 bytes will be attached
158
+ * - 'medium': Request bodies up to 10,000 bytes will be attached (default)
159
+ * - 'always': Request bodies will always be attached
160
+ *
161
+ * Note that even with 'always' setting, bodies exceeding 1MB will never be attached
162
+ * for performance and security reasons.
163
+ *
164
+ * @default 'medium'
165
+ */
166
+ maxRequestBodySize?: 'none' | 'small' | 'medium' | 'always';
167
+ /**
168
+ * Do not capture the request body for incoming HTTP requests to URLs where the given callback returns `true`.
169
+ * This can be useful for long running requests where the body is not needed and we want to avoid capturing it.
170
+ *
171
+ * @param url Contains the entire URL, including query string (if any), protocol, host, etc. of the incoming request.
172
+ * @param request Contains the {@type RequestOptions} object used to make the incoming request.
173
+ */
174
+ ignoreRequestBody?: (url: string, request: HttpIncomingMessage) => boolean;
175
+ /**
176
+ * Whether the integration should create [Sessions](https://docs.sentry.io/product/releases/health/#sessions) for incoming requests to track the health and crash-free rate of your releases in Sentry.
177
+ * Read more about Release Health: https://docs.sentry.io/product/releases/health/
178
+ *
179
+ * Defaults to `true`.
180
+ */
181
+ sessions?: boolean;
182
+ /**
183
+ * Number of milliseconds until sessions tracked with `trackIncomingRequestsAsSessions` will be flushed as a session aggregate.
184
+ *
185
+ * Defaults to `60000` (60s).
186
+ */
187
+ sessionFlushingDelayMS?: number;
188
+ /**
189
+ * Optional callback that can be used by integrations to emit the 'request'
190
+ * event within a given Sentry or OTEL context, possibly after creating a
191
+ * span, as in the HttpServerSpansIntegration.
192
+ */
193
+ wrapServerEmitRequest?: (request: HttpIncomingMessage, response: HttpServerResponse, normalizedRequest: RequestEventData, next: () => void) => void;
194
+ /**
195
+ * Do not capture spans for incoming HTTP requests to URLs where the given callback returns `true`.
196
+ * Spans will be non recording if tracing is disabled.
197
+ *
198
+ * The `urlPath` param consists of the URL path and query string (if any) of the incoming request.
199
+ * For example: `'/users/details?id=123'`
200
+ *
201
+ * The `request` param contains the original {@type IncomingMessage} object of the incoming request.
202
+ * You can use it to filter on additional properties like method, headers, etc.
203
+ */
204
+ ignoreIncomingRequests?: (urlPath: string, request: HttpIncomingMessage) => boolean;
205
+ /**
206
+ * Whether to automatically ignore common static asset requests like favicon.ico, robots.txt, etc.
207
+ * This helps reduce noise in your transactions.
208
+ *
209
+ * @default `true`
210
+ */
211
+ ignoreStaticAssets?: boolean;
212
+ /**
213
+ * Do not capture spans for incoming HTTP requests with the given status codes.
214
+ * By default, spans with some 3xx and 4xx status codes are ignored (see @default).
215
+ * Expects an array of status codes or a range of status codes, e.g. [[300,399], 404] would ignore 3xx and 404 status codes.
216
+ *
217
+ * @default `[[401, 404], [301, 303], [305, 399]]`
218
+ */
219
+ ignoreStatusCodes?: (number | [
220
+ number,
221
+ number
222
+ ])[];
223
+ /**
224
+ * A hook that can be used to mutate the span for incoming requests.
225
+ * This is triggered after the span is created, but before it is recorded.
226
+ */
227
+ onSpanCreated?: (span: Span, request: HttpIncomingMessage, response: HttpServerResponse) => void;
228
+ /**
229
+ * A hook that can be used to mutate the span one last time when the
230
+ * response is finished, eg to update the transaction name based on
231
+ * the RPC metadata.
232
+ */
233
+ onSpanEnd?: (span: Span, request: HttpIncomingMessage, response: HttpServerResponse) => void;
234
+ /**
235
+ * Optional: pass in the `http` and `https` modules in order to detect
236
+ * whether a standalone OTel instrumentation is attempting to wrap them
237
+ * as well. This is fine, as long as `spans` option is disabled, but will
238
+ * result in double-emitting spans otherwise.
239
+ *
240
+ * Since this cannot be fully prevented due to module load timing, and isn't
241
+ * necessarily harmful per se (just noisy/annoying), and there are a number
242
+ * of reasonable approaches to fix it (disable the OTel instrumentation,
243
+ * disable this instrumentation, or keep both and disable spans in one or the
244
+ * other), we simply print a warning so the user can hopefully make an
245
+ * informed decision about how to address it (if at all).
246
+ */
247
+ http?: HttpModuleExport;
248
+ https?: HttpModuleExport;
249
+ /** suppress the warning about double-wrapping with OTel */
250
+ suppressOtelWarning?: boolean;
251
+ }
252
+ //# sourceMappingURL=types.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
@@ -6,9 +6,11 @@ import { SdkMetadata } from '../types-hoist/sdkmetadata';
6
6
  * Creates a log container envelope item for a list of logs.
7
7
  *
8
8
  * @param items - The logs to include in the envelope.
9
+ * @param inferUserData - If true, tells Relay to infer the end-user IP and User-Agent from the incoming request.
10
+ * Only emitted as `ingest_settings` in browser environments.
9
11
  * @returns The created log container envelope item.
10
12
  */
11
- export declare function createLogContainerEnvelopeItem(items: Array<SerializedLog>): LogContainerItem;
13
+ export declare function createLogContainerEnvelopeItem(items: Array<SerializedLog>, inferUserData?: boolean): LogContainerItem;
12
14
  /**
13
15
  * Creates an envelope for a list of logs.
14
16
  *
@@ -18,7 +20,8 @@ export declare function createLogContainerEnvelopeItem(items: Array<SerializedLo
18
20
  * @param metadata - The metadata to include in the envelope.
19
21
  * @param tunnel - The tunnel to include in the envelope.
20
22
  * @param dsn - The DSN to include in the envelope.
23
+ * @param inferUserData - If true, tells Relay to infer the end-user IP and User-Agent from the incoming request.
21
24
  * @returns The created envelope.
22
25
  */
23
- export declare function createLogEnvelope(logs: Array<SerializedLog>, metadata?: SdkMetadata, tunnel?: string, dsn?: DsnComponents): LogEnvelope;
26
+ export declare function createLogEnvelope(logs: Array<SerializedLog>, metadata?: SdkMetadata, tunnel?: string, dsn?: DsnComponents, inferUserData?: boolean): LogEnvelope;
24
27
  //# sourceMappingURL=envelope.d.ts.map
@@ -6,9 +6,11 @@ import { SdkMetadata } from '../types-hoist/sdkmetadata';
6
6
  * Creates a metric container envelope item for a list of metrics.
7
7
  *
8
8
  * @param items - The metrics to include in the envelope.
9
+ * @param inferUserData - If true, tells Relay to infer the end-user IP and User-Agent from the incoming request.
10
+ * Only emitted as `ingest_settings` in browser environments.
9
11
  * @returns The created metric container envelope item.
10
12
  */
11
- export declare function createMetricContainerEnvelopeItem(items: Array<SerializedMetric>): MetricContainerItem;
13
+ export declare function createMetricContainerEnvelopeItem(items: Array<SerializedMetric>, inferUserData?: boolean): MetricContainerItem;
12
14
  /**
13
15
  * Creates an envelope for a list of metrics.
14
16
  *
@@ -18,7 +20,8 @@ export declare function createMetricContainerEnvelopeItem(items: Array<Serialize
18
20
  * @param metadata - The metadata to include in the envelope.
19
21
  * @param tunnel - The tunnel to include in the envelope.
20
22
  * @param dsn - The DSN to include in the envelope.
23
+ * @param inferUserData - If true, tells Relay to infer the end-user IP and User-Agent from the incoming request.
21
24
  * @returns The created envelope.
22
25
  */
23
- export declare function createMetricEnvelope(metrics: Array<SerializedMetric>, metadata?: SdkMetadata, tunnel?: string, dsn?: DsnComponents): MetricEnvelope;
26
+ export declare function createMetricEnvelope(metrics: Array<SerializedMetric>, metadata?: SdkMetadata, tunnel?: string, dsn?: DsnComponents, inferUserData?: boolean): MetricEnvelope;
24
27
  //# sourceMappingURL=envelope.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