@sentry/node 9.35.0 → 9.36.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 (474) hide show
  1. package/build/cjs/index.js +38 -56
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/integrations/fs.js +2 -2
  4. package/build/cjs/integrations/fs.js.map +1 -1
  5. package/build/cjs/integrations/http/index.js +7 -11
  6. package/build/cjs/integrations/http/index.js.map +1 -1
  7. package/build/cjs/integrations/node-fetch/index.js +4 -5
  8. package/build/cjs/integrations/node-fetch/index.js.map +1 -1
  9. package/build/cjs/integrations/tracing/amqplib.js +4 -5
  10. package/build/cjs/integrations/tracing/amqplib.js.map +1 -1
  11. package/build/cjs/integrations/tracing/connect.js +3 -4
  12. package/build/cjs/integrations/tracing/connect.js.map +1 -1
  13. package/build/cjs/integrations/tracing/dataloader.js +3 -3
  14. package/build/cjs/integrations/tracing/dataloader.js.map +1 -1
  15. package/build/cjs/integrations/tracing/express.js +5 -7
  16. package/build/cjs/integrations/tracing/express.js.map +1 -1
  17. package/build/cjs/integrations/tracing/fastify/fastify-otel/index.js +3 -3
  18. package/build/cjs/integrations/tracing/fastify/fastify-otel/index.js.map +1 -1
  19. package/build/cjs/integrations/tracing/fastify/index.js +6 -6
  20. package/build/cjs/integrations/tracing/fastify/index.js.map +1 -1
  21. package/build/cjs/integrations/tracing/genericPool.js +3 -3
  22. package/build/cjs/integrations/tracing/genericPool.js.map +1 -1
  23. package/build/cjs/integrations/tracing/graphql.js +3 -4
  24. package/build/cjs/integrations/tracing/graphql.js.map +1 -1
  25. package/build/cjs/integrations/tracing/hapi/index.js +3 -4
  26. package/build/cjs/integrations/tracing/hapi/index.js.map +1 -1
  27. package/build/cjs/integrations/tracing/kafka.js +4 -5
  28. package/build/cjs/integrations/tracing/kafka.js.map +1 -1
  29. package/build/cjs/integrations/tracing/knex.js +3 -3
  30. package/build/cjs/integrations/tracing/knex.js.map +1 -1
  31. package/build/cjs/integrations/tracing/koa.js +4 -6
  32. package/build/cjs/integrations/tracing/koa.js.map +1 -1
  33. package/build/cjs/integrations/tracing/lrumemoizer.js +2 -2
  34. package/build/cjs/integrations/tracing/lrumemoizer.js.map +1 -1
  35. package/build/cjs/integrations/tracing/mongo.js +3 -4
  36. package/build/cjs/integrations/tracing/mongo.js.map +1 -1
  37. package/build/cjs/integrations/tracing/mongoose.js +3 -4
  38. package/build/cjs/integrations/tracing/mongoose.js.map +1 -1
  39. package/build/cjs/integrations/tracing/mysql.js +2 -2
  40. package/build/cjs/integrations/tracing/mysql.js.map +1 -1
  41. package/build/cjs/integrations/tracing/mysql2.js +3 -4
  42. package/build/cjs/integrations/tracing/mysql2.js.map +1 -1
  43. package/build/cjs/integrations/tracing/postgres.js +3 -4
  44. package/build/cjs/integrations/tracing/postgres.js.map +1 -1
  45. package/build/cjs/integrations/tracing/postgresjs.js +3 -4
  46. package/build/cjs/integrations/tracing/postgresjs.js.map +1 -1
  47. package/build/cjs/integrations/tracing/prisma.js +2 -2
  48. package/build/cjs/integrations/tracing/prisma.js.map +1 -1
  49. package/build/cjs/integrations/tracing/redis.js +3 -3
  50. package/build/cjs/integrations/tracing/redis.js.map +1 -1
  51. package/build/cjs/integrations/tracing/tedious.js +3 -3
  52. package/build/cjs/integrations/tracing/tedious.js.map +1 -1
  53. package/build/cjs/integrations/tracing/vercelai/index.js +2 -2
  54. package/build/cjs/integrations/tracing/vercelai/index.js.map +1 -1
  55. package/build/cjs/preload.js +2 -2
  56. package/build/cjs/preload.js.map +1 -1
  57. package/build/cjs/sdk/index.js +22 -203
  58. package/build/cjs/sdk/index.js.map +1 -1
  59. package/build/cjs/sdk/initOtel.js +4 -22
  60. package/build/cjs/sdk/initOtel.js.map +1 -1
  61. package/build/esm/index.js +2 -21
  62. package/build/esm/index.js.map +1 -1
  63. package/build/esm/integrations/fs.js +1 -1
  64. package/build/esm/integrations/fs.js.map +1 -1
  65. package/build/esm/integrations/http/index.js +1 -5
  66. package/build/esm/integrations/http/index.js.map +1 -1
  67. package/build/esm/integrations/node-fetch/index.js +2 -3
  68. package/build/esm/integrations/node-fetch/index.js.map +1 -1
  69. package/build/esm/integrations/tracing/amqplib.js +1 -2
  70. package/build/esm/integrations/tracing/amqplib.js.map +1 -1
  71. package/build/esm/integrations/tracing/connect.js +1 -2
  72. package/build/esm/integrations/tracing/connect.js.map +1 -1
  73. package/build/esm/integrations/tracing/dataloader.js +1 -1
  74. package/build/esm/integrations/tracing/dataloader.js.map +1 -1
  75. package/build/esm/integrations/tracing/express.js +2 -4
  76. package/build/esm/integrations/tracing/express.js.map +1 -1
  77. package/build/esm/integrations/tracing/fastify/fastify-otel/index.js +3 -3
  78. package/build/esm/integrations/tracing/fastify/fastify-otel/index.js.map +1 -1
  79. package/build/esm/integrations/tracing/fastify/index.js +5 -5
  80. package/build/esm/integrations/tracing/fastify/index.js.map +1 -1
  81. package/build/esm/integrations/tracing/genericPool.js +1 -1
  82. package/build/esm/integrations/tracing/genericPool.js.map +1 -1
  83. package/build/esm/integrations/tracing/graphql.js +2 -3
  84. package/build/esm/integrations/tracing/graphql.js.map +1 -1
  85. package/build/esm/integrations/tracing/hapi/index.js +1 -2
  86. package/build/esm/integrations/tracing/hapi/index.js.map +1 -1
  87. package/build/esm/integrations/tracing/kafka.js +1 -2
  88. package/build/esm/integrations/tracing/kafka.js.map +1 -1
  89. package/build/esm/integrations/tracing/knex.js +1 -1
  90. package/build/esm/integrations/tracing/knex.js.map +1 -1
  91. package/build/esm/integrations/tracing/koa.js +2 -4
  92. package/build/esm/integrations/tracing/koa.js.map +1 -1
  93. package/build/esm/integrations/tracing/lrumemoizer.js +1 -1
  94. package/build/esm/integrations/tracing/lrumemoizer.js.map +1 -1
  95. package/build/esm/integrations/tracing/mongo.js +1 -2
  96. package/build/esm/integrations/tracing/mongo.js.map +1 -1
  97. package/build/esm/integrations/tracing/mongoose.js +1 -2
  98. package/build/esm/integrations/tracing/mongoose.js.map +1 -1
  99. package/build/esm/integrations/tracing/mysql.js +1 -1
  100. package/build/esm/integrations/tracing/mysql.js.map +1 -1
  101. package/build/esm/integrations/tracing/mysql2.js +1 -2
  102. package/build/esm/integrations/tracing/mysql2.js.map +1 -1
  103. package/build/esm/integrations/tracing/postgres.js +1 -2
  104. package/build/esm/integrations/tracing/postgres.js.map +1 -1
  105. package/build/esm/integrations/tracing/postgresjs.js +2 -3
  106. package/build/esm/integrations/tracing/postgresjs.js.map +1 -1
  107. package/build/esm/integrations/tracing/prisma.js +1 -1
  108. package/build/esm/integrations/tracing/prisma.js.map +1 -1
  109. package/build/esm/integrations/tracing/redis.js +1 -1
  110. package/build/esm/integrations/tracing/redis.js.map +1 -1
  111. package/build/esm/integrations/tracing/tedious.js +1 -1
  112. package/build/esm/integrations/tracing/tedious.js.map +1 -1
  113. package/build/esm/integrations/tracing/vercelai/index.js +1 -1
  114. package/build/esm/integrations/tracing/vercelai/index.js.map +1 -1
  115. package/build/esm/package.json +1 -1
  116. package/build/esm/preload.js +1 -1
  117. package/build/esm/preload.js.map +1 -1
  118. package/build/esm/sdk/index.js +22 -202
  119. package/build/esm/sdk/index.js.map +1 -1
  120. package/build/esm/sdk/initOtel.js +3 -21
  121. package/build/esm/sdk/initOtel.js.map +1 -1
  122. package/build/types/index.d.ts +2 -21
  123. package/build/types/index.d.ts.map +1 -1
  124. package/build/types/integrations/http/index.d.ts +1 -1
  125. package/build/types/integrations/http/index.d.ts.map +1 -1
  126. package/build/types/integrations/node-fetch/index.d.ts.map +1 -1
  127. package/build/types/integrations/tracing/amqplib.d.ts.map +1 -1
  128. package/build/types/integrations/tracing/connect.d.ts.map +1 -1
  129. package/build/types/integrations/tracing/express.d.ts.map +1 -1
  130. package/build/types/integrations/tracing/graphql.d.ts.map +1 -1
  131. package/build/types/integrations/tracing/hapi/index.d.ts.map +1 -1
  132. package/build/types/integrations/tracing/kafka.d.ts.map +1 -1
  133. package/build/types/integrations/tracing/koa.d.ts.map +1 -1
  134. package/build/types/integrations/tracing/mongo.d.ts.map +1 -1
  135. package/build/types/integrations/tracing/mongoose.d.ts.map +1 -1
  136. package/build/types/integrations/tracing/mysql2.d.ts.map +1 -1
  137. package/build/types/integrations/tracing/postgres.d.ts.map +1 -1
  138. package/build/types/integrations/tracing/postgresjs.d.ts.map +1 -1
  139. package/build/types/integrations/tracing/vercelai/index.d.ts.map +1 -1
  140. package/build/types/sdk/index.d.ts +2 -6
  141. package/build/types/sdk/index.d.ts.map +1 -1
  142. package/build/types/sdk/initOtel.d.ts +1 -1
  143. package/build/types/sdk/initOtel.d.ts.map +1 -1
  144. package/build/types/types.d.ts +1 -1
  145. package/build/types/types.d.ts.map +1 -1
  146. package/build/types-ts3.8/index.d.ts +2 -21
  147. package/build/types-ts3.8/integrations/http/index.d.ts +1 -1
  148. package/build/types-ts3.8/sdk/index.d.ts +2 -6
  149. package/build/types-ts3.8/sdk/initOtel.d.ts +1 -1
  150. package/build/types-ts3.8/types.d.ts +1 -1
  151. package/package.json +4 -3
  152. package/build/cjs/cron/common.js +0 -56
  153. package/build/cjs/cron/common.js.map +0 -1
  154. package/build/cjs/cron/cron.js +0 -112
  155. package/build/cjs/cron/cron.js.map +0 -1
  156. package/build/cjs/cron/index.js +0 -15
  157. package/build/cjs/cron/index.js.map +0 -1
  158. package/build/cjs/cron/node-cron.js +0 -71
  159. package/build/cjs/cron/node-cron.js.map +0 -1
  160. package/build/cjs/cron/node-schedule.js +0 -65
  161. package/build/cjs/cron/node-schedule.js.map +0 -1
  162. package/build/cjs/integrations/anr/index.js +0 -238
  163. package/build/cjs/integrations/anr/index.js.map +0 -1
  164. package/build/cjs/integrations/childProcess.js +0 -100
  165. package/build/cjs/integrations/childProcess.js.map +0 -1
  166. package/build/cjs/integrations/context.js +0 -457
  167. package/build/cjs/integrations/context.js.map +0 -1
  168. package/build/cjs/integrations/contextlines.js +0 -405
  169. package/build/cjs/integrations/contextlines.js.map +0 -1
  170. package/build/cjs/integrations/http/SentryHttpInstrumentation.js +0 -558
  171. package/build/cjs/integrations/http/SentryHttpInstrumentation.js.map +0 -1
  172. package/build/cjs/integrations/local-variables/common.js +0 -69
  173. package/build/cjs/integrations/local-variables/common.js.map +0 -1
  174. package/build/cjs/integrations/local-variables/index.js +0 -12
  175. package/build/cjs/integrations/local-variables/index.js.map +0 -1
  176. package/build/cjs/integrations/local-variables/local-variables-async.js +0 -143
  177. package/build/cjs/integrations/local-variables/local-variables-async.js.map +0 -1
  178. package/build/cjs/integrations/local-variables/local-variables-sync.js +0 -410
  179. package/build/cjs/integrations/local-variables/local-variables-sync.js.map +0 -1
  180. package/build/cjs/integrations/modules.js +0 -135
  181. package/build/cjs/integrations/modules.js.map +0 -1
  182. package/build/cjs/integrations/node-fetch/SentryNodeFetchInstrumentation.js +0 -291
  183. package/build/cjs/integrations/node-fetch/SentryNodeFetchInstrumentation.js.map +0 -1
  184. package/build/cjs/integrations/onuncaughtexception.js +0 -134
  185. package/build/cjs/integrations/onuncaughtexception.js.map +0 -1
  186. package/build/cjs/integrations/onunhandledrejection.js +0 -89
  187. package/build/cjs/integrations/onunhandledrejection.js.map +0 -1
  188. package/build/cjs/integrations/processSession.js +0 -36
  189. package/build/cjs/integrations/processSession.js.map +0 -1
  190. package/build/cjs/integrations/spotlight.js +0 -101
  191. package/build/cjs/integrations/spotlight.js.map +0 -1
  192. package/build/cjs/integrations/winston.js +0 -151
  193. package/build/cjs/integrations/winston.js.map +0 -1
  194. package/build/cjs/logs/capture.js +0 -29
  195. package/build/cjs/logs/capture.js.map +0 -1
  196. package/build/cjs/logs/exports.js +0 -178
  197. package/build/cjs/logs/exports.js.map +0 -1
  198. package/build/cjs/nodeVersion.js +0 -12
  199. package/build/cjs/nodeVersion.js.map +0 -1
  200. package/build/cjs/otel/contextManager.js +0 -16
  201. package/build/cjs/otel/contextManager.js.map +0 -1
  202. package/build/cjs/otel/instrument.js +0 -139
  203. package/build/cjs/otel/instrument.js.map +0 -1
  204. package/build/cjs/proxy/base.js +0 -122
  205. package/build/cjs/proxy/base.js.map +0 -1
  206. package/build/cjs/proxy/index.js +0 -173
  207. package/build/cjs/proxy/index.js.map +0 -1
  208. package/build/cjs/proxy/parse-proxy-response.js +0 -104
  209. package/build/cjs/proxy/parse-proxy-response.js.map +0 -1
  210. package/build/cjs/sdk/api.js +0 -117
  211. package/build/cjs/sdk/api.js.map +0 -1
  212. package/build/cjs/sdk/client.js +0 -156
  213. package/build/cjs/sdk/client.js.map +0 -1
  214. package/build/cjs/transports/http.js +0 -158
  215. package/build/cjs/transports/http.js.map +0 -1
  216. package/build/cjs/utils/addOriginToSpan.js +0 -11
  217. package/build/cjs/utils/addOriginToSpan.js.map +0 -1
  218. package/build/cjs/utils/baggage.js +0 -36
  219. package/build/cjs/utils/baggage.js.map +0 -1
  220. package/build/cjs/utils/commonjs.js +0 -13
  221. package/build/cjs/utils/commonjs.js.map +0 -1
  222. package/build/cjs/utils/createMissingInstrumentationContext.js +0 -11
  223. package/build/cjs/utils/createMissingInstrumentationContext.js.map +0 -1
  224. package/build/cjs/utils/debug.js +0 -23
  225. package/build/cjs/utils/debug.js.map +0 -1
  226. package/build/cjs/utils/ensureIsWrapped.js +0 -41
  227. package/build/cjs/utils/ensureIsWrapped.js.map +0 -1
  228. package/build/cjs/utils/envToBool.js +0 -32
  229. package/build/cjs/utils/envToBool.js.map +0 -1
  230. package/build/cjs/utils/errorhandling.js +0 -42
  231. package/build/cjs/utils/errorhandling.js.map +0 -1
  232. package/build/cjs/utils/getRequestUrl.js +0 -18
  233. package/build/cjs/utils/getRequestUrl.js.map +0 -1
  234. package/build/cjs/utils/module.js +0 -60
  235. package/build/cjs/utils/module.js.map +0 -1
  236. package/build/esm/cron/common.js +0 -54
  237. package/build/esm/cron/common.js.map +0 -1
  238. package/build/esm/cron/cron.js +0 -110
  239. package/build/esm/cron/cron.js.map +0 -1
  240. package/build/esm/cron/index.js +0 -13
  241. package/build/esm/cron/index.js.map +0 -1
  242. package/build/esm/cron/node-cron.js +0 -69
  243. package/build/esm/cron/node-cron.js.map +0 -1
  244. package/build/esm/cron/node-schedule.js +0 -63
  245. package/build/esm/cron/node-schedule.js.map +0 -1
  246. package/build/esm/integrations/anr/index.js +0 -234
  247. package/build/esm/integrations/anr/index.js.map +0 -1
  248. package/build/esm/integrations/anr/worker-script.js +0 -2
  249. package/build/esm/integrations/childProcess.js +0 -98
  250. package/build/esm/integrations/childProcess.js.map +0 -1
  251. package/build/esm/integrations/context.js +0 -451
  252. package/build/esm/integrations/context.js.map +0 -1
  253. package/build/esm/integrations/contextlines.js +0 -399
  254. package/build/esm/integrations/contextlines.js.map +0 -1
  255. package/build/esm/integrations/http/SentryHttpInstrumentation.js +0 -555
  256. package/build/esm/integrations/http/SentryHttpInstrumentation.js.map +0 -1
  257. package/build/esm/integrations/local-variables/common.js +0 -64
  258. package/build/esm/integrations/local-variables/common.js.map +0 -1
  259. package/build/esm/integrations/local-variables/index.js +0 -10
  260. package/build/esm/integrations/local-variables/index.js.map +0 -1
  261. package/build/esm/integrations/local-variables/local-variables-async.js +0 -140
  262. package/build/esm/integrations/local-variables/local-variables-async.js.map +0 -1
  263. package/build/esm/integrations/local-variables/local-variables-sync.js +0 -405
  264. package/build/esm/integrations/local-variables/local-variables-sync.js.map +0 -1
  265. package/build/esm/integrations/local-variables/worker-script.js +0 -2
  266. package/build/esm/integrations/modules.js +0 -133
  267. package/build/esm/integrations/modules.js.map +0 -1
  268. package/build/esm/integrations/node-fetch/SentryNodeFetchInstrumentation.js +0 -289
  269. package/build/esm/integrations/node-fetch/SentryNodeFetchInstrumentation.js.map +0 -1
  270. package/build/esm/integrations/onuncaughtexception.js +0 -131
  271. package/build/esm/integrations/onuncaughtexception.js.map +0 -1
  272. package/build/esm/integrations/onunhandledrejection.js +0 -86
  273. package/build/esm/integrations/onunhandledrejection.js.map +0 -1
  274. package/build/esm/integrations/processSession.js +0 -34
  275. package/build/esm/integrations/processSession.js.map +0 -1
  276. package/build/esm/integrations/spotlight.js +0 -98
  277. package/build/esm/integrations/spotlight.js.map +0 -1
  278. package/build/esm/integrations/winston.js +0 -149
  279. package/build/esm/integrations/winston.js.map +0 -1
  280. package/build/esm/logs/capture.js +0 -27
  281. package/build/esm/logs/capture.js.map +0 -1
  282. package/build/esm/logs/exports.js +0 -170
  283. package/build/esm/logs/exports.js.map +0 -1
  284. package/build/esm/nodeVersion.js +0 -8
  285. package/build/esm/nodeVersion.js.map +0 -1
  286. package/build/esm/otel/contextManager.js +0 -14
  287. package/build/esm/otel/contextManager.js.map +0 -1
  288. package/build/esm/otel/instrument.js +0 -135
  289. package/build/esm/otel/instrument.js.map +0 -1
  290. package/build/esm/proxy/base.js +0 -120
  291. package/build/esm/proxy/base.js.map +0 -1
  292. package/build/esm/proxy/index.js +0 -171
  293. package/build/esm/proxy/index.js.map +0 -1
  294. package/build/esm/proxy/parse-proxy-response.js +0 -102
  295. package/build/esm/proxy/parse-proxy-response.js.map +0 -1
  296. package/build/esm/sdk/api.js +0 -114
  297. package/build/esm/sdk/api.js.map +0 -1
  298. package/build/esm/sdk/client.js +0 -154
  299. package/build/esm/sdk/client.js.map +0 -1
  300. package/build/esm/transports/http.js +0 -156
  301. package/build/esm/transports/http.js.map +0 -1
  302. package/build/esm/utils/addOriginToSpan.js +0 -9
  303. package/build/esm/utils/addOriginToSpan.js.map +0 -1
  304. package/build/esm/utils/baggage.js +0 -34
  305. package/build/esm/utils/baggage.js.map +0 -1
  306. package/build/esm/utils/commonjs.js +0 -11
  307. package/build/esm/utils/commonjs.js.map +0 -1
  308. package/build/esm/utils/createMissingInstrumentationContext.js +0 -9
  309. package/build/esm/utils/createMissingInstrumentationContext.js.map +0 -1
  310. package/build/esm/utils/debug.js +0 -21
  311. package/build/esm/utils/debug.js.map +0 -1
  312. package/build/esm/utils/ensureIsWrapped.js +0 -39
  313. package/build/esm/utils/ensureIsWrapped.js.map +0 -1
  314. package/build/esm/utils/envToBool.js +0 -28
  315. package/build/esm/utils/envToBool.js.map +0 -1
  316. package/build/esm/utils/errorhandling.js +0 -40
  317. package/build/esm/utils/errorhandling.js.map +0 -1
  318. package/build/esm/utils/getRequestUrl.js +0 -16
  319. package/build/esm/utils/getRequestUrl.js.map +0 -1
  320. package/build/esm/utils/module.js +0 -58
  321. package/build/esm/utils/module.js.map +0 -1
  322. package/build/types/cron/common.d.ts +0 -5
  323. package/build/types/cron/common.d.ts.map +0 -1
  324. package/build/types/cron/cron.d.ts +0 -43
  325. package/build/types/cron/cron.d.ts.map +0 -1
  326. package/build/types/cron/index.d.ts +0 -10
  327. package/build/types/cron/index.d.ts.map +0 -1
  328. package/build/types/cron/node-cron.d.ts +0 -27
  329. package/build/types/cron/node-cron.d.ts.map +0 -1
  330. package/build/types/cron/node-schedule.d.ts +0 -19
  331. package/build/types/cron/node-schedule.d.ts.map +0 -1
  332. package/build/types/integrations/anr/common.d.ts +0 -52
  333. package/build/types/integrations/anr/common.d.ts.map +0 -1
  334. package/build/types/integrations/anr/index.d.ts +0 -13
  335. package/build/types/integrations/anr/index.d.ts.map +0 -1
  336. package/build/types/integrations/anr/worker.d.ts +0 -2
  337. package/build/types/integrations/anr/worker.d.ts.map +0 -1
  338. package/build/types/integrations/childProcess.d.ts +0 -20
  339. package/build/types/integrations/childProcess.d.ts.map +0 -1
  340. package/build/types/integrations/context.d.ts +0 -30
  341. package/build/types/integrations/context.d.ts.map +0 -1
  342. package/build/types/integrations/contextlines.d.ts +0 -31
  343. package/build/types/integrations/contextlines.d.ts.map +0 -1
  344. package/build/types/integrations/http/SentryHttpInstrumentation.d.ts +0 -131
  345. package/build/types/integrations/http/SentryHttpInstrumentation.d.ts.map +0 -1
  346. package/build/types/integrations/local-variables/common.d.ts +0 -66
  347. package/build/types/integrations/local-variables/common.d.ts.map +0 -1
  348. package/build/types/integrations/local-variables/index.d.ts +0 -4
  349. package/build/types/integrations/local-variables/index.d.ts.map +0 -1
  350. package/build/types/integrations/local-variables/local-variables-async.d.ts +0 -7
  351. package/build/types/integrations/local-variables/local-variables-async.d.ts.map +0 -1
  352. package/build/types/integrations/local-variables/local-variables-sync.d.ts +0 -34
  353. package/build/types/integrations/local-variables/local-variables-sync.d.ts.map +0 -1
  354. package/build/types/integrations/local-variables/worker.d.ts +0 -2
  355. package/build/types/integrations/local-variables/worker.d.ts.map +0 -1
  356. package/build/types/integrations/modules.d.ts +0 -17
  357. package/build/types/integrations/modules.d.ts.map +0 -1
  358. package/build/types/integrations/node-fetch/SentryNodeFetchInstrumentation.d.ts +0 -56
  359. package/build/types/integrations/node-fetch/SentryNodeFetchInstrumentation.d.ts.map +0 -1
  360. package/build/types/integrations/onuncaughtexception.d.ts +0 -31
  361. package/build/types/integrations/onuncaughtexception.d.ts.map +0 -1
  362. package/build/types/integrations/onunhandledrejection.d.ts +0 -23
  363. package/build/types/integrations/onunhandledrejection.d.ts.map +0 -1
  364. package/build/types/integrations/processSession.d.ts +0 -5
  365. package/build/types/integrations/processSession.d.ts.map +0 -1
  366. package/build/types/integrations/spotlight.d.ts +0 -18
  367. package/build/types/integrations/spotlight.d.ts.map +0 -1
  368. package/build/types/integrations/winston.d.ts +0 -44
  369. package/build/types/integrations/winston.d.ts.map +0 -1
  370. package/build/types/logs/capture.d.ts +0 -11
  371. package/build/types/logs/capture.d.ts.map +0 -1
  372. package/build/types/logs/exports.d.ts +0 -150
  373. package/build/types/logs/exports.d.ts.map +0 -1
  374. package/build/types/nodeVersion.d.ts +0 -8
  375. package/build/types/nodeVersion.d.ts.map +0 -1
  376. package/build/types/otel/contextManager.d.ts +0 -10
  377. package/build/types/otel/contextManager.d.ts.map +0 -1
  378. package/build/types/otel/instrument.d.ts +0 -23
  379. package/build/types/otel/instrument.d.ts.map +0 -1
  380. package/build/types/proxy/base.d.ts +0 -65
  381. package/build/types/proxy/base.d.ts.map +0 -1
  382. package/build/types/proxy/helpers.d.ts +0 -42
  383. package/build/types/proxy/helpers.d.ts.map +0 -1
  384. package/build/types/proxy/index.d.ts +0 -73
  385. package/build/types/proxy/index.d.ts.map +0 -1
  386. package/build/types/proxy/parse-proxy-response.d.ts +0 -43
  387. package/build/types/proxy/parse-proxy-response.d.ts.map +0 -1
  388. package/build/types/sdk/api.d.ts +0 -8
  389. package/build/types/sdk/api.d.ts.map +0 -1
  390. package/build/types/sdk/client.d.ts +0 -29
  391. package/build/types/sdk/client.d.ts.map +0 -1
  392. package/build/types/sdk/scope.d.ts +0 -7
  393. package/build/types/sdk/scope.d.ts.map +0 -1
  394. package/build/types/transports/http-module.d.ts +0 -31
  395. package/build/types/transports/http-module.d.ts.map +0 -1
  396. package/build/types/transports/http.d.ts +0 -21
  397. package/build/types/transports/http.d.ts.map +0 -1
  398. package/build/types/transports/index.d.ts +0 -3
  399. package/build/types/transports/index.d.ts.map +0 -1
  400. package/build/types/utils/addOriginToSpan.d.ts +0 -5
  401. package/build/types/utils/addOriginToSpan.d.ts.map +0 -1
  402. package/build/types/utils/baggage.d.ts +0 -6
  403. package/build/types/utils/baggage.d.ts.map +0 -1
  404. package/build/types/utils/commonjs.d.ts +0 -3
  405. package/build/types/utils/commonjs.d.ts.map +0 -1
  406. package/build/types/utils/createMissingInstrumentationContext.d.ts +0 -3
  407. package/build/types/utils/createMissingInstrumentationContext.d.ts.map +0 -1
  408. package/build/types/utils/debug.d.ts +0 -5
  409. package/build/types/utils/debug.d.ts.map +0 -1
  410. package/build/types/utils/ensureIsWrapped.d.ts +0 -5
  411. package/build/types/utils/ensureIsWrapped.d.ts.map +0 -1
  412. package/build/types/utils/entry-point.d.ts +0 -24
  413. package/build/types/utils/entry-point.d.ts.map +0 -1
  414. package/build/types/utils/envToBool.d.ts +0 -13
  415. package/build/types/utils/envToBool.d.ts.map +0 -1
  416. package/build/types/utils/errorhandling.d.ts +0 -5
  417. package/build/types/utils/errorhandling.d.ts.map +0 -1
  418. package/build/types/utils/getRequestUrl.d.ts +0 -5
  419. package/build/types/utils/getRequestUrl.d.ts.map +0 -1
  420. package/build/types/utils/module.d.ts +0 -3
  421. package/build/types/utils/module.d.ts.map +0 -1
  422. package/build/types/utils/prepareEvent.d.ts +0 -17
  423. package/build/types/utils/prepareEvent.d.ts.map +0 -1
  424. package/build/types-ts3.8/cron/common.d.ts +0 -5
  425. package/build/types-ts3.8/cron/cron.d.ts +0 -43
  426. package/build/types-ts3.8/cron/index.d.ts +0 -10
  427. package/build/types-ts3.8/cron/node-cron.d.ts +0 -27
  428. package/build/types-ts3.8/cron/node-schedule.d.ts +0 -19
  429. package/build/types-ts3.8/integrations/anr/common.d.ts +0 -52
  430. package/build/types-ts3.8/integrations/anr/index.d.ts +0 -13
  431. package/build/types-ts3.8/integrations/anr/worker.d.ts +0 -2
  432. package/build/types-ts3.8/integrations/childProcess.d.ts +0 -20
  433. package/build/types-ts3.8/integrations/context.d.ts +0 -30
  434. package/build/types-ts3.8/integrations/contextlines.d.ts +0 -31
  435. package/build/types-ts3.8/integrations/http/SentryHttpInstrumentation.d.ts +0 -133
  436. package/build/types-ts3.8/integrations/local-variables/common.d.ts +0 -66
  437. package/build/types-ts3.8/integrations/local-variables/index.d.ts +0 -4
  438. package/build/types-ts3.8/integrations/local-variables/local-variables-async.d.ts +0 -7
  439. package/build/types-ts3.8/integrations/local-variables/local-variables-sync.d.ts +0 -34
  440. package/build/types-ts3.8/integrations/local-variables/worker.d.ts +0 -2
  441. package/build/types-ts3.8/integrations/modules.d.ts +0 -17
  442. package/build/types-ts3.8/integrations/node-fetch/SentryNodeFetchInstrumentation.d.ts +0 -56
  443. package/build/types-ts3.8/integrations/onuncaughtexception.d.ts +0 -31
  444. package/build/types-ts3.8/integrations/onunhandledrejection.d.ts +0 -23
  445. package/build/types-ts3.8/integrations/processSession.d.ts +0 -5
  446. package/build/types-ts3.8/integrations/spotlight.d.ts +0 -18
  447. package/build/types-ts3.8/integrations/winston.d.ts +0 -44
  448. package/build/types-ts3.8/logs/capture.d.ts +0 -18
  449. package/build/types-ts3.8/logs/exports.d.ts +0 -150
  450. package/build/types-ts3.8/nodeVersion.d.ts +0 -8
  451. package/build/types-ts3.8/otel/contextManager.d.ts +0 -10
  452. package/build/types-ts3.8/otel/instrument.d.ts +0 -23
  453. package/build/types-ts3.8/proxy/base.d.ts +0 -60
  454. package/build/types-ts3.8/proxy/helpers.d.ts +0 -38
  455. package/build/types-ts3.8/proxy/index.d.ts +0 -74
  456. package/build/types-ts3.8/proxy/parse-proxy-response.d.ts +0 -40
  457. package/build/types-ts3.8/sdk/api.d.ts +0 -8
  458. package/build/types-ts3.8/sdk/client.d.ts +0 -32
  459. package/build/types-ts3.8/sdk/scope.d.ts +0 -7
  460. package/build/types-ts3.8/transports/http-module.d.ts +0 -28
  461. package/build/types-ts3.8/transports/http.d.ts +0 -20
  462. package/build/types-ts3.8/transports/index.d.ts +0 -3
  463. package/build/types-ts3.8/utils/addOriginToSpan.d.ts +0 -5
  464. package/build/types-ts3.8/utils/baggage.d.ts +0 -6
  465. package/build/types-ts3.8/utils/commonjs.d.ts +0 -3
  466. package/build/types-ts3.8/utils/createMissingInstrumentationContext.d.ts +0 -3
  467. package/build/types-ts3.8/utils/debug.d.ts +0 -5
  468. package/build/types-ts3.8/utils/ensureIsWrapped.d.ts +0 -5
  469. package/build/types-ts3.8/utils/entry-point.d.ts +0 -24
  470. package/build/types-ts3.8/utils/envToBool.d.ts +0 -13
  471. package/build/types-ts3.8/utils/errorhandling.d.ts +0 -5
  472. package/build/types-ts3.8/utils/getRequestUrl.d.ts +0 -5
  473. package/build/types-ts3.8/utils/module.d.ts +0 -3
  474. package/build/types-ts3.8/utils/prepareEvent.d.ts +0 -17
@@ -1,17 +0,0 @@
1
- type ModuleInfo = Record<string, string>;
2
- /**
3
- * Add node modules / packages to the event.
4
- * For this, multiple sources are used:
5
- * - They can be injected at build time into the __SENTRY_SERVER_MODULES__ variable (e.g. in Next.js)
6
- * - They are extracted from the dependencies & devDependencies in the package.json file
7
- * - They are extracted from the require.cache (CJS only)
8
- */
9
- export declare const modulesIntegration: () => {
10
- name: string;
11
- processEvent(event: import("@sentry/core").Event): import("@sentry/core").Event;
12
- getModules: typeof _getModules;
13
- };
14
- /** Fetches the list of modules and the versions loaded by the entry file for your node.js app. */
15
- declare function _getModules(): ModuleInfo;
16
- export {};
17
- //# sourceMappingURL=modules.d.ts.map
@@ -1,56 +0,0 @@
1
- import { InstrumentationConfig } from '@opentelemetry/instrumentation';
2
- import { InstrumentationBase } from '@opentelemetry/instrumentation';
3
- export type SentryNodeFetchInstrumentationOptions = InstrumentationConfig & {
4
- /**
5
- * Whether breadcrumbs should be recorded for requests.
6
- *
7
- * @default `true`
8
- */
9
- breadcrumbs?: boolean;
10
- /**
11
- * Do not capture breadcrumbs or inject headers for outgoing fetch requests to URLs where the given callback returns `true`.
12
- * The same option can be passed to the top-level httpIntegration where it controls both, breadcrumb and
13
- * span creation.
14
- *
15
- * @param url Contains the entire URL, including query string (if any), protocol, host, etc. of the outgoing request.
16
- */
17
- ignoreOutgoingRequests?: (url: string) => boolean;
18
- };
19
- /**
20
- * This custom node-fetch instrumentation is used to instrument outgoing fetch requests.
21
- * It does not emit any spans.
22
- *
23
- * The reason this is isolated from the OpenTelemetry instrumentation is that users may overwrite this,
24
- * which would lead to Sentry not working as expected.
25
- *
26
- * This is heavily inspired & adapted from:
27
- * https://github.com/open-telemetry/opentelemetry-js-contrib/blob/28e209a9da36bc4e1f8c2b0db7360170ed46cb80/plugins/node/instrumentation-undici/src/undici.ts
28
- */
29
- export declare class SentryNodeFetchInstrumentation extends InstrumentationBase<SentryNodeFetchInstrumentationOptions> {
30
- private _channelSubs;
31
- private _propagationDecisionMap;
32
- private _ignoreOutgoingRequestsMap;
33
- constructor(config?: SentryNodeFetchInstrumentationOptions);
34
- /** No need to instrument files/modules. */
35
- init(): void;
36
- /** Disable the instrumentation. */
37
- disable(): void;
38
- /** Enable the instrumentation. */
39
- enable(): void;
40
- /**
41
- * This method is called when a request is created.
42
- * You can still mutate the request here before it is sent.
43
- */
44
- private _onRequestCreated;
45
- /**
46
- * This method is called when a response is received.
47
- */
48
- private _onResponseHeaders;
49
- /** Subscribe to a diagnostics channel. */
50
- private _subscribeToChannel;
51
- /**
52
- * Check if the given outgoing request should be ignored.
53
- */
54
- private _shouldIgnoreOutgoingRequest;
55
- }
56
- //# sourceMappingURL=SentryNodeFetchInstrumentation.d.ts.map
@@ -1,31 +0,0 @@
1
- import { NodeClient } from '../sdk/client';
2
- interface OnUncaughtExceptionOptions {
3
- /**
4
- * Controls if the SDK should register a handler to exit the process on uncaught errors:
5
- * - `true`: The SDK will exit the process on all uncaught errors.
6
- * - `false`: The SDK will only exit the process when there are no other `uncaughtException` handlers attached.
7
- *
8
- * Default: `false`
9
- */
10
- exitEvenIfOtherHandlersAreRegistered: boolean;
11
- /**
12
- * This is called when an uncaught error would cause the process to exit.
13
- *
14
- * @param firstError Uncaught error causing the process to exit
15
- * @param secondError Will be set if the handler was called multiple times. This can happen either because
16
- * `onFatalError` itself threw, or because an independent error happened somewhere else while `onFatalError`
17
- * was running.
18
- */
19
- onFatalError?(this: void, firstError: Error, secondError?: Error): void;
20
- }
21
- /**
22
- * Add a global exception handler.
23
- */
24
- export declare const onUncaughtExceptionIntegration: (options?: Partial<OnUncaughtExceptionOptions> | undefined) => import("@sentry/core").Integration;
25
- type ErrorHandler = {
26
- _errorHandler: boolean;
27
- } & ((error: Error) => void);
28
- /** Exported only for tests */
29
- export declare function makeErrorHandler(client: NodeClient, options: OnUncaughtExceptionOptions): ErrorHandler;
30
- export {};
31
- //# sourceMappingURL=onuncaughtexception.d.ts.map
@@ -1,23 +0,0 @@
1
- import { Client } from '@sentry/core';
2
- type UnhandledRejectionMode = 'none' | 'warn' | 'strict';
3
- interface OnUnhandledRejectionOptions {
4
- /**
5
- * Option deciding what to do after capturing unhandledRejection,
6
- * that mimicks behavior of node's --unhandled-rejection flag.
7
- */
8
- mode: UnhandledRejectionMode;
9
- }
10
- /**
11
- * Add a global promise rejection handler.
12
- */
13
- export declare const onUnhandledRejectionIntegration: (options?: Partial<OnUnhandledRejectionOptions> | undefined) => import("@sentry/core").Integration;
14
- /**
15
- * Send an exception with reason
16
- * @param reason string
17
- * @param promise promise
18
- *
19
- * Exported only for tests.
20
- */
21
- export declare function makeUnhandledPromiseHandler(client: Client, options: OnUnhandledRejectionOptions): (reason: unknown, promise: unknown) => void;
22
- export {};
23
- //# sourceMappingURL=onunhandledrejection.d.ts.map
@@ -1,5 +0,0 @@
1
- /**
2
- * Records a Session for the current process to track release health.
3
- */
4
- export declare const processSessionIntegration: () => import("@sentry/core").Integration;
5
- //# sourceMappingURL=processSession.d.ts.map
@@ -1,18 +0,0 @@
1
- type SpotlightConnectionOptions = {
2
- /**
3
- * Set this if the Spotlight Sidecar is not running on localhost:8969
4
- * By default, the Url is set to http://localhost:8969/stream
5
- */
6
- sidecarUrl?: string;
7
- };
8
- export declare const INTEGRATION_NAME = "Spotlight";
9
- /**
10
- * Use this integration to send errors and transactions to Spotlight.
11
- *
12
- * Learn more about spotlight at https://spotlightjs.com
13
- *
14
- * Important: This integration only works with Node 18 or newer.
15
- */
16
- export declare const spotlightIntegration: (options?: Partial<SpotlightConnectionOptions> | undefined) => import("@sentry/core").Integration;
17
- export {};
18
- //# sourceMappingURL=spotlight.d.ts.map
@@ -1,44 +0,0 @@
1
- import { LogSeverityLevel } from '@sentry/core';
2
- /**
3
- * Options for the Sentry Winston transport.
4
- */
5
- interface WinstonTransportOptions {
6
- /**
7
- * Use this option to filter which levels should be captured. By default, all levels are captured.
8
- *
9
- * @example
10
- * ```ts
11
- * const SentryWinstonTransport = Sentry.createSentryWinstonTransport(Transport, {
12
- * // Only capture error and warn logs
13
- * levels: ['error', 'warn'],
14
- * });
15
- * ```
16
- */
17
- levels?: Array<LogSeverityLevel>;
18
- }
19
- /**
20
- * Creates a new Sentry Winston transport that fowards logs to Sentry. Requires `_experiments.enableLogs` to be enabled.
21
- *
22
- * Supports Winston 3.x.x.
23
- *
24
- * @param TransportClass - The Winston transport class to extend.
25
- * @returns The extended transport class.
26
- *
27
- * @experimental This method will experience breaking changes. This is not yet part of
28
- * the stable Sentry SDK API and can be changed or removed without warning.
29
- *
30
- * @example
31
- * ```ts
32
- * const winston = require('winston');
33
- * const Transport = require('winston-transport');
34
- *
35
- * const SentryWinstonTransport = Sentry.createSentryWinstonTransport(Transport);
36
- *
37
- * const logger = winston.createLogger({
38
- * transports: [new SentryWinstonTransport()],
39
- * });
40
- * ```
41
- */
42
- export declare function createSentryWinstonTransport<TransportStreamInstance extends object>(TransportClass: new (options?: any) => TransportStreamInstance, sentryWinstonOptions?: WinstonTransportOptions): typeof TransportClass;
43
- export {};
44
- //# sourceMappingURL=winston.d.ts.map
@@ -1,18 +0,0 @@
1
- import { Log, LogSeverityLevel, ParameterizedString } from '@sentry/core';
2
- export type CaptureLogArgs = [
3
- /*message*/ ParameterizedString,
4
- /*attributes*/ Log['attributes']
5
- ] | [
6
- /*messageTemplate*/ string,
7
- /*messageParams*/ Array<unknown>,
8
- /*attributes*/ Log['attributes']
9
- ];
10
- /**
11
- * Capture a log with the given level.
12
- *
13
- * @param level - The level of the log.
14
- * @param message - The message to log.
15
- * @param attributes - Arbitrary structured data that stores information about the log - e.g., userId: 100.
16
- */
17
- export declare function captureLog(level: LogSeverityLevel, ...args: CaptureLogArgs): void;
18
- //# sourceMappingURL=capture.d.ts.map
@@ -1,150 +0,0 @@
1
- import { CaptureLogArgs } from './capture';
2
- /**
3
- * @summary Capture a log with the `trace` level. Requires `_experiments.enableLogs` to be enabled.
4
- *
5
- * You can either pass a message and attributes or a message template, params and attributes.
6
- *
7
- * @example
8
- *
9
- * ```
10
- * Sentry.logger.trace('Starting database connection', {
11
- * database: 'users',
12
- * connectionId: 'conn_123'
13
- * });
14
- * ```
15
- *
16
- * @example With template strings
17
- *
18
- * ```
19
- * Sentry.logger.trace('Database connection %s established for %s',
20
- * ['successful', 'users'],
21
- * { connectionId: 'conn_123' }
22
- * );
23
- * ```
24
- */
25
- export declare function trace(...args: CaptureLogArgs): void;
26
- /**
27
- * @summary Capture a log with the `debug` level. Requires `_experiments.enableLogs` to be enabled.
28
- *
29
- * You can either pass a message and attributes or a message template, params and attributes.
30
- *
31
- * @example
32
- *
33
- * ```
34
- * Sentry.logger.debug('Cache miss for user profile', {
35
- * userId: 'user_123',
36
- * cacheKey: 'profile:user_123'
37
- * });
38
- * ```
39
- *
40
- * @example With template strings
41
- *
42
- * ```
43
- * Sentry.logger.debug('Cache %s for %s: %s',
44
- * ['miss', 'user profile', 'key not found'],
45
- * { userId: 'user_123' }
46
- * );
47
- * ```
48
- */
49
- export declare function debug(...args: CaptureLogArgs): void;
50
- /**
51
- * @summary Capture a log with the `info` level. Requires `_experiments.enableLogs` to be enabled.
52
- *
53
- * You can either pass a message and attributes or a message template, params and attributes.
54
- *
55
- * @example
56
- *
57
- * ```
58
- * Sentry.logger.info('User profile updated', {
59
- * userId: 'user_123',
60
- * updatedFields: ['email', 'preferences']
61
- * });
62
- * ```
63
- *
64
- * @example With template strings
65
- *
66
- * ```
67
- * Sentry.logger.info('User %s updated their %s',
68
- * ['John Doe', 'profile settings'],
69
- * { userId: 'user_123' }
70
- * );
71
- * ```
72
- */
73
- export declare function info(...args: CaptureLogArgs): void;
74
- /**
75
- * @summary Capture a log with the `warn` level. Requires `_experiments.enableLogs` to be enabled.
76
- *
77
- * You can either pass a message and attributes or a message template, params and attributes.
78
- *
79
- * @example
80
- *
81
- * ```
82
- * Sentry.logger.warn('Rate limit approaching', {
83
- * endpoint: '/api/users',
84
- * currentRate: '95/100',
85
- * resetTime: '2024-03-20T10:00:00Z'
86
- * });
87
- * ```
88
- *
89
- * @example With template strings
90
- *
91
- * ```
92
- * Sentry.logger.warn('Rate limit %s for %s: %s',
93
- * ['approaching', '/api/users', '95/100 requests'],
94
- * { resetTime: '2024-03-20T10:00:00Z' }
95
- * );
96
- * ```
97
- */
98
- export declare function warn(...args: CaptureLogArgs): void;
99
- /**
100
- * @summary Capture a log with the `error` level. Requires `_experiments.enableLogs` to be enabled.
101
- *
102
- * You can either pass a message and attributes or a message template, params and attributes.
103
- *
104
- * @example
105
- *
106
- * ```
107
- * Sentry.logger.error('Failed to process payment', {
108
- * orderId: 'order_123',
109
- * errorCode: 'PAYMENT_FAILED',
110
- * amount: 99.99
111
- * });
112
- * ```
113
- *
114
- * @example With template strings
115
- *
116
- * ```
117
- * Sentry.logger.error('Payment processing failed for order %s: %s',
118
- * ['order_123', 'insufficient funds'],
119
- * { amount: 99.99 }
120
- * );
121
- * ```
122
- */
123
- export declare function error(...args: CaptureLogArgs): void;
124
- /**
125
- * @summary Capture a log with the `fatal` level. Requires `_experiments.enableLogs` to be enabled.
126
- *
127
- * You can either pass a message and attributes or a message template, params and attributes.
128
- *
129
- * @example
130
- *
131
- * ```
132
- * Sentry.logger.fatal('Database connection pool exhausted', {
133
- * database: 'users',
134
- * activeConnections: 100,
135
- * maxConnections: 100
136
- * });
137
- * ```
138
- *
139
- * @example With template strings
140
- *
141
- * ```
142
- * Sentry.logger.fatal('Database %s: %s connections active',
143
- * ['connection pool exhausted', '100/100'],
144
- * { database: 'users' }
145
- * );
146
- * ```
147
- */
148
- export declare function fatal(...args: CaptureLogArgs): void;
149
- export { fmt } from '@sentry/core';
150
- //# sourceMappingURL=exports.d.ts.map
@@ -1,8 +0,0 @@
1
- export declare const NODE_VERSION: {
2
- major: number;
3
- minor: number;
4
- patch: number;
5
- };
6
- export declare const NODE_MAJOR: number;
7
- export declare const NODE_MINOR: number;
8
- //# sourceMappingURL=nodeVersion.d.ts.map
@@ -1,10 +0,0 @@
1
- import { AsyncLocalStorageContextManager } from '@opentelemetry/context-async-hooks';
2
- /**
3
- * This is a custom ContextManager for OpenTelemetry, which extends the default AsyncLocalStorageContextManager.
4
- * It ensures that we create a new hub per context, so that the OTEL Context & the Sentry Scopes are always in sync.
5
- *
6
- * Note that we currently only support AsyncHooks with this,
7
- * but since this should work for Node 14+ anyhow that should be good enough.
8
- */
9
- export declare const SentryContextManager: new (...args: unknown[]) => AsyncLocalStorageContextManager;
10
- //# sourceMappingURL=contextManager.d.ts.map
@@ -1,23 +0,0 @@
1
- import { Instrumentation } from '@opentelemetry/instrumentation';
2
- /** Exported only for tests. */
3
- export declare const INSTRUMENTED: Record<string, Instrumentation>;
4
- export declare function generateInstrumentOnce<Options, InstrumentationClass extends new (...args: any[]) => Instrumentation>(name: string, instrumentationClass: InstrumentationClass, optionsCallback: (options: Options) => ConstructorParameters<InstrumentationClass>[0]): ((options: Options) => InstanceType<InstrumentationClass>) & {
5
- id: string;
6
- };
7
- export declare function generateInstrumentOnce<Options = unknown, InstrumentationInstance extends Instrumentation = Instrumentation>(name: string, creator: (options?: Options) => InstrumentationInstance): ((options?: Options) => InstrumentationInstance) & {
8
- id: string;
9
- };
10
- /**
11
- * Ensure a given callback is called when the instrumentation is actually wrapping something.
12
- * This can be used to ensure some logic is only called when the instrumentation is actually active.
13
- *
14
- * This function returns a function that can be invoked with a callback.
15
- * This callback will either be invoked immediately
16
- * (e.g. if the instrumentation was already wrapped, or if _wrap could not be patched),
17
- * or once the instrumentation is actually wrapping something.
18
- *
19
- * Make sure to call this function right after adding the instrumentation, otherwise it may be too late!
20
- * The returned callback can be used any time, and also multiple times.
21
- */
22
- export declare function instrumentWhenWrapped<T extends Instrumentation>(instrumentation: T): (callback: () => void) => void;
23
- //# sourceMappingURL=instrument.d.ts.map
@@ -1,60 +0,0 @@
1
- /// <reference types="node" />
2
- /**
3
- * This code was originally forked from https://github.com/TooTallNate/proxy-agents/tree/b133295fd16f6475578b6b15bd9b4e33ecb0d0b7
4
- * With the following LICENSE:
5
- *
6
- * (The MIT License)
7
- *
8
- * Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>*
9
- *
10
- * Permission is hereby granted, free of charge, to any person obtaining
11
- * a copy of this software and associated documentation files (the
12
- * 'Software'), to deal in the Software without restriction, including
13
- * without limitation the rights to use, copy, modify, merge, publish,
14
- * distribute, sublicense, and/or sell copies of the Software, and to
15
- * permit persons to whom the Software is furnished to do so, subject to
16
- * the following conditions:*
17
- *
18
- * The above copyright notice and this permission notice shall be
19
- * included in all copies or substantial portions of the Software.*
20
- *
21
- * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
22
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
25
- * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
26
- * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27
- * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
- */
29
- import * as http from 'node:http';
30
- import * as net from 'node:net';
31
- import { Duplex } from 'node:stream';
32
- import * as tls from 'node:tls';
33
- export * from './helpers';
34
- interface HttpConnectOpts extends net.TcpNetConnectOpts {
35
- secureEndpoint: false;
36
- protocol?: string;
37
- }
38
- interface HttpsConnectOpts extends tls.ConnectionOptions {
39
- secureEndpoint: true;
40
- protocol?: string;
41
- port: number;
42
- }
43
- export type AgentConnectOpts = HttpConnectOpts | HttpsConnectOpts;
44
- declare const INTERNAL: unique symbol;
45
- export declare abstract class Agent extends http.Agent {
46
- private [INTERNAL];
47
- options: Partial<net.TcpNetConnectOpts & tls.ConnectionOptions>;
48
- keepAlive: boolean;
49
- constructor(opts?: http.AgentOptions);
50
- abstract connect(req: http.ClientRequest, options: AgentConnectOpts): Promise<Duplex | http.Agent> | Duplex | http.Agent;
51
- /**
52
- * Determine whether this is an `http` or `https` request.
53
- */
54
- isSecureEndpoint(options?: AgentConnectOpts): boolean;
55
- createSocket(req: http.ClientRequest, options: AgentConnectOpts, cb: (err: Error | null, s?: Duplex) => void): void;
56
- createConnection(): Duplex;
57
- defaultPort: number;
58
- protocol: string;
59
- }
60
- //# sourceMappingURL=base.d.ts.map
@@ -1,38 +0,0 @@
1
- /// <reference types="node" />
2
- /**
3
- * This code was originally forked from https://github.com/TooTallNate/proxy-agents/tree/b133295fd16f6475578b6b15bd9b4e33ecb0d0b7
4
- * With the following LICENSE:
5
- *
6
- * (The MIT License)
7
- *
8
- * Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>*
9
- *
10
- * Permission is hereby granted, free of charge, to any person obtaining
11
- * a copy of this software and associated documentation files (the
12
- * 'Software'), to deal in the Software without restriction, including
13
- * without limitation the rights to use, copy, modify, merge, publish,
14
- * distribute, sublicense, and/or sell copies of the Software, and to
15
- * permit persons to whom the Software is furnished to do so, subject to
16
- * the following conditions:*
17
- *
18
- * The above copyright notice and this permission notice shall be
19
- * included in all copies or substantial portions of the Software.*
20
- *
21
- * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
22
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
25
- * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
26
- * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27
- * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
- */
29
- import * as http from 'node:http';
30
- import * as https from 'node:https';
31
- import { Readable } from 'node:stream';
32
- export type ThenableRequest = http.ClientRequest & {
33
- then: Promise<http.IncomingMessage>['then'];
34
- };
35
- export declare function toBuffer(stream: Readable): Promise<Buffer>;
36
- export declare function json(stream: Readable): Promise<any>;
37
- export declare function req(url: string | URL, opts?: https.RequestOptions): ThenableRequest;
38
- //# sourceMappingURL=helpers.d.ts.map
@@ -1,74 +0,0 @@
1
- /// <reference types="node" />
2
- /**
3
- * This code was originally forked from https://github.com/TooTallNate/proxy-agents/tree/b133295fd16f6475578b6b15bd9b4e33ecb0d0b7
4
- * With the following LICENSE:
5
- *
6
- * (The MIT License)
7
- *
8
- * Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>*
9
- *
10
- * Permission is hereby granted, free of charge, to any person obtaining
11
- * a copy of this software and associated documentation files (the
12
- * 'Software'), to deal in the Software without restriction, including
13
- * without limitation the rights to use, copy, modify, merge, publish,
14
- * distribute, sublicense, and/or sell copies of the Software, and to
15
- * permit persons to whom the Software is furnished to do so, subject to
16
- * the following conditions:*
17
- *
18
- * The above copyright notice and this permission notice shall be
19
- * included in all copies or substantial portions of the Software.*
20
- *
21
- * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
22
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
25
- * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
26
- * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27
- * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
- */
29
- import * as http from 'node:http';
30
- import { OutgoingHttpHeaders } from 'node:http';
31
- import * as net from 'node:net';
32
- import * as tls from 'node:tls';
33
- import { AgentConnectOpts } from './base';
34
- import { Agent } from './base';
35
- type Protocol<T> = T extends string ? Protocol : never;
36
- type ConnectOptsMap = {
37
- http: Pick<net.TcpNetConnectOpts, Exclude<keyof net.TcpNetConnectOpts, 'host' | 'port'>>;
38
- https: Pick<tls.ConnectionOptions, Exclude<keyof tls.ConnectionOptions, 'host' | 'port'>>;
39
- };
40
- type ConnectOpts<T> = {
41
- [P in keyof ConnectOptsMap]: Protocol<T> extends P ? ConnectOptsMap[P] : never;
42
- }[keyof ConnectOptsMap];
43
- export type HttpsProxyAgentOptions<T> = ConnectOpts<T> & http.AgentOptions & {
44
- headers?: OutgoingHttpHeaders | (() => OutgoingHttpHeaders);
45
- };
46
- /**
47
- * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to
48
- * the specified "HTTP(s) proxy server" in order to proxy HTTPS requests.
49
- *
50
- * Outgoing HTTP requests are first tunneled through the proxy server using the
51
- * `CONNECT` HTTP request method to establish a connection to the proxy server,
52
- * and then the proxy server connects to the destination target and issues the
53
- * HTTP request from the proxy server.
54
- *
55
- * `https:` requests have their socket connection upgraded to TLS once
56
- * the connection to the proxy server has been established.
57
- */
58
- export declare class HttpsProxyAgent<Uri extends string> extends Agent {
59
- static protocols: readonly [
60
- "http",
61
- "https"
62
- ];
63
- readonly proxy: URL;
64
- proxyHeaders: OutgoingHttpHeaders | (() => OutgoingHttpHeaders);
65
- connectOpts: net.TcpNetConnectOpts & tls.ConnectionOptions;
66
- constructor(proxy: Uri | URL, opts?: HttpsProxyAgentOptions<Uri>);
67
- /**
68
- * Called when the node-core HTTP client library is creating a
69
- * new HTTP request.
70
- */
71
- connect(req: http.ClientRequest, opts: AgentConnectOpts): Promise<net.Socket>;
72
- }
73
- export {};
74
- //# sourceMappingURL=index.d.ts.map
@@ -1,40 +0,0 @@
1
- /// <reference types="node" />
2
- /**
3
- * This code was originally forked from https://github.com/TooTallNate/proxy-agents/tree/b133295fd16f6475578b6b15bd9b4e33ecb0d0b7
4
- * With the following LICENSE:
5
- *
6
- * (The MIT License)
7
- *
8
- * Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>*
9
- *
10
- * Permission is hereby granted, free of charge, to any person obtaining
11
- * a copy of this software and associated documentation files (the
12
- * 'Software'), to deal in the Software without restriction, including
13
- * without limitation the rights to use, copy, modify, merge, publish,
14
- * distribute, sublicense, and/or sell copies of the Software, and to
15
- * permit persons to whom the Software is furnished to do so, subject to
16
- * the following conditions:*
17
- *
18
- * The above copyright notice and this permission notice shall be
19
- * included in all copies or substantial portions of the Software.*
20
- *
21
- * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
22
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
25
- * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
26
- * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27
- * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
- */
29
- import { IncomingHttpHeaders } from 'node:http';
30
- import { Readable } from 'node:stream';
31
- export interface ConnectResponse {
32
- statusCode: number;
33
- statusText: string;
34
- headers: IncomingHttpHeaders;
35
- }
36
- export declare function parseProxyResponse(socket: Readable): Promise<{
37
- connect: ConnectResponse;
38
- buffered: Buffer;
39
- }>;
40
- //# sourceMappingURL=parse-proxy-response.d.ts.map
@@ -1,8 +0,0 @@
1
- import { StackParser } from '@sentry/core';
2
- /**
3
- * Returns a release dynamically from environment variables.
4
- */
5
- export declare function getSentryRelease(fallback?: string): string | undefined;
6
- /** Node.js stack parser */
7
- export declare const defaultStackParser: StackParser;
8
- //# sourceMappingURL=api.d.ts.map