@sentry/node 7.105.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 -99
  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 -145
  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 -145
  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
@@ -1,8 +0,0 @@
1
- /**
2
- * Sets the correct async context strategy for Node.js
3
- *
4
- * Node.js >= 14 uses AsyncLocalStorage
5
- * Node.js < 14 uses domains
6
- */
7
- export declare function setNodeAsyncContextStrategy(): void;
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/async/index.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wBAAgB,2BAA2B,IAAI,IAAI,CAMlD"}
package/types/client.d.ts DELETED
@@ -1,16 +0,0 @@
1
- import { ServerRuntimeClient } from '@sentry/core';
2
- import type { NodeClientOptions } from './types';
3
- /**
4
- * The Sentry Node SDK Client.
5
- *
6
- * @see NodeClientOptions for documentation on configuration options.
7
- * @see SentryClient for usage documentation.
8
- */
9
- export declare class NodeClient extends ServerRuntimeClient<NodeClientOptions> {
10
- /**
11
- * Creates a new Node SDK instance.
12
- * @param options Configuration options for this SDK.
13
- */
14
- constructor(options: NodeClientOptions);
15
- }
16
- //# sourceMappingURL=client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAoB,MAAM,cAAc,CAAC;AAErE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD;;;;;GAKG;AACH,qBAAa,UAAW,SAAQ,mBAAmB,CAAC,iBAAiB,CAAC;IACpE;;;OAGG;gBACgB,OAAO,EAAE,iBAAiB;CAkB9C"}
@@ -1,57 +0,0 @@
1
- /// <reference types="node" />
2
- import type * as http from 'http';
3
- import type { AddRequestDataToEventOptions } from '@sentry/utils';
4
- import type { ParseRequestOptions } from './requestDataDeprecated';
5
- /**
6
- * Express-compatible tracing handler.
7
- * @see Exposed as `Handlers.tracingHandler`
8
- */
9
- export declare function tracingHandler(): (req: http.IncomingMessage, res: http.ServerResponse, next: (error?: any) => void) => void;
10
- export type RequestHandlerOptions = (ParseRequestOptions | AddRequestDataToEventOptions) & {
11
- flushTimeout?: number;
12
- };
13
- /**
14
- * Express compatible request handler.
15
- * @see Exposed as `Handlers.requestHandler`
16
- */
17
- export declare function requestHandler(options?: RequestHandlerOptions): (req: http.IncomingMessage, res: http.ServerResponse, next: (error?: any) => void) => void;
18
- /** JSDoc */
19
- interface MiddlewareError extends Error {
20
- status?: number | string;
21
- statusCode?: number | string;
22
- status_code?: number | string;
23
- output?: {
24
- statusCode?: number | string;
25
- };
26
- }
27
- /**
28
- * Express compatible error handler.
29
- * @see Exposed as `Handlers.errorHandler`
30
- */
31
- export declare function errorHandler(options?: {
32
- /**
33
- * Callback method deciding whether error should be captured and sent to Sentry
34
- * @param error Captured middleware error
35
- */
36
- shouldHandleError?(this: void, error: MiddlewareError): boolean;
37
- }): (error: MiddlewareError, req: http.IncomingMessage, res: http.ServerResponse, next: (error: MiddlewareError) => void) => void;
38
- interface SentryTrpcMiddlewareOptions {
39
- /** Whether to include procedure inputs in reported events. Defaults to `false`. */
40
- attachRpcInput?: boolean;
41
- }
42
- interface TrpcMiddlewareArguments<T> {
43
- path: string;
44
- type: string;
45
- next: () => T;
46
- rawInput: unknown;
47
- }
48
- /**
49
- * Sentry tRPC middleware that names the handling transaction after the called procedure.
50
- *
51
- * Use the Sentry tRPC middleware in combination with the Sentry server integration,
52
- * e.g. Express Request Handlers or Next.js SDK.
53
- */
54
- export declare function trpcMiddleware(options?: SentryTrpcMiddlewareOptions): <T>({ path, type, next, rawInput }: TrpcMiddlewareArguments<T>) => T;
55
- export type { ParseRequestOptions, ExpressRequest } from './requestDataDeprecated';
56
- export { parseRequest, extractRequestData } from './requestDataDeprecated';
57
- //# sourceMappingURL=handlers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../src/handlers.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,IAAI,MAAM,MAAM,CAAC;AAiBlC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAelE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAGnE;;;GAGG;AACH,wBAAgB,cAAc,IAAI,CAChC,GAAG,EAAE,IAAI,CAAC,eAAe,EACzB,GAAG,EAAE,IAAI,CAAC,cAAc,EACxB,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,IAAI,KACxB,IAAI,CAwER;AAED,MAAM,MAAM,qBAAqB,GAG/B,CAAC,mBAAmB,GAAG,4BAA4B,CAAC,GAAG;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AA2BJ;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,CAAC,EAAE,qBAAqB,GAC9B,CAAC,GAAG,EAAE,IAAI,CAAC,eAAe,EAAE,GAAG,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,IAAI,KAAK,IAAI,CAmE5F;AAED,YAAY;AACZ,UAAU,eAAgB,SAAQ,KAAK;IACrC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,MAAM,CAAC,EAAE;QACP,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KAC9B,CAAC;CACH;AAcD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE;IACrC;;;OAGG;IACH,iBAAiB,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC;CACjE,GAAG,CACF,KAAK,EAAE,eAAe,EACtB,GAAG,EAAE,IAAI,CAAC,eAAe,EACzB,GAAG,EAAE,IAAI,CAAC,cAAc,EACxB,IAAI,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,KACnC,IAAI,CAsDR;AAED,UAAU,2BAA2B;IACnC,mFAAmF;IACnF,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,UAAU,uBAAuB,CAAC,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,OAAO,GAAE,2BAAgC,wEAuDvE;AAID,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEnF,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -1,22 +0,0 @@
1
- interface LegacyOptions {
2
- entryScript: string;
3
- pollInterval: number;
4
- anrThreshold: number;
5
- captureStackTrace: boolean;
6
- debug: boolean;
7
- }
8
- /**
9
- * @deprecated Use the `Anr` integration instead.
10
- *
11
- * ```ts
12
- * import * as Sentry from '@sentry/node';
13
- *
14
- * Sentry.init({
15
- * dsn: '__DSN__',
16
- * integrations: [new Sentry.Integrations.Anr({ captureStackTrace: true })],
17
- * });
18
- * ```
19
- */
20
- export declare function enableAnrDetection(options: Partial<LegacyOptions>): Promise<void>;
21
- export {};
22
- //# sourceMappingURL=legacy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"legacy.d.ts","sourceRoot":"","sources":["../../../../src/integrations/anr/legacy.ts"],"names":[],"mappings":"AAMA,UAAU,aAAa;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,KAAK,EAAE,OAAO,CAAC;CAChB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAMjF"}
@@ -1,22 +0,0 @@
1
- export declare const hapiErrorPlugin: {
2
- name: string;
3
- version: string;
4
- register: (serverArg: Record<any, any>) => Promise<void>;
5
- };
6
- export declare const hapiTracingPlugin: {
7
- name: string;
8
- version: string;
9
- register: (serverArg: Record<any, any>) => Promise<void>;
10
- };
11
- export type HapiOptions = {
12
- /** Hapi server instance */
13
- server?: Record<any, any>;
14
- };
15
- export declare const hapiIntegration: (options?: HapiOptions | undefined) => import("@sentry/types").IntegrationFnResult;
16
- /**
17
- * Hapi Framework Integration.
18
- * @deprecated Use `hapiIntegration()` instead.
19
- */
20
- export declare const Hapi: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration>;
21
- export type Hapi = typeof Hapi;
22
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hapi/index.ts"],"names":[],"mappings":"AA0CA,eAAO,MAAM,eAAe;;;0BAIW,OAAO,GAAG,EAAE,GAAG,CAAC;CAmBtD,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;0BAIS,OAAO,GAAG,EAAE,GAAG,CAAC;CA6DtD,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,2BAA2B;IAE3B,MAAM,CAAC,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;CAC3B,CAAC;AA0BF,eAAO,MAAM,eAAe,oFAAsC,CAAC;AAEnE;;;GAGG;AAEH,eAAO,MAAM,IAAI,+EAAiE,CAAC;AAGnF,MAAM,MAAM,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IAAI,CAAC,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB,CAAC;AAEF,UAAU,gBAAgB;CAAG;AAE7B,KAAK,YAAY,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC"}
@@ -1,14 +0,0 @@
1
- export { Console } from './console';
2
- export { Http } from './http';
3
- export { OnUncaughtException } from './onuncaughtexception';
4
- export { OnUnhandledRejection } from './onunhandledrejection';
5
- export { Modules } from './modules';
6
- export { ContextLines } from './contextlines';
7
- export { Context } from './context';
8
- export { RequestData } from '@sentry/core';
9
- export { LocalVariables } from './local-variables';
10
- export { Undici } from './undici';
11
- export { Spotlight } from './spotlight';
12
- export { Anr } from './anr';
13
- export { Hapi } from './hapi';
14
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
@@ -1,58 +0,0 @@
1
- import type { EventProcessor, Integration, IntegrationFnResult } from '@sentry/types';
2
- export declare enum ChannelName {
3
- RequestCreate = "undici:request:create",
4
- RequestEnd = "undici:request:headers",
5
- RequestError = "undici:request:error"
6
- }
7
- export interface UndiciOptions {
8
- /**
9
- * Whether breadcrumbs should be recorded for requests
10
- * Defaults to true
11
- */
12
- breadcrumbs: boolean;
13
- /**
14
- * Whether tracing spans should be created for requests
15
- * If not set, this will be enabled/disabled based on if tracing is enabled.
16
- */
17
- tracing?: boolean;
18
- /**
19
- * Function determining whether or not to create spans to track outgoing requests to the given URL.
20
- * By default, spans will be created for all outgoing requests.
21
- */
22
- shouldCreateSpanForRequest?: (url: string) => boolean;
23
- }
24
- export declare const nativeNodeFetchintegration: (options?: Partial<UndiciOptions> | undefined) => IntegrationFnResult;
25
- /**
26
- * Instruments outgoing HTTP requests made with the `undici` package via
27
- * Node's `diagnostics_channel` API.
28
- *
29
- * Supports Undici 4.7.0 or higher.
30
- *
31
- * Requires Node 16.17.0 or higher.
32
- *
33
- * @deprecated Use `nativeNodeFetchintegration()` instead.
34
- */
35
- export declare class Undici implements Integration {
36
- /**
37
- * @inheritDoc
38
- */
39
- static id: string;
40
- /**
41
- * @inheritDoc
42
- */
43
- name: string;
44
- private readonly _options;
45
- private readonly _createSpanUrlMap;
46
- private readonly _headersUrlMap;
47
- constructor(_options?: Partial<UndiciOptions>);
48
- /**
49
- * @inheritDoc
50
- */
51
- setupOnce(_addGlobalEventProcessor: (callback: EventProcessor) => void): void;
52
- /** Helper that wraps shouldCreateSpanForRequest option */
53
- private _shouldCreateSpan;
54
- private _onRequestCreate;
55
- private _onRequestEnd;
56
- private _onRequestError;
57
- }
58
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/undici/index.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAiB,mBAAmB,EAAQ,MAAM,eAAe,CAAC;AAoB3G,oBAAY,WAAW;IAErB,aAAa,0BAA0B;IACvC,UAAU,2BAA2B;IACrC,YAAY,yBAAyB;CACtC;AAED,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,0BAA0B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CACvD;AAoBD,eAAO,MAAM,0BAA0B,uEAAiD,CAAC;AAEzF;;;;;;;;;GASG;AACH,qBAAa,MAAO,YAAW,WAAW;IACxC;;OAEG;IACH,OAAc,EAAE,EAAE,MAAM,CAAY;IAEpC;;OAEG;IAEI,IAAI,EAAE,MAAM,CAAa;IAEhC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgB;IAEzC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAA4C;IAC9E,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA4C;gBAExD,QAAQ,GAAE,OAAO,CAAC,aAAa,CAAM;IAQxD;;OAEG;IACI,SAAS,CAAC,wBAAwB,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,GAAG,IAAI;IAwBpF,0DAA0D;IAC1D,OAAO,CAAC,iBAAiB;IAmBzB,OAAO,CAAC,gBAAgB,CA6DtB;IAEF,OAAO,CAAC,aAAa,CAsCnB;IAEF,OAAO,CAAC,eAAe,CAqCrB;CACH"}
@@ -1,224 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- import type { URL } from 'url';
4
- import type { Span } from '@sentry/types';
5
- export type ChannelListener = (message: unknown, name: string | symbol) => void;
6
- /**
7
- * The `diagnostics_channel` module provides an API to create named channels
8
- * to report arbitrary message data for diagnostics purposes.
9
- *
10
- * It can be accessed using:
11
- *
12
- * ```js
13
- * import diagnostics_channel from 'diagnostics_channel';
14
- * ```
15
- *
16
- * It is intended that a module writer wanting to report diagnostics messages
17
- * will create one or many top-level channels to report messages through.
18
- * Channels may also be acquired at runtime but it is not encouraged
19
- * due to the additional overhead of doing so. Channels may be exported for
20
- * convenience, but as long as the name is known it can be acquired anywhere.
21
- *
22
- * If you intend for your module to produce diagnostics data for others to
23
- * consume it is recommended that you include documentation of what named
24
- * channels are used along with the shape of the message data. Channel names
25
- * should generally include the module name to avoid collisions with data from
26
- * other modules.
27
- * @experimental
28
- * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/diagnostics_channel.js)
29
- */
30
- export interface DiagnosticsChannel {
31
- /**
32
- * Check if there are active subscribers to the named channel. This is helpful if
33
- * the message you want to send might be expensive to prepare.
34
- *
35
- * This API is optional but helpful when trying to publish messages from very
36
- * performance-sensitive code.
37
- *
38
- * ```js
39
- * import diagnostics_channel from 'diagnostics_channel';
40
- *
41
- * if (diagnostics_channel.hasSubscribers('my-channel')) {
42
- * // There are subscribers, prepare and publish message
43
- * }
44
- * ```
45
- * @since v15.1.0, v14.17.0
46
- * @param name The channel name
47
- * @return If there are active subscribers
48
- */
49
- hasSubscribers(name: string | symbol): boolean;
50
- /**
51
- * This is the primary entry-point for anyone wanting to interact with a named
52
- * channel. It produces a channel object which is optimized to reduce overhead at
53
- * publish time as much as possible.
54
- *
55
- * ```js
56
- * import diagnostics_channel from 'diagnostics_channel';
57
- *
58
- * const channel = diagnostics_channel.channel('my-channel');
59
- * ```
60
- * @since v15.1.0, v14.17.0
61
- * @param name The channel name
62
- * @return The named channel object
63
- */
64
- channel(name: string | symbol): Channel;
65
- /**
66
- * Register a message handler to subscribe to this channel. This message handler will be run synchronously
67
- * whenever a message is published to the channel. Any errors thrown in the message handler will
68
- * trigger an 'uncaughtException'.
69
- *
70
- * ```js
71
- * import diagnostics_channel from 'diagnostics_channel';
72
- *
73
- * diagnostics_channel.subscribe('my-channel', (message, name) => {
74
- * // Received data
75
- * });
76
- * ```
77
- *
78
- * @since v18.7.0, v16.17.0
79
- * @param name The channel name
80
- * @param onMessage The handler to receive channel messages
81
- */
82
- subscribe(name: string | symbol, onMessage: ChannelListener): void;
83
- /**
84
- * Remove a message handler previously registered to this channel with diagnostics_channel.subscribe(name, onMessage).
85
- *
86
- * ```js
87
- * import diagnostics_channel from 'diagnostics_channel';
88
- *
89
- * function onMessage(message, name) {
90
- * // Received data
91
- * }
92
- *
93
- * diagnostics_channel.subscribe('my-channel', onMessage);
94
- *
95
- * diagnostics_channel.unsubscribe('my-channel', onMessage);
96
- * ```
97
- *
98
- * @since v18.7.0, v16.17.0
99
- * @param name The channel name
100
- * @param onMessage The previous subscribed handler to remove
101
- * @returns `true` if the handler was found, `false` otherwise
102
- */
103
- unsubscribe(name: string | symbol, onMessage: ChannelListener): boolean;
104
- }
105
- /**
106
- * The class `Channel` represents an individual named channel within the data
107
- * pipeline. It is use to track subscribers and to publish messages when there
108
- * are subscribers present. It exists as a separate object to avoid channel
109
- * lookups at publish time, enabling very fast publish speeds and allowing
110
- * for heavy use while incurring very minimal cost. Channels are created with {@link channel}, constructing a channel directly
111
- * with `new Channel(name)` is not supported.
112
- * @since v15.1.0, v14.17.0
113
- */
114
- interface ChannelI {
115
- readonly name: string | symbol;
116
- /**
117
- * Check if there are active subscribers to this channel. This is helpful if
118
- * the message you want to send might be expensive to prepare.
119
- *
120
- * This API is optional but helpful when trying to publish messages from very
121
- * performance-sensitive code.
122
- *
123
- * ```js
124
- * import diagnostics_channel from 'diagnostics_channel';
125
- *
126
- * const channel = diagnostics_channel.channel('my-channel');
127
- *
128
- * if (channel.hasSubscribers) {
129
- * // There are subscribers, prepare and publish message
130
- * }
131
- * ```
132
- * @since v15.1.0, v14.17.0
133
- */
134
- readonly hasSubscribers: boolean;
135
- /**
136
- * Publish a message to any subscribers to the channel. This will
137
- * trigger message handlers synchronously so they will execute within
138
- * the same context.
139
- *
140
- * ```js
141
- * import diagnostics_channel from 'diagnostics_channel';
142
- *
143
- * const channel = diagnostics_channel.channel('my-channel');
144
- *
145
- * channel.publish({
146
- * some: 'message'
147
- * });
148
- * ```
149
- * @since v15.1.0, v14.17.0
150
- * @param message The message to send to the channel subscribers
151
- */
152
- publish(message: unknown): void;
153
- /**
154
- * Register a message handler to subscribe to this channel. This message handler
155
- * will be run synchronously whenever a message is published to the channel. Any
156
- * errors thrown in the message handler will trigger an `'uncaughtException'`.
157
- *
158
- * ```js
159
- * import diagnostics_channel from 'diagnostics_channel';
160
- *
161
- * const channel = diagnostics_channel.channel('my-channel');
162
- *
163
- * channel.subscribe((message, name) => {
164
- * // Received data
165
- * });
166
- * ```
167
- * @since v15.1.0, v14.17.0
168
- * @param onMessage The handler to receive channel messages
169
- */
170
- subscribe(onMessage: ChannelListener): void;
171
- /**
172
- * Remove a message handler previously registered to this channel with `channel.subscribe(onMessage)`.
173
- *
174
- * ```js
175
- * import diagnostics_channel from 'diagnostics_channel';
176
- *
177
- * const channel = diagnostics_channel.channel('my-channel');
178
- *
179
- * function onMessage(message, name) {
180
- * // Received data
181
- * }
182
- *
183
- * channel.subscribe(onMessage);
184
- *
185
- * channel.unsubscribe(onMessage);
186
- * ```
187
- * @since v15.1.0, v14.17.0
188
- * @param onMessage The previous subscribed handler to remove
189
- * @return `true` if the handler was found, `false` otherwise.
190
- */
191
- unsubscribe(onMessage: ChannelListener): void;
192
- }
193
- export interface Channel extends ChannelI {
194
- new (name: string | symbol): void;
195
- }
196
- export interface UndiciRequest {
197
- origin?: string | URL;
198
- completed: boolean;
199
- method?: string;
200
- path: string;
201
- headers: string;
202
- addHeader(key: string, value: string): RequestWithSentry;
203
- }
204
- export interface UndiciResponse {
205
- statusCode: number;
206
- statusText: string;
207
- headers: Array<Buffer>;
208
- }
209
- export interface RequestWithSentry extends UndiciRequest {
210
- __sentry_span__?: Span;
211
- }
212
- export interface RequestCreateMessage {
213
- request: RequestWithSentry;
214
- }
215
- export interface RequestEndMessage {
216
- request: RequestWithSentry;
217
- response: UndiciResponse;
218
- }
219
- export interface RequestErrorMessage {
220
- request: RequestWithSentry;
221
- error: Error;
222
- }
223
- export {};
224
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/integrations/undici/types.ts"],"names":[],"mappings":";;AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAoB1C,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;AAEhF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;;;;;;;;;OAiBG;IACH,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAC/C;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACxC;;;;;;;;;;;;;;;;OAgBG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,SAAS,EAAE,eAAe,GAAG,IAAI,CAAC;IACnE;;;;;;;;;;;;;;;;;;;OAmBG;IACH,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,SAAS,EAAE,eAAe,GAAG,OAAO,CAAC;CACzE;AAED;;;;;;;;GAQG;AACH,UAAU,QAAQ;IAChB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B;;;;;;;;;;;;;;;;;OAiBG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":"","sources":["../../../../src/integrations/utils/errorhandling.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CA4BpD"}
@@ -1,70 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- /// <reference types="node" />
4
- import type * as http from 'http';
5
- import type * as https from 'https';
6
- import { URL } from 'url';
7
- /**
8
- * Assembles a URL that's passed to the users to filter on.
9
- * It can include raw (potentially PII containing) data, which we'll allow users to access to filter
10
- * but won't include in spans or breadcrumbs.
11
- *
12
- * @param requestOptions RequestOptions object containing the component parts for a URL
13
- * @returns Fully-formed URL
14
- */
15
- export declare function extractRawUrl(requestOptions: RequestOptions): string;
16
- /**
17
- * Assemble a URL to be used for breadcrumbs and spans.
18
- *
19
- * @param requestOptions RequestOptions object containing the component parts for a URL
20
- * @returns Fully-formed URL
21
- */
22
- export declare function extractUrl(requestOptions: RequestOptions): string;
23
- /**
24
- * Handle various edge cases in the span description (for spans representing http(s) requests).
25
- *
26
- * @param description current `description` property of the span representing the request
27
- * @param requestOptions Configuration data for the request
28
- * @param Request Request object
29
- *
30
- * @returns The cleaned description
31
- */
32
- export declare function cleanSpanDescription(description: string | undefined, requestOptions: RequestOptions, request: http.ClientRequest): string | undefined;
33
- export type RequestOptions = http.RequestOptions & {
34
- hash?: string;
35
- search?: string;
36
- pathname?: string;
37
- href?: string;
38
- };
39
- type RequestCallback = (response: http.IncomingMessage) => void;
40
- export type RequestMethodArgs = [RequestOptions | string | URL, RequestCallback?] | [string | URL, RequestOptions, RequestCallback?];
41
- export type RequestMethod = (...args: RequestMethodArgs) => http.ClientRequest;
42
- /**
43
- * Convert a URL object into a RequestOptions object.
44
- *
45
- * Copied from Node's internals (where it's used in http(s).request() and http(s).get()), modified only to use the
46
- * RequestOptions type above.
47
- *
48
- * See https://github.com/nodejs/node/blob/master/lib/internal/url.js.
49
- */
50
- export declare function urlToOptions(url: URL): RequestOptions;
51
- /**
52
- * Normalize inputs to `http(s).request()` and `http(s).get()`.
53
- *
54
- * Legal inputs to `http(s).request()` and `http(s).get()` can take one of ten forms:
55
- * [ RequestOptions | string | URL ],
56
- * [ RequestOptions | string | URL, RequestCallback ],
57
- * [ string | URL, RequestOptions ], and
58
- * [ string | URL, RequestOptions, RequestCallback ].
59
- *
60
- * This standardizes to one of two forms: [ RequestOptions ] and [ RequestOptions, RequestCallback ]. A similar thing is
61
- * done as the first step of `http(s).request()` and `http(s).get()`; this just does it early so that we can interact
62
- * with the args in a standard way.
63
- *
64
- * @param requestArgs The inputs to `http(s).request()` or `http(s).get()`, as an array.
65
- *
66
- * @returns Equivalent args of the form [ RequestOptions ] or [ RequestOptions, RequestCallback ].
67
- */
68
- export declare function normalizeRequestArgs(httpModule: typeof http | typeof https, requestArgs: RequestMethodArgs): [RequestOptions] | [RequestOptions, RequestCallback];
69
- export {};
70
- //# sourceMappingURL=http.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../../src/integrations/utils/http.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAAK,KAAK,IAAI,MAAM,MAAM,CAAC;AAClC,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI1B;;;;;;;GAOG;AAEH,wBAAgB,aAAa,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAIpE;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CASjE;AAOD;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,IAAI,CAAC,aAAa,GAC1B,MAAM,GAAG,SAAS,CAwBpB;AAGD,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACxH,KAAK,eAAe,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,eAAe,KAAK,IAAI,CAAC;AAChE,MAAM,MAAM,iBAAiB,GACzB,CAAC,cAAc,GAAG,MAAM,GAAG,GAAG,EAAE,eAAe,CAAC,CAAC,GACjD,CAAC,MAAM,GAAG,GAAG,EAAE,cAAc,EAAE,eAAe,CAAC,CAAC,CAAC;AACrD,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC,aAAa,CAAC;AAE/E;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,cAAc,CAkBrD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,OAAO,IAAI,GAAG,OAAO,KAAK,EACtC,WAAW,EAAE,iBAAiB,GAC7B,CAAC,cAAc,CAAC,GAAG,CAAC,cAAc,EAAE,eAAe,CAAC,CAmEtD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/module.ts"],"names":[],"mappings":"AAUA,mEAAmE;AACnE,wBAAgB,2BAA2B,CACzC,QAAQ,GAAE,MAAmE,EAC7E,SAAS,GAAE,OAAsB,GAChC,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM,GAAG,SAAS,CA0CtD"}
@@ -1,45 +0,0 @@
1
- /**
2
- * Deprecated functions which are slated for removal in v8. When the time comes, this entire file can be deleted.
3
- *
4
- * See https://github.com/getsentry/sentry-javascript/pull/5257.
5
- */
6
- import type { Event, ExtractedNodeRequestData, PolymorphicRequest } from '@sentry/types';
7
- import type { AddRequestDataToEventOptions } from '@sentry/utils';
8
- /**
9
- * @deprecated `Handlers.ExpressRequest` is deprecated and will be removed in v8. Use `PolymorphicRequest` instead.
10
- */
11
- export type ExpressRequest = PolymorphicRequest;
12
- /**
13
- * Normalizes data from the request object, accounting for framework differences.
14
- *
15
- * @deprecated `Handlers.extractRequestData` is deprecated and will be removed in v8. Use `extractRequestData` instead.
16
- *
17
- * @param req The request object from which to extract data
18
- * @param keys An optional array of keys to include in the normalized data.
19
- * @returns An object containing normalized request data
20
- */
21
- export declare function extractRequestData(req: {
22
- [key: string]: any;
23
- }, keys?: string[]): ExtractedNodeRequestData;
24
- /**
25
- * Options deciding what parts of the request to use when enhancing an event
26
- *
27
- * @deprecated `Handlers.ParseRequestOptions` is deprecated and will be removed in v8. Use
28
- * `AddRequestDataToEventOptions` in `@sentry/utils` instead.
29
- */
30
- export type ParseRequestOptions = AddRequestDataToEventOptions['include'] & {
31
- serverName?: boolean;
32
- version?: boolean;
33
- };
34
- /**
35
- * Enriches passed event with request data.
36
- *
37
- * @deprecated `Handlers.parseRequest` is deprecated and will be removed in v8. Use `addRequestDataToEvent` instead.
38
- *
39
- * @param event Will be mutated and enriched with req data
40
- * @param req Request object
41
- * @param options object containing flags to enable functionality
42
- * @hidden
43
- */
44
- export declare function parseRequest(event: Event, req: ExpressRequest, options?: ParseRequestOptions): Event;
45
- //# sourceMappingURL=requestDataDeprecated.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"requestDataDeprecated.d.ts","sourceRoot":"","sources":["../../src/requestDataDeprecated.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,KAAK,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACzF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAGlE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,kBAAkB,CAAC;AAEhD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,wBAAwB,CAEzG;AAED;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,4BAA4B,CAAC,SAAS,CAAC,GAAG;IAC1E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,cAAc,EAAE,OAAO,GAAE,mBAAwB,GAAG,KAAK,CAExG"}