@depup/sentry__node 10.75.2-depup.0 → 11.1.0-depup.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 (1237) hide show
  1. package/README.md +3 -12
  2. package/build/cjs/bundler-plugin/esbuild.js +19 -0
  3. package/build/cjs/bundler-plugin/esbuild.js.map +1 -0
  4. package/build/cjs/bundler-plugin/rollup.js +12 -0
  5. package/build/cjs/bundler-plugin/rollup.js.map +1 -0
  6. package/build/cjs/bundler-plugin/vite.js +12 -0
  7. package/build/cjs/bundler-plugin/vite.js.map +1 -0
  8. package/build/cjs/bundler-plugin/webpack.js +18 -0
  9. package/build/cjs/bundler-plugin/webpack.js.map +1 -0
  10. package/build/cjs/cron/common.js +52 -0
  11. package/build/cjs/cron/common.js.map +1 -0
  12. package/build/cjs/cron/cron.js +88 -0
  13. package/build/cjs/cron/cron.js.map +1 -0
  14. package/build/cjs/cron/index.js +14 -0
  15. package/build/cjs/cron/index.js.map +1 -0
  16. package/build/cjs/cron/node-cron.js +52 -0
  17. package/build/cjs/cron/node-cron.js.map +1 -0
  18. package/build/cjs/cron/node-schedule.js +41 -0
  19. package/build/cjs/cron/node-schedule.js.map +1 -0
  20. package/build/cjs/eve.js +31 -0
  21. package/build/cjs/eve.js.map +1 -0
  22. package/build/cjs/index.js +131 -129
  23. package/build/cjs/index.js.map +1 -1
  24. package/build/cjs/integrations/anr/index.js +167 -0
  25. package/build/cjs/integrations/anr/index.js.map +1 -0
  26. package/build/cjs/integrations/childProcess.js +57 -0
  27. package/build/cjs/integrations/childProcess.js.map +1 -0
  28. package/build/cjs/integrations/console.js +95 -0
  29. package/build/cjs/integrations/console.js.map +1 -0
  30. package/build/cjs/integrations/context.js +391 -0
  31. package/build/cjs/integrations/context.js.map +1 -0
  32. package/build/cjs/integrations/contextlines.js +251 -0
  33. package/build/cjs/integrations/contextlines.js.map +1 -0
  34. package/build/cjs/integrations/fs/index.js +1 -1
  35. package/build/cjs/integrations/fs/index.js.map +1 -1
  36. package/build/cjs/integrations/fs/vendored/constants.js.map +1 -1
  37. package/build/cjs/integrations/fs/vendored/instrumentation.js +4 -2
  38. package/build/cjs/integrations/fs/vendored/instrumentation.js.map +1 -1
  39. package/build/cjs/integrations/http/SentryHttpInstrumentation.js +62 -0
  40. package/build/cjs/integrations/http/SentryHttpInstrumentation.js.map +1 -0
  41. package/build/cjs/integrations/http/httpServerIntegration.js +78 -0
  42. package/build/cjs/integrations/http/httpServerIntegration.js.map +1 -0
  43. package/build/cjs/integrations/http/httpServerSpansIntegration.js +187 -0
  44. package/build/cjs/integrations/http/httpServerSpansIntegration.js.map +1 -0
  45. package/build/cjs/integrations/http/index.js +57 -0
  46. package/build/cjs/integrations/http/index.js.map +1 -0
  47. package/build/cjs/integrations/local-variables/common.js +20 -0
  48. package/build/cjs/integrations/local-variables/common.js.map +1 -0
  49. package/build/cjs/integrations/local-variables/index.js +10 -0
  50. package/build/cjs/integrations/local-variables/index.js.map +1 -0
  51. package/build/cjs/integrations/local-variables/local-variables-async.js +106 -0
  52. package/build/cjs/integrations/local-variables/local-variables-async.js.map +1 -0
  53. package/build/cjs/integrations/modules.js +98 -0
  54. package/build/cjs/integrations/modules.js.map +1 -0
  55. package/build/cjs/integrations/node-fetch/index.js +24 -0
  56. package/build/cjs/integrations/node-fetch/index.js.map +1 -0
  57. package/build/cjs/integrations/node-fetch/undici-instrumentation.js +268 -0
  58. package/build/cjs/integrations/node-fetch/undici-instrumentation.js.map +1 -0
  59. package/build/cjs/integrations/nodeRuntimeMetrics.js +182 -0
  60. package/build/cjs/integrations/nodeRuntimeMetrics.js.map +1 -0
  61. package/build/cjs/integrations/onuncaughtexception.js +92 -0
  62. package/build/cjs/integrations/onuncaughtexception.js.map +1 -0
  63. package/build/cjs/integrations/onunhandledrejection.js +94 -0
  64. package/build/cjs/integrations/onunhandledrejection.js.map +1 -0
  65. package/build/cjs/integrations/pino.js +115 -0
  66. package/build/cjs/integrations/pino.js.map +1 -0
  67. package/build/cjs/integrations/processSession.js +22 -0
  68. package/build/cjs/integrations/processSession.js.map +1 -0
  69. package/build/cjs/integrations/spotlight.js +79 -0
  70. package/build/cjs/integrations/spotlight.js.map +1 -0
  71. package/build/cjs/integrations/systemError.js +54 -0
  72. package/build/cjs/integrations/systemError.js.map +1 -0
  73. package/build/cjs/integrations/tracing/hapi.js +10 -0
  74. package/build/cjs/integrations/tracing/hapi.js.map +1 -0
  75. package/build/cjs/integrations/tracing/index.js +1 -92
  76. package/build/cjs/integrations/tracing/index.js.map +1 -1
  77. package/build/cjs/integrations/tracing/koa.js +10 -0
  78. package/build/cjs/integrations/tracing/koa.js.map +1 -0
  79. package/build/cjs/integrations/winston.js +84 -0
  80. package/build/cjs/integrations/winston.js.map +1 -0
  81. package/build/cjs/integrations/workerThreads.js +35 -0
  82. package/build/cjs/integrations/workerThreads.js.map +1 -0
  83. package/build/cjs/logs/capture.js +26 -0
  84. package/build/cjs/logs/capture.js.map +1 -0
  85. package/build/cjs/logs/exports.js +32 -0
  86. package/build/cjs/logs/exports.js.map +1 -0
  87. package/build/cjs/nodeVersion.js +10 -0
  88. package/build/cjs/nodeVersion.js.map +1 -0
  89. package/build/cjs/otel/logger.js +21 -0
  90. package/build/cjs/otel/logger.js.map +1 -0
  91. package/build/cjs/proxy/base.js +69 -0
  92. package/build/cjs/proxy/base.js.map +1 -0
  93. package/build/cjs/proxy/index.js +112 -0
  94. package/build/cjs/proxy/index.js.map +1 -0
  95. package/build/cjs/proxy/parse-proxy-response.js +88 -0
  96. package/build/cjs/proxy/parse-proxy-response.js.map +1 -0
  97. package/build/cjs/sdk/api.js +62 -0
  98. package/build/cjs/sdk/api.js.map +1 -0
  99. package/build/cjs/sdk/client.js +128 -0
  100. package/build/cjs/sdk/client.js.map +1 -0
  101. package/build/cjs/sdk/index.js +170 -45
  102. package/build/cjs/sdk/index.js.map +1 -1
  103. package/build/cjs/sdk/initOtel.js +9 -95
  104. package/build/cjs/sdk/initOtel.js.map +1 -1
  105. package/build/cjs/transports/http.js +109 -0
  106. package/build/cjs/transports/http.js.map +1 -0
  107. package/build/cjs/utils/debug.js +17 -0
  108. package/build/cjs/utils/debug.js.map +1 -0
  109. package/build/cjs/utils/entry-point.js +36 -0
  110. package/build/cjs/utils/entry-point.js.map +1 -0
  111. package/build/cjs/utils/errorhandling.js +39 -0
  112. package/build/cjs/utils/errorhandling.js.map +1 -0
  113. package/build/cjs/utils/module.js +37 -0
  114. package/build/cjs/utils/module.js.map +1 -0
  115. package/build/cjs/utils/outgoingFetchRequest.js +178 -0
  116. package/build/cjs/utils/outgoingFetchRequest.js.map +1 -0
  117. package/build/cjs/utils/spotlight.js +18 -0
  118. package/build/cjs/utils/spotlight.js.map +1 -0
  119. package/build/esm/bundler-plugin/esbuild.js +17 -0
  120. package/build/esm/bundler-plugin/esbuild.js.map +1 -0
  121. package/build/esm/bundler-plugin/rollup.js +10 -0
  122. package/build/esm/bundler-plugin/rollup.js.map +1 -0
  123. package/build/esm/bundler-plugin/vite.js +10 -0
  124. package/build/esm/bundler-plugin/vite.js.map +1 -0
  125. package/build/esm/bundler-plugin/webpack.js +16 -0
  126. package/build/esm/bundler-plugin/webpack.js.map +1 -0
  127. package/build/esm/cron/common.js +50 -0
  128. package/build/esm/cron/common.js.map +1 -0
  129. package/build/esm/cron/cron.js +86 -0
  130. package/build/esm/cron/cron.js.map +1 -0
  131. package/build/esm/cron/index.js +12 -0
  132. package/build/esm/cron/index.js.map +1 -0
  133. package/build/esm/cron/node-cron.js +50 -0
  134. package/build/esm/cron/node-cron.js.map +1 -0
  135. package/build/esm/cron/node-schedule.js +39 -0
  136. package/build/esm/cron/node-schedule.js.map +1 -0
  137. package/build/esm/eve.js +29 -0
  138. package/build/esm/eve.js.map +1 -0
  139. package/build/esm/index.js +37 -38
  140. package/build/esm/index.js.map +1 -1
  141. package/build/esm/integrations/anr/index.js +163 -0
  142. package/build/esm/integrations/anr/index.js.map +1 -0
  143. package/build/esm/integrations/anr/worker-script.js +2 -0
  144. package/build/esm/integrations/childProcess.js +55 -0
  145. package/build/esm/integrations/childProcess.js.map +1 -0
  146. package/build/esm/integrations/console.js +93 -0
  147. package/build/esm/integrations/console.js.map +1 -0
  148. package/build/esm/integrations/context.js +383 -0
  149. package/build/esm/integrations/context.js.map +1 -0
  150. package/build/esm/integrations/contextlines.js +245 -0
  151. package/build/esm/integrations/contextlines.js.map +1 -0
  152. package/build/esm/integrations/fs/index.js +1 -1
  153. package/build/esm/integrations/fs/index.js.map +1 -1
  154. package/build/esm/integrations/fs/vendored/constants.js.map +1 -1
  155. package/build/esm/integrations/fs/vendored/instrumentation.js +4 -2
  156. package/build/esm/integrations/fs/vendored/instrumentation.js.map +1 -1
  157. package/build/esm/integrations/http/SentryHttpInstrumentation.js +60 -0
  158. package/build/esm/integrations/http/SentryHttpInstrumentation.js.map +1 -0
  159. package/build/esm/integrations/http/httpServerIntegration.js +75 -0
  160. package/build/esm/integrations/http/httpServerIntegration.js.map +1 -0
  161. package/build/esm/integrations/http/httpServerSpansIntegration.js +184 -0
  162. package/build/esm/integrations/http/httpServerSpansIntegration.js.map +1 -0
  163. package/build/esm/integrations/http/index.js +55 -0
  164. package/build/esm/integrations/http/index.js.map +1 -0
  165. package/build/esm/integrations/local-variables/common.js +15 -0
  166. package/build/esm/integrations/local-variables/common.js.map +1 -0
  167. package/build/esm/integrations/local-variables/index.js +8 -0
  168. package/build/esm/integrations/local-variables/index.js.map +1 -0
  169. package/build/esm/integrations/local-variables/local-variables-async.js +103 -0
  170. package/build/esm/integrations/local-variables/local-variables-async.js.map +1 -0
  171. package/build/esm/integrations/local-variables/worker-script.js +2 -0
  172. package/build/esm/integrations/modules.js +57 -0
  173. package/build/esm/integrations/modules.js.map +1 -0
  174. package/build/esm/integrations/node-fetch/index.js +22 -0
  175. package/build/esm/integrations/node-fetch/index.js.map +1 -0
  176. package/build/esm/integrations/node-fetch/undici-instrumentation.js +266 -0
  177. package/build/esm/integrations/node-fetch/undici-instrumentation.js.map +1 -0
  178. package/build/esm/integrations/nodeRuntimeMetrics.js +179 -0
  179. package/build/esm/integrations/nodeRuntimeMetrics.js.map +1 -0
  180. package/build/esm/integrations/onuncaughtexception.js +89 -0
  181. package/build/esm/integrations/onuncaughtexception.js.map +1 -0
  182. package/build/esm/integrations/onunhandledrejection.js +91 -0
  183. package/build/esm/integrations/onunhandledrejection.js.map +1 -0
  184. package/build/esm/integrations/pino.js +113 -0
  185. package/build/esm/integrations/pino.js.map +1 -0
  186. package/build/esm/integrations/processSession.js +20 -0
  187. package/build/esm/integrations/processSession.js.map +1 -0
  188. package/build/esm/integrations/spotlight.js +76 -0
  189. package/build/esm/integrations/spotlight.js.map +1 -0
  190. package/build/esm/integrations/systemError.js +52 -0
  191. package/build/esm/integrations/systemError.js.map +1 -0
  192. package/build/esm/integrations/tracing/hapi.js +8 -0
  193. package/build/esm/integrations/tracing/hapi.js.map +1 -0
  194. package/build/esm/integrations/tracing/index.js +3 -93
  195. package/build/esm/integrations/tracing/index.js.map +1 -1
  196. package/build/esm/integrations/tracing/koa.js +8 -0
  197. package/build/esm/integrations/tracing/koa.js.map +1 -0
  198. package/build/esm/integrations/winston.js +82 -0
  199. package/build/esm/integrations/winston.js.map +1 -0
  200. package/build/esm/integrations/workerThreads.js +33 -0
  201. package/build/esm/integrations/workerThreads.js.map +1 -0
  202. package/build/esm/logs/capture.js +24 -0
  203. package/build/esm/logs/capture.js.map +1 -0
  204. package/build/esm/logs/exports.js +24 -0
  205. package/build/esm/logs/exports.js.map +1 -0
  206. package/build/esm/nodeVersion.js +8 -0
  207. package/build/esm/nodeVersion.js.map +1 -0
  208. package/build/esm/otel/logger.js +19 -0
  209. package/build/esm/otel/logger.js.map +1 -0
  210. package/build/esm/package.json +1 -1
  211. package/build/esm/proxy/base.js +67 -0
  212. package/build/esm/proxy/base.js.map +1 -0
  213. package/build/esm/proxy/index.js +110 -0
  214. package/build/esm/proxy/index.js.map +1 -0
  215. package/build/esm/proxy/parse-proxy-response.js +86 -0
  216. package/build/esm/proxy/parse-proxy-response.js.map +1 -0
  217. package/build/esm/sdk/api.js +59 -0
  218. package/build/esm/sdk/api.js.map +1 -0
  219. package/build/esm/sdk/client.js +126 -0
  220. package/build/esm/sdk/client.js.map +1 -0
  221. package/build/esm/sdk/index.js +172 -46
  222. package/build/esm/sdk/index.js.map +1 -1
  223. package/build/esm/sdk/initOtel.js +12 -96
  224. package/build/esm/sdk/initOtel.js.map +1 -1
  225. package/build/esm/transports/http.js +107 -0
  226. package/build/esm/transports/http.js.map +1 -0
  227. package/build/esm/utils/debug.js +15 -0
  228. package/build/esm/utils/debug.js.map +1 -0
  229. package/build/esm/utils/entry-point.js +33 -0
  230. package/build/esm/utils/entry-point.js.map +1 -0
  231. package/build/esm/utils/errorhandling.js +37 -0
  232. package/build/esm/utils/errorhandling.js.map +1 -0
  233. package/build/esm/utils/module.js +35 -0
  234. package/build/esm/utils/module.js.map +1 -0
  235. package/build/esm/utils/outgoingFetchRequest.js +174 -0
  236. package/build/esm/utils/outgoingFetchRequest.js.map +1 -0
  237. package/build/esm/utils/spotlight.js +16 -0
  238. package/build/esm/utils/spotlight.js.map +1 -0
  239. package/build/import-hook.mjs +1 -11
  240. package/build/types/bundler-plugin/esbuild.d.ts +33 -0
  241. package/build/types/bundler-plugin/esbuild.d.ts.map +1 -0
  242. package/build/types/bundler-plugin/rollup.d.ts +34 -0
  243. package/build/types/bundler-plugin/rollup.d.ts.map +1 -0
  244. package/build/types/bundler-plugin/vite.d.ts +35 -0
  245. package/build/types/bundler-plugin/vite.d.ts.map +1 -0
  246. package/build/types/bundler-plugin/webpack.d.ts +37 -0
  247. package/build/types/bundler-plugin/webpack.d.ts.map +1 -0
  248. package/build/types/cron/common.d.ts +5 -0
  249. package/build/types/cron/common.d.ts.map +1 -0
  250. package/build/types/cron/cron.d.ts +43 -0
  251. package/build/types/cron/cron.d.ts.map +1 -0
  252. package/build/types/cron/index.d.ts +10 -0
  253. package/build/types/cron/index.d.ts.map +1 -0
  254. package/build/types/cron/node-cron.d.ts +28 -0
  255. package/build/types/cron/node-cron.d.ts.map +1 -0
  256. package/build/types/cron/node-schedule.d.ts +19 -0
  257. package/build/types/cron/node-schedule.d.ts.map +1 -0
  258. package/build/types/eve.d.ts +60 -0
  259. package/build/types/eve.d.ts.map +1 -0
  260. package/build/types/index.d.ts +38 -36
  261. package/build/types/index.d.ts.map +1 -1
  262. package/build/types/integrations/anr/common.d.ts +79 -0
  263. package/build/types/integrations/anr/common.d.ts.map +1 -0
  264. package/build/types/integrations/anr/index.d.ts +60 -0
  265. package/build/types/integrations/anr/index.d.ts.map +1 -0
  266. package/build/types/integrations/anr/worker.d.ts +2 -0
  267. package/build/types/integrations/anr/worker.d.ts.map +1 -0
  268. package/build/types/integrations/childProcess.d.ts +17 -0
  269. package/build/types/integrations/childProcess.d.ts.map +1 -0
  270. package/build/types/integrations/console.d.ts +23 -0
  271. package/build/types/integrations/console.d.ts.map +1 -0
  272. package/build/types/integrations/context.d.ts +33 -0
  273. package/build/types/integrations/context.d.ts.map +1 -0
  274. package/build/types/integrations/contextlines.d.ts +35 -0
  275. package/build/types/integrations/contextlines.d.ts.map +1 -0
  276. package/build/types/integrations/featureFlagShims/openFeature.d.ts.map +1 -1
  277. package/build/types/integrations/fs/index.d.ts.map +1 -1
  278. package/build/types/integrations/fs/vendored/instrumentation.d.ts.map +1 -1
  279. package/build/types/integrations/http/SentryHttpInstrumentation.d.ts +48 -0
  280. package/build/types/integrations/http/SentryHttpInstrumentation.d.ts.map +1 -0
  281. package/build/types/integrations/http/httpServerIntegration.d.ts +68 -0
  282. package/build/types/integrations/http/httpServerIntegration.d.ts.map +1 -0
  283. package/build/types/integrations/http/httpServerSpansIntegration.d.ts +59 -0
  284. package/build/types/integrations/http/httpServerSpansIntegration.d.ts.map +1 -0
  285. package/build/types/integrations/http/index.d.ts +69 -0
  286. package/build/types/integrations/http/index.d.ts.map +1 -0
  287. package/build/types/integrations/local-variables/common.d.ts +79 -0
  288. package/build/types/integrations/local-variables/common.d.ts.map +1 -0
  289. package/build/types/integrations/local-variables/index.d.ts +4 -0
  290. package/build/types/integrations/local-variables/index.d.ts.map +1 -0
  291. package/build/types/integrations/local-variables/local-variables-async.d.ts +9 -0
  292. package/build/types/integrations/local-variables/local-variables-async.d.ts.map +1 -0
  293. package/build/types/integrations/local-variables/worker.d.ts +2 -0
  294. package/build/types/integrations/local-variables/worker.d.ts.map +1 -0
  295. package/build/types/integrations/modules.d.ts +17 -0
  296. package/build/types/integrations/modules.d.ts.map +1 -0
  297. package/build/types/integrations/node-fetch/index.d.ts +9 -0
  298. package/build/types/integrations/node-fetch/index.d.ts.map +1 -0
  299. package/build/types/integrations/node-fetch/types.d.ts +104 -0
  300. package/build/types/integrations/node-fetch/types.d.ts.map +1 -0
  301. package/build/types/integrations/node-fetch/undici-instrumentation.d.ts +17 -0
  302. package/build/types/integrations/node-fetch/undici-instrumentation.d.ts.map +1 -0
  303. package/build/types/integrations/nodeRuntimeMetrics.d.ts +66 -0
  304. package/build/types/integrations/nodeRuntimeMetrics.d.ts.map +1 -0
  305. package/build/types/integrations/onuncaughtexception.d.ts +33 -0
  306. package/build/types/integrations/onuncaughtexception.d.ts.map +1 -0
  307. package/build/types/integrations/onunhandledrejection.d.ts +22 -0
  308. package/build/types/integrations/onunhandledrejection.d.ts.map +1 -0
  309. package/build/types/integrations/pino.d.ts +61 -0
  310. package/build/types/integrations/pino.d.ts.map +1 -0
  311. package/build/types/integrations/processSession.d.ts +7 -0
  312. package/build/types/integrations/processSession.d.ts.map +1 -0
  313. package/build/types/integrations/spotlight.d.ts +18 -0
  314. package/build/types/integrations/spotlight.d.ts.map +1 -0
  315. package/build/types/integrations/systemError.d.ts +14 -0
  316. package/build/types/integrations/systemError.d.ts.map +1 -0
  317. package/build/types/integrations/tracing/hapi.d.ts +13 -0
  318. package/build/types/integrations/tracing/hapi.d.ts.map +1 -0
  319. package/build/types/integrations/tracing/index.d.ts +0 -9
  320. package/build/types/integrations/tracing/index.d.ts.map +1 -1
  321. package/build/types/integrations/tracing/koa.d.ts +27 -0
  322. package/build/types/integrations/tracing/koa.d.ts.map +1 -0
  323. package/build/types/integrations/winston.d.ts +55 -0
  324. package/build/types/integrations/winston.d.ts.map +1 -0
  325. package/build/types/integrations/workerThreads.d.ts +8 -0
  326. package/build/types/integrations/workerThreads.d.ts.map +1 -0
  327. package/build/types/logs/capture.d.ts +29 -0
  328. package/build/types/logs/capture.d.ts.map +1 -0
  329. package/build/types/logs/exports.d.ts +150 -0
  330. package/build/types/logs/exports.d.ts.map +1 -0
  331. package/build/types/nodeVersion.d.ts +8 -0
  332. package/build/types/nodeVersion.d.ts.map +1 -0
  333. package/build/types/otel/logger.d.ts +5 -0
  334. package/build/types/otel/logger.d.ts.map +1 -0
  335. package/build/types/proxy/base.d.ts +61 -0
  336. package/build/types/proxy/base.d.ts.map +1 -0
  337. package/build/types/proxy/helpers.d.ts +37 -0
  338. package/build/types/proxy/helpers.d.ts.map +1 -0
  339. package/build/types/proxy/index.d.ts +70 -0
  340. package/build/types/proxy/index.d.ts.map +1 -0
  341. package/build/types/proxy/parse-proxy-response.d.ts +39 -0
  342. package/build/types/proxy/parse-proxy-response.d.ts.map +1 -0
  343. package/build/types/sdk/api.d.ts +8 -0
  344. package/build/types/sdk/api.d.ts.map +1 -0
  345. package/build/types/sdk/client.d.ts +33 -0
  346. package/build/types/sdk/client.d.ts.map +1 -0
  347. package/build/types/sdk/index.d.ts +1 -19
  348. package/build/types/sdk/index.d.ts.map +1 -1
  349. package/build/types/sdk/initOtel.d.ts +4 -22
  350. package/build/types/sdk/initOtel.d.ts.map +1 -1
  351. package/build/types/sdk/scope.d.ts +7 -0
  352. package/build/types/sdk/scope.d.ts.map +1 -0
  353. package/build/types/transports/http-module.d.ts +27 -0
  354. package/build/types/transports/http-module.d.ts.map +1 -0
  355. package/build/types/transports/http.d.ts +17 -0
  356. package/build/types/transports/http.d.ts.map +1 -0
  357. package/build/types/transports/index.d.ts +3 -0
  358. package/build/types/transports/index.d.ts.map +1 -0
  359. package/build/types/types.d.ts +33 -37
  360. package/build/types/types.d.ts.map +1 -1
  361. package/build/types/utils/addOriginToSpan.d.ts +5 -0
  362. package/build/types/utils/addOriginToSpan.d.ts.map +1 -0
  363. package/build/types/utils/debug.d.ts +5 -0
  364. package/build/types/utils/debug.d.ts.map +1 -0
  365. package/build/types/utils/entry-point.d.ts +24 -0
  366. package/build/types/utils/entry-point.d.ts.map +1 -0
  367. package/build/types/utils/errorhandling.d.ts +5 -0
  368. package/build/types/utils/errorhandling.d.ts.map +1 -0
  369. package/build/types/utils/module.d.ts +3 -0
  370. package/build/types/utils/module.d.ts.map +1 -0
  371. package/build/types/utils/outgoingFetchRequest.d.ts +20 -0
  372. package/build/types/utils/outgoingFetchRequest.d.ts.map +1 -0
  373. package/build/types/utils/prepareEvent.d.ts +17 -0
  374. package/build/types/utils/prepareEvent.d.ts.map +1 -0
  375. package/build/types/utils/spotlight.d.ts +8 -0
  376. package/build/types/utils/spotlight.d.ts.map +1 -0
  377. package/changes.json +3 -20
  378. package/package.json +44 -53
  379. package/build/cjs/init.js +0 -4
  380. package/build/cjs/init.js.map +0 -1
  381. package/build/cjs/integrations/http.js +0 -69
  382. package/build/cjs/integrations/http.js.map +0 -1
  383. package/build/cjs/integrations/node-fetch.js +0 -24
  384. package/build/cjs/integrations/node-fetch.js.map +0 -1
  385. package/build/cjs/integrations/tracing/InstrumentationNodeModuleFile.js +0 -15
  386. package/build/cjs/integrations/tracing/InstrumentationNodeModuleFile.js.map +0 -1
  387. package/build/cjs/integrations/tracing/amqplib/index.js +0 -21
  388. package/build/cjs/integrations/tracing/amqplib/index.js.map +0 -1
  389. package/build/cjs/integrations/tracing/amqplib/vendored/instrumentation.js +0 -117
  390. package/build/cjs/integrations/tracing/amqplib/vendored/instrumentation.js.map +0 -1
  391. package/build/cjs/integrations/tracing/amqplib/vendored/patches.js +0 -185
  392. package/build/cjs/integrations/tracing/amqplib/vendored/patches.js.map +0 -1
  393. package/build/cjs/integrations/tracing/amqplib/vendored/semconv.js +0 -26
  394. package/build/cjs/integrations/tracing/amqplib/vendored/semconv.js.map +0 -1
  395. package/build/cjs/integrations/tracing/amqplib/vendored/types.js +0 -17
  396. package/build/cjs/integrations/tracing/amqplib/vendored/types.js.map +0 -1
  397. package/build/cjs/integrations/tracing/amqplib/vendored/utils.js +0 -129
  398. package/build/cjs/integrations/tracing/amqplib/vendored/utils.js.map +0 -1
  399. package/build/cjs/integrations/tracing/anthropic-ai/index.js +0 -24
  400. package/build/cjs/integrations/tracing/anthropic-ai/index.js.map +0 -1
  401. package/build/cjs/integrations/tracing/anthropic-ai/instrumentation.js +0 -72
  402. package/build/cjs/integrations/tracing/anthropic-ai/instrumentation.js.map +0 -1
  403. package/build/cjs/integrations/tracing/connect/index.js +0 -35
  404. package/build/cjs/integrations/tracing/connect/index.js.map +0 -1
  405. package/build/cjs/integrations/tracing/connect/vendored/enums/AttributeNames.js +0 -16
  406. package/build/cjs/integrations/tracing/connect/vendored/enums/AttributeNames.js.map +0 -1
  407. package/build/cjs/integrations/tracing/connect/vendored/instrumentation.js +0 -137
  408. package/build/cjs/integrations/tracing/connect/vendored/instrumentation.js.map +0 -1
  409. package/build/cjs/integrations/tracing/connect/vendored/internal-types.js +0 -8
  410. package/build/cjs/integrations/tracing/connect/vendored/internal-types.js.map +0 -1
  411. package/build/cjs/integrations/tracing/connect/vendored/utils.js +0 -36
  412. package/build/cjs/integrations/tracing/connect/vendored/utils.js.map +0 -1
  413. package/build/cjs/integrations/tracing/dataloader/index.js +0 -26
  414. package/build/cjs/integrations/tracing/dataloader/index.js.map +0 -1
  415. package/build/cjs/integrations/tracing/dataloader/vendored/instrumentation.js +0 -227
  416. package/build/cjs/integrations/tracing/dataloader/vendored/instrumentation.js.map +0 -1
  417. package/build/cjs/integrations/tracing/express.js +0 -67
  418. package/build/cjs/integrations/tracing/express.js.map +0 -1
  419. package/build/cjs/integrations/tracing/fastify/index.js +0 -55
  420. package/build/cjs/integrations/tracing/fastify/index.js.map +0 -1
  421. package/build/cjs/integrations/tracing/fastify/v3/constants.js +0 -6
  422. package/build/cjs/integrations/tracing/fastify/v3/constants.js.map +0 -1
  423. package/build/cjs/integrations/tracing/fastify/v3/enums/AttributeNames.js +0 -24
  424. package/build/cjs/integrations/tracing/fastify/v3/enums/AttributeNames.js.map +0 -1
  425. package/build/cjs/integrations/tracing/fastify/v3/instrumentation.js +0 -220
  426. package/build/cjs/integrations/tracing/fastify/v3/instrumentation.js.map +0 -1
  427. package/build/cjs/integrations/tracing/fastify/v3/utils.js +0 -64
  428. package/build/cjs/integrations/tracing/fastify/v3/utils.js.map +0 -1
  429. package/build/cjs/integrations/tracing/firebase/firebase.js +0 -21
  430. package/build/cjs/integrations/tracing/firebase/firebase.js.map +0 -1
  431. package/build/cjs/integrations/tracing/firebase/otel/firebaseInstrumentation.js +0 -28
  432. package/build/cjs/integrations/tracing/firebase/otel/firebaseInstrumentation.js.map +0 -1
  433. package/build/cjs/integrations/tracing/firebase/otel/patches/firestore.js +0 -155
  434. package/build/cjs/integrations/tracing/firebase/otel/patches/firestore.js.map +0 -1
  435. package/build/cjs/integrations/tracing/firebase/otel/patches/functions.js +0 -141
  436. package/build/cjs/integrations/tracing/firebase/otel/patches/functions.js.map +0 -1
  437. package/build/cjs/integrations/tracing/genericPool/index.js +0 -21
  438. package/build/cjs/integrations/tracing/genericPool/index.js.map +0 -1
  439. package/build/cjs/integrations/tracing/genericPool/vendored/instrumentation.js +0 -122
  440. package/build/cjs/integrations/tracing/genericPool/vendored/instrumentation.js.map +0 -1
  441. package/build/cjs/integrations/tracing/google-genai/index.js +0 -23
  442. package/build/cjs/integrations/tracing/google-genai/index.js.map +0 -1
  443. package/build/cjs/integrations/tracing/google-genai/instrumentation.js +0 -68
  444. package/build/cjs/integrations/tracing/google-genai/instrumentation.js.map +0 -1
  445. package/build/cjs/integrations/tracing/graphql/index.js +0 -34
  446. package/build/cjs/integrations/tracing/graphql/index.js.map +0 -1
  447. package/build/cjs/integrations/tracing/graphql/vendored/enum.js +0 -47
  448. package/build/cjs/integrations/tracing/graphql/vendored/enum.js.map +0 -1
  449. package/build/cjs/integrations/tracing/graphql/vendored/enums/AttributeNames.js +0 -15
  450. package/build/cjs/integrations/tracing/graphql/vendored/enums/AttributeNames.js.map +0 -1
  451. package/build/cjs/integrations/tracing/graphql/vendored/instrumentation.js +0 -329
  452. package/build/cjs/integrations/tracing/graphql/vendored/instrumentation.js.map +0 -1
  453. package/build/cjs/integrations/tracing/graphql/vendored/internal-types.js +0 -6
  454. package/build/cjs/integrations/tracing/graphql/vendored/internal-types.js.map +0 -1
  455. package/build/cjs/integrations/tracing/graphql/vendored/symbols.js +0 -8
  456. package/build/cjs/integrations/tracing/graphql/vendored/symbols.js.map +0 -1
  457. package/build/cjs/integrations/tracing/graphql/vendored/utils.js +0 -265
  458. package/build/cjs/integrations/tracing/graphql/vendored/utils.js.map +0 -1
  459. package/build/cjs/integrations/tracing/hapi/index.js +0 -60
  460. package/build/cjs/integrations/tracing/hapi/index.js.map +0 -1
  461. package/build/cjs/integrations/tracing/hapi/vendored/enums/AttributeNames.js +0 -11
  462. package/build/cjs/integrations/tracing/hapi/vendored/enums/AttributeNames.js.map +0 -1
  463. package/build/cjs/integrations/tracing/hapi/vendored/instrumentation.js +0 -255
  464. package/build/cjs/integrations/tracing/hapi/vendored/instrumentation.js.map +0 -1
  465. package/build/cjs/integrations/tracing/hapi/vendored/internal-types.js +0 -24
  466. package/build/cjs/integrations/tracing/hapi/vendored/internal-types.js.map +0 -1
  467. package/build/cjs/integrations/tracing/hapi/vendored/utils.js +0 -85
  468. package/build/cjs/integrations/tracing/hapi/vendored/utils.js.map +0 -1
  469. package/build/cjs/integrations/tracing/hono/constants.js +0 -14
  470. package/build/cjs/integrations/tracing/hono/constants.js.map +0 -1
  471. package/build/cjs/integrations/tracing/hono/index.js +0 -86
  472. package/build/cjs/integrations/tracing/hono/index.js.map +0 -1
  473. package/build/cjs/integrations/tracing/hono/instrumentation.js +0 -201
  474. package/build/cjs/integrations/tracing/hono/instrumentation.js.map +0 -1
  475. package/build/cjs/integrations/tracing/kafka/index.js +0 -21
  476. package/build/cjs/integrations/tracing/kafka/index.js.map +0 -1
  477. package/build/cjs/integrations/tracing/kafka/vendored/instrumentation.js +0 -237
  478. package/build/cjs/integrations/tracing/kafka/vendored/instrumentation.js.map +0 -1
  479. package/build/cjs/integrations/tracing/kafka/vendored/semconv.js +0 -22
  480. package/build/cjs/integrations/tracing/kafka/vendored/semconv.js.map +0 -1
  481. package/build/cjs/integrations/tracing/kafka/vendored/utils.js +0 -114
  482. package/build/cjs/integrations/tracing/kafka/vendored/utils.js.map +0 -1
  483. package/build/cjs/integrations/tracing/knex/index.js +0 -26
  484. package/build/cjs/integrations/tracing/knex/index.js.map +0 -1
  485. package/build/cjs/integrations/tracing/knex/vendored/instrumentation.js +0 -135
  486. package/build/cjs/integrations/tracing/knex/vendored/instrumentation.js.map +0 -1
  487. package/build/cjs/integrations/tracing/knex/vendored/semconv.js +0 -10
  488. package/build/cjs/integrations/tracing/knex/vendored/semconv.js.map +0 -1
  489. package/build/cjs/integrations/tracing/knex/vendored/utils.js +0 -84
  490. package/build/cjs/integrations/tracing/knex/vendored/utils.js.map +0 -1
  491. package/build/cjs/integrations/tracing/koa/index.js +0 -46
  492. package/build/cjs/integrations/tracing/koa/index.js.map +0 -1
  493. package/build/cjs/integrations/tracing/koa/vendored/enums/AttributeNames.js +0 -10
  494. package/build/cjs/integrations/tracing/koa/vendored/enums/AttributeNames.js.map +0 -1
  495. package/build/cjs/integrations/tracing/koa/vendored/instrumentation.js +0 -127
  496. package/build/cjs/integrations/tracing/koa/vendored/instrumentation.js.map +0 -1
  497. package/build/cjs/integrations/tracing/koa/vendored/internal-types.js +0 -6
  498. package/build/cjs/integrations/tracing/koa/vendored/internal-types.js.map +0 -1
  499. package/build/cjs/integrations/tracing/koa/vendored/types.js +0 -10
  500. package/build/cjs/integrations/tracing/koa/vendored/types.js.map +0 -1
  501. package/build/cjs/integrations/tracing/koa/vendored/utils.js +0 -36
  502. package/build/cjs/integrations/tracing/koa/vendored/utils.js.map +0 -1
  503. package/build/cjs/integrations/tracing/langchain/index.js +0 -23
  504. package/build/cjs/integrations/tracing/langchain/index.js.map +0 -1
  505. package/build/cjs/integrations/tracing/langchain/instrumentation.js +0 -160
  506. package/build/cjs/integrations/tracing/langchain/instrumentation.js.map +0 -1
  507. package/build/cjs/integrations/tracing/langgraph/index.js +0 -23
  508. package/build/cjs/integrations/tracing/langgraph/index.js.map +0 -1
  509. package/build/cjs/integrations/tracing/langgraph/instrumentation.js +0 -96
  510. package/build/cjs/integrations/tracing/langgraph/instrumentation.js.map +0 -1
  511. package/build/cjs/integrations/tracing/lrumemoizer/index.js +0 -21
  512. package/build/cjs/integrations/tracing/lrumemoizer/index.js.map +0 -1
  513. package/build/cjs/integrations/tracing/lrumemoizer/vendored/instrumentation.js +0 -38
  514. package/build/cjs/integrations/tracing/lrumemoizer/vendored/instrumentation.js.map +0 -1
  515. package/build/cjs/integrations/tracing/mongo/index.js +0 -21
  516. package/build/cjs/integrations/tracing/mongo/index.js.map +0 -1
  517. package/build/cjs/integrations/tracing/mongo/vendored/instrumentation.js +0 -129
  518. package/build/cjs/integrations/tracing/mongo/vendored/instrumentation.js.map +0 -1
  519. package/build/cjs/integrations/tracing/mongo/vendored/patches.js +0 -150
  520. package/build/cjs/integrations/tracing/mongo/vendored/patches.js.map +0 -1
  521. package/build/cjs/integrations/tracing/mongo/vendored/utils.js +0 -40
  522. package/build/cjs/integrations/tracing/mongo/vendored/utils.js.map +0 -1
  523. package/build/cjs/integrations/tracing/mongoose/index.js +0 -22
  524. package/build/cjs/integrations/tracing/mongoose/index.js.map +0 -1
  525. package/build/cjs/integrations/tracing/mongoose/vendored/mongoose.js +0 -240
  526. package/build/cjs/integrations/tracing/mongoose/vendored/mongoose.js.map +0 -1
  527. package/build/cjs/integrations/tracing/mongoose/vendored/utils.js +0 -41
  528. package/build/cjs/integrations/tracing/mongoose/vendored/utils.js.map +0 -1
  529. package/build/cjs/integrations/tracing/mysql/index.js +0 -21
  530. package/build/cjs/integrations/tracing/mysql/index.js.map +0 -1
  531. package/build/cjs/integrations/tracing/mysql/vendored/instrumentation.js +0 -185
  532. package/build/cjs/integrations/tracing/mysql/vendored/instrumentation.js.map +0 -1
  533. package/build/cjs/integrations/tracing/mysql/vendored/semconv.js +0 -8
  534. package/build/cjs/integrations/tracing/mysql/vendored/semconv.js.map +0 -1
  535. package/build/cjs/integrations/tracing/mysql/vendored/utils.js +0 -38
  536. package/build/cjs/integrations/tracing/mysql/vendored/utils.js.map +0 -1
  537. package/build/cjs/integrations/tracing/mysql2/index.js +0 -22
  538. package/build/cjs/integrations/tracing/mysql2/index.js.map +0 -1
  539. package/build/cjs/integrations/tracing/mysql2/vendored/instrumentation.js +0 -138
  540. package/build/cjs/integrations/tracing/mysql2/vendored/instrumentation.js.map +0 -1
  541. package/build/cjs/integrations/tracing/mysql2/vendored/semconv.js +0 -8
  542. package/build/cjs/integrations/tracing/mysql2/vendored/semconv.js.map +0 -1
  543. package/build/cjs/integrations/tracing/mysql2/vendored/utils.js +0 -81
  544. package/build/cjs/integrations/tracing/mysql2/vendored/utils.js.map +0 -1
  545. package/build/cjs/integrations/tracing/openai/index.js +0 -23
  546. package/build/cjs/integrations/tracing/openai/index.js.map +0 -1
  547. package/build/cjs/integrations/tracing/openai/instrumentation.js +0 -80
  548. package/build/cjs/integrations/tracing/openai/instrumentation.js.map +0 -1
  549. package/build/cjs/integrations/tracing/postgres/index.js +0 -27
  550. package/build/cjs/integrations/tracing/postgres/index.js.map +0 -1
  551. package/build/cjs/integrations/tracing/postgres/vendored/enums/AttributeNames.js +0 -11
  552. package/build/cjs/integrations/tracing/postgres/vendored/enums/AttributeNames.js.map +0 -1
  553. package/build/cjs/integrations/tracing/postgres/vendored/enums/SpanNames.js +0 -11
  554. package/build/cjs/integrations/tracing/postgres/vendored/enums/SpanNames.js.map +0 -1
  555. package/build/cjs/integrations/tracing/postgres/vendored/instrumentation.js +0 -225
  556. package/build/cjs/integrations/tracing/postgres/vendored/instrumentation.js.map +0 -1
  557. package/build/cjs/integrations/tracing/postgres/vendored/semconv.js +0 -8
  558. package/build/cjs/integrations/tracing/postgres/vendored/semconv.js.map +0 -1
  559. package/build/cjs/integrations/tracing/postgres/vendored/utils.js +0 -151
  560. package/build/cjs/integrations/tracing/postgres/vendored/utils.js.map +0 -1
  561. package/build/cjs/integrations/tracing/postgresjs.js +0 -265
  562. package/build/cjs/integrations/tracing/postgresjs.js.map +0 -1
  563. package/build/cjs/integrations/tracing/redis/cache.js +0 -41
  564. package/build/cjs/integrations/tracing/redis/cache.js.map +0 -1
  565. package/build/cjs/integrations/tracing/redis/index.js +0 -50
  566. package/build/cjs/integrations/tracing/redis/index.js.map +0 -1
  567. package/build/cjs/integrations/tracing/redis/vendored/ioredis-instrumentation.js +0 -147
  568. package/build/cjs/integrations/tracing/redis/vendored/ioredis-instrumentation.js.map +0 -1
  569. package/build/cjs/integrations/tracing/redis/vendored/redis-instrumentation.js +0 -445
  570. package/build/cjs/integrations/tracing/redis/vendored/redis-instrumentation.js.map +0 -1
  571. package/build/cjs/integrations/tracing/redis/vendored/semconv.js +0 -8
  572. package/build/cjs/integrations/tracing/redis/vendored/semconv.js.map +0 -1
  573. package/build/cjs/integrations/tracing/tedious/index.js +0 -21
  574. package/build/cjs/integrations/tracing/tedious/index.js.map +0 -1
  575. package/build/cjs/integrations/tracing/tedious/vendored/instrumentation.js +0 -154
  576. package/build/cjs/integrations/tracing/tedious/vendored/instrumentation.js.map +0 -1
  577. package/build/cjs/integrations/tracing/tedious/vendored/semconv.js +0 -8
  578. package/build/cjs/integrations/tracing/tedious/vendored/semconv.js.map +0 -1
  579. package/build/cjs/integrations/tracing/tedious/vendored/utils.js +0 -29
  580. package/build/cjs/integrations/tracing/tedious/vendored/utils.js.map +0 -1
  581. package/build/cjs/integrations/tracing/vercelai/constants.js +0 -6
  582. package/build/cjs/integrations/tracing/vercelai/constants.js.map +0 -1
  583. package/build/cjs/integrations/tracing/vercelai/index.js +0 -36
  584. package/build/cjs/integrations/tracing/vercelai/index.js.map +0 -1
  585. package/build/cjs/integrations/tracing/vercelai/instrumentation.js +0 -179
  586. package/build/cjs/integrations/tracing/vercelai/instrumentation.js.map +0 -1
  587. package/build/cjs/preload.js +0 -8
  588. package/build/cjs/preload.js.map +0 -1
  589. package/build/cjs/sdk/diagnosticsChannelInjection.js +0 -21
  590. package/build/cjs/sdk/diagnosticsChannelInjection.js.map +0 -1
  591. package/build/cjs/sdk/experimentalUseDiagnosticsChannelInjection.js +0 -33
  592. package/build/cjs/sdk/experimentalUseDiagnosticsChannelInjection.js.map +0 -1
  593. package/build/cjs/utils/redisCache.js +0 -98
  594. package/build/cjs/utils/redisCache.js.map +0 -1
  595. package/build/cjs/utils/setHttpServerSpanRouteAttribute.js +0 -21
  596. package/build/cjs/utils/setHttpServerSpanRouteAttribute.js.map +0 -1
  597. package/build/esm/init.js +0 -4
  598. package/build/esm/init.js.map +0 -1
  599. package/build/esm/integrations/http.js +0 -66
  600. package/build/esm/integrations/http.js.map +0 -1
  601. package/build/esm/integrations/node-fetch.js +0 -22
  602. package/build/esm/integrations/node-fetch.js.map +0 -1
  603. package/build/esm/integrations/tracing/InstrumentationNodeModuleFile.js +0 -13
  604. package/build/esm/integrations/tracing/InstrumentationNodeModuleFile.js.map +0 -1
  605. package/build/esm/integrations/tracing/amqplib/index.js +0 -18
  606. package/build/esm/integrations/tracing/amqplib/index.js.map +0 -1
  607. package/build/esm/integrations/tracing/amqplib/vendored/instrumentation.js +0 -115
  608. package/build/esm/integrations/tracing/amqplib/vendored/instrumentation.js.map +0 -1
  609. package/build/esm/integrations/tracing/amqplib/vendored/patches.js +0 -177
  610. package/build/esm/integrations/tracing/amqplib/vendored/patches.js.map +0 -1
  611. package/build/esm/integrations/tracing/amqplib/vendored/semconv.js +0 -14
  612. package/build/esm/integrations/tracing/amqplib/vendored/semconv.js.map +0 -1
  613. package/build/esm/integrations/tracing/amqplib/vendored/types.js +0 -15
  614. package/build/esm/integrations/tracing/amqplib/vendored/types.js.map +0 -1
  615. package/build/esm/integrations/tracing/amqplib/vendored/utils.js +0 -117
  616. package/build/esm/integrations/tracing/amqplib/vendored/utils.js.map +0 -1
  617. package/build/esm/integrations/tracing/anthropic-ai/index.js +0 -21
  618. package/build/esm/integrations/tracing/anthropic-ai/index.js.map +0 -1
  619. package/build/esm/integrations/tracing/anthropic-ai/instrumentation.js +0 -70
  620. package/build/esm/integrations/tracing/anthropic-ai/instrumentation.js.map +0 -1
  621. package/build/esm/integrations/tracing/connect/index.js +0 -31
  622. package/build/esm/integrations/tracing/connect/index.js.map +0 -1
  623. package/build/esm/integrations/tracing/connect/vendored/enums/AttributeNames.js +0 -13
  624. package/build/esm/integrations/tracing/connect/vendored/enums/AttributeNames.js.map +0 -1
  625. package/build/esm/integrations/tracing/connect/vendored/instrumentation.js +0 -135
  626. package/build/esm/integrations/tracing/connect/vendored/instrumentation.js.map +0 -1
  627. package/build/esm/integrations/tracing/connect/vendored/internal-types.js +0 -6
  628. package/build/esm/integrations/tracing/connect/vendored/internal-types.js.map +0 -1
  629. package/build/esm/integrations/tracing/connect/vendored/utils.js +0 -32
  630. package/build/esm/integrations/tracing/connect/vendored/utils.js.map +0 -1
  631. package/build/esm/integrations/tracing/dataloader/index.js +0 -23
  632. package/build/esm/integrations/tracing/dataloader/index.js.map +0 -1
  633. package/build/esm/integrations/tracing/dataloader/vendored/instrumentation.js +0 -225
  634. package/build/esm/integrations/tracing/dataloader/vendored/instrumentation.js.map +0 -1
  635. package/build/esm/integrations/tracing/express.js +0 -62
  636. package/build/esm/integrations/tracing/express.js.map +0 -1
  637. package/build/esm/integrations/tracing/fastify/index.js +0 -51
  638. package/build/esm/integrations/tracing/fastify/index.js.map +0 -1
  639. package/build/esm/integrations/tracing/fastify/v3/constants.js +0 -4
  640. package/build/esm/integrations/tracing/fastify/v3/constants.js.map +0 -1
  641. package/build/esm/integrations/tracing/fastify/v3/enums/AttributeNames.js +0 -20
  642. package/build/esm/integrations/tracing/fastify/v3/enums/AttributeNames.js.map +0 -1
  643. package/build/esm/integrations/tracing/fastify/v3/instrumentation.js +0 -218
  644. package/build/esm/integrations/tracing/fastify/v3/instrumentation.js.map +0 -1
  645. package/build/esm/integrations/tracing/fastify/v3/utils.js +0 -60
  646. package/build/esm/integrations/tracing/fastify/v3/utils.js.map +0 -1
  647. package/build/esm/integrations/tracing/firebase/firebase.js +0 -18
  648. package/build/esm/integrations/tracing/firebase/firebase.js.map +0 -1
  649. package/build/esm/integrations/tracing/firebase/otel/firebaseInstrumentation.js +0 -26
  650. package/build/esm/integrations/tracing/firebase/otel/firebaseInstrumentation.js.map +0 -1
  651. package/build/esm/integrations/tracing/firebase/otel/patches/firestore.js +0 -152
  652. package/build/esm/integrations/tracing/firebase/otel/patches/firestore.js.map +0 -1
  653. package/build/esm/integrations/tracing/firebase/otel/patches/functions.js +0 -138
  654. package/build/esm/integrations/tracing/firebase/otel/patches/functions.js.map +0 -1
  655. package/build/esm/integrations/tracing/genericPool/index.js +0 -18
  656. package/build/esm/integrations/tracing/genericPool/index.js.map +0 -1
  657. package/build/esm/integrations/tracing/genericPool/vendored/instrumentation.js +0 -120
  658. package/build/esm/integrations/tracing/genericPool/vendored/instrumentation.js.map +0 -1
  659. package/build/esm/integrations/tracing/google-genai/index.js +0 -20
  660. package/build/esm/integrations/tracing/google-genai/index.js.map +0 -1
  661. package/build/esm/integrations/tracing/google-genai/instrumentation.js +0 -66
  662. package/build/esm/integrations/tracing/google-genai/instrumentation.js.map +0 -1
  663. package/build/esm/integrations/tracing/graphql/index.js +0 -31
  664. package/build/esm/integrations/tracing/graphql/index.js.map +0 -1
  665. package/build/esm/integrations/tracing/graphql/vendored/enum.js +0 -43
  666. package/build/esm/integrations/tracing/graphql/vendored/enum.js.map +0 -1
  667. package/build/esm/integrations/tracing/graphql/vendored/enums/AttributeNames.js +0 -13
  668. package/build/esm/integrations/tracing/graphql/vendored/enums/AttributeNames.js.map +0 -1
  669. package/build/esm/integrations/tracing/graphql/vendored/instrumentation.js +0 -327
  670. package/build/esm/integrations/tracing/graphql/vendored/instrumentation.js.map +0 -1
  671. package/build/esm/integrations/tracing/graphql/vendored/internal-types.js +0 -4
  672. package/build/esm/integrations/tracing/graphql/vendored/internal-types.js.map +0 -1
  673. package/build/esm/integrations/tracing/graphql/vendored/symbols.js +0 -5
  674. package/build/esm/integrations/tracing/graphql/vendored/symbols.js.map +0 -1
  675. package/build/esm/integrations/tracing/graphql/vendored/utils.js +0 -257
  676. package/build/esm/integrations/tracing/graphql/vendored/utils.js.map +0 -1
  677. package/build/esm/integrations/tracing/hapi/index.js +0 -55
  678. package/build/esm/integrations/tracing/hapi/index.js.map +0 -1
  679. package/build/esm/integrations/tracing/hapi/vendored/enums/AttributeNames.js +0 -9
  680. package/build/esm/integrations/tracing/hapi/vendored/enums/AttributeNames.js.map +0 -1
  681. package/build/esm/integrations/tracing/hapi/vendored/instrumentation.js +0 -253
  682. package/build/esm/integrations/tracing/hapi/vendored/instrumentation.js.map +0 -1
  683. package/build/esm/integrations/tracing/hapi/vendored/internal-types.js +0 -19
  684. package/build/esm/integrations/tracing/hapi/vendored/internal-types.js.map +0 -1
  685. package/build/esm/integrations/tracing/hapi/vendored/utils.js +0 -76
  686. package/build/esm/integrations/tracing/hapi/vendored/utils.js.map +0 -1
  687. package/build/esm/integrations/tracing/hono/constants.js +0 -11
  688. package/build/esm/integrations/tracing/hono/constants.js.map +0 -1
  689. package/build/esm/integrations/tracing/hono/index.js +0 -82
  690. package/build/esm/integrations/tracing/hono/index.js.map +0 -1
  691. package/build/esm/integrations/tracing/hono/instrumentation.js +0 -199
  692. package/build/esm/integrations/tracing/hono/instrumentation.js.map +0 -1
  693. package/build/esm/integrations/tracing/kafka/index.js +0 -18
  694. package/build/esm/integrations/tracing/kafka/index.js.map +0 -1
  695. package/build/esm/integrations/tracing/kafka/vendored/instrumentation.js +0 -235
  696. package/build/esm/integrations/tracing/kafka/vendored/instrumentation.js.map +0 -1
  697. package/build/esm/integrations/tracing/kafka/vendored/semconv.js +0 -12
  698. package/build/esm/integrations/tracing/kafka/vendored/semconv.js.map +0 -1
  699. package/build/esm/integrations/tracing/kafka/vendored/utils.js +0 -108
  700. package/build/esm/integrations/tracing/kafka/vendored/utils.js.map +0 -1
  701. package/build/esm/integrations/tracing/knex/index.js +0 -23
  702. package/build/esm/integrations/tracing/knex/index.js.map +0 -1
  703. package/build/esm/integrations/tracing/knex/vendored/instrumentation.js +0 -133
  704. package/build/esm/integrations/tracing/knex/vendored/instrumentation.js.map +0 -1
  705. package/build/esm/integrations/tracing/knex/vendored/semconv.js +0 -6
  706. package/build/esm/integrations/tracing/knex/vendored/semconv.js.map +0 -1
  707. package/build/esm/integrations/tracing/knex/vendored/utils.js +0 -75
  708. package/build/esm/integrations/tracing/knex/vendored/utils.js.map +0 -1
  709. package/build/esm/integrations/tracing/koa/index.js +0 -42
  710. package/build/esm/integrations/tracing/koa/index.js.map +0 -1
  711. package/build/esm/integrations/tracing/koa/vendored/enums/AttributeNames.js +0 -8
  712. package/build/esm/integrations/tracing/koa/vendored/enums/AttributeNames.js.map +0 -1
  713. package/build/esm/integrations/tracing/koa/vendored/instrumentation.js +0 -125
  714. package/build/esm/integrations/tracing/koa/vendored/instrumentation.js.map +0 -1
  715. package/build/esm/integrations/tracing/koa/vendored/internal-types.js +0 -4
  716. package/build/esm/integrations/tracing/koa/vendored/internal-types.js.map +0 -1
  717. package/build/esm/integrations/tracing/koa/vendored/types.js +0 -8
  718. package/build/esm/integrations/tracing/koa/vendored/types.js.map +0 -1
  719. package/build/esm/integrations/tracing/koa/vendored/utils.js +0 -33
  720. package/build/esm/integrations/tracing/koa/vendored/utils.js.map +0 -1
  721. package/build/esm/integrations/tracing/langchain/index.js +0 -20
  722. package/build/esm/integrations/tracing/langchain/index.js.map +0 -1
  723. package/build/esm/integrations/tracing/langchain/instrumentation.js +0 -158
  724. package/build/esm/integrations/tracing/langchain/instrumentation.js.map +0 -1
  725. package/build/esm/integrations/tracing/langgraph/index.js +0 -20
  726. package/build/esm/integrations/tracing/langgraph/index.js.map +0 -1
  727. package/build/esm/integrations/tracing/langgraph/instrumentation.js +0 -94
  728. package/build/esm/integrations/tracing/langgraph/instrumentation.js.map +0 -1
  729. package/build/esm/integrations/tracing/lrumemoizer/index.js +0 -18
  730. package/build/esm/integrations/tracing/lrumemoizer/index.js.map +0 -1
  731. package/build/esm/integrations/tracing/lrumemoizer/vendored/instrumentation.js +0 -36
  732. package/build/esm/integrations/tracing/lrumemoizer/vendored/instrumentation.js.map +0 -1
  733. package/build/esm/integrations/tracing/mongo/index.js +0 -18
  734. package/build/esm/integrations/tracing/mongo/index.js.map +0 -1
  735. package/build/esm/integrations/tracing/mongo/vendored/instrumentation.js +0 -127
  736. package/build/esm/integrations/tracing/mongo/vendored/instrumentation.js.map +0 -1
  737. package/build/esm/integrations/tracing/mongo/vendored/patches.js +0 -142
  738. package/build/esm/integrations/tracing/mongo/vendored/patches.js.map +0 -1
  739. package/build/esm/integrations/tracing/mongo/vendored/utils.js +0 -34
  740. package/build/esm/integrations/tracing/mongo/vendored/utils.js.map +0 -1
  741. package/build/esm/integrations/tracing/mongoose/index.js +0 -19
  742. package/build/esm/integrations/tracing/mongoose/index.js.map +0 -1
  743. package/build/esm/integrations/tracing/mongoose/vendored/mongoose.js +0 -236
  744. package/build/esm/integrations/tracing/mongoose/vendored/mongoose.js.map +0 -1
  745. package/build/esm/integrations/tracing/mongoose/vendored/utils.js +0 -38
  746. package/build/esm/integrations/tracing/mongoose/vendored/utils.js.map +0 -1
  747. package/build/esm/integrations/tracing/mysql/index.js +0 -18
  748. package/build/esm/integrations/tracing/mysql/index.js.map +0 -1
  749. package/build/esm/integrations/tracing/mysql/vendored/instrumentation.js +0 -183
  750. package/build/esm/integrations/tracing/mysql/vendored/instrumentation.js.map +0 -1
  751. package/build/esm/integrations/tracing/mysql/vendored/semconv.js +0 -5
  752. package/build/esm/integrations/tracing/mysql/vendored/semconv.js.map +0 -1
  753. package/build/esm/integrations/tracing/mysql/vendored/utils.js +0 -33
  754. package/build/esm/integrations/tracing/mysql/vendored/utils.js.map +0 -1
  755. package/build/esm/integrations/tracing/mysql2/index.js +0 -19
  756. package/build/esm/integrations/tracing/mysql2/index.js.map +0 -1
  757. package/build/esm/integrations/tracing/mysql2/vendored/instrumentation.js +0 -136
  758. package/build/esm/integrations/tracing/mysql2/vendored/instrumentation.js.map +0 -1
  759. package/build/esm/integrations/tracing/mysql2/vendored/semconv.js +0 -5
  760. package/build/esm/integrations/tracing/mysql2/vendored/semconv.js.map +0 -1
  761. package/build/esm/integrations/tracing/mysql2/vendored/utils.js +0 -75
  762. package/build/esm/integrations/tracing/mysql2/vendored/utils.js.map +0 -1
  763. package/build/esm/integrations/tracing/openai/index.js +0 -20
  764. package/build/esm/integrations/tracing/openai/index.js.map +0 -1
  765. package/build/esm/integrations/tracing/openai/instrumentation.js +0 -78
  766. package/build/esm/integrations/tracing/openai/instrumentation.js.map +0 -1
  767. package/build/esm/integrations/tracing/postgres/index.js +0 -24
  768. package/build/esm/integrations/tracing/postgres/index.js.map +0 -1
  769. package/build/esm/integrations/tracing/postgres/vendored/enums/AttributeNames.js +0 -9
  770. package/build/esm/integrations/tracing/postgres/vendored/enums/AttributeNames.js.map +0 -1
  771. package/build/esm/integrations/tracing/postgres/vendored/enums/SpanNames.js +0 -9
  772. package/build/esm/integrations/tracing/postgres/vendored/enums/SpanNames.js.map +0 -1
  773. package/build/esm/integrations/tracing/postgres/vendored/instrumentation.js +0 -223
  774. package/build/esm/integrations/tracing/postgres/vendored/instrumentation.js.map +0 -1
  775. package/build/esm/integrations/tracing/postgres/vendored/semconv.js +0 -5
  776. package/build/esm/integrations/tracing/postgres/vendored/semconv.js.map +0 -1
  777. package/build/esm/integrations/tracing/postgres/vendored/utils.js +0 -136
  778. package/build/esm/integrations/tracing/postgres/vendored/utils.js.map +0 -1
  779. package/build/esm/integrations/tracing/postgresjs.js +0 -261
  780. package/build/esm/integrations/tracing/postgresjs.js.map +0 -1
  781. package/build/esm/integrations/tracing/redis/cache.js +0 -38
  782. package/build/esm/integrations/tracing/redis/cache.js.map +0 -1
  783. package/build/esm/integrations/tracing/redis/index.js +0 -43
  784. package/build/esm/integrations/tracing/redis/index.js.map +0 -1
  785. package/build/esm/integrations/tracing/redis/vendored/ioredis-instrumentation.js +0 -145
  786. package/build/esm/integrations/tracing/redis/vendored/ioredis-instrumentation.js.map +0 -1
  787. package/build/esm/integrations/tracing/redis/vendored/redis-instrumentation.js +0 -443
  788. package/build/esm/integrations/tracing/redis/vendored/redis-instrumentation.js.map +0 -1
  789. package/build/esm/integrations/tracing/redis/vendored/semconv.js +0 -5
  790. package/build/esm/integrations/tracing/redis/vendored/semconv.js.map +0 -1
  791. package/build/esm/integrations/tracing/tedious/index.js +0 -18
  792. package/build/esm/integrations/tracing/tedious/index.js.map +0 -1
  793. package/build/esm/integrations/tracing/tedious/vendored/instrumentation.js +0 -152
  794. package/build/esm/integrations/tracing/tedious/vendored/instrumentation.js.map +0 -1
  795. package/build/esm/integrations/tracing/tedious/vendored/semconv.js +0 -5
  796. package/build/esm/integrations/tracing/tedious/vendored/semconv.js.map +0 -1
  797. package/build/esm/integrations/tracing/tedious/vendored/utils.js +0 -26
  798. package/build/esm/integrations/tracing/tedious/vendored/utils.js.map +0 -1
  799. package/build/esm/integrations/tracing/vercelai/constants.js +0 -4
  800. package/build/esm/integrations/tracing/vercelai/constants.js.map +0 -1
  801. package/build/esm/integrations/tracing/vercelai/index.js +0 -33
  802. package/build/esm/integrations/tracing/vercelai/index.js.map +0 -1
  803. package/build/esm/integrations/tracing/vercelai/instrumentation.js +0 -174
  804. package/build/esm/integrations/tracing/vercelai/instrumentation.js.map +0 -1
  805. package/build/esm/preload.js +0 -8
  806. package/build/esm/preload.js.map +0 -1
  807. package/build/esm/sdk/diagnosticsChannelInjection.js +0 -17
  808. package/build/esm/sdk/diagnosticsChannelInjection.js.map +0 -1
  809. package/build/esm/sdk/experimentalUseDiagnosticsChannelInjection.js +0 -30
  810. package/build/esm/sdk/experimentalUseDiagnosticsChannelInjection.js.map +0 -1
  811. package/build/esm/utils/redisCache.js +0 -89
  812. package/build/esm/utils/redisCache.js.map +0 -1
  813. package/build/esm/utils/setHttpServerSpanRouteAttribute.js +0 -19
  814. package/build/esm/utils/setHttpServerSpanRouteAttribute.js.map +0 -1
  815. package/build/loader-hook.mjs +0 -1
  816. package/build/types/init.d.ts +0 -2
  817. package/build/types/init.d.ts.map +0 -1
  818. package/build/types/integrations/http.d.ts +0 -131
  819. package/build/types/integrations/http.d.ts.map +0 -1
  820. package/build/types/integrations/node-fetch.d.ts +0 -9
  821. package/build/types/integrations/node-fetch.d.ts.map +0 -1
  822. package/build/types/integrations/tracing/InstrumentationNodeModuleFile.d.ts +0 -9
  823. package/build/types/integrations/tracing/InstrumentationNodeModuleFile.d.ts.map +0 -1
  824. package/build/types/integrations/tracing/amqplib/index.d.ts +0 -22
  825. package/build/types/integrations/tracing/amqplib/index.d.ts.map +0 -1
  826. package/build/types/integrations/tracing/amqplib/vendored/amqplib-types.d.ts +0 -44
  827. package/build/types/integrations/tracing/amqplib/vendored/amqplib-types.d.ts.map +0 -1
  828. package/build/types/integrations/tracing/amqplib/vendored/instrumentation.d.ts +0 -11
  829. package/build/types/integrations/tracing/amqplib/vendored/instrumentation.d.ts.map +0 -1
  830. package/build/types/integrations/tracing/amqplib/vendored/patches.d.ts +0 -11
  831. package/build/types/integrations/tracing/amqplib/vendored/patches.d.ts.map +0 -1
  832. package/build/types/integrations/tracing/amqplib/vendored/semconv.d.ts +0 -23
  833. package/build/types/integrations/tracing/amqplib/vendored/semconv.d.ts.map +0 -1
  834. package/build/types/integrations/tracing/amqplib/vendored/types.d.ts +0 -49
  835. package/build/types/integrations/tracing/amqplib/vendored/types.d.ts.map +0 -1
  836. package/build/types/integrations/tracing/amqplib/vendored/utils.d.ts +0 -42
  837. package/build/types/integrations/tracing/amqplib/vendored/utils.d.ts.map +0 -1
  838. package/build/types/integrations/tracing/anthropic-ai/index.d.ts +0 -62
  839. package/build/types/integrations/tracing/anthropic-ai/index.d.ts.map +0 -1
  840. package/build/types/integrations/tracing/anthropic-ai/instrumentation.d.ts +0 -19
  841. package/build/types/integrations/tracing/anthropic-ai/instrumentation.d.ts.map +0 -1
  842. package/build/types/integrations/tracing/connect/index.d.ts +0 -48
  843. package/build/types/integrations/tracing/connect/index.d.ts.map +0 -1
  844. package/build/types/integrations/tracing/connect/vendored/enums/AttributeNames.d.ts +0 -9
  845. package/build/types/integrations/tracing/connect/vendored/enums/AttributeNames.d.ts.map +0 -1
  846. package/build/types/integrations/tracing/connect/vendored/instrumentation.d.ts +0 -18
  847. package/build/types/integrations/tracing/connect/vendored/instrumentation.d.ts.map +0 -1
  848. package/build/types/integrations/tracing/connect/vendored/internal-types.d.ts +0 -31
  849. package/build/types/integrations/tracing/connect/vendored/internal-types.d.ts.map +0 -1
  850. package/build/types/integrations/tracing/connect/vendored/utils.d.ts +0 -5
  851. package/build/types/integrations/tracing/connect/vendored/utils.d.ts.map +0 -1
  852. package/build/types/integrations/tracing/dataloader/index.d.ts +0 -22
  853. package/build/types/integrations/tracing/dataloader/index.d.ts.map +0 -1
  854. package/build/types/integrations/tracing/dataloader/vendored/instrumentation.d.ts +0 -18
  855. package/build/types/integrations/tracing/dataloader/vendored/instrumentation.d.ts.map +0 -1
  856. package/build/types/integrations/tracing/dataloader/vendored/types.d.ts +0 -22
  857. package/build/types/integrations/tracing/dataloader/vendored/types.d.ts.map +0 -1
  858. package/build/types/integrations/tracing/express.d.ts +0 -19
  859. package/build/types/integrations/tracing/express.d.ts.map +0 -1
  860. package/build/types/integrations/tracing/fastify/index.d.ts +0 -124
  861. package/build/types/integrations/tracing/fastify/index.d.ts.map +0 -1
  862. package/build/types/integrations/tracing/fastify/types.d.ts +0 -33
  863. package/build/types/integrations/tracing/fastify/types.d.ts.map +0 -1
  864. package/build/types/integrations/tracing/fastify/v3/constants.d.ts +0 -3
  865. package/build/types/integrations/tracing/fastify/v3/constants.d.ts.map +0 -1
  866. package/build/types/integrations/tracing/fastify/v3/enums/AttributeNames.d.ts +0 -15
  867. package/build/types/integrations/tracing/fastify/v3/enums/AttributeNames.d.ts.map +0 -1
  868. package/build/types/integrations/tracing/fastify/v3/instrumentation.d.ts +0 -16
  869. package/build/types/integrations/tracing/fastify/v3/instrumentation.d.ts.map +0 -1
  870. package/build/types/integrations/tracing/fastify/v3/internal-types.d.ts +0 -7
  871. package/build/types/integrations/tracing/fastify/v3/internal-types.d.ts.map +0 -1
  872. package/build/types/integrations/tracing/fastify/v3/types.d.ts +0 -21
  873. package/build/types/integrations/tracing/fastify/v3/types.d.ts.map +0 -1
  874. package/build/types/integrations/tracing/fastify/v3/utils.d.ts +0 -28
  875. package/build/types/integrations/tracing/fastify/v3/utils.d.ts.map +0 -1
  876. package/build/types/integrations/tracing/firebase/firebase.d.ts +0 -8
  877. package/build/types/integrations/tracing/firebase/firebase.d.ts.map +0 -1
  878. package/build/types/integrations/tracing/firebase/index.d.ts +0 -2
  879. package/build/types/integrations/tracing/firebase/index.d.ts.map +0 -1
  880. package/build/types/integrations/tracing/firebase/otel/firebaseInstrumentation.d.ts +0 -14
  881. package/build/types/integrations/tracing/firebase/otel/firebaseInstrumentation.d.ts.map +0 -1
  882. package/build/types/integrations/tracing/firebase/otel/index.d.ts +0 -3
  883. package/build/types/integrations/tracing/firebase/otel/index.d.ts.map +0 -1
  884. package/build/types/integrations/tracing/firebase/otel/patches/firestore.d.ts +0 -22
  885. package/build/types/integrations/tracing/firebase/otel/patches/firestore.d.ts.map +0 -1
  886. package/build/types/integrations/tracing/firebase/otel/patches/functions.d.ts +0 -18
  887. package/build/types/integrations/tracing/firebase/otel/patches/functions.d.ts.map +0 -1
  888. package/build/types/integrations/tracing/firebase/otel/types.d.ts +0 -100
  889. package/build/types/integrations/tracing/firebase/otel/types.d.ts.map +0 -1
  890. package/build/types/integrations/tracing/genericPool/index.d.ts +0 -22
  891. package/build/types/integrations/tracing/genericPool/index.d.ts.map +0 -1
  892. package/build/types/integrations/tracing/genericPool/vendored/generic-pool-types.d.ts +0 -5
  893. package/build/types/integrations/tracing/genericPool/vendored/generic-pool-types.d.ts.map +0 -1
  894. package/build/types/integrations/tracing/genericPool/vendored/instrumentation.d.ts +0 -11
  895. package/build/types/integrations/tracing/genericPool/vendored/instrumentation.d.ts.map +0 -1
  896. package/build/types/integrations/tracing/google-genai/index.d.ts +0 -62
  897. package/build/types/integrations/tracing/google-genai/index.d.ts.map +0 -1
  898. package/build/types/integrations/tracing/google-genai/instrumentation.d.ts +0 -20
  899. package/build/types/integrations/tracing/google-genai/instrumentation.d.ts.map +0 -1
  900. package/build/types/integrations/tracing/graphql/index.d.ts +0 -50
  901. package/build/types/integrations/tracing/graphql/index.d.ts.map +0 -1
  902. package/build/types/integrations/tracing/graphql/vendored/enum.d.ts +0 -38
  903. package/build/types/integrations/tracing/graphql/vendored/enum.d.ts.map +0 -1
  904. package/build/types/integrations/tracing/graphql/vendored/enums/AttributeNames.d.ts +0 -10
  905. package/build/types/integrations/tracing/graphql/vendored/enums/AttributeNames.d.ts.map +0 -1
  906. package/build/types/integrations/tracing/graphql/vendored/graphql-types.d.ts +0 -2
  907. package/build/types/integrations/tracing/graphql/vendored/graphql-types.d.ts.map +0 -1
  908. package/build/types/integrations/tracing/graphql/vendored/instrumentation.d.ts +0 -25
  909. package/build/types/integrations/tracing/graphql/vendored/instrumentation.d.ts.map +0 -1
  910. package/build/types/integrations/tracing/graphql/vendored/internal-types.d.ts +0 -63
  911. package/build/types/integrations/tracing/graphql/vendored/internal-types.d.ts.map +0 -1
  912. package/build/types/integrations/tracing/graphql/vendored/symbols.d.ts +0 -3
  913. package/build/types/integrations/tracing/graphql/vendored/symbols.d.ts.map +0 -1
  914. package/build/types/integrations/tracing/graphql/vendored/types.d.ts +0 -33
  915. package/build/types/integrations/tracing/graphql/vendored/types.d.ts.map +0 -1
  916. package/build/types/integrations/tracing/graphql/vendored/utils.d.ts +0 -14
  917. package/build/types/integrations/tracing/graphql/vendored/utils.d.ts.map +0 -1
  918. package/build/types/integrations/tracing/hapi/index.d.ts +0 -52
  919. package/build/types/integrations/tracing/hapi/index.d.ts.map +0 -1
  920. package/build/types/integrations/tracing/hapi/types.d.ts +0 -166
  921. package/build/types/integrations/tracing/hapi/types.d.ts.map +0 -1
  922. package/build/types/integrations/tracing/hapi/vendored/enums/AttributeNames.d.ts +0 -6
  923. package/build/types/integrations/tracing/hapi/vendored/enums/AttributeNames.d.ts.map +0 -1
  924. package/build/types/integrations/tracing/hapi/vendored/hapi-types.d.ts +0 -70
  925. package/build/types/integrations/tracing/hapi/vendored/hapi-types.d.ts.map +0 -1
  926. package/build/types/integrations/tracing/hapi/vendored/instrumentation.d.ts +0 -72
  927. package/build/types/integrations/tracing/hapi/vendored/instrumentation.d.ts.map +0 -1
  928. package/build/types/integrations/tracing/hapi/vendored/internal-types.d.ts +0 -32
  929. package/build/types/integrations/tracing/hapi/vendored/internal-types.d.ts.map +0 -1
  930. package/build/types/integrations/tracing/hapi/vendored/utils.d.ts +0 -18
  931. package/build/types/integrations/tracing/hapi/vendored/utils.d.ts.map +0 -1
  932. package/build/types/integrations/tracing/hono/constants.d.ts +0 -11
  933. package/build/types/integrations/tracing/hono/constants.d.ts.map +0 -1
  934. package/build/types/integrations/tracing/hono/index.d.ts +0 -60
  935. package/build/types/integrations/tracing/hono/index.d.ts.map +0 -1
  936. package/build/types/integrations/tracing/hono/instrumentation.d.ts +0 -55
  937. package/build/types/integrations/tracing/hono/instrumentation.d.ts.map +0 -1
  938. package/build/types/integrations/tracing/hono/types.d.ts +0 -36
  939. package/build/types/integrations/tracing/hono/types.d.ts.map +0 -1
  940. package/build/types/integrations/tracing/kafka/index.d.ts +0 -21
  941. package/build/types/integrations/tracing/kafka/index.d.ts.map +0 -1
  942. package/build/types/integrations/tracing/kafka/vendored/instrumentation.d.ts +0 -15
  943. package/build/types/integrations/tracing/kafka/vendored/instrumentation.d.ts.map +0 -1
  944. package/build/types/integrations/tracing/kafka/vendored/kafkajs-types.d.ts +0 -79
  945. package/build/types/integrations/tracing/kafka/vendored/kafkajs-types.d.ts.map +0 -1
  946. package/build/types/integrations/tracing/kafka/vendored/semconv.d.ts +0 -54
  947. package/build/types/integrations/tracing/kafka/vendored/semconv.d.ts.map +0 -1
  948. package/build/types/integrations/tracing/kafka/vendored/utils.d.ts +0 -29
  949. package/build/types/integrations/tracing/kafka/vendored/utils.d.ts.map +0 -1
  950. package/build/types/integrations/tracing/knex/index.d.ts +0 -22
  951. package/build/types/integrations/tracing/knex/index.d.ts.map +0 -1
  952. package/build/types/integrations/tracing/knex/vendored/instrumentation.d.ts +0 -12
  953. package/build/types/integrations/tracing/knex/vendored/instrumentation.d.ts.map +0 -1
  954. package/build/types/integrations/tracing/knex/vendored/semconv.d.ts +0 -7
  955. package/build/types/integrations/tracing/knex/vendored/semconv.d.ts.map +0 -1
  956. package/build/types/integrations/tracing/knex/vendored/utils.d.ts +0 -9
  957. package/build/types/integrations/tracing/knex/vendored/utils.d.ts.map +0 -1
  958. package/build/types/integrations/tracing/koa/index.d.ts +0 -72
  959. package/build/types/integrations/tracing/koa/index.d.ts.map +0 -1
  960. package/build/types/integrations/tracing/koa/vendored/enums/AttributeNames.d.ts +0 -5
  961. package/build/types/integrations/tracing/koa/vendored/enums/AttributeNames.d.ts.map +0 -1
  962. package/build/types/integrations/tracing/koa/vendored/instrumentation.d.ts +0 -32
  963. package/build/types/integrations/tracing/koa/vendored/instrumentation.d.ts.map +0 -1
  964. package/build/types/integrations/tracing/koa/vendored/internal-types.d.ts +0 -34
  965. package/build/types/integrations/tracing/koa/vendored/internal-types.d.ts.map +0 -1
  966. package/build/types/integrations/tracing/koa/vendored/types.d.ts +0 -13
  967. package/build/types/integrations/tracing/koa/vendored/types.d.ts.map +0 -1
  968. package/build/types/integrations/tracing/koa/vendored/utils.d.ts +0 -15
  969. package/build/types/integrations/tracing/koa/vendored/utils.d.ts.map +0 -1
  970. package/build/types/integrations/tracing/langchain/index.d.ts +0 -101
  971. package/build/types/integrations/tracing/langchain/index.d.ts.map +0 -1
  972. package/build/types/integrations/tracing/langchain/instrumentation.d.ts +0 -38
  973. package/build/types/integrations/tracing/langchain/instrumentation.d.ts.map +0 -1
  974. package/build/types/integrations/tracing/langgraph/index.d.ts +0 -77
  975. package/build/types/integrations/tracing/langgraph/index.d.ts.map +0 -1
  976. package/build/types/integrations/tracing/langgraph/instrumentation.d.ts +0 -19
  977. package/build/types/integrations/tracing/langgraph/instrumentation.d.ts.map +0 -1
  978. package/build/types/integrations/tracing/lrumemoizer/index.d.ts +0 -21
  979. package/build/types/integrations/tracing/lrumemoizer/index.d.ts.map +0 -1
  980. package/build/types/integrations/tracing/lrumemoizer/vendored/instrumentation.d.ts +0 -6
  981. package/build/types/integrations/tracing/lrumemoizer/vendored/instrumentation.d.ts.map +0 -1
  982. package/build/types/integrations/tracing/mongo/index.d.ts +0 -22
  983. package/build/types/integrations/tracing/mongo/index.d.ts.map +0 -1
  984. package/build/types/integrations/tracing/mongo/vendored/instrumentation.d.ts +0 -11
  985. package/build/types/integrations/tracing/mongo/vendored/instrumentation.d.ts.map +0 -1
  986. package/build/types/integrations/tracing/mongo/vendored/internal-types.d.ts +0 -62
  987. package/build/types/integrations/tracing/mongo/vendored/internal-types.d.ts.map +0 -1
  988. package/build/types/integrations/tracing/mongo/vendored/patches.d.ts +0 -15
  989. package/build/types/integrations/tracing/mongo/vendored/patches.d.ts.map +0 -1
  990. package/build/types/integrations/tracing/mongo/vendored/utils.d.ts +0 -15
  991. package/build/types/integrations/tracing/mongo/vendored/utils.d.ts.map +0 -1
  992. package/build/types/integrations/tracing/mongoose/index.d.ts +0 -22
  993. package/build/types/integrations/tracing/mongoose/index.d.ts.map +0 -1
  994. package/build/types/integrations/tracing/mongoose/vendored/mongoose-types.d.ts +0 -33
  995. package/build/types/integrations/tracing/mongoose/vendored/mongoose-types.d.ts.map +0 -1
  996. package/build/types/integrations/tracing/mongoose/vendored/mongoose.d.ts +0 -18
  997. package/build/types/integrations/tracing/mongoose/vendored/mongoose.d.ts.map +0 -1
  998. package/build/types/integrations/tracing/mongoose/vendored/utils.d.ts +0 -4
  999. package/build/types/integrations/tracing/mongoose/vendored/utils.d.ts.map +0 -1
  1000. package/build/types/integrations/tracing/mysql/index.d.ts +0 -22
  1001. package/build/types/integrations/tracing/mysql/index.d.ts.map +0 -1
  1002. package/build/types/integrations/tracing/mysql/vendored/instrumentation.d.ts +0 -14
  1003. package/build/types/integrations/tracing/mysql/vendored/instrumentation.d.ts.map +0 -1
  1004. package/build/types/integrations/tracing/mysql/vendored/mysql-types.d.ts +0 -78
  1005. package/build/types/integrations/tracing/mysql/vendored/mysql-types.d.ts.map +0 -1
  1006. package/build/types/integrations/tracing/mysql/vendored/semconv.d.ts +0 -19
  1007. package/build/types/integrations/tracing/mysql/vendored/semconv.d.ts.map +0 -1
  1008. package/build/types/integrations/tracing/mysql/vendored/utils.d.ts +0 -22
  1009. package/build/types/integrations/tracing/mysql/vendored/utils.d.ts.map +0 -1
  1010. package/build/types/integrations/tracing/mysql2/index.d.ts +0 -22
  1011. package/build/types/integrations/tracing/mysql2/index.d.ts.map +0 -1
  1012. package/build/types/integrations/tracing/mysql2/vendored/instrumentation.d.ts +0 -9
  1013. package/build/types/integrations/tracing/mysql2/vendored/instrumentation.d.ts.map +0 -1
  1014. package/build/types/integrations/tracing/mysql2/vendored/mysql2-types.d.ts +0 -39
  1015. package/build/types/integrations/tracing/mysql2/vendored/mysql2-types.d.ts.map +0 -1
  1016. package/build/types/integrations/tracing/mysql2/vendored/semconv.d.ts +0 -3
  1017. package/build/types/integrations/tracing/mysql2/vendored/semconv.d.ts.map +0 -1
  1018. package/build/types/integrations/tracing/mysql2/vendored/utils.d.ts +0 -25
  1019. package/build/types/integrations/tracing/mysql2/vendored/utils.d.ts.map +0 -1
  1020. package/build/types/integrations/tracing/openai/index.d.ts +0 -62
  1021. package/build/types/integrations/tracing/openai/index.d.ts.map +0 -1
  1022. package/build/types/integrations/tracing/openai/instrumentation.d.ts +0 -26
  1023. package/build/types/integrations/tracing/openai/instrumentation.d.ts.map +0 -1
  1024. package/build/types/integrations/tracing/postgres/index.d.ts +0 -26
  1025. package/build/types/integrations/tracing/postgres/index.d.ts.map +0 -1
  1026. package/build/types/integrations/tracing/postgres/vendored/enums/AttributeNames.d.ts +0 -6
  1027. package/build/types/integrations/tracing/postgres/vendored/enums/AttributeNames.d.ts.map +0 -1
  1028. package/build/types/integrations/tracing/postgres/vendored/enums/SpanNames.d.ts +0 -6
  1029. package/build/types/integrations/tracing/postgres/vendored/enums/SpanNames.d.ts.map +0 -1
  1030. package/build/types/integrations/tracing/postgres/vendored/instrumentation.d.ts +0 -12
  1031. package/build/types/integrations/tracing/postgres/vendored/instrumentation.d.ts.map +0 -1
  1032. package/build/types/integrations/tracing/postgres/vendored/internal-types.d.ts +0 -33
  1033. package/build/types/integrations/tracing/postgres/vendored/internal-types.d.ts.map +0 -1
  1034. package/build/types/integrations/tracing/postgres/vendored/pg-pool-types.d.ts +0 -20
  1035. package/build/types/integrations/tracing/postgres/vendored/pg-pool-types.d.ts.map +0 -1
  1036. package/build/types/integrations/tracing/postgres/vendored/pg-types.d.ts +0 -54
  1037. package/build/types/integrations/tracing/postgres/vendored/pg-types.d.ts.map +0 -1
  1038. package/build/types/integrations/tracing/postgres/vendored/semconv.d.ts +0 -13
  1039. package/build/types/integrations/tracing/postgres/vendored/semconv.d.ts.map +0 -1
  1040. package/build/types/integrations/tracing/postgres/vendored/types.d.ts +0 -11
  1041. package/build/types/integrations/tracing/postgres/vendored/types.d.ts.map +0 -1
  1042. package/build/types/integrations/tracing/postgres/vendored/utils.d.ts +0 -56
  1043. package/build/types/integrations/tracing/postgres/vendored/utils.d.ts.map +0 -1
  1044. package/build/types/integrations/tracing/postgresjs.d.ts +0 -103
  1045. package/build/types/integrations/tracing/postgresjs.d.ts.map +0 -1
  1046. package/build/types/integrations/tracing/redis/cache.d.ts +0 -22
  1047. package/build/types/integrations/tracing/redis/cache.d.ts.map +0 -1
  1048. package/build/types/integrations/tracing/redis/index.d.ts +0 -28
  1049. package/build/types/integrations/tracing/redis/index.d.ts.map +0 -1
  1050. package/build/types/integrations/tracing/redis/vendored/ioredis-instrumentation.d.ts +0 -10
  1051. package/build/types/integrations/tracing/redis/vendored/ioredis-instrumentation.d.ts.map +0 -1
  1052. package/build/types/integrations/tracing/redis/vendored/redis-instrumentation.d.ts +0 -16
  1053. package/build/types/integrations/tracing/redis/vendored/redis-instrumentation.d.ts.map +0 -1
  1054. package/build/types/integrations/tracing/redis/vendored/semconv.d.ts +0 -4
  1055. package/build/types/integrations/tracing/redis/vendored/semconv.d.ts.map +0 -1
  1056. package/build/types/integrations/tracing/redis/vendored/types.d.ts +0 -24
  1057. package/build/types/integrations/tracing/redis/vendored/types.d.ts.map +0 -1
  1058. package/build/types/integrations/tracing/tedious/index.d.ts +0 -22
  1059. package/build/types/integrations/tracing/tedious/index.d.ts.map +0 -1
  1060. package/build/types/integrations/tracing/tedious/vendored/instrumentation.d.ts +0 -11
  1061. package/build/types/integrations/tracing/tedious/vendored/instrumentation.d.ts.map +0 -1
  1062. package/build/types/integrations/tracing/tedious/vendored/semconv.d.ts +0 -19
  1063. package/build/types/integrations/tracing/tedious/vendored/semconv.d.ts.map +0 -1
  1064. package/build/types/integrations/tracing/tedious/vendored/tedious-types.d.ts +0 -21
  1065. package/build/types/integrations/tracing/tedious/vendored/tedious-types.d.ts.map +0 -1
  1066. package/build/types/integrations/tracing/tedious/vendored/utils.d.ts +0 -9
  1067. package/build/types/integrations/tracing/tedious/vendored/utils.d.ts.map +0 -1
  1068. package/build/types/integrations/tracing/vercelai/constants.d.ts +0 -2
  1069. package/build/types/integrations/tracing/vercelai/constants.d.ts.map +0 -1
  1070. package/build/types/integrations/tracing/vercelai/index.d.ts +0 -44
  1071. package/build/types/integrations/tracing/vercelai/index.d.ts.map +0 -1
  1072. package/build/types/integrations/tracing/vercelai/instrumentation.d.ts +0 -56
  1073. package/build/types/integrations/tracing/vercelai/instrumentation.d.ts.map +0 -1
  1074. package/build/types/integrations/tracing/vercelai/types.d.ts +0 -50
  1075. package/build/types/integrations/tracing/vercelai/types.d.ts.map +0 -1
  1076. package/build/types/preload.d.ts +0 -2
  1077. package/build/types/preload.d.ts.map +0 -1
  1078. package/build/types/sdk/diagnosticsChannelInjection.d.ts +0 -41
  1079. package/build/types/sdk/diagnosticsChannelInjection.d.ts.map +0 -1
  1080. package/build/types/sdk/experimentalUseDiagnosticsChannelInjection.d.ts +0 -37
  1081. package/build/types/sdk/experimentalUseDiagnosticsChannelInjection.d.ts.map +0 -1
  1082. package/build/types/utils/redisCache.d.ts +0 -17
  1083. package/build/types/utils/redisCache.d.ts.map +0 -1
  1084. package/build/types/utils/setHttpServerSpanRouteAttribute.d.ts +0 -9
  1085. package/build/types/utils/setHttpServerSpanRouteAttribute.d.ts.map +0 -1
  1086. package/build/types-ts3.8/debug-build.d.ts +0 -7
  1087. package/build/types-ts3.8/index.d.ts +0 -44
  1088. package/build/types-ts3.8/init.d.ts +0 -2
  1089. package/build/types-ts3.8/integrations/featureFlagShims/growthbook.d.ts +0 -6
  1090. package/build/types-ts3.8/integrations/featureFlagShims/index.d.ts +0 -6
  1091. package/build/types-ts3.8/integrations/featureFlagShims/launchDarkly.d.ts +0 -12
  1092. package/build/types-ts3.8/integrations/featureFlagShims/openFeature.d.ts +0 -25
  1093. package/build/types-ts3.8/integrations/featureFlagShims/statsig.d.ts +0 -8
  1094. package/build/types-ts3.8/integrations/featureFlagShims/unleash.d.ts +0 -8
  1095. package/build/types-ts3.8/integrations/fs/index.d.ts +0 -14
  1096. package/build/types-ts3.8/integrations/fs/vendored/constants.d.ts +0 -5
  1097. package/build/types-ts3.8/integrations/fs/vendored/instrumentation.d.ts +0 -3
  1098. package/build/types-ts3.8/integrations/fs/vendored/types.d.ts +0 -23
  1099. package/build/types-ts3.8/integrations/fs/vendored/utils.d.ts +0 -15
  1100. package/build/types-ts3.8/integrations/http.d.ts +0 -134
  1101. package/build/types-ts3.8/integrations/node-fetch.d.ts +0 -9
  1102. package/build/types-ts3.8/integrations/tracing/InstrumentationNodeModuleFile.d.ts +0 -9
  1103. package/build/types-ts3.8/integrations/tracing/amqplib/index.d.ts +0 -22
  1104. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/amqplib-types.d.ts +0 -44
  1105. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/instrumentation.d.ts +0 -11
  1106. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/patches.d.ts +0 -11
  1107. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/semconv.d.ts +0 -23
  1108. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/types.d.ts +0 -49
  1109. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/utils.d.ts +0 -42
  1110. package/build/types-ts3.8/integrations/tracing/anthropic-ai/index.d.ts +0 -62
  1111. package/build/types-ts3.8/integrations/tracing/anthropic-ai/instrumentation.d.ts +0 -19
  1112. package/build/types-ts3.8/integrations/tracing/connect/index.d.ts +0 -48
  1113. package/build/types-ts3.8/integrations/tracing/connect/vendored/enums/AttributeNames.d.ts +0 -9
  1114. package/build/types-ts3.8/integrations/tracing/connect/vendored/instrumentation.d.ts +0 -18
  1115. package/build/types-ts3.8/integrations/tracing/connect/vendored/internal-types.d.ts +0 -36
  1116. package/build/types-ts3.8/integrations/tracing/connect/vendored/utils.d.ts +0 -5
  1117. package/build/types-ts3.8/integrations/tracing/dataloader/index.d.ts +0 -22
  1118. package/build/types-ts3.8/integrations/tracing/dataloader/vendored/instrumentation.d.ts +0 -18
  1119. package/build/types-ts3.8/integrations/tracing/dataloader/vendored/types.d.ts +0 -22
  1120. package/build/types-ts3.8/integrations/tracing/express.d.ts +0 -19
  1121. package/build/types-ts3.8/integrations/tracing/fastify/index.d.ts +0 -124
  1122. package/build/types-ts3.8/integrations/tracing/fastify/types.d.ts +0 -33
  1123. package/build/types-ts3.8/integrations/tracing/fastify/v3/constants.d.ts +0 -3
  1124. package/build/types-ts3.8/integrations/tracing/fastify/v3/enums/AttributeNames.d.ts +0 -15
  1125. package/build/types-ts3.8/integrations/tracing/fastify/v3/instrumentation.d.ts +0 -16
  1126. package/build/types-ts3.8/integrations/tracing/fastify/v3/internal-types.d.ts +0 -7
  1127. package/build/types-ts3.8/integrations/tracing/fastify/v3/types.d.ts +0 -21
  1128. package/build/types-ts3.8/integrations/tracing/fastify/v3/utils.d.ts +0 -28
  1129. package/build/types-ts3.8/integrations/tracing/firebase/firebase.d.ts +0 -8
  1130. package/build/types-ts3.8/integrations/tracing/firebase/index.d.ts +0 -2
  1131. package/build/types-ts3.8/integrations/tracing/firebase/otel/firebaseInstrumentation.d.ts +0 -14
  1132. package/build/types-ts3.8/integrations/tracing/firebase/otel/index.d.ts +0 -3
  1133. package/build/types-ts3.8/integrations/tracing/firebase/otel/patches/firestore.d.ts +0 -22
  1134. package/build/types-ts3.8/integrations/tracing/firebase/otel/patches/functions.d.ts +0 -18
  1135. package/build/types-ts3.8/integrations/tracing/firebase/otel/types.d.ts +0 -100
  1136. package/build/types-ts3.8/integrations/tracing/genericPool/index.d.ts +0 -22
  1137. package/build/types-ts3.8/integrations/tracing/genericPool/vendored/generic-pool-types.d.ts +0 -5
  1138. package/build/types-ts3.8/integrations/tracing/genericPool/vendored/instrumentation.d.ts +0 -11
  1139. package/build/types-ts3.8/integrations/tracing/google-genai/index.d.ts +0 -62
  1140. package/build/types-ts3.8/integrations/tracing/google-genai/instrumentation.d.ts +0 -20
  1141. package/build/types-ts3.8/integrations/tracing/graphql/index.d.ts +0 -50
  1142. package/build/types-ts3.8/integrations/tracing/graphql/vendored/enum.d.ts +0 -38
  1143. package/build/types-ts3.8/integrations/tracing/graphql/vendored/enums/AttributeNames.d.ts +0 -10
  1144. package/build/types-ts3.8/integrations/tracing/graphql/vendored/graphql-types.d.ts +0 -2
  1145. package/build/types-ts3.8/integrations/tracing/graphql/vendored/instrumentation.d.ts +0 -25
  1146. package/build/types-ts3.8/integrations/tracing/graphql/vendored/internal-types.d.ts +0 -63
  1147. package/build/types-ts3.8/integrations/tracing/graphql/vendored/symbols.d.ts +0 -3
  1148. package/build/types-ts3.8/integrations/tracing/graphql/vendored/types.d.ts +0 -33
  1149. package/build/types-ts3.8/integrations/tracing/graphql/vendored/utils.d.ts +0 -14
  1150. package/build/types-ts3.8/integrations/tracing/hapi/index.d.ts +0 -52
  1151. package/build/types-ts3.8/integrations/tracing/hapi/types.d.ts +0 -166
  1152. package/build/types-ts3.8/integrations/tracing/hapi/vendored/enums/AttributeNames.d.ts +0 -6
  1153. package/build/types-ts3.8/integrations/tracing/hapi/vendored/hapi-types.d.ts +0 -70
  1154. package/build/types-ts3.8/integrations/tracing/hapi/vendored/instrumentation.d.ts +0 -72
  1155. package/build/types-ts3.8/integrations/tracing/hapi/vendored/internal-types.d.ts +0 -32
  1156. package/build/types-ts3.8/integrations/tracing/hapi/vendored/utils.d.ts +0 -18
  1157. package/build/types-ts3.8/integrations/tracing/hono/constants.d.ts +0 -11
  1158. package/build/types-ts3.8/integrations/tracing/hono/index.d.ts +0 -60
  1159. package/build/types-ts3.8/integrations/tracing/hono/instrumentation.d.ts +0 -55
  1160. package/build/types-ts3.8/integrations/tracing/hono/types.d.ts +0 -36
  1161. package/build/types-ts3.8/integrations/tracing/index.d.ts +0 -12
  1162. package/build/types-ts3.8/integrations/tracing/kafka/index.d.ts +0 -21
  1163. package/build/types-ts3.8/integrations/tracing/kafka/vendored/instrumentation.d.ts +0 -15
  1164. package/build/types-ts3.8/integrations/tracing/kafka/vendored/kafkajs-types.d.ts +0 -79
  1165. package/build/types-ts3.8/integrations/tracing/kafka/vendored/semconv.d.ts +0 -54
  1166. package/build/types-ts3.8/integrations/tracing/kafka/vendored/utils.d.ts +0 -29
  1167. package/build/types-ts3.8/integrations/tracing/knex/index.d.ts +0 -22
  1168. package/build/types-ts3.8/integrations/tracing/knex/vendored/instrumentation.d.ts +0 -12
  1169. package/build/types-ts3.8/integrations/tracing/knex/vendored/semconv.d.ts +0 -7
  1170. package/build/types-ts3.8/integrations/tracing/knex/vendored/utils.d.ts +0 -9
  1171. package/build/types-ts3.8/integrations/tracing/koa/index.d.ts +0 -72
  1172. package/build/types-ts3.8/integrations/tracing/koa/vendored/enums/AttributeNames.d.ts +0 -5
  1173. package/build/types-ts3.8/integrations/tracing/koa/vendored/instrumentation.d.ts +0 -32
  1174. package/build/types-ts3.8/integrations/tracing/koa/vendored/internal-types.d.ts +0 -34
  1175. package/build/types-ts3.8/integrations/tracing/koa/vendored/types.d.ts +0 -13
  1176. package/build/types-ts3.8/integrations/tracing/koa/vendored/utils.d.ts +0 -15
  1177. package/build/types-ts3.8/integrations/tracing/langchain/index.d.ts +0 -101
  1178. package/build/types-ts3.8/integrations/tracing/langchain/instrumentation.d.ts +0 -38
  1179. package/build/types-ts3.8/integrations/tracing/langgraph/index.d.ts +0 -77
  1180. package/build/types-ts3.8/integrations/tracing/langgraph/instrumentation.d.ts +0 -19
  1181. package/build/types-ts3.8/integrations/tracing/lrumemoizer/index.d.ts +0 -21
  1182. package/build/types-ts3.8/integrations/tracing/lrumemoizer/vendored/instrumentation.d.ts +0 -6
  1183. package/build/types-ts3.8/integrations/tracing/mongo/index.d.ts +0 -22
  1184. package/build/types-ts3.8/integrations/tracing/mongo/vendored/instrumentation.d.ts +0 -11
  1185. package/build/types-ts3.8/integrations/tracing/mongo/vendored/internal-types.d.ts +0 -62
  1186. package/build/types-ts3.8/integrations/tracing/mongo/vendored/patches.d.ts +0 -15
  1187. package/build/types-ts3.8/integrations/tracing/mongo/vendored/utils.d.ts +0 -15
  1188. package/build/types-ts3.8/integrations/tracing/mongoose/index.d.ts +0 -22
  1189. package/build/types-ts3.8/integrations/tracing/mongoose/vendored/mongoose-types.d.ts +0 -33
  1190. package/build/types-ts3.8/integrations/tracing/mongoose/vendored/mongoose.d.ts +0 -18
  1191. package/build/types-ts3.8/integrations/tracing/mongoose/vendored/utils.d.ts +0 -4
  1192. package/build/types-ts3.8/integrations/tracing/mysql/index.d.ts +0 -22
  1193. package/build/types-ts3.8/integrations/tracing/mysql/vendored/instrumentation.d.ts +0 -14
  1194. package/build/types-ts3.8/integrations/tracing/mysql/vendored/mysql-types.d.ts +0 -78
  1195. package/build/types-ts3.8/integrations/tracing/mysql/vendored/semconv.d.ts +0 -19
  1196. package/build/types-ts3.8/integrations/tracing/mysql/vendored/utils.d.ts +0 -22
  1197. package/build/types-ts3.8/integrations/tracing/mysql2/index.d.ts +0 -22
  1198. package/build/types-ts3.8/integrations/tracing/mysql2/vendored/instrumentation.d.ts +0 -9
  1199. package/build/types-ts3.8/integrations/tracing/mysql2/vendored/mysql2-types.d.ts +0 -39
  1200. package/build/types-ts3.8/integrations/tracing/mysql2/vendored/semconv.d.ts +0 -3
  1201. package/build/types-ts3.8/integrations/tracing/mysql2/vendored/utils.d.ts +0 -25
  1202. package/build/types-ts3.8/integrations/tracing/openai/index.d.ts +0 -62
  1203. package/build/types-ts3.8/integrations/tracing/openai/instrumentation.d.ts +0 -26
  1204. package/build/types-ts3.8/integrations/tracing/postgres/index.d.ts +0 -26
  1205. package/build/types-ts3.8/integrations/tracing/postgres/vendored/enums/AttributeNames.d.ts +0 -6
  1206. package/build/types-ts3.8/integrations/tracing/postgres/vendored/enums/SpanNames.d.ts +0 -6
  1207. package/build/types-ts3.8/integrations/tracing/postgres/vendored/instrumentation.d.ts +0 -12
  1208. package/build/types-ts3.8/integrations/tracing/postgres/vendored/internal-types.d.ts +0 -33
  1209. package/build/types-ts3.8/integrations/tracing/postgres/vendored/pg-pool-types.d.ts +0 -20
  1210. package/build/types-ts3.8/integrations/tracing/postgres/vendored/pg-types.d.ts +0 -54
  1211. package/build/types-ts3.8/integrations/tracing/postgres/vendored/semconv.d.ts +0 -13
  1212. package/build/types-ts3.8/integrations/tracing/postgres/vendored/types.d.ts +0 -11
  1213. package/build/types-ts3.8/integrations/tracing/postgres/vendored/utils.d.ts +0 -56
  1214. package/build/types-ts3.8/integrations/tracing/postgresjs.d.ts +0 -103
  1215. package/build/types-ts3.8/integrations/tracing/redis/cache.d.ts +0 -22
  1216. package/build/types-ts3.8/integrations/tracing/redis/index.d.ts +0 -28
  1217. package/build/types-ts3.8/integrations/tracing/redis/vendored/ioredis-instrumentation.d.ts +0 -10
  1218. package/build/types-ts3.8/integrations/tracing/redis/vendored/redis-instrumentation.d.ts +0 -16
  1219. package/build/types-ts3.8/integrations/tracing/redis/vendored/semconv.d.ts +0 -4
  1220. package/build/types-ts3.8/integrations/tracing/redis/vendored/types.d.ts +0 -24
  1221. package/build/types-ts3.8/integrations/tracing/tedious/index.d.ts +0 -22
  1222. package/build/types-ts3.8/integrations/tracing/tedious/vendored/instrumentation.d.ts +0 -11
  1223. package/build/types-ts3.8/integrations/tracing/tedious/vendored/semconv.d.ts +0 -19
  1224. package/build/types-ts3.8/integrations/tracing/tedious/vendored/tedious-types.d.ts +0 -21
  1225. package/build/types-ts3.8/integrations/tracing/tedious/vendored/utils.d.ts +0 -9
  1226. package/build/types-ts3.8/integrations/tracing/vercelai/constants.d.ts +0 -2
  1227. package/build/types-ts3.8/integrations/tracing/vercelai/index.d.ts +0 -44
  1228. package/build/types-ts3.8/integrations/tracing/vercelai/instrumentation.d.ts +0 -56
  1229. package/build/types-ts3.8/integrations/tracing/vercelai/types.d.ts +0 -50
  1230. package/build/types-ts3.8/preload.d.ts +0 -2
  1231. package/build/types-ts3.8/sdk/diagnosticsChannelInjection.d.ts +0 -41
  1232. package/build/types-ts3.8/sdk/experimentalUseDiagnosticsChannelInjection.d.ts +0 -37
  1233. package/build/types-ts3.8/sdk/index.d.ts +0 -36
  1234. package/build/types-ts3.8/sdk/initOtel.d.ts +0 -30
  1235. package/build/types-ts3.8/types.d.ts +0 -89
  1236. package/build/types-ts3.8/utils/redisCache.d.ts +0 -17
  1237. package/build/types-ts3.8/utils/setHttpServerSpanRouteAttribute.d.ts +0 -9
@@ -0,0 +1,29 @@
1
+ import { setConversationId } from '@sentry/core';
2
+ import { eveIntegration } from '@sentry/server-utils';
3
+ import { init } from './sdk/index.js';
4
+
5
+ function eveInstrumentation(options = {}) {
6
+ const { getConversationId, ...initOptions } = options;
7
+ const setConversationIdFromSession = (sessionId) => {
8
+ setConversationId(getConversationId ? getConversationId({ session: { id: sessionId } }) : sessionId);
9
+ };
10
+ return {
11
+ setup() {
12
+ init({ ...initOptions, integrations: withEveIntegration(initOptions.integrations) });
13
+ },
14
+ events: {
15
+ "turn.started": (event) => setConversationIdFromSession(event.sessionId),
16
+ "step.attempt.started": (event) => setConversationIdFromSession(event.scope.sessionId)
17
+ }
18
+ };
19
+ }
20
+ function withEveIntegration(integrations) {
21
+ const eve = eveIntegration();
22
+ if (typeof integrations === "function") {
23
+ return (defaults) => [...integrations(defaults), eve];
24
+ }
25
+ return [...integrations ?? [], eve];
26
+ }
27
+
28
+ export { eveInstrumentation };
29
+ //# sourceMappingURL=eve.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eve.js","sources":["../../src/eve.ts"],"sourcesContent":["import { type Integration, setConversationId } from '@sentry/core';\nimport { eveIntegration } from '@sentry/server-utils';\nimport { init } from './sdk';\nimport type { NodeOptions } from './types';\n\n/**\n * Options for {@link eveInstrumentation}: every `Sentry.init` option, plus how to derive the\n * conversation id.\n */\nexport interface EveInstrumentationOptions extends NodeOptions {\n /**\n * Derive the Sentry conversation id from the eve session. Defaults to the durable session id\n * (`session.id`), which is stable across every turn of a session and so groups them into one\n * conversation. Return `null`/`undefined` to skip setting it for a turn.\n */\n getConversationId?: (context: { session: { id: string } }) => string | null | undefined;\n}\n\n/**\n * The `defineInstrumentation` provider shape this returns. Typed structurally rather than importing\n * from `eve`, so the SDK carries no dependency on the framework — the shape is checked at the\n * `defineInstrumentation(...)` call site in the user's app instead.\n */\ninterface EveInstrumentationProvider {\n setup: () => void;\n events: {\n 'turn.started': (event: { sessionId: string }) => void;\n 'step.attempt.started': (event: { scope: { sessionId: string } }) => void;\n };\n}\n\n/**\n * All-in-one Sentry setup for an [eve](https://eve.dev) agent, wired into a single\n * `agent/instrumentation/*.ts` provider file.\n *\n * @example\n * ```ts\n * // agent/instrumentation/sentry.ts\n * import * as Sentry from '@sentry/node';\n * import { defineInstrumentation } from 'eve/instrumentation';\n *\n * export default defineInstrumentation(Sentry.eveInstrumentation({ dsn: '__DSN__' }));\n * ```\n *\n * It:\n * - runs `Sentry.init` with the given options at server startup (`setup`), adding\n * {@link eveIntegration} so gen_ai inputs/outputs are recorded by default (eve stamps every AI SDK\n * call with `recordInputs`/`recordOutputs: false`);\n * - tags each turn's AI spans with a Sentry conversation id via `turn.started` / `step.attempt.started`\n * events — the instrumentation-provider equivalent of `eveConversationHook`. Provider event handlers\n * receive the session id on the event (`event.sessionId` / `event.scope.sessionId`), unlike hook\n * handlers, which read it from their context.\n */\nexport function eveInstrumentation(options: EveInstrumentationOptions = {}): EveInstrumentationProvider {\n const { getConversationId, ...initOptions } = options;\n\n const setConversationIdFromSession = (sessionId: string): void => {\n setConversationId(getConversationId ? getConversationId({ session: { id: sessionId } }) : sessionId);\n };\n\n return {\n setup() {\n init({ ...initOptions, integrations: withEveIntegration(initOptions.integrations) });\n },\n events: {\n 'turn.started': event => setConversationIdFromSession(event.sessionId),\n 'step.attempt.started': event => setConversationIdFromSession(event.scope.sessionId),\n },\n };\n}\n\nfunction withEveIntegration(integrations: NodeOptions['integrations']): NodeOptions['integrations'] {\n const eve = eveIntegration();\n if (typeof integrations === 'function') {\n return (defaults: Integration[]) => [...integrations(defaults), eve];\n }\n return [...(integrations ?? []), eve];\n}\n"],"names":[],"mappings":";;;;AAqDO,SAAS,kBAAA,CAAmB,OAAA,GAAqC,EAAC,EAA+B;AACtG,EAAA,MAAM,EAAE,iBAAA,EAAmB,GAAG,WAAA,EAAY,GAAI,OAAA;AAE9C,EAAA,MAAM,4BAAA,GAA+B,CAAC,SAAA,KAA4B;AAChE,IAAA,iBAAA,CAAkB,iBAAA,GAAoB,iBAAA,CAAkB,EAAE,OAAA,EAAS,EAAE,IAAI,SAAA,EAAU,EAAG,CAAA,GAAI,SAAS,CAAA;AAAA,EACrG,CAAA;AAEA,EAAA,OAAO;AAAA,IACL,KAAA,GAAQ;AACN,MAAA,IAAA,CAAK,EAAE,GAAG,WAAA,EAAa,YAAA,EAAc,mBAAmB,WAAA,CAAY,YAAY,GAAG,CAAA;AAAA,IACrF,CAAA;AAAA,IACA,MAAA,EAAQ;AAAA,MACN,cAAA,EAAgB,CAAA,KAAA,KAAS,4BAAA,CAA6B,KAAA,CAAM,SAAS,CAAA;AAAA,MACrE,sBAAA,EAAwB,CAAA,KAAA,KAAS,4BAAA,CAA6B,KAAA,CAAM,MAAM,SAAS;AAAA;AACrF,GACF;AACF;AAEA,SAAS,mBAAmB,YAAA,EAAwE;AAClG,EAAA,MAAM,MAAM,cAAA,EAAe;AAC3B,EAAA,IAAI,OAAO,iBAAiB,UAAA,EAAY;AACtC,IAAA,OAAO,CAAC,QAAA,KAA4B,CAAC,GAAG,YAAA,CAAa,QAAQ,GAAG,GAAG,CAAA;AAAA,EACrE;AACA,EAAA,OAAO,CAAC,GAAI,YAAA,IAAgB,IAAK,GAAG,CAAA;AACtC;;;;"}
@@ -1,46 +1,45 @@
1
- export { httpIntegration } from './integrations/http.js';
2
- export { nativeNodeFetchIntegration } from './integrations/node-fetch.js';
1
+ export { httpIntegration } from './integrations/http/index.js';
2
+ export { nativeNodeFetchIntegration } from './integrations/node-fetch/index.js';
3
3
  export { fsIntegration } from './integrations/fs/index.js';
4
- export { expressIntegration, setupExpressErrorHandler } from './integrations/tracing/express.js';
5
- export { fastifyIntegration, setupFastifyErrorHandler } from './integrations/tracing/fastify/index.js';
6
- export { graphqlIntegration } from './integrations/tracing/graphql/index.js';
7
- export { kafkaIntegration } from './integrations/tracing/kafka/index.js';
8
- export { lruMemoizerIntegration } from './integrations/tracing/lrumemoizer/index.js';
9
- export { mongoIntegration } from './integrations/tracing/mongo/index.js';
10
- export { mongooseIntegration } from './integrations/tracing/mongoose/index.js';
11
- export { mysqlIntegration } from './integrations/tracing/mysql/index.js';
12
- export { mysql2Integration } from './integrations/tracing/mysql2/index.js';
13
- export { redisIntegration } from './integrations/tracing/redis/index.js';
14
- export { postgresIntegration } from './integrations/tracing/postgres/index.js';
15
- export { postgresJsIntegration } from './integrations/tracing/postgresjs.js';
16
- export { prismaIntegration } from '@sentry/server-utils';
17
- export { hapiIntegration, setupHapiErrorHandler } from './integrations/tracing/hapi/index.js';
18
- export { honoIntegration, setupHonoErrorHandler } from './integrations/tracing/hono/index.js';
19
- export { koaIntegration, setupKoaErrorHandler } from './integrations/tracing/koa/index.js';
20
- export { connectIntegration, setupConnectErrorHandler } from './integrations/tracing/connect/index.js';
21
- export { knexIntegration } from './integrations/tracing/knex/index.js';
22
- export { tediousIntegration } from './integrations/tracing/tedious/index.js';
23
- export { genericPoolIntegration } from './integrations/tracing/genericPool/index.js';
24
- export { dataloaderIntegration } from './integrations/tracing/dataloader/index.js';
25
- export { amqplibIntegration } from './integrations/tracing/amqplib/index.js';
26
- export { vercelAIIntegration } from './integrations/tracing/vercelai/index.js';
27
- export { openAIIntegration } from './integrations/tracing/openai/index.js';
28
- export { anthropicAIIntegration } from './integrations/tracing/anthropic-ai/index.js';
29
- export { googleGenAIIntegration } from './integrations/tracing/google-genai/index.js';
30
- export { langChainIntegration } from './integrations/tracing/langchain/index.js';
31
- export { langGraphIntegration } from './integrations/tracing/langgraph/index.js';
4
+ export { SentryMastraExporter, amqplibIntegration, anthropicAIIntegration, createFlueInstrumentation, createLangChainCallbackHandler, dataloaderIntegration, eveConversationHook, eveIntegration, expressErrorHandler, expressIntegration, fastifyIntegration, firebaseIntegration, genericPoolIntegration, getInstrumentedModuleNames, getOtlpTracesEndpoint, googleGenAIIntegration, graphqlIntegration, groqIntegration, hapiIntegration, instrumentAnthropicAiClient, instrumentGoogleGenAIClient, instrumentLangChainEmbeddings, instrumentMistralAiClient, instrumentOpenAiClient, instrumentStateGraph, instrumentStateGraphCompile, instrumentTypeSafeClient, kafkaIntegration, knexIntegration, koaIntegration, langChainIntegration, langGraphIntegration, lruMemoizerIntegration, mastraIntegration, mcpServerIntegration, mistralAIIntegration, mongoIntegration, mongooseIntegration, mysql2Integration, mysqlIntegration, openAIIntegration, openTelemetryIntegration, postgresIntegration, postgresJsIntegration, prismaIntegration, redisIntegration, setupExpressErrorHandler, setupFastifyErrorHandler, tediousIntegration, togetherAIIntegration, typesafeIntegration, vercelAIIntegration } from '@sentry/server-utils';
5
+ export { setupHapiErrorHandler } from './integrations/tracing/hapi.js';
6
+ export { setupKoaErrorHandler } from './integrations/tracing/koa.js';
32
7
  export { buildLaunchDarklyFlagUsedHandlerShim as buildLaunchDarklyFlagUsedHandler, launchDarklyIntegrationShim as launchDarklyIntegration } from './integrations/featureFlagShims/launchDarkly.js';
33
8
  export { OpenFeatureIntegrationHookShim as OpenFeatureIntegrationHook, openFeatureIntegrationShim as openFeatureIntegration } from './integrations/featureFlagShims/openFeature.js';
34
9
  export { statsigIntegrationShim as statsigIntegration } from './integrations/featureFlagShims/statsig.js';
35
10
  export { unleashIntegrationShim as unleashIntegration } from './integrations/featureFlagShims/unleash.js';
36
11
  export { growthbookIntegrationShim as growthbookIntegration } from './integrations/featureFlagShims/growthbook.js';
37
- export { firebaseIntegration } from './integrations/tracing/firebase/firebase.js';
38
- export { applyDiagnosticsChannelInjectionIntegrations, getDefaultIntegrations, getDefaultIntegrationsWithoutPerformance, init, initWithoutDefaultIntegrations } from './sdk/index.js';
39
- export { diagnosticsChannelInjectionIntegrations, experimentalUseDiagnosticsChannelInjection } from './sdk/experimentalUseDiagnosticsChannelInjection.js';
40
- export { isDiagnosticsChannelInjectionEnabled } from './sdk/diagnosticsChannelInjection.js';
41
- export { initOpenTelemetry, preloadOpenTelemetry } from './sdk/initOtel.js';
12
+ export { getDefaultIntegrations, getDefaultIntegrationsWithoutPerformance, init, initWithoutDefaultIntegrations } from './sdk/index.js';
13
+ export { initOpenTelemetry } from './sdk/initOtel.js';
42
14
  export { getAutoPerformanceIntegrations } from './integrations/tracing/index.js';
43
- export { setOpenTelemetryContextAsyncContextStrategy as setNodeAsyncContextStrategy } from '@sentry/opentelemetry';
44
- export { SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, Scope, addBreadcrumb, addEventProcessor, addIntegration, bindScopeToEmitter, captureCheckIn, captureConsoleIntegration, captureEvent, captureException, captureFeedback, captureMessage, captureSession, close, consoleLoggingIntegration, continueTrace, createConsolaReporter, createLangChainCallbackHandler, createTransport, dedupeIntegration, endSession, eventFiltersIntegration, expressErrorHandler, extraErrorDataIntegration, featureFlagsIntegration, flush, functionToStringIntegration, getActiveSpan, getClient, getCurrentScope, getGlobalScope, getIsolationScope, getRootSpan, getSpanDescendants, getSpanStatusFromHttpCode, getTraceData, getTraceMetaTags, httpHeadersToSpanAttributes, inboundFiltersIntegration, instrumentAnthropicAiClient, instrumentGoogleGenAIClient, instrumentLangChainEmbeddings, instrumentLangGraph, instrumentOpenAiClient, instrumentStateGraph, instrumentStateGraphCompile, instrumentSupabaseClient, isEnabled, isInitialized, lastEventId, linkedErrorsIntegration, parameterize, profiler, requestDataIntegration, rewriteFramesIntegration, setAttribute, setAttributes, setContext, setConversationId, setCurrentClient, setExtra, setExtras, setHttpStatus, setMeasurement, setTag, setTags, setUser, spanStreamingIntegration, spanToBaggageHeader, spanToJSON, spanToTraceHeader, startInactiveSpan, startNewTrace, startSession, startSpan, startSpanManual, supabaseIntegration, suppressTracing, trpcMiddleware, updateSpanName, winterCGHeadersToDict, withActiveSpan, withIsolationScope, withMonitor, withScope, wrapMcpServerWithSentry, zodErrorsIntegration } from '@sentry/core';
45
- export { NODE_VERSION, NodeClient, SentryContextManager, _INTERNAL_normalizeCollectionInterval, anrIntegration, childProcessIntegration, consoleIntegration, contextLinesIntegration, createGetModuleFromFilename, createSentryWinstonTransport, cron, defaultStackParser, disableAnrDetectionForCallback, generateInstrumentOnce, getSentryRelease, httpServerIntegration, httpServerSpansIntegration, localVariablesIntegration, logger, makeNodeTransport, metrics, modulesIntegration, nodeContextIntegration, nodeRuntimeMetricsIntegration, onUncaughtExceptionIntegration, onUnhandledRejectionIntegration, pinoIntegration, processSessionIntegration, spotlightIntegration, systemErrorIntegration, validateOpenTelemetrySetup, withStreamedSpan } from '@sentry/node-core';
15
+ export { setOpenTelemetryContextAsyncContextStrategy } from '@sentry/opentelemetry';
16
+ export { SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, Scope, addBreadcrumb, addEventProcessor, addIntegration, bindScopeToEmitter, captureCheckIn, captureConsoleIntegration, captureEvent, captureException, captureFeedback, captureMessage, captureSession, close, consoleLoggingIntegration, continueTrace, createConsolaReporter, createTransport, dedupeIntegration, endSession, eventFiltersIntegration, extraErrorDataIntegration, featureFlagsIntegration, flush, functionToStringIntegration, getActiveSpan, getClient, getCurrentScope, getGlobalScope, getIsolationScope, getRootSpan, getSpanDescendants, getSpanStatusFromHttpCode, getTraceData, getTraceMetaTags, httpHeadersToSpanAttributes, instrumentSupabaseClient, isEnabled, isInitialized, lastEventId, linkedErrorsIntegration, metrics, parameterize, profiler, requestDataIntegration, rewriteFramesIntegration, setAttribute, setAttributes, setContext, setConversationId, setCurrentClient, setExtra, setExtras, setHttpStatus, setMeasurement, setTag, setTags, setUser, spanStreamingIntegration, spanToBaggageHeader, spanToJSON, spanToStaticSpanJSON, spanToTraceHeader, startInactiveSpan, startNewTrace, startSession, startSpan, startSpanManual, supabaseIntegration, suppressTracing, updateSpanName, winterCGHeadersToDict, withActiveSpan, withIsolationScope, withMonitor, withScope, withStaticSpan, withStreamedSpan, zodErrorsIntegration } from '@sentry/core';
17
+ export { trpcMiddleware, wrapMcpServerWithSentry } from '@sentry/core/server';
18
+ import * as exports$1 from './logs/exports.js';
19
+ export { exports$1 as logger };
20
+ export { childProcessIntegration } from './integrations/childProcess.js';
21
+ export { consoleIntegration } from './integrations/console.js';
22
+ export { nodeContextIntegration } from './integrations/context.js';
23
+ export { contextLinesIntegration } from './integrations/contextlines.js';
24
+ export { localVariablesIntegration } from './integrations/local-variables/index.js';
25
+ export { modulesIntegration } from './integrations/modules.js';
26
+ export { _INTERNAL_normalizeCollectionInterval, nodeRuntimeMetricsIntegration } from './integrations/nodeRuntimeMetrics.js';
27
+ export { onUncaughtExceptionIntegration } from './integrations/onuncaughtexception.js';
28
+ export { onUnhandledRejectionIntegration } from './integrations/onunhandledrejection.js';
29
+ export { pinoIntegration } from './integrations/pino.js';
30
+ export { spotlightIntegration } from './integrations/spotlight.js';
31
+ export { systemErrorIntegration } from './integrations/systemError.js';
32
+ export { createSentryWinstonTransport } from './integrations/winston.js';
33
+ export { workerThreadsIntegration } from './integrations/workerThreads.js';
34
+ export { cron } from './cron/index.js';
35
+ export { NODE_VERSION } from './nodeVersion.js';
36
+ export { defaultStackParser, getSentryRelease } from './sdk/api.js';
37
+ export { makeNodeTransport } from './transports/http.js';
38
+ export { createGetModuleFromFilename } from './utils/module.js';
39
+ export { eveInstrumentation } from './eve.js';
40
+ export { httpServerIntegration } from './integrations/http/httpServerIntegration.js';
41
+ export { httpServerSpansIntegration } from './integrations/http/httpServerSpansIntegration.js';
42
+ export { processSessionIntegration } from './integrations/processSession.js';
43
+ export { NodeClient } from './sdk/client.js';
44
+ export { anrIntegration, disableAnrDetectionForCallback } from './integrations/anr/index.js';
46
45
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,163 @@
1
+ import { types } from 'node:util';
2
+ import { Worker } from 'node:worker_threads';
3
+ import { defineIntegration, debug, getCombinedScopeData, getIsolationScope, getCurrentScope, getFilenameToDebugIdMap, GLOBAL_OBJ, getClient } from '@sentry/core';
4
+ import { isDebuggerEnabled } from '../../utils/debug.js';
5
+
6
+ const { isPromise } = types;
7
+ const base64WorkerScript = "LyohIEBzZW50cnkvbm9kZSAxMS4xLjAgKDFkY2ZkMmYpIHwgaHR0cHM6Ly9naXRodWIuY29tL2dldHNlbnRyeS9zZW50cnktamF2YXNjcmlwdCAqLwppbXBvcnR7U2Vzc2lvbiBhcyB0fWZyb20ibm9kZTppbnNwZWN0b3IiO2ltcG9ydHt3b3JrZXJEYXRhIGFzIGUscGFyZW50UG9ydCBhcyBufWZyb20ibm9kZTp3b3JrZXJfdGhyZWFkcyI7aW1wb3J0e3Bvc2l4IGFzIHIsc2VwIGFzIG99ZnJvbSJub2RlOnBhdGgiO2ltcG9ydCphcyBzIGZyb20ibm9kZTpodHRwIjtpbXBvcnQqYXMgaSBmcm9tIm5vZGU6aHR0cHMiO2ltcG9ydHtSZWFkYWJsZSBhcyBjfWZyb20ibm9kZTpzdHJlYW0iO2ltcG9ydHtjcmVhdGVHemlwIGFzIHV9ZnJvbSJub2RlOnpsaWIiO2ltcG9ydCphcyBhIGZyb20ibm9kZTpuZXQiO2ltcG9ydCphcyBmIGZyb20ibm9kZTp0bHMiO2NvbnN0IGg9InVuZGVmaW5lZCI9PXR5cGVvZiBfX1NFTlRSWV9ERUJVR19ffHxfX1NFTlRSWV9ERUJVR19fLHA9Z2xvYmFsVGhpcyxsPSIxMS4xLjAiO2Z1bmN0aW9uIGQoKXtyZXR1cm4gZyhwKSxwfWZ1bmN0aW9uIGcodCl7Y29uc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b2xsSW50ZXJ2YWwsVXQuYW5yVGhyZXNob2xkLGZ1bmN0aW9uKCl7enQoIldhdGNoZG9nIHRpbWVvdXQiKSxxdD8oenQoIlBhdXNpbmcgZGVidWdnZXIgdG8gY2FwdHVyZSBzdGFjayB0cmFjZSIpLHF0KCkpOih6dCgiQ2FwdHVyaW5nIGV2ZW50IHdpdGhvdXQgYSBzdGFjayB0cmFjZSIpLFp0KCkudGhlbihudWxsLCgpPT57enQoIlNlbmRpbmcgQU5SIGV2ZW50IGZhaWxlZCBvbiB3YXRjaGRvZyB0aW1lb3V0LiIpfSkpfSk7bj8ub24oIm1lc3NhZ2UiLHQ9Pnt0LnNlc3Npb24mJihCdD1IKHQuc2Vzc2lvbikpLHQuZGVidWdJbWFnZXMmJihNdD10LmRlYnVnSW1hZ2VzKSxLdCgpfSksbj8ucG9zdE1lc3NhZ2UoIndvcmtlci1yZWFkeSIpOw==";
8
+ const DEFAULT_INTERVAL = 50;
9
+ const DEFAULT_HANG_THRESHOLD = 5e3;
10
+ function log(message, ...args) {
11
+ debug.log(`[ANR] ${message}`, ...args);
12
+ }
13
+ function globalWithScopeFetchFn() {
14
+ return GLOBAL_OBJ;
15
+ }
16
+ function getScopeData() {
17
+ const scope = getCombinedScopeData(getIsolationScope(), getCurrentScope());
18
+ scope.attachments = [];
19
+ scope.eventProcessors = [];
20
+ return scope;
21
+ }
22
+ async function getContexts(client) {
23
+ let event = { message: "ANR" };
24
+ const eventHint = {};
25
+ for (const processor of client.getEventProcessors()) {
26
+ if (event === null) break;
27
+ event = await processor(event, eventHint);
28
+ }
29
+ return event?.contexts || {};
30
+ }
31
+ const INTEGRATION_NAME = "Anr";
32
+ const _anrIntegration = ((options = {}) => {
33
+ let worker;
34
+ let client;
35
+ let workerReady;
36
+ const gbl = globalWithScopeFetchFn();
37
+ gbl.__SENTRY_GET_SCOPES__ = getScopeData;
38
+ return {
39
+ name: INTEGRATION_NAME,
40
+ startWorker: () => {
41
+ if (worker) {
42
+ return;
43
+ }
44
+ const initializedClient = client;
45
+ if (initializedClient) {
46
+ workerReady = new Promise((resolve) => {
47
+ worker = _startWorker(initializedClient, options, resolve);
48
+ });
49
+ }
50
+ },
51
+ stopWorker: () => {
52
+ if (worker) {
53
+ workerReady = void 0;
54
+ worker.then((stop) => {
55
+ stop();
56
+ worker = void 0;
57
+ });
58
+ }
59
+ },
60
+ waitUntilWorkerReady: () => workerReady ?? Promise.resolve(),
61
+ async setup(initClient) {
62
+ client = initClient;
63
+ if (options.captureStackTrace && await isDebuggerEnabled()) {
64
+ debug.warn("ANR captureStackTrace has been disabled because the debugger was already enabled");
65
+ options.captureStackTrace = false;
66
+ }
67
+ setImmediate(() => this.startWorker());
68
+ }
69
+ };
70
+ });
71
+ const anrIntegration = defineIntegration(_anrIntegration);
72
+ async function _startWorker(client, integrationOptions, onReady) {
73
+ const dsn = client.getDsn();
74
+ if (!dsn) {
75
+ return () => {
76
+ };
77
+ }
78
+ const contexts = await getContexts(client);
79
+ delete contexts.app?.app_memory;
80
+ delete contexts.device?.free_memory;
81
+ const initOptions = client.getOptions();
82
+ const sdkMetadata = client.getSdkMetadata() || {};
83
+ if (sdkMetadata.sdk) {
84
+ sdkMetadata.sdk.integrations = initOptions.integrations.map((i) => i.name);
85
+ }
86
+ const options = {
87
+ debug: debug.isEnabled(),
88
+ dsn,
89
+ tunnel: initOptions.tunnel,
90
+ environment: initOptions.environment || "production",
91
+ release: initOptions.release,
92
+ dist: initOptions.dist,
93
+ sdkMetadata,
94
+ appRootPath: integrationOptions.appRootPath,
95
+ pollInterval: integrationOptions.pollInterval || DEFAULT_INTERVAL,
96
+ anrThreshold: integrationOptions.anrThreshold || DEFAULT_HANG_THRESHOLD,
97
+ captureStackTrace: !!integrationOptions.captureStackTrace,
98
+ maxAnrEvents: integrationOptions.maxAnrEvents || 1,
99
+ staticTags: integrationOptions.staticTags || {},
100
+ contexts
101
+ };
102
+ if (options.captureStackTrace) {
103
+ const inspector = await import('node:inspector');
104
+ if (!inspector.url()) {
105
+ inspector.open(0);
106
+ }
107
+ }
108
+ const worker = new Worker(new URL(`data:application/javascript;base64,${base64WorkerScript}`), {
109
+ workerData: options,
110
+ // We don't want any Node args to be passed to the worker
111
+ execArgv: [],
112
+ env: { ...process.env, NODE_OPTIONS: void 0 }
113
+ });
114
+ process.on("exit", () => {
115
+ worker.terminate();
116
+ });
117
+ const timer = setInterval(() => {
118
+ try {
119
+ const currentSession = getIsolationScope().getSession();
120
+ const session = currentSession ? { ...currentSession, toJSON: void 0 } : void 0;
121
+ worker.postMessage({ session, debugImages: getFilenameToDebugIdMap(initOptions.stackParser) });
122
+ } catch {
123
+ }
124
+ }, options.pollInterval);
125
+ timer.unref();
126
+ worker.on("message", (msg) => {
127
+ if (msg === "session-ended") {
128
+ log("ANR event sent from ANR worker. Clearing session in this thread.");
129
+ getIsolationScope().setSession(void 0);
130
+ } else if (msg === "worker-ready") {
131
+ onReady?.();
132
+ }
133
+ });
134
+ worker.once("error", (err) => {
135
+ clearInterval(timer);
136
+ log("ANR worker error", err);
137
+ });
138
+ worker.once("exit", (code) => {
139
+ clearInterval(timer);
140
+ log("ANR worker exit", code);
141
+ });
142
+ worker.unref();
143
+ return () => {
144
+ worker.terminate();
145
+ clearInterval(timer);
146
+ };
147
+ }
148
+ function disableAnrDetectionForCallback(callback) {
149
+ const integration = getClient()?.getIntegrationByName(INTEGRATION_NAME);
150
+ if (!integration) {
151
+ return callback();
152
+ }
153
+ integration.stopWorker();
154
+ const result = callback();
155
+ if (isPromise(result)) {
156
+ return result.finally(() => integration.startWorker());
157
+ }
158
+ integration.startWorker();
159
+ return result;
160
+ }
161
+
162
+ export { anrIntegration, base64WorkerScript, disableAnrDetectionForCallback };
163
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/integrations/anr/index.ts"],"sourcesContent":["import { types } from 'node:util';\nimport { Worker } from 'node:worker_threads';\nimport type { Contexts, Event, EventHint, Integration, IntegrationFn, ScopeData } from '@sentry/core';\nimport {\n debug,\n defineIntegration,\n getClient,\n getCombinedScopeData,\n getCurrentScope,\n getFilenameToDebugIdMap,\n getIsolationScope,\n GLOBAL_OBJ,\n} from '@sentry/core';\nimport type { NodeClient } from '../../sdk/client';\nimport { isDebuggerEnabled } from '../../utils/debug';\nimport type { AnrIntegrationOptions, WorkerStartData } from './common';\n\nconst { isPromise } = types;\n\n// This string is a placeholder that gets overwritten with the worker code.\nexport const base64WorkerScript = '###AnrWorkerScript###';\n\nconst DEFAULT_INTERVAL = 50;\nconst DEFAULT_HANG_THRESHOLD = 5000;\n\nfunction log(message: string, ...args: unknown[]): void {\n debug.log(`[ANR] ${message}`, ...args);\n}\n\nfunction globalWithScopeFetchFn(): typeof GLOBAL_OBJ & { __SENTRY_GET_SCOPES__?: () => ScopeData } {\n return GLOBAL_OBJ;\n}\n\n/** Fetches merged scope data */\nfunction getScopeData(): ScopeData {\n const scope = getCombinedScopeData(getIsolationScope(), getCurrentScope());\n\n // We remove attachments because they likely won't serialize well as json\n scope.attachments = [];\n // We can't serialize event processor functions\n scope.eventProcessors = [];\n\n return scope;\n}\n\n/**\n * Gets contexts by calling all event processors. This shouldn't be called until all integrations are setup\n */\nasync function getContexts(client: NodeClient): Promise<Contexts> {\n let event: Event | null = { message: 'ANR' };\n const eventHint: EventHint = {};\n\n for (const processor of client.getEventProcessors()) {\n if (event === null) break;\n event = await processor(event, eventHint);\n }\n\n return event?.contexts || {};\n}\n\nconst INTEGRATION_NAME = 'Anr' as const;\n\ntype AnrInternal = {\n startWorker: () => void;\n stopWorker: () => void;\n waitUntilWorkerReady: () => Promise<void>;\n};\n\n// eslint-disable-next-line typescript/no-deprecated\nconst _anrIntegration = ((options: Partial<AnrIntegrationOptions> = {}) => {\n let worker: Promise<() => void> | undefined;\n let client: NodeClient | undefined;\n let workerReady: Promise<void> | undefined;\n\n // Hookup the scope fetch function to the global object so that it can be called from the worker thread via the\n // debugger when it pauses\n const gbl = globalWithScopeFetchFn();\n gbl.__SENTRY_GET_SCOPES__ = getScopeData;\n\n return {\n name: INTEGRATION_NAME,\n startWorker: () => {\n if (worker) {\n return;\n }\n\n const initializedClient = client;\n if (initializedClient) {\n workerReady = new Promise<void>(resolve => {\n worker = _startWorker(initializedClient, options, resolve);\n });\n }\n },\n stopWorker: () => {\n if (worker) {\n workerReady = undefined;\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n worker.then(stop => {\n stop();\n worker = undefined;\n });\n }\n },\n waitUntilWorkerReady: () => workerReady ?? Promise.resolve(),\n async setup(initClient: NodeClient) {\n client = initClient;\n\n if (options.captureStackTrace && (await isDebuggerEnabled())) {\n debug.warn('ANR captureStackTrace has been disabled because the debugger was already enabled');\n options.captureStackTrace = false;\n }\n\n // setImmediate is used to ensure that all other integrations have had their setup called first.\n // This allows us to call into all integrations to fetch the full context\n setImmediate(() => this.startWorker());\n },\n } as Integration & AnrInternal;\n}) satisfies IntegrationFn;\n\n// eslint-disable-next-line typescript/no-deprecated\ntype AnrReturn = (options?: Partial<AnrIntegrationOptions>) => Integration & AnrInternal;\n\n/**\n * Application Not Responding (ANR) integration for Node.js applications.\n *\n * @deprecated The ANR integration has been deprecated. Use `eventLoopBlockIntegration` from `@sentry/node-native` instead.\n *\n * Detects when the Node.js main thread event loop is blocked for more than the configured\n * threshold (5 seconds by default) and reports these as Sentry events.\n *\n * ANR detection uses a worker thread to monitor the event loop in the main app thread.\n * The main app thread sends a heartbeat message to the ANR worker thread every 50ms by default.\n * If the ANR worker does not receive a heartbeat message for the configured threshold duration,\n * it triggers an ANR event.\n *\n * - Node.js 16.17.0 or higher\n * - Only supported in the Node.js runtime (not browsers)\n * - Not supported for Node.js clusters\n *\n * Overhead should be minimal:\n * - Main thread: Only polling the ANR worker over IPC every 50ms\n * - Worker thread: Consumes around 10-20 MB of RAM\n * - When ANR detected: Brief pause in debugger to capture stack trace (negligible compared to the blocking)\n *\n * @example\n * ```javascript\n * Sentry.init({\n * dsn: \"https://examplePublicKey@o0.ingest.sentry.io/0\",\n * integrations: [\n * Sentry.anrIntegration({\n * anrThreshold: 5000,\n * captureStackTrace: true,\n * pollInterval: 50,\n * }),\n * ],\n * });\n * ```\n */\nexport const anrIntegration = defineIntegration(_anrIntegration) as AnrReturn;\n\n/**\n * Starts the ANR worker thread\n *\n * @returns A function to stop the worker\n */\nasync function _startWorker(\n client: NodeClient,\n // eslint-disable-next-line typescript/no-deprecated\n integrationOptions: Partial<AnrIntegrationOptions>,\n onReady?: () => void,\n): Promise<() => void> {\n const dsn = client.getDsn();\n\n if (!dsn) {\n return () => {\n //\n };\n }\n\n const contexts = await getContexts(client);\n\n // These will not be accurate if sent later from the worker thread\n delete contexts.app?.app_memory;\n delete contexts.device?.free_memory;\n\n const initOptions = client.getOptions();\n\n const sdkMetadata = client.getSdkMetadata() || {};\n if (sdkMetadata.sdk) {\n sdkMetadata.sdk.integrations = initOptions.integrations.map(i => i.name);\n }\n\n const options: WorkerStartData = {\n debug: debug.isEnabled(),\n dsn,\n tunnel: initOptions.tunnel,\n environment: initOptions.environment || 'production',\n release: initOptions.release,\n dist: initOptions.dist,\n sdkMetadata,\n appRootPath: integrationOptions.appRootPath,\n pollInterval: integrationOptions.pollInterval || DEFAULT_INTERVAL,\n anrThreshold: integrationOptions.anrThreshold || DEFAULT_HANG_THRESHOLD,\n captureStackTrace: !!integrationOptions.captureStackTrace,\n maxAnrEvents: integrationOptions.maxAnrEvents || 1,\n staticTags: integrationOptions.staticTags || {},\n contexts,\n };\n\n if (options.captureStackTrace) {\n const inspector = await import('node:inspector');\n if (!inspector.url()) {\n inspector.open(0);\n }\n }\n\n const worker = new Worker(new URL(`data:application/javascript;base64,${base64WorkerScript}`), {\n workerData: options,\n // We don't want any Node args to be passed to the worker\n execArgv: [],\n env: { ...process.env, NODE_OPTIONS: undefined },\n });\n\n process.on('exit', () => {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n worker.terminate();\n });\n\n const timer = setInterval(() => {\n try {\n const currentSession = getIsolationScope().getSession();\n // We need to copy the session object and remove the toJSON method so it can be sent to the worker\n // serialized without making it a SerializedSession\n const session = currentSession ? { ...currentSession, toJSON: undefined } : undefined;\n // message the worker to tell it the main event loop is still running\n worker.postMessage({ session, debugImages: getFilenameToDebugIdMap(initOptions.stackParser) });\n } catch {\n //\n }\n }, options.pollInterval);\n // Timer should not block exit\n timer.unref();\n\n worker.on('message', (msg: string) => {\n if (msg === 'session-ended') {\n log('ANR event sent from ANR worker. Clearing session in this thread.');\n getIsolationScope().setSession(undefined);\n } else if (msg === 'worker-ready') {\n onReady?.();\n }\n });\n\n worker.once('error', (err: Error) => {\n clearInterval(timer);\n log('ANR worker error', err);\n });\n\n worker.once('exit', (code: number) => {\n clearInterval(timer);\n log('ANR worker exit', code);\n });\n\n // Ensure this thread can't block app exit\n worker.unref();\n\n return () => {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n worker.terminate();\n clearInterval(timer);\n };\n}\n\n/**\n * @see {@link disableBlockDetectionForCallback}\n *\n * @deprecated The ANR integration has been deprecated. Use `eventLoopBlockIntegration` from `@sentry/node-native` instead.\n */\nexport function disableAnrDetectionForCallback<T>(callback: () => T): T;\n/**\n * @see {@link disableBlockDetectionForCallback}\n *\n * @deprecated The ANR integration has been deprecated. Use `eventLoopBlockIntegration` from `@sentry/node-native` instead.\n */\nexport function disableAnrDetectionForCallback<T>(callback: () => Promise<T>): Promise<T>;\n/**\n * Temporarily disables ANR detection for the duration of a callback function.\n *\n * This utility function allows you to disable ANR detection during operations that\n * are expected to block the event loop, such as intensive computational tasks or\n * synchronous I/O operations.\n *\n * @deprecated The ANR integration has been deprecated. Use `eventLoopBlockIntegration` from `@sentry/node-native` instead.\n */\nexport function disableAnrDetectionForCallback<T>(callback: () => T | Promise<T>): T | Promise<T> {\n const integration = getClient()?.getIntegrationByName(INTEGRATION_NAME) as AnrInternal | undefined;\n\n if (!integration) {\n return callback();\n }\n\n integration.stopWorker();\n\n const result = callback();\n if (isPromise(result)) {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AAA,aAAA,CAAc,KAAK,CAAA;AACnB,IAAA,GAAA,CAAI,oBAAoB,GAAG,CAAA;AAAA,EAC7B,CAAC,CAAA;AAED,EAAA,MAAA,CAAO,IAAA,CAAK,MAAA,EAAQ,CAAC,IAAA,KAAiB;AACpC,IAAA,aAAA,CAAc,KAAK,CAAA;AACnB,IAAA,GAAA,CAAI,mBAAmB,IAAI,CAAA;AAAA,EAC7B,CAAC,CAAA;AAGD,EAAA,MAAA,CAAO,KAAA,EAAM;AAEb,EAAA,OAAO,MAAM;AAEX,IAAA,MAAA,CAAO,SAAA,EAAU;AACjB,IAAA,aAAA,CAAc,KAAK,CAAA;AAAA,EACrB,CAAA;AACF;AAuBO,SAAS,+BAAkC,QAAA,EAAgD;AAChG,EAAA,MAAM,WAAA,GAAc,SAAA,EAAU,EAAG,oBAAA,CAAqB,gBAAgB,CAAA;AAEtE,EAAA,IAAI,CAAC,WAAA,EAAa;AAChB,IAAA,OAAO,QAAA,EAAS;AAAA,EAClB;AAEA,EAAA,WAAA,CAAY,UAAA,EAAW;AAEvB,EAAA,MAAM,SAAS,QAAA,EAAS;AACxB,EAAA,IAAI,SAAA,CAAU,MAAM,CAAA,EAAG;AACrB,IAAA,OAAO,MAAA,CAAO,OAAA,CAAQ,MAAM,WAAA,CAAY,aAAa,CAAA;AAAA,EACvD;AAEA,EAAA,WAAA,CAAY,WAAA,EAAY;AACxB,EAAA,OAAO,MAAA;AACT;;;;"}
@@ -0,0 +1,2 @@
1
+ /*! @sentry/node 11.1.0 (1dcfd2f) | https://github.com/getsentry/sentry-javascript */
2
+ import{Session as t}from"node:inspector";import{workerData as e,parentPort as n}from"node:worker_threads";import{posix as r,sep as o}from"node:path";import*as s from"node:http";import*as i from"node:https";import{Readable as c}from"node:stream";import{createGzip as u}from"node:zlib";import*as a from"node:net";import*as f from"node:tls";const h="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,p=globalThis,l="11.1.0";function d(){return g(p),p}function g(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||l,e[l]=e[l]||{}}function m(t,e,n=p){const r=n.__SENTRY__=n.__SENTRY__||{},o=r[l]=r[l]||{};return o[t]||(o[t]=e())}const y={};function b(t){if(!("console"in p))return t();const e=p.console,n={},r=Object.keys(y);r.forEach(t=>{const r=y[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}function v(){return S().enabled}function w(t,...e){h&&v()&&b(()=>{p.console[t](`Sentry Logger [${t}]:`,...e)})}function S(){return h?m("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const _={enable:function(){S().enabled=!0},disable:function(){S().enabled=!1},isEnabled:v,log:function(...t){w("log",...t)},warn:function(...t){w("warn",...t)},error:function(...t){w("error",...t)}},$=/captureMessage|captureException/;function E(t){return t[t.length-1]||{}}const x="<anonymous>";const N=Object.prototype.toString;function C(t){return function(t,e){return N.call(t)===`[object ${e}]`}(t,"Object")}function j(t){return Boolean(t?.then&&"function"==typeof t.then)}function O(t,e){try{return t instanceof e}catch{return!1}}function P(t){if(function(t){switch(N.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return O(t,Error)}}(t))return{message:t.message,name:t.name,stack:t.stack,...k(t)};if(e=t,"undefined"!=typeof Event&&O(e,Event)){const{type:e,target:n,currentTarget:r,detail:o}=t;return{type:e,target:n,currentTarget:r,...o?{detail:o}:{},...k(t)}}var e;return t}function k(t){return"object"==typeof(e=t)&&null!==e?Object.fromEntries(Object.entries(t)):{};var e}let A;function T(t){if(void 0!==A)return A?A(t):t();const e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=p;return e in n&&"function"==typeof n[e]?(A=n[e],A(t)):(A=null,t())}function R(){return T(()=>Math.random())}function I(){return T(()=>Date.now())}const D=Symbol.for("sentry.skipNormalization"),U=Symbol.for("sentry.overrideNormalizationDepth");function B(t,e=100,n=1/0){try{return L("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function L(t,e,n=1/0,r=1/0,o=function(){const t=new WeakSet;function e(e){return!!t.has(e)||(t.add(e),!1)}function n(e){t.delete(e)}return[e,n]}()){const[s,i]=o;if(null==e||["boolean","string"].includes(typeof e)||"number"==typeof e&&Number.isFinite(e))return e;const c=function(t,e){try{if("undefined"!=typeof global&&e===global)return"[Global]";if("number"==typeof e&&!Number.isFinite(e))return`[${e}]`;if("function"==typeof e)return`[Function: ${function(t){try{return t&&"function"==typeof t&&t.name||x}catch{return x}}(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const t=function(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}(e);return`[object ${t}]`}catch(t){return`**non-serializable** (${t})`}}(0,e);if(!c.startsWith("[object "))return c;if(function(t){return Boolean(t[D])}(e))return e;const u=function(t){const e=t[U];return"number"==typeof e?e:void 0}(e),a=void 0!==u?u:n;if(0===a)return c.replace("object ","");if(s(e))return"[Circular ~]";const f=e;if(f&&"function"==typeof f.toJSON)try{return L("",f.toJSON(),a-1,r,o)}catch{}const h=Array.isArray(e)?[]:{};let p=0;const l=P(e);for(const t in l){if(!Object.prototype.hasOwnProperty.call(l,t))continue;if(p>=r){h[t]="[MaxProperties ~]";break}const e=l[t];h[t]=L(t,e,a-1,r,o),p++}return i(e),h}function M(t,e){const n=e.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let r=t;try{r=decodeURI(t)}catch{}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")}function z(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}let J;function W(t=function(){const t=p;return t.crypto||t.msCrypto}()){try{if(t?.randomUUID)return T(()=>t.randomUUID()).replace(/-/g,"")}catch{}return J||(J="10000000100040008000100000000000"),J.replace(/[018]/g,t=>(t^(16*R()&15)>>t/4).toString(16))}function F(){return I()/1e3}let G;function Y(){return(G??(G=function(){const{performance:t}=p;if(!t?.now||!t.timeOrigin)return F;const e=t.timeOrigin;return()=>(e+T(()=>t.now()))/1e3}()))()}function H(t){const e=Y(),n={sid:W(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return{sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}(n)};return t&&Z(n,t),n}function Z(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Y(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:W()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function q(t,e,n=2){if(!e||"object"!=typeof e||n<=0)return e;if(t&&0===Object.keys(e).length)return t;const r={...t};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=q(r[t],e[t],n-1));return r}class K{constructor(){this.t=!1,this.o=[],this.i=[],this.u=[],this.h=[],this.p={},this.l={},this.m={},this.v={},this.S={},this._={},function(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{h&&_.log(`Failed to add non-enumerable property "${String(e)}" to object`,t)}}(this,"refs",{}),this.N={traceId:W(),sampleRand:R()}}clone(){const t=new K;return t.u=[...this.u],t.l={...this.l},t.m={...this.m},t.v={...this.v},t.S={...this.S},this.S.flags&&(t.S.flags={values:[...this.S.flags.values]}),t.p=this.p,t.C=this.C,t.j=this.j,t.O=this.O,t.P=this.P,t.i=[...this.i],t.h=[...this.h],t._={...this._},t.N={...this.N},t.k=this.k,t.A=this.A,t.T=this.T,t.refs={...this.refs},t}setClient(t){this.k=t}setLastEventId(t){this.A=t}getClient(){return this.k}lastEventId(){return this.A}addScopeListener(t){this.o.push(t)}addEventProcessor(t){return this.i.push(t),this}setUser(t){return this.p=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this.j&&Z(this.j,{user:t}),this.R(),this}getUser(){return this.p}setConversationId(t){return this.T=t||void 0,this.R(),this}setTags(t){return this.l={...this.l,...t},this.R(),this}setTag(t,e){return this.setTags({[t]:e})}setAttributes(t){return this.m={...this.m,...t},this.R(),this}setAttribute(t,e){return this.setAttributes({[t]:e})}removeAttribute(t){return t in this.m&&(delete this.m[t],this.R()),this}setExtras(t){return this.v={...this.v,...t},this.R(),this}setExtra(t,e){return this.v={...this.v,[t]:e},this.R(),this}setFingerprint(t){return this.P=t,this.R(),this}setLevel(t){return this.C=t,this.R(),this}setTransactionName(t){return this.O=t,this.R(),this}setContext(t,e){return null===e?delete this.S[t]:this.S[t]=e,this.R(),this}setSession(t){return t?this.j=t:delete this.j,this.R(),this}getSession(){return this.j}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,n=e instanceof K?e.getScopeData():C(e)?t:void 0,{tags:r,attributes:o,extra:s,user:i,contexts:c,level:u,fingerprint:a=[],propagationContext:f,conversationId:h}=n||{};return this.l={...this.l,...r},this.m={...this.m,...o},this.v={...this.v,...s},this.S={...this.S,...c},i&&Object.keys(i).length&&(this.p=i),u&&(this.C=u),a.length&&(this.P=a),f&&(this.N=f),h&&(this.T=h),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:F(),...t,message:t.message?z(t.message,2048):t.message};return this.u.push(r),this.u.length>n&&(this.u=this.u.slice(-n)),this.R(),this}getLastBreadcrumb(){return this.u[this.u.length-1]}clearBreadcrumbs(){return this.u=[],this.R(),this}addAttachment(t){return this.h.push(t),this}clearAttachments(){return this.h=[],this}getScopeData(){return{breadcrumbs:this.u,attachments:this.h,contexts:this.S,tags:this.l,attributes:this.m,extra:this.v,user:this.p,level:this.C,fingerprint:this.P||[],eventProcessors:this.i,propagationContext:this.N,sdkProcessingMetadata:this._,transactionName:this.O,conversationId:this.T}}setSDKProcessingMetadata(t){return this._=q(this._,t,2),this}setPropagationContext(t){return this.N=t,this}getPropagationContext(){return this.N}captureException(t,e){const n=e?.event_id||W();if(!this.k)return h&&_.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this.k.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n?.event_id||W();if(!this.k)return h&&_.warn("No client configured on scope - will not capture message!"),r;const o=n?.syntheticException??new Error(t);return this.k.captureMessage(t,e,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureEvent(t,e){const n=t.event_id||e?.event_id||W();return this.k?(this.k.captureEvent(t,{...e,event_id:n},this),n):(h&&_.warn("No client configured on scope - will not capture event!"),n)}R(){this.t||(this.t=!0,this.o.forEach(t=>{t(this)}),this.t=!1)}}const V="__SENTRY_SUPPRESS_TRACING__",Q=t=>t instanceof Promise&&!t[X],X=Symbol("chained PromiseLike"),tt=(t,e)=>{if(!e)return t;let n=!1;for(const r in t){if(r in e)continue;n=!0;const o=t[r];"function"==typeof o?Object.defineProperty(e,r,{value:(...e)=>o.apply(t,e),enumerable:!0,configurable:!0,writable:!0}):e[r]=o}return n&&Object.assign(e,{[X]:!0}),e};class et{constructor(t,e){let n,r;n=t||new K,r=e||new K,this.I=[{scope:n}],this.D=r}withScope(t){const e=this.U();let n;try{n=t(e)}catch(t){throw this.B(),t}return j(n)?((t,e,n)=>{const r=t.then(t=>(e(t),t),t=>{throw n(t),t});return Q(r)&&Q(t)?r:tt(t,r)})(n,()=>this.B(),()=>this.B()):(this.B(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this.D}getStackTop(){return this.I[this.I.length-1]}U(){const t=this.getScope().clone();return this.I.push({client:this.getClient(),scope:t}),t}B(){return!(this.I.length<=1)&&!!this.I.pop()}}function nt(){const t=g(d());return t.stack=t.stack||new et(m("defaultCurrentScope",()=>new K),m("defaultIsolationScope",()=>new K))}function rt(t){return nt().withScope(t)}function ot(t,e){const n=nt();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function st(t){return nt().withScope(()=>t(nt().getIsolationScope()))}function it(t){return rt(e=>{e.setSDKProcessingMetadata({[V]:!0});const n=t();return e.setSDKProcessingMetadata({[V]:void 0}),n})}function ct(t){const e=g(t);return e.acs?e.acs:{suppressTracing:it,withIsolationScope:st,withScope:rt,withSetScope:ot,withSetIsolationScope:(t,e)=>st(e),getCurrentScope:()=>nt().getScope(),getIsolationScope:()=>nt().getIsolationScope()}}function ut(t,e=!1){const{host:n,path:r,pass:o,port:s,projectId:i,protocol:c,publicKey:u}=t;return`${c}://${u}${e&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${i}`}function at(t,e){const{fingerprint:n,breadcrumbs:r,sdkProcessingMetadata:o}=e;!function(t,e){const{extra:n,tags:r,user:o,contexts:s,level:i,transactionName:c}=e;Object.keys(n).length&&(t.extra={...n,...t.extra});Object.keys(r).length&&(t.tags={...r,...t.tags});Object.keys(o).length&&(t.user={...o,...t.user});Object.keys(s).length&&(t.contexts={...s,...t.contexts});i&&(t.level=i);c&&"transaction"!==t.type&&(t.transaction=c)}(t,e),function(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e));t.fingerprint.length||delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,r),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,o)}function ft(t,e=[]){return[t,e]}function ht(t,e){const n=t[1];for(const t of n){if(e(t,t[0].type))return!0}return!1}function pt(t){const e=g(p);return e.encodePolyfill?e.encodePolyfill(t):(new TextEncoder).encode(t)}function lt(t){const[e,n]=t;let r=JSON.stringify(e);function o(t){"string"==typeof r?r="string"==typeof t?r+t:[pt(r),t]:r.push("string"==typeof t?pt(t):t)}for(const t of n){const[e,n]=t;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let t;try{t=JSON.stringify(n)}catch{t=JSON.stringify(B(n))}o(t)}}return"string"==typeof r?r:function(t){const e=t.reduce((t,e)=>t+e.length,0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(r)}const dt={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function gt(t){return function(t){return t in dt}(t)?dt[t]:t}function mt(t){if(!t?.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function yt(t){const e=ct(d());return e.suppressTracing?e.suppressTracing(t):function(...t){const e=ct(d());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}return e.withScope(t[0])}(e=>(e.setSDKProcessingMetadata({[V]:!0}),t()))}function bt(t,e,n,r){const o=mt(n),s=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){if(!e)return t;const n=t.sdk||{};t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...t.sdk?.integrations||[],...e.integrations||[]],packages:[...t.sdk?.packages||[],...e.packages||[]],settings:t.sdk?.settings||e.settings?{...t.sdk?.settings,...e.settings}:void 0}}(t,n?.sdk);const i=function(t,e,n,r){const o=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date(I()).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:ut(r)},...o&&{trace:o}}}(t,o,r,e);delete t.sdkProcessingMetadata;return ft(i,[[{type:s},t]])}class vt{constructor(t){this.L=0,this.M=[],this.J(t)}then(t,e){return new vt((n,r)=>{this.M.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this.W()})}catch(t){return this.then(t=>t,t)}finally(t){return new vt((e,n)=>{let r,o;return this.then(e=>{o=!1,r=e,t&&t()},e=>{o=!0,r=e,t&&t()}).then(()=>{o?n(r):e(r)})})}W(){if(0===this.L)return;const t=this.M.slice();this.M=[],t.forEach(t=>{t[0]||(1===this.L&&t[1](this.F),2===this.L&&t[2](this.F),t[0]=!0)})}J(t){const e=(t,e)=>{0===this.L&&(j(e)?e.then(n,r):(this.L=t,this.F=e,this.W()))},n=t=>{e(1,t)},r=t=>{e(2,t)};try{t(n,r)}catch(t){r(t)}}}const wt=Symbol.for("SentryBufferFullError");function St(t=100){const e=new Set;function n(t){e.delete(t)}return{get $(){return Array.from(e)},add:function(r){if(!(e.size<t))return o=wt,new vt((t,e)=>{e(o)});var o;const s=r();return e.add(s),s.then(()=>n(s),()=>n(s)),s},drain:function(t){if(!e.size)return n=!0,new vt(t=>{t(n)});var n;const r=Promise.allSettled(Array.from(e)).then(()=>!0);if(!t)return r;const o=[r,new Promise(e=>{return"object"==typeof(n=setTimeout(()=>e(!1),t))&&"function"==typeof n.unref&&n.unref(),n;var n})];return Promise.race(o)}}}function _t(t,{statusCode:e,headers:n},r=I()){const o={...t},s=n?.["x-sentry-rate-limits"],i=n?.["retry-after"];if(s)for(const t of s.trim().split(",")){const[e,n,,,s]=t.split(":",5),i=parseInt(e,10),c=1e3*(isNaN(i)?60:i);if(n)for(const t of n.split(";"))"metric_bucket"===t&&s&&!s.split(";").includes("custom")||(o[t]=r+c);else o.all=r+c}else i?o.all=r+function(t,e=I()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}(i,r):429===e&&(o.all=r+6e4);return o}function $t(t,e,n=St(t.bufferSize||64)){let r={};return{send:function(t){const o=[];if(ht(t,(t,e)=>{const n=gt(e);(function(t,e,n=I()){return function(t,e){return t[e]||t.all||0}(t,e)>n})(r,n)||o.push(t)}),0===o.length)return Promise.resolve({});const s=ft(t[0],o),i=t=>{!function(t,e){return ht(t,(t,n)=>e.includes(n))}(s,["client_report"])?ht(s,(t,e)=>{}):h&&_.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`)};return n.add(()=>e({body:lt(s)}).then(t=>413===t.statusCode?(h&&_.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),i("send_error"),t):(h&&void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&_.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=_t(r,t),t),t=>{throw i("network_error"),h&&_.error("Encountered error running transport request:",t),t})).then(t=>t,t=>{if(t===wt)return h&&_.error("Skipped sending event because buffer is full."),i("queue_overflow"),Promise.resolve({});throw t})},flush:t=>n.drain(t)}}const Et=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function xt(t){const e=function(t){const e=t.length>1024?`<truncated>${t.slice(-1024)}`:t,n=Et.exec(e);return n?n.slice(1):[]}(t),n=e[0]||"";let r=e[1];return n||r?(r&&(r=r.slice(0,r.length-1)),n+r):"."}function Nt(t,e=!1){return!(e||t&&!t.startsWith("/")&&!t.match(/^[A-Z]:/)&&!t.startsWith(".")&&!t.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&void 0!==t&&!t.includes("node_modules/")}var Ct;const jt=Symbol("AgentBaseInternalState");class Ot extends(Ct=s.Agent,Ct){constructor(t){super(t),this[jt]={}}isSecureEndpoint(t){if(t){if("boolean"==typeof t.secureEndpoint)return t.secureEndpoint;if("string"==typeof t.protocol)return"https:"===t.protocol}const{stack:e}=new Error;return"string"==typeof e&&e.split("\n").some(t=>-1!==t.indexOf("(https.js:")||-1!==t.indexOf("node:https:"))}createSocket(t,e,n){const r={...e,secureEndpoint:this.isSecureEndpoint(e)};Promise.resolve().then(()=>this.connect(t,r)).then(o=>{if(o instanceof s.Agent)return o.addRequest(t,r);this[jt].currentSocket=o,super.createSocket(t,e,n)},n)}createConnection(){const t=this[jt].currentSocket;if(this[jt].currentSocket=void 0,!t)throw new Error("No socket was returned in the `connect()` function");return t}get defaultPort(){return this[jt].defaultPort??("https:"===this.protocol?443:80)}set defaultPort(t){this[jt]&&(this[jt].defaultPort=t)}get protocol(){return this[jt].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(t){this[jt]&&(this[jt].protocol=t)}}function Pt(...t){_.log("[https-proxy-agent:parse-proxy-response]",...t)}function kt(t){return new Promise((e,n)=>{let r=0;const o=[];function s(){const c=t.read();c?function(c){o.push(c),r+=c.length;const u=Buffer.concat(o,r),a=u.indexOf("\r\n\r\n");if(-1===a)return Pt("have not received end of HTTP headers yet..."),void s();const f=u.subarray(0,a).toString("ascii").split("\r\n"),h=f.shift();if(!h)return t.destroy(),n(new Error("No header received from proxy CONNECT response"));const p=h.split(" "),l=+(p[1]||0),d=p.slice(2).join(" "),g={};for(const e of f){if(!e)continue;const r=e.indexOf(":");if(-1===r)return t.destroy(),n(new Error(`Invalid header from proxy CONNECT response: "${e}"`));const o=e.slice(0,r).toLowerCase(),s=e.slice(r+1).trimStart(),i=g[o];"string"==typeof i?g[o]=[i,s]:Array.isArray(i)?i.push(s):g[o]=s}Pt("got proxy server response: %o %o",h,g),i(),e({connect:{statusCode:l,statusText:d,headers:g},buffered:u})}(c):t.once("readable",s)}function i(){t.removeListener("end",c),t.removeListener("error",u),t.removeListener("readable",s)}function c(){i(),Pt("onend"),n(new Error("Proxy connection ended before receiving CONNECT response"))}function u(t){i(),Pt("onerror %o",t),n(t)}t.on("error",u),t.on("end",c),s()})}function At(...t){_.log("[https-proxy-agent]",...t)}class Tt extends Ot{constructor(t,e){super(e),this.options={},this.proxy="string"==typeof t?new URL(t):t,this.proxyHeaders=e?.headers??{},At("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),r=this.proxy.port?parseInt(this.proxy.port,10):"https:"===this.proxy.protocol?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...e?It(e,"headers"):null,host:n,port:r}}async connect(t,e){const{proxy:n}=this;if(!e.host)throw new TypeError('No "host" provided');let r;if("https:"===n.protocol){At("Creating `tls.Socket`: %o",this.connectOpts);const t=this.connectOpts.servername||this.connectOpts.host;r=f.connect({...this.connectOpts,servername:t&&a.isIP(t)?void 0:t})}else At("Creating `net.Socket`: %o",this.connectOpts),r=a.connect(this.connectOpts);const o="function"==typeof this.proxyHeaders?this.proxyHeaders():{...this.proxyHeaders},s=a.isIPv6(e.host)?`[${e.host}]`:e.host;let i=`CONNECT ${s}:${e.port} HTTP/1.1\r\n`;if(n.username||n.password){const t=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(t).toString("base64")}`}o.Host=`${s}:${e.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(const t of Object.keys(o))i+=`${t}: ${o[t]}\r\n`;const c=kt(r);r.write(`${i}\r\n`);const{connect:u,buffered:h}=await c;if(t.emit("proxyConnect",u),this.emit("proxyConnect",u,t),200===u.statusCode){if(t.once("socket",Rt),e.secureEndpoint){At("Upgrading socket connection to TLS");const t=e.servername||e.host;return f.connect({...It(e,"host","path","port"),socket:r,servername:a.isIP(t)?void 0:t})}return r}r.destroy();const p=new a.Socket({writable:!1});return p.readable=!0,t.once("socket",t=>{At("Replaying proxy buffer for failed request"),t.push(h),t.push(null)}),p}}function Rt(t){t.resume()}function It(t,...e){const n={};let r;for(r in t)e.includes(r)||(n[r]=t[r]);return n}Tt.protocols=["http","https"];function Dt(t){return t.replace(/^[A-Z]:/,"").replace(/\\/g,"/")}const Ut=e;let Bt,Lt=0,Mt={};function zt(t){Ut.debug&&console.log(`[ANR Worker] ${t}`)}var Jt,Wt,Ft;const Gt=function(t){let e;try{e=new URL(t.url)}catch{return b(()=>{console.warn("[@sentry/node]: Invalid dsn or tunnel option, will not send any events. The tunnel option must be a full URL when used.")}),$t(t,()=>Promise.resolve({}))}const n="https:"===e.protocol,r=function(t,e){const{no_proxy:n}=process.env,r=n?.split(",").some(e=>t.host.endsWith(e)||t.hostname.endsWith(e));return r?void 0:e}(e,t.proxy||(n?process.env.https_proxy:void 0)||process.env.http_proxy),o=n?i:s,a=t.keepAlive??!0,f=r?new Tt(r):new o.Agent({keepAlive:a,maxSockets:30,timeout:2e3}),h=function(t,e,n){const{hostname:r,pathname:o,port:s,protocol:i,search:a}=new URL(t.url);return function(f){const h=p=>new Promise((l,d)=>{yt(()=>{let g=function(t){return new c({read(){this.push(t),this.push(null)}})}(f.body);const m={...t.headers};f.body.length>32768&&(m["content-encoding"]="gzip",g=g.pipe(u()));const y=r.startsWith("["),b=e.request({method:"POST",agent:n,headers:m,hostname:y?r.slice(1,-1):r,path:`${o}${a}`,port:s,protocol:i,ca:t.caCerts},t=>{t.on("data",()=>{}),t.on("end",()=>{}),t.setEncoding("utf8");const e=t.headers["retry-after"]??null,n=t.headers["x-sentry-rate-limits"]??null;l({statusCode:t.statusCode,headers:{"retry-after":e,"x-sentry-rate-limits":Array.isArray(n)?n[0]||null:n}})});b.on("error",t=>{p&&b.reusedSocket&&"ECONNRESET"===t.code?l(h(!1)):d(t)}),g.pipe(b)})});return h(!0)}}(t,t.httpModule??o,f);return $t(t,h)}({url:(Jt=Ut.dsn,Wt=Ut.tunnel,Ft=Ut.sdkMetadata.sdk,Wt||`${function(t){return`${function(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/`}(Jt)}?${function(t,e){const n={sentry_version:"7"};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}(Jt,Ft)}`)});async function Yt(){if(Bt){zt("Sending abnormal session"),Z(Bt,{status:"abnormal",abnormal_mechanism:"anr_foreground",release:Ut.release,environment:Ut.environment});const t=function(t,e,n,r){const o=mt(n);return ft({sent_at:new Date(I()).toISOString(),...o&&{sdk:o},...!!r&&e&&{dsn:ut(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(Bt,Ut.dsn,Ut.sdkMetadata,Ut.tunnel);zt(JSON.stringify(t)),await Gt.send(t);try{n?.postMessage("session-ended")}catch{}}}function Ht(t){if(!t)return;const e=function(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(E(e).function||"")&&e.pop(),e.reverse(),$.test(E(e).function||"")&&(e.pop(),$.test(E(e).function||"")&&e.pop()),e.slice(0,50).map(t=>({...t,filename:t.filename||E(e).filename,function:t.function||"?"}))}(t);if(Ut.appRootPath)for(const t of e)t.filename&&(t.filename=M(t.filename,Ut.appRootPath));return e}async function Zt(t,e){if(Lt>=Ut.maxAnrEvents)return;Lt+=1,await Yt(),zt("Sending event");const n={event_id:W(),contexts:Ut.contexts,release:Ut.release,environment:Ut.environment,dist:Ut.dist,platform:"node",level:"error",exception:{values:[{type:"ApplicationNotResponding",value:`Application Not Responding for at least ${Ut.anrThreshold} ms`,stacktrace:{frames:Ht(t)},mechanism:{type:"ANR"}}]},tags:Ut.staticTags};e&&function(t,e){if(at(t,e),!t.contexts?.trace){const{traceId:n,parentSpanId:r,propagationSpanId:o}=e.propagationContext;t.contexts={trace:{trace_id:n,span_id:o||W().substring(16),parent_span_id:r},...t.contexts}}}(n,e),function(t){if(0===Object.keys(Mt).length)return;const e=Ut.appRootPath?{}:Mt;if(Ut.appRootPath)for(const[t,n]of Object.entries(Mt))e[M(t,Ut.appRootPath)]=n;const n=new Map;for(const r of t.exception?.values||[])for(const t of r.stacktrace?.frames||[]){const r=t.abs_path||t.filename;r&&e[r]&&n.set(r,e[r])}if(n.size>0){const e=[];for(const[t,r]of n.entries())e.push({type:"sourcemap",code_file:t,debug_id:r});t.debug_meta={images:e}}}(n);const r=bt(n,Ut.dsn,Ut.sdkMetadata,Ut.tunnel);zt(JSON.stringify(r)),await Gt.send(r),await Gt.flush(2e3),Lt>=Ut.maxAnrEvents&&setTimeout(()=>{process.exit(0)},5e3)}let qt;if(zt("Started"),Ut.captureStackTrace){zt("Connecting to debugger");const e=new t;e.connectToMainThread(),zt("Connected to debugger");const n=new Map;e.on("Debugger.scriptParsed",t=>{n.set(t.params.scriptId,t.params.url)}),e.on("Debugger.paused",t=>{if("other"===t.params.reason)try{zt("Debugger paused");const s=[...t.params.callFrames],i=Ut.appRootPath?function(t=(process.argv[1]?xt(process.argv[1]):process.cwd()),e="\\"===o){const n=e?Dt(t):t;return t=>{if(!t)return;const o=e?Dt(t):t;let{dir:s,base:i,ext:c}=r.parse(o);".js"!==c&&".mjs"!==c&&".cjs"!==c||(i=i.slice(0,-1*c.length));const u=decodeURIComponent(i);s||(s=".");const a=s.lastIndexOf("/node_modules");if(a>-1)return`${s.slice(a+14).replace(/\//g,".")}:${u}`;if(s.startsWith(n)){const t=s.slice(n.length+1).replace(/\//g,".");return t?`${t}:${u}`:u}return u}}(Ut.appRootPath):()=>{},c=s.map(t=>function(t,e,n){const r=e?e.replace(/^file:\/\//,""):void 0,o=t.location.columnNumber?t.location.columnNumber+1:void 0,s=t.location.lineNumber?t.location.lineNumber+1:void 0;return{filename:r,module:n(r),function:t.functionName||"?",colno:o,lineno:s,in_app:r?Nt(r):void 0}}(t,n.get(t.location.scriptId),i)),u=setTimeout(()=>{Zt(c).then(null,()=>{zt("Sending ANR event failed.")})},5e3);e.post("Runtime.evaluate",{expression:"global.__SENTRY_GET_SCOPES__();",silent:!0,returnByValue:!0},(t,n)=>{t&&zt(`Error executing script: '${t.message}'`),clearTimeout(u);const r=n?.result?n.result.value:void 0;e.post("Debugger.resume"),e.post("Debugger.disable"),Zt(c,r).then(null,()=>{zt("Sending ANR event failed.")})})}catch(t){throw e.post("Debugger.resume"),e.post("Debugger.disable"),t}}),qt=()=>{try{e.post("Debugger.enable",()=>{e.post("Debugger.pause")})}catch{}}}const{poll:Kt}=function(t,e,n,r){const o=t();let s=!1,i=!0;return setInterval(()=>{const t=o.getTimeMs();!1===s&&t>e+n&&(s=!0,i&&r()),t<e+n&&(s=!1)},20),{poll:()=>{o.reset()},enabled:t=>{i=t}}}(function(){let t=process.hrtime.bigint();return{getTimeMs:()=>Number((process.hrtime.bigint()-t)/1000000n),reset:()=>{t=process.hrtime.bigint()}}},Ut.pollInterval,Ut.anrThreshold,function(){zt("Watchdog timeout"),qt?(zt("Pausing debugger to capture stack trace"),qt()):(zt("Capturing event without a stack trace"),Zt().then(null,()=>{zt("Sending ANR event failed on watchdog timeout.")}))});n?.on("message",t=>{t.session&&(Bt=H(t.session)),t.debugImages&&(Mt=t.debugImages),Kt()}),n?.postMessage("worker-ready");
@@ -0,0 +1,55 @@
1
+ import { defineIntegration, isObjectLike, addBreadcrumb } from '@sentry/core';
2
+ import { subscribeDiagnosticsChannel } from '@sentry/server-utils';
3
+
4
+ const INTEGRATION_NAME = "ChildProcess";
5
+ const childProcessIntegration = defineIntegration((options = {}) => {
6
+ return {
7
+ name: INTEGRATION_NAME,
8
+ setup() {
9
+ subscribeDiagnosticsChannel("child_process", (event) => {
10
+ if (isObjectLike(event) && "process" in event) {
11
+ captureChildProcessEvents(event.process, options);
12
+ }
13
+ });
14
+ }
15
+ };
16
+ });
17
+ function captureChildProcessEvents(child, options) {
18
+ let hasExited = false;
19
+ let data;
20
+ child.on("spawn", () => {
21
+ if (child.spawnfile === "/usr/bin/sw_vers") {
22
+ hasExited = true;
23
+ return;
24
+ }
25
+ data = { spawnfile: child.spawnfile };
26
+ if (options.includeChildProcessArgs) {
27
+ data.spawnargs = child.spawnargs;
28
+ }
29
+ }).on("exit", (code) => {
30
+ if (!hasExited) {
31
+ hasExited = true;
32
+ if (code !== null && code !== 0) {
33
+ addBreadcrumb({
34
+ category: "child_process",
35
+ message: `Child process exited with code '${code}'`,
36
+ level: code === 0 ? "info" : "warning",
37
+ data
38
+ });
39
+ }
40
+ }
41
+ }).on("error", (error) => {
42
+ if (!hasExited) {
43
+ hasExited = true;
44
+ addBreadcrumb({
45
+ category: "child_process",
46
+ message: `Child process errored with '${error.message}'`,
47
+ level: "error",
48
+ data
49
+ });
50
+ }
51
+ });
52
+ }
53
+
54
+ export { childProcessIntegration };
55
+ //# sourceMappingURL=childProcess.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"childProcess.js","sources":["../../../src/integrations/childProcess.ts"],"sourcesContent":["import type { ChildProcess } from 'node:child_process';\nimport { addBreadcrumb, defineIntegration, isObjectLike } from '@sentry/core';\nimport { subscribeDiagnosticsChannel } from '@sentry/server-utils';\n\ninterface Options {\n /**\n * Whether to include child process arguments in breadcrumbs data.\n *\n * @default false\n */\n includeChildProcessArgs?: boolean;\n}\n\nconst INTEGRATION_NAME = 'ChildProcess' as const;\n\n/**\n * Capture breadcrumbs and events for child processes.\n * For worker thread events, use `workerThreadsIntegration()` instead.\n */\nexport const childProcessIntegration = defineIntegration((options: Options = {}) => {\n return {\n name: INTEGRATION_NAME,\n setup() {\n subscribeDiagnosticsChannel('child_process', (event: unknown) => {\n if (isObjectLike(event) && 'process' in event) {\n captureChildProcessEvents(event.process as ChildProcess, options);\n }\n });\n },\n };\n});\n\nfunction captureChildProcessEvents(child: ChildProcess, options: Options): void {\n let hasExited = false;\n let data: Record<string, unknown> | undefined;\n\n child\n .on('spawn', () => {\n // This is Sentry getting macOS OS context\n if (child.spawnfile === '/usr/bin/sw_vers') {\n hasExited = true;\n return;\n }\n\n data = { spawnfile: child.spawnfile };\n if (options.includeChildProcessArgs) {\n data.spawnargs = child.spawnargs;\n }\n })\n .on('exit', code => {\n if (!hasExited) {\n hasExited = true;\n\n // Only log for non-zero exit codes\n if (code !== null && code !== 0) {\n addBreadcrumb({\n category: 'child_process',\n message: `Child process exited with code '${code}'`,\n level: code === 0 ? 'info' : 'warning',\n data,\n });\n }\n }\n })\n .on('error', error => {\n if (!hasExited) {\n hasExited = true;\n\n addBreadcrumb({\n category: 'child_process',\n message: `Child process errored with '${error.message}'`,\n level: 'error',\n data,\n });\n }\n });\n}\n"],"names":[],"mappings":";;;AAaA,MAAM,gBAAA,GAAmB,cAAA;AAMlB,MAAM,uBAAA,GAA0B,iBAAA,CAAkB,CAAC,OAAA,GAAmB,EAAC,KAAM;AAClF,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,gBAAA;AAAA,IACN,KAAA,GAAQ;AACN,MAAA,2BAAA,CAA4B,eAAA,EAAiB,CAAC,KAAA,KAAmB;AAC/D,QAAA,IAAI,YAAA,CAAa,KAAK,CAAA,IAAK,SAAA,IAAa,KAAA,EAAO;AAC7C,UAAA,yBAAA,CAA0B,KAAA,CAAM,SAAyB,OAAO,CAAA;AAAA,QAClE;AAAA,MACF,CAAC,CAAA;AAAA,IACH;AAAA,GACF;AACF,CAAC;AAED,SAAS,yBAAA,CAA0B,OAAqB,OAAA,EAAwB;AAC9E,EAAA,IAAI,SAAA,GAAY,KAAA;AAChB,EAAA,IAAI,IAAA;AAEJ,EAAA,KAAA,CACG,EAAA,CAAG,SAAS,MAAM;AAEjB,IAAA,IAAI,KAAA,CAAM,cAAc,kBAAA,EAAoB;AAC1C,MAAA,SAAA,GAAY,IAAA;AACZ,MAAA;AAAA,IACF;AAEA,IAAA,IAAA,GAAO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