@depup/sentry__node 10.75.1-depup.0 → 11.0.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 +4 -7
  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 +128 -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 +4 -16
  378. package/package.json +45 -49
  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 -176
  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 -171
  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,82 @@
1
+ import { isObjectLike, debug } from '@sentry/core';
2
+ import { DEBUG_BUILD } from '../debug-build.js';
3
+ import { captureLog } from '../logs/capture.js';
4
+
5
+ const DEFAULT_CAPTURED_LEVELS = ["trace", "debug", "info", "warn", "error", "fatal"];
6
+ const LEVEL_SYMBOL = /* @__PURE__ */ Symbol.for("level");
7
+ const MESSAGE_SYMBOL = /* @__PURE__ */ Symbol.for("message");
8
+ const SPLAT_SYMBOL = /* @__PURE__ */ Symbol.for("splat");
9
+ function createSentryWinstonTransport(TransportClass, sentryWinstonOptions) {
10
+ class SentryWinstonTransport extends TransportClass {
11
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
+ constructor(options) {
13
+ super(options);
14
+ this._levels = new Set(sentryWinstonOptions?.levels ?? DEFAULT_CAPTURED_LEVELS);
15
+ }
16
+ /**
17
+ * Forwards a winston log to the Sentry SDK.
18
+ */
19
+ log(info, callback) {
20
+ try {
21
+ setImmediate(() => {
22
+ this.emit("logged", info);
23
+ });
24
+ if (!isObjectLike(info)) {
25
+ return;
26
+ }
27
+ const levelFromSymbol = info[LEVEL_SYMBOL];
28
+ const { level, message, timestamp, ...attributes } = info;
29
+ attributes[LEVEL_SYMBOL] = void 0;
30
+ attributes[MESSAGE_SYMBOL] = void 0;
31
+ attributes[SPLAT_SYMBOL] = void 0;
32
+ const customLevel = sentryWinstonOptions?.customLevelMap?.[levelFromSymbol];
33
+ const winstonLogLevel = WINSTON_LEVEL_TO_LOG_SEVERITY_LEVEL_MAP[levelFromSymbol];
34
+ const logSeverityLevel = customLevel ?? winstonLogLevel ?? "info";
35
+ if (this._levels.has(logSeverityLevel)) {
36
+ captureLog(logSeverityLevel, message, {
37
+ ...attributes,
38
+ "sentry.origin": "auto.log.winston"
39
+ });
40
+ } else if (!customLevel && !winstonLogLevel) {
41
+ DEBUG_BUILD && debug.log(
42
+ `Winston log level ${levelFromSymbol} is not captured by Sentry. Please add ${levelFromSymbol} to the "customLevelMap" option of the Sentry Winston transport.`
43
+ );
44
+ }
45
+ } catch {
46
+ }
47
+ if (callback) {
48
+ callback();
49
+ }
50
+ }
51
+ }
52
+ return SentryWinstonTransport;
53
+ }
54
+ const WINSTON_LEVEL_TO_LOG_SEVERITY_LEVEL_MAP = {
55
+ // npm
56
+ silly: "trace",
57
+ // npm and syslog
58
+ debug: "debug",
59
+ // npm
60
+ verbose: "debug",
61
+ // npm
62
+ http: "debug",
63
+ // npm and syslog
64
+ info: "info",
65
+ // syslog
66
+ notice: "info",
67
+ // npm
68
+ warn: "warn",
69
+ // syslog
70
+ warning: "warn",
71
+ // npm and syslog
72
+ error: "error",
73
+ // syslog
74
+ emerg: "fatal",
75
+ // syslog
76
+ alert: "fatal",
77
+ // syslog
78
+ crit: "fatal"
79
+ };
80
+
81
+ export { createSentryWinstonTransport };
82
+ //# sourceMappingURL=winston.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"winston.js","sources":["../../../src/integrations/winston.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/ban-ts-comment */\nimport type { LogSeverityLevel } from '@sentry/core';\nimport { debug, isObjectLike } from '@sentry/core';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { captureLog } from '../logs/capture';\n\nconst DEFAULT_CAPTURED_LEVELS: Array<LogSeverityLevel> = ['trace', 'debug', 'info', 'warn', 'error', 'fatal'];\n\n// See: https://github.com/winstonjs/triple-beam\nconst LEVEL_SYMBOL = Symbol.for('level');\nconst MESSAGE_SYMBOL = Symbol.for('message');\nconst SPLAT_SYMBOL = Symbol.for('splat');\n\n/**\n * Options for the Sentry Winston transport.\n */\ninterface WinstonTransportOptions {\n /**\n * Use this option to filter which levels should be captured. By default, all levels are captured.\n *\n * @example\n * ```ts\n * const SentryWinstonTransport = Sentry.createSentryWinstonTransport(Transport, {\n * // Only capture error and warn logs\n * levels: ['error', 'warn'],\n * });\n * ```\n */\n levels?: Array<LogSeverityLevel>;\n\n /**\n * Use this option to map custom levels to Sentry log severity levels.\n *\n * @example\n * ```ts\n * const SentryWinstonTransport = Sentry.createSentryWinstonTransport(Transport, {\n * customLevelMap: {\n * myCustomLevel: 'info',\n * customError: 'error',\n * },\n * });\n * ```\n */\n customLevelMap?: Record<string, LogSeverityLevel>;\n}\n\n/**\n * Creates a new Sentry Winston transport that fowards logs to Sentry.\n *\n * Supports Winston 3.x.x.\n *\n * @param TransportClass - The Winston transport class to extend.\n * @returns The extended transport class.\n *\n * @example\n * ```ts\n * const winston = require('winston');\n * const Transport = require('winston-transport');\n *\n * const SentryWinstonTransport = Sentry.createSentryWinstonTransport(Transport);\n *\n * const logger = winston.createLogger({\n * transports: [new SentryWinstonTransport()],\n * });\n * ```\n */\nexport function createSentryWinstonTransport<TransportStreamInstance extends object>(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n TransportClass: new (options?: any) => TransportStreamInstance,\n sentryWinstonOptions?: WinstonTransportOptions,\n): typeof TransportClass {\n // @ts-ignore - We know this is safe because SentryWinstonTransport extends TransportClass\n class SentryWinstonTransport extends TransportClass {\n private _levels: Set<LogSeverityLevel>;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n public constructor(options?: any) {\n super(options);\n this._levels = new Set(sentryWinstonOptions?.levels ?? DEFAULT_CAPTURED_LEVELS);\n }\n\n /**\n * Forwards a winston log to the Sentry SDK.\n */\n public log(info: unknown, callback: () => void): void {\n try {\n setImmediate(() => {\n // @ts-ignore - We know this is safe because SentryWinstonTransport extends TransportClass\n this.emit('logged', info);\n });\n\n if (!isObjectLike(info)) {\n return;\n }\n\n const levelFromSymbol = info[LEVEL_SYMBOL];\n\n // See: https://github.com/winstonjs/winston?tab=readme-ov-file#streams-objectmode-and-info-objects\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { level, message, timestamp, ...attributes } = info;\n // Remove all symbols from the remaining attributes\n attributes[LEVEL_SYMBOL] = undefined;\n attributes[MESSAGE_SYMBOL] = undefined;\n attributes[SPLAT_SYMBOL] = undefined;\n\n const customLevel = sentryWinstonOptions?.customLevelMap?.[levelFromSymbol as string];\n const winstonLogLevel = WINSTON_LEVEL_TO_LOG_SEVERITY_LEVEL_MAP[levelFromSymbol as string];\n const logSeverityLevel = customLevel ?? winstonLogLevel ?? 'info';\n\n if (this._levels.has(logSeverityLevel)) {\n captureLog(logSeverityLevel, message as string, {\n ...attributes,\n 'sentry.origin': 'auto.log.winston',\n });\n } else if (!customLevel && !winstonLogLevel) {\n DEBUG_BUILD &&\n debug.log(\n `Winston log level ${levelFromSymbol} is not captured by Sentry. Please add ${levelFromSymbol} to the \"customLevelMap\" option of the Sentry Winston transport.`,\n );\n }\n } catch {\n // do nothing\n }\n\n if (callback) {\n callback();\n }\n }\n }\n\n return SentryWinstonTransport as typeof TransportClass;\n}\n\n// npm\n// {\n// error: 0,\n// warn: 1,\n// info: 2,\n// http: 3,\n// verbose: 4,\n// debug: 5,\n// silly: 6\n// }\n//\n// syslog\n// {\n// emerg: 0,\n// alert: 1,\n// crit: 2,\n// error: 3,\n// warning: 4,\n// notice: 5,\n// info: 6,\n// debug: 7,\n// }\nconst WINSTON_LEVEL_TO_LOG_SEVERITY_LEVEL_MAP: Record<string, LogSeverityLevel> = {\n // npm\n silly: 'trace',\n // npm and syslog\n debug: 'debug',\n // npm\n verbose: 'debug',\n // npm\n http: 'debug',\n // npm and syslog\n info: 'info',\n // syslog\n notice: 'info',\n // npm\n warn: 'warn',\n // syslog\n warning: 'warn',\n // npm and syslog\n error: 'error',\n // syslog\n emerg: 'fatal',\n // syslog\n alert: 'fatal',\n // syslog\n crit: 'fatal',\n};\n"],"names":[],"mappings":";;;;AAMA,MAAM,0BAAmD,CAAC,OAAA,EAAS,SAAS,MAAA,EAAQ,MAAA,EAAQ,SAAS,OAAO,CAAA;AAG5G,MAAM,YAAA,mBAAe,MAAA,CAAO,GAAA,CAAI,OAAO,CAAA;AACvC,MAAM,cAAA,mBAAiB,MAAA,CAAO,GAAA,CAAI,SAAS,CAAA;AAC3C,MAAM,YAAA,mBAAe,MAAA,CAAO,GAAA,CAAI,OAAO,CAAA;AAuDhC,SAAS,4BAAA,CAEd,gBACA,oBAAA,EACuB;AAAA,EAEvB,MAAM,+BAA+B,cAAA,CAAe;AAAA;AAAA,IAG3C,YAAY,OAAA,EAAe;AAChC,MAAA,KAAA,CAAM,OAAO,CAAA;AACb,MAAA,IAAA,CAAK,OAAA,GAAU,IAAI,GAAA,CAAI,oBAAA,EAAsB,UAAU,uBAAuB,CAAA;AAAA,IAChF;AAAA;AAAA;AAAA;AAAA,IAKO,GAAA,CAAI,MAAe,QAAA,EAA4B;AACpD,MAAA,IAAI;AACF,QAAA,YAAA,CAAa,MAAM;AAEjB,UAAA,IAAA,CAAK,IAAA,CAAK,UAAU,IAAI,CAAA;AAAA,QAC1B,CAAC,CAAA;AAED,QAAA,IAAI,CAAC,YAAA,CAAa,IAAI,CAAA,EAAG;AACvB,UAAA;AAAA,QACF;AAEA,QAAA,MAAM,eAAA,GAAkB,KAAK,YAAY,CAAA;AAIzC,QAAA,MAAM,EAAE,KAAA,EAAO,OAAA,EAAS,SAAA,EAAW,GAAG,YAAW,GAAI,IAAA;AAErD,QAAA,UAAA,CAAW,YAAY,CAAA,GAAI,KAAA,CAAA;AAC3B,QAAA,UAAA,CAAW,cAAc,CAAA,GAAI,KAAA,CAAA;AAC7B,QAAA,UAAA,CAAW,YAAY,CAAA,GAAI,KAAA,CAAA;AAE3B,QAAA,MAAM,WAAA,GAAc,oBAAA,EAAsB,cAAA,GAAiB,eAAyB,CAAA;AACpF,QAAA,MAAM,eAAA,GAAkB,wCAAwC,eAAyB,CAAA;AACzF,QAAA,MAAM,gBAAA,GAAmB,eAAe,eAAA,IAAmB,MAAA;AAE3D,QAAA,IAAI,IAAA,CAAK,OAAA,CAAQ,GAAA,CAAI,gBAAgB,CAAA,EAAG;AACtC,UAAA,UAAA,CAAW,kBAAkB,OAAA,EAAmB;AAAA,YAC9C,GAAG,UAAA;AAAA,YACH,eAAA,EAAiB;AAAA,WAClB,CAAA;AAAA,QACH,CAAA,MAAA,IAAW,CAAC,WAAA,IAAe,CAAC,eAAA,EAAiB;AAC3C,UAAA,WAAA,IACE,KAAA,CAAM,GAAA;AAAA,YACJ,CAAA,kBAAA,EAAqB,eAAe,CAAA,uCAAA,EAA0C,eAAe,CAAA,gEAAA;AAAA,WAC/F;AAAA,QACJ;AAAA,MACF,CAAA,CAAA,MAAQ;AAAA,MAER;AAEA,MAAA,IAAI,QAAA,EAAU;AACZ,QAAA,QAAA,EAAS;AAAA,MACX;AAAA,IACF;AAAA;AAGF,EAAA,OAAO,sBAAA;AACT;AAwBA,MAAM,uCAAA,GAA4E;AAAA;AAAA,EAEhF,KAAA,EAAO,OAAA;AAAA;AAAA,EAEP,KAAA,EAAO,OAAA;AAAA;AAAA,EAEP,OAAA,EAAS,OAAA;AAAA;AAAA,EAET,IAAA,EAAM,OAAA;AAAA;AAAA,EAEN,IAAA,EAAM,MAAA;AAAA;AAAA,EAEN,MAAA,EAAQ,MAAA;AAAA;AAAA,EAER,IAAA,EAAM,MAAA;AAAA;AAAA,EAEN,OAAA,EAAS,MAAA;AAAA;AAAA,EAET,KAAA,EAAO,OAAA;AAAA;AAAA,EAEP,KAAA,EAAO,OAAA;AAAA;AAAA,EAEP,KAAA,EAAO,OAAA;AAAA;AAAA,EAEP,IAAA,EAAM;AACR,CAAA;;;;"}
@@ -0,0 +1,33 @@
1
+ import * as diagnosticsChannel from 'node:diagnostics_channel';
2
+ import { defineIntegration, isObjectLike, captureException } from '@sentry/core';
3
+
4
+ const INTEGRATION_NAME = "WorkerThreads";
5
+ const workerThreadsIntegration = defineIntegration(() => {
6
+ return {
7
+ name: INTEGRATION_NAME,
8
+ setup() {
9
+ diagnosticsChannel.channel("worker_threads").subscribe((event) => {
10
+ if (isObjectLike(event) && "worker" in event) {
11
+ captureWorkerThreadEvents(event.worker);
12
+ }
13
+ });
14
+ }
15
+ };
16
+ });
17
+ function captureWorkerThreadEvents(worker) {
18
+ let threadId;
19
+ worker.on("online", () => {
20
+ threadId = worker.threadId;
21
+ }).on("error", (error) => {
22
+ captureException(error, {
23
+ mechanism: {
24
+ type: "auto.node.worker_threads",
25
+ handled: false,
26
+ data: threadId !== void 0 ? { threadId: String(threadId) } : void 0
27
+ }
28
+ });
29
+ });
30
+ }
31
+
32
+ export { workerThreadsIntegration };
33
+ //# sourceMappingURL=workerThreads.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workerThreads.js","sources":["../../../src/integrations/workerThreads.ts"],"sourcesContent":["import type { Worker } from 'node:worker_threads';\nimport * as diagnosticsChannel from 'node:diagnostics_channel';\nimport { captureException, defineIntegration, isObjectLike } from '@sentry/core';\n\nconst INTEGRATION_NAME = 'WorkerThreads' as const;\n\n/**\n * Capture events and errors of worker threads.\n * For child process events, use `childProcessIntegration()` instead.\n */\nexport const workerThreadsIntegration = defineIntegration(() => {\n return {\n name: INTEGRATION_NAME,\n setup() {\n diagnosticsChannel.channel('worker_threads').subscribe((event: unknown) => {\n if (isObjectLike(event) && 'worker' in event) {\n captureWorkerThreadEvents(event.worker as Worker);\n }\n });\n },\n };\n});\n\nfunction captureWorkerThreadEvents(worker: Worker): void {\n let threadId: number | undefined;\n\n worker\n .on('online', () => {\n threadId = worker.threadId;\n })\n .on('error', error => {\n captureException(error, {\n mechanism: {\n type: 'auto.node.worker_threads',\n handled: false,\n data: threadId !== undefined ? { threadId: String(threadId) } : undefined,\n },\n });\n });\n}\n"],"names":[],"mappings":";;;AAIA,MAAM,gBAAA,GAAmB,eAAA;AAMlB,MAAM,wBAAA,GAA2B,kBAAkB,MAAM;AAC9D,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,gBAAA;AAAA,IACN,KAAA,GAAQ;AACN,MAAA,kBAAA,CAAmB,OAAA,CAAQ,gBAAgB,CAAA,CAAE,SAAA,CAAU,CAAC,KAAA,KAAmB;AACzE,QAAA,IAAI,YAAA,CAAa,KAAK,CAAA,IAAK,QAAA,IAAY,KAAA,EAAO;AAC5C,UAAA,yBAAA,CAA0B,MAAM,MAAgB,CAAA;AAAA,QAClD;AAAA,MACF,CAAC,CAAA;AAAA,IACH;AAAA,GACF;AACF,CAAC;AAED,SAAS,0BAA0B,MAAA,EAAsB;AACvD,EAAA,IAAI,QAAA;AAEJ,EAAA,MAAA,CACG,EAAA,CAAG,UAAU,MAAM;AAClB,IAAA,QAAA,GAAW,MAAA,CAAO,QAAA;AAAA,EACpB,CAAC,CAAA,CACA,EAAA,CAAG,OAAA,EAAS,CAAA,KAAA,KAAS;AACpB,IAAA,gBAAA,CAAiB,KAAA,EAAO;AAAA,MACtB,SAAA,EAAW;AAAA,QACT,IAAA,EAAM,0BAAA;AAAA,QACN,OAAA,EAAS,KAAA;AAAA,QACT,IAAA,EAAM,aAAa,MAAA,GAAY,EAAE,UAAU,MAAA,CAAO,QAAQ,GAAE,GAAI;AAAA;AAClE,KACD,CAAA;AAAA,EACH,CAAC,CAAA;AACL;;;;"}
@@ -0,0 +1,24 @@
1
+ import { format } from 'node:util';
2
+ import { _INTERNAL_captureLog } from '@sentry/core';
3
+
4
+ function captureLog(level, ...args) {
5
+ const [messageOrMessageTemplate, paramsOrAttributes, maybeAttributesOrMetadata, maybeMetadata] = args;
6
+ if (Array.isArray(paramsOrAttributes)) {
7
+ const attributes = { ...maybeAttributesOrMetadata };
8
+ attributes["sentry.message.template"] = messageOrMessageTemplate;
9
+ paramsOrAttributes.forEach((param, index) => {
10
+ attributes[`sentry.message.parameter.${index}`] = param;
11
+ });
12
+ const message = format(messageOrMessageTemplate, ...paramsOrAttributes);
13
+ _INTERNAL_captureLog({ level, message, attributes }, maybeMetadata?.scope);
14
+ } else {
15
+ _INTERNAL_captureLog(
16
+ { level, message: messageOrMessageTemplate, attributes: paramsOrAttributes },
17
+ // type-casting here because from the type definitions we know that `maybeAttributesOrMetadata` is a metadata object (or undefined)
18
+ maybeAttributesOrMetadata?.scope ?? maybeMetadata?.scope
19
+ );
20
+ }
21
+ }
22
+
23
+ export { captureLog };
24
+ //# sourceMappingURL=capture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capture.js","sources":["../../../src/logs/capture.ts"],"sourcesContent":["import { format } from 'node:util';\nimport type { Log, LogSeverityLevel, ParameterizedString, Scope } from '@sentry/core';\nimport { _INTERNAL_captureLog } from '@sentry/core';\n\n/**\n * Additional metadata to capture the log with.\n */\ninterface CaptureLogMetadata {\n scope?: Scope;\n}\n\ntype CaptureLogArgWithTemplate = [\n messageTemplate: string,\n messageParams: Array<unknown>,\n attributes?: Log['attributes'],\n metadata?: CaptureLogMetadata,\n];\n\ntype CaptureLogArgWithoutTemplate = [\n message: ParameterizedString,\n attributes?: Log['attributes'],\n metadata?: CaptureLogMetadata,\n];\n\nexport type CaptureLogArgs = CaptureLogArgWithTemplate | CaptureLogArgWithoutTemplate;\n\n/**\n * Capture a log with the given level.\n *\n * @param level - The level of the log.\n * @param message - The message to log.\n * @param attributes - Arbitrary structured data that stores information about the log - e.g., userId: 100.\n */\nexport function captureLog(level: LogSeverityLevel, ...args: CaptureLogArgs): void {\n const [messageOrMessageTemplate, paramsOrAttributes, maybeAttributesOrMetadata, maybeMetadata] = args;\n if (Array.isArray(paramsOrAttributes)) {\n // type-casting here because from the type definitions we know that `maybeAttributesOrMetadata` is an attributes object (or undefined)\n const attributes = { ...(maybeAttributesOrMetadata as Log['attributes'] | undefined) };\n attributes['sentry.message.template'] = messageOrMessageTemplate;\n paramsOrAttributes.forEach((param, index) => {\n attributes[`sentry.message.parameter.${index}`] = param;\n });\n const message = format(messageOrMessageTemplate, ...paramsOrAttributes);\n _INTERNAL_captureLog({ level, message, attributes }, maybeMetadata?.scope);\n } else {\n _INTERNAL_captureLog(\n { level, message: messageOrMessageTemplate, attributes: paramsOrAttributes },\n // type-casting here because from the type definitions we know that `maybeAttributesOrMetadata` is a metadata object (or undefined)\n (maybeAttributesOrMetadata as CaptureLogMetadata | undefined)?.scope ?? maybeMetadata?.scope,\n );\n }\n}\n"],"names":[],"mappings":";;;AAiCO,SAAS,UAAA,CAAW,UAA4B,IAAA,EAA4B;AACjF,EAAA,MAAM,CAAC,wBAAA,EAA0B,kBAAA,EAAoB,yBAAA,EAA2B,aAAa,CAAA,GAAI,IAAA;AACjG,EAAA,IAAI,KAAA,CAAM,OAAA,CAAQ,kBAAkB,CAAA,EAAG;AAErC,IAAA,MAAM,UAAA,GAAa,EAAE,GAAI,yBAAA,EAA4D;AACrF,IAAA,UAAA,CAAW,yBAAyB,CAAA,GAAI,wBAAA;AACxC,IAAA,kBAAA,CAAmB,OAAA,CAAQ,CAAC,KAAA,EAAO,KAAA,KAAU;AAC3C,MAAA,UAAA,CAAW,CAAA,yBAAA,EAA4B,KAAK,CAAA,CAAE,CAAA,GAAI,KAAA;AAAA,IACpD,CAAC,CAAA;AACD,IAAA,MAAM,OAAA,GAAU,MAAA,CAAO,wBAAA,EAA0B,GAAG,kBAAkB,CAAA;AACtE,IAAA,oBAAA,CAAqB,EAAE,KAAA,EAAO,OAAA,EAAS,UAAA,EAAW,EAAG,eAAe,KAAK,CAAA;AAAA,EAC3E,CAAA,MAAO;AACL,IAAA,oBAAA;AAAA,MACE,EAAE,KAAA,EAAO,OAAA,EAAS,wBAAA,EAA0B,YAAY,kBAAA,EAAmB;AAAA;AAAA,MAE1E,yBAAA,EAA8D,SAAS,aAAA,EAAe;AAAA,KACzF;AAAA,EACF;AACF;;;;"}
@@ -0,0 +1,24 @@
1
+ import { captureLog } from './capture.js';
2
+ export { fmt } from '@sentry/core';
3
+
4
+ function trace(...args) {
5
+ captureLog("trace", ...args);
6
+ }
7
+ function debug(...args) {
8
+ captureLog("debug", ...args);
9
+ }
10
+ function info(...args) {
11
+ captureLog("info", ...args);
12
+ }
13
+ function warn(...args) {
14
+ captureLog("warn", ...args);
15
+ }
16
+ function error(...args) {
17
+ captureLog("error", ...args);
18
+ }
19
+ function fatal(...args) {
20
+ captureLog("fatal", ...args);
21
+ }
22
+
23
+ export { debug, error, fatal, info, trace, warn };
24
+ //# sourceMappingURL=exports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exports.js","sources":["../../../src/logs/exports.ts"],"sourcesContent":["import { captureLog, type CaptureLogArgs } from './capture';\n\n/**\n * @summary Capture a log with the `trace` level.\n *\n * You can either pass a message and attributes or a message template, params and attributes.\n *\n * @example\n *\n * ```\n * Sentry.logger.trace('Starting database connection', {\n * database: 'users',\n * connectionId: 'conn_123'\n * });\n * ```\n *\n * @example With template strings\n *\n * ```\n * Sentry.logger.trace('Database connection %s established for %s',\n * ['successful', 'users'],\n * { connectionId: 'conn_123' }\n * );\n * ```\n */\nexport function trace(...args: CaptureLogArgs): void {\n captureLog('trace', ...args);\n}\n\n/**\n * @summary Capture a log with the `debug` level.\n *\n * You can either pass a message and attributes or a message template, params and attributes.\n *\n * @example\n *\n * ```\n * Sentry.logger.debug('Cache miss for user profile', {\n * userId: 'user_123',\n * cacheKey: 'profile:user_123'\n * });\n * ```\n *\n * @example With template strings\n *\n * ```\n * Sentry.logger.debug('Cache %s for %s: %s',\n * ['miss', 'user profile', 'key not found'],\n * { userId: 'user_123' }\n * );\n * ```\n */\nexport function debug(...args: CaptureLogArgs): void {\n captureLog('debug', ...args);\n}\n\n/**\n * @summary Capture a log with the `info` level.\n *\n * You can either pass a message and attributes or a message template, params and attributes.\n *\n * @example\n *\n * ```\n * Sentry.logger.info('User profile updated', {\n * userId: 'user_123',\n * updatedFields: ['email', 'preferences']\n * });\n * ```\n *\n * @example With template strings\n *\n * ```\n * Sentry.logger.info('User %s updated their %s',\n * ['John Doe', 'profile settings'],\n * { userId: 'user_123' }\n * );\n * ```\n */\nexport function info(...args: CaptureLogArgs): void {\n captureLog('info', ...args);\n}\n\n/**\n * @summary Capture a log with the `warn` level.\n *\n * You can either pass a message and attributes or a message template, params and attributes.\n *\n * @example\n *\n * ```\n * Sentry.logger.warn('Rate limit approaching', {\n * endpoint: '/api/users',\n * currentRate: '95/100',\n * resetTime: '2024-03-20T10:00:00Z'\n * });\n * ```\n *\n * @example With template strings\n *\n * ```\n * Sentry.logger.warn('Rate limit %s for %s: %s',\n * ['approaching', '/api/users', '95/100 requests'],\n * { resetTime: '2024-03-20T10:00:00Z' }\n * );\n * ```\n */\nexport function warn(...args: CaptureLogArgs): void {\n captureLog('warn', ...args);\n}\n\n/**\n * @summary Capture a log with the `error` level.\n *\n * You can either pass a message and attributes or a message template, params and attributes.\n *\n * @example\n *\n * ```\n * Sentry.logger.error('Failed to process payment', {\n * orderId: 'order_123',\n * errorCode: 'PAYMENT_FAILED',\n * amount: 99.99\n * });\n * ```\n *\n * @example With template strings\n *\n * ```\n * Sentry.logger.error('Payment processing failed for order %s: %s',\n * ['order_123', 'insufficient funds'],\n * { amount: 99.99 }\n * );\n * ```\n */\nexport function error(...args: CaptureLogArgs): void {\n captureLog('error', ...args);\n}\n\n/**\n * @summary Capture a log with the `fatal` level.\n *\n * You can either pass a message and attributes or a message template, params and attributes.\n *\n * @example\n *\n * ```\n * Sentry.logger.fatal('Database connection pool exhausted', {\n * database: 'users',\n * activeConnections: 100,\n * maxConnections: 100\n * });\n * ```\n *\n * @example With template strings\n *\n * ```\n * Sentry.logger.fatal('Database %s: %s connections active',\n * ['connection pool exhausted', '100/100'],\n * { database: 'users' }\n * );\n * ```\n */\nexport function fatal(...args: CaptureLogArgs): void {\n captureLog('fatal', ...args);\n}\n\nexport { fmt } from '@sentry/core';\n"],"names":[],"mappings":";;;AAyBO,SAAS,SAAS,IAAA,EAA4B;AACnD,EAAA,UAAA,CAAW,OAAA,EAAS,GAAG,IAAI,CAAA;AAC7B;AAyBO,SAAS,SAAS,IAAA,EAA4B;AACnD,EAAA,UAAA,CAAW,OAAA,EAAS,GAAG,IAAI,CAAA;AAC7B;AAyBO,SAAS,QAAQ,IAAA,EAA4B;AAClD,EAAA,UAAA,CAAW,MAAA,EAAQ,GAAG,IAAI,CAAA;AAC5B;AA0BO,SAAS,QAAQ,IAAA,EAA4B;AAClD,EAAA,UAAA,CAAW,MAAA,EAAQ,GAAG,IAAI,CAAA;AAC5B;AA0BO,SAAS,SAAS,IAAA,EAA4B;AACnD,EAAA,UAAA,CAAW,OAAA,EAAS,GAAG,IAAI,CAAA;AAC7B;AA0BO,SAAS,SAAS,IAAA,EAA4B;AACnD,EAAA,UAAA,CAAW,OAAA,EAAS,GAAG,IAAI,CAAA;AAC7B;;;;"}
@@ -0,0 +1,8 @@
1
+ import { parseSemver } from '@sentry/core';
2
+
3
+ const NODE_VERSION = parseSemver(process.versions.node);
4
+ NODE_VERSION.major;
5
+ NODE_VERSION.minor;
6
+
7
+ export { NODE_VERSION };
8
+ //# sourceMappingURL=nodeVersion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nodeVersion.js","sources":["../../src/nodeVersion.ts"],"sourcesContent":["import { parseSemver } from '@sentry/core';\n\nexport const NODE_VERSION = parseSemver(process.versions.node) as { major: number; minor: number; patch: number };\nexport const NODE_MAJOR = NODE_VERSION.major;\nexport const NODE_MINOR = NODE_VERSION.minor;\n"],"names":[],"mappings":";;AAEO,MAAM,YAAA,GAAe,WAAA,CAAY,OAAA,CAAQ,QAAA,CAAS,IAAI;AACnC,YAAA,CAAa;AACb,YAAA,CAAa;;;;"}
@@ -0,0 +1,19 @@
1
+ import { diag, DiagLogLevel } from '@opentelemetry/api';
2
+ import { debug } from '@sentry/core';
3
+
4
+ function setupOpenTelemetryLogger() {
5
+ diag.disable();
6
+ diag.setLogger(
7
+ {
8
+ error: debug.error,
9
+ warn: debug.warn,
10
+ info: debug.log,
11
+ debug: debug.log,
12
+ verbose: debug.log
13
+ },
14
+ DiagLogLevel.DEBUG
15
+ );
16
+ }
17
+
18
+ export { setupOpenTelemetryLogger };
19
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sources":["../../../src/otel/logger.ts"],"sourcesContent":["import { diag, DiagLogLevel } from '@opentelemetry/api';\nimport { debug } from '@sentry/core';\n\n/**\n * Setup the OTEL logger to use our own debug logger.\n */\nexport function setupOpenTelemetryLogger(): void {\n // Disable diag, to ensure this works even if called multiple times\n diag.disable();\n diag.setLogger(\n {\n error: debug.error,\n warn: debug.warn,\n info: debug.log,\n debug: debug.log,\n verbose: debug.log,\n },\n DiagLogLevel.DEBUG,\n );\n}\n"],"names":[],"mappings":";;;AAMO,SAAS,wBAAA,GAAiC;AAE/C,EAAA,IAAA,CAAK,OAAA,EAAQ;AACb,EAAA,IAAA,CAAK,SAAA;AAAA,IACH;AAAA,MACE,OAAO,KAAA,CAAM,KAAA;AAAA,MACb,MAAM,KAAA,CAAM,IAAA;AAAA,MACZ,MAAM,KAAA,CAAM,GAAA;AAAA,MACZ,OAAO,KAAA,CAAM,GAAA;AAAA,MACb,SAAS,KAAA,CAAM;AAAA,KACjB;AAAA,IACA,YAAA,CAAa;AAAA,GACf;AACF;;;;"}
@@ -1 +1 @@
1
- {"type":"module","version":"10.75.1","sideEffects":false}
1
+ {"type":"module","version":"11.0.0","sideEffects":false}
@@ -0,0 +1,67 @@
1
+ import * as http from 'node:http';
2
+ import 'node:https';
3
+
4
+ var _a;
5
+ const INTERNAL = /* @__PURE__ */ Symbol("AgentBaseInternalState");
6
+ class Agent extends (_a = http.Agent, _a) {
7
+ constructor(opts) {
8
+ super(opts);
9
+ this[INTERNAL] = {};
10
+ }
11
+ /**
12
+ * Determine whether this is an `http` or `https` request.
13
+ */
14
+ isSecureEndpoint(options) {
15
+ if (options) {
16
+ if (typeof options.secureEndpoint === "boolean") {
17
+ return options.secureEndpoint;
18
+ }
19
+ if (typeof options.protocol === "string") {
20
+ return options.protocol === "https:";
21
+ }
22
+ }
23
+ const { stack } = new Error();
24
+ if (typeof stack !== "string") return false;
25
+ return stack.split("\n").some((l) => l.indexOf("(https.js:") !== -1 || l.indexOf("node:https:") !== -1);
26
+ }
27
+ createSocket(req, options, cb) {
28
+ const connectOpts = {
29
+ ...options,
30
+ secureEndpoint: this.isSecureEndpoint(options)
31
+ };
32
+ Promise.resolve().then(() => this.connect(req, connectOpts)).then((socket) => {
33
+ if (socket instanceof http.Agent) {
34
+ return socket.addRequest(req, connectOpts);
35
+ }
36
+ this[INTERNAL].currentSocket = socket;
37
+ super.createSocket(req, options, cb);
38
+ }, cb);
39
+ }
40
+ createConnection() {
41
+ const socket = this[INTERNAL].currentSocket;
42
+ this[INTERNAL].currentSocket = void 0;
43
+ if (!socket) {
44
+ throw new Error("No socket was returned in the `connect()` function");
45
+ }
46
+ return socket;
47
+ }
48
+ get defaultPort() {
49
+ return this[INTERNAL].defaultPort ?? (this.protocol === "https:" ? 443 : 80);
50
+ }
51
+ set defaultPort(v) {
52
+ if (this[INTERNAL]) {
53
+ this[INTERNAL].defaultPort = v;
54
+ }
55
+ }
56
+ get protocol() {
57
+ return this[INTERNAL].protocol ?? (this.isSecureEndpoint() ? "https:" : "http:");
58
+ }
59
+ set protocol(v) {
60
+ if (this[INTERNAL]) {
61
+ this[INTERNAL].protocol = v;
62
+ }
63
+ }
64
+ }
65
+
66
+ export { Agent };
67
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sources":["../../../src/proxy/base.ts"],"sourcesContent":["/**\n * This code was originally forked from https://github.com/TooTallNate/proxy-agents/tree/b133295fd16f6475578b6b15bd9b4e33ecb0d0b7\n * With the following LICENSE:\n *\n * (The MIT License)\n *\n * Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>*\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * 'Software'), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:*\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.*\n *\n * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\n/* eslint-disable @typescript-eslint/explicit-member-accessibility */\n/* eslint-disable @typescript-eslint/member-ordering */\n/* eslint-disable jsdoc/require-jsdoc */\nimport * as http from 'node:http';\nimport type * as net from 'node:net';\nimport type { Duplex } from 'node:stream';\nimport type * as tls from 'node:tls';\n\nexport * from './helpers';\n\ninterface HttpConnectOpts extends net.TcpNetConnectOpts {\n secureEndpoint: false;\n protocol?: string;\n}\n\ninterface HttpsConnectOpts extends tls.ConnectionOptions {\n secureEndpoint: true;\n protocol?: string;\n port: number;\n}\n\nexport type AgentConnectOpts = HttpConnectOpts | HttpsConnectOpts;\n\nconst INTERNAL = Symbol('AgentBaseInternalState');\n\ninterface InternalState {\n defaultPort?: number;\n protocol?: string;\n currentSocket?: Duplex;\n}\n\nexport abstract class Agent extends http.Agent {\n private [INTERNAL]: InternalState;\n\n // Set by `http.Agent` - missing from `@types/node`\n options!: Partial<net.TcpNetConnectOpts & tls.ConnectionOptions>;\n keepAlive!: boolean;\n\n constructor(opts?: http.AgentOptions) {\n super(opts);\n this[INTERNAL] = {};\n }\n\n abstract connect(\n req: http.ClientRequest,\n options: AgentConnectOpts,\n ): Promise<Duplex | http.Agent> | Duplex | http.Agent;\n\n /**\n * Determine whether this is an `http` or `https` request.\n */\n isSecureEndpoint(options?: AgentConnectOpts): boolean {\n if (options) {\n // First check the `secureEndpoint` property explicitly, since this\n // means that a parent `Agent` is \"passing through\" to this instance.\n if (typeof (options as Partial<typeof options>).secureEndpoint === 'boolean') {\n return options.secureEndpoint;\n }\n\n // If no explicit `secure` endpoint, check if `protocol` property is\n // set. This will usually be the case since using a full string URL\n // or `URL` instance should be the most common usage.\n if (typeof options.protocol === 'string') {\n return options.protocol === 'https:';\n }\n }\n\n // Finally, if no `protocol` property was set, then fall back to\n // checking the stack trace of the current call stack, and try to\n // detect the \"https\" module.\n const { stack } = new Error();\n if (typeof stack !== 'string') return false;\n return stack.split('\\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1);\n }\n\n createSocket(req: http.ClientRequest, options: AgentConnectOpts, cb: (err: Error | null, s?: Duplex) => void): void {\n const connectOpts = {\n ...options,\n secureEndpoint: this.isSecureEndpoint(options),\n };\n Promise.resolve()\n .then(() => this.connect(req, connectOpts))\n .then(socket => {\n if (socket instanceof http.Agent) {\n // @ts-expect-error `addRequest()` isn't defined in `@types/node`\n return socket.addRequest(req, connectOpts);\n }\n this[INTERNAL].currentSocket = socket;\n // @ts-expect-error `createSocket()` isn't defined in `@types/node`\n super.createSocket(req, options, cb);\n }, cb);\n }\n\n createConnection(): Duplex {\n const socket = this[INTERNAL].currentSocket;\n this[INTERNAL].currentSocket = undefined;\n if (!socket) {\n throw new Error('No socket was returned in the `connect()` function');\n }\n return socket;\n }\n\n get defaultPort(): number {\n return this[INTERNAL].defaultPort ?? (this.protocol === 'https:' ? 443 : 80);\n }\n\n set defaultPort(v: number) {\n if (this[INTERNAL]) {\n this[INTERNAL].defaultPort = v;\n }\n }\n\n get protocol(): string {\n return this[INTERNAL].protocol ?? (this.isSecureEndpoint() ? 'https:' : 'http:');\n }\n\n set protocol(v: string) {\n if (this[INTERNAL]) {\n this[INTERNAL].protocol = v;\n }\n }\n}\n"],"names":[],"mappings":"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"}
@@ -0,0 +1,110 @@
1
+ import * as net from 'node:net';
2
+ import * as tls from 'node:tls';
3
+ import { debug } from '@sentry/core';
4
+ import { Agent } from './base.js';
5
+ import { parseProxyResponse } from './parse-proxy-response.js';
6
+
7
+ function debugLog(...args) {
8
+ debug.log("[https-proxy-agent]", ...args);
9
+ }
10
+ class HttpsProxyAgent extends Agent {
11
+ constructor(proxy, opts) {
12
+ super(opts);
13
+ this.options = {};
14
+ this.proxy = typeof proxy === "string" ? new URL(proxy) : proxy;
15
+ this.proxyHeaders = opts?.headers ?? {};
16
+ debugLog("Creating new HttpsProxyAgent instance: %o", this.proxy.href);
17
+ const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, "");
18
+ const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.proxy.protocol === "https:" ? 443 : 80;
19
+ this.connectOpts = {
20
+ // Attempt to negotiate http/1.1 for proxy servers that support http/2
21
+ ALPNProtocols: ["http/1.1"],
22
+ ...opts ? omit(opts, "headers") : null,
23
+ host,
24
+ port
25
+ };
26
+ }
27
+ /**
28
+ * Called when the HTTP client library is creating a
29
+ * new HTTP request.
30
+ */
31
+ async connect(req, opts) {
32
+ const { proxy } = this;
33
+ if (!opts.host) {
34
+ throw new TypeError('No "host" provided');
35
+ }
36
+ let socket;
37
+ if (proxy.protocol === "https:") {
38
+ debugLog("Creating `tls.Socket`: %o", this.connectOpts);
39
+ const servername = this.connectOpts.servername || this.connectOpts.host;
40
+ socket = tls.connect({
41
+ ...this.connectOpts,
42
+ servername: servername && net.isIP(servername) ? void 0 : servername
43
+ });
44
+ } else {
45
+ debugLog("Creating `net.Socket`: %o", this.connectOpts);
46
+ socket = net.connect(this.connectOpts);
47
+ }
48
+ const headers = typeof this.proxyHeaders === "function" ? this.proxyHeaders() : { ...this.proxyHeaders };
49
+ const host = net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host;
50
+ let payload = `CONNECT ${host}:${opts.port} HTTP/1.1\r
51
+ `;
52
+ if (proxy.username || proxy.password) {
53
+ const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;
54
+ headers["Proxy-Authorization"] = `Basic ${Buffer.from(auth).toString("base64")}`;
55
+ }
56
+ headers.Host = `${host}:${opts.port}`;
57
+ if (!headers["Proxy-Connection"]) {
58
+ headers["Proxy-Connection"] = this.keepAlive ? "Keep-Alive" : "close";
59
+ }
60
+ for (const name of Object.keys(headers)) {
61
+ payload += `${name}: ${headers[name]}\r
62
+ `;
63
+ }
64
+ const proxyResponsePromise = parseProxyResponse(socket);
65
+ socket.write(`${payload}\r
66
+ `);
67
+ const { connect, buffered } = await proxyResponsePromise;
68
+ req.emit("proxyConnect", connect);
69
+ this.emit("proxyConnect", connect, req);
70
+ if (connect.statusCode === 200) {
71
+ req.once("socket", resume);
72
+ if (opts.secureEndpoint) {
73
+ debugLog("Upgrading socket connection to TLS");
74
+ const servername = opts.servername || opts.host;
75
+ return tls.connect({
76
+ ...omit(opts, "host", "path", "port"),
77
+ socket,
78
+ servername: net.isIP(servername) ? void 0 : servername
79
+ });
80
+ }
81
+ return socket;
82
+ }
83
+ socket.destroy();
84
+ const fakeSocket = new net.Socket({ writable: false });
85
+ fakeSocket.readable = true;
86
+ req.once("socket", (s) => {
87
+ debugLog("Replaying proxy buffer for failed request");
88
+ s.push(buffered);
89
+ s.push(null);
90
+ });
91
+ return fakeSocket;
92
+ }
93
+ }
94
+ HttpsProxyAgent.protocols = ["http", "https"];
95
+ function resume(socket) {
96
+ socket.resume();
97
+ }
98
+ function omit(obj, ...keys) {
99
+ const ret = {};
100
+ let key;
101
+ for (key in obj) {
102
+ if (!keys.includes(key)) {
103
+ ret[key] = obj[key];
104
+ }
105
+ }
106
+ return ret;
107
+ }
108
+
109
+ export { HttpsProxyAgent };
110
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/proxy/index.ts"],"sourcesContent":["/**\n * This code was originally forked from https://github.com/TooTallNate/proxy-agents/tree/b133295fd16f6475578b6b15bd9b4e33ecb0d0b7\n * With the following LICENSE:\n *\n * (The MIT License)\n *\n * Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>*\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * 'Software'), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:*\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.*\n *\n * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\n/* eslint-disable @typescript-eslint/explicit-member-accessibility */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n// eslint-disable-next-line import/no-duplicates\nimport type * as http from 'node:http';\n// eslint-disable-next-line import/no-duplicates\nimport type { OutgoingHttpHeaders } from 'node:http';\nimport * as net from 'node:net';\nimport * as tls from 'node:tls';\nimport { debug } from '@sentry/core';\nimport type { AgentConnectOpts } from './base';\nimport { Agent } from './base';\nimport { parseProxyResponse } from './parse-proxy-response';\n\nfunction debugLog(...args: unknown[]): void {\n debug.log('[https-proxy-agent]', ...args);\n}\n\ntype Protocol<T> = T extends `${infer Protocol}:${infer _}` ? Protocol : never;\n\ntype ConnectOptsMap = {\n http: Omit<net.TcpNetConnectOpts, 'host' | 'port'>;\n https: Omit<tls.ConnectionOptions, 'host' | 'port'>;\n};\n\ntype ConnectOpts<T> = {\n [P in keyof ConnectOptsMap]: Protocol<T> extends P ? ConnectOptsMap[P] : never;\n}[keyof ConnectOptsMap];\n\nexport type HttpsProxyAgentOptions<T> = ConnectOpts<T> &\n http.AgentOptions & {\n headers?: OutgoingHttpHeaders | (() => OutgoingHttpHeaders);\n };\n\n/**\n * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to\n * the specified \"HTTP(s) proxy server\" in order to proxy HTTPS requests.\n *\n * Outgoing HTTP requests are first tunneled through the proxy server using the\n * `CONNECT` HTTP request method to establish a connection to the proxy server,\n * and then the proxy server connects to the destination target and issues the\n * HTTP request from the proxy server.\n *\n * `https:` requests have their socket connection upgraded to TLS once\n * the connection to the proxy server has been established.\n */\nexport class HttpsProxyAgent<Uri extends string> extends Agent {\n static protocols = ['http', 'https'] as const;\n\n readonly proxy: URL;\n proxyHeaders: OutgoingHttpHeaders | (() => OutgoingHttpHeaders);\n connectOpts: net.TcpNetConnectOpts & tls.ConnectionOptions;\n\n constructor(proxy: Uri | URL, opts?: HttpsProxyAgentOptions<Uri>) {\n super(opts);\n this.options = {};\n this.proxy = typeof proxy === 'string' ? new URL(proxy) : proxy;\n this.proxyHeaders = opts?.headers ?? {};\n debugLog('Creating new HttpsProxyAgent instance: %o', this.proxy.href);\n\n // Trim off the brackets from IPv6 addresses\n const host = (this.proxy.hostname || this.proxy.host).replace(/^\\[|\\]$/g, '');\n const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.proxy.protocol === 'https:' ? 443 : 80;\n this.connectOpts = {\n // Attempt to negotiate http/1.1 for proxy servers that support http/2\n ALPNProtocols: ['http/1.1'],\n ...(opts ? omit(opts, 'headers') : null),\n host,\n port,\n };\n }\n\n /**\n * Called when the HTTP client library is creating a\n * new HTTP request.\n */\n async connect(req: http.ClientRequest, opts: AgentConnectOpts): Promise<net.Socket> {\n const { proxy } = this;\n\n if (!opts.host) {\n throw new TypeError('No \"host\" provided');\n }\n\n // Create a socket connection to the proxy server.\n let socket: net.Socket;\n if (proxy.protocol === 'https:') {\n debugLog('Creating `tls.Socket`: %o', this.connectOpts);\n const servername = this.connectOpts.servername || this.connectOpts.host;\n socket = tls.connect({\n ...this.connectOpts,\n servername: servername && net.isIP(servername) ? undefined : servername,\n });\n } else {\n debugLog('Creating `net.Socket`: %o', this.connectOpts);\n socket = net.connect(this.connectOpts);\n }\n\n const headers: OutgoingHttpHeaders =\n typeof this.proxyHeaders === 'function' ? this.proxyHeaders() : { ...this.proxyHeaders };\n const host = net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host;\n let payload = `CONNECT ${host}:${opts.port} HTTP/1.1\\r\\n`;\n\n // Inject the `Proxy-Authorization` header if necessary.\n if (proxy.username || proxy.password) {\n const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;\n headers['Proxy-Authorization'] = `Basic ${Buffer.from(auth).toString('base64')}`;\n }\n\n headers.Host = `${host}:${opts.port}`;\n\n if (!headers['Proxy-Connection']) {\n headers['Proxy-Connection'] = this.keepAlive ? 'Keep-Alive' : 'close';\n }\n for (const name of Object.keys(headers)) {\n payload += `${name}: ${headers[name]}\\r\\n`;\n }\n\n const proxyResponsePromise = parseProxyResponse(socket);\n\n socket.write(`${payload}\\r\\n`);\n\n const { connect, buffered } = await proxyResponsePromise;\n req.emit('proxyConnect', connect);\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore Not EventEmitter in Node types\n this.emit('proxyConnect', connect, req);\n\n if (connect.statusCode === 200) {\n req.once('socket', resume);\n\n if (opts.secureEndpoint) {\n // The proxy is connecting to a TLS server, so upgrade\n // this socket connection to a TLS connection.\n debugLog('Upgrading socket connection to TLS');\n const servername = opts.servername || opts.host;\n return tls.connect({\n ...omit(opts, 'host', 'path', 'port'),\n socket,\n servername: net.isIP(servername) ? undefined : servername,\n });\n }\n\n return socket;\n }\n\n // Some other status code that's not 200... need to re-play the HTTP\n // header \"data\" events onto the socket once the HTTP machinery is\n // attached so that the node core `http` can parse and handle the\n // error status code.\n\n // Close the original socket, and a new \"fake\" socket is returned\n // instead, so that the proxy doesn't get the HTTP request\n // written to it (which may contain `Authorization` headers or other\n // sensitive data).\n //\n // See: https://hackerone.com/reports/541502\n socket.destroy();\n\n const fakeSocket = new net.Socket({ writable: false });\n fakeSocket.readable = true;\n\n // Need to wait for the \"socket\" event to re-play the \"data\" events.\n req.once('socket', (s: net.Socket) => {\n debugLog('Replaying proxy buffer for failed request');\n // Replay the \"buffered\" Buffer onto the fake `socket`, since at\n // this point the HTTP module machinery has been hooked up for\n // the user.\n s.push(buffered);\n s.push(null);\n });\n\n return fakeSocket;\n }\n}\n\nfunction resume(socket: net.Socket | tls.TLSSocket): void {\n socket.resume();\n}\n\nfunction omit<T extends object, K extends [...(keyof T)[]]>(\n obj: T,\n ...keys: K\n): {\n [K2 in Exclude<keyof T, K[number]>]: T[K2];\n} {\n const ret = {} as {\n [K in keyof typeof obj]: (typeof obj)[K];\n };\n let key: keyof typeof obj;\n for (key in obj) {\n if (!keys.includes(key)) {\n ret[key] = obj[key];\n }\n }\n return ret;\n}\n"],"names":[],"mappings":"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"}
@@ -0,0 +1,86 @@
1
+ import { debug } from '@sentry/core';
2
+
3
+ function debugLog(...args) {
4
+ debug.log("[https-proxy-agent:parse-proxy-response]", ...args);
5
+ }
6
+ function parseProxyResponse(socket) {
7
+ return new Promise((resolve, reject) => {
8
+ let buffersLength = 0;
9
+ const buffers = [];
10
+ function read() {
11
+ const b = socket.read();
12
+ if (b) ondata(b);
13
+ else socket.once("readable", read);
14
+ }
15
+ function cleanup() {
16
+ socket.removeListener("end", onend);
17
+ socket.removeListener("error", onerror);
18
+ socket.removeListener("readable", read);
19
+ }
20
+ function onend() {
21
+ cleanup();
22
+ debugLog("onend");
23
+ reject(new Error("Proxy connection ended before receiving CONNECT response"));
24
+ }
25
+ function onerror(err) {
26
+ cleanup();
27
+ debugLog("onerror %o", err);
28
+ reject(err);
29
+ }
30
+ function ondata(b) {
31
+ buffers.push(b);
32
+ buffersLength += b.length;
33
+ const buffered = Buffer.concat(buffers, buffersLength);
34
+ const endOfHeaders = buffered.indexOf("\r\n\r\n");
35
+ if (endOfHeaders === -1) {
36
+ debugLog("have not received end of HTTP headers yet...");
37
+ read();
38
+ return;
39
+ }
40
+ const headerParts = buffered.subarray(0, endOfHeaders).toString("ascii").split("\r\n");
41
+ const firstLine = headerParts.shift();
42
+ if (!firstLine) {
43
+ socket.destroy();
44
+ return reject(new Error("No header received from proxy CONNECT response"));
45
+ }
46
+ const firstLineParts = firstLine.split(" ");
47
+ const statusCode = +(firstLineParts[1] || 0);
48
+ const statusText = firstLineParts.slice(2).join(" ");
49
+ const headers = {};
50
+ for (const header of headerParts) {
51
+ if (!header) continue;
52
+ const firstColon = header.indexOf(":");
53
+ if (firstColon === -1) {
54
+ socket.destroy();
55
+ return reject(new Error(`Invalid header from proxy CONNECT response: "${header}"`));
56
+ }
57
+ const key = header.slice(0, firstColon).toLowerCase();
58
+ const value = header.slice(firstColon + 1).trimStart();
59
+ const current = headers[key];
60
+ if (typeof current === "string") {
61
+ headers[key] = [current, value];
62
+ } else if (Array.isArray(current)) {
63
+ current.push(value);
64
+ } else {
65
+ headers[key] = value;
66
+ }
67
+ }
68
+ debugLog("got proxy server response: %o %o", firstLine, headers);
69
+ cleanup();
70
+ resolve({
71
+ connect: {
72
+ statusCode,
73
+ statusText,
74
+ headers
75
+ },
76
+ buffered
77
+ });
78
+ }
79
+ socket.on("error", onerror);
80
+ socket.on("end", onend);
81
+ read();
82
+ });
83
+ }
84
+
85
+ export { parseProxyResponse };
86
+ //# sourceMappingURL=parse-proxy-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-proxy-response.js","sources":["../../../src/proxy/parse-proxy-response.ts"],"sourcesContent":["/**\n * This code was originally forked from https://github.com/TooTallNate/proxy-agents/tree/b133295fd16f6475578b6b15bd9b4e33ecb0d0b7\n * With the following LICENSE:\n *\n * (The MIT License)\n *\n * Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>*\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * 'Software'), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:*\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.*\n *\n * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\n/* eslint-disable @typescript-eslint/explicit-function-return-type */\n/* eslint-disable jsdoc/require-jsdoc */\nimport type { IncomingHttpHeaders } from 'node:http';\nimport type { Readable } from 'node:stream';\nimport { debug } from '@sentry/core';\n\nfunction debugLog(...args: unknown[]): void {\n debug.log('[https-proxy-agent:parse-proxy-response]', ...args);\n}\n\nexport interface ConnectResponse {\n statusCode: number;\n statusText: string;\n headers: IncomingHttpHeaders;\n}\n\nexport function parseProxyResponse(socket: Readable): Promise<{ connect: ConnectResponse; buffered: Buffer }> {\n return new Promise((resolve, reject) => {\n // we need to buffer any HTTP traffic that happens with the proxy before we get\n // the CONNECT response, so that if the response is anything other than an \"200\"\n // response code, then we can re-play the \"data\" events on the socket once the\n // HTTP parser is hooked up...\n let buffersLength = 0;\n const buffers: Buffer[] = [];\n\n function read() {\n const b = socket.read();\n if (b) ondata(b);\n else socket.once('readable', read);\n }\n\n function cleanup() {\n socket.removeListener('end', onend);\n socket.removeListener('error', onerror);\n socket.removeListener('readable', read);\n }\n\n function onend() {\n cleanup();\n debugLog('onend');\n reject(new Error('Proxy connection ended before receiving CONNECT response'));\n }\n\n function onerror(err: Error) {\n cleanup();\n debugLog('onerror %o', err);\n reject(err);\n }\n\n function ondata(b: Buffer) {\n buffers.push(b);\n buffersLength += b.length;\n\n const buffered = Buffer.concat(buffers, buffersLength);\n const endOfHeaders = buffered.indexOf('\\r\\n\\r\\n');\n\n if (endOfHeaders === -1) {\n // keep buffering\n debugLog('have not received end of HTTP headers yet...');\n read();\n return;\n }\n\n const headerParts = buffered.subarray(0, endOfHeaders).toString('ascii').split('\\r\\n');\n const firstLine = headerParts.shift();\n if (!firstLine) {\n socket.destroy();\n return reject(new Error('No header received from proxy CONNECT response'));\n }\n const firstLineParts = firstLine.split(' ');\n const statusCode = +(firstLineParts[1] || 0);\n const statusText = firstLineParts.slice(2).join(' ');\n const headers: IncomingHttpHeaders = {};\n for (const header of headerParts) {\n if (!header) continue;\n const firstColon = header.indexOf(':');\n if (firstColon === -1) {\n socket.destroy();\n return reject(new Error(`Invalid header from proxy CONNECT response: \"${header}\"`));\n }\n const key = header.slice(0, firstColon).toLowerCase();\n const value = header.slice(firstColon + 1).trimStart();\n const current = headers[key];\n if (typeof current === 'string') {\n headers[key] = [current, value];\n } else if (Array.isArray(current)) {\n current.push(value);\n } else {\n headers[key] = value;\n }\n }\n debugLog('got proxy server response: %o %o', firstLine, headers);\n cleanup();\n resolve({\n connect: {\n statusCode,\n statusText,\n headers,\n },\n buffered,\n });\n }\n\n socket.on('error', onerror);\n socket.on('end', onend);\n\n read();\n });\n}\n"],"names":[],"mappings":";;AAkCA,SAAS,YAAY,IAAA,EAAuB;AAC1C,EAAA,KAAA,CAAM,GAAA,CAAI,0CAAA,EAA4C,GAAG,IAAI,CAAA;AAC/D;AAQO,SAAS,mBAAmB,MAAA,EAA2E;AAC5G,EAAA,OAAO,IAAI,OAAA,CAAQ,CAAC,OAAA,EAAS,MAAA,KAAW;AAKtC,IAAA,IAAI,aAAA,GAAgB,CAAA;AACpB,IAAA,MAAM,UAAoB,EAAC;AAE3B,IAAA,SAAS,IAAA,GAAO;AACd,MAAA,MAAM,CAAA,GAAI,OAAO,IAAA,EAAK;AACtB,MAAA,IAAI,CAAA,SAAU,CAAC,CAAA;AAAA,WACV,MAAA,CAAO,IAAA,CAAK,UAAA,EAAY,IAAI,CAAA;AAAA,IACnC;AAEA,IAAA,SAAS,OAAA,GAAU;AACjB,MAAA,MAAA,CAAO,cAAA,CAAe,OAAO,KAAK,CAAA;AAClC,MAAA,MAAA,CAAO,cAAA,CAAe,SAAS,OAAO,CAAA;AACtC,MAAA,MAAA,CAAO,cAAA,CAAe,YAAY,IAAI,CAAA;AAAA,IACxC;AAEA,IAAA,SAAS,KAAA,GAAQ;AACf,MAAA,OAAA,EAAQ;AACR,MAAA,QAAA,CAAS,OAAO,CAAA;AAChB,MAAA,MAAA,CAAO,IAAI,KAAA,CAAM,0DAA0D,CAAC,CAAA;AAAA,IAC9E;AAEA,IAAA,SAAS,QAAQ,GAAA,EAAY;AAC3B,MAAA,OAAA,EAAQ;AACR,MAAA,QAAA,CAAS,cAAc,GAAG,CAAA;AAC1B,MAAA,MAAA,CAAO,GAAG,CAAA;AAAA,IACZ;AAEA,IAAA,SAAS,OAAO,CAAA,EAAW;AACzB,MAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AACd,MAAA,aAAA,IAAiB,CAAA,CAAE,MAAA;AAEnB,MAAA,MAAM,QAAA,GAAW,MAAA,CAAO,MAAA,CAAO,OAAA,EAAS,aAAa,CAAA;AACrD,MAAA,MAAM,YAAA,GAAe,QAAA,CAAS,OAAA,CAAQ,UAAU,CAAA;AAEhD,MAAA,IAAI,iBAAiB,EAAA,EAAI;AAEvB,QAAA,QAAA,CAAS,8CAA8C,CAAA;AACvD,QAAA,IAAA,EAAK;AACL,QAAA;AAAA,MACF;AAEA,MAAA,MAAM,WAAA,GAAc,QAAA,CAAS,QAAA,CAAS,CAAA,EAAG,YAAY,EAAE,QAAA,CAAS,OAAO,CAAA,CAAE,KAAA,CAAM,MAAM,CAAA;AACrF,MAAA,MAAM,SAAA,GAAY,YAAY,KAAA,EAAM;AACpC,MAAA,IAAI,CAAC,SAAA,EAAW;AACd,QAAA,MAAA,CAAO,OAAA,EAAQ;AACf,QAAA,OAAO,MAAA,CAAO,IAAI,KAAA,CAAM,gDAAgD,CAAC,CAAA;AAAA,MAC3E;AACA,MAAA,MAAM,cAAA,GAAiB,SAAA,CAAU,KAAA,CAAM,GAAG,CAAA;AAC1C,MAAA,MAAM,UAAA,GAAa,EAAE,cAAA,CAAe,CAAC,CAAA,IAAK,CAAA,CAAA;AAC1C,MAAA,MAAM,aAAa,cAAA,CAAe,KAAA,CAAM,CAAC,CAAA,CAAE,KAAK,GAAG,CAAA;AACnD,MAAA,MAAM,UAA+B,EAAC;AACtC,MAAA,KAAA,MAAW,UAAU,WAAA,EAAa;AAChC,QAAA,IAAI,CAAC,MAAA,EAAQ;AACb,QAAA,MAAM,UAAA,GAAa,MAAA,CAAO,OAAA,CAAQ,GAAG,CAAA;AACrC,QAAA,IAAI,eAAe,EAAA,EAAI;AACrB,UAAA,MAAA,CAAO,OAAA,EAAQ;AACf,UAAA,OAAO,OAAO,IAAI,KAAA,CAAM,CAAA,6CAAA,EAAgD,MAAM,GAAG,CAAC,CAAA;AAAA,QACpF;AACA,QAAA,MAAM,MAAM,MAAA,CAAO,KAAA,CAAM,CAAA,EAAG,UAAU,EAAE,WAAA,EAAY;AACpD,QAAA,MAAM,QAAQ,MAAA,CAAO,KAAA,CAAM,UAAA,GAAa,CAAC,EAAE,SAAA,EAAU;AACrD,QAAA,MAAM,OAAA,GAAU,QAAQ,GAAG,CAAA;AAC3B,QAAA,IAAI,OAAO,YAAY,QAAA,EAAU;AAC/B,UAAA,OAAA,CAAQ,GAAG,CAAA,GAAI,CAAC,OAAA,EAAS,KAAK,CAAA;AAAA,QAChC,CAAA,MAAA,IAAW,KAAA,CAAM,OAAA,CAAQ,OAAO,CAAA,EAAG;AACjC,UAAA,OAAA,CAAQ,KAAK,KAAK,CAAA;AAAA,QACpB,CAAA,MAAO;AACL,UAAA,OAAA,CAAQ,GAAG,CAAA,GAAI,KAAA;AAAA,QACjB;AAAA,MACF;AACA,MAAA,QAAA,CAAS,kCAAA,EAAoC,WAAW,OAAO,CAAA;AAC/D,MAAA,OAAA,EAAQ;AACR,MAAA,OAAA,CAAQ;AAAA,QACN,OAAA,EAAS;AAAA,UACP,UAAA;AAAA,UACA,UAAA;AAAA,UACA;AAAA,SACF;AAAA,QACA;AAAA,OACD,CAAA;AAAA,IACH;AAEA,IAAA,MAAA,CAAO,EAAA,CAAG,SAAS,OAAO,CAAA;AAC1B,IAAA,MAAA,CAAO,EAAA,CAAG,OAAO,KAAK,CAAA;AAEtB,IAAA,IAAA,EAAK;AAAA,EACP,CAAC,CAAA;AACH;;;;"}