@sentry/node 7.104.0 → 8.0.0-alpha.1

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 (426) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +114 -38
  3. package/cjs/cron/index.js +15 -0
  4. package/cjs/cron/index.js.map +1 -0
  5. package/cjs/index.js +79 -98
  6. package/cjs/index.js.map +1 -1
  7. package/cjs/integrations/anr/index.js +4 -30
  8. package/cjs/integrations/anr/index.js.map +1 -1
  9. package/cjs/integrations/anr/worker-script.js +2 -2
  10. package/cjs/integrations/console.js +2 -13
  11. package/cjs/integrations/console.js.map +1 -1
  12. package/cjs/integrations/context.js +2 -16
  13. package/cjs/integrations/context.js.map +1 -1
  14. package/cjs/integrations/contextlines.js +6 -23
  15. package/cjs/integrations/contextlines.js.map +1 -1
  16. package/cjs/integrations/http.js +103 -354
  17. package/cjs/integrations/http.js.map +1 -1
  18. package/cjs/integrations/local-variables/index.js +0 -10
  19. package/cjs/integrations/local-variables/index.js.map +1 -1
  20. package/cjs/integrations/local-variables/local-variables-sync.js +29 -24
  21. package/cjs/integrations/local-variables/local-variables-sync.js.map +1 -1
  22. package/cjs/integrations/modules.js +19 -30
  23. package/cjs/integrations/modules.js.map +1 -1
  24. package/cjs/integrations/node-fetch.js +82 -0
  25. package/cjs/integrations/node-fetch.js.map +1 -0
  26. package/cjs/integrations/onuncaughtexception.js +15 -30
  27. package/cjs/integrations/onuncaughtexception.js.map +1 -1
  28. package/cjs/integrations/onunhandledrejection.js +3 -17
  29. package/cjs/integrations/onunhandledrejection.js.map +1 -1
  30. package/cjs/integrations/spotlight.js +4 -22
  31. package/cjs/integrations/spotlight.js.map +1 -1
  32. package/cjs/integrations/tracing/express.js +103 -0
  33. package/cjs/integrations/tracing/express.js.map +1 -0
  34. package/cjs/integrations/tracing/fastify.js +33 -0
  35. package/cjs/integrations/tracing/fastify.js.map +1 -0
  36. package/cjs/integrations/tracing/graphql.js +34 -0
  37. package/cjs/integrations/tracing/graphql.js.map +1 -0
  38. package/cjs/integrations/tracing/hapi/index.js +81 -0
  39. package/cjs/integrations/tracing/hapi/index.js.map +1 -0
  40. package/cjs/integrations/tracing/index.js +37 -0
  41. package/cjs/integrations/tracing/index.js.map +1 -0
  42. package/cjs/integrations/tracing/koa.js +21 -0
  43. package/cjs/integrations/tracing/koa.js.map +1 -0
  44. package/cjs/integrations/tracing/mongo.js +33 -0
  45. package/cjs/integrations/tracing/mongo.js.map +1 -0
  46. package/cjs/integrations/tracing/mongoose.js +33 -0
  47. package/cjs/integrations/tracing/mongoose.js.map +1 -0
  48. package/cjs/integrations/tracing/mysql.js +26 -0
  49. package/cjs/integrations/tracing/mysql.js.map +1 -0
  50. package/cjs/integrations/tracing/mysql2.js +33 -0
  51. package/cjs/integrations/tracing/mysql2.js.map +1 -0
  52. package/cjs/integrations/tracing/nest.js +26 -0
  53. package/cjs/integrations/tracing/nest.js.map +1 -0
  54. package/cjs/integrations/tracing/postgres.js +34 -0
  55. package/cjs/integrations/tracing/postgres.js.map +1 -0
  56. package/cjs/integrations/tracing/prisma.js +33 -0
  57. package/cjs/integrations/tracing/prisma.js.map +1 -0
  58. package/cjs/nodeVersion.js +5 -1
  59. package/cjs/nodeVersion.js.map +1 -1
  60. package/cjs/otel/contextManager.js +16 -0
  61. package/cjs/otel/contextManager.js.map +1 -0
  62. package/cjs/proxy/index.js +1 -2
  63. package/cjs/proxy/index.js.map +1 -1
  64. package/cjs/sdk/api.js +74 -0
  65. package/cjs/sdk/api.js.map +1 -0
  66. package/cjs/sdk/client.js +57 -0
  67. package/cjs/sdk/client.js.map +1 -0
  68. package/cjs/sdk/hub.js +104 -0
  69. package/cjs/sdk/hub.js.map +1 -0
  70. package/cjs/sdk/init.js +224 -0
  71. package/cjs/sdk/init.js.map +1 -0
  72. package/cjs/sdk/initOtel.js +70 -0
  73. package/cjs/sdk/initOtel.js.map +1 -0
  74. package/cjs/sdk/scope.js +18 -0
  75. package/cjs/sdk/scope.js.map +1 -0
  76. package/cjs/transports/http.js +2 -3
  77. package/cjs/transports/http.js.map +1 -1
  78. package/cjs/utils/addOriginToSpan.js +11 -0
  79. package/cjs/utils/addOriginToSpan.js.map +1 -0
  80. package/cjs/{integrations/utils → utils}/errorhandling.js +2 -1
  81. package/cjs/utils/errorhandling.js.map +1 -0
  82. package/cjs/utils/getRequestUrl.js +18 -0
  83. package/cjs/utils/getRequestUrl.js.map +1 -0
  84. package/cjs/utils/module.js.map +1 -0
  85. package/esm/cron/index.js +13 -0
  86. package/esm/cron/index.js.map +1 -0
  87. package/esm/index.js +28 -48
  88. package/esm/index.js.map +1 -1
  89. package/esm/integrations/anr/index.js +7 -32
  90. package/esm/integrations/anr/index.js.map +1 -1
  91. package/esm/integrations/anr/worker-script.js +2 -2
  92. package/esm/integrations/console.js +4 -14
  93. package/esm/integrations/console.js.map +1 -1
  94. package/esm/integrations/context.js +4 -17
  95. package/esm/integrations/context.js.map +1 -1
  96. package/esm/integrations/contextlines.js +8 -25
  97. package/esm/integrations/contextlines.js.map +1 -1
  98. package/esm/integrations/http.js +105 -353
  99. package/esm/integrations/http.js.map +1 -1
  100. package/esm/integrations/local-variables/index.js +2 -11
  101. package/esm/integrations/local-variables/index.js.map +1 -1
  102. package/esm/integrations/local-variables/local-variables-sync.js +31 -25
  103. package/esm/integrations/local-variables/local-variables-sync.js.map +1 -1
  104. package/esm/integrations/modules.js +21 -31
  105. package/esm/integrations/modules.js.map +1 -1
  106. package/esm/integrations/node-fetch.js +80 -0
  107. package/esm/integrations/node-fetch.js.map +1 -0
  108. package/esm/integrations/onuncaughtexception.js +17 -31
  109. package/esm/integrations/onuncaughtexception.js.map +1 -1
  110. package/esm/integrations/onunhandledrejection.js +5 -18
  111. package/esm/integrations/onunhandledrejection.js.map +1 -1
  112. package/esm/integrations/spotlight.js +3 -20
  113. package/esm/integrations/spotlight.js.map +1 -1
  114. package/esm/integrations/tracing/express.js +96 -0
  115. package/esm/integrations/tracing/express.js.map +1 -0
  116. package/esm/integrations/tracing/fastify.js +31 -0
  117. package/esm/integrations/tracing/fastify.js.map +1 -0
  118. package/esm/integrations/tracing/graphql.js +32 -0
  119. package/esm/integrations/tracing/graphql.js.map +1 -0
  120. package/esm/integrations/tracing/hapi/index.js +77 -0
  121. package/esm/integrations/tracing/hapi/index.js.map +1 -0
  122. package/esm/integrations/tracing/index.js +35 -0
  123. package/esm/integrations/tracing/index.js.map +1 -0
  124. package/esm/integrations/tracing/koa.js +19 -0
  125. package/esm/integrations/tracing/koa.js.map +1 -0
  126. package/esm/integrations/tracing/mongo.js +31 -0
  127. package/esm/integrations/tracing/mongo.js.map +1 -0
  128. package/esm/integrations/tracing/mongoose.js +31 -0
  129. package/esm/integrations/tracing/mongoose.js.map +1 -0
  130. package/esm/integrations/tracing/mysql.js +24 -0
  131. package/esm/integrations/tracing/mysql.js.map +1 -0
  132. package/esm/integrations/tracing/mysql2.js +31 -0
  133. package/esm/integrations/tracing/mysql2.js.map +1 -0
  134. package/esm/integrations/tracing/nest.js +24 -0
  135. package/esm/integrations/tracing/nest.js.map +1 -0
  136. package/esm/integrations/tracing/postgres.js +32 -0
  137. package/esm/integrations/tracing/postgres.js.map +1 -0
  138. package/esm/integrations/tracing/prisma.js +31 -0
  139. package/esm/integrations/tracing/prisma.js.map +1 -0
  140. package/esm/nodeVersion.js +5 -2
  141. package/esm/nodeVersion.js.map +1 -1
  142. package/esm/otel/contextManager.js +14 -0
  143. package/esm/otel/contextManager.js.map +1 -0
  144. package/esm/proxy/index.js +0 -1
  145. package/esm/proxy/index.js.map +1 -1
  146. package/esm/sdk/api.js +69 -0
  147. package/esm/sdk/api.js.map +1 -0
  148. package/esm/sdk/client.js +52 -0
  149. package/esm/sdk/client.js.map +1 -0
  150. package/esm/sdk/hub.js +102 -0
  151. package/esm/sdk/hub.js.map +1 -0
  152. package/esm/sdk/init.js +221 -0
  153. package/esm/sdk/init.js.map +1 -0
  154. package/esm/sdk/initOtel.js +67 -0
  155. package/esm/sdk/initOtel.js.map +1 -0
  156. package/esm/sdk/scope.js +16 -0
  157. package/esm/sdk/scope.js.map +1 -0
  158. package/esm/transports/http.js +0 -1
  159. package/esm/transports/http.js.map +1 -1
  160. package/esm/utils/addOriginToSpan.js +9 -0
  161. package/esm/utils/addOriginToSpan.js.map +1 -0
  162. package/esm/{integrations/utils → utils}/errorhandling.js +2 -1
  163. package/esm/utils/errorhandling.js.map +1 -0
  164. package/esm/utils/getRequestUrl.js +16 -0
  165. package/esm/utils/getRequestUrl.js.map +1 -0
  166. package/esm/utils/module.js.map +1 -0
  167. package/package.json +31 -23
  168. package/types/cron/index.d.ts +10 -0
  169. package/types/cron/index.d.ts.map +1 -0
  170. package/types/index.d.ts +30 -142
  171. package/types/index.d.ts.map +1 -1
  172. package/types/integrations/anr/index.d.ts +0 -15
  173. package/types/integrations/anr/index.d.ts.map +1 -1
  174. package/types/integrations/console.d.ts +2 -8
  175. package/types/integrations/console.d.ts.map +1 -1
  176. package/types/integrations/context.d.ts +3 -18
  177. package/types/integrations/context.d.ts.map +1 -1
  178. package/types/integrations/contextlines.d.ts +8 -10
  179. package/types/integrations/contextlines.d.ts.map +1 -1
  180. package/types/integrations/http.d.ts +8 -89
  181. package/types/integrations/http.d.ts.map +1 -1
  182. package/types/integrations/local-variables/index.d.ts +0 -11
  183. package/types/integrations/local-variables/index.d.ts.map +1 -1
  184. package/types/integrations/local-variables/local-variables-async.d.ts +1 -1
  185. package/types/integrations/local-variables/local-variables-async.d.ts.map +1 -1
  186. package/types/integrations/local-variables/local-variables-sync.d.ts +1 -1
  187. package/types/integrations/local-variables/local-variables-sync.d.ts.map +1 -1
  188. package/types/integrations/modules.d.ts +1 -7
  189. package/types/integrations/modules.d.ts.map +1 -1
  190. package/types/integrations/node-fetch.d.ts +15 -0
  191. package/types/integrations/node-fetch.d.ts.map +1 -0
  192. package/types/integrations/onuncaughtexception.d.ts +3 -12
  193. package/types/integrations/onuncaughtexception.d.ts.map +1 -1
  194. package/types/integrations/onunhandledrejection.d.ts +3 -10
  195. package/types/integrations/onunhandledrejection.d.ts.map +1 -1
  196. package/types/integrations/spotlight.d.ts +1 -10
  197. package/types/integrations/spotlight.d.ts.map +1 -1
  198. package/types/integrations/tracing/express.d.ts +37 -0
  199. package/types/integrations/tracing/express.d.ts.map +1 -0
  200. package/types/integrations/tracing/fastify.d.ts +7 -0
  201. package/types/integrations/tracing/fastify.d.ts.map +1 -0
  202. package/types/integrations/tracing/graphql.d.ts +7 -0
  203. package/types/integrations/tracing/graphql.d.ts.map +1 -0
  204. package/types/integrations/tracing/hapi/index.d.ts +18 -0
  205. package/types/integrations/tracing/hapi/index.d.ts.map +1 -0
  206. package/types/integrations/{hapi → tracing/hapi}/types.d.ts +1 -2
  207. package/types/integrations/tracing/hapi/types.d.ts.map +1 -0
  208. package/types/integrations/tracing/index.d.ts +6 -0
  209. package/types/integrations/tracing/index.d.ts.map +1 -0
  210. package/types/integrations/tracing/koa.d.ts +2 -0
  211. package/types/integrations/tracing/koa.d.ts.map +1 -0
  212. package/types/integrations/tracing/mongo.d.ts +7 -0
  213. package/types/integrations/tracing/mongo.d.ts.map +1 -0
  214. package/types/integrations/tracing/mongoose.d.ts +7 -0
  215. package/types/integrations/tracing/mongoose.d.ts.map +1 -0
  216. package/types/integrations/tracing/mysql.d.ts +7 -0
  217. package/types/integrations/tracing/mysql.d.ts.map +1 -0
  218. package/types/integrations/tracing/mysql2.d.ts +7 -0
  219. package/types/integrations/tracing/mysql2.d.ts.map +1 -0
  220. package/types/integrations/tracing/nest.d.ts +7 -0
  221. package/types/integrations/tracing/nest.d.ts.map +1 -0
  222. package/types/integrations/tracing/postgres.d.ts +7 -0
  223. package/types/integrations/tracing/postgres.d.ts.map +1 -0
  224. package/types/integrations/tracing/prisma.d.ts +11 -0
  225. package/types/integrations/tracing/prisma.d.ts.map +1 -0
  226. package/types/nodeVersion.d.ts +3 -3
  227. package/types/nodeVersion.d.ts.map +1 -1
  228. package/types/otel/contextManager.d.ts +10 -0
  229. package/types/otel/contextManager.d.ts.map +1 -0
  230. package/types/proxy/helpers.d.ts +0 -1
  231. package/types/proxy/helpers.d.ts.map +1 -1
  232. package/types/proxy/index.d.ts +0 -1
  233. package/types/proxy/index.d.ts.map +1 -1
  234. package/types/sdk/api.d.ts +18 -0
  235. package/types/sdk/api.d.ts.map +1 -0
  236. package/types/sdk/client.d.ts +17 -0
  237. package/types/sdk/client.d.ts.map +1 -0
  238. package/types/sdk/globals.d.ts +6 -0
  239. package/types/sdk/globals.d.ts.map +1 -0
  240. package/types/sdk/hub.d.ts +7 -0
  241. package/types/sdk/hub.d.ts.map +1 -0
  242. package/types/sdk/init.d.ts +9 -0
  243. package/types/sdk/init.d.ts.map +1 -0
  244. package/types/sdk/initOtel.d.ts +9 -0
  245. package/types/sdk/initOtel.d.ts.map +1 -0
  246. package/types/sdk/scope.d.ts +7 -0
  247. package/types/sdk/scope.d.ts.map +1 -0
  248. package/types/transports/http-module.d.ts +2 -5
  249. package/types/transports/http-module.d.ts.map +1 -1
  250. package/types/transports/http.d.ts.map +1 -1
  251. package/types/types.d.ts +18 -25
  252. package/types/types.d.ts.map +1 -1
  253. package/types/utils/addOriginToSpan.d.ts +5 -0
  254. package/types/utils/addOriginToSpan.d.ts.map +1 -0
  255. package/types/utils/errorhandling.d.ts.map +1 -0
  256. package/types/utils/getRequestUrl.d.ts +5 -0
  257. package/types/utils/getRequestUrl.d.ts.map +1 -0
  258. package/types/utils/module.d.ts.map +1 -0
  259. package/types/utils/prepareEvent.d.ts +17 -0
  260. package/types/utils/prepareEvent.d.ts.map +1 -0
  261. package/types-ts3.8/cron/index.d.ts +10 -0
  262. package/types-ts3.8/index.d.ts +30 -142
  263. package/types-ts3.8/integrations/anr/index.d.ts +0 -15
  264. package/types-ts3.8/integrations/console.d.ts +2 -8
  265. package/types-ts3.8/integrations/context.d.ts +3 -18
  266. package/types-ts3.8/integrations/contextlines.d.ts +8 -10
  267. package/types-ts3.8/integrations/http.d.ts +8 -89
  268. package/types-ts3.8/integrations/local-variables/index.d.ts +0 -11
  269. package/types-ts3.8/integrations/local-variables/local-variables-async.d.ts +1 -1
  270. package/types-ts3.8/integrations/local-variables/local-variables-sync.d.ts +1 -1
  271. package/types-ts3.8/integrations/modules.d.ts +1 -7
  272. package/types-ts3.8/integrations/node-fetch.d.ts +15 -0
  273. package/types-ts3.8/integrations/onuncaughtexception.d.ts +3 -12
  274. package/types-ts3.8/integrations/onunhandledrejection.d.ts +3 -10
  275. package/types-ts3.8/integrations/spotlight.d.ts +1 -10
  276. package/types-ts3.8/integrations/tracing/express.d.ts +37 -0
  277. package/types-ts3.8/integrations/tracing/fastify.d.ts +7 -0
  278. package/types-ts3.8/integrations/tracing/graphql.d.ts +7 -0
  279. package/types-ts3.8/integrations/tracing/hapi/index.d.ts +18 -0
  280. package/types-ts3.8/integrations/{hapi → tracing/hapi}/types.d.ts +1 -2
  281. package/types-ts3.8/integrations/tracing/index.d.ts +6 -0
  282. package/types-ts3.8/integrations/tracing/koa.d.ts +2 -0
  283. package/types-ts3.8/integrations/tracing/mongo.d.ts +7 -0
  284. package/types-ts3.8/integrations/tracing/mongoose.d.ts +7 -0
  285. package/types-ts3.8/integrations/tracing/mysql.d.ts +7 -0
  286. package/types-ts3.8/integrations/tracing/mysql2.d.ts +7 -0
  287. package/types-ts3.8/integrations/tracing/nest.d.ts +7 -0
  288. package/types-ts3.8/integrations/tracing/postgres.d.ts +7 -0
  289. package/types-ts3.8/integrations/tracing/prisma.d.ts +11 -0
  290. package/types-ts3.8/nodeVersion.d.ts +3 -3
  291. package/types-ts3.8/otel/contextManager.d.ts +10 -0
  292. package/types-ts3.8/proxy/helpers.d.ts +0 -1
  293. package/types-ts3.8/proxy/index.d.ts +0 -1
  294. package/types-ts3.8/sdk/api.d.ts +18 -0
  295. package/types-ts3.8/sdk/client.d.ts +17 -0
  296. package/types-ts3.8/sdk/globals.d.ts +6 -0
  297. package/types-ts3.8/sdk/hub.d.ts +7 -0
  298. package/types-ts3.8/sdk/init.d.ts +9 -0
  299. package/types-ts3.8/sdk/initOtel.d.ts +9 -0
  300. package/types-ts3.8/sdk/scope.d.ts +7 -0
  301. package/types-ts3.8/transports/http-module.d.ts +2 -4
  302. package/types-ts3.8/types.d.ts +18 -25
  303. package/types-ts3.8/utils/addOriginToSpan.d.ts +5 -0
  304. package/types-ts3.8/utils/getRequestUrl.d.ts +5 -0
  305. package/types-ts3.8/utils/prepareEvent.d.ts +17 -0
  306. package/cjs/async/domain.js +0 -61
  307. package/cjs/async/domain.js.map +0 -1
  308. package/cjs/async/hooks.js +0 -50
  309. package/cjs/async/hooks.js.map +0 -1
  310. package/cjs/async/index.js +0 -22
  311. package/cjs/async/index.js.map +0 -1
  312. package/cjs/client.js +0 -39
  313. package/cjs/client.js.map +0 -1
  314. package/cjs/handlers.js +0 -340
  315. package/cjs/handlers.js.map +0 -1
  316. package/cjs/integrations/anr/legacy.js +0 -29
  317. package/cjs/integrations/anr/legacy.js.map +0 -1
  318. package/cjs/integrations/hapi/index.js +0 -161
  319. package/cjs/integrations/hapi/index.js.map +0 -1
  320. package/cjs/integrations/index.js +0 -32
  321. package/cjs/integrations/index.js.map +0 -1
  322. package/cjs/integrations/undici/index.js +0 -307
  323. package/cjs/integrations/undici/index.js.map +0 -1
  324. package/cjs/integrations/utils/errorhandling.js.map +0 -1
  325. package/cjs/integrations/utils/http.js +0 -225
  326. package/cjs/integrations/utils/http.js.map +0 -1
  327. package/cjs/module.js.map +0 -1
  328. package/cjs/requestDataDeprecated.js +0 -45
  329. package/cjs/requestDataDeprecated.js.map +0 -1
  330. package/cjs/sdk.js +0 -284
  331. package/cjs/sdk.js.map +0 -1
  332. package/cjs/tracing/index.js +0 -29
  333. package/cjs/tracing/index.js.map +0 -1
  334. package/cjs/tracing/integrations.js +0 -14
  335. package/cjs/tracing/integrations.js.map +0 -1
  336. package/cjs/utils.js +0 -45
  337. package/cjs/utils.js.map +0 -1
  338. package/esm/async/domain.js +0 -56
  339. package/esm/async/domain.js.map +0 -1
  340. package/esm/async/hooks.js +0 -45
  341. package/esm/async/hooks.js.map +0 -1
  342. package/esm/async/index.js +0 -20
  343. package/esm/async/index.js.map +0 -1
  344. package/esm/client.js +0 -37
  345. package/esm/client.js.map +0 -1
  346. package/esm/handlers.js +0 -330
  347. package/esm/handlers.js.map +0 -1
  348. package/esm/integrations/anr/legacy.js +0 -27
  349. package/esm/integrations/anr/legacy.js.map +0 -1
  350. package/esm/integrations/hapi/index.js +0 -156
  351. package/esm/integrations/hapi/index.js.map +0 -1
  352. package/esm/integrations/index.js +0 -16
  353. package/esm/integrations/index.js.map +0 -1
  354. package/esm/integrations/undici/index.js +0 -301
  355. package/esm/integrations/undici/index.js.map +0 -1
  356. package/esm/integrations/utils/errorhandling.js.map +0 -1
  357. package/esm/integrations/utils/http.js +0 -216
  358. package/esm/integrations/utils/http.js.map +0 -1
  359. package/esm/module.js.map +0 -1
  360. package/esm/requestDataDeprecated.js +0 -42
  361. package/esm/requestDataDeprecated.js.map +0 -1
  362. package/esm/sdk.js +0 -274
  363. package/esm/sdk.js.map +0 -1
  364. package/esm/tracing/index.js +0 -27
  365. package/esm/tracing/index.js.map +0 -1
  366. package/esm/tracing/integrations.js +0 -2
  367. package/esm/tracing/integrations.js.map +0 -1
  368. package/esm/utils.js +0 -43
  369. package/esm/utils.js.map +0 -1
  370. package/types/async/domain.d.ts +0 -5
  371. package/types/async/domain.d.ts.map +0 -1
  372. package/types/async/hooks.d.ts +0 -5
  373. package/types/async/hooks.d.ts.map +0 -1
  374. package/types/async/index.d.ts +0 -8
  375. package/types/async/index.d.ts.map +0 -1
  376. package/types/client.d.ts +0 -16
  377. package/types/client.d.ts.map +0 -1
  378. package/types/handlers.d.ts +0 -57
  379. package/types/handlers.d.ts.map +0 -1
  380. package/types/integrations/anr/legacy.d.ts +0 -22
  381. package/types/integrations/anr/legacy.d.ts.map +0 -1
  382. package/types/integrations/hapi/index.d.ts +0 -22
  383. package/types/integrations/hapi/index.d.ts.map +0 -1
  384. package/types/integrations/hapi/types.d.ts.map +0 -1
  385. package/types/integrations/index.d.ts +0 -14
  386. package/types/integrations/index.d.ts.map +0 -1
  387. package/types/integrations/undici/index.d.ts +0 -58
  388. package/types/integrations/undici/index.d.ts.map +0 -1
  389. package/types/integrations/undici/types.d.ts +0 -224
  390. package/types/integrations/undici/types.d.ts.map +0 -1
  391. package/types/integrations/utils/errorhandling.d.ts.map +0 -1
  392. package/types/integrations/utils/http.d.ts +0 -70
  393. package/types/integrations/utils/http.d.ts.map +0 -1
  394. package/types/module.d.ts.map +0 -1
  395. package/types/requestDataDeprecated.d.ts +0 -45
  396. package/types/requestDataDeprecated.d.ts.map +0 -1
  397. package/types/sdk.d.ts +0 -74
  398. package/types/sdk.d.ts.map +0 -1
  399. package/types/tracing/index.d.ts +0 -6
  400. package/types/tracing/index.d.ts.map +0 -1
  401. package/types/tracing/integrations.d.ts +0 -2
  402. package/types/tracing/integrations.d.ts.map +0 -1
  403. package/types/utils.d.ts +0 -10
  404. package/types/utils.d.ts.map +0 -1
  405. package/types-ts3.8/async/domain.d.ts +0 -5
  406. package/types-ts3.8/async/hooks.d.ts +0 -5
  407. package/types-ts3.8/async/index.d.ts +0 -8
  408. package/types-ts3.8/client.d.ts +0 -16
  409. package/types-ts3.8/handlers.d.ts +0 -57
  410. package/types-ts3.8/integrations/anr/legacy.d.ts +0 -22
  411. package/types-ts3.8/integrations/hapi/index.d.ts +0 -22
  412. package/types-ts3.8/integrations/index.d.ts +0 -14
  413. package/types-ts3.8/integrations/undici/index.d.ts +0 -58
  414. package/types-ts3.8/integrations/undici/types.d.ts +0 -223
  415. package/types-ts3.8/integrations/utils/http.d.ts +0 -80
  416. package/types-ts3.8/requestDataDeprecated.d.ts +0 -45
  417. package/types-ts3.8/sdk.d.ts +0 -74
  418. package/types-ts3.8/tracing/index.d.ts +0 -6
  419. package/types-ts3.8/tracing/integrations.d.ts +0 -2
  420. package/types-ts3.8/utils.d.ts +0 -10
  421. /package/cjs/{module.js → utils/module.js} +0 -0
  422. /package/esm/{module.js → utils/module.js} +0 -0
  423. /package/types/{integrations/utils → utils}/errorhandling.d.ts +0 -0
  424. /package/types/{module.d.ts → utils/module.d.ts} +0 -0
  425. /package/types-ts3.8/{integrations/utils → utils}/errorhandling.d.ts +0 -0
  426. /package/types-ts3.8/{module.d.ts → utils/module.d.ts} +0 -0
package/types/index.d.ts CHANGED
@@ -1,147 +1,35 @@
1
- export type { Breadcrumb, BreadcrumbHint, PolymorphicRequest, Request, SdkInfo, Event, EventHint, Exception, Session, Severity, SeverityLevel, Span, StackFrame, Stacktrace, Thread, Transaction, User, } from '@sentry/types';
2
- export type { AddRequestDataToEventOptions, TransactionNamingScheme } from '@sentry/utils';
3
- export type { NodeOptions } from './types';
4
- export { addGlobalEventProcessor, addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, configureScope, createTransport, extractTraceparentData, flush, getActiveTransaction, getHubFromCarrier, getCurrentHub, getClient, isInitialized, getCurrentScope, getGlobalScope, getIsolationScope, Hub, lastEventId, makeMain, setCurrentClient, runWithAsyncContext, Scope, startTransaction, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, spanStatusfromHttpCode, getSpanStatusFromHttpCode, setHttpStatus, trace, withScope, withIsolationScope, captureCheckIn, withMonitor, setMeasurement, getActiveSpan, startSpan, startActiveSpan, startInactiveSpan, startSpanManual, continueTrace, parameterize, metrics, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, requestDataIntegration, startSession, captureSession, endSession, } from '@sentry/core';
5
- export { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, } from '@sentry/core';
6
- export type { SpanStatusType } from '@sentry/core';
7
- export { autoDiscoverNodePerformanceMonitoringIntegrations } from './tracing';
8
- export { NodeClient } from './client';
9
- export { makeNodeTransport } from './transports';
10
- export { defaultIntegrations, getDefaultIntegrations, init, defaultStackParser, getSentryRelease, } from './sdk';
11
- export { addRequestDataToEvent, DEFAULT_USER_INCLUDES, extractRequestData } from '@sentry/utils';
12
- export { deepReadDirSync } from './utils';
13
- import { createGetModuleFromFilename } from './module';
14
- /**
15
- * @deprecated use `createGetModuleFromFilename` instead.
16
- */
17
- export declare const getModuleFromFilename: (filename: string | undefined) => string | undefined;
18
- export { createGetModuleFromFilename };
19
- export { enableAnrDetection } from './integrations/anr/legacy';
20
- import * as Handlers from './handlers';
21
- import * as NodeIntegrations from './integrations';
22
- import * as TracingIntegrations from './tracing/integrations';
23
- export declare const Integrations: {
24
- Apollo: typeof TracingIntegrations.Apollo;
25
- Express: typeof TracingIntegrations.Express;
26
- GraphQL: typeof TracingIntegrations.GraphQL;
27
- Mongo: typeof TracingIntegrations.Mongo;
28
- Mysql: typeof TracingIntegrations.Mysql;
29
- Postgres: typeof TracingIntegrations.Postgres;
30
- Prisma: typeof TracingIntegrations.Prisma;
31
- Console: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
32
- setup: (client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => void;
33
- }>;
34
- Http: typeof NodeIntegrations.Http;
35
- OnUncaughtException: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
36
- setup: (client: import("./client").NodeClient) => void;
37
- }> & (new (options?: Partial<{
38
- exitEvenIfOtherHandlersAreRegistered: boolean;
39
- onFatalError?(this: void, firstError: Error, secondError?: Error | undefined): void;
40
- }> | undefined) => import("@sentry/types").Integration);
41
- OnUnhandledRejection: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
42
- setup: (client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => void;
43
- }> & (new (options?: Partial<{
44
- mode: "warn" | "none" | "strict";
45
- }> | undefined) => import("@sentry/types").Integration);
46
- Modules: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
47
- processEvent: (event: import("@sentry/types").Event) => import("@sentry/types").Event;
48
- }>;
49
- ContextLines: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
50
- processEvent: (event: import("@sentry/types").Event) => Promise<import("@sentry/types").Event>;
51
- }> & (new (options?: {
52
- frameContextLines?: number | undefined;
53
- } | undefined) => import("@sentry/types").Integration);
54
- Context: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
55
- processEvent: (event: import("@sentry/types").Event) => Promise<import("@sentry/types").Event>;
56
- }> & (new (options?: {
57
- app?: boolean | undefined;
58
- os?: boolean | undefined;
59
- device?: boolean | {
60
- cpu?: boolean | undefined;
61
- memory?: boolean | undefined;
62
- } | undefined;
63
- culture?: boolean | undefined;
64
- cloudResource?: boolean | undefined;
65
- } | undefined) => import("@sentry/types").Integration);
66
- RequestData: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
67
- processEvent: (event: import("@sentry/types").Event, hint: import("@sentry/types").EventHint, client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => import("@sentry/types").Event;
68
- }> & (new (options?: {
69
- include?: {
70
- cookies?: boolean | undefined;
71
- data?: boolean | undefined;
72
- headers?: boolean | undefined;
73
- ip?: boolean | undefined;
74
- query_string?: boolean | undefined;
75
- url?: boolean | undefined;
76
- user?: boolean | {
77
- id?: boolean | undefined;
78
- username?: boolean | undefined;
79
- email?: boolean | undefined;
80
- } | undefined;
81
- } | undefined;
82
- transactionNamingScheme?: import("@sentry/utils").TransactionNamingScheme | undefined;
83
- } | undefined) => import("@sentry/types").Integration);
84
- LocalVariables: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
85
- processEvent: (event: import("@sentry/types").Event) => import("@sentry/types").Event;
86
- setup: (client: import("./client").NodeClient) => void;
87
- }> & (new (options?: import("./integrations/local-variables/common").LocalVariablesIntegrationOptions | undefined, session?: import("./integrations/local-variables/local-variables-sync").DebugSession | undefined) => import("@sentry/types").Integration);
88
- Undici: typeof NodeIntegrations.Undici;
89
- Spotlight: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
90
- setup: (client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => void;
91
- }> & (new (options?: Partial<{
92
- sidecarUrl?: string | undefined;
93
- }> | undefined) => import("@sentry/types").Integration);
94
- Anr: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
95
- setup: (client: import("./client").NodeClient) => void;
96
- }> & (new (options?: Partial<import("./integrations/anr/common").AnrIntegrationOptions> | undefined) => import("@sentry/types").Integration & {
97
- setup(client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>): void;
98
- });
99
- Hapi: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration>;
100
- FunctionToString: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
101
- setupOnce: () => void;
102
- }>;
103
- InboundFilters: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
104
- preprocessEvent: (event: import("@sentry/types").Event, hint: import("@sentry/types").EventHint, client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => void;
105
- }> & (new (options?: Partial<{
106
- allowUrls: (string | RegExp)[];
107
- denyUrls: (string | RegExp)[];
108
- ignoreErrors: (string | RegExp)[];
109
- ignoreTransactions: (string | RegExp)[];
110
- ignoreInternal: boolean;
111
- disableErrorDefaults: boolean;
112
- disableTransactionDefaults: boolean;
113
- }> | undefined) => import("@sentry/types").Integration);
114
- LinkedErrors: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
115
- preprocessEvent: (event: import("@sentry/types").Event, hint: import("@sentry/types").EventHint, client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => void;
116
- }> & (new (options?: {
117
- key?: string | undefined;
118
- limit?: number | undefined;
119
- } | undefined) => import("@sentry/types").Integration);
120
- };
1
+ export { httpIntegration } from './integrations/http';
2
+ export { nativeNodeFetchIntegration } from './integrations/node-fetch';
121
3
  export { consoleIntegration } from './integrations/console';
122
- export { onUncaughtExceptionIntegration } from './integrations/onuncaughtexception';
123
- export { onUnhandledRejectionIntegration } from './integrations/onunhandledrejection';
124
- export { modulesIntegration } from './integrations/modules';
125
- export { contextLinesIntegration } from './integrations/contextlines';
126
4
  export { nodeContextIntegration } from './integrations/context';
5
+ export { contextLinesIntegration } from './integrations/contextlines';
127
6
  export { localVariablesIntegration } from './integrations/local-variables';
128
- export { spotlightIntegration } from './integrations/spotlight';
7
+ export { modulesIntegration } from './integrations/modules';
8
+ export { onUncaughtExceptionIntegration } from './integrations/onuncaughtexception';
9
+ export { onUnhandledRejectionIntegration } from './integrations/onunhandledrejection';
129
10
  export { anrIntegration } from './integrations/anr';
130
- export { hapiIntegration } from './integrations/hapi';
131
- export { Undici, nativeNodeFetchintegration } from './integrations/undici';
132
- export { Http, httpIntegration } from './integrations/http';
133
- export type { LocalVariablesIntegrationOptions } from './integrations/local-variables/common';
134
- export type { DebugSession } from './integrations/local-variables/local-variables-sync';
135
- export type { AnrIntegrationOptions } from './integrations/anr/common';
136
- export { Handlers };
137
- export { hapiErrorPlugin } from './integrations/hapi';
138
- import { instrumentCron } from './cron/cron';
139
- import { instrumentNodeCron } from './cron/node-cron';
140
- import { instrumentNodeSchedule } from './cron/node-schedule';
141
- /** Methods to instrument cron libraries for Sentry check-ins */
142
- export declare const cron: {
143
- instrumentCron: typeof instrumentCron;
144
- instrumentNodeCron: typeof instrumentNodeCron;
145
- instrumentNodeSchedule: typeof instrumentNodeSchedule;
146
- };
11
+ export { expressIntegration, expressErrorHandler, setupExpressErrorHandler } from './integrations/tracing/express';
12
+ export { fastifyIntegration } from './integrations/tracing/fastify';
13
+ export { graphqlIntegration } from './integrations/tracing/graphql';
14
+ export { mongoIntegration } from './integrations/tracing/mongo';
15
+ export { mongooseIntegration } from './integrations/tracing/mongoose';
16
+ export { mysqlIntegration } from './integrations/tracing/mysql';
17
+ export { mysql2Integration } from './integrations/tracing/mysql2';
18
+ export { nestIntegration } from './integrations/tracing/nest';
19
+ export { postgresIntegration } from './integrations/tracing/postgres';
20
+ export { prismaIntegration } from './integrations/tracing/prisma';
21
+ export { hapiIntegration, setupHapiErrorHandler } from './integrations/tracing/hapi';
22
+ export { init, getDefaultIntegrations } from './sdk/init';
23
+ export { getAutoPerformanceIntegrations } from './integrations/tracing';
24
+ export { getClient, getSentryRelease, defaultStackParser, makeMain, } from './sdk/api';
25
+ export { createGetModuleFromFilename } from './utils/module';
26
+ export { makeNodeTransport } from './transports';
27
+ export { NodeClient } from './sdk/client';
28
+ export { getCurrentHub } from './sdk/hub';
29
+ export { cron } from './cron';
30
+ export type { Span, NodeOptions } from './types';
31
+ export { startSpan, startSpanManual, startInactiveSpan, getActiveSpan, withActiveSpan, } from '@sentry/opentelemetry';
32
+ export { addRequestDataToEvent, DEFAULT_USER_INCLUDES, extractRequestData, } from '@sentry/utils';
33
+ export { addBreadcrumb, isInitialized, getGlobalScope, close, createTransport, flush, Hub, 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, continueTrace, parameterize, getCurrentScope, getIsolationScope, withScope, withIsolationScope, captureException, captureEvent, captureMessage, captureConsoleIntegration, debugIntegration, dedupeIntegration, extraErrorDataIntegration, rewriteFramesIntegration, sessionTimingIntegration, } from '@sentry/core';
34
+ export type { Breadcrumb, BreadcrumbHint, PolymorphicRequest, Request, SdkInfo, Event, EventHint, Exception, Session, SeverityLevel, StackFrame, Stacktrace, Thread, Transaction, User, } from '@sentry/types';
147
35
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,OAAO,EACP,KAAK,EACL,SAAS,EACT,SAAS,EACT,OAAO,EAEP,QAAQ,EACR,aAAa,EACb,IAAI,EACJ,UAAU,EACV,UAAU,EACV,MAAM,EACN,WAAW,EACX,IAAI,GACL,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,4BAA4B,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAE3F,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,EAEL,uBAAuB,EACvB,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,KAAK,EAEL,cAAc,EACd,eAAe,EAEf,sBAAsB,EACtB,KAAK,EAEL,oBAAoB,EACpB,iBAAiB,EAEjB,aAAa,EACb,SAAS,EACT,aAAa,EACb,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,GAAG,EAEH,WAAW,EAEX,QAAQ,EACR,gBAAgB,EAChB,mBAAmB,EACnB,KAAK,EAEL,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACN,OAAO,EACP,OAAO,EAEP,sBAAsB,EACtB,yBAAyB,EACzB,aAAa,EAEb,KAAK,EACL,SAAS,EACT,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,cAAc,EACd,aAAa,EACb,SAAS,EAET,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,YAAY,EACZ,OAAO,EACP,2BAA2B,EAC3B,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACtB,YAAY,EACZ,cAAc,EACd,UA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ass } from '@sentry/types';
2
- import type { NodeClient } from '../../client';
3
1
  import type { AnrIntegrationOptions } from './common';
4
2
  export declare const anrIntegration: (options?: Partial<AnrIntegrationOptions> | undefined) => import("@sentry/types").IntegrationFnResult;
5
- /**
6
- * Starts a thread to detect App Not Responding (ANR) events
7
- *
8
- * ANR detection requires Node 16.17.0 or later
9
- *
10
- * @deprecated Use `anrIntegration()` instead.
11
- */
12
- export declare const Anr: IntegrationClass<Integration & {
13
- setup: (client: NodeClient) => void;
14
- }> & (new (options?: Partial<AnrIntegrationOptions>) => Integration & {
15
- setup(client: Client): void;
16
- });
17
- export type Anr = typeof Anr;
18
3
  //# 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,EAAE,MAAM,EAA8B,WAAW,EAAE,gBAAgB,EAAiB,MAAM,eAAe,CAAC;AAGtH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,qBAAqB,EAAmB,MAAM,UAAU,CAAC;AA8DvE,eAAO,MAAM,cAAc,uGAAqC,CAAC;AAEjE;;;;;;GAMG;AAEH,eAAO,MAAM,GAAG;oBACkB,UAAU,KAAK,IAAI;qBAEpC,QAAQ,qBAAqB,CAAC;kBAAiC,MAAM,GAAG,IAAI;EAC5F,CAAC;AAGF,MAAM,MAAM,GAAG,GAAG,OAAO,GAAG,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/anr/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAmB,MAAM,UAAU,CAAC;AA8CvE,eAAO,MAAM,cAAc,uGAAqC,CAAC"}
@@ -1,11 +1,5 @@
1
- import type { Client, Integration, IntegrationClass } from '@sentry/types';
2
- export declare const consoleIntegration: () => import("@sentry/types").IntegrationFnResult;
3
1
  /**
4
- * Console module integration.
5
- * @deprecated Use `consoleIntegration()` instead.
2
+ * Capture console logs as breadcrumbs.
6
3
  */
7
- export declare const Console: IntegrationClass<Integration & {
8
- setup: (client: Client) => void;
9
- }>;
10
- export type Console = typeof Console;
4
+ export declare const consoleIntegration: () => import("@sentry/types").IntegrationFnResult;
11
5
  //# sourceMappingURL=console.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../../src/integrations/console.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAiB,MAAM,eAAe,CAAC;AAgC1F,eAAO,MAAM,kBAAkB,mDAAyC,CAAC;AAEzE;;;GAGG;AAEH,eAAO,MAAM,OAAO;oBACc,MAAM,KAAK,IAAI;EAChD,CAAC;AAGF,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC"}
1
+ {"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../../src/integrations/console.ts"],"names":[],"mappings":"AAgCA;;GAEG;AACH,eAAO,MAAM,kBAAkB,mDAAyC,CAAC"}
@@ -1,7 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { readFile, readdir } from 'fs';
3
- import * as os from 'os';
4
- import type { DeviceContext, Event, Integration, IntegrationClass } from '@sentry/types';
3
+ import type { DeviceContext } from '@sentry/types';
5
4
  export declare const readFileAsync: typeof readFile.__promisify__;
6
5
  export declare const readDirAsync: typeof readdir.__promisify__;
7
6
  interface DeviceContextOptions {
@@ -15,24 +14,10 @@ interface ContextOptions {
15
14
  culture?: boolean;
16
15
  cloudResource?: boolean;
17
16
  }
18
- export declare const nodeContextIntegration: (options?: ContextOptions | undefined) => import("@sentry/types").IntegrationFnResult;
19
17
  /**
20
- * Add node modules / packages to the event.
21
- * @deprecated Use `nodeContextIntegration()` instead.
18
+ * Capture context about the environment and the device that the client is running on, to events.
22
19
  */
23
- export declare const Context: IntegrationClass<Integration & {
24
- processEvent: (event: Event) => Promise<Event>;
25
- }> & (new (options?: {
26
- app?: boolean;
27
- os?: boolean;
28
- device?: {
29
- cpu?: boolean;
30
- memory?: boolean;
31
- } | boolean;
32
- culture?: boolean;
33
- cloudResource?: boolean;
34
- }) => Integration);
35
- export type Context = typeof Context;
20
+ export declare const nodeContextIntegration: (options?: ContextOptions | undefined) => import("@sentry/types").IntegrationFnResult;
36
21
  /**
37
22
  * Gets device information from os
38
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,IAAI,CAAC;AACvC,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAIzB,OAAO,KAAK,EAKV,aAAa,EACb,KAAK,EACL,WAAW,EACX,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AAGvB,eAAO,MAAM,aAAa,+BAAsB,CAAC;AACjD,eAAO,MAAM,YAAY,8BAAqB,CAAC;AAI/C,UAAU,oBAAoB;IAC5B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,UAAU,cAAc;IACtB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,MAAM,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AA2ED,eAAO,MAAM,sBAAsB,uFAA6C,CAAC;AAEjF;;;GAGG;AAEH,eAAO,MAAM,OAAO;0BACoB,KAAK,KAAK,QAAQ,KAAK,CAAC;qBAE/C;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,MAAM,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,KAAG,WAAW,CAChB,CAAC;AAGF,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC;AAmFrC;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,oBAAoB,GAAG,IAAI,GAAG,aAAa,CAqCtF"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/integrations/context.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAKvC,OAAO,KAAK,EAKV,aAAa,EAId,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,aAAa,+BAAsB,CAAC;AACjD,eAAO,MAAM,YAAY,8BAAqB,CAAC;AAI/C,UAAU,oBAAoB;IAC5B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,UAAU,cAAc;IACtB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,MAAM,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAyED;;GAEG;AACH,eAAO,MAAM,sBAAsB,uFAA6C,CAAC;AAmFjF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,oBAAoB,GAAG,IAAI,GAAG,aAAa,CAqCtF"}
@@ -1,4 +1,4 @@
1
- import type { Event, Integration, IntegrationClass } from '@sentry/types';
1
+ import type { Event } from '@sentry/types';
2
2
  /**
3
3
  * Resets the file cache. Exists for testing purposes.
4
4
  * @hidden
@@ -13,16 +13,14 @@ interface ContextLinesOptions {
13
13
  **/
14
14
  frameContextLines?: number;
15
15
  }
16
- export declare const contextLinesIntegration: (options?: ContextLinesOptions | undefined) => import("@sentry/types").IntegrationFnResult;
16
+ /** Exported only for tests, as a type-safe variant. */
17
+ export declare const _contextLinesIntegration: (options?: ContextLinesOptions) => {
18
+ name: string;
19
+ processEvent(event: Event): Promise<Event>;
20
+ };
17
21
  /**
18
- * Add node modules / packages to the event.
19
- * @deprecated Use `contextLinesIntegration()` instead.
22
+ * Capture the lines before and after the frame's context.
20
23
  */
21
- export declare const ContextLines: IntegrationClass<Integration & {
22
- processEvent: (event: Event) => Promise<Event>;
23
- }> & (new (options?: {
24
- frameContextLines?: number;
25
- }) => Integration);
26
- export type ContextLines = typeof ContextLines;
24
+ export declare const contextLinesIntegration: (options?: ContextLinesOptions | undefined) => import("@sentry/types").IntegrationFnResult;
27
25
  export {};
28
26
  //# sourceMappingURL=contextlines.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contextlines.d.ts","sourceRoot":"","sources":["../../../src/integrations/contextlines.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAA6B,MAAM,eAAe,CAAC;AAiBrG;;;GAGG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAED,UAAU,mBAAmB;IAC3B;;;;;QAKI;IACJ,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAeD,eAAO,MAAM,uBAAuB,4FAA8C,CAAC;AAEnF;;;GAGG;AAEH,eAAO,MAAM,YAAY;0BACe,KAAK,KAAK,QAAQ,KAAK,CAAC;qBAC3C;IAAE,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAAE,KAAG,WAAW,CAAE,CAAC;AAoEpE,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"contextlines.d.ts","sourceRoot":"","sources":["../../../src/integrations/contextlines.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAA6B,MAAM,eAAe,CAAC;AAStE;;;GAGG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAED,UAAU,mBAAmB;IAC3B;;;;;QAKI;IACJ,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,uDAAuD;AACvD,eAAO,MAAM,wBAAwB,aAAc,mBAAmB;;;CAS5C,CAAC;AAE3B;;GAEG;AACH,eAAO,MAAM,uBAAuB,4FAA8C,CAAC"}
@@ -1,101 +1,20 @@
1
- import type { Hub } from '@sentry/core';
2
- import type { ClientOptions, EventProcessor, Integration, IntegrationFnResult, TracePropagationTargets } from '@sentry/types';
3
- import type { NodeClientOptions } from '../types';
4
- interface TracingOptions {
5
- /**
6
- * List of strings/regex controlling to which outgoing requests
7
- * the SDK will attach tracing headers.
8
- *
9
- * By default the SDK will attach those headers to all outgoing
10
- * requests. If this option is provided, the SDK will match the
11
- * request URL of outgoing requests against the items in this
12
- * array, and only attach tracing headers if a match was found.
13
- *
14
- * @deprecated Use top level `tracePropagationTargets` option instead.
15
- * This option will be removed in v8.
16
- *
17
- * ```
18
- * Sentry.init({
19
- * tracePropagationTargets: ['api.site.com'],
20
- * })
21
- */
22
- tracePropagationTargets?: TracePropagationTargets;
23
- /**
24
- * Function determining whether or not to create spans to track outgoing requests to the given URL.
25
- * By default, spans will be created for all outgoing requests.
26
- */
27
- shouldCreateSpanForRequest?: (url: string) => boolean;
28
- /**
29
- * This option is just for compatibility with v7.
30
- * In v8, this will be the default behavior.
31
- */
32
- enableIfHasTracingEnabled?: boolean;
33
- }
34
1
  interface HttpOptions {
35
2
  /**
36
- * Whether breadcrumbs should be recorded for requests
3
+ * Whether breadcrumbs should be recorded for requests.
37
4
  * Defaults to true
38
5
  */
39
6
  breadcrumbs?: boolean;
40
7
  /**
41
- * Whether tracing spans should be created for requests
42
- * Defaults to false
43
- */
44
- tracing?: TracingOptions | boolean;
45
- }
46
- interface HttpIntegrationOptions {
47
- /**
48
- * Whether breadcrumbs should be recorded for requests
49
- * Defaults to true.
50
- */
51
- breadcrumbs?: boolean;
52
- /**
53
- * Whether tracing spans should be created for requests
54
- * If not set, this will be enabled/disabled based on if tracing is enabled.
55
- */
56
- tracing?: boolean;
57
- /**
58
- * Function determining whether or not to create spans to track outgoing requests to the given URL.
59
- * By default, spans will be created for all outgoing requests.
60
- */
61
- shouldCreateSpanForRequest?: (url: string) => boolean;
62
- }
63
- /**
64
- * The http module integration instruments Node's internal http module. It creates breadcrumbs, spans for outgoing
65
- * http requests, and attaches trace data when tracing is enabled via its `tracing` option.
66
- *
67
- * By default, this will always create breadcrumbs, and will create spans if tracing is enabled.
68
- */
69
- export declare const httpIntegration: (options?: HttpIntegrationOptions | undefined) => IntegrationFnResult;
70
- /**
71
- * The http module integration instruments Node's internal http module. It creates breadcrumbs, transactions for outgoing
72
- * http requests and attaches trace data when tracing is enabled via its `tracing` option.
73
- *
74
- * @deprecated Use `httpIntegration()` instead.
75
- */
76
- export declare class Http implements Integration {
77
- /**
78
- * @inheritDoc
79
- */
80
- static id: string;
81
- /**
82
- * @inheritDoc
83
- */
84
- name: string;
85
- private readonly _breadcrumbs;
86
- private readonly _tracing;
87
- /**
88
- * @inheritDoc
8
+ * Do not capture spans or breadcrumbs for outgoing HTTP requests to URLs where the given callback returns `true`.
9
+ * This controls both span & breadcrumb creation - spans will be non recording if tracing is disabled.
89
10
  */
90
- constructor(options?: HttpOptions);
11
+ ignoreOutgoingRequests?: (url: string) => boolean;
91
12
  /**
92
- * @inheritDoc
13
+ * Do not capture spans or breadcrumbs for incoming HTTP requests to URLs where the given callback returns `true`.
14
+ * This controls both span & breadcrumb creation - spans will be non recording if tracing is disabled.
93
15
  */
94
- setupOnce(_addGlobalEventProcessor: (callback: EventProcessor) => void, setupOnceGetCurrentHub: () => Hub): void;
16
+ ignoreIncomingRequests?: (url: string) => boolean;
95
17
  }
96
- /** Exported for tests only. */
97
- export declare function _shouldCreateSpans(tracingOptions: TracingOptions | undefined, clientOptions: Partial<ClientOptions> | undefined): boolean;
98
- /** Exported for tests only. */
99
- export declare function _getShouldCreateSpanForRequest(shouldCreateSpans: boolean, tracingOptions: TracingOptions | undefined, clientOptions: Partial<NodeClientOptions> | undefined): undefined | ((url: string) => boolean);
18
+ export declare const httpIntegration: (options?: HttpOptions | undefined) => import("@sentry/types").IntegrationFnResult;
100
19
  export {};
101
20
  //# sourceMappingURL=http.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/integrations/http.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAexC,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,WAAW,EAEX,mBAAmB,EAEnB,uBAAuB,EACxB,MAAM,eAAe,CAAC;AAcvB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAIlD,UAAU,cAAc;IACtB;;;;;;;;;;;;;;;;OAgBG;IACH,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAElD;;;OAGG;IACH,0BAA0B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IAEtD;;;OAGG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED,UAAU,WAAW;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;CACpC;AAGD,UAAU,sBAAsB;IAC9B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,0BAA0B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CACvD;AAqBD;;;;;GAKG;AACH,eAAO,MAAM,eAAe,uEAAsC,CAAC;AAEnE;;;;;GAKG;AACH,qBAAa,IAAK,YAAW,WAAW;IACtC;;OAEG;IACH,OAAc,EAAE,EAAE,MAAM,CAAU;IAElC;;OAEG;IAEI,IAAI,EAAE,MAAM,CAAW;IAE9B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAU;IACvC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;IAEtD;;OAEG;gBACgB,OAAO,GAAE,WAAgB;IAK5C;;OAEG;IACI,SAAS,CACd,wBAAwB,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,EAC5D,sBAAsB,EAAE,MAAM,GAAG,GAChC,IAAI;CAmDR;AA8OD,+BAA+B;AAC/B,wBAAgB,kBAAkB,CAChC,cAAc,EAAE,cAAc,GAAG,SAAS,EAC1C,aAAa,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,SAAS,GAChD,OAAO,CAMT;AAED,+BAA+B;AAC/B,wBAAgB,8BAA8B,CAC5C,iBAAiB,EAAE,OAAO,EAC1B,cAAc,EAAE,cAAc,GAAG,SAAS,EAC1C,aAAa,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,SAAS,GACpD,SAAS,GAAG,CAAC,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,CAOxC"}
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/integrations/http.ts"],"names":[],"mappings":"AAgBA,UAAU,WAAW;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IAElD;;;OAGG;IACH,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CACnD;AAqFD,eAAO,MAAM,eAAe,oFAAsC,CAAC"}
@@ -1,13 +1,2 @@
1
- import { LocalVariablesSync } from './local-variables-sync';
2
- /**
3
- * Adds local variables to exception frames.
4
- *
5
- * @deprecated Use `localVariablesIntegration()` instead.
6
- */
7
- export declare const LocalVariables: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & {
8
- processEvent: (event: import("@sentry/types").Event) => import("@sentry/types").Event;
9
- setup: (client: import("../..").NodeClient) => void;
10
- }> & (new (options?: import("./common").LocalVariablesIntegrationOptions | undefined, session?: import("./local-variables-sync").DebugSession | undefined) => import("@sentry/types").Integration);
11
- export type LocalVariables = LocalVariablesSync;
12
1
  export declare const localVariablesIntegration: (options?: import("./common").LocalVariablesIntegrationOptions | undefined, session?: import("./local-variables-sync").DebugSession | undefined) => import("@sentry/types").IntegrationFnResult;
13
2
  //# 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,EAAE,kBAAkB,EAAiC,MAAM,wBAAwB,CAAC;AAE3F;;;;GAIG;AAEH,eAAO,MAAM,cAAc;;;kMAAqB,CAAC;AAEjD,MAAM,MAAM,cAAc,GAAG,kBAAkB,CAAC;AAEhD,eAAO,MAAM,yBAAyB,iMAAgC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,iMAAgC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { Event, Integration, IntegrationClass } from '@sentry/types';
2
- import type { NodeClient } from '../../client';
2
+ import type { NodeClient } from '../../sdk/client';
3
3
  import type { LocalVariablesIntegrationOptions } from './common';
4
4
  export declare const localVariablesAsyncIntegration: (options?: LocalVariablesIntegrationOptions | undefined) => import("@sentry/types").IntegrationFnResult;
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"local-variables-async.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/local-variables-async.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAa,WAAW,EAAE,gBAAgB,EAA8B,MAAM,eAAe,CAAC;AAIjH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAEV,gCAAgC,EAIjC,MAAM,UAAU,CAAC;AAiPlB,eAAO,MAAM,8BAA8B,yGAAqD,CAAC;AAEjG;;;GAGG;AAEH,eAAO,MAAM,mBAAmB;0BAG4B,KAAK,KAAK,KAAK;oBAAkB,UAAU,KAAK,IAAI;EAAG,CAAC;AAGpH,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC"}
1
+ {"version":3,"file":"local-variables-async.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/local-variables-async.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAa,WAAW,EAAE,gBAAgB,EAA8B,MAAM,eAAe,CAAC;AAIjH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,EAEV,gCAAgC,EAIjC,MAAM,UAAU,CAAC;AAyPlB,eAAO,MAAM,8BAA8B,yGAAqD,CAAC;AAEjG;;;GAGG;AAEH,eAAO,MAAM,mBAAmB;0BAG4B,KAAK,KAAK,KAAK;oBAAkB,UAAU,KAAK,IAAI;EAAG,CAAC;AAGpH,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { Event, Integration, IntegrationClass } from '@sentry/types';
2
2
  import type { Debugger, InspectorNotification } from 'inspector';
3
- import type { NodeClient } from '../../client';
3
+ import type { NodeClient } from '../../sdk/client';
4
4
  import type { LocalVariablesIntegrationOptions, Variables } from './common';
5
5
  type OnPauseEvent = InspectorNotification<Debugger.PausedEventDataType>;
6
6
  export interface DebugSession {
@@ -1 +1 @@
1
- {"version":3,"file":"local-variables-sync.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/local-variables-sync.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAa,WAAW,EAAE,gBAAgB,EAA8B,MAAM,eAAe,CAAC;AAEjH,OAAO,KAAK,EAAE,QAAQ,EAA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YAAY,KAAG,WAAW,CACtF,CAAC;AAGF,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC"}
1
+ {"version":3,"file":"local-variables-sync.d.ts","sourceRoot":"","sources":["../../../../src/integrations/local-variables/local-variables-sync.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAa,WAAW,EAAE,gBAAgB,EAA8B,MAAM,eAAe,CAAC;AAEjH,OAAO,KAAK,EAAE,QAAQ,EAAE,qBAAqB,EAAoB,MAAM,WAAW,CAAC;AAGnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAEV,gCAAgC,EAGhC,SAAS,EACV,MAAM,UAAU,CAAC;AAGlB,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;AAiVD,eAAO,MAAM,6BAA6B,6IAAoD,CAAC;AAE/F;;;GAGG;AAEH,eAAO,MAAM,kBAAkB;0BAG6B,KAAK,KAAK,KAAK;oBAAkB,UAAU,KAAK,IAAI;qBAC/F,gCAAgC,YAAY,YAAY,KAAG,WAAW,CACtF,CAAC;AAGF,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC"}
@@ -1,11 +1,5 @@
1
- import type { Event, Integration, IntegrationClass } from '@sentry/types';
2
- export declare const modulesIntegration: () => import("@sentry/types").IntegrationFnResult;
3
1
  /**
4
2
  * Add node modules / packages to the event.
5
- * @deprecated Use `modulesIntegration()` instead.
6
3
  */
7
- export declare const Modules: IntegrationClass<Integration & {
8
- processEvent: (event: Event) => Event;
9
- }>;
10
- export type Modules = typeof Modules;
4
+ export declare const modulesIntegration: () => import("@sentry/types").IntegrationFnResult;
11
5
  //# sourceMappingURL=modules.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../../src/integrations/modules.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAiB,MAAM,eAAe,CAAC;AA2FzF,eAAO,MAAM,kBAAkB,mDAAyC,CAAC;AAEzE;;;GAGG;AAEH,eAAO,MAAM,OAAO;0BACoB,KAAK,KAAK,KAAK;EACtD,CAAC;AAGF,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC"}
1
+ {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../../src/integrations/modules.ts"],"names":[],"mappings":"AAuBA;;GAEG;AACH,eAAO,MAAM,kBAAkB,mDAAyC,CAAC"}
@@ -0,0 +1,15 @@
1
+ interface NodeFetchOptions {
2
+ /**
3
+ * Whether breadcrumbs should be recorded for requests.
4
+ * Defaults to true
5
+ */
6
+ breadcrumbs?: boolean;
7
+ /**
8
+ * Do not capture spans or breadcrumbs for outgoing fetch requests to URLs where the given callback returns `true`.
9
+ * This controls both span & breadcrumb creation - spans will be non recording if tracing is disabled.
10
+ */
11
+ ignoreOutgoingRequests?: (url: string) => boolean;
12
+ }
13
+ export declare const nativeNodeFetchIntegration: (options?: NodeFetchOptions | undefined) => import("@sentry/types").IntegrationFnResult;
14
+ export {};
15
+ //# sourceMappingURL=node-fetch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-fetch.d.ts","sourceRoot":"","sources":["../../../src/integrations/node-fetch.ts"],"names":[],"mappings":"AAWA,UAAU,gBAAgB;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CACnD;AAkDD,eAAO,MAAM,0BAA0B,yFAAiD,CAAC"}
@@ -1,5 +1,4 @@
1
- import type { Integration, IntegrationClass } from '@sentry/types';
2
- import type { NodeClient } from '../client';
1
+ import type { NodeClient } from '../sdk/client';
3
2
  interface OnUncaughtExceptionOptions {
4
3
  /**
5
4
  * Controls if the SDK should register a handler to exit the process on uncaught errors:
@@ -19,18 +18,10 @@ interface OnUncaughtExceptionOptions {
19
18
  */
20
19
  onFatalError?(this: void, firstError: Error, secondError?: Error): void;
21
20
  }
22
- export declare const onUncaughtExceptionIntegration: (options?: Partial<OnUncaughtExceptionOptions> | undefined) => import("@sentry/types").IntegrationFnResult;
23
21
  /**
24
- * Global Exception handler.
25
- * @deprecated Use `onUncaughtExceptionIntegration()` instead.
22
+ * Add a global exception handler.
26
23
  */
27
- export declare const OnUncaughtException: IntegrationClass<Integration & {
28
- setup: (client: NodeClient) => void;
29
- }> & (new (options?: Partial<{
30
- exitEvenIfOtherHandlersAreRegistered: boolean;
31
- onFatalError?(this: void, firstError: Error, secondError?: Error): void;
32
- }> | undefined) => Integration);
33
- export type OnUncaughtException = typeof OnUncaughtException;
24
+ export declare const onUncaughtExceptionIntegration: (options?: Partial<OnUncaughtExceptionOptions> | undefined) => import("@sentry/types").IntegrationFnResult;
34
25
  type ErrorHandler = {
35
26
  _errorHandler: boolean;
36
27
  } & ((error: Error) => void);
@@ -1 +1 @@
1
- {"version":3,"file":"onuncaughtexception.d.ts","sourceRoot":"","sources":["../../../src/integrations/onuncaughtexception.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAiB,MAAM,eAAe,CAAC;AAGlF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAW5C,UAAU,0BAA0B;IAIlC;;;;;;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;AAoBD,eAAO,MAAM,8BAA8B,4GAAqD,CAAC;AAEjG;;;GAGG;AAEH,eAAO,MAAM,mBAAmB;oBAGsB,UAAU,KAAK,IAAI;;0CAG7B,OAAO;wBACzB,IAAI,cAAc,KAAK,gBAAgB,KAAK,GAAG,IAAI;mBAExE,WAAW,CACf,CAAC;AAGF,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC;AAE7D,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,CA0GtG"}
1
+ {"version":3,"file":"onuncaughtexception.d.ts","sourceRoot":"","sources":["../../../src/integrations/onuncaughtexception.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAUhD,UAAU,0BAA0B;IAIlC;;;;;;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;AAkBD;;GAEG;AACH,eAAO,MAAM,8BAA8B,4GAAqD,CAAC;AAEjG,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, Integration, IntegrationClass } from '@sentry/types';
1
+ import type { Client } from '@sentry/types';
2
2
  type UnhandledRejectionMode = 'none' | 'warn' | 'strict';
3
3
  interface OnUnhandledRejectionOptions {
4
4
  /**
@@ -7,17 +7,10 @@ interface OnUnhandledRejectionOptions {
7
7
  */
8
8
  mode: UnhandledRejectionMode;
9
9
  }
10
- export declare const onUnhandledRejectionIntegration: (options?: Partial<OnUnhandledRejectionOptions> | undefined) => import("@sentry/types").IntegrationFnResult;
11
10
  /**
12
- * Global Promise Rejection handler.
13
- * @deprecated Use `onUnhandledRejectionIntegration()` instead.
11
+ * Add a global promise rejection handler.
14
12
  */
15
- export declare const OnUnhandledRejection: IntegrationClass<Integration & {
16
- setup: (client: Client) => void;
17
- }> & (new (options?: Partial<{
18
- mode: UnhandledRejectionMode;
19
- }>) => Integration);
20
- export type OnUnhandledRejection = typeof OnUnhandledRejection;
13
+ export declare const onUnhandledRejectionIntegration: (options?: Partial<OnUnhandledRejectionOptions> | undefined) => import("@sentry/types").IntegrationFnResult;
21
14
  /**
22
15
  * Send an exception with reason
23
16
  * @param reason string