@sentry/node 9.32.0 → 9.34.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 (524) hide show
  1. package/build/cjs/index.js +50 -56
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/integrations/featureFlagShims/launchDarkly.js +43 -0
  4. package/build/cjs/integrations/featureFlagShims/launchDarkly.js.map +1 -0
  5. package/build/cjs/integrations/featureFlagShims/openFeature.js +55 -0
  6. package/build/cjs/integrations/featureFlagShims/openFeature.js.map +1 -0
  7. package/build/cjs/integrations/featureFlagShims/statsig.js +23 -0
  8. package/build/cjs/integrations/featureFlagShims/statsig.js.map +1 -0
  9. package/build/cjs/integrations/featureFlagShims/unleash.js +23 -0
  10. package/build/cjs/integrations/featureFlagShims/unleash.js.map +1 -0
  11. package/build/cjs/integrations/fs.js +2 -2
  12. package/build/cjs/integrations/fs.js.map +1 -1
  13. package/build/cjs/integrations/http/index.js +7 -11
  14. package/build/cjs/integrations/http/index.js.map +1 -1
  15. package/build/cjs/integrations/node-fetch/index.js +4 -5
  16. package/build/cjs/integrations/node-fetch/index.js.map +1 -1
  17. package/build/cjs/integrations/tracing/amqplib.js +4 -5
  18. package/build/cjs/integrations/tracing/amqplib.js.map +1 -1
  19. package/build/cjs/integrations/tracing/connect.js +3 -4
  20. package/build/cjs/integrations/tracing/connect.js.map +1 -1
  21. package/build/cjs/integrations/tracing/dataloader.js +3 -3
  22. package/build/cjs/integrations/tracing/dataloader.js.map +1 -1
  23. package/build/cjs/integrations/tracing/express.js +5 -7
  24. package/build/cjs/integrations/tracing/express.js.map +1 -1
  25. package/build/cjs/integrations/tracing/fastify/fastify-otel/index.js +5 -10
  26. package/build/cjs/integrations/tracing/fastify/fastify-otel/index.js.map +1 -1
  27. package/build/cjs/integrations/tracing/fastify/index.js +47 -10
  28. package/build/cjs/integrations/tracing/fastify/index.js.map +1 -1
  29. package/build/cjs/integrations/tracing/genericPool.js +3 -3
  30. package/build/cjs/integrations/tracing/genericPool.js.map +1 -1
  31. package/build/cjs/integrations/tracing/graphql.js +3 -4
  32. package/build/cjs/integrations/tracing/graphql.js.map +1 -1
  33. package/build/cjs/integrations/tracing/hapi/index.js +3 -4
  34. package/build/cjs/integrations/tracing/hapi/index.js.map +1 -1
  35. package/build/cjs/integrations/tracing/index.js +3 -0
  36. package/build/cjs/integrations/tracing/index.js.map +1 -1
  37. package/build/cjs/integrations/tracing/kafka.js +4 -5
  38. package/build/cjs/integrations/tracing/kafka.js.map +1 -1
  39. package/build/cjs/integrations/tracing/knex.js +3 -3
  40. package/build/cjs/integrations/tracing/knex.js.map +1 -1
  41. package/build/cjs/integrations/tracing/koa.js +4 -6
  42. package/build/cjs/integrations/tracing/koa.js.map +1 -1
  43. package/build/cjs/integrations/tracing/lrumemoizer.js +2 -2
  44. package/build/cjs/integrations/tracing/lrumemoizer.js.map +1 -1
  45. package/build/cjs/integrations/tracing/mongo.js +3 -4
  46. package/build/cjs/integrations/tracing/mongo.js.map +1 -1
  47. package/build/cjs/integrations/tracing/mongoose.js +3 -4
  48. package/build/cjs/integrations/tracing/mongoose.js.map +1 -1
  49. package/build/cjs/integrations/tracing/mysql.js +2 -2
  50. package/build/cjs/integrations/tracing/mysql.js.map +1 -1
  51. package/build/cjs/integrations/tracing/mysql2.js +3 -4
  52. package/build/cjs/integrations/tracing/mysql2.js.map +1 -1
  53. package/build/cjs/integrations/tracing/postgres.js +3 -4
  54. package/build/cjs/integrations/tracing/postgres.js.map +1 -1
  55. package/build/cjs/integrations/tracing/postgresjs.js +282 -0
  56. package/build/cjs/integrations/tracing/postgresjs.js.map +1 -0
  57. package/build/cjs/integrations/tracing/prisma.js +2 -2
  58. package/build/cjs/integrations/tracing/prisma.js.map +1 -1
  59. package/build/cjs/integrations/tracing/redis.js +3 -3
  60. package/build/cjs/integrations/tracing/redis.js.map +1 -1
  61. package/build/cjs/integrations/tracing/tedious.js +3 -3
  62. package/build/cjs/integrations/tracing/tedious.js.map +1 -1
  63. package/build/cjs/integrations/tracing/vercelai/index.js +9 -185
  64. package/build/cjs/integrations/tracing/vercelai/index.js.map +1 -1
  65. package/build/cjs/preload.js +2 -2
  66. package/build/cjs/preload.js.map +1 -1
  67. package/build/cjs/sdk/index.js +22 -203
  68. package/build/cjs/sdk/index.js.map +1 -1
  69. package/build/cjs/sdk/initOtel.js +4 -22
  70. package/build/cjs/sdk/initOtel.js.map +1 -1
  71. package/build/esm/index.js +7 -21
  72. package/build/esm/index.js.map +1 -1
  73. package/build/esm/integrations/featureFlagShims/launchDarkly.js +40 -0
  74. package/build/esm/integrations/featureFlagShims/launchDarkly.js.map +1 -0
  75. package/build/esm/integrations/featureFlagShims/openFeature.js +52 -0
  76. package/build/esm/integrations/featureFlagShims/openFeature.js.map +1 -0
  77. package/build/esm/integrations/featureFlagShims/statsig.js +21 -0
  78. package/build/esm/integrations/featureFlagShims/statsig.js.map +1 -0
  79. package/build/esm/integrations/featureFlagShims/unleash.js +21 -0
  80. package/build/esm/integrations/featureFlagShims/unleash.js.map +1 -0
  81. package/build/esm/integrations/fs.js +1 -1
  82. package/build/esm/integrations/fs.js.map +1 -1
  83. package/build/esm/integrations/http/index.js +1 -5
  84. package/build/esm/integrations/http/index.js.map +1 -1
  85. package/build/esm/integrations/node-fetch/index.js +2 -3
  86. package/build/esm/integrations/node-fetch/index.js.map +1 -1
  87. package/build/esm/integrations/tracing/amqplib.js +1 -2
  88. package/build/esm/integrations/tracing/amqplib.js.map +1 -1
  89. package/build/esm/integrations/tracing/connect.js +1 -2
  90. package/build/esm/integrations/tracing/connect.js.map +1 -1
  91. package/build/esm/integrations/tracing/dataloader.js +1 -1
  92. package/build/esm/integrations/tracing/dataloader.js.map +1 -1
  93. package/build/esm/integrations/tracing/express.js +2 -4
  94. package/build/esm/integrations/tracing/express.js.map +1 -1
  95. package/build/esm/integrations/tracing/fastify/fastify-otel/index.js +5 -10
  96. package/build/esm/integrations/tracing/fastify/fastify-otel/index.js.map +1 -1
  97. package/build/esm/integrations/tracing/fastify/index.js +46 -9
  98. package/build/esm/integrations/tracing/fastify/index.js.map +1 -1
  99. package/build/esm/integrations/tracing/genericPool.js +1 -1
  100. package/build/esm/integrations/tracing/genericPool.js.map +1 -1
  101. package/build/esm/integrations/tracing/graphql.js +2 -3
  102. package/build/esm/integrations/tracing/graphql.js.map +1 -1
  103. package/build/esm/integrations/tracing/hapi/index.js +1 -2
  104. package/build/esm/integrations/tracing/hapi/index.js.map +1 -1
  105. package/build/esm/integrations/tracing/index.js +3 -0
  106. package/build/esm/integrations/tracing/index.js.map +1 -1
  107. package/build/esm/integrations/tracing/kafka.js +1 -2
  108. package/build/esm/integrations/tracing/kafka.js.map +1 -1
  109. package/build/esm/integrations/tracing/knex.js +1 -1
  110. package/build/esm/integrations/tracing/knex.js.map +1 -1
  111. package/build/esm/integrations/tracing/koa.js +2 -4
  112. package/build/esm/integrations/tracing/koa.js.map +1 -1
  113. package/build/esm/integrations/tracing/lrumemoizer.js +1 -1
  114. package/build/esm/integrations/tracing/lrumemoizer.js.map +1 -1
  115. package/build/esm/integrations/tracing/mongo.js +1 -2
  116. package/build/esm/integrations/tracing/mongo.js.map +1 -1
  117. package/build/esm/integrations/tracing/mongoose.js +1 -2
  118. package/build/esm/integrations/tracing/mongoose.js.map +1 -1
  119. package/build/esm/integrations/tracing/mysql.js +1 -1
  120. package/build/esm/integrations/tracing/mysql.js.map +1 -1
  121. package/build/esm/integrations/tracing/mysql2.js +1 -2
  122. package/build/esm/integrations/tracing/mysql2.js.map +1 -1
  123. package/build/esm/integrations/tracing/postgres.js +1 -2
  124. package/build/esm/integrations/tracing/postgres.js.map +1 -1
  125. package/build/esm/integrations/tracing/postgresjs.js +278 -0
  126. package/build/esm/integrations/tracing/postgresjs.js.map +1 -0
  127. package/build/esm/integrations/tracing/prisma.js +1 -1
  128. package/build/esm/integrations/tracing/prisma.js.map +1 -1
  129. package/build/esm/integrations/tracing/redis.js +1 -1
  130. package/build/esm/integrations/tracing/redis.js.map +1 -1
  131. package/build/esm/integrations/tracing/tedious.js +1 -1
  132. package/build/esm/integrations/tracing/tedious.js.map +1 -1
  133. package/build/esm/integrations/tracing/vercelai/index.js +9 -185
  134. package/build/esm/integrations/tracing/vercelai/index.js.map +1 -1
  135. package/build/esm/package.json +1 -1
  136. package/build/esm/preload.js +1 -1
  137. package/build/esm/preload.js.map +1 -1
  138. package/build/esm/sdk/index.js +22 -202
  139. package/build/esm/sdk/index.js.map +1 -1
  140. package/build/esm/sdk/initOtel.js +3 -21
  141. package/build/esm/sdk/initOtel.js.map +1 -1
  142. package/build/types/index.d.ts +4 -21
  143. package/build/types/index.d.ts.map +1 -1
  144. package/build/types/integrations/featureFlagShims/index.d.ts +5 -0
  145. package/build/types/integrations/featureFlagShims/index.d.ts.map +1 -0
  146. package/build/types/integrations/featureFlagShims/launchDarkly.d.ts +10 -0
  147. package/build/types/integrations/featureFlagShims/launchDarkly.d.ts.map +1 -0
  148. package/build/types/integrations/featureFlagShims/openFeature.d.ts +23 -0
  149. package/build/types/integrations/featureFlagShims/openFeature.d.ts.map +1 -0
  150. package/build/types/integrations/featureFlagShims/statsig.d.ts +6 -0
  151. package/build/types/integrations/featureFlagShims/statsig.d.ts.map +1 -0
  152. package/build/types/integrations/featureFlagShims/unleash.d.ts +6 -0
  153. package/build/types/integrations/featureFlagShims/unleash.d.ts.map +1 -0
  154. package/build/types/integrations/http/index.d.ts +1 -1
  155. package/build/types/integrations/http/index.d.ts.map +1 -1
  156. package/build/types/integrations/node-fetch/index.d.ts.map +1 -1
  157. package/build/types/integrations/tracing/amqplib.d.ts.map +1 -1
  158. package/build/types/integrations/tracing/connect.d.ts.map +1 -1
  159. package/build/types/integrations/tracing/express.d.ts.map +1 -1
  160. package/build/types/integrations/tracing/fastify/index.d.ts +1 -1
  161. package/build/types/integrations/tracing/fastify/index.d.ts.map +1 -1
  162. package/build/types/integrations/tracing/graphql.d.ts.map +1 -1
  163. package/build/types/integrations/tracing/hapi/index.d.ts.map +1 -1
  164. package/build/types/integrations/tracing/index.d.ts.map +1 -1
  165. package/build/types/integrations/tracing/kafka.d.ts.map +1 -1
  166. package/build/types/integrations/tracing/koa.d.ts.map +1 -1
  167. package/build/types/integrations/tracing/mongo.d.ts.map +1 -1
  168. package/build/types/integrations/tracing/mongoose.d.ts.map +1 -1
  169. package/build/types/integrations/tracing/mysql2.d.ts.map +1 -1
  170. package/build/types/integrations/tracing/postgres.d.ts.map +1 -1
  171. package/build/types/integrations/tracing/postgresjs.d.ts +81 -0
  172. package/build/types/integrations/tracing/postgresjs.d.ts.map +1 -0
  173. package/build/types/integrations/tracing/vercelai/index.d.ts +5 -7
  174. package/build/types/integrations/tracing/vercelai/index.d.ts.map +1 -1
  175. package/build/types/sdk/index.d.ts +2 -6
  176. package/build/types/sdk/index.d.ts.map +1 -1
  177. package/build/types/sdk/initOtel.d.ts +1 -1
  178. package/build/types/sdk/initOtel.d.ts.map +1 -1
  179. package/build/types/types.d.ts +1 -1
  180. package/build/types/types.d.ts.map +1 -1
  181. package/build/types-ts3.8/index.d.ts +4 -21
  182. package/build/types-ts3.8/integrations/featureFlagShims/index.d.ts +5 -0
  183. package/build/types-ts3.8/integrations/featureFlagShims/launchDarkly.d.ts +10 -0
  184. package/build/types-ts3.8/integrations/featureFlagShims/openFeature.d.ts +23 -0
  185. package/build/types-ts3.8/integrations/featureFlagShims/statsig.d.ts +6 -0
  186. package/build/types-ts3.8/integrations/featureFlagShims/unleash.d.ts +6 -0
  187. package/build/types-ts3.8/integrations/http/index.d.ts +1 -1
  188. package/build/types-ts3.8/integrations/tracing/fastify/index.d.ts +1 -1
  189. package/build/types-ts3.8/integrations/tracing/postgresjs.d.ts +81 -0
  190. package/build/types-ts3.8/integrations/tracing/vercelai/index.d.ts +5 -7
  191. package/build/types-ts3.8/sdk/index.d.ts +2 -6
  192. package/build/types-ts3.8/sdk/initOtel.d.ts +1 -1
  193. package/build/types-ts3.8/types.d.ts +1 -1
  194. package/package.json +4 -3
  195. package/build/cjs/cron/common.js +0 -56
  196. package/build/cjs/cron/common.js.map +0 -1
  197. package/build/cjs/cron/cron.js +0 -112
  198. package/build/cjs/cron/cron.js.map +0 -1
  199. package/build/cjs/cron/index.js +0 -15
  200. package/build/cjs/cron/index.js.map +0 -1
  201. package/build/cjs/cron/node-cron.js +0 -71
  202. package/build/cjs/cron/node-cron.js.map +0 -1
  203. package/build/cjs/cron/node-schedule.js +0 -65
  204. package/build/cjs/cron/node-schedule.js.map +0 -1
  205. package/build/cjs/integrations/anr/index.js +0 -238
  206. package/build/cjs/integrations/anr/index.js.map +0 -1
  207. package/build/cjs/integrations/childProcess.js +0 -100
  208. package/build/cjs/integrations/childProcess.js.map +0 -1
  209. package/build/cjs/integrations/context.js +0 -457
  210. package/build/cjs/integrations/context.js.map +0 -1
  211. package/build/cjs/integrations/contextlines.js +0 -405
  212. package/build/cjs/integrations/contextlines.js.map +0 -1
  213. package/build/cjs/integrations/http/SentryHttpInstrumentation.js +0 -558
  214. package/build/cjs/integrations/http/SentryHttpInstrumentation.js.map +0 -1
  215. package/build/cjs/integrations/local-variables/common.js +0 -69
  216. package/build/cjs/integrations/local-variables/common.js.map +0 -1
  217. package/build/cjs/integrations/local-variables/index.js +0 -12
  218. package/build/cjs/integrations/local-variables/index.js.map +0 -1
  219. package/build/cjs/integrations/local-variables/local-variables-async.js +0 -143
  220. package/build/cjs/integrations/local-variables/local-variables-async.js.map +0 -1
  221. package/build/cjs/integrations/local-variables/local-variables-sync.js +0 -410
  222. package/build/cjs/integrations/local-variables/local-variables-sync.js.map +0 -1
  223. package/build/cjs/integrations/modules.js +0 -135
  224. package/build/cjs/integrations/modules.js.map +0 -1
  225. package/build/cjs/integrations/node-fetch/SentryNodeFetchInstrumentation.js +0 -291
  226. package/build/cjs/integrations/node-fetch/SentryNodeFetchInstrumentation.js.map +0 -1
  227. package/build/cjs/integrations/onuncaughtexception.js +0 -134
  228. package/build/cjs/integrations/onuncaughtexception.js.map +0 -1
  229. package/build/cjs/integrations/onunhandledrejection.js +0 -89
  230. package/build/cjs/integrations/onunhandledrejection.js.map +0 -1
  231. package/build/cjs/integrations/processSession.js +0 -36
  232. package/build/cjs/integrations/processSession.js.map +0 -1
  233. package/build/cjs/integrations/spotlight.js +0 -101
  234. package/build/cjs/integrations/spotlight.js.map +0 -1
  235. package/build/cjs/integrations/tracing/vercelai/ai_sdk_attributes.js +0 -168
  236. package/build/cjs/integrations/tracing/vercelai/ai_sdk_attributes.js.map +0 -1
  237. package/build/cjs/integrations/winston.js +0 -151
  238. package/build/cjs/integrations/winston.js.map +0 -1
  239. package/build/cjs/logs/capture.js +0 -29
  240. package/build/cjs/logs/capture.js.map +0 -1
  241. package/build/cjs/logs/exports.js +0 -178
  242. package/build/cjs/logs/exports.js.map +0 -1
  243. package/build/cjs/nodeVersion.js +0 -12
  244. package/build/cjs/nodeVersion.js.map +0 -1
  245. package/build/cjs/otel/contextManager.js +0 -16
  246. package/build/cjs/otel/contextManager.js.map +0 -1
  247. package/build/cjs/otel/instrument.js +0 -139
  248. package/build/cjs/otel/instrument.js.map +0 -1
  249. package/build/cjs/proxy/base.js +0 -122
  250. package/build/cjs/proxy/base.js.map +0 -1
  251. package/build/cjs/proxy/index.js +0 -173
  252. package/build/cjs/proxy/index.js.map +0 -1
  253. package/build/cjs/proxy/parse-proxy-response.js +0 -104
  254. package/build/cjs/proxy/parse-proxy-response.js.map +0 -1
  255. package/build/cjs/sdk/api.js +0 -117
  256. package/build/cjs/sdk/api.js.map +0 -1
  257. package/build/cjs/sdk/client.js +0 -156
  258. package/build/cjs/sdk/client.js.map +0 -1
  259. package/build/cjs/transports/http.js +0 -158
  260. package/build/cjs/transports/http.js.map +0 -1
  261. package/build/cjs/utils/addOriginToSpan.js +0 -11
  262. package/build/cjs/utils/addOriginToSpan.js.map +0 -1
  263. package/build/cjs/utils/baggage.js +0 -36
  264. package/build/cjs/utils/baggage.js.map +0 -1
  265. package/build/cjs/utils/commonjs.js +0 -13
  266. package/build/cjs/utils/commonjs.js.map +0 -1
  267. package/build/cjs/utils/createMissingInstrumentationContext.js +0 -11
  268. package/build/cjs/utils/createMissingInstrumentationContext.js.map +0 -1
  269. package/build/cjs/utils/debug.js +0 -23
  270. package/build/cjs/utils/debug.js.map +0 -1
  271. package/build/cjs/utils/ensureIsWrapped.js +0 -41
  272. package/build/cjs/utils/ensureIsWrapped.js.map +0 -1
  273. package/build/cjs/utils/envToBool.js +0 -32
  274. package/build/cjs/utils/envToBool.js.map +0 -1
  275. package/build/cjs/utils/errorhandling.js +0 -42
  276. package/build/cjs/utils/errorhandling.js.map +0 -1
  277. package/build/cjs/utils/getRequestUrl.js +0 -18
  278. package/build/cjs/utils/getRequestUrl.js.map +0 -1
  279. package/build/cjs/utils/module.js +0 -60
  280. package/build/cjs/utils/module.js.map +0 -1
  281. package/build/esm/cron/common.js +0 -54
  282. package/build/esm/cron/common.js.map +0 -1
  283. package/build/esm/cron/cron.js +0 -110
  284. package/build/esm/cron/cron.js.map +0 -1
  285. package/build/esm/cron/index.js +0 -13
  286. package/build/esm/cron/index.js.map +0 -1
  287. package/build/esm/cron/node-cron.js +0 -69
  288. package/build/esm/cron/node-cron.js.map +0 -1
  289. package/build/esm/cron/node-schedule.js +0 -63
  290. package/build/esm/cron/node-schedule.js.map +0 -1
  291. package/build/esm/integrations/anr/index.js +0 -234
  292. package/build/esm/integrations/anr/index.js.map +0 -1
  293. package/build/esm/integrations/anr/worker-script.js +0 -2
  294. package/build/esm/integrations/childProcess.js +0 -98
  295. package/build/esm/integrations/childProcess.js.map +0 -1
  296. package/build/esm/integrations/context.js +0 -451
  297. package/build/esm/integrations/context.js.map +0 -1
  298. package/build/esm/integrations/contextlines.js +0 -399
  299. package/build/esm/integrations/contextlines.js.map +0 -1
  300. package/build/esm/integrations/http/SentryHttpInstrumentation.js +0 -555
  301. package/build/esm/integrations/http/SentryHttpInstrumentation.js.map +0 -1
  302. package/build/esm/integrations/local-variables/common.js +0 -64
  303. package/build/esm/integrations/local-variables/common.js.map +0 -1
  304. package/build/esm/integrations/local-variables/index.js +0 -10
  305. package/build/esm/integrations/local-variables/index.js.map +0 -1
  306. package/build/esm/integrations/local-variables/local-variables-async.js +0 -140
  307. package/build/esm/integrations/local-variables/local-variables-async.js.map +0 -1
  308. package/build/esm/integrations/local-variables/local-variables-sync.js +0 -405
  309. package/build/esm/integrations/local-variables/local-variables-sync.js.map +0 -1
  310. package/build/esm/integrations/local-variables/worker-script.js +0 -2
  311. package/build/esm/integrations/modules.js +0 -133
  312. package/build/esm/integrations/modules.js.map +0 -1
  313. package/build/esm/integrations/node-fetch/SentryNodeFetchInstrumentation.js +0 -289
  314. package/build/esm/integrations/node-fetch/SentryNodeFetchInstrumentation.js.map +0 -1
  315. package/build/esm/integrations/onuncaughtexception.js +0 -131
  316. package/build/esm/integrations/onuncaughtexception.js.map +0 -1
  317. package/build/esm/integrations/onunhandledrejection.js +0 -86
  318. package/build/esm/integrations/onunhandledrejection.js.map +0 -1
  319. package/build/esm/integrations/processSession.js +0 -34
  320. package/build/esm/integrations/processSession.js.map +0 -1
  321. package/build/esm/integrations/spotlight.js +0 -98
  322. package/build/esm/integrations/spotlight.js.map +0 -1
  323. package/build/esm/integrations/tracing/vercelai/ai_sdk_attributes.js +0 -152
  324. package/build/esm/integrations/tracing/vercelai/ai_sdk_attributes.js.map +0 -1
  325. package/build/esm/integrations/winston.js +0 -149
  326. package/build/esm/integrations/winston.js.map +0 -1
  327. package/build/esm/logs/capture.js +0 -27
  328. package/build/esm/logs/capture.js.map +0 -1
  329. package/build/esm/logs/exports.js +0 -170
  330. package/build/esm/logs/exports.js.map +0 -1
  331. package/build/esm/nodeVersion.js +0 -8
  332. package/build/esm/nodeVersion.js.map +0 -1
  333. package/build/esm/otel/contextManager.js +0 -14
  334. package/build/esm/otel/contextManager.js.map +0 -1
  335. package/build/esm/otel/instrument.js +0 -135
  336. package/build/esm/otel/instrument.js.map +0 -1
  337. package/build/esm/proxy/base.js +0 -120
  338. package/build/esm/proxy/base.js.map +0 -1
  339. package/build/esm/proxy/index.js +0 -171
  340. package/build/esm/proxy/index.js.map +0 -1
  341. package/build/esm/proxy/parse-proxy-response.js +0 -102
  342. package/build/esm/proxy/parse-proxy-response.js.map +0 -1
  343. package/build/esm/sdk/api.js +0 -114
  344. package/build/esm/sdk/api.js.map +0 -1
  345. package/build/esm/sdk/client.js +0 -154
  346. package/build/esm/sdk/client.js.map +0 -1
  347. package/build/esm/transports/http.js +0 -156
  348. package/build/esm/transports/http.js.map +0 -1
  349. package/build/esm/utils/addOriginToSpan.js +0 -9
  350. package/build/esm/utils/addOriginToSpan.js.map +0 -1
  351. package/build/esm/utils/baggage.js +0 -34
  352. package/build/esm/utils/baggage.js.map +0 -1
  353. package/build/esm/utils/commonjs.js +0 -11
  354. package/build/esm/utils/commonjs.js.map +0 -1
  355. package/build/esm/utils/createMissingInstrumentationContext.js +0 -9
  356. package/build/esm/utils/createMissingInstrumentationContext.js.map +0 -1
  357. package/build/esm/utils/debug.js +0 -21
  358. package/build/esm/utils/debug.js.map +0 -1
  359. package/build/esm/utils/ensureIsWrapped.js +0 -39
  360. package/build/esm/utils/ensureIsWrapped.js.map +0 -1
  361. package/build/esm/utils/envToBool.js +0 -28
  362. package/build/esm/utils/envToBool.js.map +0 -1
  363. package/build/esm/utils/errorhandling.js +0 -40
  364. package/build/esm/utils/errorhandling.js.map +0 -1
  365. package/build/esm/utils/getRequestUrl.js +0 -16
  366. package/build/esm/utils/getRequestUrl.js.map +0 -1
  367. package/build/esm/utils/module.js +0 -58
  368. package/build/esm/utils/module.js.map +0 -1
  369. package/build/types/cron/common.d.ts +0 -5
  370. package/build/types/cron/common.d.ts.map +0 -1
  371. package/build/types/cron/cron.d.ts +0 -43
  372. package/build/types/cron/cron.d.ts.map +0 -1
  373. package/build/types/cron/index.d.ts +0 -10
  374. package/build/types/cron/index.d.ts.map +0 -1
  375. package/build/types/cron/node-cron.d.ts +0 -27
  376. package/build/types/cron/node-cron.d.ts.map +0 -1
  377. package/build/types/cron/node-schedule.d.ts +0 -19
  378. package/build/types/cron/node-schedule.d.ts.map +0 -1
  379. package/build/types/integrations/anr/common.d.ts +0 -52
  380. package/build/types/integrations/anr/common.d.ts.map +0 -1
  381. package/build/types/integrations/anr/index.d.ts +0 -13
  382. package/build/types/integrations/anr/index.d.ts.map +0 -1
  383. package/build/types/integrations/anr/worker.d.ts +0 -2
  384. package/build/types/integrations/anr/worker.d.ts.map +0 -1
  385. package/build/types/integrations/childProcess.d.ts +0 -20
  386. package/build/types/integrations/childProcess.d.ts.map +0 -1
  387. package/build/types/integrations/context.d.ts +0 -30
  388. package/build/types/integrations/context.d.ts.map +0 -1
  389. package/build/types/integrations/contextlines.d.ts +0 -31
  390. package/build/types/integrations/contextlines.d.ts.map +0 -1
  391. package/build/types/integrations/http/SentryHttpInstrumentation.d.ts +0 -131
  392. package/build/types/integrations/http/SentryHttpInstrumentation.d.ts.map +0 -1
  393. package/build/types/integrations/local-variables/common.d.ts +0 -66
  394. package/build/types/integrations/local-variables/common.d.ts.map +0 -1
  395. package/build/types/integrations/local-variables/index.d.ts +0 -4
  396. package/build/types/integrations/local-variables/index.d.ts.map +0 -1
  397. package/build/types/integrations/local-variables/local-variables-async.d.ts +0 -7
  398. package/build/types/integrations/local-variables/local-variables-async.d.ts.map +0 -1
  399. package/build/types/integrations/local-variables/local-variables-sync.d.ts +0 -34
  400. package/build/types/integrations/local-variables/local-variables-sync.d.ts.map +0 -1
  401. package/build/types/integrations/local-variables/worker.d.ts +0 -2
  402. package/build/types/integrations/local-variables/worker.d.ts.map +0 -1
  403. package/build/types/integrations/modules.d.ts +0 -17
  404. package/build/types/integrations/modules.d.ts.map +0 -1
  405. package/build/types/integrations/node-fetch/SentryNodeFetchInstrumentation.d.ts +0 -56
  406. package/build/types/integrations/node-fetch/SentryNodeFetchInstrumentation.d.ts.map +0 -1
  407. package/build/types/integrations/onuncaughtexception.d.ts +0 -31
  408. package/build/types/integrations/onuncaughtexception.d.ts.map +0 -1
  409. package/build/types/integrations/onunhandledrejection.d.ts +0 -23
  410. package/build/types/integrations/onunhandledrejection.d.ts.map +0 -1
  411. package/build/types/integrations/processSession.d.ts +0 -5
  412. package/build/types/integrations/processSession.d.ts.map +0 -1
  413. package/build/types/integrations/spotlight.d.ts +0 -18
  414. package/build/types/integrations/spotlight.d.ts.map +0 -1
  415. package/build/types/integrations/tracing/vercelai/ai_sdk_attributes.d.ts +0 -669
  416. package/build/types/integrations/tracing/vercelai/ai_sdk_attributes.d.ts.map +0 -1
  417. package/build/types/integrations/winston.d.ts +0 -44
  418. package/build/types/integrations/winston.d.ts.map +0 -1
  419. package/build/types/logs/capture.d.ts +0 -11
  420. package/build/types/logs/capture.d.ts.map +0 -1
  421. package/build/types/logs/exports.d.ts +0 -150
  422. package/build/types/logs/exports.d.ts.map +0 -1
  423. package/build/types/nodeVersion.d.ts +0 -8
  424. package/build/types/nodeVersion.d.ts.map +0 -1
  425. package/build/types/otel/contextManager.d.ts +0 -10
  426. package/build/types/otel/contextManager.d.ts.map +0 -1
  427. package/build/types/otel/instrument.d.ts +0 -23
  428. package/build/types/otel/instrument.d.ts.map +0 -1
  429. package/build/types/proxy/base.d.ts +0 -65
  430. package/build/types/proxy/base.d.ts.map +0 -1
  431. package/build/types/proxy/helpers.d.ts +0 -42
  432. package/build/types/proxy/helpers.d.ts.map +0 -1
  433. package/build/types/proxy/index.d.ts +0 -73
  434. package/build/types/proxy/index.d.ts.map +0 -1
  435. package/build/types/proxy/parse-proxy-response.d.ts +0 -43
  436. package/build/types/proxy/parse-proxy-response.d.ts.map +0 -1
  437. package/build/types/sdk/api.d.ts +0 -8
  438. package/build/types/sdk/api.d.ts.map +0 -1
  439. package/build/types/sdk/client.d.ts +0 -29
  440. package/build/types/sdk/client.d.ts.map +0 -1
  441. package/build/types/sdk/scope.d.ts +0 -7
  442. package/build/types/sdk/scope.d.ts.map +0 -1
  443. package/build/types/transports/http-module.d.ts +0 -31
  444. package/build/types/transports/http-module.d.ts.map +0 -1
  445. package/build/types/transports/http.d.ts +0 -21
  446. package/build/types/transports/http.d.ts.map +0 -1
  447. package/build/types/transports/index.d.ts +0 -3
  448. package/build/types/transports/index.d.ts.map +0 -1
  449. package/build/types/utils/addOriginToSpan.d.ts +0 -5
  450. package/build/types/utils/addOriginToSpan.d.ts.map +0 -1
  451. package/build/types/utils/baggage.d.ts +0 -6
  452. package/build/types/utils/baggage.d.ts.map +0 -1
  453. package/build/types/utils/commonjs.d.ts +0 -3
  454. package/build/types/utils/commonjs.d.ts.map +0 -1
  455. package/build/types/utils/createMissingInstrumentationContext.d.ts +0 -3
  456. package/build/types/utils/createMissingInstrumentationContext.d.ts.map +0 -1
  457. package/build/types/utils/debug.d.ts +0 -5
  458. package/build/types/utils/debug.d.ts.map +0 -1
  459. package/build/types/utils/ensureIsWrapped.d.ts +0 -5
  460. package/build/types/utils/ensureIsWrapped.d.ts.map +0 -1
  461. package/build/types/utils/entry-point.d.ts +0 -24
  462. package/build/types/utils/entry-point.d.ts.map +0 -1
  463. package/build/types/utils/envToBool.d.ts +0 -13
  464. package/build/types/utils/envToBool.d.ts.map +0 -1
  465. package/build/types/utils/errorhandling.d.ts +0 -5
  466. package/build/types/utils/errorhandling.d.ts.map +0 -1
  467. package/build/types/utils/getRequestUrl.d.ts +0 -5
  468. package/build/types/utils/getRequestUrl.d.ts.map +0 -1
  469. package/build/types/utils/module.d.ts +0 -3
  470. package/build/types/utils/module.d.ts.map +0 -1
  471. package/build/types/utils/prepareEvent.d.ts +0 -17
  472. package/build/types/utils/prepareEvent.d.ts.map +0 -1
  473. package/build/types-ts3.8/cron/common.d.ts +0 -5
  474. package/build/types-ts3.8/cron/cron.d.ts +0 -43
  475. package/build/types-ts3.8/cron/index.d.ts +0 -10
  476. package/build/types-ts3.8/cron/node-cron.d.ts +0 -27
  477. package/build/types-ts3.8/cron/node-schedule.d.ts +0 -19
  478. package/build/types-ts3.8/integrations/anr/common.d.ts +0 -52
  479. package/build/types-ts3.8/integrations/anr/index.d.ts +0 -13
  480. package/build/types-ts3.8/integrations/anr/worker.d.ts +0 -2
  481. package/build/types-ts3.8/integrations/childProcess.d.ts +0 -20
  482. package/build/types-ts3.8/integrations/context.d.ts +0 -30
  483. package/build/types-ts3.8/integrations/contextlines.d.ts +0 -31
  484. package/build/types-ts3.8/integrations/http/SentryHttpInstrumentation.d.ts +0 -133
  485. package/build/types-ts3.8/integrations/local-variables/common.d.ts +0 -66
  486. package/build/types-ts3.8/integrations/local-variables/index.d.ts +0 -4
  487. package/build/types-ts3.8/integrations/local-variables/local-variables-async.d.ts +0 -7
  488. package/build/types-ts3.8/integrations/local-variables/local-variables-sync.d.ts +0 -34
  489. package/build/types-ts3.8/integrations/local-variables/worker.d.ts +0 -2
  490. package/build/types-ts3.8/integrations/modules.d.ts +0 -17
  491. package/build/types-ts3.8/integrations/node-fetch/SentryNodeFetchInstrumentation.d.ts +0 -56
  492. package/build/types-ts3.8/integrations/onuncaughtexception.d.ts +0 -31
  493. package/build/types-ts3.8/integrations/onunhandledrejection.d.ts +0 -23
  494. package/build/types-ts3.8/integrations/processSession.d.ts +0 -5
  495. package/build/types-ts3.8/integrations/spotlight.d.ts +0 -18
  496. package/build/types-ts3.8/integrations/tracing/vercelai/ai_sdk_attributes.d.ts +0 -669
  497. package/build/types-ts3.8/integrations/winston.d.ts +0 -44
  498. package/build/types-ts3.8/logs/capture.d.ts +0 -18
  499. package/build/types-ts3.8/logs/exports.d.ts +0 -150
  500. package/build/types-ts3.8/nodeVersion.d.ts +0 -8
  501. package/build/types-ts3.8/otel/contextManager.d.ts +0 -10
  502. package/build/types-ts3.8/otel/instrument.d.ts +0 -23
  503. package/build/types-ts3.8/proxy/base.d.ts +0 -60
  504. package/build/types-ts3.8/proxy/helpers.d.ts +0 -38
  505. package/build/types-ts3.8/proxy/index.d.ts +0 -74
  506. package/build/types-ts3.8/proxy/parse-proxy-response.d.ts +0 -40
  507. package/build/types-ts3.8/sdk/api.d.ts +0 -8
  508. package/build/types-ts3.8/sdk/client.d.ts +0 -32
  509. package/build/types-ts3.8/sdk/scope.d.ts +0 -7
  510. package/build/types-ts3.8/transports/http-module.d.ts +0 -28
  511. package/build/types-ts3.8/transports/http.d.ts +0 -20
  512. package/build/types-ts3.8/transports/index.d.ts +0 -3
  513. package/build/types-ts3.8/utils/addOriginToSpan.d.ts +0 -5
  514. package/build/types-ts3.8/utils/baggage.d.ts +0 -6
  515. package/build/types-ts3.8/utils/commonjs.d.ts +0 -3
  516. package/build/types-ts3.8/utils/createMissingInstrumentationContext.d.ts +0 -3
  517. package/build/types-ts3.8/utils/debug.d.ts +0 -5
  518. package/build/types-ts3.8/utils/ensureIsWrapped.d.ts +0 -5
  519. package/build/types-ts3.8/utils/entry-point.d.ts +0 -24
  520. package/build/types-ts3.8/utils/envToBool.d.ts +0 -13
  521. package/build/types-ts3.8/utils/errorhandling.d.ts +0 -5
  522. package/build/types-ts3.8/utils/getRequestUrl.d.ts +0 -5
  523. package/build/types-ts3.8/utils/module.d.ts +0 -3
  524. package/build/types-ts3.8/utils/prepareEvent.d.ts +0 -17
@@ -1,3 +0,0 @@
1
- export type { NodeTransportOptions } from './http';
2
- export { makeNodeTransport } from './http';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/transports/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC"}
@@ -1,5 +0,0 @@
1
- import type { Span } from '@opentelemetry/api';
2
- import type { SpanOrigin } from '@sentry/core';
3
- /** Adds an origin to an OTEL Span. */
4
- export declare function addOriginToSpan(span: Span, origin: SpanOrigin): void;
5
- //# sourceMappingURL=addOriginToSpan.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"addOriginToSpan.d.ts","sourceRoot":"","sources":["../../../src/utils/addOriginToSpan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,sCAAsC;AACtC,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI,CAEpE"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Merge two baggage headers into one, where the existing one takes precedence.
3
- * The order of the existing baggage will be preserved, and new entries will be added to the end.
4
- */
5
- export declare function mergeBaggageHeaders<Existing extends string | string[] | number | undefined>(existing: Existing, baggage: string): string | undefined | Existing;
6
- //# sourceMappingURL=baggage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"baggage.d.ts","sourceRoot":"","sources":["../../../src/utils/baggage.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,EACzF,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,MAAM,GACd,MAAM,GAAG,SAAS,GAAG,QAAQ,CAqB/B"}
@@ -1,3 +0,0 @@
1
- /** Detect CommonJS. */
2
- export declare function isCjs(): boolean;
3
- //# sourceMappingURL=commonjs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commonjs.d.ts","sourceRoot":"","sources":["../../../src/utils/commonjs.ts"],"names":[],"mappings":"AAAA,uBAAuB;AACvB,wBAAgB,KAAK,IAAI,OAAO,CAM/B"}
@@ -1,3 +0,0 @@
1
- import type { MissingInstrumentationContext } from '@sentry/core';
2
- export declare const createMissingInstrumentationContext: (pkg: string) => MissingInstrumentationContext;
3
- //# sourceMappingURL=createMissingInstrumentationContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createMissingInstrumentationContext.d.ts","sourceRoot":"","sources":["../../../src/utils/createMissingInstrumentationContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAGlE,eAAO,MAAM,mCAAmC,QAAS,MAAM,KAAG,6BAGhE,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Was the debugger enabled when this function was first called?
3
- */
4
- export declare function isDebuggerEnabled(): Promise<boolean>;
5
- //# sourceMappingURL=debug.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../src/utils/debug.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC,CAY1D"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Checks and warns if a framework isn't wrapped by opentelemetry.
3
- */
4
- export declare function ensureIsWrapped(maybeWrappedFunction: unknown, name: 'express' | 'connect' | 'fastify' | 'hapi' | 'koa'): void;
5
- //# sourceMappingURL=ensureIsWrapped.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ensureIsWrapped.d.ts","sourceRoot":"","sources":["../../../src/utils/ensureIsWrapped.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,wBAAgB,eAAe,CAC7B,oBAAoB,EAAE,OAAO,EAC7B,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,KAAK,GACvD,IAAI,CAwBN"}
@@ -1,24 +0,0 @@
1
- export interface ProcessInterface {
2
- execArgv: string[];
3
- argv: string[];
4
- cwd: () => string;
5
- }
6
- export interface ProcessArgs {
7
- appPath: string;
8
- importPaths: string[];
9
- requirePaths: string[];
10
- }
11
- /**
12
- * Parses the process arguments to determine the app path, import paths, and require paths.
13
- */
14
- export declare function parseProcessPaths(proc: ProcessInterface): ProcessArgs;
15
- /**
16
- * Gets the current entry point type.
17
- *
18
- * `app` means this function was most likely called via the app entry point.
19
- * `import` means this function was most likely called from an --import cli arg.
20
- * `require` means this function was most likely called from a --require cli arg.
21
- * `unknown` means we couldn't determine for sure.
22
- */
23
- export declare function getEntryPointType(proc?: ProcessInterface): 'import' | 'require' | 'app' | 'unknown';
24
- //# sourceMappingURL=entry-point.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entry-point.d.ts","sourceRoot":"","sources":["../../../src/utils/entry-point.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,GAAG,EAAE,MAAM,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,gBAAgB,GAAG,WAAW,CAUrE;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,GAAE,gBAA0B,GAAG,QAAQ,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,CA2B5G"}
@@ -1,13 +0,0 @@
1
- export declare const FALSY_ENV_VALUES: Set<string>;
2
- export declare const TRUTHY_ENV_VALUES: Set<string>;
3
- export type StrictBoolCast = {
4
- strict: true;
5
- };
6
- export type LooseBoolCast = {
7
- strict?: false;
8
- };
9
- export type BoolCastOptions = StrictBoolCast | LooseBoolCast;
10
- export declare function envToBool(value: unknown, options?: LooseBoolCast): boolean;
11
- export declare function envToBool(value: unknown, options: StrictBoolCast): boolean | null;
12
- export declare function envToBool(value: unknown, options?: BoolCastOptions): boolean | null;
13
- //# sourceMappingURL=envToBool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"envToBool.d.ts","sourceRoot":"","sources":["../../../src/utils/envToBool.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,aAAiD,CAAC;AAC/E,eAAO,MAAM,iBAAiB,aAAgD,CAAC;AAE/E,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,IAAI,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG,aAAa,CAAC;AAE7D,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC;AAC5E,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,GAAG,IAAI,CAAC;AACnF,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,GAAG,IAAI,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * @hidden
3
- */
4
- export declare function logAndExitProcess(error: unknown): void;
5
- //# sourceMappingURL=errorhandling.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errorhandling.d.ts","sourceRoot":"","sources":["../../../src/utils/errorhandling.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CA4BtD"}
@@ -1,5 +0,0 @@
1
- /// <reference types="node" />
2
- import type { RequestOptions } from 'node:http';
3
- /** Build a full URL from request options. */
4
- export declare function getRequestUrl(requestOptions: RequestOptions): string;
5
- //# sourceMappingURL=getRequestUrl.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getRequestUrl.d.ts","sourceRoot":"","sources":["../../../src/utils/getRequestUrl.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,6CAA6C;AAC7C,wBAAgB,aAAa,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAWpE"}
@@ -1,3 +0,0 @@
1
- /** Creates a function that gets the module name from a filename */
2
- export declare function createGetModuleFromFilename(basePath?: string, isWindows?: boolean): (filename: string | undefined) => string | undefined;
3
- //# sourceMappingURL=module.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/utils/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,CAwCtD"}
@@ -1,17 +0,0 @@
1
- import type { CaptureContext, EventHint, ScopeContext } from '@sentry/core';
2
- /**
3
- * This type makes sure that we get either a CaptureContext, OR an EventHint.
4
- * It does not allow mixing them, which could lead to unexpected outcomes, e.g. this is disallowed:
5
- * { user: { id: '123' }, mechanism: { handled: false } }
6
- */
7
- export type ExclusiveEventHintOrCaptureContext = (CaptureContext & Partial<{
8
- [key in keyof EventHint]: never;
9
- }>) | (EventHint & Partial<{
10
- [key in keyof ScopeContext]: never;
11
- }>);
12
- /**
13
- * Parse either an `EventHint` directly, or convert a `CaptureContext` to an `EventHint`.
14
- * This is used to allow to update method signatures that used to accept a `CaptureContext` but should now accept an `EventHint`.
15
- */
16
- export declare function parseEventHintOrCaptureContext(hint: ExclusiveEventHintOrCaptureContext | undefined): EventHint | undefined;
17
- //# sourceMappingURL=prepareEvent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prepareEvent.d.ts","sourceRoot":"","sources":["../../../src/utils/prepareEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAA2B,YAAY,EAAE,MAAM,cAAc,CAAC;AAGrG;;;;GAIG;AACH,MAAM,MAAM,kCAAkC,GAC1C,CAAC,cAAc,GAAG,OAAO,CAAC;KAAG,GAAG,IAAI,MAAM,SAAS,GAAG,KAAK;CAAE,CAAC,CAAC,GAC/D,CAAC,SAAS,GAAG,OAAO,CAAC;KAAG,GAAG,IAAI,MAAM,YAAY,GAAG,KAAK;CAAE,CAAC,CAAC,CAAC;AAElE;;;GAGG;AACH,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,kCAAkC,GAAG,SAAS,GACnD,SAAS,GAAG,SAAS,CAiBvB"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Replaces names in cron expressions
3
- */
4
- export declare function replaceCronNames(cronExpression: string): string;
5
- //# sourceMappingURL=common.d.ts.map
@@ -1,43 +0,0 @@
1
- export type CronJobParams = {
2
- cronTime: string | Date;
3
- onTick: (context: unknown, onComplete?: unknown) => void | Promise<void>;
4
- onComplete?: () => void | Promise<void>;
5
- start?: boolean | null;
6
- context?: unknown;
7
- runOnInit?: boolean | null;
8
- unrefTimeout?: boolean | null;
9
- } & ({
10
- timeZone?: string | null;
11
- utcOffset?: never;
12
- } | {
13
- timeZone?: never;
14
- utcOffset?: number | null;
15
- });
16
- export type CronJob = {};
17
- export type CronJobConstructor = {
18
- from: (param: CronJobParams) => CronJob;
19
- new (cronTime: CronJobParams['cronTime'], onTick: CronJobParams['onTick'], onComplete?: CronJobParams['onComplete'], start?: CronJobParams['start'], timeZone?: CronJobParams['timeZone'], context?: CronJobParams['context'], runOnInit?: CronJobParams['runOnInit'], utcOffset?: null, unrefTimeout?: CronJobParams['unrefTimeout']): CronJob;
20
- new (cronTime: CronJobParams['cronTime'], onTick: CronJobParams['onTick'], onComplete?: CronJobParams['onComplete'], start?: CronJobParams['start'], timeZone?: null, context?: CronJobParams['context'], runOnInit?: CronJobParams['runOnInit'], utcOffset?: CronJobParams['utcOffset'], unrefTimeout?: CronJobParams['unrefTimeout']): CronJob;
21
- };
22
- /**
23
- * Instruments the `cron` library to send a check-in event to Sentry for each job execution.
24
- *
25
- * ```ts
26
- * import * as Sentry from '@sentry/node';
27
- * import { CronJob } from 'cron';
28
- *
29
- * const CronJobWithCheckIn = Sentry.cron.instrumentCron(CronJob, 'my-cron-job');
30
- *
31
- * // use the constructor
32
- * const job = new CronJobWithCheckIn('* * * * *', () => {
33
- * console.log('You will see this message every minute');
34
- * });
35
- *
36
- * // or from
37
- * const job = CronJobWithCheckIn.from({ cronTime: '* * * * *', onTick: () => {
38
- * console.log('You will see this message every minute');
39
- * });
40
- * ```
41
- */
42
- export declare function instrumentCron<T>(lib: T & CronJobConstructor, monitorSlug: string): T;
43
- //# sourceMappingURL=cron.d.ts.map
@@ -1,10 +0,0 @@
1
- import { instrumentCron } from './cron';
2
- import { instrumentNodeCron } from './node-cron';
3
- import { instrumentNodeSchedule } from './node-schedule';
4
- /** Methods to instrument cron libraries for Sentry check-ins */
5
- export declare const cron: {
6
- instrumentCron: typeof instrumentCron;
7
- instrumentNodeCron: typeof instrumentNodeCron;
8
- instrumentNodeSchedule: typeof instrumentNodeSchedule;
9
- };
10
- //# sourceMappingURL=index.d.ts.map
@@ -1,27 +0,0 @@
1
- export interface NodeCronOptions {
2
- name: string;
3
- timezone?: string;
4
- }
5
- export interface NodeCron {
6
- schedule: (cronExpression: string, callback: () => void, options: NodeCronOptions | undefined) => unknown;
7
- }
8
- /**
9
- * Wraps the `node-cron` library with check-in monitoring.
10
- *
11
- * ```ts
12
- * import * as Sentry from "@sentry/node";
13
- * import * as cron from "node-cron";
14
- *
15
- * const cronWithCheckIn = Sentry.cron.instrumentNodeCron(cron);
16
- *
17
- * cronWithCheckIn.schedule(
18
- * "* * * * *",
19
- * () => {
20
- * console.log("running a task every minute");
21
- * },
22
- * { name: "my-cron-job" },
23
- * );
24
- * ```
25
- */
26
- export declare function instrumentNodeCron<T>(lib: Partial<NodeCron> & T): T;
27
- //# sourceMappingURL=node-cron.d.ts.map
@@ -1,19 +0,0 @@
1
- export interface NodeSchedule {
2
- scheduleJob(nameOrExpression: string | Date | object, expressionOrCallback: string | Date | object | (() => void), callback?: () => void): unknown;
3
- }
4
- /**
5
- * Instruments the `node-schedule` library to send a check-in event to Sentry for each job execution.
6
- *
7
- * ```ts
8
- * import * as Sentry from '@sentry/node';
9
- * import * as schedule from 'node-schedule';
10
- *
11
- * const scheduleWithCheckIn = Sentry.cron.instrumentNodeSchedule(schedule);
12
- *
13
- * const job = scheduleWithCheckIn.scheduleJob('my-cron-job', '* * * * *', () => {
14
- * console.log('You will see this message every minute');
15
- * });
16
- * ```
17
- */
18
- export declare function instrumentNodeSchedule<T>(lib: T & NodeSchedule): T;
19
- //# sourceMappingURL=node-schedule.d.ts.map
@@ -1,52 +0,0 @@
1
- import { Contexts, DsnComponents, Primitive, SdkMetadata } from '@sentry/core';
2
- export interface AnrIntegrationOptions {
3
- /**
4
- * Interval to send heartbeat messages to the ANR worker.
5
- *
6
- * Defaults to 50ms.
7
- */
8
- pollInterval: number;
9
- /**
10
- * Threshold in milliseconds to trigger an ANR event.
11
- *
12
- * Defaults to 5000ms.
13
- */
14
- anrThreshold: number;
15
- /**
16
- * Whether to capture a stack trace when the ANR event is triggered.
17
- *
18
- * Defaults to `false`.
19
- *
20
- * This uses the node debugger which enables the inspector API and opens the required ports.
21
- */
22
- captureStackTrace: boolean;
23
- /**
24
- * Maximum number of ANR events to send.
25
- *
26
- * Defaults to 1.
27
- */
28
- maxAnrEvents: number;
29
- /**
30
- * Tags to include with ANR events.
31
- */
32
- staticTags: {
33
- [key: string]: Primitive;
34
- };
35
- /**
36
- * @ignore Internal use only.
37
- *
38
- * If this is supplied, stack frame filenames will be rewritten to be relative to this path.
39
- */
40
- appRootPath: string | undefined;
41
- }
42
- export interface WorkerStartData extends AnrIntegrationOptions {
43
- debug: boolean;
44
- sdkMetadata: SdkMetadata;
45
- dsn: DsnComponents;
46
- tunnel: string | undefined;
47
- release: string | undefined;
48
- environment: string;
49
- dist: string | undefined;
50
- contexts: Contexts;
51
- }
52
- //# sourceMappingURL=common.d.ts.map
@@ -1,13 +0,0 @@
1
- import { Integration } from '@sentry/core';
2
- import { AnrIntegrationOptions } from './common';
3
- export declare const base64WorkerScript = "###AnrWorkerScript###";
4
- type AnrInternal = {
5
- startWorker: () => void;
6
- stopWorker: () => void;
7
- };
8
- type AnrReturn = (options?: Partial<AnrIntegrationOptions>) => Integration & AnrInternal;
9
- export declare const anrIntegration: AnrReturn;
10
- export declare function disableAnrDetectionForCallback<T>(callback: () => T): T;
11
- export declare function disableAnrDetectionForCallback<T>(callback: () => Promise<T>): Promise<T>;
12
- export {};
13
- //# sourceMappingURL=index.d.ts.map
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=worker.d.ts.map
@@ -1,20 +0,0 @@
1
- interface Options {
2
- /**
3
- * Whether to include child process arguments in breadcrumbs data.
4
- *
5
- * @default false
6
- */
7
- includeChildProcessArgs?: boolean;
8
- /**
9
- * Whether to capture errors from worker threads.
10
- *
11
- * @default true
12
- */
13
- captureWorkerErrors?: boolean;
14
- }
15
- /**
16
- * Capture breadcrumbs and events for child processes and worker threads.
17
- */
18
- export declare const childProcessIntegration: (options?: Options | undefined) => import("@sentry/core").Integration;
19
- export {};
20
- //# sourceMappingURL=childProcess.d.ts.map
@@ -1,30 +0,0 @@
1
- /// <reference types="node" />
2
- import { readdir, readFile } from 'node:fs';
3
- import { AppContext, DeviceContext } from '@sentry/core';
4
- export declare const readFileAsync: typeof readFile.__promisify__;
5
- export declare const readDirAsync: typeof readdir.__promisify__;
6
- interface DeviceContextOptions {
7
- cpu?: boolean;
8
- memory?: boolean;
9
- }
10
- interface ContextOptions {
11
- app?: boolean;
12
- os?: boolean;
13
- device?: DeviceContextOptions | boolean;
14
- culture?: boolean;
15
- cloudResource?: boolean;
16
- }
17
- /**
18
- * Capture context about the environment and the device that the client is running on, to events.
19
- */
20
- export declare const nodeContextIntegration: (options?: ContextOptions | undefined) => import("@sentry/core").Integration;
21
- /**
22
- * Get app context information from process
23
- */
24
- export declare function getAppContext(): AppContext;
25
- /**
26
- * Gets device information from os
27
- */
28
- export declare function getDeviceContext(deviceOpt: DeviceContextOptions | true): DeviceContext;
29
- export {};
30
- //# sourceMappingURL=context.d.ts.map
@@ -1,31 +0,0 @@
1
- import { Event, StackFrame } from '@sentry/core';
2
- export declare const MAX_CONTEXTLINES_COLNO: number;
3
- export declare const MAX_CONTEXTLINES_LINENO: number;
4
- interface ContextLinesOptions {
5
- /**
6
- * Sets the number of context lines for each frame when loading a file.
7
- * Defaults to 7.
8
- *
9
- * Set to 0 to disable loading and inclusion of source files.
10
- **/
11
- frameContextLines?: number;
12
- }
13
- /**
14
- * Exported for testing purposes.
15
- */
16
- export declare function resetFileContentCache(): void;
17
- /**
18
- * Resolves context lines before and after the given line number and appends them to the frame;
19
- */
20
- export declare function addContextToFrame(lineno: number, frame: StackFrame, contextLines: number, contents: Record<number, string> | undefined): void;
21
- /** Exported only for tests, as a type-safe variant. */
22
- export declare const _contextLinesIntegration: (options?: ContextLinesOptions) => {
23
- name: string;
24
- processEvent(event: Event): Promise<Event>;
25
- };
26
- /**
27
- * Capture the lines before and after the frame's context.
28
- */
29
- export declare const contextLinesIntegration: (options?: ContextLinesOptions | undefined) => import("@sentry/core").Integration;
30
- export {};
31
- //# sourceMappingURL=contextlines.d.ts.map
@@ -1,133 +0,0 @@
1
- /// <reference types="node" />
2
- import * as http from 'node:http';
3
- import { EventEmitter } from 'node:stream';
4
- import { InstrumentationConfig } from '@opentelemetry/instrumentation';
5
- import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
6
- import { Scope } from '@sentry/core';
7
- export type SentryHttpInstrumentationOptions = InstrumentationConfig & {
8
- /**
9
- * Whether breadcrumbs should be recorded for requests.
10
- *
11
- * @default `true`
12
- */
13
- breadcrumbs?: boolean;
14
- /**
15
- * Whether to extract the trace ID from the `sentry-trace` header for incoming requests.
16
- * By default this is done by the HttpInstrumentation, but if that is not added (e.g. because tracing is disabled, ...)
17
- * then this instrumentation can take over.
18
- *
19
- * @default `false`
20
- */
21
- extractIncomingTraceFromHeader?: boolean;
22
- /**
23
- * Whether to propagate Sentry trace headers in outgoing requests.
24
- * By default this is done by the HttpInstrumentation, but if that is not added (e.g. because tracing is disabled)
25
- * then this instrumentation can take over.
26
- *
27
- * @default `false`
28
- */
29
- propagateTraceInOutgoingRequests?: boolean;
30
- /**
31
- * Do not capture breadcrumbs for outgoing HTTP requests to URLs where the given callback returns `true`.
32
- * For the scope of this instrumentation, this callback only controls breadcrumb creation.
33
- * The same option can be passed to the top-level httpIntegration where it controls both, breadcrumb and
34
- * span creation.
35
- *
36
- * @param url Contains the entire URL, including query string (if any), protocol, host, etc. of the outgoing request.
37
- * @param request Contains the {@type RequestOptions} object used to make the outgoing request.
38
- */
39
- ignoreOutgoingRequests?: (url: string, request: http.RequestOptions) => boolean;
40
- /**
41
- * Do not capture the request body for incoming HTTP requests to URLs where the given callback returns `true`.
42
- * This can be useful for long running requests where the body is not needed and we want to avoid capturing it.
43
- *
44
- * @param url Contains the entire URL, including query string (if any), protocol, host, etc. of the incoming request.
45
- * @param request Contains the {@type RequestOptions} object used to make the incoming request.
46
- */
47
- ignoreIncomingRequestBody?: (url: string, request: http.RequestOptions) => boolean;
48
- /**
49
- * Controls the maximum size of incoming HTTP request bodies attached to events.
50
- *
51
- * Available options:
52
- * - 'none': No request bodies will be attached
53
- * - 'small': Request bodies up to 1,000 bytes will be attached
54
- * - 'medium': Request bodies up to 10,000 bytes will be attached (default)
55
- * - 'always': Request bodies will always be attached
56
- *
57
- * Note that even with 'always' setting, bodies exceeding 1MB will never be attached
58
- * for performance and security reasons.
59
- *
60
- * @default 'medium'
61
- */
62
- maxIncomingRequestBodySize?: 'none' | 'small' | 'medium' | 'always';
63
- /**
64
- * Whether the integration should create [Sessions](https://docs.sentry.io/product/releases/health/#sessions) for incoming requests to track the health and crash-free rate of your releases in Sentry.
65
- * Read more about Release Health: https://docs.sentry.io/product/releases/health/
66
- *
67
- * Defaults to `true`.
68
- */
69
- trackIncomingRequestsAsSessions?: boolean;
70
- /**
71
- * Number of milliseconds until sessions tracked with `trackIncomingRequestsAsSessions` will be flushed as a session aggregate.
72
- *
73
- * Defaults to `60000` (60s).
74
- */
75
- sessionFlushingDelayMS?: number;
76
- };
77
- /**
78
- * This custom HTTP instrumentation is used to isolate incoming requests and annotate them with additional information.
79
- * It does not emit any spans.
80
- *
81
- * The reason this is isolated from the OpenTelemetry instrumentation is that users may overwrite this,
82
- * which would lead to Sentry not working as expected.
83
- *
84
- * Important note: Contrary to other OTEL instrumentation, this one cannot be unwrapped.
85
- * It only does minimal things though and does not emit any spans.
86
- *
87
- * This is heavily inspired & adapted from:
88
- * https://github.com/open-telemetry/opentelemetry-js/blob/f8ab5592ddea5cba0a3b33bf8d74f27872c0367f/experimental/packages/opentelemetry-instrumentation-http/src/http.ts
89
- */
90
- export declare class SentryHttpInstrumentation extends InstrumentationBase<SentryHttpInstrumentationOptions> {
91
- private _propagationDecisionMap;
92
- private _ignoreOutgoingRequestsMap;
93
- constructor(config?: SentryHttpInstrumentationOptions);
94
- /** @inheritdoc */
95
- init(): [
96
- InstrumentationNodeModuleDefinition,
97
- InstrumentationNodeModuleDefinition
98
- ];
99
- /**
100
- * This is triggered when an outgoing request finishes.
101
- * It has access to the final request and response objects.
102
- */
103
- private _onOutgoingRequestFinish;
104
- /**
105
- * This is triggered when an outgoing request is created.
106
- * It has access to the request object, and can mutate it before the request is sent.
107
- */
108
- private _onOutgoingRequestCreated;
109
- /**
110
- * Patch a server.emit function to handle process isolation for incoming requests.
111
- * This will only patch the emit function if it was not already patched.
112
- */
113
- private _patchServerEmitOnce;
114
- /**
115
- * Check if the given outgoing request should be ignored.
116
- */
117
- private _shouldIgnoreOutgoingRequest;
118
- }
119
- /**
120
- * Starts a session and tracks it in the context of a given isolation scope.
121
- * When the passed response is finished, the session is put into a task and is
122
- * aggregated with other sessions that may happen in a certain time window
123
- * (sessionFlushingDelayMs).
124
- *
125
- * The sessions are always aggregated by the client that is on the current scope
126
- * at the time of ending the response (if there is one).
127
- */
128
- export declare function recordRequestSession({ requestIsolationScope, response, sessionFlushingDelayMS, }: {
129
- requestIsolationScope: Scope;
130
- response: EventEmitter;
131
- sessionFlushingDelayMS?: number;
132
- }): void;
133
- //# sourceMappingURL=SentryHttpInstrumentation.d.ts.map
@@ -1,66 +0,0 @@
1
- /// <reference types="node" />
2
- import { Debugger } from 'node:inspector';
3
- export type Variables = Record<string, unknown>;
4
- export type RateLimitIncrement = () => void;
5
- /**
6
- * The key used to store the local variables on the error object.
7
- */
8
- export declare const LOCAL_VARIABLES_KEY = "__SENTRY_ERROR_LOCAL_VARIABLES__";
9
- /**
10
- * Creates a rate limiter that will call the disable callback when the rate limit is reached and the enable callback
11
- * when a timeout has occurred.
12
- * @param maxPerSecond Maximum number of calls per second
13
- * @param enable Callback to enable capture
14
- * @param disable Callback to disable capture
15
- * @returns A function to call to increment the rate limiter count
16
- */
17
- export declare function createRateLimiter(maxPerSecond: number, enable: () => void, disable: (seconds: number) => void): RateLimitIncrement;
18
- export type PausedExceptionEvent = Debugger.PausedEventDataType & {
19
- data: {
20
- description: string;
21
- objectId?: string;
22
- };
23
- };
24
- /** Could this be an anonymous function? */
25
- export declare function isAnonymous(name: string | undefined): boolean;
26
- /** Do the function names appear to match? */
27
- export declare function functionNamesMatch(a: string | undefined, b: string | undefined): boolean;
28
- export interface FrameVariables {
29
- function: string;
30
- vars?: Variables;
31
- }
32
- export interface LocalVariablesIntegrationOptions {
33
- /**
34
- * Capture local variables for both caught and uncaught exceptions
35
- *
36
- * - When false, only uncaught exceptions will have local variables
37
- * - When true, both caught and uncaught exceptions will have local variables.
38
- *
39
- * Defaults to `true`.
40
- *
41
- * Capturing local variables for all exceptions can be expensive since the debugger pauses for every throw to collect
42
- * local variables.
43
- *
44
- * To reduce the likelihood of this feature impacting app performance or throughput, this feature is rate-limited.
45
- * Once the rate limit is reached, local variables will only be captured for uncaught exceptions until a timeout has
46
- * been reached.
47
- */
48
- captureAllExceptions?: boolean;
49
- /**
50
- * Maximum number of exceptions to capture local variables for per second before rate limiting is triggered.
51
- */
52
- maxExceptionsPerSecond?: number;
53
- }
54
- export interface LocalVariablesWorkerArgs extends LocalVariablesIntegrationOptions {
55
- /**
56
- * Whether to enable debug logging.
57
- */
58
- debug: boolean;
59
- /**
60
- * Base path used to calculate module name.
61
- *
62
- * Defaults to `dirname(process.argv[1])` and falls back to `process.cwd()`
63
- */
64
- basePath?: string;
65
- }
66
- //# sourceMappingURL=common.d.ts.map
@@ -1,4 +0,0 @@
1
- import { Integration } from '@sentry/core';
2
- import { LocalVariablesIntegrationOptions } from './common';
3
- export declare const localVariablesIntegration: (options?: LocalVariablesIntegrationOptions) => Integration;
4
- //# sourceMappingURL=index.d.ts.map