@sentry/node 8.41.0 → 8.43.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 (332) hide show
  1. package/build/cjs/index.js +1 -0
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/integrations/anr/index.js +26 -1
  4. package/build/cjs/integrations/anr/index.js.map +1 -1
  5. package/build/cjs/integrations/console.js.map +1 -1
  6. package/build/cjs/integrations/context.js +1 -2
  7. package/build/cjs/integrations/context.js.map +1 -1
  8. package/build/cjs/integrations/contextlines.js.map +1 -1
  9. package/build/cjs/integrations/http/SentryHttpInstrumentation.js +3 -2
  10. package/build/cjs/integrations/http/SentryHttpInstrumentation.js.map +1 -1
  11. package/build/cjs/integrations/http/index.js +12 -9
  12. package/build/cjs/integrations/http/index.js.map +1 -1
  13. package/build/cjs/integrations/http/vendor/getRequestInfo.js +130 -0
  14. package/build/cjs/integrations/http/vendor/getRequestInfo.js.map +1 -0
  15. package/build/cjs/integrations/local-variables/index.js.map +1 -1
  16. package/build/cjs/integrations/local-variables/local-variables-async.js +1 -1
  17. package/build/cjs/integrations/local-variables/local-variables-async.js.map +1 -1
  18. package/build/cjs/integrations/local-variables/local-variables-sync.js.map +1 -1
  19. package/build/cjs/integrations/modules.js.map +1 -1
  20. package/build/cjs/integrations/node-fetch.js +9 -19
  21. package/build/cjs/integrations/node-fetch.js.map +1 -1
  22. package/build/cjs/integrations/onuncaughtexception.js.map +1 -1
  23. package/build/cjs/integrations/onunhandledrejection.js +2 -8
  24. package/build/cjs/integrations/onunhandledrejection.js.map +1 -1
  25. package/build/cjs/integrations/spotlight.js.map +1 -1
  26. package/build/cjs/integrations/tracing/amqplib.js.map +1 -1
  27. package/build/cjs/integrations/tracing/connect.js.map +1 -1
  28. package/build/cjs/integrations/tracing/dataloader.js.map +1 -1
  29. package/build/cjs/integrations/tracing/express.js +1 -0
  30. package/build/cjs/integrations/tracing/express.js.map +1 -1
  31. package/build/cjs/integrations/tracing/fastify.js.map +1 -1
  32. package/build/cjs/integrations/tracing/genericPool.js.map +1 -1
  33. package/build/cjs/integrations/tracing/graphql.js.map +1 -1
  34. package/build/cjs/integrations/tracing/hapi/index.js.map +1 -1
  35. package/build/cjs/integrations/tracing/index.js +5 -2
  36. package/build/cjs/integrations/tracing/index.js.map +1 -1
  37. package/build/cjs/integrations/tracing/kafka.js.map +1 -1
  38. package/build/cjs/integrations/tracing/knex.js.map +1 -1
  39. package/build/cjs/integrations/tracing/koa.js.map +1 -1
  40. package/build/cjs/integrations/tracing/lrumemoizer.js.map +1 -1
  41. package/build/cjs/integrations/tracing/mongo.js.map +1 -1
  42. package/build/cjs/integrations/tracing/mongoose.js.map +1 -1
  43. package/build/cjs/integrations/tracing/mysql.js.map +1 -1
  44. package/build/cjs/integrations/tracing/mysql2.js.map +1 -1
  45. package/build/cjs/integrations/tracing/nest/helpers.js.map +1 -1
  46. package/build/cjs/integrations/tracing/nest/nest.js +9 -2
  47. package/build/cjs/integrations/tracing/nest/nest.js.map +1 -1
  48. package/build/cjs/integrations/tracing/nest/sentry-nest-event-instrumentation.js.map +1 -1
  49. package/build/cjs/integrations/tracing/nest/sentry-nest-instrumentation.js.map +1 -1
  50. package/build/cjs/integrations/tracing/postgres.js.map +1 -1
  51. package/build/cjs/integrations/tracing/prisma.js.map +1 -1
  52. package/build/cjs/integrations/tracing/redis.js.map +1 -1
  53. package/build/cjs/integrations/tracing/tedious.js.map +1 -1
  54. package/build/cjs/integrations/tracing/vercelai/index.js +202 -0
  55. package/build/cjs/integrations/tracing/vercelai/index.js.map +1 -0
  56. package/build/cjs/integrations/tracing/vercelai/instrumentation.js +75 -0
  57. package/build/cjs/integrations/tracing/vercelai/instrumentation.js.map +1 -0
  58. package/build/cjs/otel/instrument.js +6 -4
  59. package/build/cjs/otel/instrument.js.map +1 -1
  60. package/build/cjs/proxy/base.js +0 -1
  61. package/build/cjs/proxy/base.js.map +1 -1
  62. package/build/cjs/sdk/api.js +0 -3
  63. package/build/cjs/sdk/api.js.map +1 -1
  64. package/build/cjs/sdk/client.js.map +1 -1
  65. package/build/cjs/sdk/index.js +2 -1
  66. package/build/cjs/sdk/index.js.map +1 -1
  67. package/build/cjs/sdk/initOtel.js +30 -5
  68. package/build/cjs/sdk/initOtel.js.map +1 -1
  69. package/build/cjs/transports/http.js.map +1 -1
  70. package/build/cjs/utils/addOriginToSpan.js.map +1 -1
  71. package/build/cjs/utils/createMissingInstrumentationContext.js.map +1 -1
  72. package/build/cjs/utils/ensureIsWrapped.js.map +1 -1
  73. package/build/cjs/utils/errorhandling.js.map +1 -1
  74. package/build/cjs/utils/module.js +8 -10
  75. package/build/cjs/utils/module.js.map +1 -1
  76. package/build/esm/index.js +1 -1
  77. package/build/esm/integrations/anr/index.js +27 -3
  78. package/build/esm/integrations/anr/index.js.map +1 -1
  79. package/build/esm/integrations/anr/worker-script.js +2 -2
  80. package/build/esm/integrations/console.js.map +1 -1
  81. package/build/esm/integrations/context.js +1 -2
  82. package/build/esm/integrations/context.js.map +1 -1
  83. package/build/esm/integrations/contextlines.js.map +1 -1
  84. package/build/esm/integrations/http/SentryHttpInstrumentation.js +3 -2
  85. package/build/esm/integrations/http/SentryHttpInstrumentation.js.map +1 -1
  86. package/build/esm/integrations/http/index.js +12 -9
  87. package/build/esm/integrations/http/index.js.map +1 -1
  88. package/build/esm/integrations/http/vendor/getRequestInfo.js +128 -0
  89. package/build/esm/integrations/http/vendor/getRequestInfo.js.map +1 -0
  90. package/build/esm/integrations/local-variables/index.js.map +1 -1
  91. package/build/esm/integrations/local-variables/local-variables-async.js +1 -1
  92. package/build/esm/integrations/local-variables/local-variables-async.js.map +1 -1
  93. package/build/esm/integrations/local-variables/local-variables-sync.js.map +1 -1
  94. package/build/esm/integrations/local-variables/worker-script.js +2 -2
  95. package/build/esm/integrations/modules.js.map +1 -1
  96. package/build/esm/integrations/node-fetch.js +10 -20
  97. package/build/esm/integrations/node-fetch.js.map +1 -1
  98. package/build/esm/integrations/onuncaughtexception.js.map +1 -1
  99. package/build/esm/integrations/onunhandledrejection.js +2 -8
  100. package/build/esm/integrations/onunhandledrejection.js.map +1 -1
  101. package/build/esm/integrations/spotlight.js.map +1 -1
  102. package/build/esm/integrations/tracing/amqplib.js.map +1 -1
  103. package/build/esm/integrations/tracing/connect.js.map +1 -1
  104. package/build/esm/integrations/tracing/dataloader.js.map +1 -1
  105. package/build/esm/integrations/tracing/express.js +1 -0
  106. package/build/esm/integrations/tracing/express.js.map +1 -1
  107. package/build/esm/integrations/tracing/fastify.js.map +1 -1
  108. package/build/esm/integrations/tracing/genericPool.js.map +1 -1
  109. package/build/esm/integrations/tracing/graphql.js.map +1 -1
  110. package/build/esm/integrations/tracing/hapi/index.js.map +1 -1
  111. package/build/esm/integrations/tracing/index.js +3 -0
  112. package/build/esm/integrations/tracing/index.js.map +1 -1
  113. package/build/esm/integrations/tracing/kafka.js.map +1 -1
  114. package/build/esm/integrations/tracing/knex.js.map +1 -1
  115. package/build/esm/integrations/tracing/koa.js.map +1 -1
  116. package/build/esm/integrations/tracing/lrumemoizer.js.map +1 -1
  117. package/build/esm/integrations/tracing/mongo.js.map +1 -1
  118. package/build/esm/integrations/tracing/mongoose.js.map +1 -1
  119. package/build/esm/integrations/tracing/mysql.js.map +1 -1
  120. package/build/esm/integrations/tracing/mysql2.js.map +1 -1
  121. package/build/esm/integrations/tracing/nest/helpers.js.map +1 -1
  122. package/build/esm/integrations/tracing/nest/nest.js +9 -2
  123. package/build/esm/integrations/tracing/nest/nest.js.map +1 -1
  124. package/build/esm/integrations/tracing/nest/sentry-nest-event-instrumentation.js.map +1 -1
  125. package/build/esm/integrations/tracing/nest/sentry-nest-instrumentation.js.map +1 -1
  126. package/build/esm/integrations/tracing/postgres.js.map +1 -1
  127. package/build/esm/integrations/tracing/prisma.js.map +1 -1
  128. package/build/esm/integrations/tracing/redis.js.map +1 -1
  129. package/build/esm/integrations/tracing/tedious.js.map +1 -1
  130. package/build/esm/integrations/tracing/vercelai/index.js +196 -0
  131. package/build/esm/integrations/tracing/vercelai/index.js.map +1 -0
  132. package/build/esm/integrations/tracing/vercelai/instrumentation.js +73 -0
  133. package/build/esm/integrations/tracing/vercelai/instrumentation.js.map +1 -0
  134. package/build/esm/otel/instrument.js +4 -2
  135. package/build/esm/otel/instrument.js.map +1 -1
  136. package/build/esm/package.json +1 -1
  137. package/build/esm/proxy/base.js +0 -1
  138. package/build/esm/proxy/base.js.map +1 -1
  139. package/build/esm/sdk/api.js +0 -3
  140. package/build/esm/sdk/api.js.map +1 -1
  141. package/build/esm/sdk/client.js.map +1 -1
  142. package/build/esm/sdk/index.js +2 -1
  143. package/build/esm/sdk/index.js.map +1 -1
  144. package/build/esm/sdk/initOtel.js +30 -6
  145. package/build/esm/sdk/initOtel.js.map +1 -1
  146. package/build/esm/transports/http.js.map +1 -1
  147. package/build/esm/utils/addOriginToSpan.js.map +1 -1
  148. package/build/esm/utils/createMissingInstrumentationContext.js.map +1 -1
  149. package/build/esm/utils/ensureIsWrapped.js.map +1 -1
  150. package/build/esm/utils/errorhandling.js.map +1 -1
  151. package/build/esm/utils/module.js +8 -10
  152. package/build/esm/utils/module.js.map +1 -1
  153. package/build/types/index.d.ts +2 -2
  154. package/build/types/index.d.ts.map +1 -1
  155. package/build/types/integrations/anr/common.d.ts +1 -1
  156. package/build/types/integrations/anr/common.d.ts.map +1 -1
  157. package/build/types/integrations/anr/index.d.ts +3 -1
  158. package/build/types/integrations/anr/index.d.ts.map +1 -1
  159. package/build/types/integrations/childProcess.d.ts +2 -2
  160. package/build/types/integrations/childProcess.d.ts.map +1 -1
  161. package/build/types/integrations/console.d.ts +1 -1
  162. package/build/types/integrations/console.d.ts.map +1 -1
  163. package/build/types/integrations/context.d.ts +2 -2
  164. package/build/types/integrations/context.d.ts.map +1 -1
  165. package/build/types/integrations/contextlines.d.ts +2 -2
  166. package/build/types/integrations/contextlines.d.ts.map +1 -1
  167. package/build/types/integrations/fs.d.ts +1 -1
  168. package/build/types/integrations/fs.d.ts.map +1 -1
  169. package/build/types/integrations/http/SentryHttpInstrumentation.d.ts.map +1 -1
  170. package/build/types/integrations/http/index.d.ts +11 -2
  171. package/build/types/integrations/http/index.d.ts.map +1 -1
  172. package/build/types/integrations/http/vendor/getRequestInfo.d.ts +21 -0
  173. package/build/types/integrations/http/vendor/getRequestInfo.d.ts.map +1 -0
  174. package/build/types/integrations/local-variables/index.d.ts +1 -1
  175. package/build/types/integrations/local-variables/index.d.ts.map +1 -1
  176. package/build/types/integrations/local-variables/local-variables-async.d.ts +1 -1
  177. package/build/types/integrations/local-variables/local-variables-async.d.ts.map +1 -1
  178. package/build/types/integrations/local-variables/local-variables-sync.d.ts +2 -2
  179. package/build/types/integrations/local-variables/local-variables-sync.d.ts.map +1 -1
  180. package/build/types/integrations/modules.d.ts +1 -1
  181. package/build/types/integrations/modules.d.ts.map +1 -1
  182. package/build/types/integrations/node-fetch.d.ts +1 -1
  183. package/build/types/integrations/node-fetch.d.ts.map +1 -1
  184. package/build/types/integrations/onuncaughtexception.d.ts +1 -1
  185. package/build/types/integrations/onuncaughtexception.d.ts.map +1 -1
  186. package/build/types/integrations/onunhandledrejection.d.ts +2 -2
  187. package/build/types/integrations/onunhandledrejection.d.ts.map +1 -1
  188. package/build/types/integrations/spotlight.d.ts +1 -1
  189. package/build/types/integrations/spotlight.d.ts.map +1 -1
  190. package/build/types/integrations/tracing/amqplib.d.ts +1 -1
  191. package/build/types/integrations/tracing/amqplib.d.ts.map +1 -1
  192. package/build/types/integrations/tracing/connect.d.ts +1 -1
  193. package/build/types/integrations/tracing/connect.d.ts.map +1 -1
  194. package/build/types/integrations/tracing/dataloader.d.ts +1 -1
  195. package/build/types/integrations/tracing/dataloader.d.ts.map +1 -1
  196. package/build/types/integrations/tracing/express.d.ts +1 -1
  197. package/build/types/integrations/tracing/express.d.ts.map +1 -1
  198. package/build/types/integrations/tracing/fastify.d.ts +1 -1
  199. package/build/types/integrations/tracing/fastify.d.ts.map +1 -1
  200. package/build/types/integrations/tracing/genericPool.d.ts +1 -1
  201. package/build/types/integrations/tracing/genericPool.d.ts.map +1 -1
  202. package/build/types/integrations/tracing/graphql.d.ts +1 -1
  203. package/build/types/integrations/tracing/graphql.d.ts.map +1 -1
  204. package/build/types/integrations/tracing/hapi/index.d.ts +1 -1
  205. package/build/types/integrations/tracing/hapi/index.d.ts.map +1 -1
  206. package/build/types/integrations/tracing/index.d.ts +1 -1
  207. package/build/types/integrations/tracing/index.d.ts.map +1 -1
  208. package/build/types/integrations/tracing/kafka.d.ts +1 -1
  209. package/build/types/integrations/tracing/kafka.d.ts.map +1 -1
  210. package/build/types/integrations/tracing/knex.d.ts +1 -1
  211. package/build/types/integrations/tracing/knex.d.ts.map +1 -1
  212. package/build/types/integrations/tracing/koa.d.ts +1 -1
  213. package/build/types/integrations/tracing/koa.d.ts.map +1 -1
  214. package/build/types/integrations/tracing/lrumemoizer.d.ts +1 -1
  215. package/build/types/integrations/tracing/lrumemoizer.d.ts.map +1 -1
  216. package/build/types/integrations/tracing/mongo.d.ts +1 -1
  217. package/build/types/integrations/tracing/mongo.d.ts.map +1 -1
  218. package/build/types/integrations/tracing/mongoose.d.ts +1 -1
  219. package/build/types/integrations/tracing/mongoose.d.ts.map +1 -1
  220. package/build/types/integrations/tracing/mysql.d.ts +1 -15
  221. package/build/types/integrations/tracing/mysql.d.ts.map +1 -1
  222. package/build/types/integrations/tracing/mysql2.d.ts +1 -1
  223. package/build/types/integrations/tracing/mysql2.d.ts.map +1 -1
  224. package/build/types/integrations/tracing/nest/helpers.d.ts +1 -1
  225. package/build/types/integrations/tracing/nest/helpers.d.ts.map +1 -1
  226. package/build/types/integrations/tracing/nest/nest.d.ts +1 -1
  227. package/build/types/integrations/tracing/nest/nest.d.ts.map +1 -1
  228. package/build/types/integrations/tracing/nest/sentry-nest-event-instrumentation.d.ts.map +1 -1
  229. package/build/types/integrations/tracing/nest/sentry-nest-instrumentation.d.ts.map +1 -1
  230. package/build/types/integrations/tracing/nest/types.d.ts +14 -6
  231. package/build/types/integrations/tracing/nest/types.d.ts.map +1 -1
  232. package/build/types/integrations/tracing/postgres.d.ts +1 -1
  233. package/build/types/integrations/tracing/postgres.d.ts.map +1 -1
  234. package/build/types/integrations/tracing/prisma.d.ts +1 -1
  235. package/build/types/integrations/tracing/prisma.d.ts.map +1 -1
  236. package/build/types/integrations/tracing/redis.d.ts +1 -1
  237. package/build/types/integrations/tracing/redis.d.ts.map +1 -1
  238. package/build/types/integrations/tracing/tedious.d.ts +1 -1
  239. package/build/types/integrations/tracing/tedious.d.ts.map +1 -1
  240. package/build/types/integrations/tracing/vercelai/index.d.ts +40 -0
  241. package/build/types/integrations/tracing/vercelai/index.d.ts.map +1 -0
  242. package/build/types/integrations/tracing/vercelai/instrumentation.d.ts +21 -0
  243. package/build/types/integrations/tracing/vercelai/instrumentation.d.ts.map +1 -0
  244. package/build/types/integrations/tracing/vercelai/types.d.ts +38 -0
  245. package/build/types/integrations/tracing/vercelai/types.d.ts.map +1 -0
  246. package/build/types/otel/instrument.d.ts +1 -1
  247. package/build/types/otel/instrument.d.ts.map +1 -1
  248. package/build/types/proxy/base.d.ts.map +1 -1
  249. package/build/types/sdk/api.d.ts +1 -1
  250. package/build/types/sdk/api.d.ts.map +1 -1
  251. package/build/types/sdk/client.d.ts +1 -2
  252. package/build/types/sdk/client.d.ts.map +1 -1
  253. package/build/types/sdk/index.d.ts +1 -1
  254. package/build/types/sdk/index.d.ts.map +1 -1
  255. package/build/types/sdk/initOtel.d.ts +2 -0
  256. package/build/types/sdk/initOtel.d.ts.map +1 -1
  257. package/build/types/sdk/scope.d.ts +1 -1
  258. package/build/types/sdk/scope.d.ts.map +1 -1
  259. package/build/types/transports/http.d.ts +1 -1
  260. package/build/types/transports/http.d.ts.map +1 -1
  261. package/build/types/types.d.ts +2 -2
  262. package/build/types/types.d.ts.map +1 -1
  263. package/build/types/utils/addOriginToSpan.d.ts +1 -1
  264. package/build/types/utils/addOriginToSpan.d.ts.map +1 -1
  265. package/build/types/utils/createMissingInstrumentationContext.d.ts +1 -1
  266. package/build/types/utils/createMissingInstrumentationContext.d.ts.map +1 -1
  267. package/build/types/utils/ensureIsWrapped.d.ts.map +1 -1
  268. package/build/types/utils/entry-point.d.ts +24 -0
  269. package/build/types/utils/entry-point.d.ts.map +1 -0
  270. package/build/types/utils/errorhandling.d.ts +1 -1
  271. package/build/types/utils/errorhandling.d.ts.map +1 -1
  272. package/build/types/utils/module.d.ts.map +1 -1
  273. package/build/types/utils/prepareEvent.d.ts +1 -1
  274. package/build/types/utils/prepareEvent.d.ts.map +1 -1
  275. package/build/types-ts3.8/index.d.ts +2 -2
  276. package/build/types-ts3.8/integrations/anr/common.d.ts +1 -1
  277. package/build/types-ts3.8/integrations/anr/index.d.ts +3 -1
  278. package/build/types-ts3.8/integrations/childProcess.d.ts +2 -2
  279. package/build/types-ts3.8/integrations/console.d.ts +1 -1
  280. package/build/types-ts3.8/integrations/context.d.ts +2 -2
  281. package/build/types-ts3.8/integrations/contextlines.d.ts +2 -2
  282. package/build/types-ts3.8/integrations/fs.d.ts +1 -1
  283. package/build/types-ts3.8/integrations/http/index.d.ts +11 -2
  284. package/build/types-ts3.8/integrations/http/vendor/getRequestInfo.d.ts +21 -0
  285. package/build/types-ts3.8/integrations/local-variables/index.d.ts +1 -1
  286. package/build/types-ts3.8/integrations/local-variables/local-variables-async.d.ts +1 -1
  287. package/build/types-ts3.8/integrations/local-variables/local-variables-sync.d.ts +2 -2
  288. package/build/types-ts3.8/integrations/modules.d.ts +1 -1
  289. package/build/types-ts3.8/integrations/node-fetch.d.ts +1 -1
  290. package/build/types-ts3.8/integrations/onuncaughtexception.d.ts +1 -1
  291. package/build/types-ts3.8/integrations/onunhandledrejection.d.ts +2 -2
  292. package/build/types-ts3.8/integrations/spotlight.d.ts +1 -1
  293. package/build/types-ts3.8/integrations/tracing/amqplib.d.ts +1 -1
  294. package/build/types-ts3.8/integrations/tracing/connect.d.ts +1 -1
  295. package/build/types-ts3.8/integrations/tracing/dataloader.d.ts +1 -1
  296. package/build/types-ts3.8/integrations/tracing/express.d.ts +1 -1
  297. package/build/types-ts3.8/integrations/tracing/fastify.d.ts +1 -1
  298. package/build/types-ts3.8/integrations/tracing/genericPool.d.ts +1 -1
  299. package/build/types-ts3.8/integrations/tracing/graphql.d.ts +1 -1
  300. package/build/types-ts3.8/integrations/tracing/hapi/index.d.ts +1 -1
  301. package/build/types-ts3.8/integrations/tracing/index.d.ts +1 -1
  302. package/build/types-ts3.8/integrations/tracing/kafka.d.ts +1 -1
  303. package/build/types-ts3.8/integrations/tracing/knex.d.ts +1 -1
  304. package/build/types-ts3.8/integrations/tracing/koa.d.ts +1 -1
  305. package/build/types-ts3.8/integrations/tracing/lrumemoizer.d.ts +1 -1
  306. package/build/types-ts3.8/integrations/tracing/mongo.d.ts +1 -1
  307. package/build/types-ts3.8/integrations/tracing/mongoose.d.ts +1 -1
  308. package/build/types-ts3.8/integrations/tracing/mysql.d.ts +1 -15
  309. package/build/types-ts3.8/integrations/tracing/mysql2.d.ts +1 -1
  310. package/build/types-ts3.8/integrations/tracing/nest/helpers.d.ts +1 -1
  311. package/build/types-ts3.8/integrations/tracing/nest/nest.d.ts +1 -1
  312. package/build/types-ts3.8/integrations/tracing/nest/types.d.ts +14 -6
  313. package/build/types-ts3.8/integrations/tracing/postgres.d.ts +1 -1
  314. package/build/types-ts3.8/integrations/tracing/prisma.d.ts +1 -1
  315. package/build/types-ts3.8/integrations/tracing/redis.d.ts +1 -1
  316. package/build/types-ts3.8/integrations/tracing/tedious.d.ts +1 -1
  317. package/build/types-ts3.8/integrations/tracing/vercelai/index.d.ts +40 -0
  318. package/build/types-ts3.8/integrations/tracing/vercelai/instrumentation.d.ts +21 -0
  319. package/build/types-ts3.8/integrations/tracing/vercelai/types.d.ts +38 -0
  320. package/build/types-ts3.8/sdk/api.d.ts +1 -1
  321. package/build/types-ts3.8/sdk/client.d.ts +1 -2
  322. package/build/types-ts3.8/sdk/index.d.ts +1 -1
  323. package/build/types-ts3.8/sdk/initOtel.d.ts +2 -0
  324. package/build/types-ts3.8/sdk/scope.d.ts +1 -1
  325. package/build/types-ts3.8/transports/http.d.ts +1 -1
  326. package/build/types-ts3.8/types.d.ts +2 -2
  327. package/build/types-ts3.8/utils/addOriginToSpan.d.ts +1 -1
  328. package/build/types-ts3.8/utils/createMissingInstrumentationContext.d.ts +1 -1
  329. package/build/types-ts3.8/utils/entry-point.d.ts +24 -0
  330. package/build/types-ts3.8/utils/errorhandling.d.ts +1 -1
  331. package/build/types-ts3.8/utils/prepareEvent.d.ts +1 -1
  332. package/package.json +33 -34
@@ -1 +1 @@
1
- {"version":3,"file":"http.js","sources":["../../../src/transports/http.ts"],"sourcesContent":["import * as http from 'node:http';\nimport * as https from 'node:https';\nimport { Readable } from 'node:stream';\nimport { createGzip } from 'node:zlib';\nimport { createTransport, suppressTracing } from '@sentry/core';\nimport { consoleSandbox } from '@sentry/core';\nimport type {\n BaseTransportOptions,\n Transport,\n TransportMakeRequestResponse,\n TransportRequest,\n TransportRequestExecutor,\n} from '@sentry/types';\nimport { HttpsProxyAgent } from '../proxy';\nimport type { HTTPModule } from './http-module';\n\nexport interface NodeTransportOptions extends BaseTransportOptions {\n /** Define custom headers */\n headers?: Record<string, string>;\n /** Set a proxy that should be used for outbound requests. */\n proxy?: string;\n /** HTTPS proxy CA certificates */\n caCerts?: string | Buffer | Array<string | Buffer>;\n /** Custom HTTP module. Defaults to the native 'http' and 'https' modules. */\n httpModule?: HTTPModule;\n /** Allow overriding connection keepAlive, defaults to false */\n keepAlive?: boolean;\n}\n\n// Estimated maximum size for reasonable standalone event\nconst GZIP_THRESHOLD = 1024 * 32;\n\n/**\n * Gets a stream from a Uint8Array or string\n * Readable.from is ideal but was added in node.js v12.3.0 and v10.17.0\n */\nfunction streamFromBody(body: Uint8Array | string): Readable {\n return new Readable({\n read() {\n this.push(body);\n this.push(null);\n },\n });\n}\n\n/**\n * Creates a Transport that uses native the native 'http' and 'https' modules to send events to Sentry.\n */\nexport function makeNodeTransport(options: NodeTransportOptions): Transport {\n let urlSegments: URL;\n\n try {\n urlSegments = new URL(options.url);\n } catch (e) {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.warn(\n '[@sentry/node]: Invalid dsn or tunnel option, will not send any events. The tunnel option must be a full URL when used.',\n );\n });\n return createTransport(options, () => Promise.resolve({}));\n }\n\n const isHttps = urlSegments.protocol === 'https:';\n\n // Proxy prioritization: http => `options.proxy` | `process.env.http_proxy`\n // Proxy prioritization: https => `options.proxy` | `process.env.https_proxy` | `process.env.http_proxy`\n const proxy = applyNoProxyOption(\n urlSegments,\n options.proxy || (isHttps ? process.env.https_proxy : undefined) || process.env.http_proxy,\n );\n\n const nativeHttpModule = isHttps ? https : http;\n const keepAlive = options.keepAlive === undefined ? false : options.keepAlive;\n\n // TODO(v9): Evaluate if we can set keepAlive to true. This would involve testing for memory leaks in older node\n // versions(>= 8) as they had memory leaks when using it: #2555\n const agent = proxy\n ? (new HttpsProxyAgent(proxy) as http.Agent)\n : new nativeHttpModule.Agent({ keepAlive, maxSockets: 30, timeout: 2000 });\n\n const requestExecutor = createRequestExecutor(options, options.httpModule ?? nativeHttpModule, agent);\n return createTransport(options, requestExecutor);\n}\n\n/**\n * Honors the `no_proxy` env variable with the highest priority to allow for hosts exclusion.\n *\n * @param transportUrl The URL the transport intends to send events to.\n * @param proxy The client configured proxy.\n * @returns A proxy the transport should use.\n */\nfunction applyNoProxyOption(transportUrlSegments: URL, proxy: string | undefined): string | undefined {\n const { no_proxy } = process.env;\n\n const urlIsExemptFromProxy =\n no_proxy &&\n no_proxy\n .split(',')\n .some(\n exemption => transportUrlSegments.host.endsWith(exemption) || transportUrlSegments.hostname.endsWith(exemption),\n );\n\n if (urlIsExemptFromProxy) {\n return undefined;\n } else {\n return proxy;\n }\n}\n\n/**\n * Creates a RequestExecutor to be used with `createTransport`.\n */\nfunction createRequestExecutor(\n options: NodeTransportOptions,\n httpModule: HTTPModule,\n agent: http.Agent,\n): TransportRequestExecutor {\n const { hostname, pathname, port, protocol, search } = new URL(options.url);\n return function makeRequest(request: TransportRequest): Promise<TransportMakeRequestResponse> {\n return new Promise((resolve, reject) => {\n // This ensures we do not generate any spans in OpenTelemetry for the transport\n suppressTracing(() => {\n let body = streamFromBody(request.body);\n\n const headers: Record<string, string> = { ...options.headers };\n\n if (request.body.length > GZIP_THRESHOLD) {\n headers['content-encoding'] = 'gzip';\n body = body.pipe(createGzip());\n }\n\n const req = httpModule.request(\n {\n method: 'POST',\n agent,\n headers,\n hostname,\n path: `${pathname}${search}`,\n port,\n protocol,\n ca: options.caCerts,\n },\n res => {\n res.on('data', () => {\n // Drain socket\n });\n\n res.on('end', () => {\n // Drain socket\n });\n\n res.setEncoding('utf8');\n\n // \"Key-value pairs of header names and values. Header names are lower-cased.\"\n // https://nodejs.org/api/http.html#http_message_headers\n const retryAfterHeader = res.headers['retry-after'] ?? null;\n const rateLimitsHeader = res.headers['x-sentry-rate-limits'] ?? null;\n\n resolve({\n statusCode: res.statusCode,\n headers: {\n 'retry-after': retryAfterHeader,\n 'x-sentry-rate-limits': Array.isArray(rateLimitsHeader)\n ? rateLimitsHeader[0] || null\n : rateLimitsHeader,\n },\n });\n },\n );\n\n req.on('error', reject);\n body.pipe(req);\n });\n });\n };\n}\n"],"names":[],"mappings":";;;;;;;;AA6BA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,EAAM,CAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CA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AA;;QAEA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,MAAA,CAAA;QACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAA,CAAA;MACA,CAAA,CAAA;IACA,CAAA,CAAA;EACA,CAAA;AACA;;"}
1
+ {"version":3,"file":"http.js","sources":["../../../src/transports/http.ts"],"sourcesContent":["import * as http from 'node:http';\nimport * as https from 'node:https';\nimport { Readable } from 'node:stream';\nimport { createGzip } from 'node:zlib';\nimport type {\n BaseTransportOptions,\n Transport,\n TransportMakeRequestResponse,\n TransportRequest,\n TransportRequestExecutor,\n} from '@sentry/core';\nimport { consoleSandbox, createTransport, suppressTracing } from '@sentry/core';\nimport { HttpsProxyAgent } from '../proxy';\nimport type { HTTPModule } from './http-module';\n\nexport interface NodeTransportOptions extends BaseTransportOptions {\n /** Define custom headers */\n headers?: Record<string, string>;\n /** Set a proxy that should be used for outbound requests. */\n proxy?: string;\n /** HTTPS proxy CA certificates */\n caCerts?: string | Buffer | Array<string | Buffer>;\n /** Custom HTTP module. Defaults to the native 'http' and 'https' modules. */\n httpModule?: HTTPModule;\n /** Allow overriding connection keepAlive, defaults to false */\n keepAlive?: boolean;\n}\n\n// Estimated maximum size for reasonable standalone event\nconst GZIP_THRESHOLD = 1024 * 32;\n\n/**\n * Gets a stream from a Uint8Array or string\n * Readable.from is ideal but was added in node.js v12.3.0 and v10.17.0\n */\nfunction streamFromBody(body: Uint8Array | string): Readable {\n return new Readable({\n read() {\n this.push(body);\n this.push(null);\n },\n });\n}\n\n/**\n * Creates a Transport that uses native the native 'http' and 'https' modules to send events to Sentry.\n */\nexport function makeNodeTransport(options: NodeTransportOptions): Transport {\n let urlSegments: URL;\n\n try {\n urlSegments = new URL(options.url);\n } catch (e) {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.warn(\n '[@sentry/node]: Invalid dsn or tunnel option, will not send any events. The tunnel option must be a full URL when used.',\n );\n });\n return createTransport(options, () => Promise.resolve({}));\n }\n\n const isHttps = urlSegments.protocol === 'https:';\n\n // Proxy prioritization: http => `options.proxy` | `process.env.http_proxy`\n // Proxy prioritization: https => `options.proxy` | `process.env.https_proxy` | `process.env.http_proxy`\n const proxy = applyNoProxyOption(\n urlSegments,\n options.proxy || (isHttps ? process.env.https_proxy : undefined) || process.env.http_proxy,\n );\n\n const nativeHttpModule = isHttps ? https : http;\n const keepAlive = options.keepAlive === undefined ? false : options.keepAlive;\n\n // TODO(v9): Evaluate if we can set keepAlive to true. This would involve testing for memory leaks in older node\n // versions(>= 8) as they had memory leaks when using it: #2555\n const agent = proxy\n ? (new HttpsProxyAgent(proxy) as http.Agent)\n : new nativeHttpModule.Agent({ keepAlive, maxSockets: 30, timeout: 2000 });\n\n const requestExecutor = createRequestExecutor(options, options.httpModule ?? nativeHttpModule, agent);\n return createTransport(options, requestExecutor);\n}\n\n/**\n * Honors the `no_proxy` env variable with the highest priority to allow for hosts exclusion.\n *\n * @param transportUrl The URL the transport intends to send events to.\n * @param proxy The client configured proxy.\n * @returns A proxy the transport should use.\n */\nfunction applyNoProxyOption(transportUrlSegments: URL, proxy: string | undefined): string | undefined {\n const { no_proxy } = process.env;\n\n const urlIsExemptFromProxy =\n no_proxy &&\n no_proxy\n .split(',')\n .some(\n exemption => transportUrlSegments.host.endsWith(exemption) || transportUrlSegments.hostname.endsWith(exemption),\n );\n\n if (urlIsExemptFromProxy) {\n return undefined;\n } else {\n return proxy;\n }\n}\n\n/**\n * Creates a RequestExecutor to be used with `createTransport`.\n */\nfunction createRequestExecutor(\n options: NodeTransportOptions,\n httpModule: HTTPModule,\n agent: http.Agent,\n): TransportRequestExecutor {\n const { hostname, pathname, port, protocol, search } = new URL(options.url);\n return function makeRequest(request: TransportRequest): Promise<TransportMakeRequestResponse> {\n return new Promise((resolve, reject) => {\n // This ensures we do not generate any spans in OpenTelemetry for the transport\n suppressTracing(() => {\n let body = streamFromBody(request.body);\n\n const headers: Record<string, string> = { ...options.headers };\n\n if (request.body.length > GZIP_THRESHOLD) {\n headers['content-encoding'] = 'gzip';\n body = body.pipe(createGzip());\n }\n\n const req = httpModule.request(\n {\n method: 'POST',\n agent,\n headers,\n hostname,\n path: `${pathname}${search}`,\n port,\n protocol,\n ca: options.caCerts,\n },\n res => {\n res.on('data', () => {\n // Drain socket\n });\n\n res.on('end', () => {\n // Drain socket\n });\n\n res.setEncoding('utf8');\n\n // \"Key-value pairs of header names and values. Header names are lower-cased.\"\n // https://nodejs.org/api/http.html#http_message_headers\n const retryAfterHeader = res.headers['retry-after'] ?? null;\n const rateLimitsHeader = res.headers['x-sentry-rate-limits'] ?? null;\n\n resolve({\n statusCode: res.statusCode,\n headers: {\n 'retry-after': retryAfterHeader,\n 'x-sentry-rate-limits': Array.isArray(rateLimitsHeader)\n ? rateLimitsHeader[0] || null\n : rateLimitsHeader,\n },\n });\n },\n );\n\n req.on('error', reject);\n body.pipe(req);\n });\n });\n };\n}\n"],"names":[],"mappings":";;;;;;;;AA4BA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,EAAM,CAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAE,CAAK,CAAA,CAAA,EAAA,EAAE,CAAE,CAAA;;AAEhC,CAAA,CAAA;CACA,EAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,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ACA,CAAA,CAAA;IACA,CAAA,CAAA;EACA,CAAA;AACA;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"addOriginToSpan.js","sources":["../../../src/utils/addOriginToSpan.ts"],"sourcesContent":["import type { Span } from '@opentelemetry/api';\nimport { SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core';\nimport type { SpanOrigin } from '@sentry/types';\n\n/** Adds an origin to an OTEL Span. */\nexport function addOriginToSpan(span: Span, origin: SpanOrigin): void {\n span.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, origin);\n}\n"],"names":[],"mappings":";;AAIA;AACO,SAAS,eAAe,CAAC,IAAI,EAAQ,MAAM,EAAoB;AACtE,EAAE,IAAI,CAAC,YAAY,CAAC,gCAAgC,EAAE,MAAM,CAAC;AAC7D;;;;"}
1
+ {"version":3,"file":"addOriginToSpan.js","sources":["../../../src/utils/addOriginToSpan.ts"],"sourcesContent":["import type { Span } from '@opentelemetry/api';\nimport { SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core';\nimport type { SpanOrigin } from '@sentry/core';\n\n/** Adds an origin to an OTEL Span. */\nexport function addOriginToSpan(span: Span, origin: SpanOrigin): void {\n span.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, origin);\n}\n"],"names":[],"mappings":";;AAIA;AACO,SAAS,eAAe,CAAC,IAAI,EAAQ,MAAM,EAAoB;AACtE,EAAE,IAAI,CAAC,YAAY,CAAC,gCAAgC,EAAE,MAAM,CAAC;AAC7D;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"createMissingInstrumentationContext.js","sources":["../../../src/utils/createMissingInstrumentationContext.ts"],"sourcesContent":["import type { MissingInstrumentationContext } from '@sentry/types';\nimport { isCjs } from './commonjs';\n\nexport const createMissingInstrumentationContext = (pkg: string): MissingInstrumentationContext => ({\n package: pkg,\n 'javascript.is_cjs': isCjs(),\n});\n"],"names":[],"mappings":";;MAGa,mCAAoC,GAAE,CAAC,GAAG,MAA6C;AACpG,EAAE,OAAO,EAAE,GAAG;AACd,EAAE,mBAAmB,EAAE,KAAK,EAAE;AAC9B,CAAC;;;;"}
1
+ {"version":3,"file":"createMissingInstrumentationContext.js","sources":["../../../src/utils/createMissingInstrumentationContext.ts"],"sourcesContent":["import type { MissingInstrumentationContext } from '@sentry/core';\nimport { isCjs } from './commonjs';\n\nexport const createMissingInstrumentationContext = (pkg: string): MissingInstrumentationContext => ({\n package: pkg,\n 'javascript.is_cjs': isCjs(),\n});\n"],"names":[],"mappings":";;MAGa,mCAAoC,GAAE,CAAC,GAAG,MAA6C;AACpG,EAAE,OAAO,EAAE,GAAG;AACd,EAAE,mBAAmB,EAAE,KAAK,EAAE;AAC9B,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ensureIsWrapped.js","sources":["../../../src/utils/ensureIsWrapped.ts"],"sourcesContent":["import { isWrapped } from '@opentelemetry/core';\nimport { getClient, getGlobalScope, hasTracingEnabled, isEnabled } from '@sentry/core';\nimport { consoleSandbox } from '@sentry/core';\nimport type { NodeClient } from '../sdk/client';\nimport { isCjs } from './commonjs';\nimport { createMissingInstrumentationContext } from './createMissingInstrumentationContext';\n\n/**\n * Checks and warns if a framework isn't wrapped by opentelemetry.\n */\nexport function ensureIsWrapped(\n maybeWrappedFunction: unknown,\n name: 'express' | 'connect' | 'fastify' | 'hapi' | 'koa',\n): void {\n const client = getClient<NodeClient>();\n if (\n !client?.getOptions().disableInstrumentationWarnings &&\n !isWrapped(maybeWrappedFunction) &&\n isEnabled() &&\n hasTracingEnabled()\n ) {\n consoleSandbox(() => {\n if (isCjs()) {\n // eslint-disable-next-line no-console\n console.warn(\n `[Sentry] ${name} is not instrumented. This is likely because you required/imported ${name} before calling \\`Sentry.init()\\`.`,\n );\n } else {\n // eslint-disable-next-line no-console\n console.warn(\n `[Sentry] ${name} is not instrumented. Please make sure to initialize Sentry in a separate file that you \\`--import\\` when running node, see: https://docs.sentry.io/platforms/javascript/guides/${name}/install/esm/.`,\n );\n }\n });\n\n getGlobalScope().setContext('missing_instrumentation', createMissingInstrumentationContext(name));\n }\n}\n"],"names":[],"mappings":";;;;;;AAOA,CAAA,CAAA;CACA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;CACA,CAAA;AACO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAS,CAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;EAC7B,CAAoB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;EACpB,CAAI,CAAA,CAAA,CAAA;AACN,EAAQ;EACN,CAAM,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAS,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAc,CAAA;EACtC,CAAA,EAAA;IACE,iBAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,EAAA,CAAA,CAAE,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EA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,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,CAAC;EACrG;AACA;;"}
1
+ {"version":3,"file":"ensureIsWrapped.js","sources":["../../../src/utils/ensureIsWrapped.ts"],"sourcesContent":["import { isWrapped } from '@opentelemetry/core';\nimport { consoleSandbox, getClient, getGlobalScope, hasTracingEnabled, isEnabled } from '@sentry/core';\nimport type { NodeClient } from '../sdk/client';\nimport { isCjs } from './commonjs';\nimport { createMissingInstrumentationContext } from './createMissingInstrumentationContext';\n\n/**\n * Checks and warns if a framework isn't wrapped by opentelemetry.\n */\nexport function ensureIsWrapped(\n maybeWrappedFunction: unknown,\n name: 'express' | 'connect' | 'fastify' | 'hapi' | 'koa',\n): void {\n const client = getClient<NodeClient>();\n if (\n !client?.getOptions().disableInstrumentationWarnings &&\n !isWrapped(maybeWrappedFunction) &&\n isEnabled() &&\n hasTracingEnabled()\n ) {\n consoleSandbox(() => {\n if (isCjs()) {\n // eslint-disable-next-line no-console\n console.warn(\n `[Sentry] ${name} is not instrumented. This is likely because you required/imported ${name} before calling \\`Sentry.init()\\`.`,\n );\n } else {\n // eslint-disable-next-line no-console\n console.warn(\n `[Sentry] ${name} is not instrumented. Please make sure to initialize Sentry in a separate file that you \\`--import\\` when running node, see: https://docs.sentry.io/platforms/javascript/guides/${name}/install/esm/.`,\n );\n }\n });\n\n getGlobalScope().setContext('missing_instrumentation', createMissingInstrumentationContext(name));\n }\n}\n"],"names":[],"mappings":";;;;;;AAMA,CAAA,CAAA;CACA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAA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Sandbox, logger } from '@sentry/core';\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { NodeClient } from '../sdk/client';\n\nconst DEFAULT_SHUTDOWN_TIMEOUT = 2000;\n\n/**\n * @hidden\n */\nexport function logAndExitProcess(error: Error): void {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.error(error);\n });\n\n const client = getClient<NodeClient>();\n\n if (client === undefined) {\n DEBUG_BUILD && logger.warn('No NodeClient was defined, we are exiting the process now.');\n global.process.exit(1);\n return;\n }\n\n const options = client.getOptions();\n const timeout =\n (options && options.shutdownTimeout && options.shutdownTimeout > 0 && options.shutdownTimeout) ||\n DEFAULT_SHUTDOWN_TIMEOUT;\n client.close(timeout).then(\n (result: boolean) => {\n if (!result) {\n DEBUG_BUILD && logger.warn('We reached the timeout for emptying the request buffer, still exiting now!');\n }\n global.process.exit(1);\n },\n error => {\n DEBUG_BUILD && logger.error(error);\n },\n );\n}\n"],"names":[],"mappings":";;;AAKA,MAAM,wBAAA,GAA2B,IAAI;;AAErC;AACA;AACA;AACO,SAAS,iBAAiB,CAAC,KAAK,EAAe;AACtD,EAAE,cAAc,CAAC,MAAM;AACvB;AACA,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;AACxB,GAAG,CAAC;;AAEJ,EAAE,MAAM,MAAA,GAAS,SAAS,EAAc;;AAExC,EAAE,IAAI,MAAO,KAAI,SAAS,EAAE;AAC5B,IAAI,eAAe,MAAM,CAAC,IAAI,CAAC,4DAA4D,CAAC;AAC5F,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAC1B,IAAI;AACJ;;AAEA,EAAE,MAAM,OAAQ,GAAE,MAAM,CAAC,UAAU,EAAE;AACrC,EAAE,MAAM,OAAQ;AAChB,IAAI,CAAC,OAAQ,IAAG,OAAO,CAAC,mBAAmB,OAAO,CAAC,eAAA,GAAkB,CAAE,IAAG,OAAO,CAAC,eAAe;AACjG,IAAI,wBAAwB;AAC5B,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI;AAC5B,IAAI,CAAC,MAAM,KAAc;AACzB,MAAM,IAAI,CAAC,MAAM,EAAE;AACnB,QAAQ,eAAe,MAAM,CAAC,IAAI,CAAC,4EAA4E,CAAC;AAChH;AACA,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAC5B,KAAK;AACL,IAAI,SAAS;AACb,MAAM,eAAe,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC;AACxC,KAAK;AACL,GAAG;AACH;;;;"}
1
+ {"version":3,"file":"errorhandling.js","sources":["../../../src/utils/errorhandling.ts"],"sourcesContent":["import { consoleSandbox, getClient, logger } from '@sentry/core';\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { NodeClient } from '../sdk/client';\n\nconst DEFAULT_SHUTDOWN_TIMEOUT = 2000;\n\n/**\n * @hidden\n */\nexport function logAndExitProcess(error: unknown): void {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.error(error);\n });\n\n const client = getClient<NodeClient>();\n\n if (client === undefined) {\n DEBUG_BUILD && logger.warn('No NodeClient was defined, we are exiting the process now.');\n global.process.exit(1);\n return;\n }\n\n const options = client.getOptions();\n const timeout =\n (options && options.shutdownTimeout && options.shutdownTimeout > 0 && options.shutdownTimeout) ||\n DEFAULT_SHUTDOWN_TIMEOUT;\n client.close(timeout).then(\n (result: boolean) => {\n if (!result) {\n DEBUG_BUILD && logger.warn('We reached the timeout for emptying the request buffer, still exiting now!');\n }\n global.process.exit(1);\n },\n error => {\n DEBUG_BUILD && logger.error(error);\n },\n );\n}\n"],"names":[],"mappings":";;;AAIA,MAAM,wBAAA,GAA2B,IAAI;;AAErC;AACA;AACA;AACO,SAAS,iBAAiB,CAAC,KAAK,EAAiB;AACxD,EAAE,cAAc,CAAC,MAAM;AACvB;AACA,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;AACxB,GAAG,CAAC;;AAEJ,EAAE,MAAM,MAAA,GAAS,SAAS,EAAc;;AAExC,EAAE,IAAI,MAAO,KAAI,SAAS,EAAE;AAC5B,IAAI,eAAe,MAAM,CAAC,IAAI,CAAC,4DAA4D,CAAC;AAC5F,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAC1B,IAAI;AACJ;;AAEA,EAAE,MAAM,OAAQ,GAAE,MAAM,CAAC,UAAU,EAAE;AACrC,EAAE,MAAM,OAAQ;AAChB,IAAI,CAAC,OAAQ,IAAG,OAAO,CAAC,mBAAmB,OAAO,CAAC,eAAA,GAAkB,CAAE,IAAG,OAAO,CAAC,eAAe;AACjG,IAAI,wBAAwB;AAC5B,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI;AAC5B,IAAI,CAAC,MAAM,KAAc;AACzB,MAAM,IAAI,CAAC,MAAM,EAAE;AACnB,QAAQ,eAAe,MAAM,CAAC,IAAI,CAAC,4EAA4E,CAAC;AAChH;AACA,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAC5B,KAAK;AACL,IAAI,SAAS;AACb,MAAM,eAAe,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC;AACxC,KAAK;AACL,GAAG;AACH;;;;"}
@@ -29,6 +29,10 @@ function createGetModuleFromFilename(
29
29
  file = file.slice(0, ext.length * -1);
30
30
  }
31
31
 
32
+ // The file name might be URI-encoded which we want to decode to
33
+ // the original file name.
34
+ const decodedFile = decodeURIComponent(file);
35
+
32
36
  if (!dir) {
33
37
  // No dirname whatsoever
34
38
  dir = '.';
@@ -36,23 +40,17 @@ function createGetModuleFromFilename(
36
40
 
37
41
  const n = dir.lastIndexOf('/node_modules');
38
42
  if (n > -1) {
39
- return `${dir.slice(n + 14).replace(/\//g, '.')}:${file}`;
43
+ return `${dir.slice(n + 14).replace(/\//g, '.')}:${decodedFile}`;
40
44
  }
41
45
 
42
46
  // Let's see if it's a part of the main module
43
47
  // To be a part of main module, it has to share the same base
44
48
  if (dir.startsWith(normalizedBase)) {
45
- let moduleName = dir.slice(normalizedBase.length + 1).replace(/\//g, '.');
46
-
47
- if (moduleName) {
48
- moduleName += ':';
49
- }
50
- moduleName += file;
51
-
52
- return moduleName;
49
+ const moduleName = dir.slice(normalizedBase.length + 1).replace(/\//g, '.');
50
+ return moduleName ? `${moduleName}:${decodedFile}` : decodedFile;
53
51
  }
54
52
 
55
- return file;
53
+ return decodedFile;
56
54
  };
57
55
  }
58
56
 
@@ -1 +1 @@
1
- {"version":3,"file":"module.js","sources":["../../../src/utils/module.ts"],"sourcesContent":["import { posix, sep } from 'node:path';\nimport { dirname } from '@sentry/core';\n\n/** normalizes Windows paths */\nfunction normalizeWindowsPath(path: string): string {\n return path\n .replace(/^[A-Z]:/, '') // remove Windows-style prefix\n .replace(/\\\\/g, '/'); // replace all `\\` instances with `/`\n}\n\n/** Creates a function that gets the module name from a filename */\nexport function createGetModuleFromFilename(\n basePath: string = process.argv[1] ? dirname(process.argv[1]) : process.cwd(),\n isWindows: boolean = sep === '\\\\',\n): (filename: string | undefined) => string | undefined {\n const normalizedBase = isWindows ? normalizeWindowsPath(basePath) : basePath;\n\n return (filename: string | undefined) => {\n if (!filename) {\n return;\n }\n\n const normalizedFilename = isWindows ? normalizeWindowsPath(filename) : filename;\n\n // eslint-disable-next-line prefer-const\n let { dir, base: file, ext } = posix.parse(normalizedFilename);\n\n if (ext === '.js' || ext === '.mjs' || ext === '.cjs') {\n file = file.slice(0, ext.length * -1);\n }\n\n if (!dir) {\n // No dirname whatsoever\n dir = '.';\n }\n\n const n = dir.lastIndexOf('/node_modules');\n if (n > -1) {\n return `${dir.slice(n + 14).replace(/\\//g, '.')}:${file}`;\n }\n\n // Let's see if it's a part of the main module\n // To be a part of main module, it has to share the same base\n if (dir.startsWith(normalizedBase)) {\n let moduleName = dir.slice(normalizedBase.length + 1).replace(/\\//g, '.');\n\n if (moduleName) {\n moduleName += ':';\n }\n moduleName += file;\n\n return moduleName;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MAAM,OAAO,CAAC,EAAA,GAAA,CAAA,KAAA,CAAA,CAAA,GAAA,EAAA,CAAA,CAAA,OAAA,CAAA,KAAA,EAAA,GAAA,CAAA,CAAA,CAAA,EAAA,IAAA,CAAA,CAAA;AACA;;AAEA;AACA;AACA,IAAA,IAAA,GAAA,CAAA,UAAA,CAAA,cAAA,CAAA,EAAA;AACA,MAAA,IAAA,UAAA,GAAA,GAAA,CAAA,KAAA,CAAA,cAAA,CAAA,MAAA,GAAA,CAAA,CAAA,CAAA,OAAA,CAAA,KAAA,EAAA,GAAA,CAAA;;AAEA,MAAA,IAAA,UAAA,EAAA;AACA,QAAA,UAAA,IAAA,GAAA;AACA;AACA,MAAA,UAAA,IAAA,IAAA;;AAEA,MAAA,OAAA,UAAA;AACA;;AAEA,IAAA,OAAA,IAAA;AACA,GAAA;AACA;;;;"}
1
+ {"version":3,"file":"module.js","sources":["../../../src/utils/module.ts"],"sourcesContent":["import { posix, sep } from 'node:path';\nimport { dirname } from '@sentry/core';\n\n/** normalizes Windows paths */\nfunction normalizeWindowsPath(path: string): string {\n return path\n .replace(/^[A-Z]:/, '') // remove Windows-style prefix\n .replace(/\\\\/g, '/'); // replace all `\\` instances with `/`\n}\n\n/** Creates a function that gets the module name from a filename */\nexport function createGetModuleFromFilename(\n basePath: string = process.argv[1] ? dirname(process.argv[1]) : process.cwd(),\n isWindows: boolean = sep === '\\\\',\n): (filename: string | undefined) => string | undefined {\n const normalizedBase = isWindows ? normalizeWindowsPath(basePath) : basePath;\n\n return (filename: string | undefined) => {\n if (!filename) {\n return;\n }\n\n const normalizedFilename = isWindows ? normalizeWindowsPath(filename) : filename;\n\n // eslint-disable-next-line prefer-const\n let { dir, base: file, ext } = posix.parse(normalizedFilename);\n\n if (ext === '.js' || ext === '.mjs' || ext === '.cjs') {\n file = file.slice(0, ext.length * -1);\n }\n\n // The file name might be URI-encoded which we want to decode to\n // the original file name.\n const decodedFile = decodeURIComponent(file);\n\n if (!dir) {\n // No dirname whatsoever\n dir = '.';\n }\n\n const n = dir.lastIndexOf('/node_modules');\n if (n > -1) {\n return `${dir.slice(n + 14).replace(/\\//g, '.')}:${decodedFile}`;\n }\n\n // Let's see if it's a part of the main module\n // To be a part of main module, it has to share the same base\n if (dir.startsWith(normalizedBase)) {\n const moduleName = dir.slice(normalizedBase.length + 1).replace(/\\//g, '.');\n return moduleName ? `${moduleName}:${decodedFile}` : decodedFile;\n }\n\n return decodedFile;\n };\n}\n"],"names":[],"mappings":";;;AAGA;AACA,SAAS,oBAAoB,CAAC,IAAI,EAAkB;AACpD,EAAE,OAAO;AACT,KAAK,OAAO,CAAC,SAAS,EAAE,EAAE,CAAA;AAC1B,KAAK,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;AACxB;;AAEA;AACO,SAAS,2BAA2B;AAC3C,EAAE,QAAQ,GAAW,OAAO,CAAC,IAAI,CAAC,CAAC,CAAE,GAAE,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA,GAAI,OAAO,CAAC,GAAG,EAAE;AAC/E,EAAE,SAAS,GAAY,GAAA,KAAQ,IAAI;AACnC,EAAwD;AACxD,EAAE,MAAM,cAAe,GAAE,SAAU,GAAE,oBAAoB,CAAC,QAAQ,CAAE,GAAE,QAAQ;;AAE9E,EAAE,OAAO,CAAC,QAAQ,KAAyB;AAC3C,IAAI,IAAI,CAAC,QAAQ,EAAE;AACnB,MAAM;AACN;;AAEA,IAAI,MAAM,kBAAmB,GAAE,SAAU,GAAE,oBAAoB,CAAC,QAAQ,CAAE,GAAE,QAAQ;;AAEpF;AACA,IAAI,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,GAAI,EAAA,GAAI,KAAK,CAAC,KAAK,CAAC,kBAAkB,CAAC;;AAElE,IAAI,IAAI,GAAI,KAAI,KAAM,IAAG,GAAI,KAAI,MAAO,IAAG,GAAI,KAAI,MAAM,EAAE;AAC3D,MAAM,IAAK,GAAE,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,MAAA,GAAS,CAAC,CAAC,CAAC;AAC3C;;AAEA;AACA;AACA,IAAI,MAAM,WAAY,GAAE,kBAAkB,CAAC,IAAI,CAAC;;AAEhD,IAAI,IAAI,CAAC,GAAG,EAAE;AACd;AACA,MAAM,GAAA,GAAM,GAAG;AACf;;AAEA,IAAI,MAAM,IAAI,GAAG,CAAC,WAAW,CAAC,eAAe,CAAC;AAC9C,IAAI,IAAI,CAAA,GAAI,CAAC,CAAC,EAAE;AAChB,MAAM,OAAO,CAAC,EAAA,GAAA,CAAA,KAAA,CAAA,CAAA,GAAA,EAAA,CAAA,CAAA,OAAA,CAAA,KAAA,EAAA,GAAA,CAAA,CAAA,CAAA,EAAA,WAAA,CAAA,CAAA;AACA;;AAEA;AACA;AACA,IAAA,IAAA,GAAA,CAAA,UAAA,CAAA,cAAA,CAAA,EAAA;AACA,MAAA,MAAA,UAAA,GAAA,GAAA,CAAA,KAAA,CAAA,cAAA,CAAA,MAAA,GAAA,CAAA,CAAA,CAAA,OAAA,CAAA,KAAA,EAAA,GAAA,CAAA;AACA,MAAA,OAAA,UAAA,GAAA,CAAA,EAAA,UAAA,CAAA,CAAA,EAAA,WAAA,CAAA,CAAA,GAAA,WAAA;AACA;;AAEA,IAAA,OAAA,WAAA;AACA,GAAA;AACA;;;;"}
@@ -8,7 +8,7 @@ export { localVariablesIntegration } from './integrations/local-variables';
8
8
  export { modulesIntegration } from './integrations/modules';
9
9
  export { onUncaughtExceptionIntegration } from './integrations/onuncaughtexception';
10
10
  export { onUnhandledRejectionIntegration } from './integrations/onunhandledrejection';
11
- export { anrIntegration } from './integrations/anr';
11
+ export { anrIntegration, disableAnrDetectionForCallback } from './integrations/anr';
12
12
  export { expressIntegration, expressErrorHandler, setupExpressErrorHandler } from './integrations/tracing/express';
13
13
  export { fastifyIntegration, setupFastifyErrorHandler } from './integrations/tracing/fastify';
14
14
  export { graphqlIntegration } from './integrations/tracing/graphql';
@@ -46,5 +46,5 @@ export type { NodeOptions } from './types';
46
46
  export { addRequestDataToEvent, DEFAULT_USER_INCLUDES, extractRequestData } from '@sentry/core';
47
47
  export { addOpenTelemetryInstrumentation, continueTrace, setOpenTelemetryContextAsyncContextStrategy as setNodeAsyncContextStrategy, } from '@sentry/opentelemetry';
48
48
  export { addBreadcrumb, isInitialized, getGlobalScope, lastEventId, close, createTransport, flush, SDK_VERSION, getSpanStatusFromHttpCode, setHttpStatus, captureCheckIn, withMonitor, requestDataIntegration, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, addEventProcessor, setContext, setExtra, setExtras, setTag, setTags, setUser, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, setCurrentClient, Scope, setMeasurement, getSpanDescendants, parameterize, getClient, getCurrentHub, getCurrentScope, getIsolationScope, getTraceData, getTraceMetaTags, withScope, withIsolationScope, captureException, captureEvent, captureMessage, captureFeedback, captureConsoleIntegration, debugIntegration, dedupeIntegration, extraErrorDataIntegration, rewriteFramesIntegration, sessionTimingIntegration, metricsDefault as metrics, startSession, captureSession, endSession, addIntegration, startSpan, startSpanManual, startInactiveSpan, startNewTrace, suppressTracing, getActiveSpan, withActiveSpan, getRootSpan, spanToJSON, spanToTraceHeader, spanToBaggageHeader, trpcMiddleware, zodErrorsIntegration, profiler, } from '@sentry/core';
49
- export type { Breadcrumb, BreadcrumbHint, PolymorphicRequest, Request, RequestEventData, SdkInfo, Event, EventHint, ErrorEvent, Exception, Session, SeverityLevel, StackFrame, Stacktrace, Thread, User, Span, } from '@sentry/types';
49
+ export type { Breadcrumb, BreadcrumbHint, PolymorphicRequest, Request, RequestEventData, SdkInfo, Event, EventHint, ErrorEvent, Exception, Session, SeverityLevel, StackFrame, Stacktrace, Thread, User, Span, } from '@sentry/core';
50
50
  //# sourceMappingURL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EACjB,yBAAyB,EACzB,wBAAwB,EAExB,wBAAwB,EAExB,cAAc,IAAI,OAAO,EACzB,YAAY,EACZ,cAAc,EACd,UAAU,EACV,cAAc,EACd,SAAS,EACT,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,aAAa,EACb,cAAc,EACd,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,QAAQ,GACT,MAAM,cAAc,CAAC;AAEtB,YAAY,EACV,UAAU,EACV,cAAc,EACd,kBAAkB,EAElB,OAAO,EACP,gBAAgB,EAChB,OAAO,EACP,KAAK,EACL,SAAS,EACT,UAAU,EACV,SAAS,EACT,OAAO,EACP,aAAa,EACb,UAAU,EACV,UAAU,EACV,MAAM,EACN,IAAI,EACJ,IAAI,GACL,MAAM,cAAc,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { Contexts, DsnComponents, Primitive, SdkMetadata } from '@sentry/types';
1
+ import type { Contexts, DsnComponents, Primitive, SdkMetadata } from '@sentry/core';
2
2
  export interface AnrIntegrationOptions {
3
3
  /**
4
4
  * Interval to send heartbeat messages to the ANR worker.
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/integrations/anr/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAErF,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;;OAMG;IACH,iBAAiB,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IACzC;;;;OAIG;IACH,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC;AAED,MAAM,WAAW,eAAgB,SAAQ,qBAAqB;IAC5D,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,WAAW,CAAC;IACzB,GAAG,EAAE,aAAa,CAAC;IACnB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/integrations/anr/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEpF,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;;OAMG;IACH,iBAAiB,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IACzC;;;;OAIG;IACH,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC;AAED,MAAM,WAAW,eAAgB,SAAQ,qBAAqB;IAC5D,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,WAAW,CAAC;IACzB,GAAG,EAAE,aAAa,CAAC;IACnB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
@@ -1,4 +1,4 @@
1
- import type { Integration } from '@sentry/types';
1
+ import type { Integration } from '@sentry/core';
2
2
  import type { AnrIntegrationOptions } from './common';
3
3
  export declare const base64WorkerScript = "###AnrWorkerScript###";
4
4
  type AnrInternal = {
@@ -7,5 +7,7 @@ type AnrInternal = {
7
7
  };
8
8
  type AnrReturn = (options?: Partial<AnrIntegrationOptions>) => Integration & AnrInternal;
9
9
  export declare const anrIntegration: AnrReturn;
10
+ export declare function disableAnrDetectionForCallback<T>(callback: () => T): T;
11
+ export declare function disableAnrDetectionForCallback<T>(callback: () => Promise<T>): Promise<T>;
10
12
  export {};
11
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/anr/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAA8B,WAAW,EAA4B,MAAM,eAAe,CAAC;AAGvG,OAAO,KAAK,EAAE,qBAAqB,EAAmB,MAAM,UAAU,CAAC;AAGvE,eAAO,MAAM,kBAAkB,0BAA0B,CAAC;AA4C1D,KAAK,WAAW,GAAG;IAAE,WAAW,EAAE,MAAM,IAAI,CAAC;IAAC,UAAU,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AA6CvE,KAAK,SAAS,GAAG,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,KAAK,WAAW,GAAG,WAAW,CAAC;AAEzF,eAAO,MAAM,cAAc,WAAkD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/anr/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA8B,WAAW,EAA4B,MAAM,cAAc,CAAC;AActG,OAAO,KAAK,EAAE,qBAAqB,EAAmB,MAAM,UAAU,CAAC;AAKvE,eAAO,MAAM,kBAAkB,0BAA0B,CAAC;AA4C1D,KAAK,WAAW,GAAG;IAAE,WAAW,EAAE,MAAM,IAAI,CAAC;IAAC,UAAU,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AA6CvE,KAAK,SAAS,GAAG,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,KAAK,WAAW,GAAG,WAAW,CAAC;AAEzF,eAAO,MAAM,cAAc,WAAkD,CAAC;AA4G9E,wBAAgB,8BAA8B,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;AACxE,wBAAgB,8BAA8B,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC"}
@@ -9,12 +9,12 @@ interface Options {
9
9
  /**
10
10
  * Capture breadcrumbs for child processes and worker threads.
11
11
  */
12
- export declare const childProcessIntegration: (options?: Options | undefined) => import("@sentry/types").Integration;
12
+ export declare const childProcessIntegration: (options?: Options | undefined) => import("@sentry/core").Integration;
13
13
  /**
14
14
  * Capture breadcrumbs for child processes and worker threads.
15
15
  *
16
16
  * @deprecated Use `childProcessIntegration` integration instead. Functionally they are the same. `processThreadBreadcrumbIntegration` will be removed in the next major version.
17
17
  */
18
- export declare const processThreadBreadcrumbIntegration: (options?: Options | undefined) => import("@sentry/types").Integration;
18
+ export declare const processThreadBreadcrumbIntegration: (options?: Options | undefined) => import("@sentry/core").Integration;
19
19
  export {};
20
20
  //# sourceMappingURL=childProcess.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"childProcess.d.ts","sourceRoot":"","sources":["../../../src/integrations/childProcess.ts"],"names":[],"mappings":"AAKA,UAAU,OAAO;IACf;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;AAKD;;GAEG;AACH,eAAO,MAAM,uBAAuB,wEAmBlC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,wEAA0B,CAAC"}
1
+ {"version":3,"file":"childProcess.d.ts","sourceRoot":"","sources":["../../../src/integrations/childProcess.ts"],"names":[],"mappings":"AAKA,UAAU,OAAO;IACf;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;AAKD;;GAEG;AACH,eAAO,MAAM,uBAAuB,uEAmBlC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,uEAA0B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Capture console logs as breadcrumbs.
3
3
  */
4
- export declare const consoleIntegration: () => import("@sentry/types").Integration;
4
+ export declare const consoleIntegration: () => import("@sentry/core").Integration;
5
5
  //# sourceMappingURL=console.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../../src/integrations/console.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,kBAAkB,2CAuB7B,CAAC"}
1
+ {"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../../src/integrations/console.ts"],"names":[],"mappings":"AAYA;;GAEG;AACH,eAAO,MAAM,kBAAkB,0CAuB7B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { readFile, readdir } from 'node:fs';
3
- import type { AppContext, DeviceContext } from '@sentry/types';
3
+ import type { AppContext, DeviceContext } from '@sentry/core';
4
4
  export declare const readFileAsync: typeof readFile.__promisify__;
5
5
  export declare const readDirAsync: typeof readdir.__promisify__;
6
6
  interface DeviceContextOptions {
@@ -17,7 +17,7 @@ interface ContextOptions {
17
17
  /**
18
18
  * Capture context about the environment and the device that the client is running on, to events.
19
19
  */
20
- export declare const nodeContextIntegration: (options?: ContextOptions | undefined) => import("@sentry/types").Integration;
20
+ export declare const nodeContextIntegration: (options?: ContextOptions | undefined) => import("@sentry/core").Integration;
21
21
  /**
22
22
  * Get app context information from process
23
23
  */
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/integrations/context.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAK5C,OAAO,KAAK,EACV,UAAU,EAIV,aAAa,EAId,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,aAAa,+B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,wBAAgB,aAAa,IAAI,UAAU,CAc1C;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,oBAAoB,GAAG,IAAI,GAAG,aAAa,CAoCtF"}
@@ -1,4 +1,4 @@
1
- import type { Event, StackFrame } from '@sentry/types';
1
+ import type { Event, StackFrame } from '@sentry/core';
2
2
  export declare const MAX_CONTEXTLINES_COLNO: number;
3
3
  export declare const MAX_CONTEXTLINES_LINENO: number;
4
4
  interface ContextLinesOptions {
@@ -26,6 +26,6 @@ export declare const _contextLinesIntegration: (options?: ContextLinesOptions) =
26
26
  /**
27
27
  * Capture the lines before and after the frame's context.
28
28
  */
29
- export declare const contextLinesIntegration: (options?: ContextLinesOptions | undefined) => import("@sentry/types").Integration;
29
+ export declare const contextLinesIntegration: (options?: ContextLinesOptions | undefined) => import("@sentry/core").Integration;
30
30
  export {};
31
31
  //# sourceMappingURL=contextlines.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contextlines.d.ts","sourceRoot":"","sources":["../../../src/integrations/contextlines.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAiB,UAAU,EAAE,MAAM,eAAe,CAAC;AAWtE,eAAO,MAAM,sBAAsB,EAAE,MAAa,CAAC;AACnD,eAAO,MAAM,uBAAuB,EAAE,MAAc,CAAC;AAErD,UAAU,mBAAmB;IAC3B;;;;;QAKI;IACJ,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAkSD;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,UAAU,EACjB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,GAC3C,IAAI,CA2CN;AAkBD,uDAAuD;AACvD,eAAO,MAAM,wBAAwB,aAAc,mBAAmB;;;CAS5C,CAAC;AAE3B;;GAEG;AACH,eAAO,MAAM,uBAAuB,oFAA8C,CAAC"}
1
+ {"version":3,"file":"contextlines.d.ts","sourceRoot":"","sources":["../../../src/integrations/contextlines.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAiB,UAAU,EAAE,MAAM,cAAc,CAAC;AAWrE,eAAO,MAAM,sBAAsB,EAAE,MAAa,CAAC;AACnD,eAAO,MAAM,uBAAuB,EAAE,MAAc,CAAC;AAErD,UAAU,mBAAmB;IAC3B;;;;;QAKI;IACJ,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAkSD;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,UAAU,EACjB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,GAC3C,IAAI,CA2CN;AAkBD,uDAAuD;AACvD,eAAO,MAAM,wBAAwB,aAAc,mBAAmB;;;CAS5C,CAAC;AAE3B;;GAEG;AACH,eAAO,MAAM,uBAAuB,mFAA8C,CAAC"}
@@ -20,5 +20,5 @@ export declare const fsIntegration: (options?: {
20
20
  * Defaults to `false`.
21
21
  */
22
22
  recordErrorMessagesAsSpanAttributes?: boolean | undefined;
23
- } | undefined) => import("@sentry/types").Integration;
23
+ } | undefined) => import("@sentry/core").Integration;
24
24
  //# sourceMappingURL=fs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../../src/integrations/fs.ts"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa;IAGpB;;;;OAIG;;IAGH;;;;OAIG;;qDAiER,CAAC"}
1
+ {"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../../src/integrations/fs.ts"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa;IAGpB;;;;OAIG;;IAGH;;;;OAIG;;oDAiER,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SentryHttpInstrumentation.d.ts","sourceRoot":"","sources":["../../../../src/integrations/http/SentryHttpInstrumentation.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAmB,cAAc,EAAE,MAAM,WAAW,CAAC;AAGjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAE,MAAM,gCAAgC,CAAC;AAsB1G,KAAK,gCAAgC,GAAG,qBAAqB,GAAG;IAC9D;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;;;;OAQG;IACH,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC;CAC5E,CAAC;AAKF;;;;;;;;;;;;GAYG;AACH,qBAAa,yBAA0B,SAAQ,mBAAmB,CAAC,gCAAgC,CAAC;gBAC/E,MAAM,GAAE,gCAAqC;IAIhE,kBAAkB;IACX,IAAI,IAAI,CAAC,mCAAmC,EAAE,mCAAmC,CAAC;IAIzF,mDAAmD;IACnD,OAAO,CAAC,uBAAuB;IAoB/B,oDAAoD;IACpD,OAAO,CAAC,wBAAwB;IAoBhC;;OAEG;IACH,OAAO,CAAC,gCAAgC;IAqDxC;;OAEG;IACH,OAAO,CAAC,gCAAgC;IAgDxC,sDAAsD;IAEtD,OAAO,CAAC,4BAA4B;CAmBrC"}
1
+ {"version":3,"file":"SentryHttpInstrumentation.d.ts","sourceRoot":"","sources":["../../../../src/integrations/http/SentryHttpInstrumentation.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAmB,cAAc,EAAE,MAAM,WAAW,CAAC;AAGjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAE,MAAM,gCAAgC,CAAC;AAqB1G,KAAK,gCAAgC,GAAG,qBAAqB,GAAG;IAC9D;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;;;;OAQG;IACH,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC;CAC5E,CAAC;AAKF;;;;;;;;;;;;GAYG;AACH,qBAAa,yBAA0B,SAAQ,mBAAmB,CAAC,gCAAgC,CAAC;gBAC/E,MAAM,GAAE,gCAAqC;IAIhE,kBAAkB;IACX,IAAI,IAAI,CAAC,mCAAmC,EAAE,mCAAmC,CAAC;IAIzF,mDAAmD;IACnD,OAAO,CAAC,uBAAuB;IAoB/B,oDAAoD;IACpD,OAAO,CAAC,wBAAwB;IAoBhC;;OAEG;IACH,OAAO,CAAC,gCAAgC;IAsDxC;;OAEG;IACH,OAAO,CAAC,gCAAgC;IAgDxC,sDAAsD;IAEtD,OAAO,CAAC,4BAA4B;CAmBrC"}
@@ -2,7 +2,7 @@
2
2
  import type { ClientRequest, IncomingMessage, RequestOptions, ServerResponse } from 'node:http';
3
3
  import type { HttpInstrumentationConfig } from '@opentelemetry/instrumentation-http';
4
4
  import { HttpInstrumentation } from '@opentelemetry/instrumentation-http';
5
- import type { Span } from '@sentry/types';
5
+ import type { Span } from '@sentry/core';
6
6
  import type { HTTPModuleRequestIncomingMessage } from '../../transports/http-module';
7
7
  interface HttpOptions {
8
8
  /**
@@ -16,6 +16,15 @@ interface HttpOptions {
16
16
  * only the Sentry-specific instrumentation for request isolation is applied.
17
17
  */
18
18
  spans?: boolean;
19
+ /**
20
+ * 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.
21
+ * Read more about Release Health: https://docs.sentry.io/product/releases/health/
22
+ *
23
+ * Defaults to `true`.
24
+ *
25
+ * Note: If `autoSessionTracking` is set to `false` in `Sentry.init()` or the Client owning this integration, this option will be ignored.
26
+ */
27
+ trackIncomingRequestsAsSessions?: boolean;
19
28
  /**
20
29
  * Do not capture spans or breadcrumbs for outgoing HTTP requests to URLs where the given callback returns `true`.
21
30
  * This controls both span & breadcrumb creation - spans will be non recording if tracing is disabled.
@@ -70,6 +79,6 @@ export declare const instrumentOtelHttp: ((options?: HttpInstrumentationConfig |
70
79
  * The http integration instruments Node's internal http and https modules.
71
80
  * It creates breadcrumbs and spans for outgoing HTTP requests which will be attached to the currently active span.
72
81
  */
73
- export declare const httpIntegration: (options?: HttpOptions | undefined) => import("@sentry/types").Integration;
82
+ export declare const httpIntegration: (options?: HttpOptions | undefined) => import("@sentry/core").Integration;
74
83
  export {};
75
84
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/http/index.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhG,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAI1E,OAAO,KAAK,EAAiB,IAAI,EAAE,MAAM,eAAe,CAAC;AAIzD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,8BAA8B,CAAC;AASrF,UAAU,WAAW;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;;;;;;OASG;IACH,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC;IAE3E;;;;;;;;;OASG;IACH,sBAAsB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,KAAK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{ RequestOptions } from 'node:http';
5
+ import * as url from 'url';
6
+ import type { DiagLogger } from '@opentelemetry/api';
7
+ /**
8
+ * Makes sure options is an url object
9
+ * return an object with default value and parsed options
10
+ * @param logger component logger
11
+ * @param options original options for the request
12
+ * @param [extraOptions] additional options for the request
13
+ */
14
+ export declare const getRequestInfo: (logger: DiagLogger, options: url.URL | RequestOptions | string, extraOptions?: RequestOptions) => {
15
+ origin: string;
16
+ pathname: string;
17
+ method: string;
18
+ invalidUrl: boolean;
19
+ optionsParsed: RequestOptions;
20
+ };
21
+ //# sourceMappingURL=getRequestInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRequestInfo.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/http/vendor/getRequestInfo.ts"],"names":[],"mappings":"AAEA;;GAEG;AAiBH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,WACjB,UAAU,WACT,OAAO,GAAG,cAAc,GAAG,MAAM,iBAC3B,cAAc;YAErB,MAAM;cACJ,MAAM;YACR,MAAM;gBACF,OAAO;mBACJ,cAAc;CAwE9B,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { Integration } from '@sentry/types';
1
+ import type { Integration } from '@sentry/core';
2
2
  import type { LocalVariablesIntegrationOptions } from './common';
3
3
  export declare const localVariablesIntegration: (options?: LocalVariablesIntegrationOptions) => Integration;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAIjE,eAAO,MAAM,yBAAyB,aAAa,gCAAgC,KAAQ,WAE1F,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAIjE,eAAO,MAAM,yBAAyB,aAAa,gCAAgC,KAAQ,WAE1F,CAAC"}
@@ -3,5 +3,5 @@ export declare const base64WorkerScript = "###LocalVariablesWorkerScript###";
3
3
  /**
4
4
  * Adds local variables to exception frames
5
5
  */
6
- export declare const localVariablesAsyncIntegration: (integrationOptions?: LocalVariablesIntegrationOptions | undefined) => import("@sentry/types").Integration;
6
+ export declare const localVariablesAsyncIntegration: (integrationOptions?: LocalVariablesIntegrationOptions | undefined) => import("@sentry/core").Integration;
7
7
  //# sourceMappingURL=local-variables-async.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"local-variables-async.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/local-variables-async.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAkB,gCAAgC,EAA4B,MAAM,UAAU,CAAC;AAK3G,eAAO,MAAM,kBAAkB,qCAAqC,CAAC;AAMrE;;GAEG;AACH,eAAO,MAAM,8BAA8B,4GAmHhB,CAAC"}
1
+ {"version":3,"file":"local-variables-async.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/local-variables-async.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAkB,gCAAgC,EAA4B,MAAM,UAAU,CAAC;AAI3G,eAAO,MAAM,kBAAkB,qCAAqC,CAAC;AAMrE;;GAEG;AACH,eAAO,MAAM,8BAA8B,2GAmHhB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import type { Debugger, InspectorNotification } from 'node:inspector';
3
- import type { StackFrame, StackParser } from '@sentry/types';
3
+ import type { StackFrame, StackParser } from '@sentry/core';
4
4
  import type { LocalVariablesIntegrationOptions, Variables } from './common';
5
5
  /** Creates a unique hash from stack frames */
6
6
  export declare function hashFrames(frames: StackFrame[] | undefined): string | undefined;
@@ -29,6 +29,6 @@ export declare function createCallbackList<T>(complete: Next<T>): CallbackWrappe
29
29
  /**
30
30
  * Adds local variables to exception frames.
31
31
  */
32
- export declare const localVariablesSyncIntegration: (options?: LocalVariablesIntegrationOptions | undefined, sessionOverride?: DebugSession | undefined) => import("@sentry/types").Integration;
32
+ export declare const localVariablesSyncIntegration: (options?: LocalVariablesIntegrationOptions | undefined, sessionOverride?: DebugSession | undefined) => import("@sentry/core").Integration;
33
33
  export {};
34
34
  //# sourceMappingURL=local-variables-sync.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"local-variables-sync.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/local-variables-sync.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,qBAAqB,EAAoB,MAAM,gBAAgB,CAAC;AAGxF,OAAO,KAAK,EAAmC,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI9F,OAAO,KAAK,EAEV,gCAAgC,EAGhC,SAAS,EACV,MAAM,UAAU,CAAC;AAGlB,8CAA8C;AAC9C,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAO/E;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAMrG;AAED,KAAK,YAAY,GAAG,qBAAqB,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AACxE,MAAM,WAAW,YAAY;IAC3B,mDAAmD;IACnD,mBAAmB,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,IAAI,KAAK,IAAI,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAC/G,kDAAkD;IAClD,oBAAoB,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAChD,2CAA2C;IAC3C,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,GAAG,IAAI,CAAC;CAChF;AAED,KAAK,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;AACnC,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AACpC,KAAK,eAAe,CAAC,CAAC,IAAI;IAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC;AAEzD,kEAAkE;AAClE,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAiC3E;AA4UD;;GAEG;AACH,eAAO,MAAM,6BAA6B,6IAAoD,CAAC"}
1
+ {"version":3,"file":"local-variables-sync.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/local-variables-sync.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,qBAAqB,EAAoB,MAAM,gBAAgB,CAAC;AACxF,OAAO,KAAK,EAAmC,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI7F,OAAO,KAAK,EAEV,gCAAgC,EAGhC,SAAS,EACV,MAAM,UAAU,CAAC;AAGlB,8CAA8C;AAC9C,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAO/E;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAMrG;AAED,KAAK,YAAY,GAAG,qBAAqB,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AACxE,MAAM,WAAW,YAAY;IAC3B,mDAAmD;IACnD,mBAAmB,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,IAAI,KAAK,IAAI,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAC/G,kDAAkD;IAClD,oBAAoB,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAChD,2CAA2C;IAC3C,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,GAAG,IAAI,CAAC;CAChF;AAED,KAAK,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;AACnC,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AACpC,KAAK,eAAe,CAAC,CAAC,IAAI;IAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC;AAEzD,kEAAkE;AAClE,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAiC3E;AA4UD;;GAEG;AACH,eAAO,MAAM,6BAA6B,4IAAoD,CAAC"}
@@ -3,5 +3,5 @@
3
3
  *
4
4
  * Only works in CommonJS (CJS) environments.
5
5
  */
6
- export declare const modulesIntegration: () => import("@sentry/types").Integration;
6
+ export declare const modulesIntegration: () => import("@sentry/core").Integration;
7
7
  //# sourceMappingURL=modules.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../../src/integrations/modules.ts"],"names":[],"mappings":"AAqCA;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,2CAAyC,CAAC"}
1
+ {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../../src/integrations/modules.ts"],"names":[],"mappings":"AAoCA;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,0CAAyC,CAAC"}
@@ -10,6 +10,6 @@ interface NodeFetchOptions {
10
10
  */
11
11
  ignoreOutgoingRequests?: (url: string) => boolean;
12
12
  }
13
- export declare const nativeNodeFetchIntegration: (options?: NodeFetchOptions | undefined) => import("@sentry/types").Integration;
13
+ export declare const nativeNodeFetchIntegration: (options?: NodeFetchOptions | undefined) => import("@sentry/core").Integration;
14
14
  export {};
15
15
  //# sourceMappingURL=node-fetch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node-fetch.d.ts","sourceRoot":"","sources":["../../../src/integrations/node-fetch.ts"],"names":[],"mappings":"AAkBA,UAAU,gBAAgB;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CACnD;AAuED,eAAO,MAAM,0BAA0B,iFAAiD,CAAC"}
1
+ {"version":3,"file":"node-fetch.d.ts","sourceRoot":"","sources":["../../../src/integrations/node-fetch.ts"],"names":[],"mappings":"AAkBA,UAAU,gBAAgB;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CACnD;AA6DD,eAAO,MAAM,0BAA0B,gFAAiD,CAAC"}
@@ -21,7 +21,7 @@ interface OnUncaughtExceptionOptions {
21
21
  /**
22
22
  * Add a global exception handler.
23
23
  */
24
- export declare const onUncaughtExceptionIntegration: (options?: Partial<OnUncaughtExceptionOptions> | undefined) => import("@sentry/types").Integration;
24
+ export declare const onUncaughtExceptionIntegration: (options?: Partial<OnUncaughtExceptionOptions> | undefined) => import("@sentry/core").Integration;
25
25
  type ErrorHandler = {
26
26
  _errorHandler: boolean;
27
27
  } & ((error: Error) => void);
@@ -1 +1 @@
1
- {"version":3,"file":"onuncaughtexception.d.ts","sourceRoot":"","sources":["../../../src/integrations/onuncaughtexception.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAShD,UAAU,0BAA0B;IAClC;;;;;;OAMG;IACH,oCAAoC,EAAE,OAAO,CAAC;IAE9C;;;;;;;OAOG;IACH,YAAY,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CACzE;AAID;;GAEG;AACH,eAAO,MAAM,8BAA8B,oGAYzC,CAAC;AAEH,KAAK,YAAY,GAAG;IAAE,aAAa,EAAE,OAAO,CAAA;CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC,CAAC;AAE1E,8BAA8B;AAC9B,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,0BAA0B,GAAG,YAAY,CAyGtG"}
1
+ {"version":3,"file":"onuncaughtexception.d.ts","sourceRoot":"","sources":["../../../src/integrations/onuncaughtexception.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAShD,UAAU,0BAA0B;IAClC;;;;;;OAMG;IACH,oCAAoC,EAAE,OAAO,CAAC;IAE9C;;;;;;;OAOG;IACH,YAAY,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CACzE;AAID;;GAEG;AACH,eAAO,MAAM,8BAA8B,mGAYzC,CAAC;AAEH,KAAK,YAAY,GAAG;IAAE,aAAa,EAAE,OAAO,CAAA;CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC,CAAC;AAE1E,8BAA8B;AAC9B,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,0BAA0B,GAAG,YAAY,CAyGtG"}
@@ -1,4 +1,4 @@
1
- import type { Client } from '@sentry/types';
1
+ import type { Client } from '@sentry/core';
2
2
  type UnhandledRejectionMode = 'none' | 'warn' | 'strict';
3
3
  interface OnUnhandledRejectionOptions {
4
4
  /**
@@ -10,7 +10,7 @@ interface OnUnhandledRejectionOptions {
10
10
  /**
11
11
  * Add a global promise rejection handler.
12
12
  */
13
- export declare const onUnhandledRejectionIntegration: (options?: Partial<OnUnhandledRejectionOptions> | undefined) => import("@sentry/types").Integration;
13
+ export declare const onUnhandledRejectionIntegration: (options?: Partial<OnUnhandledRejectionOptions> | undefined) => import("@sentry/core").Integration;
14
14
  /**
15
15
  * Send an exception with reason
16
16
  * @param reason string