@sentry/node 8.41.0 → 8.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (332) hide show
  1. package/build/cjs/index.js +1 -0
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/integrations/anr/index.js +26 -1
  4. package/build/cjs/integrations/anr/index.js.map +1 -1
  5. package/build/cjs/integrations/console.js.map +1 -1
  6. package/build/cjs/integrations/context.js +1 -2
  7. package/build/cjs/integrations/context.js.map +1 -1
  8. package/build/cjs/integrations/contextlines.js.map +1 -1
  9. package/build/cjs/integrations/http/SentryHttpInstrumentation.js +3 -2
  10. package/build/cjs/integrations/http/SentryHttpInstrumentation.js.map +1 -1
  11. package/build/cjs/integrations/http/index.js +12 -9
  12. package/build/cjs/integrations/http/index.js.map +1 -1
  13. package/build/cjs/integrations/http/vendor/getRequestInfo.js +130 -0
  14. package/build/cjs/integrations/http/vendor/getRequestInfo.js.map +1 -0
  15. package/build/cjs/integrations/local-variables/index.js.map +1 -1
  16. package/build/cjs/integrations/local-variables/local-variables-async.js +1 -1
  17. package/build/cjs/integrations/local-variables/local-variables-async.js.map +1 -1
  18. package/build/cjs/integrations/local-variables/local-variables-sync.js.map +1 -1
  19. package/build/cjs/integrations/modules.js.map +1 -1
  20. package/build/cjs/integrations/node-fetch.js +9 -19
  21. package/build/cjs/integrations/node-fetch.js.map +1 -1
  22. package/build/cjs/integrations/onuncaughtexception.js.map +1 -1
  23. package/build/cjs/integrations/onunhandledrejection.js +2 -8
  24. package/build/cjs/integrations/onunhandledrejection.js.map +1 -1
  25. package/build/cjs/integrations/spotlight.js.map +1 -1
  26. package/build/cjs/integrations/tracing/amqplib.js.map +1 -1
  27. package/build/cjs/integrations/tracing/connect.js.map +1 -1
  28. package/build/cjs/integrations/tracing/dataloader.js.map +1 -1
  29. package/build/cjs/integrations/tracing/express.js +1 -0
  30. package/build/cjs/integrations/tracing/express.js.map +1 -1
  31. package/build/cjs/integrations/tracing/fastify.js.map +1 -1
  32. package/build/cjs/integrations/tracing/genericPool.js.map +1 -1
  33. package/build/cjs/integrations/tracing/graphql.js.map +1 -1
  34. package/build/cjs/integrations/tracing/hapi/index.js.map +1 -1
  35. package/build/cjs/integrations/tracing/index.js +5 -2
  36. package/build/cjs/integrations/tracing/index.js.map +1 -1
  37. package/build/cjs/integrations/tracing/kafka.js.map +1 -1
  38. package/build/cjs/integrations/tracing/knex.js.map +1 -1
  39. package/build/cjs/integrations/tracing/koa.js.map +1 -1
  40. package/build/cjs/integrations/tracing/lrumemoizer.js.map +1 -1
  41. package/build/cjs/integrations/tracing/mongo.js.map +1 -1
  42. package/build/cjs/integrations/tracing/mongoose.js.map +1 -1
  43. package/build/cjs/integrations/tracing/mysql.js.map +1 -1
  44. package/build/cjs/integrations/tracing/mysql2.js.map +1 -1
  45. package/build/cjs/integrations/tracing/nest/helpers.js.map +1 -1
  46. package/build/cjs/integrations/tracing/nest/nest.js +9 -2
  47. package/build/cjs/integrations/tracing/nest/nest.js.map +1 -1
  48. package/build/cjs/integrations/tracing/nest/sentry-nest-event-instrumentation.js.map +1 -1
  49. package/build/cjs/integrations/tracing/nest/sentry-nest-instrumentation.js.map +1 -1
  50. package/build/cjs/integrations/tracing/postgres.js.map +1 -1
  51. package/build/cjs/integrations/tracing/prisma.js.map +1 -1
  52. package/build/cjs/integrations/tracing/redis.js.map +1 -1
  53. package/build/cjs/integrations/tracing/tedious.js.map +1 -1
  54. package/build/cjs/integrations/tracing/vercelai/index.js +202 -0
  55. package/build/cjs/integrations/tracing/vercelai/index.js.map +1 -0
  56. package/build/cjs/integrations/tracing/vercelai/instrumentation.js +75 -0
  57. package/build/cjs/integrations/tracing/vercelai/instrumentation.js.map +1 -0
  58. package/build/cjs/otel/instrument.js +6 -4
  59. package/build/cjs/otel/instrument.js.map +1 -1
  60. package/build/cjs/proxy/base.js +0 -1
  61. package/build/cjs/proxy/base.js.map +1 -1
  62. package/build/cjs/sdk/api.js +0 -3
  63. package/build/cjs/sdk/api.js.map +1 -1
  64. package/build/cjs/sdk/client.js.map +1 -1
  65. package/build/cjs/sdk/index.js +2 -1
  66. package/build/cjs/sdk/index.js.map +1 -1
  67. package/build/cjs/sdk/initOtel.js +30 -5
  68. package/build/cjs/sdk/initOtel.js.map +1 -1
  69. package/build/cjs/transports/http.js.map +1 -1
  70. package/build/cjs/utils/addOriginToSpan.js.map +1 -1
  71. package/build/cjs/utils/createMissingInstrumentationContext.js.map +1 -1
  72. package/build/cjs/utils/ensureIsWrapped.js.map +1 -1
  73. package/build/cjs/utils/errorhandling.js.map +1 -1
  74. package/build/cjs/utils/module.js +8 -10
  75. package/build/cjs/utils/module.js.map +1 -1
  76. package/build/esm/index.js +1 -1
  77. package/build/esm/integrations/anr/index.js +27 -3
  78. package/build/esm/integrations/anr/index.js.map +1 -1
  79. package/build/esm/integrations/anr/worker-script.js +2 -2
  80. package/build/esm/integrations/console.js.map +1 -1
  81. package/build/esm/integrations/context.js +1 -2
  82. package/build/esm/integrations/context.js.map +1 -1
  83. package/build/esm/integrations/contextlines.js.map +1 -1
  84. package/build/esm/integrations/http/SentryHttpInstrumentation.js +3 -2
  85. package/build/esm/integrations/http/SentryHttpInstrumentation.js.map +1 -1
  86. package/build/esm/integrations/http/index.js +12 -9
  87. package/build/esm/integrations/http/index.js.map +1 -1
  88. package/build/esm/integrations/http/vendor/getRequestInfo.js +128 -0
  89. package/build/esm/integrations/http/vendor/getRequestInfo.js.map +1 -0
  90. package/build/esm/integrations/local-variables/index.js.map +1 -1
  91. package/build/esm/integrations/local-variables/local-variables-async.js +1 -1
  92. package/build/esm/integrations/local-variables/local-variables-async.js.map +1 -1
  93. package/build/esm/integrations/local-variables/local-variables-sync.js.map +1 -1
  94. package/build/esm/integrations/local-variables/worker-script.js +2 -2
  95. package/build/esm/integrations/modules.js.map +1 -1
  96. package/build/esm/integrations/node-fetch.js +10 -20
  97. package/build/esm/integrations/node-fetch.js.map +1 -1
  98. package/build/esm/integrations/onuncaughtexception.js.map +1 -1
  99. package/build/esm/integrations/onunhandledrejection.js +2 -8
  100. package/build/esm/integrations/onunhandledrejection.js.map +1 -1
  101. package/build/esm/integrations/spotlight.js.map +1 -1
  102. package/build/esm/integrations/tracing/amqplib.js.map +1 -1
  103. package/build/esm/integrations/tracing/connect.js.map +1 -1
  104. package/build/esm/integrations/tracing/dataloader.js.map +1 -1
  105. package/build/esm/integrations/tracing/express.js +1 -0
  106. package/build/esm/integrations/tracing/express.js.map +1 -1
  107. package/build/esm/integrations/tracing/fastify.js.map +1 -1
  108. package/build/esm/integrations/tracing/genericPool.js.map +1 -1
  109. package/build/esm/integrations/tracing/graphql.js.map +1 -1
  110. package/build/esm/integrations/tracing/hapi/index.js.map +1 -1
  111. package/build/esm/integrations/tracing/index.js +3 -0
  112. package/build/esm/integrations/tracing/index.js.map +1 -1
  113. package/build/esm/integrations/tracing/kafka.js.map +1 -1
  114. package/build/esm/integrations/tracing/knex.js.map +1 -1
  115. package/build/esm/integrations/tracing/koa.js.map +1 -1
  116. package/build/esm/integrations/tracing/lrumemoizer.js.map +1 -1
  117. package/build/esm/integrations/tracing/mongo.js.map +1 -1
  118. package/build/esm/integrations/tracing/mongoose.js.map +1 -1
  119. package/build/esm/integrations/tracing/mysql.js.map +1 -1
  120. package/build/esm/integrations/tracing/mysql2.js.map +1 -1
  121. package/build/esm/integrations/tracing/nest/helpers.js.map +1 -1
  122. package/build/esm/integrations/tracing/nest/nest.js +9 -2
  123. package/build/esm/integrations/tracing/nest/nest.js.map +1 -1
  124. package/build/esm/integrations/tracing/nest/sentry-nest-event-instrumentation.js.map +1 -1
  125. package/build/esm/integrations/tracing/nest/sentry-nest-instrumentation.js.map +1 -1
  126. package/build/esm/integrations/tracing/postgres.js.map +1 -1
  127. package/build/esm/integrations/tracing/prisma.js.map +1 -1
  128. package/build/esm/integrations/tracing/redis.js.map +1 -1
  129. package/build/esm/integrations/tracing/tedious.js.map +1 -1
  130. package/build/esm/integrations/tracing/vercelai/index.js +196 -0
  131. package/build/esm/integrations/tracing/vercelai/index.js.map +1 -0
  132. package/build/esm/integrations/tracing/vercelai/instrumentation.js +73 -0
  133. package/build/esm/integrations/tracing/vercelai/instrumentation.js.map +1 -0
  134. package/build/esm/otel/instrument.js +4 -2
  135. package/build/esm/otel/instrument.js.map +1 -1
  136. package/build/esm/package.json +1 -1
  137. package/build/esm/proxy/base.js +0 -1
  138. package/build/esm/proxy/base.js.map +1 -1
  139. package/build/esm/sdk/api.js +0 -3
  140. package/build/esm/sdk/api.js.map +1 -1
  141. package/build/esm/sdk/client.js.map +1 -1
  142. package/build/esm/sdk/index.js +2 -1
  143. package/build/esm/sdk/index.js.map +1 -1
  144. package/build/esm/sdk/initOtel.js +30 -6
  145. package/build/esm/sdk/initOtel.js.map +1 -1
  146. package/build/esm/transports/http.js.map +1 -1
  147. package/build/esm/utils/addOriginToSpan.js.map +1 -1
  148. package/build/esm/utils/createMissingInstrumentationContext.js.map +1 -1
  149. package/build/esm/utils/ensureIsWrapped.js.map +1 -1
  150. package/build/esm/utils/errorhandling.js.map +1 -1
  151. package/build/esm/utils/module.js +8 -10
  152. package/build/esm/utils/module.js.map +1 -1
  153. package/build/types/index.d.ts +2 -2
  154. package/build/types/index.d.ts.map +1 -1
  155. package/build/types/integrations/anr/common.d.ts +1 -1
  156. package/build/types/integrations/anr/common.d.ts.map +1 -1
  157. package/build/types/integrations/anr/index.d.ts +3 -1
  158. package/build/types/integrations/anr/index.d.ts.map +1 -1
  159. package/build/types/integrations/childProcess.d.ts +2 -2
  160. package/build/types/integrations/childProcess.d.ts.map +1 -1
  161. package/build/types/integrations/console.d.ts +1 -1
  162. package/build/types/integrations/console.d.ts.map +1 -1
  163. package/build/types/integrations/context.d.ts +2 -2
  164. package/build/types/integrations/context.d.ts.map +1 -1
  165. package/build/types/integrations/contextlines.d.ts +2 -2
  166. package/build/types/integrations/contextlines.d.ts.map +1 -1
  167. package/build/types/integrations/fs.d.ts +1 -1
  168. package/build/types/integrations/fs.d.ts.map +1 -1
  169. package/build/types/integrations/http/SentryHttpInstrumentation.d.ts.map +1 -1
  170. package/build/types/integrations/http/index.d.ts +11 -2
  171. package/build/types/integrations/http/index.d.ts.map +1 -1
  172. package/build/types/integrations/http/vendor/getRequestInfo.d.ts +21 -0
  173. package/build/types/integrations/http/vendor/getRequestInfo.d.ts.map +1 -0
  174. package/build/types/integrations/local-variables/index.d.ts +1 -1
  175. package/build/types/integrations/local-variables/index.d.ts.map +1 -1
  176. package/build/types/integrations/local-variables/local-variables-async.d.ts +1 -1
  177. package/build/types/integrations/local-variables/local-variables-async.d.ts.map +1 -1
  178. package/build/types/integrations/local-variables/local-variables-sync.d.ts +2 -2
  179. package/build/types/integrations/local-variables/local-variables-sync.d.ts.map +1 -1
  180. package/build/types/integrations/modules.d.ts +1 -1
  181. package/build/types/integrations/modules.d.ts.map +1 -1
  182. package/build/types/integrations/node-fetch.d.ts +1 -1
  183. package/build/types/integrations/node-fetch.d.ts.map +1 -1
  184. package/build/types/integrations/onuncaughtexception.d.ts +1 -1
  185. package/build/types/integrations/onuncaughtexception.d.ts.map +1 -1
  186. package/build/types/integrations/onunhandledrejection.d.ts +2 -2
  187. package/build/types/integrations/onunhandledrejection.d.ts.map +1 -1
  188. package/build/types/integrations/spotlight.d.ts +1 -1
  189. package/build/types/integrations/spotlight.d.ts.map +1 -1
  190. package/build/types/integrations/tracing/amqplib.d.ts +1 -1
  191. package/build/types/integrations/tracing/amqplib.d.ts.map +1 -1
  192. package/build/types/integrations/tracing/connect.d.ts +1 -1
  193. package/build/types/integrations/tracing/connect.d.ts.map +1 -1
  194. package/build/types/integrations/tracing/dataloader.d.ts +1 -1
  195. package/build/types/integrations/tracing/dataloader.d.ts.map +1 -1
  196. package/build/types/integrations/tracing/express.d.ts +1 -1
  197. package/build/types/integrations/tracing/express.d.ts.map +1 -1
  198. package/build/types/integrations/tracing/fastify.d.ts +1 -1
  199. package/build/types/integrations/tracing/fastify.d.ts.map +1 -1
  200. package/build/types/integrations/tracing/genericPool.d.ts +1 -1
  201. package/build/types/integrations/tracing/genericPool.d.ts.map +1 -1
  202. package/build/types/integrations/tracing/graphql.d.ts +1 -1
  203. package/build/types/integrations/tracing/graphql.d.ts.map +1 -1
  204. package/build/types/integrations/tracing/hapi/index.d.ts +1 -1
  205. package/build/types/integrations/tracing/hapi/index.d.ts.map +1 -1
  206. package/build/types/integrations/tracing/index.d.ts +1 -1
  207. package/build/types/integrations/tracing/index.d.ts.map +1 -1
  208. package/build/types/integrations/tracing/kafka.d.ts +1 -1
  209. package/build/types/integrations/tracing/kafka.d.ts.map +1 -1
  210. package/build/types/integrations/tracing/knex.d.ts +1 -1
  211. package/build/types/integrations/tracing/knex.d.ts.map +1 -1
  212. package/build/types/integrations/tracing/koa.d.ts +1 -1
  213. package/build/types/integrations/tracing/koa.d.ts.map +1 -1
  214. package/build/types/integrations/tracing/lrumemoizer.d.ts +1 -1
  215. package/build/types/integrations/tracing/lrumemoizer.d.ts.map +1 -1
  216. package/build/types/integrations/tracing/mongo.d.ts +1 -1
  217. package/build/types/integrations/tracing/mongo.d.ts.map +1 -1
  218. package/build/types/integrations/tracing/mongoose.d.ts +1 -1
  219. package/build/types/integrations/tracing/mongoose.d.ts.map +1 -1
  220. package/build/types/integrations/tracing/mysql.d.ts +1 -15
  221. package/build/types/integrations/tracing/mysql.d.ts.map +1 -1
  222. package/build/types/integrations/tracing/mysql2.d.ts +1 -1
  223. package/build/types/integrations/tracing/mysql2.d.ts.map +1 -1
  224. package/build/types/integrations/tracing/nest/helpers.d.ts +1 -1
  225. package/build/types/integrations/tracing/nest/helpers.d.ts.map +1 -1
  226. package/build/types/integrations/tracing/nest/nest.d.ts +1 -1
  227. package/build/types/integrations/tracing/nest/nest.d.ts.map +1 -1
  228. package/build/types/integrations/tracing/nest/sentry-nest-event-instrumentation.d.ts.map +1 -1
  229. package/build/types/integrations/tracing/nest/sentry-nest-instrumentation.d.ts.map +1 -1
  230. package/build/types/integrations/tracing/nest/types.d.ts +14 -6
  231. package/build/types/integrations/tracing/nest/types.d.ts.map +1 -1
  232. package/build/types/integrations/tracing/postgres.d.ts +1 -1
  233. package/build/types/integrations/tracing/postgres.d.ts.map +1 -1
  234. package/build/types/integrations/tracing/prisma.d.ts +1 -1
  235. package/build/types/integrations/tracing/prisma.d.ts.map +1 -1
  236. package/build/types/integrations/tracing/redis.d.ts +1 -1
  237. package/build/types/integrations/tracing/redis.d.ts.map +1 -1
  238. package/build/types/integrations/tracing/tedious.d.ts +1 -1
  239. package/build/types/integrations/tracing/tedious.d.ts.map +1 -1
  240. package/build/types/integrations/tracing/vercelai/index.d.ts +40 -0
  241. package/build/types/integrations/tracing/vercelai/index.d.ts.map +1 -0
  242. package/build/types/integrations/tracing/vercelai/instrumentation.d.ts +21 -0
  243. package/build/types/integrations/tracing/vercelai/instrumentation.d.ts.map +1 -0
  244. package/build/types/integrations/tracing/vercelai/types.d.ts +38 -0
  245. package/build/types/integrations/tracing/vercelai/types.d.ts.map +1 -0
  246. package/build/types/otel/instrument.d.ts +1 -1
  247. package/build/types/otel/instrument.d.ts.map +1 -1
  248. package/build/types/proxy/base.d.ts.map +1 -1
  249. package/build/types/sdk/api.d.ts +1 -1
  250. package/build/types/sdk/api.d.ts.map +1 -1
  251. package/build/types/sdk/client.d.ts +1 -2
  252. package/build/types/sdk/client.d.ts.map +1 -1
  253. package/build/types/sdk/index.d.ts +1 -1
  254. package/build/types/sdk/index.d.ts.map +1 -1
  255. package/build/types/sdk/initOtel.d.ts +2 -0
  256. package/build/types/sdk/initOtel.d.ts.map +1 -1
  257. package/build/types/sdk/scope.d.ts +1 -1
  258. package/build/types/sdk/scope.d.ts.map +1 -1
  259. package/build/types/transports/http.d.ts +1 -1
  260. package/build/types/transports/http.d.ts.map +1 -1
  261. package/build/types/types.d.ts +2 -2
  262. package/build/types/types.d.ts.map +1 -1
  263. package/build/types/utils/addOriginToSpan.d.ts +1 -1
  264. package/build/types/utils/addOriginToSpan.d.ts.map +1 -1
  265. package/build/types/utils/createMissingInstrumentationContext.d.ts +1 -1
  266. package/build/types/utils/createMissingInstrumentationContext.d.ts.map +1 -1
  267. package/build/types/utils/ensureIsWrapped.d.ts.map +1 -1
  268. package/build/types/utils/entry-point.d.ts +24 -0
  269. package/build/types/utils/entry-point.d.ts.map +1 -0
  270. package/build/types/utils/errorhandling.d.ts +1 -1
  271. package/build/types/utils/errorhandling.d.ts.map +1 -1
  272. package/build/types/utils/module.d.ts.map +1 -1
  273. package/build/types/utils/prepareEvent.d.ts +1 -1
  274. package/build/types/utils/prepareEvent.d.ts.map +1 -1
  275. package/build/types-ts3.8/index.d.ts +2 -2
  276. package/build/types-ts3.8/integrations/anr/common.d.ts +1 -1
  277. package/build/types-ts3.8/integrations/anr/index.d.ts +3 -1
  278. package/build/types-ts3.8/integrations/childProcess.d.ts +2 -2
  279. package/build/types-ts3.8/integrations/console.d.ts +1 -1
  280. package/build/types-ts3.8/integrations/context.d.ts +2 -2
  281. package/build/types-ts3.8/integrations/contextlines.d.ts +2 -2
  282. package/build/types-ts3.8/integrations/fs.d.ts +1 -1
  283. package/build/types-ts3.8/integrations/http/index.d.ts +11 -2
  284. package/build/types-ts3.8/integrations/http/vendor/getRequestInfo.d.ts +21 -0
  285. package/build/types-ts3.8/integrations/local-variables/index.d.ts +1 -1
  286. package/build/types-ts3.8/integrations/local-variables/local-variables-async.d.ts +1 -1
  287. package/build/types-ts3.8/integrations/local-variables/local-variables-sync.d.ts +2 -2
  288. package/build/types-ts3.8/integrations/modules.d.ts +1 -1
  289. package/build/types-ts3.8/integrations/node-fetch.d.ts +1 -1
  290. package/build/types-ts3.8/integrations/onuncaughtexception.d.ts +1 -1
  291. package/build/types-ts3.8/integrations/onunhandledrejection.d.ts +2 -2
  292. package/build/types-ts3.8/integrations/spotlight.d.ts +1 -1
  293. package/build/types-ts3.8/integrations/tracing/amqplib.d.ts +1 -1
  294. package/build/types-ts3.8/integrations/tracing/connect.d.ts +1 -1
  295. package/build/types-ts3.8/integrations/tracing/dataloader.d.ts +1 -1
  296. package/build/types-ts3.8/integrations/tracing/express.d.ts +1 -1
  297. package/build/types-ts3.8/integrations/tracing/fastify.d.ts +1 -1
  298. package/build/types-ts3.8/integrations/tracing/genericPool.d.ts +1 -1
  299. package/build/types-ts3.8/integrations/tracing/graphql.d.ts +1 -1
  300. package/build/types-ts3.8/integrations/tracing/hapi/index.d.ts +1 -1
  301. package/build/types-ts3.8/integrations/tracing/index.d.ts +1 -1
  302. package/build/types-ts3.8/integrations/tracing/kafka.d.ts +1 -1
  303. package/build/types-ts3.8/integrations/tracing/knex.d.ts +1 -1
  304. package/build/types-ts3.8/integrations/tracing/koa.d.ts +1 -1
  305. package/build/types-ts3.8/integrations/tracing/lrumemoizer.d.ts +1 -1
  306. package/build/types-ts3.8/integrations/tracing/mongo.d.ts +1 -1
  307. package/build/types-ts3.8/integrations/tracing/mongoose.d.ts +1 -1
  308. package/build/types-ts3.8/integrations/tracing/mysql.d.ts +1 -15
  309. package/build/types-ts3.8/integrations/tracing/mysql2.d.ts +1 -1
  310. package/build/types-ts3.8/integrations/tracing/nest/helpers.d.ts +1 -1
  311. package/build/types-ts3.8/integrations/tracing/nest/nest.d.ts +1 -1
  312. package/build/types-ts3.8/integrations/tracing/nest/types.d.ts +14 -6
  313. package/build/types-ts3.8/integrations/tracing/postgres.d.ts +1 -1
  314. package/build/types-ts3.8/integrations/tracing/prisma.d.ts +1 -1
  315. package/build/types-ts3.8/integrations/tracing/redis.d.ts +1 -1
  316. package/build/types-ts3.8/integrations/tracing/tedious.d.ts +1 -1
  317. package/build/types-ts3.8/integrations/tracing/vercelai/index.d.ts +40 -0
  318. package/build/types-ts3.8/integrations/tracing/vercelai/instrumentation.d.ts +21 -0
  319. package/build/types-ts3.8/integrations/tracing/vercelai/types.d.ts +38 -0
  320. package/build/types-ts3.8/sdk/api.d.ts +1 -1
  321. package/build/types-ts3.8/sdk/client.d.ts +1 -2
  322. package/build/types-ts3.8/sdk/index.d.ts +1 -1
  323. package/build/types-ts3.8/sdk/initOtel.d.ts +2 -0
  324. package/build/types-ts3.8/sdk/scope.d.ts +1 -1
  325. package/build/types-ts3.8/transports/http.d.ts +1 -1
  326. package/build/types-ts3.8/types.d.ts +2 -2
  327. package/build/types-ts3.8/utils/addOriginToSpan.d.ts +1 -1
  328. package/build/types-ts3.8/utils/createMissingInstrumentationContext.d.ts +1 -1
  329. package/build/types-ts3.8/utils/entry-point.d.ts +24 -0
  330. package/build/types-ts3.8/utils/errorhandling.d.ts +1 -1
  331. package/build/types-ts3.8/utils/prepareEvent.d.ts +1 -1
  332. package/package.json +33 -34
@@ -1,18 +1,4 @@
1
1
  export declare const instrumentMysql: ((options?: unknown) => void) & {
2
- /**
3
- * Adds Sentry tracing instrumentation for the [mysql](https://www.npmjs.com/package/mysql) library.
4
- *
5
- * For more information, see the [`mysqlIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/mysql/).
6
- *
7
- * @example
8
- * ```javascript
9
- * const Sentry = require('@sentry/node');
10
- *
11
- * Sentry.init({
12
- * integrations: [Sentry.mysqlIntegration()],
13
- * });
14
- * ```
15
- */
16
2
  id: string;
17
3
  };
18
4
  /**
@@ -29,5 +15,5 @@ export declare const instrumentMysql: ((options?: unknown) => void) & {
29
15
  * });
30
16
  * ```
31
17
  */
32
- export declare const mysqlIntegration: () => import("@sentry/types").Integration;
18
+ export declare const mysqlIntegration: () => import("@sentry/core").Integration;
33
19
  //# sourceMappingURL=mysql.d.ts.map
@@ -15,5 +15,5 @@ export declare const instrumentMysql2: ((options?: unknown) => void) & {
15
15
  * });
16
16
  * ```
17
17
  */
18
- export declare const mysql2Integration: () => import("@sentry/types").Integration;
18
+ export declare const mysql2Integration: () => import("@sentry/core").Integration;
19
19
  //# sourceMappingURL=mysql2.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Span } from '@sentry/types';
1
+ import { Span } from '@sentry/core';
2
2
  import { CatchTarget, InjectableTarget, NextFunction, Observable } from './types';
3
3
  /**
4
4
  * Helper checking if a concrete target class is already patched.
@@ -7,7 +7,7 @@ export declare const instrumentNest: (() => void) & {
7
7
  *
8
8
  * @deprecated The `nestIntegration` is deprecated. Instead, use the NestJS SDK directly (`@sentry/nestjs`), or use the `nestIntegration` export from `@sentry/nestjs`.
9
9
  */
10
- export declare const nestIntegration: () => import("@sentry/types").Integration;
10
+ export declare const nestIntegration: () => import("@sentry/core").Integration;
11
11
  /**
12
12
  * Setup an error handler for Nest.
13
13
  *
@@ -1,12 +1,19 @@
1
+ interface FastifyRequest {
2
+ routeOptions?: {
3
+ method?: string;
4
+ url?: string;
5
+ };
6
+ }
7
+ interface ExpressRequest {
8
+ route?: {
9
+ path?: string;
10
+ };
11
+ method?: string;
12
+ }
1
13
  export interface MinimalNestJsExecutionContext {
2
14
  getType: () => string;
3
15
  switchToHttp: () => {
4
- getRequest: () => {
5
- route?: {
6
- path?: string;
7
- };
8
- method?: string;
9
- };
16
+ getRequest: () => FastifyRequest | ExpressRequest;
10
17
  };
11
18
  _sentryInterceptorInstrumented?: boolean;
12
19
  }
@@ -73,4 +80,5 @@ export interface OnEventTarget {
73
80
  * Represents an express NextFunction.
74
81
  */
75
82
  export type NextFunction = (err?: any) => void;
83
+ export {};
76
84
  //# sourceMappingURL=types.d.ts.map
@@ -15,5 +15,5 @@ export declare const instrumentPostgres: ((options?: unknown) => void) & {
15
15
  * });
16
16
  * ```
17
17
  */
18
- export declare const postgresIntegration: () => import("@sentry/types").Integration;
18
+ export declare const postgresIntegration: () => import("@sentry/core").Integration;
19
19
  //# sourceMappingURL=postgres.d.ts.map
@@ -28,5 +28,5 @@ export declare const instrumentPrisma: ((options?: unknown) => void) & {
28
28
  * });
29
29
  * ```
30
30
  */
31
- export declare const prismaIntegration: () => import("@sentry/types").Integration;
31
+ export declare const prismaIntegration: () => import("@sentry/core").Integration;
32
32
  //# sourceMappingURL=prisma.d.ts.map
@@ -20,6 +20,6 @@ export declare const instrumentRedis: (() => void) & {
20
20
  * });
21
21
  * ```
22
22
  */
23
- export declare const redisIntegration: (options?: RedisOptions | undefined) => import("@sentry/types").Integration;
23
+ export declare const redisIntegration: (options?: RedisOptions | undefined) => import("@sentry/core").Integration;
24
24
  export {};
25
25
  //# sourceMappingURL=redis.d.ts.map
@@ -15,5 +15,5 @@ export declare const instrumentTedious: ((options?: unknown) => void) & {
15
15
  * });
16
16
  * ```
17
17
  */
18
- export declare const tediousIntegration: () => import("@sentry/types").Integration;
18
+ export declare const tediousIntegration: () => import("@sentry/core").Integration;
19
19
  //# sourceMappingURL=tedious.d.ts.map
@@ -0,0 +1,40 @@
1
+ export declare const instrumentVercelAi: ((options?: unknown) => void) & {
2
+ id: string;
3
+ };
4
+ /**
5
+ * Adds Sentry tracing instrumentation for the [ai](https://www.npmjs.com/package/ai) library.
6
+ *
7
+ * For more information, see the [`ai` documentation](https://sdk.vercel.ai/docs/ai-sdk-core/telemetry).
8
+ *
9
+ * @example
10
+ * ```javascript
11
+ * const Sentry = require('@sentry/node');
12
+ *
13
+ * Sentry.init({
14
+ * integrations: [Sentry.vercelAIIntegration()],
15
+ * });
16
+ * ```
17
+ *
18
+ * By default this integration adds tracing support to all `ai` function calls. If you need to disable
19
+ * collecting spans for a specific call, you can do so by setting `experimental_telemetry.isEnabled` to
20
+ * `false` in the first argument of the function call.
21
+ *
22
+ * ```javascript
23
+ * const result = await generateText({
24
+ * model: openai('gpt-4-turbo'),
25
+ * experimental_telemetry: { isEnabled: false },
26
+ * });
27
+ * ```
28
+ *
29
+ * If you want to collect inputs and outputs for a specific call, you must specifically opt-in to each
30
+ * function call by setting `experimental_telemetry.recordInputs` and `experimental_telemetry.recordOutputs`
31
+ * to `true`.
32
+ *
33
+ * ```javascript
34
+ * const result = await generateText({
35
+ * model: openai('gpt-4-turbo'),
36
+ * experimental_telemetry: { isEnabled: true, recordInputs: true, recordOutputs: true },
37
+ * });
38
+ */
39
+ export declare const vercelAIIntegration: () => import("@sentry/core").Integration;
40
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,21 @@
1
+ import { InstrumentationBase } from '@opentelemetry/instrumentation';
2
+ import { InstrumentationConfig, InstrumentationModuleDefinition } from '@opentelemetry/instrumentation';
3
+ export declare let sentryVercelAiPatched: boolean;
4
+ /**
5
+ * This detects is added by the Sentry Vercel AI Integration to detect if the integration should
6
+ * be enabled.
7
+ *
8
+ * It also patches the `ai` module to enable Vercel AI telemetry automatically for all methods.
9
+ */
10
+ export declare class SentryVercelAiInstrumentation extends InstrumentationBase {
11
+ constructor(config?: InstrumentationConfig);
12
+ /**
13
+ * Initializes the instrumentation by defining the modules to be patched.
14
+ */
15
+ init(): InstrumentationModuleDefinition;
16
+ /**
17
+ * Patches module exports to enable Vercel AI telemetry.
18
+ */
19
+ private _patch;
20
+ }
21
+ //# sourceMappingURL=instrumentation.d.ts.map
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Telemetry configuration.
3
+ */
4
+ export type TelemetrySettings = {
5
+ /**
6
+ * Enable or disable telemetry. Disabled by default while experimental.
7
+ */
8
+ isEnabled?: boolean;
9
+ /**
10
+ * Enable or disable input recording. Enabled by default.
11
+ *
12
+ * You might want to disable input recording to avoid recording sensitive
13
+ * information, to reduce data transfers, or to increase performance.
14
+ */
15
+ recordInputs?: boolean;
16
+ /**
17
+ * Enable or disable output recording. Enabled by default.
18
+ *
19
+ * You might want to disable output recording to avoid recording sensitive
20
+ * information, to reduce data transfers, or to increase performance.
21
+ */
22
+ recordOutputs?: boolean;
23
+ /**
24
+ * Identifier for this function. Used to group telemetry data by function.
25
+ */
26
+ functionId?: string;
27
+ /**
28
+ * Additional information to include in the telemetry data.
29
+ */
30
+ metadata?: Record<string, AttributeValue>;
31
+ };
32
+ /**
33
+ * Attribute values may be any non-nullish primitive value except an object.
34
+ *
35
+ * null or undefined attribute values are invalid and will result in undefined behavior.
36
+ */
37
+ export declare type AttributeValue = string | number | boolean | Array<null | undefined | string> | Array<null | undefined | number> | Array<null | undefined | boolean>;
38
+ //# sourceMappingURL=types.d.ts.map
@@ -1,4 +1,4 @@
1
- import { StackParser } from '@sentry/types';
1
+ import { StackParser } from '@sentry/core';
2
2
  /**
3
3
  * Returns a release dynamically from environment variables.
4
4
  */
@@ -1,8 +1,7 @@
1
1
  import { Tracer } from '@opentelemetry/api';
2
2
  import { BasicTracerProvider } from '@opentelemetry/sdk-trace-base';
3
- import { Scope } from '@sentry/core';
3
+ import { DynamicSamplingContext, Scope, TraceContext } from '@sentry/core';
4
4
  import { ServerRuntimeClient } from '@sentry/core';
5
- import { DynamicSamplingContext, TraceContext } from '@sentry/types';
6
5
  import { NodeClientOptions } from '../types';
7
6
  /** A client for using Sentry with Node & OpenTelemetry. */
8
7
  export declare class NodeClient extends ServerRuntimeClient<NodeClientOptions> {
@@ -1,4 +1,4 @@
1
- import { Integration, Options } from '@sentry/types';
1
+ import { Integration, Options } from '@sentry/core';
2
2
  import { NodeOptions } from '../types';
3
3
  import { NodeClient } from './client';
4
4
  /**
@@ -20,5 +20,7 @@ interface NodePreloadOptions {
20
20
  export declare function preloadOpenTelemetry(options?: NodePreloadOptions): void;
21
21
  /** Just exported for tests. */
22
22
  export declare function setupOtel(client: NodeClient): BasicTracerProvider;
23
+ /** Just exported for tests. */
24
+ export declare function _clampSpanProcessorTimeout(maxSpanWaitDuration: number | undefined): number | undefined;
23
25
  export {};
24
26
  //# sourceMappingURL=initOtel.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Scope } from '@sentry/types';
1
+ import { Scope } from '@sentry/core';
2
2
  /**
3
3
  * Update the active isolation scope.
4
4
  * Should be used with caution!
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { BaseTransportOptions, Transport } from '@sentry/types';
2
+ import { BaseTransportOptions, Transport } from '@sentry/core';
3
3
  import { HTTPModule } from './http-module';
4
4
  export interface NodeTransportOptions extends BaseTransportOptions {
5
5
  /** Define custom headers */
@@ -1,7 +1,7 @@
1
1
  import { Span as WriteableSpan } from '@opentelemetry/api';
2
2
  import { Instrumentation } from '@opentelemetry/instrumentation';
3
3
  import { ReadableSpan } from '@opentelemetry/sdk-trace-base';
4
- import { ClientOptions, Options, SamplingContext, Scope, Span, TracePropagationTargets } from '@sentry/types';
4
+ import { ClientOptions, Options, SamplingContext, Scope, Span, TracePropagationTargets } from '@sentry/core';
5
5
  import { NodeTransportOptions } from './transports';
6
6
  /**
7
7
  * Note: In the next major version of the Sentry SDK this interface will be removed and the SDK will by default only wrap
@@ -152,7 +152,7 @@ export interface BaseNodeOptions {
152
152
  }
153
153
  /**
154
154
  * Configuration options for the Sentry Node SDK
155
- * @see @sentry/types Options for more information.
155
+ * @see @sentry/core Options for more information.
156
156
  */
157
157
  export interface NodeOptions extends Options<NodeTransportOptions>, BaseNodeOptions {
158
158
  }
@@ -1,5 +1,5 @@
1
1
  import { Span } from '@opentelemetry/api';
2
- import { SpanOrigin } from '@sentry/types';
2
+ import { SpanOrigin } from '@sentry/core';
3
3
  /** Adds an origin to an OTEL Span. */
4
4
  export declare function addOriginToSpan(span: Span, origin: SpanOrigin): void;
5
5
  //# sourceMappingURL=addOriginToSpan.d.ts.map
@@ -1,3 +1,3 @@
1
- import { MissingInstrumentationContext } from '@sentry/types';
1
+ import { MissingInstrumentationContext } from '@sentry/core';
2
2
  export declare const createMissingInstrumentationContext: (pkg: string) => MissingInstrumentationContext;
3
3
  //# sourceMappingURL=createMissingInstrumentationContext.d.ts.map
@@ -0,0 +1,24 @@
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,5 +1,5 @@
1
1
  /**
2
2
  * @hidden
3
3
  */
4
- export declare function logAndExitProcess(error: Error): void;
4
+ export declare function logAndExitProcess(error: unknown): void;
5
5
  //# sourceMappingURL=errorhandling.d.ts.map
@@ -1,4 +1,4 @@
1
- import { CaptureContext, EventHint, ScopeContext } from '@sentry/types';
1
+ import { CaptureContext, EventHint, ScopeContext } from '@sentry/core';
2
2
  /**
3
3
  * This type makes sure that we get either a CaptureContext, OR an EventHint.
4
4
  * It does not allow mixing them, which could lead to unexpected outcomes, e.g. this is disallowed:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/node",
3
- "version": "8.41.0",
3
+ "version": "8.43.0",
4
4
  "description": "Sentry Node SDK using OpenTelemetry for performance instrumentation",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/node",
@@ -66,40 +66,39 @@
66
66
  },
67
67
  "dependencies": {
68
68
  "@opentelemetry/api": "^1.9.0",
69
- "@opentelemetry/context-async-hooks": "^1.25.1",
70
- "@opentelemetry/core": "^1.25.1",
71
- "@opentelemetry/instrumentation": "^0.54.0",
72
- "@opentelemetry/instrumentation-amqplib": "^0.43.0",
73
- "@opentelemetry/instrumentation-connect": "0.40.0",
74
- "@opentelemetry/instrumentation-dataloader": "0.12.0",
75
- "@opentelemetry/instrumentation-express": "0.44.0",
76
- "@opentelemetry/instrumentation-fastify": "0.41.0",
77
- "@opentelemetry/instrumentation-fs": "0.16.0",
78
- "@opentelemetry/instrumentation-generic-pool": "0.39.0",
79
- "@opentelemetry/instrumentation-graphql": "0.44.0",
80
- "@opentelemetry/instrumentation-hapi": "0.41.0",
81
- "@opentelemetry/instrumentation-http": "0.53.0",
82
- "@opentelemetry/instrumentation-ioredis": "0.43.0",
83
- "@opentelemetry/instrumentation-kafkajs": "0.4.0",
84
- "@opentelemetry/instrumentation-knex": "0.41.0",
85
- "@opentelemetry/instrumentation-koa": "0.43.0",
86
- "@opentelemetry/instrumentation-lru-memoizer": "0.40.0",
87
- "@opentelemetry/instrumentation-mongodb": "0.48.0",
88
- "@opentelemetry/instrumentation-mongoose": "0.42.0",
89
- "@opentelemetry/instrumentation-mysql": "0.41.0",
90
- "@opentelemetry/instrumentation-mysql2": "0.41.0",
91
- "@opentelemetry/instrumentation-nestjs-core": "0.40.0",
92
- "@opentelemetry/instrumentation-pg": "0.44.0",
93
- "@opentelemetry/instrumentation-redis-4": "0.42.0",
94
- "@opentelemetry/instrumentation-tedious": "0.15.0",
95
- "@opentelemetry/instrumentation-undici": "0.6.0",
96
- "@opentelemetry/resources": "^1.26.0",
97
- "@opentelemetry/sdk-trace-base": "^1.26.0",
98
- "@opentelemetry/semantic-conventions": "^1.27.0",
69
+ "@opentelemetry/context-async-hooks": "^1.29.0",
70
+ "@opentelemetry/core": "^1.29.0",
71
+ "@opentelemetry/instrumentation": "^0.56.0",
72
+ "@opentelemetry/instrumentation-amqplib": "^0.45.0",
73
+ "@opentelemetry/instrumentation-connect": "0.42.0",
74
+ "@opentelemetry/instrumentation-dataloader": "0.15.0",
75
+ "@opentelemetry/instrumentation-express": "0.46.0",
76
+ "@opentelemetry/instrumentation-fastify": "0.43.0",
77
+ "@opentelemetry/instrumentation-fs": "0.18.0",
78
+ "@opentelemetry/instrumentation-generic-pool": "0.42.0",
79
+ "@opentelemetry/instrumentation-graphql": "0.46.0",
80
+ "@opentelemetry/instrumentation-hapi": "0.44.0",
81
+ "@opentelemetry/instrumentation-http": "0.56.0",
82
+ "@opentelemetry/instrumentation-ioredis": "0.46.0",
83
+ "@opentelemetry/instrumentation-kafkajs": "0.6.0",
84
+ "@opentelemetry/instrumentation-knex": "0.43.0",
85
+ "@opentelemetry/instrumentation-koa": "0.46.0",
86
+ "@opentelemetry/instrumentation-lru-memoizer": "0.43.0",
87
+ "@opentelemetry/instrumentation-mongodb": "0.50.0",
88
+ "@opentelemetry/instrumentation-mongoose": "0.45.0",
89
+ "@opentelemetry/instrumentation-mysql": "0.44.0",
90
+ "@opentelemetry/instrumentation-mysql2": "0.44.0",
91
+ "@opentelemetry/instrumentation-nestjs-core": "0.43.0",
92
+ "@opentelemetry/instrumentation-pg": "0.49.0",
93
+ "@opentelemetry/instrumentation-redis-4": "0.45.0",
94
+ "@opentelemetry/instrumentation-tedious": "0.17.0",
95
+ "@opentelemetry/instrumentation-undici": "0.9.0",
96
+ "@opentelemetry/resources": "^1.29.0",
97
+ "@opentelemetry/sdk-trace-base": "^1.29.0",
98
+ "@opentelemetry/semantic-conventions": "^1.28.0",
99
99
  "@prisma/instrumentation": "5.19.1",
100
- "@sentry/core": "8.41.0",
101
- "@sentry/opentelemetry": "8.41.0",
102
- "@sentry/types": "8.41.0",
100
+ "@sentry/core": "8.43.0",
101
+ "@sentry/opentelemetry": "8.43.0",
103
102
  "import-in-the-middle": "^1.11.2"
104
103
  },
105
104
  "devDependencies": {