@depup/sentry__node 10.75.2-depup.0 → 11.1.0-depup.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1237) hide show
  1. package/README.md +3 -12
  2. package/build/cjs/bundler-plugin/esbuild.js +19 -0
  3. package/build/cjs/bundler-plugin/esbuild.js.map +1 -0
  4. package/build/cjs/bundler-plugin/rollup.js +12 -0
  5. package/build/cjs/bundler-plugin/rollup.js.map +1 -0
  6. package/build/cjs/bundler-plugin/vite.js +12 -0
  7. package/build/cjs/bundler-plugin/vite.js.map +1 -0
  8. package/build/cjs/bundler-plugin/webpack.js +18 -0
  9. package/build/cjs/bundler-plugin/webpack.js.map +1 -0
  10. package/build/cjs/cron/common.js +52 -0
  11. package/build/cjs/cron/common.js.map +1 -0
  12. package/build/cjs/cron/cron.js +88 -0
  13. package/build/cjs/cron/cron.js.map +1 -0
  14. package/build/cjs/cron/index.js +14 -0
  15. package/build/cjs/cron/index.js.map +1 -0
  16. package/build/cjs/cron/node-cron.js +52 -0
  17. package/build/cjs/cron/node-cron.js.map +1 -0
  18. package/build/cjs/cron/node-schedule.js +41 -0
  19. package/build/cjs/cron/node-schedule.js.map +1 -0
  20. package/build/cjs/eve.js +31 -0
  21. package/build/cjs/eve.js.map +1 -0
  22. package/build/cjs/index.js +131 -129
  23. package/build/cjs/index.js.map +1 -1
  24. package/build/cjs/integrations/anr/index.js +167 -0
  25. package/build/cjs/integrations/anr/index.js.map +1 -0
  26. package/build/cjs/integrations/childProcess.js +57 -0
  27. package/build/cjs/integrations/childProcess.js.map +1 -0
  28. package/build/cjs/integrations/console.js +95 -0
  29. package/build/cjs/integrations/console.js.map +1 -0
  30. package/build/cjs/integrations/context.js +391 -0
  31. package/build/cjs/integrations/context.js.map +1 -0
  32. package/build/cjs/integrations/contextlines.js +251 -0
  33. package/build/cjs/integrations/contextlines.js.map +1 -0
  34. package/build/cjs/integrations/fs/index.js +1 -1
  35. package/build/cjs/integrations/fs/index.js.map +1 -1
  36. package/build/cjs/integrations/fs/vendored/constants.js.map +1 -1
  37. package/build/cjs/integrations/fs/vendored/instrumentation.js +4 -2
  38. package/build/cjs/integrations/fs/vendored/instrumentation.js.map +1 -1
  39. package/build/cjs/integrations/http/SentryHttpInstrumentation.js +62 -0
  40. package/build/cjs/integrations/http/SentryHttpInstrumentation.js.map +1 -0
  41. package/build/cjs/integrations/http/httpServerIntegration.js +78 -0
  42. package/build/cjs/integrations/http/httpServerIntegration.js.map +1 -0
  43. package/build/cjs/integrations/http/httpServerSpansIntegration.js +187 -0
  44. package/build/cjs/integrations/http/httpServerSpansIntegration.js.map +1 -0
  45. package/build/cjs/integrations/http/index.js +57 -0
  46. package/build/cjs/integrations/http/index.js.map +1 -0
  47. package/build/cjs/integrations/local-variables/common.js +20 -0
  48. package/build/cjs/integrations/local-variables/common.js.map +1 -0
  49. package/build/cjs/integrations/local-variables/index.js +10 -0
  50. package/build/cjs/integrations/local-variables/index.js.map +1 -0
  51. package/build/cjs/integrations/local-variables/local-variables-async.js +106 -0
  52. package/build/cjs/integrations/local-variables/local-variables-async.js.map +1 -0
  53. package/build/cjs/integrations/modules.js +98 -0
  54. package/build/cjs/integrations/modules.js.map +1 -0
  55. package/build/cjs/integrations/node-fetch/index.js +24 -0
  56. package/build/cjs/integrations/node-fetch/index.js.map +1 -0
  57. package/build/cjs/integrations/node-fetch/undici-instrumentation.js +268 -0
  58. package/build/cjs/integrations/node-fetch/undici-instrumentation.js.map +1 -0
  59. package/build/cjs/integrations/nodeRuntimeMetrics.js +182 -0
  60. package/build/cjs/integrations/nodeRuntimeMetrics.js.map +1 -0
  61. package/build/cjs/integrations/onuncaughtexception.js +92 -0
  62. package/build/cjs/integrations/onuncaughtexception.js.map +1 -0
  63. package/build/cjs/integrations/onunhandledrejection.js +94 -0
  64. package/build/cjs/integrations/onunhandledrejection.js.map +1 -0
  65. package/build/cjs/integrations/pino.js +115 -0
  66. package/build/cjs/integrations/pino.js.map +1 -0
  67. package/build/cjs/integrations/processSession.js +22 -0
  68. package/build/cjs/integrations/processSession.js.map +1 -0
  69. package/build/cjs/integrations/spotlight.js +79 -0
  70. package/build/cjs/integrations/spotlight.js.map +1 -0
  71. package/build/cjs/integrations/systemError.js +54 -0
  72. package/build/cjs/integrations/systemError.js.map +1 -0
  73. package/build/cjs/integrations/tracing/hapi.js +10 -0
  74. package/build/cjs/integrations/tracing/hapi.js.map +1 -0
  75. package/build/cjs/integrations/tracing/index.js +1 -92
  76. package/build/cjs/integrations/tracing/index.js.map +1 -1
  77. package/build/cjs/integrations/tracing/koa.js +10 -0
  78. package/build/cjs/integrations/tracing/koa.js.map +1 -0
  79. package/build/cjs/integrations/winston.js +84 -0
  80. package/build/cjs/integrations/winston.js.map +1 -0
  81. package/build/cjs/integrations/workerThreads.js +35 -0
  82. package/build/cjs/integrations/workerThreads.js.map +1 -0
  83. package/build/cjs/logs/capture.js +26 -0
  84. package/build/cjs/logs/capture.js.map +1 -0
  85. package/build/cjs/logs/exports.js +32 -0
  86. package/build/cjs/logs/exports.js.map +1 -0
  87. package/build/cjs/nodeVersion.js +10 -0
  88. package/build/cjs/nodeVersion.js.map +1 -0
  89. package/build/cjs/otel/logger.js +21 -0
  90. package/build/cjs/otel/logger.js.map +1 -0
  91. package/build/cjs/proxy/base.js +69 -0
  92. package/build/cjs/proxy/base.js.map +1 -0
  93. package/build/cjs/proxy/index.js +112 -0
  94. package/build/cjs/proxy/index.js.map +1 -0
  95. package/build/cjs/proxy/parse-proxy-response.js +88 -0
  96. package/build/cjs/proxy/parse-proxy-response.js.map +1 -0
  97. package/build/cjs/sdk/api.js +62 -0
  98. package/build/cjs/sdk/api.js.map +1 -0
  99. package/build/cjs/sdk/client.js +128 -0
  100. package/build/cjs/sdk/client.js.map +1 -0
  101. package/build/cjs/sdk/index.js +170 -45
  102. package/build/cjs/sdk/index.js.map +1 -1
  103. package/build/cjs/sdk/initOtel.js +9 -95
  104. package/build/cjs/sdk/initOtel.js.map +1 -1
  105. package/build/cjs/transports/http.js +109 -0
  106. package/build/cjs/transports/http.js.map +1 -0
  107. package/build/cjs/utils/debug.js +17 -0
  108. package/build/cjs/utils/debug.js.map +1 -0
  109. package/build/cjs/utils/entry-point.js +36 -0
  110. package/build/cjs/utils/entry-point.js.map +1 -0
  111. package/build/cjs/utils/errorhandling.js +39 -0
  112. package/build/cjs/utils/errorhandling.js.map +1 -0
  113. package/build/cjs/utils/module.js +37 -0
  114. package/build/cjs/utils/module.js.map +1 -0
  115. package/build/cjs/utils/outgoingFetchRequest.js +178 -0
  116. package/build/cjs/utils/outgoingFetchRequest.js.map +1 -0
  117. package/build/cjs/utils/spotlight.js +18 -0
  118. package/build/cjs/utils/spotlight.js.map +1 -0
  119. package/build/esm/bundler-plugin/esbuild.js +17 -0
  120. package/build/esm/bundler-plugin/esbuild.js.map +1 -0
  121. package/build/esm/bundler-plugin/rollup.js +10 -0
  122. package/build/esm/bundler-plugin/rollup.js.map +1 -0
  123. package/build/esm/bundler-plugin/vite.js +10 -0
  124. package/build/esm/bundler-plugin/vite.js.map +1 -0
  125. package/build/esm/bundler-plugin/webpack.js +16 -0
  126. package/build/esm/bundler-plugin/webpack.js.map +1 -0
  127. package/build/esm/cron/common.js +50 -0
  128. package/build/esm/cron/common.js.map +1 -0
  129. package/build/esm/cron/cron.js +86 -0
  130. package/build/esm/cron/cron.js.map +1 -0
  131. package/build/esm/cron/index.js +12 -0
  132. package/build/esm/cron/index.js.map +1 -0
  133. package/build/esm/cron/node-cron.js +50 -0
  134. package/build/esm/cron/node-cron.js.map +1 -0
  135. package/build/esm/cron/node-schedule.js +39 -0
  136. package/build/esm/cron/node-schedule.js.map +1 -0
  137. package/build/esm/eve.js +29 -0
  138. package/build/esm/eve.js.map +1 -0
  139. package/build/esm/index.js +37 -38
  140. package/build/esm/index.js.map +1 -1
  141. package/build/esm/integrations/anr/index.js +163 -0
  142. package/build/esm/integrations/anr/index.js.map +1 -0
  143. package/build/esm/integrations/anr/worker-script.js +2 -0
  144. package/build/esm/integrations/childProcess.js +55 -0
  145. package/build/esm/integrations/childProcess.js.map +1 -0
  146. package/build/esm/integrations/console.js +93 -0
  147. package/build/esm/integrations/console.js.map +1 -0
  148. package/build/esm/integrations/context.js +383 -0
  149. package/build/esm/integrations/context.js.map +1 -0
  150. package/build/esm/integrations/contextlines.js +245 -0
  151. package/build/esm/integrations/contextlines.js.map +1 -0
  152. package/build/esm/integrations/fs/index.js +1 -1
  153. package/build/esm/integrations/fs/index.js.map +1 -1
  154. package/build/esm/integrations/fs/vendored/constants.js.map +1 -1
  155. package/build/esm/integrations/fs/vendored/instrumentation.js +4 -2
  156. package/build/esm/integrations/fs/vendored/instrumentation.js.map +1 -1
  157. package/build/esm/integrations/http/SentryHttpInstrumentation.js +60 -0
  158. package/build/esm/integrations/http/SentryHttpInstrumentation.js.map +1 -0
  159. package/build/esm/integrations/http/httpServerIntegration.js +75 -0
  160. package/build/esm/integrations/http/httpServerIntegration.js.map +1 -0
  161. package/build/esm/integrations/http/httpServerSpansIntegration.js +184 -0
  162. package/build/esm/integrations/http/httpServerSpansIntegration.js.map +1 -0
  163. package/build/esm/integrations/http/index.js +55 -0
  164. package/build/esm/integrations/http/index.js.map +1 -0
  165. package/build/esm/integrations/local-variables/common.js +15 -0
  166. package/build/esm/integrations/local-variables/common.js.map +1 -0
  167. package/build/esm/integrations/local-variables/index.js +8 -0
  168. package/build/esm/integrations/local-variables/index.js.map +1 -0
  169. package/build/esm/integrations/local-variables/local-variables-async.js +103 -0
  170. package/build/esm/integrations/local-variables/local-variables-async.js.map +1 -0
  171. package/build/esm/integrations/local-variables/worker-script.js +2 -0
  172. package/build/esm/integrations/modules.js +57 -0
  173. package/build/esm/integrations/modules.js.map +1 -0
  174. package/build/esm/integrations/node-fetch/index.js +22 -0
  175. package/build/esm/integrations/node-fetch/index.js.map +1 -0
  176. package/build/esm/integrations/node-fetch/undici-instrumentation.js +266 -0
  177. package/build/esm/integrations/node-fetch/undici-instrumentation.js.map +1 -0
  178. package/build/esm/integrations/nodeRuntimeMetrics.js +179 -0
  179. package/build/esm/integrations/nodeRuntimeMetrics.js.map +1 -0
  180. package/build/esm/integrations/onuncaughtexception.js +89 -0
  181. package/build/esm/integrations/onuncaughtexception.js.map +1 -0
  182. package/build/esm/integrations/onunhandledrejection.js +91 -0
  183. package/build/esm/integrations/onunhandledrejection.js.map +1 -0
  184. package/build/esm/integrations/pino.js +113 -0
  185. package/build/esm/integrations/pino.js.map +1 -0
  186. package/build/esm/integrations/processSession.js +20 -0
  187. package/build/esm/integrations/processSession.js.map +1 -0
  188. package/build/esm/integrations/spotlight.js +76 -0
  189. package/build/esm/integrations/spotlight.js.map +1 -0
  190. package/build/esm/integrations/systemError.js +52 -0
  191. package/build/esm/integrations/systemError.js.map +1 -0
  192. package/build/esm/integrations/tracing/hapi.js +8 -0
  193. package/build/esm/integrations/tracing/hapi.js.map +1 -0
  194. package/build/esm/integrations/tracing/index.js +3 -93
  195. package/build/esm/integrations/tracing/index.js.map +1 -1
  196. package/build/esm/integrations/tracing/koa.js +8 -0
  197. package/build/esm/integrations/tracing/koa.js.map +1 -0
  198. package/build/esm/integrations/winston.js +82 -0
  199. package/build/esm/integrations/winston.js.map +1 -0
  200. package/build/esm/integrations/workerThreads.js +33 -0
  201. package/build/esm/integrations/workerThreads.js.map +1 -0
  202. package/build/esm/logs/capture.js +24 -0
  203. package/build/esm/logs/capture.js.map +1 -0
  204. package/build/esm/logs/exports.js +24 -0
  205. package/build/esm/logs/exports.js.map +1 -0
  206. package/build/esm/nodeVersion.js +8 -0
  207. package/build/esm/nodeVersion.js.map +1 -0
  208. package/build/esm/otel/logger.js +19 -0
  209. package/build/esm/otel/logger.js.map +1 -0
  210. package/build/esm/package.json +1 -1
  211. package/build/esm/proxy/base.js +67 -0
  212. package/build/esm/proxy/base.js.map +1 -0
  213. package/build/esm/proxy/index.js +110 -0
  214. package/build/esm/proxy/index.js.map +1 -0
  215. package/build/esm/proxy/parse-proxy-response.js +86 -0
  216. package/build/esm/proxy/parse-proxy-response.js.map +1 -0
  217. package/build/esm/sdk/api.js +59 -0
  218. package/build/esm/sdk/api.js.map +1 -0
  219. package/build/esm/sdk/client.js +126 -0
  220. package/build/esm/sdk/client.js.map +1 -0
  221. package/build/esm/sdk/index.js +172 -46
  222. package/build/esm/sdk/index.js.map +1 -1
  223. package/build/esm/sdk/initOtel.js +12 -96
  224. package/build/esm/sdk/initOtel.js.map +1 -1
  225. package/build/esm/transports/http.js +107 -0
  226. package/build/esm/transports/http.js.map +1 -0
  227. package/build/esm/utils/debug.js +15 -0
  228. package/build/esm/utils/debug.js.map +1 -0
  229. package/build/esm/utils/entry-point.js +33 -0
  230. package/build/esm/utils/entry-point.js.map +1 -0
  231. package/build/esm/utils/errorhandling.js +37 -0
  232. package/build/esm/utils/errorhandling.js.map +1 -0
  233. package/build/esm/utils/module.js +35 -0
  234. package/build/esm/utils/module.js.map +1 -0
  235. package/build/esm/utils/outgoingFetchRequest.js +174 -0
  236. package/build/esm/utils/outgoingFetchRequest.js.map +1 -0
  237. package/build/esm/utils/spotlight.js +16 -0
  238. package/build/esm/utils/spotlight.js.map +1 -0
  239. package/build/import-hook.mjs +1 -11
  240. package/build/types/bundler-plugin/esbuild.d.ts +33 -0
  241. package/build/types/bundler-plugin/esbuild.d.ts.map +1 -0
  242. package/build/types/bundler-plugin/rollup.d.ts +34 -0
  243. package/build/types/bundler-plugin/rollup.d.ts.map +1 -0
  244. package/build/types/bundler-plugin/vite.d.ts +35 -0
  245. package/build/types/bundler-plugin/vite.d.ts.map +1 -0
  246. package/build/types/bundler-plugin/webpack.d.ts +37 -0
  247. package/build/types/bundler-plugin/webpack.d.ts.map +1 -0
  248. package/build/types/cron/common.d.ts +5 -0
  249. package/build/types/cron/common.d.ts.map +1 -0
  250. package/build/types/cron/cron.d.ts +43 -0
  251. package/build/types/cron/cron.d.ts.map +1 -0
  252. package/build/types/cron/index.d.ts +10 -0
  253. package/build/types/cron/index.d.ts.map +1 -0
  254. package/build/types/cron/node-cron.d.ts +28 -0
  255. package/build/types/cron/node-cron.d.ts.map +1 -0
  256. package/build/types/cron/node-schedule.d.ts +19 -0
  257. package/build/types/cron/node-schedule.d.ts.map +1 -0
  258. package/build/types/eve.d.ts +60 -0
  259. package/build/types/eve.d.ts.map +1 -0
  260. package/build/types/index.d.ts +38 -36
  261. package/build/types/index.d.ts.map +1 -1
  262. package/build/types/integrations/anr/common.d.ts +79 -0
  263. package/build/types/integrations/anr/common.d.ts.map +1 -0
  264. package/build/types/integrations/anr/index.d.ts +60 -0
  265. package/build/types/integrations/anr/index.d.ts.map +1 -0
  266. package/build/types/integrations/anr/worker.d.ts +2 -0
  267. package/build/types/integrations/anr/worker.d.ts.map +1 -0
  268. package/build/types/integrations/childProcess.d.ts +17 -0
  269. package/build/types/integrations/childProcess.d.ts.map +1 -0
  270. package/build/types/integrations/console.d.ts +23 -0
  271. package/build/types/integrations/console.d.ts.map +1 -0
  272. package/build/types/integrations/context.d.ts +33 -0
  273. package/build/types/integrations/context.d.ts.map +1 -0
  274. package/build/types/integrations/contextlines.d.ts +35 -0
  275. package/build/types/integrations/contextlines.d.ts.map +1 -0
  276. package/build/types/integrations/featureFlagShims/openFeature.d.ts.map +1 -1
  277. package/build/types/integrations/fs/index.d.ts.map +1 -1
  278. package/build/types/integrations/fs/vendored/instrumentation.d.ts.map +1 -1
  279. package/build/types/integrations/http/SentryHttpInstrumentation.d.ts +48 -0
  280. package/build/types/integrations/http/SentryHttpInstrumentation.d.ts.map +1 -0
  281. package/build/types/integrations/http/httpServerIntegration.d.ts +68 -0
  282. package/build/types/integrations/http/httpServerIntegration.d.ts.map +1 -0
  283. package/build/types/integrations/http/httpServerSpansIntegration.d.ts +59 -0
  284. package/build/types/integrations/http/httpServerSpansIntegration.d.ts.map +1 -0
  285. package/build/types/integrations/http/index.d.ts +69 -0
  286. package/build/types/integrations/http/index.d.ts.map +1 -0
  287. package/build/types/integrations/local-variables/common.d.ts +79 -0
  288. package/build/types/integrations/local-variables/common.d.ts.map +1 -0
  289. package/build/types/integrations/local-variables/index.d.ts +4 -0
  290. package/build/types/integrations/local-variables/index.d.ts.map +1 -0
  291. package/build/types/integrations/local-variables/local-variables-async.d.ts +9 -0
  292. package/build/types/integrations/local-variables/local-variables-async.d.ts.map +1 -0
  293. package/build/types/integrations/local-variables/worker.d.ts +2 -0
  294. package/build/types/integrations/local-variables/worker.d.ts.map +1 -0
  295. package/build/types/integrations/modules.d.ts +17 -0
  296. package/build/types/integrations/modules.d.ts.map +1 -0
  297. package/build/types/integrations/node-fetch/index.d.ts +9 -0
  298. package/build/types/integrations/node-fetch/index.d.ts.map +1 -0
  299. package/build/types/integrations/node-fetch/types.d.ts +104 -0
  300. package/build/types/integrations/node-fetch/types.d.ts.map +1 -0
  301. package/build/types/integrations/node-fetch/undici-instrumentation.d.ts +17 -0
  302. package/build/types/integrations/node-fetch/undici-instrumentation.d.ts.map +1 -0
  303. package/build/types/integrations/nodeRuntimeMetrics.d.ts +66 -0
  304. package/build/types/integrations/nodeRuntimeMetrics.d.ts.map +1 -0
  305. package/build/types/integrations/onuncaughtexception.d.ts +33 -0
  306. package/build/types/integrations/onuncaughtexception.d.ts.map +1 -0
  307. package/build/types/integrations/onunhandledrejection.d.ts +22 -0
  308. package/build/types/integrations/onunhandledrejection.d.ts.map +1 -0
  309. package/build/types/integrations/pino.d.ts +61 -0
  310. package/build/types/integrations/pino.d.ts.map +1 -0
  311. package/build/types/integrations/processSession.d.ts +7 -0
  312. package/build/types/integrations/processSession.d.ts.map +1 -0
  313. package/build/types/integrations/spotlight.d.ts +18 -0
  314. package/build/types/integrations/spotlight.d.ts.map +1 -0
  315. package/build/types/integrations/systemError.d.ts +14 -0
  316. package/build/types/integrations/systemError.d.ts.map +1 -0
  317. package/build/types/integrations/tracing/hapi.d.ts +13 -0
  318. package/build/types/integrations/tracing/hapi.d.ts.map +1 -0
  319. package/build/types/integrations/tracing/index.d.ts +0 -9
  320. package/build/types/integrations/tracing/index.d.ts.map +1 -1
  321. package/build/types/integrations/tracing/koa.d.ts +27 -0
  322. package/build/types/integrations/tracing/koa.d.ts.map +1 -0
  323. package/build/types/integrations/winston.d.ts +55 -0
  324. package/build/types/integrations/winston.d.ts.map +1 -0
  325. package/build/types/integrations/workerThreads.d.ts +8 -0
  326. package/build/types/integrations/workerThreads.d.ts.map +1 -0
  327. package/build/types/logs/capture.d.ts +29 -0
  328. package/build/types/logs/capture.d.ts.map +1 -0
  329. package/build/types/logs/exports.d.ts +150 -0
  330. package/build/types/logs/exports.d.ts.map +1 -0
  331. package/build/types/nodeVersion.d.ts +8 -0
  332. package/build/types/nodeVersion.d.ts.map +1 -0
  333. package/build/types/otel/logger.d.ts +5 -0
  334. package/build/types/otel/logger.d.ts.map +1 -0
  335. package/build/types/proxy/base.d.ts +61 -0
  336. package/build/types/proxy/base.d.ts.map +1 -0
  337. package/build/types/proxy/helpers.d.ts +37 -0
  338. package/build/types/proxy/helpers.d.ts.map +1 -0
  339. package/build/types/proxy/index.d.ts +70 -0
  340. package/build/types/proxy/index.d.ts.map +1 -0
  341. package/build/types/proxy/parse-proxy-response.d.ts +39 -0
  342. package/build/types/proxy/parse-proxy-response.d.ts.map +1 -0
  343. package/build/types/sdk/api.d.ts +8 -0
  344. package/build/types/sdk/api.d.ts.map +1 -0
  345. package/build/types/sdk/client.d.ts +33 -0
  346. package/build/types/sdk/client.d.ts.map +1 -0
  347. package/build/types/sdk/index.d.ts +1 -19
  348. package/build/types/sdk/index.d.ts.map +1 -1
  349. package/build/types/sdk/initOtel.d.ts +4 -22
  350. package/build/types/sdk/initOtel.d.ts.map +1 -1
  351. package/build/types/sdk/scope.d.ts +7 -0
  352. package/build/types/sdk/scope.d.ts.map +1 -0
  353. package/build/types/transports/http-module.d.ts +27 -0
  354. package/build/types/transports/http-module.d.ts.map +1 -0
  355. package/build/types/transports/http.d.ts +17 -0
  356. package/build/types/transports/http.d.ts.map +1 -0
  357. package/build/types/transports/index.d.ts +3 -0
  358. package/build/types/transports/index.d.ts.map +1 -0
  359. package/build/types/types.d.ts +33 -37
  360. package/build/types/types.d.ts.map +1 -1
  361. package/build/types/utils/addOriginToSpan.d.ts +5 -0
  362. package/build/types/utils/addOriginToSpan.d.ts.map +1 -0
  363. package/build/types/utils/debug.d.ts +5 -0
  364. package/build/types/utils/debug.d.ts.map +1 -0
  365. package/build/types/utils/entry-point.d.ts +24 -0
  366. package/build/types/utils/entry-point.d.ts.map +1 -0
  367. package/build/types/utils/errorhandling.d.ts +5 -0
  368. package/build/types/utils/errorhandling.d.ts.map +1 -0
  369. package/build/types/utils/module.d.ts +3 -0
  370. package/build/types/utils/module.d.ts.map +1 -0
  371. package/build/types/utils/outgoingFetchRequest.d.ts +20 -0
  372. package/build/types/utils/outgoingFetchRequest.d.ts.map +1 -0
  373. package/build/types/utils/prepareEvent.d.ts +17 -0
  374. package/build/types/utils/prepareEvent.d.ts.map +1 -0
  375. package/build/types/utils/spotlight.d.ts +8 -0
  376. package/build/types/utils/spotlight.d.ts.map +1 -0
  377. package/changes.json +3 -20
  378. package/package.json +44 -53
  379. package/build/cjs/init.js +0 -4
  380. package/build/cjs/init.js.map +0 -1
  381. package/build/cjs/integrations/http.js +0 -69
  382. package/build/cjs/integrations/http.js.map +0 -1
  383. package/build/cjs/integrations/node-fetch.js +0 -24
  384. package/build/cjs/integrations/node-fetch.js.map +0 -1
  385. package/build/cjs/integrations/tracing/InstrumentationNodeModuleFile.js +0 -15
  386. package/build/cjs/integrations/tracing/InstrumentationNodeModuleFile.js.map +0 -1
  387. package/build/cjs/integrations/tracing/amqplib/index.js +0 -21
  388. package/build/cjs/integrations/tracing/amqplib/index.js.map +0 -1
  389. package/build/cjs/integrations/tracing/amqplib/vendored/instrumentation.js +0 -117
  390. package/build/cjs/integrations/tracing/amqplib/vendored/instrumentation.js.map +0 -1
  391. package/build/cjs/integrations/tracing/amqplib/vendored/patches.js +0 -185
  392. package/build/cjs/integrations/tracing/amqplib/vendored/patches.js.map +0 -1
  393. package/build/cjs/integrations/tracing/amqplib/vendored/semconv.js +0 -26
  394. package/build/cjs/integrations/tracing/amqplib/vendored/semconv.js.map +0 -1
  395. package/build/cjs/integrations/tracing/amqplib/vendored/types.js +0 -17
  396. package/build/cjs/integrations/tracing/amqplib/vendored/types.js.map +0 -1
  397. package/build/cjs/integrations/tracing/amqplib/vendored/utils.js +0 -129
  398. package/build/cjs/integrations/tracing/amqplib/vendored/utils.js.map +0 -1
  399. package/build/cjs/integrations/tracing/anthropic-ai/index.js +0 -24
  400. package/build/cjs/integrations/tracing/anthropic-ai/index.js.map +0 -1
  401. package/build/cjs/integrations/tracing/anthropic-ai/instrumentation.js +0 -72
  402. package/build/cjs/integrations/tracing/anthropic-ai/instrumentation.js.map +0 -1
  403. package/build/cjs/integrations/tracing/connect/index.js +0 -35
  404. package/build/cjs/integrations/tracing/connect/index.js.map +0 -1
  405. package/build/cjs/integrations/tracing/connect/vendored/enums/AttributeNames.js +0 -16
  406. package/build/cjs/integrations/tracing/connect/vendored/enums/AttributeNames.js.map +0 -1
  407. package/build/cjs/integrations/tracing/connect/vendored/instrumentation.js +0 -137
  408. package/build/cjs/integrations/tracing/connect/vendored/instrumentation.js.map +0 -1
  409. package/build/cjs/integrations/tracing/connect/vendored/internal-types.js +0 -8
  410. package/build/cjs/integrations/tracing/connect/vendored/internal-types.js.map +0 -1
  411. package/build/cjs/integrations/tracing/connect/vendored/utils.js +0 -36
  412. package/build/cjs/integrations/tracing/connect/vendored/utils.js.map +0 -1
  413. package/build/cjs/integrations/tracing/dataloader/index.js +0 -26
  414. package/build/cjs/integrations/tracing/dataloader/index.js.map +0 -1
  415. package/build/cjs/integrations/tracing/dataloader/vendored/instrumentation.js +0 -227
  416. package/build/cjs/integrations/tracing/dataloader/vendored/instrumentation.js.map +0 -1
  417. package/build/cjs/integrations/tracing/express.js +0 -67
  418. package/build/cjs/integrations/tracing/express.js.map +0 -1
  419. package/build/cjs/integrations/tracing/fastify/index.js +0 -55
  420. package/build/cjs/integrations/tracing/fastify/index.js.map +0 -1
  421. package/build/cjs/integrations/tracing/fastify/v3/constants.js +0 -6
  422. package/build/cjs/integrations/tracing/fastify/v3/constants.js.map +0 -1
  423. package/build/cjs/integrations/tracing/fastify/v3/enums/AttributeNames.js +0 -24
  424. package/build/cjs/integrations/tracing/fastify/v3/enums/AttributeNames.js.map +0 -1
  425. package/build/cjs/integrations/tracing/fastify/v3/instrumentation.js +0 -220
  426. package/build/cjs/integrations/tracing/fastify/v3/instrumentation.js.map +0 -1
  427. package/build/cjs/integrations/tracing/fastify/v3/utils.js +0 -64
  428. package/build/cjs/integrations/tracing/fastify/v3/utils.js.map +0 -1
  429. package/build/cjs/integrations/tracing/firebase/firebase.js +0 -21
  430. package/build/cjs/integrations/tracing/firebase/firebase.js.map +0 -1
  431. package/build/cjs/integrations/tracing/firebase/otel/firebaseInstrumentation.js +0 -28
  432. package/build/cjs/integrations/tracing/firebase/otel/firebaseInstrumentation.js.map +0 -1
  433. package/build/cjs/integrations/tracing/firebase/otel/patches/firestore.js +0 -155
  434. package/build/cjs/integrations/tracing/firebase/otel/patches/firestore.js.map +0 -1
  435. package/build/cjs/integrations/tracing/firebase/otel/patches/functions.js +0 -141
  436. package/build/cjs/integrations/tracing/firebase/otel/patches/functions.js.map +0 -1
  437. package/build/cjs/integrations/tracing/genericPool/index.js +0 -21
  438. package/build/cjs/integrations/tracing/genericPool/index.js.map +0 -1
  439. package/build/cjs/integrations/tracing/genericPool/vendored/instrumentation.js +0 -122
  440. package/build/cjs/integrations/tracing/genericPool/vendored/instrumentation.js.map +0 -1
  441. package/build/cjs/integrations/tracing/google-genai/index.js +0 -23
  442. package/build/cjs/integrations/tracing/google-genai/index.js.map +0 -1
  443. package/build/cjs/integrations/tracing/google-genai/instrumentation.js +0 -68
  444. package/build/cjs/integrations/tracing/google-genai/instrumentation.js.map +0 -1
  445. package/build/cjs/integrations/tracing/graphql/index.js +0 -34
  446. package/build/cjs/integrations/tracing/graphql/index.js.map +0 -1
  447. package/build/cjs/integrations/tracing/graphql/vendored/enum.js +0 -47
  448. package/build/cjs/integrations/tracing/graphql/vendored/enum.js.map +0 -1
  449. package/build/cjs/integrations/tracing/graphql/vendored/enums/AttributeNames.js +0 -15
  450. package/build/cjs/integrations/tracing/graphql/vendored/enums/AttributeNames.js.map +0 -1
  451. package/build/cjs/integrations/tracing/graphql/vendored/instrumentation.js +0 -329
  452. package/build/cjs/integrations/tracing/graphql/vendored/instrumentation.js.map +0 -1
  453. package/build/cjs/integrations/tracing/graphql/vendored/internal-types.js +0 -6
  454. package/build/cjs/integrations/tracing/graphql/vendored/internal-types.js.map +0 -1
  455. package/build/cjs/integrations/tracing/graphql/vendored/symbols.js +0 -8
  456. package/build/cjs/integrations/tracing/graphql/vendored/symbols.js.map +0 -1
  457. package/build/cjs/integrations/tracing/graphql/vendored/utils.js +0 -265
  458. package/build/cjs/integrations/tracing/graphql/vendored/utils.js.map +0 -1
  459. package/build/cjs/integrations/tracing/hapi/index.js +0 -60
  460. package/build/cjs/integrations/tracing/hapi/index.js.map +0 -1
  461. package/build/cjs/integrations/tracing/hapi/vendored/enums/AttributeNames.js +0 -11
  462. package/build/cjs/integrations/tracing/hapi/vendored/enums/AttributeNames.js.map +0 -1
  463. package/build/cjs/integrations/tracing/hapi/vendored/instrumentation.js +0 -255
  464. package/build/cjs/integrations/tracing/hapi/vendored/instrumentation.js.map +0 -1
  465. package/build/cjs/integrations/tracing/hapi/vendored/internal-types.js +0 -24
  466. package/build/cjs/integrations/tracing/hapi/vendored/internal-types.js.map +0 -1
  467. package/build/cjs/integrations/tracing/hapi/vendored/utils.js +0 -85
  468. package/build/cjs/integrations/tracing/hapi/vendored/utils.js.map +0 -1
  469. package/build/cjs/integrations/tracing/hono/constants.js +0 -14
  470. package/build/cjs/integrations/tracing/hono/constants.js.map +0 -1
  471. package/build/cjs/integrations/tracing/hono/index.js +0 -86
  472. package/build/cjs/integrations/tracing/hono/index.js.map +0 -1
  473. package/build/cjs/integrations/tracing/hono/instrumentation.js +0 -201
  474. package/build/cjs/integrations/tracing/hono/instrumentation.js.map +0 -1
  475. package/build/cjs/integrations/tracing/kafka/index.js +0 -21
  476. package/build/cjs/integrations/tracing/kafka/index.js.map +0 -1
  477. package/build/cjs/integrations/tracing/kafka/vendored/instrumentation.js +0 -237
  478. package/build/cjs/integrations/tracing/kafka/vendored/instrumentation.js.map +0 -1
  479. package/build/cjs/integrations/tracing/kafka/vendored/semconv.js +0 -22
  480. package/build/cjs/integrations/tracing/kafka/vendored/semconv.js.map +0 -1
  481. package/build/cjs/integrations/tracing/kafka/vendored/utils.js +0 -114
  482. package/build/cjs/integrations/tracing/kafka/vendored/utils.js.map +0 -1
  483. package/build/cjs/integrations/tracing/knex/index.js +0 -26
  484. package/build/cjs/integrations/tracing/knex/index.js.map +0 -1
  485. package/build/cjs/integrations/tracing/knex/vendored/instrumentation.js +0 -135
  486. package/build/cjs/integrations/tracing/knex/vendored/instrumentation.js.map +0 -1
  487. package/build/cjs/integrations/tracing/knex/vendored/semconv.js +0 -10
  488. package/build/cjs/integrations/tracing/knex/vendored/semconv.js.map +0 -1
  489. package/build/cjs/integrations/tracing/knex/vendored/utils.js +0 -84
  490. package/build/cjs/integrations/tracing/knex/vendored/utils.js.map +0 -1
  491. package/build/cjs/integrations/tracing/koa/index.js +0 -46
  492. package/build/cjs/integrations/tracing/koa/index.js.map +0 -1
  493. package/build/cjs/integrations/tracing/koa/vendored/enums/AttributeNames.js +0 -10
  494. package/build/cjs/integrations/tracing/koa/vendored/enums/AttributeNames.js.map +0 -1
  495. package/build/cjs/integrations/tracing/koa/vendored/instrumentation.js +0 -127
  496. package/build/cjs/integrations/tracing/koa/vendored/instrumentation.js.map +0 -1
  497. package/build/cjs/integrations/tracing/koa/vendored/internal-types.js +0 -6
  498. package/build/cjs/integrations/tracing/koa/vendored/internal-types.js.map +0 -1
  499. package/build/cjs/integrations/tracing/koa/vendored/types.js +0 -10
  500. package/build/cjs/integrations/tracing/koa/vendored/types.js.map +0 -1
  501. package/build/cjs/integrations/tracing/koa/vendored/utils.js +0 -36
  502. package/build/cjs/integrations/tracing/koa/vendored/utils.js.map +0 -1
  503. package/build/cjs/integrations/tracing/langchain/index.js +0 -23
  504. package/build/cjs/integrations/tracing/langchain/index.js.map +0 -1
  505. package/build/cjs/integrations/tracing/langchain/instrumentation.js +0 -160
  506. package/build/cjs/integrations/tracing/langchain/instrumentation.js.map +0 -1
  507. package/build/cjs/integrations/tracing/langgraph/index.js +0 -23
  508. package/build/cjs/integrations/tracing/langgraph/index.js.map +0 -1
  509. package/build/cjs/integrations/tracing/langgraph/instrumentation.js +0 -96
  510. package/build/cjs/integrations/tracing/langgraph/instrumentation.js.map +0 -1
  511. package/build/cjs/integrations/tracing/lrumemoizer/index.js +0 -21
  512. package/build/cjs/integrations/tracing/lrumemoizer/index.js.map +0 -1
  513. package/build/cjs/integrations/tracing/lrumemoizer/vendored/instrumentation.js +0 -38
  514. package/build/cjs/integrations/tracing/lrumemoizer/vendored/instrumentation.js.map +0 -1
  515. package/build/cjs/integrations/tracing/mongo/index.js +0 -21
  516. package/build/cjs/integrations/tracing/mongo/index.js.map +0 -1
  517. package/build/cjs/integrations/tracing/mongo/vendored/instrumentation.js +0 -129
  518. package/build/cjs/integrations/tracing/mongo/vendored/instrumentation.js.map +0 -1
  519. package/build/cjs/integrations/tracing/mongo/vendored/patches.js +0 -150
  520. package/build/cjs/integrations/tracing/mongo/vendored/patches.js.map +0 -1
  521. package/build/cjs/integrations/tracing/mongo/vendored/utils.js +0 -40
  522. package/build/cjs/integrations/tracing/mongo/vendored/utils.js.map +0 -1
  523. package/build/cjs/integrations/tracing/mongoose/index.js +0 -22
  524. package/build/cjs/integrations/tracing/mongoose/index.js.map +0 -1
  525. package/build/cjs/integrations/tracing/mongoose/vendored/mongoose.js +0 -240
  526. package/build/cjs/integrations/tracing/mongoose/vendored/mongoose.js.map +0 -1
  527. package/build/cjs/integrations/tracing/mongoose/vendored/utils.js +0 -41
  528. package/build/cjs/integrations/tracing/mongoose/vendored/utils.js.map +0 -1
  529. package/build/cjs/integrations/tracing/mysql/index.js +0 -21
  530. package/build/cjs/integrations/tracing/mysql/index.js.map +0 -1
  531. package/build/cjs/integrations/tracing/mysql/vendored/instrumentation.js +0 -185
  532. package/build/cjs/integrations/tracing/mysql/vendored/instrumentation.js.map +0 -1
  533. package/build/cjs/integrations/tracing/mysql/vendored/semconv.js +0 -8
  534. package/build/cjs/integrations/tracing/mysql/vendored/semconv.js.map +0 -1
  535. package/build/cjs/integrations/tracing/mysql/vendored/utils.js +0 -38
  536. package/build/cjs/integrations/tracing/mysql/vendored/utils.js.map +0 -1
  537. package/build/cjs/integrations/tracing/mysql2/index.js +0 -22
  538. package/build/cjs/integrations/tracing/mysql2/index.js.map +0 -1
  539. package/build/cjs/integrations/tracing/mysql2/vendored/instrumentation.js +0 -138
  540. package/build/cjs/integrations/tracing/mysql2/vendored/instrumentation.js.map +0 -1
  541. package/build/cjs/integrations/tracing/mysql2/vendored/semconv.js +0 -8
  542. package/build/cjs/integrations/tracing/mysql2/vendored/semconv.js.map +0 -1
  543. package/build/cjs/integrations/tracing/mysql2/vendored/utils.js +0 -81
  544. package/build/cjs/integrations/tracing/mysql2/vendored/utils.js.map +0 -1
  545. package/build/cjs/integrations/tracing/openai/index.js +0 -23
  546. package/build/cjs/integrations/tracing/openai/index.js.map +0 -1
  547. package/build/cjs/integrations/tracing/openai/instrumentation.js +0 -80
  548. package/build/cjs/integrations/tracing/openai/instrumentation.js.map +0 -1
  549. package/build/cjs/integrations/tracing/postgres/index.js +0 -27
  550. package/build/cjs/integrations/tracing/postgres/index.js.map +0 -1
  551. package/build/cjs/integrations/tracing/postgres/vendored/enums/AttributeNames.js +0 -11
  552. package/build/cjs/integrations/tracing/postgres/vendored/enums/AttributeNames.js.map +0 -1
  553. package/build/cjs/integrations/tracing/postgres/vendored/enums/SpanNames.js +0 -11
  554. package/build/cjs/integrations/tracing/postgres/vendored/enums/SpanNames.js.map +0 -1
  555. package/build/cjs/integrations/tracing/postgres/vendored/instrumentation.js +0 -225
  556. package/build/cjs/integrations/tracing/postgres/vendored/instrumentation.js.map +0 -1
  557. package/build/cjs/integrations/tracing/postgres/vendored/semconv.js +0 -8
  558. package/build/cjs/integrations/tracing/postgres/vendored/semconv.js.map +0 -1
  559. package/build/cjs/integrations/tracing/postgres/vendored/utils.js +0 -151
  560. package/build/cjs/integrations/tracing/postgres/vendored/utils.js.map +0 -1
  561. package/build/cjs/integrations/tracing/postgresjs.js +0 -265
  562. package/build/cjs/integrations/tracing/postgresjs.js.map +0 -1
  563. package/build/cjs/integrations/tracing/redis/cache.js +0 -41
  564. package/build/cjs/integrations/tracing/redis/cache.js.map +0 -1
  565. package/build/cjs/integrations/tracing/redis/index.js +0 -50
  566. package/build/cjs/integrations/tracing/redis/index.js.map +0 -1
  567. package/build/cjs/integrations/tracing/redis/vendored/ioredis-instrumentation.js +0 -147
  568. package/build/cjs/integrations/tracing/redis/vendored/ioredis-instrumentation.js.map +0 -1
  569. package/build/cjs/integrations/tracing/redis/vendored/redis-instrumentation.js +0 -445
  570. package/build/cjs/integrations/tracing/redis/vendored/redis-instrumentation.js.map +0 -1
  571. package/build/cjs/integrations/tracing/redis/vendored/semconv.js +0 -8
  572. package/build/cjs/integrations/tracing/redis/vendored/semconv.js.map +0 -1
  573. package/build/cjs/integrations/tracing/tedious/index.js +0 -21
  574. package/build/cjs/integrations/tracing/tedious/index.js.map +0 -1
  575. package/build/cjs/integrations/tracing/tedious/vendored/instrumentation.js +0 -154
  576. package/build/cjs/integrations/tracing/tedious/vendored/instrumentation.js.map +0 -1
  577. package/build/cjs/integrations/tracing/tedious/vendored/semconv.js +0 -8
  578. package/build/cjs/integrations/tracing/tedious/vendored/semconv.js.map +0 -1
  579. package/build/cjs/integrations/tracing/tedious/vendored/utils.js +0 -29
  580. package/build/cjs/integrations/tracing/tedious/vendored/utils.js.map +0 -1
  581. package/build/cjs/integrations/tracing/vercelai/constants.js +0 -6
  582. package/build/cjs/integrations/tracing/vercelai/constants.js.map +0 -1
  583. package/build/cjs/integrations/tracing/vercelai/index.js +0 -36
  584. package/build/cjs/integrations/tracing/vercelai/index.js.map +0 -1
  585. package/build/cjs/integrations/tracing/vercelai/instrumentation.js +0 -179
  586. package/build/cjs/integrations/tracing/vercelai/instrumentation.js.map +0 -1
  587. package/build/cjs/preload.js +0 -8
  588. package/build/cjs/preload.js.map +0 -1
  589. package/build/cjs/sdk/diagnosticsChannelInjection.js +0 -21
  590. package/build/cjs/sdk/diagnosticsChannelInjection.js.map +0 -1
  591. package/build/cjs/sdk/experimentalUseDiagnosticsChannelInjection.js +0 -33
  592. package/build/cjs/sdk/experimentalUseDiagnosticsChannelInjection.js.map +0 -1
  593. package/build/cjs/utils/redisCache.js +0 -98
  594. package/build/cjs/utils/redisCache.js.map +0 -1
  595. package/build/cjs/utils/setHttpServerSpanRouteAttribute.js +0 -21
  596. package/build/cjs/utils/setHttpServerSpanRouteAttribute.js.map +0 -1
  597. package/build/esm/init.js +0 -4
  598. package/build/esm/init.js.map +0 -1
  599. package/build/esm/integrations/http.js +0 -66
  600. package/build/esm/integrations/http.js.map +0 -1
  601. package/build/esm/integrations/node-fetch.js +0 -22
  602. package/build/esm/integrations/node-fetch.js.map +0 -1
  603. package/build/esm/integrations/tracing/InstrumentationNodeModuleFile.js +0 -13
  604. package/build/esm/integrations/tracing/InstrumentationNodeModuleFile.js.map +0 -1
  605. package/build/esm/integrations/tracing/amqplib/index.js +0 -18
  606. package/build/esm/integrations/tracing/amqplib/index.js.map +0 -1
  607. package/build/esm/integrations/tracing/amqplib/vendored/instrumentation.js +0 -115
  608. package/build/esm/integrations/tracing/amqplib/vendored/instrumentation.js.map +0 -1
  609. package/build/esm/integrations/tracing/amqplib/vendored/patches.js +0 -177
  610. package/build/esm/integrations/tracing/amqplib/vendored/patches.js.map +0 -1
  611. package/build/esm/integrations/tracing/amqplib/vendored/semconv.js +0 -14
  612. package/build/esm/integrations/tracing/amqplib/vendored/semconv.js.map +0 -1
  613. package/build/esm/integrations/tracing/amqplib/vendored/types.js +0 -15
  614. package/build/esm/integrations/tracing/amqplib/vendored/types.js.map +0 -1
  615. package/build/esm/integrations/tracing/amqplib/vendored/utils.js +0 -117
  616. package/build/esm/integrations/tracing/amqplib/vendored/utils.js.map +0 -1
  617. package/build/esm/integrations/tracing/anthropic-ai/index.js +0 -21
  618. package/build/esm/integrations/tracing/anthropic-ai/index.js.map +0 -1
  619. package/build/esm/integrations/tracing/anthropic-ai/instrumentation.js +0 -70
  620. package/build/esm/integrations/tracing/anthropic-ai/instrumentation.js.map +0 -1
  621. package/build/esm/integrations/tracing/connect/index.js +0 -31
  622. package/build/esm/integrations/tracing/connect/index.js.map +0 -1
  623. package/build/esm/integrations/tracing/connect/vendored/enums/AttributeNames.js +0 -13
  624. package/build/esm/integrations/tracing/connect/vendored/enums/AttributeNames.js.map +0 -1
  625. package/build/esm/integrations/tracing/connect/vendored/instrumentation.js +0 -135
  626. package/build/esm/integrations/tracing/connect/vendored/instrumentation.js.map +0 -1
  627. package/build/esm/integrations/tracing/connect/vendored/internal-types.js +0 -6
  628. package/build/esm/integrations/tracing/connect/vendored/internal-types.js.map +0 -1
  629. package/build/esm/integrations/tracing/connect/vendored/utils.js +0 -32
  630. package/build/esm/integrations/tracing/connect/vendored/utils.js.map +0 -1
  631. package/build/esm/integrations/tracing/dataloader/index.js +0 -23
  632. package/build/esm/integrations/tracing/dataloader/index.js.map +0 -1
  633. package/build/esm/integrations/tracing/dataloader/vendored/instrumentation.js +0 -225
  634. package/build/esm/integrations/tracing/dataloader/vendored/instrumentation.js.map +0 -1
  635. package/build/esm/integrations/tracing/express.js +0 -62
  636. package/build/esm/integrations/tracing/express.js.map +0 -1
  637. package/build/esm/integrations/tracing/fastify/index.js +0 -51
  638. package/build/esm/integrations/tracing/fastify/index.js.map +0 -1
  639. package/build/esm/integrations/tracing/fastify/v3/constants.js +0 -4
  640. package/build/esm/integrations/tracing/fastify/v3/constants.js.map +0 -1
  641. package/build/esm/integrations/tracing/fastify/v3/enums/AttributeNames.js +0 -20
  642. package/build/esm/integrations/tracing/fastify/v3/enums/AttributeNames.js.map +0 -1
  643. package/build/esm/integrations/tracing/fastify/v3/instrumentation.js +0 -218
  644. package/build/esm/integrations/tracing/fastify/v3/instrumentation.js.map +0 -1
  645. package/build/esm/integrations/tracing/fastify/v3/utils.js +0 -60
  646. package/build/esm/integrations/tracing/fastify/v3/utils.js.map +0 -1
  647. package/build/esm/integrations/tracing/firebase/firebase.js +0 -18
  648. package/build/esm/integrations/tracing/firebase/firebase.js.map +0 -1
  649. package/build/esm/integrations/tracing/firebase/otel/firebaseInstrumentation.js +0 -26
  650. package/build/esm/integrations/tracing/firebase/otel/firebaseInstrumentation.js.map +0 -1
  651. package/build/esm/integrations/tracing/firebase/otel/patches/firestore.js +0 -152
  652. package/build/esm/integrations/tracing/firebase/otel/patches/firestore.js.map +0 -1
  653. package/build/esm/integrations/tracing/firebase/otel/patches/functions.js +0 -138
  654. package/build/esm/integrations/tracing/firebase/otel/patches/functions.js.map +0 -1
  655. package/build/esm/integrations/tracing/genericPool/index.js +0 -18
  656. package/build/esm/integrations/tracing/genericPool/index.js.map +0 -1
  657. package/build/esm/integrations/tracing/genericPool/vendored/instrumentation.js +0 -120
  658. package/build/esm/integrations/tracing/genericPool/vendored/instrumentation.js.map +0 -1
  659. package/build/esm/integrations/tracing/google-genai/index.js +0 -20
  660. package/build/esm/integrations/tracing/google-genai/index.js.map +0 -1
  661. package/build/esm/integrations/tracing/google-genai/instrumentation.js +0 -66
  662. package/build/esm/integrations/tracing/google-genai/instrumentation.js.map +0 -1
  663. package/build/esm/integrations/tracing/graphql/index.js +0 -31
  664. package/build/esm/integrations/tracing/graphql/index.js.map +0 -1
  665. package/build/esm/integrations/tracing/graphql/vendored/enum.js +0 -43
  666. package/build/esm/integrations/tracing/graphql/vendored/enum.js.map +0 -1
  667. package/build/esm/integrations/tracing/graphql/vendored/enums/AttributeNames.js +0 -13
  668. package/build/esm/integrations/tracing/graphql/vendored/enums/AttributeNames.js.map +0 -1
  669. package/build/esm/integrations/tracing/graphql/vendored/instrumentation.js +0 -327
  670. package/build/esm/integrations/tracing/graphql/vendored/instrumentation.js.map +0 -1
  671. package/build/esm/integrations/tracing/graphql/vendored/internal-types.js +0 -4
  672. package/build/esm/integrations/tracing/graphql/vendored/internal-types.js.map +0 -1
  673. package/build/esm/integrations/tracing/graphql/vendored/symbols.js +0 -5
  674. package/build/esm/integrations/tracing/graphql/vendored/symbols.js.map +0 -1
  675. package/build/esm/integrations/tracing/graphql/vendored/utils.js +0 -257
  676. package/build/esm/integrations/tracing/graphql/vendored/utils.js.map +0 -1
  677. package/build/esm/integrations/tracing/hapi/index.js +0 -55
  678. package/build/esm/integrations/tracing/hapi/index.js.map +0 -1
  679. package/build/esm/integrations/tracing/hapi/vendored/enums/AttributeNames.js +0 -9
  680. package/build/esm/integrations/tracing/hapi/vendored/enums/AttributeNames.js.map +0 -1
  681. package/build/esm/integrations/tracing/hapi/vendored/instrumentation.js +0 -253
  682. package/build/esm/integrations/tracing/hapi/vendored/instrumentation.js.map +0 -1
  683. package/build/esm/integrations/tracing/hapi/vendored/internal-types.js +0 -19
  684. package/build/esm/integrations/tracing/hapi/vendored/internal-types.js.map +0 -1
  685. package/build/esm/integrations/tracing/hapi/vendored/utils.js +0 -76
  686. package/build/esm/integrations/tracing/hapi/vendored/utils.js.map +0 -1
  687. package/build/esm/integrations/tracing/hono/constants.js +0 -11
  688. package/build/esm/integrations/tracing/hono/constants.js.map +0 -1
  689. package/build/esm/integrations/tracing/hono/index.js +0 -82
  690. package/build/esm/integrations/tracing/hono/index.js.map +0 -1
  691. package/build/esm/integrations/tracing/hono/instrumentation.js +0 -199
  692. package/build/esm/integrations/tracing/hono/instrumentation.js.map +0 -1
  693. package/build/esm/integrations/tracing/kafka/index.js +0 -18
  694. package/build/esm/integrations/tracing/kafka/index.js.map +0 -1
  695. package/build/esm/integrations/tracing/kafka/vendored/instrumentation.js +0 -235
  696. package/build/esm/integrations/tracing/kafka/vendored/instrumentation.js.map +0 -1
  697. package/build/esm/integrations/tracing/kafka/vendored/semconv.js +0 -12
  698. package/build/esm/integrations/tracing/kafka/vendored/semconv.js.map +0 -1
  699. package/build/esm/integrations/tracing/kafka/vendored/utils.js +0 -108
  700. package/build/esm/integrations/tracing/kafka/vendored/utils.js.map +0 -1
  701. package/build/esm/integrations/tracing/knex/index.js +0 -23
  702. package/build/esm/integrations/tracing/knex/index.js.map +0 -1
  703. package/build/esm/integrations/tracing/knex/vendored/instrumentation.js +0 -133
  704. package/build/esm/integrations/tracing/knex/vendored/instrumentation.js.map +0 -1
  705. package/build/esm/integrations/tracing/knex/vendored/semconv.js +0 -6
  706. package/build/esm/integrations/tracing/knex/vendored/semconv.js.map +0 -1
  707. package/build/esm/integrations/tracing/knex/vendored/utils.js +0 -75
  708. package/build/esm/integrations/tracing/knex/vendored/utils.js.map +0 -1
  709. package/build/esm/integrations/tracing/koa/index.js +0 -42
  710. package/build/esm/integrations/tracing/koa/index.js.map +0 -1
  711. package/build/esm/integrations/tracing/koa/vendored/enums/AttributeNames.js +0 -8
  712. package/build/esm/integrations/tracing/koa/vendored/enums/AttributeNames.js.map +0 -1
  713. package/build/esm/integrations/tracing/koa/vendored/instrumentation.js +0 -125
  714. package/build/esm/integrations/tracing/koa/vendored/instrumentation.js.map +0 -1
  715. package/build/esm/integrations/tracing/koa/vendored/internal-types.js +0 -4
  716. package/build/esm/integrations/tracing/koa/vendored/internal-types.js.map +0 -1
  717. package/build/esm/integrations/tracing/koa/vendored/types.js +0 -8
  718. package/build/esm/integrations/tracing/koa/vendored/types.js.map +0 -1
  719. package/build/esm/integrations/tracing/koa/vendored/utils.js +0 -33
  720. package/build/esm/integrations/tracing/koa/vendored/utils.js.map +0 -1
  721. package/build/esm/integrations/tracing/langchain/index.js +0 -20
  722. package/build/esm/integrations/tracing/langchain/index.js.map +0 -1
  723. package/build/esm/integrations/tracing/langchain/instrumentation.js +0 -158
  724. package/build/esm/integrations/tracing/langchain/instrumentation.js.map +0 -1
  725. package/build/esm/integrations/tracing/langgraph/index.js +0 -20
  726. package/build/esm/integrations/tracing/langgraph/index.js.map +0 -1
  727. package/build/esm/integrations/tracing/langgraph/instrumentation.js +0 -94
  728. package/build/esm/integrations/tracing/langgraph/instrumentation.js.map +0 -1
  729. package/build/esm/integrations/tracing/lrumemoizer/index.js +0 -18
  730. package/build/esm/integrations/tracing/lrumemoizer/index.js.map +0 -1
  731. package/build/esm/integrations/tracing/lrumemoizer/vendored/instrumentation.js +0 -36
  732. package/build/esm/integrations/tracing/lrumemoizer/vendored/instrumentation.js.map +0 -1
  733. package/build/esm/integrations/tracing/mongo/index.js +0 -18
  734. package/build/esm/integrations/tracing/mongo/index.js.map +0 -1
  735. package/build/esm/integrations/tracing/mongo/vendored/instrumentation.js +0 -127
  736. package/build/esm/integrations/tracing/mongo/vendored/instrumentation.js.map +0 -1
  737. package/build/esm/integrations/tracing/mongo/vendored/patches.js +0 -142
  738. package/build/esm/integrations/tracing/mongo/vendored/patches.js.map +0 -1
  739. package/build/esm/integrations/tracing/mongo/vendored/utils.js +0 -34
  740. package/build/esm/integrations/tracing/mongo/vendored/utils.js.map +0 -1
  741. package/build/esm/integrations/tracing/mongoose/index.js +0 -19
  742. package/build/esm/integrations/tracing/mongoose/index.js.map +0 -1
  743. package/build/esm/integrations/tracing/mongoose/vendored/mongoose.js +0 -236
  744. package/build/esm/integrations/tracing/mongoose/vendored/mongoose.js.map +0 -1
  745. package/build/esm/integrations/tracing/mongoose/vendored/utils.js +0 -38
  746. package/build/esm/integrations/tracing/mongoose/vendored/utils.js.map +0 -1
  747. package/build/esm/integrations/tracing/mysql/index.js +0 -18
  748. package/build/esm/integrations/tracing/mysql/index.js.map +0 -1
  749. package/build/esm/integrations/tracing/mysql/vendored/instrumentation.js +0 -183
  750. package/build/esm/integrations/tracing/mysql/vendored/instrumentation.js.map +0 -1
  751. package/build/esm/integrations/tracing/mysql/vendored/semconv.js +0 -5
  752. package/build/esm/integrations/tracing/mysql/vendored/semconv.js.map +0 -1
  753. package/build/esm/integrations/tracing/mysql/vendored/utils.js +0 -33
  754. package/build/esm/integrations/tracing/mysql/vendored/utils.js.map +0 -1
  755. package/build/esm/integrations/tracing/mysql2/index.js +0 -19
  756. package/build/esm/integrations/tracing/mysql2/index.js.map +0 -1
  757. package/build/esm/integrations/tracing/mysql2/vendored/instrumentation.js +0 -136
  758. package/build/esm/integrations/tracing/mysql2/vendored/instrumentation.js.map +0 -1
  759. package/build/esm/integrations/tracing/mysql2/vendored/semconv.js +0 -5
  760. package/build/esm/integrations/tracing/mysql2/vendored/semconv.js.map +0 -1
  761. package/build/esm/integrations/tracing/mysql2/vendored/utils.js +0 -75
  762. package/build/esm/integrations/tracing/mysql2/vendored/utils.js.map +0 -1
  763. package/build/esm/integrations/tracing/openai/index.js +0 -20
  764. package/build/esm/integrations/tracing/openai/index.js.map +0 -1
  765. package/build/esm/integrations/tracing/openai/instrumentation.js +0 -78
  766. package/build/esm/integrations/tracing/openai/instrumentation.js.map +0 -1
  767. package/build/esm/integrations/tracing/postgres/index.js +0 -24
  768. package/build/esm/integrations/tracing/postgres/index.js.map +0 -1
  769. package/build/esm/integrations/tracing/postgres/vendored/enums/AttributeNames.js +0 -9
  770. package/build/esm/integrations/tracing/postgres/vendored/enums/AttributeNames.js.map +0 -1
  771. package/build/esm/integrations/tracing/postgres/vendored/enums/SpanNames.js +0 -9
  772. package/build/esm/integrations/tracing/postgres/vendored/enums/SpanNames.js.map +0 -1
  773. package/build/esm/integrations/tracing/postgres/vendored/instrumentation.js +0 -223
  774. package/build/esm/integrations/tracing/postgres/vendored/instrumentation.js.map +0 -1
  775. package/build/esm/integrations/tracing/postgres/vendored/semconv.js +0 -5
  776. package/build/esm/integrations/tracing/postgres/vendored/semconv.js.map +0 -1
  777. package/build/esm/integrations/tracing/postgres/vendored/utils.js +0 -136
  778. package/build/esm/integrations/tracing/postgres/vendored/utils.js.map +0 -1
  779. package/build/esm/integrations/tracing/postgresjs.js +0 -261
  780. package/build/esm/integrations/tracing/postgresjs.js.map +0 -1
  781. package/build/esm/integrations/tracing/redis/cache.js +0 -38
  782. package/build/esm/integrations/tracing/redis/cache.js.map +0 -1
  783. package/build/esm/integrations/tracing/redis/index.js +0 -43
  784. package/build/esm/integrations/tracing/redis/index.js.map +0 -1
  785. package/build/esm/integrations/tracing/redis/vendored/ioredis-instrumentation.js +0 -145
  786. package/build/esm/integrations/tracing/redis/vendored/ioredis-instrumentation.js.map +0 -1
  787. package/build/esm/integrations/tracing/redis/vendored/redis-instrumentation.js +0 -443
  788. package/build/esm/integrations/tracing/redis/vendored/redis-instrumentation.js.map +0 -1
  789. package/build/esm/integrations/tracing/redis/vendored/semconv.js +0 -5
  790. package/build/esm/integrations/tracing/redis/vendored/semconv.js.map +0 -1
  791. package/build/esm/integrations/tracing/tedious/index.js +0 -18
  792. package/build/esm/integrations/tracing/tedious/index.js.map +0 -1
  793. package/build/esm/integrations/tracing/tedious/vendored/instrumentation.js +0 -152
  794. package/build/esm/integrations/tracing/tedious/vendored/instrumentation.js.map +0 -1
  795. package/build/esm/integrations/tracing/tedious/vendored/semconv.js +0 -5
  796. package/build/esm/integrations/tracing/tedious/vendored/semconv.js.map +0 -1
  797. package/build/esm/integrations/tracing/tedious/vendored/utils.js +0 -26
  798. package/build/esm/integrations/tracing/tedious/vendored/utils.js.map +0 -1
  799. package/build/esm/integrations/tracing/vercelai/constants.js +0 -4
  800. package/build/esm/integrations/tracing/vercelai/constants.js.map +0 -1
  801. package/build/esm/integrations/tracing/vercelai/index.js +0 -33
  802. package/build/esm/integrations/tracing/vercelai/index.js.map +0 -1
  803. package/build/esm/integrations/tracing/vercelai/instrumentation.js +0 -174
  804. package/build/esm/integrations/tracing/vercelai/instrumentation.js.map +0 -1
  805. package/build/esm/preload.js +0 -8
  806. package/build/esm/preload.js.map +0 -1
  807. package/build/esm/sdk/diagnosticsChannelInjection.js +0 -17
  808. package/build/esm/sdk/diagnosticsChannelInjection.js.map +0 -1
  809. package/build/esm/sdk/experimentalUseDiagnosticsChannelInjection.js +0 -30
  810. package/build/esm/sdk/experimentalUseDiagnosticsChannelInjection.js.map +0 -1
  811. package/build/esm/utils/redisCache.js +0 -89
  812. package/build/esm/utils/redisCache.js.map +0 -1
  813. package/build/esm/utils/setHttpServerSpanRouteAttribute.js +0 -19
  814. package/build/esm/utils/setHttpServerSpanRouteAttribute.js.map +0 -1
  815. package/build/loader-hook.mjs +0 -1
  816. package/build/types/init.d.ts +0 -2
  817. package/build/types/init.d.ts.map +0 -1
  818. package/build/types/integrations/http.d.ts +0 -131
  819. package/build/types/integrations/http.d.ts.map +0 -1
  820. package/build/types/integrations/node-fetch.d.ts +0 -9
  821. package/build/types/integrations/node-fetch.d.ts.map +0 -1
  822. package/build/types/integrations/tracing/InstrumentationNodeModuleFile.d.ts +0 -9
  823. package/build/types/integrations/tracing/InstrumentationNodeModuleFile.d.ts.map +0 -1
  824. package/build/types/integrations/tracing/amqplib/index.d.ts +0 -22
  825. package/build/types/integrations/tracing/amqplib/index.d.ts.map +0 -1
  826. package/build/types/integrations/tracing/amqplib/vendored/amqplib-types.d.ts +0 -44
  827. package/build/types/integrations/tracing/amqplib/vendored/amqplib-types.d.ts.map +0 -1
  828. package/build/types/integrations/tracing/amqplib/vendored/instrumentation.d.ts +0 -11
  829. package/build/types/integrations/tracing/amqplib/vendored/instrumentation.d.ts.map +0 -1
  830. package/build/types/integrations/tracing/amqplib/vendored/patches.d.ts +0 -11
  831. package/build/types/integrations/tracing/amqplib/vendored/patches.d.ts.map +0 -1
  832. package/build/types/integrations/tracing/amqplib/vendored/semconv.d.ts +0 -23
  833. package/build/types/integrations/tracing/amqplib/vendored/semconv.d.ts.map +0 -1
  834. package/build/types/integrations/tracing/amqplib/vendored/types.d.ts +0 -49
  835. package/build/types/integrations/tracing/amqplib/vendored/types.d.ts.map +0 -1
  836. package/build/types/integrations/tracing/amqplib/vendored/utils.d.ts +0 -42
  837. package/build/types/integrations/tracing/amqplib/vendored/utils.d.ts.map +0 -1
  838. package/build/types/integrations/tracing/anthropic-ai/index.d.ts +0 -62
  839. package/build/types/integrations/tracing/anthropic-ai/index.d.ts.map +0 -1
  840. package/build/types/integrations/tracing/anthropic-ai/instrumentation.d.ts +0 -19
  841. package/build/types/integrations/tracing/anthropic-ai/instrumentation.d.ts.map +0 -1
  842. package/build/types/integrations/tracing/connect/index.d.ts +0 -48
  843. package/build/types/integrations/tracing/connect/index.d.ts.map +0 -1
  844. package/build/types/integrations/tracing/connect/vendored/enums/AttributeNames.d.ts +0 -9
  845. package/build/types/integrations/tracing/connect/vendored/enums/AttributeNames.d.ts.map +0 -1
  846. package/build/types/integrations/tracing/connect/vendored/instrumentation.d.ts +0 -18
  847. package/build/types/integrations/tracing/connect/vendored/instrumentation.d.ts.map +0 -1
  848. package/build/types/integrations/tracing/connect/vendored/internal-types.d.ts +0 -31
  849. package/build/types/integrations/tracing/connect/vendored/internal-types.d.ts.map +0 -1
  850. package/build/types/integrations/tracing/connect/vendored/utils.d.ts +0 -5
  851. package/build/types/integrations/tracing/connect/vendored/utils.d.ts.map +0 -1
  852. package/build/types/integrations/tracing/dataloader/index.d.ts +0 -22
  853. package/build/types/integrations/tracing/dataloader/index.d.ts.map +0 -1
  854. package/build/types/integrations/tracing/dataloader/vendored/instrumentation.d.ts +0 -18
  855. package/build/types/integrations/tracing/dataloader/vendored/instrumentation.d.ts.map +0 -1
  856. package/build/types/integrations/tracing/dataloader/vendored/types.d.ts +0 -22
  857. package/build/types/integrations/tracing/dataloader/vendored/types.d.ts.map +0 -1
  858. package/build/types/integrations/tracing/express.d.ts +0 -19
  859. package/build/types/integrations/tracing/express.d.ts.map +0 -1
  860. package/build/types/integrations/tracing/fastify/index.d.ts +0 -124
  861. package/build/types/integrations/tracing/fastify/index.d.ts.map +0 -1
  862. package/build/types/integrations/tracing/fastify/types.d.ts +0 -33
  863. package/build/types/integrations/tracing/fastify/types.d.ts.map +0 -1
  864. package/build/types/integrations/tracing/fastify/v3/constants.d.ts +0 -3
  865. package/build/types/integrations/tracing/fastify/v3/constants.d.ts.map +0 -1
  866. package/build/types/integrations/tracing/fastify/v3/enums/AttributeNames.d.ts +0 -15
  867. package/build/types/integrations/tracing/fastify/v3/enums/AttributeNames.d.ts.map +0 -1
  868. package/build/types/integrations/tracing/fastify/v3/instrumentation.d.ts +0 -16
  869. package/build/types/integrations/tracing/fastify/v3/instrumentation.d.ts.map +0 -1
  870. package/build/types/integrations/tracing/fastify/v3/internal-types.d.ts +0 -7
  871. package/build/types/integrations/tracing/fastify/v3/internal-types.d.ts.map +0 -1
  872. package/build/types/integrations/tracing/fastify/v3/types.d.ts +0 -21
  873. package/build/types/integrations/tracing/fastify/v3/types.d.ts.map +0 -1
  874. package/build/types/integrations/tracing/fastify/v3/utils.d.ts +0 -28
  875. package/build/types/integrations/tracing/fastify/v3/utils.d.ts.map +0 -1
  876. package/build/types/integrations/tracing/firebase/firebase.d.ts +0 -8
  877. package/build/types/integrations/tracing/firebase/firebase.d.ts.map +0 -1
  878. package/build/types/integrations/tracing/firebase/index.d.ts +0 -2
  879. package/build/types/integrations/tracing/firebase/index.d.ts.map +0 -1
  880. package/build/types/integrations/tracing/firebase/otel/firebaseInstrumentation.d.ts +0 -14
  881. package/build/types/integrations/tracing/firebase/otel/firebaseInstrumentation.d.ts.map +0 -1
  882. package/build/types/integrations/tracing/firebase/otel/index.d.ts +0 -3
  883. package/build/types/integrations/tracing/firebase/otel/index.d.ts.map +0 -1
  884. package/build/types/integrations/tracing/firebase/otel/patches/firestore.d.ts +0 -22
  885. package/build/types/integrations/tracing/firebase/otel/patches/firestore.d.ts.map +0 -1
  886. package/build/types/integrations/tracing/firebase/otel/patches/functions.d.ts +0 -18
  887. package/build/types/integrations/tracing/firebase/otel/patches/functions.d.ts.map +0 -1
  888. package/build/types/integrations/tracing/firebase/otel/types.d.ts +0 -100
  889. package/build/types/integrations/tracing/firebase/otel/types.d.ts.map +0 -1
  890. package/build/types/integrations/tracing/genericPool/index.d.ts +0 -22
  891. package/build/types/integrations/tracing/genericPool/index.d.ts.map +0 -1
  892. package/build/types/integrations/tracing/genericPool/vendored/generic-pool-types.d.ts +0 -5
  893. package/build/types/integrations/tracing/genericPool/vendored/generic-pool-types.d.ts.map +0 -1
  894. package/build/types/integrations/tracing/genericPool/vendored/instrumentation.d.ts +0 -11
  895. package/build/types/integrations/tracing/genericPool/vendored/instrumentation.d.ts.map +0 -1
  896. package/build/types/integrations/tracing/google-genai/index.d.ts +0 -62
  897. package/build/types/integrations/tracing/google-genai/index.d.ts.map +0 -1
  898. package/build/types/integrations/tracing/google-genai/instrumentation.d.ts +0 -20
  899. package/build/types/integrations/tracing/google-genai/instrumentation.d.ts.map +0 -1
  900. package/build/types/integrations/tracing/graphql/index.d.ts +0 -50
  901. package/build/types/integrations/tracing/graphql/index.d.ts.map +0 -1
  902. package/build/types/integrations/tracing/graphql/vendored/enum.d.ts +0 -38
  903. package/build/types/integrations/tracing/graphql/vendored/enum.d.ts.map +0 -1
  904. package/build/types/integrations/tracing/graphql/vendored/enums/AttributeNames.d.ts +0 -10
  905. package/build/types/integrations/tracing/graphql/vendored/enums/AttributeNames.d.ts.map +0 -1
  906. package/build/types/integrations/tracing/graphql/vendored/graphql-types.d.ts +0 -2
  907. package/build/types/integrations/tracing/graphql/vendored/graphql-types.d.ts.map +0 -1
  908. package/build/types/integrations/tracing/graphql/vendored/instrumentation.d.ts +0 -25
  909. package/build/types/integrations/tracing/graphql/vendored/instrumentation.d.ts.map +0 -1
  910. package/build/types/integrations/tracing/graphql/vendored/internal-types.d.ts +0 -63
  911. package/build/types/integrations/tracing/graphql/vendored/internal-types.d.ts.map +0 -1
  912. package/build/types/integrations/tracing/graphql/vendored/symbols.d.ts +0 -3
  913. package/build/types/integrations/tracing/graphql/vendored/symbols.d.ts.map +0 -1
  914. package/build/types/integrations/tracing/graphql/vendored/types.d.ts +0 -33
  915. package/build/types/integrations/tracing/graphql/vendored/types.d.ts.map +0 -1
  916. package/build/types/integrations/tracing/graphql/vendored/utils.d.ts +0 -14
  917. package/build/types/integrations/tracing/graphql/vendored/utils.d.ts.map +0 -1
  918. package/build/types/integrations/tracing/hapi/index.d.ts +0 -52
  919. package/build/types/integrations/tracing/hapi/index.d.ts.map +0 -1
  920. package/build/types/integrations/tracing/hapi/types.d.ts +0 -166
  921. package/build/types/integrations/tracing/hapi/types.d.ts.map +0 -1
  922. package/build/types/integrations/tracing/hapi/vendored/enums/AttributeNames.d.ts +0 -6
  923. package/build/types/integrations/tracing/hapi/vendored/enums/AttributeNames.d.ts.map +0 -1
  924. package/build/types/integrations/tracing/hapi/vendored/hapi-types.d.ts +0 -70
  925. package/build/types/integrations/tracing/hapi/vendored/hapi-types.d.ts.map +0 -1
  926. package/build/types/integrations/tracing/hapi/vendored/instrumentation.d.ts +0 -72
  927. package/build/types/integrations/tracing/hapi/vendored/instrumentation.d.ts.map +0 -1
  928. package/build/types/integrations/tracing/hapi/vendored/internal-types.d.ts +0 -32
  929. package/build/types/integrations/tracing/hapi/vendored/internal-types.d.ts.map +0 -1
  930. package/build/types/integrations/tracing/hapi/vendored/utils.d.ts +0 -18
  931. package/build/types/integrations/tracing/hapi/vendored/utils.d.ts.map +0 -1
  932. package/build/types/integrations/tracing/hono/constants.d.ts +0 -11
  933. package/build/types/integrations/tracing/hono/constants.d.ts.map +0 -1
  934. package/build/types/integrations/tracing/hono/index.d.ts +0 -60
  935. package/build/types/integrations/tracing/hono/index.d.ts.map +0 -1
  936. package/build/types/integrations/tracing/hono/instrumentation.d.ts +0 -55
  937. package/build/types/integrations/tracing/hono/instrumentation.d.ts.map +0 -1
  938. package/build/types/integrations/tracing/hono/types.d.ts +0 -36
  939. package/build/types/integrations/tracing/hono/types.d.ts.map +0 -1
  940. package/build/types/integrations/tracing/kafka/index.d.ts +0 -21
  941. package/build/types/integrations/tracing/kafka/index.d.ts.map +0 -1
  942. package/build/types/integrations/tracing/kafka/vendored/instrumentation.d.ts +0 -15
  943. package/build/types/integrations/tracing/kafka/vendored/instrumentation.d.ts.map +0 -1
  944. package/build/types/integrations/tracing/kafka/vendored/kafkajs-types.d.ts +0 -79
  945. package/build/types/integrations/tracing/kafka/vendored/kafkajs-types.d.ts.map +0 -1
  946. package/build/types/integrations/tracing/kafka/vendored/semconv.d.ts +0 -54
  947. package/build/types/integrations/tracing/kafka/vendored/semconv.d.ts.map +0 -1
  948. package/build/types/integrations/tracing/kafka/vendored/utils.d.ts +0 -29
  949. package/build/types/integrations/tracing/kafka/vendored/utils.d.ts.map +0 -1
  950. package/build/types/integrations/tracing/knex/index.d.ts +0 -22
  951. package/build/types/integrations/tracing/knex/index.d.ts.map +0 -1
  952. package/build/types/integrations/tracing/knex/vendored/instrumentation.d.ts +0 -12
  953. package/build/types/integrations/tracing/knex/vendored/instrumentation.d.ts.map +0 -1
  954. package/build/types/integrations/tracing/knex/vendored/semconv.d.ts +0 -7
  955. package/build/types/integrations/tracing/knex/vendored/semconv.d.ts.map +0 -1
  956. package/build/types/integrations/tracing/knex/vendored/utils.d.ts +0 -9
  957. package/build/types/integrations/tracing/knex/vendored/utils.d.ts.map +0 -1
  958. package/build/types/integrations/tracing/koa/index.d.ts +0 -72
  959. package/build/types/integrations/tracing/koa/index.d.ts.map +0 -1
  960. package/build/types/integrations/tracing/koa/vendored/enums/AttributeNames.d.ts +0 -5
  961. package/build/types/integrations/tracing/koa/vendored/enums/AttributeNames.d.ts.map +0 -1
  962. package/build/types/integrations/tracing/koa/vendored/instrumentation.d.ts +0 -32
  963. package/build/types/integrations/tracing/koa/vendored/instrumentation.d.ts.map +0 -1
  964. package/build/types/integrations/tracing/koa/vendored/internal-types.d.ts +0 -34
  965. package/build/types/integrations/tracing/koa/vendored/internal-types.d.ts.map +0 -1
  966. package/build/types/integrations/tracing/koa/vendored/types.d.ts +0 -13
  967. package/build/types/integrations/tracing/koa/vendored/types.d.ts.map +0 -1
  968. package/build/types/integrations/tracing/koa/vendored/utils.d.ts +0 -15
  969. package/build/types/integrations/tracing/koa/vendored/utils.d.ts.map +0 -1
  970. package/build/types/integrations/tracing/langchain/index.d.ts +0 -101
  971. package/build/types/integrations/tracing/langchain/index.d.ts.map +0 -1
  972. package/build/types/integrations/tracing/langchain/instrumentation.d.ts +0 -38
  973. package/build/types/integrations/tracing/langchain/instrumentation.d.ts.map +0 -1
  974. package/build/types/integrations/tracing/langgraph/index.d.ts +0 -77
  975. package/build/types/integrations/tracing/langgraph/index.d.ts.map +0 -1
  976. package/build/types/integrations/tracing/langgraph/instrumentation.d.ts +0 -19
  977. package/build/types/integrations/tracing/langgraph/instrumentation.d.ts.map +0 -1
  978. package/build/types/integrations/tracing/lrumemoizer/index.d.ts +0 -21
  979. package/build/types/integrations/tracing/lrumemoizer/index.d.ts.map +0 -1
  980. package/build/types/integrations/tracing/lrumemoizer/vendored/instrumentation.d.ts +0 -6
  981. package/build/types/integrations/tracing/lrumemoizer/vendored/instrumentation.d.ts.map +0 -1
  982. package/build/types/integrations/tracing/mongo/index.d.ts +0 -22
  983. package/build/types/integrations/tracing/mongo/index.d.ts.map +0 -1
  984. package/build/types/integrations/tracing/mongo/vendored/instrumentation.d.ts +0 -11
  985. package/build/types/integrations/tracing/mongo/vendored/instrumentation.d.ts.map +0 -1
  986. package/build/types/integrations/tracing/mongo/vendored/internal-types.d.ts +0 -62
  987. package/build/types/integrations/tracing/mongo/vendored/internal-types.d.ts.map +0 -1
  988. package/build/types/integrations/tracing/mongo/vendored/patches.d.ts +0 -15
  989. package/build/types/integrations/tracing/mongo/vendored/patches.d.ts.map +0 -1
  990. package/build/types/integrations/tracing/mongo/vendored/utils.d.ts +0 -15
  991. package/build/types/integrations/tracing/mongo/vendored/utils.d.ts.map +0 -1
  992. package/build/types/integrations/tracing/mongoose/index.d.ts +0 -22
  993. package/build/types/integrations/tracing/mongoose/index.d.ts.map +0 -1
  994. package/build/types/integrations/tracing/mongoose/vendored/mongoose-types.d.ts +0 -33
  995. package/build/types/integrations/tracing/mongoose/vendored/mongoose-types.d.ts.map +0 -1
  996. package/build/types/integrations/tracing/mongoose/vendored/mongoose.d.ts +0 -18
  997. package/build/types/integrations/tracing/mongoose/vendored/mongoose.d.ts.map +0 -1
  998. package/build/types/integrations/tracing/mongoose/vendored/utils.d.ts +0 -4
  999. package/build/types/integrations/tracing/mongoose/vendored/utils.d.ts.map +0 -1
  1000. package/build/types/integrations/tracing/mysql/index.d.ts +0 -22
  1001. package/build/types/integrations/tracing/mysql/index.d.ts.map +0 -1
  1002. package/build/types/integrations/tracing/mysql/vendored/instrumentation.d.ts +0 -14
  1003. package/build/types/integrations/tracing/mysql/vendored/instrumentation.d.ts.map +0 -1
  1004. package/build/types/integrations/tracing/mysql/vendored/mysql-types.d.ts +0 -78
  1005. package/build/types/integrations/tracing/mysql/vendored/mysql-types.d.ts.map +0 -1
  1006. package/build/types/integrations/tracing/mysql/vendored/semconv.d.ts +0 -19
  1007. package/build/types/integrations/tracing/mysql/vendored/semconv.d.ts.map +0 -1
  1008. package/build/types/integrations/tracing/mysql/vendored/utils.d.ts +0 -22
  1009. package/build/types/integrations/tracing/mysql/vendored/utils.d.ts.map +0 -1
  1010. package/build/types/integrations/tracing/mysql2/index.d.ts +0 -22
  1011. package/build/types/integrations/tracing/mysql2/index.d.ts.map +0 -1
  1012. package/build/types/integrations/tracing/mysql2/vendored/instrumentation.d.ts +0 -9
  1013. package/build/types/integrations/tracing/mysql2/vendored/instrumentation.d.ts.map +0 -1
  1014. package/build/types/integrations/tracing/mysql2/vendored/mysql2-types.d.ts +0 -39
  1015. package/build/types/integrations/tracing/mysql2/vendored/mysql2-types.d.ts.map +0 -1
  1016. package/build/types/integrations/tracing/mysql2/vendored/semconv.d.ts +0 -3
  1017. package/build/types/integrations/tracing/mysql2/vendored/semconv.d.ts.map +0 -1
  1018. package/build/types/integrations/tracing/mysql2/vendored/utils.d.ts +0 -25
  1019. package/build/types/integrations/tracing/mysql2/vendored/utils.d.ts.map +0 -1
  1020. package/build/types/integrations/tracing/openai/index.d.ts +0 -62
  1021. package/build/types/integrations/tracing/openai/index.d.ts.map +0 -1
  1022. package/build/types/integrations/tracing/openai/instrumentation.d.ts +0 -26
  1023. package/build/types/integrations/tracing/openai/instrumentation.d.ts.map +0 -1
  1024. package/build/types/integrations/tracing/postgres/index.d.ts +0 -26
  1025. package/build/types/integrations/tracing/postgres/index.d.ts.map +0 -1
  1026. package/build/types/integrations/tracing/postgres/vendored/enums/AttributeNames.d.ts +0 -6
  1027. package/build/types/integrations/tracing/postgres/vendored/enums/AttributeNames.d.ts.map +0 -1
  1028. package/build/types/integrations/tracing/postgres/vendored/enums/SpanNames.d.ts +0 -6
  1029. package/build/types/integrations/tracing/postgres/vendored/enums/SpanNames.d.ts.map +0 -1
  1030. package/build/types/integrations/tracing/postgres/vendored/instrumentation.d.ts +0 -12
  1031. package/build/types/integrations/tracing/postgres/vendored/instrumentation.d.ts.map +0 -1
  1032. package/build/types/integrations/tracing/postgres/vendored/internal-types.d.ts +0 -33
  1033. package/build/types/integrations/tracing/postgres/vendored/internal-types.d.ts.map +0 -1
  1034. package/build/types/integrations/tracing/postgres/vendored/pg-pool-types.d.ts +0 -20
  1035. package/build/types/integrations/tracing/postgres/vendored/pg-pool-types.d.ts.map +0 -1
  1036. package/build/types/integrations/tracing/postgres/vendored/pg-types.d.ts +0 -54
  1037. package/build/types/integrations/tracing/postgres/vendored/pg-types.d.ts.map +0 -1
  1038. package/build/types/integrations/tracing/postgres/vendored/semconv.d.ts +0 -13
  1039. package/build/types/integrations/tracing/postgres/vendored/semconv.d.ts.map +0 -1
  1040. package/build/types/integrations/tracing/postgres/vendored/types.d.ts +0 -11
  1041. package/build/types/integrations/tracing/postgres/vendored/types.d.ts.map +0 -1
  1042. package/build/types/integrations/tracing/postgres/vendored/utils.d.ts +0 -56
  1043. package/build/types/integrations/tracing/postgres/vendored/utils.d.ts.map +0 -1
  1044. package/build/types/integrations/tracing/postgresjs.d.ts +0 -103
  1045. package/build/types/integrations/tracing/postgresjs.d.ts.map +0 -1
  1046. package/build/types/integrations/tracing/redis/cache.d.ts +0 -22
  1047. package/build/types/integrations/tracing/redis/cache.d.ts.map +0 -1
  1048. package/build/types/integrations/tracing/redis/index.d.ts +0 -28
  1049. package/build/types/integrations/tracing/redis/index.d.ts.map +0 -1
  1050. package/build/types/integrations/tracing/redis/vendored/ioredis-instrumentation.d.ts +0 -10
  1051. package/build/types/integrations/tracing/redis/vendored/ioredis-instrumentation.d.ts.map +0 -1
  1052. package/build/types/integrations/tracing/redis/vendored/redis-instrumentation.d.ts +0 -16
  1053. package/build/types/integrations/tracing/redis/vendored/redis-instrumentation.d.ts.map +0 -1
  1054. package/build/types/integrations/tracing/redis/vendored/semconv.d.ts +0 -4
  1055. package/build/types/integrations/tracing/redis/vendored/semconv.d.ts.map +0 -1
  1056. package/build/types/integrations/tracing/redis/vendored/types.d.ts +0 -24
  1057. package/build/types/integrations/tracing/redis/vendored/types.d.ts.map +0 -1
  1058. package/build/types/integrations/tracing/tedious/index.d.ts +0 -22
  1059. package/build/types/integrations/tracing/tedious/index.d.ts.map +0 -1
  1060. package/build/types/integrations/tracing/tedious/vendored/instrumentation.d.ts +0 -11
  1061. package/build/types/integrations/tracing/tedious/vendored/instrumentation.d.ts.map +0 -1
  1062. package/build/types/integrations/tracing/tedious/vendored/semconv.d.ts +0 -19
  1063. package/build/types/integrations/tracing/tedious/vendored/semconv.d.ts.map +0 -1
  1064. package/build/types/integrations/tracing/tedious/vendored/tedious-types.d.ts +0 -21
  1065. package/build/types/integrations/tracing/tedious/vendored/tedious-types.d.ts.map +0 -1
  1066. package/build/types/integrations/tracing/tedious/vendored/utils.d.ts +0 -9
  1067. package/build/types/integrations/tracing/tedious/vendored/utils.d.ts.map +0 -1
  1068. package/build/types/integrations/tracing/vercelai/constants.d.ts +0 -2
  1069. package/build/types/integrations/tracing/vercelai/constants.d.ts.map +0 -1
  1070. package/build/types/integrations/tracing/vercelai/index.d.ts +0 -44
  1071. package/build/types/integrations/tracing/vercelai/index.d.ts.map +0 -1
  1072. package/build/types/integrations/tracing/vercelai/instrumentation.d.ts +0 -56
  1073. package/build/types/integrations/tracing/vercelai/instrumentation.d.ts.map +0 -1
  1074. package/build/types/integrations/tracing/vercelai/types.d.ts +0 -50
  1075. package/build/types/integrations/tracing/vercelai/types.d.ts.map +0 -1
  1076. package/build/types/preload.d.ts +0 -2
  1077. package/build/types/preload.d.ts.map +0 -1
  1078. package/build/types/sdk/diagnosticsChannelInjection.d.ts +0 -41
  1079. package/build/types/sdk/diagnosticsChannelInjection.d.ts.map +0 -1
  1080. package/build/types/sdk/experimentalUseDiagnosticsChannelInjection.d.ts +0 -37
  1081. package/build/types/sdk/experimentalUseDiagnosticsChannelInjection.d.ts.map +0 -1
  1082. package/build/types/utils/redisCache.d.ts +0 -17
  1083. package/build/types/utils/redisCache.d.ts.map +0 -1
  1084. package/build/types/utils/setHttpServerSpanRouteAttribute.d.ts +0 -9
  1085. package/build/types/utils/setHttpServerSpanRouteAttribute.d.ts.map +0 -1
  1086. package/build/types-ts3.8/debug-build.d.ts +0 -7
  1087. package/build/types-ts3.8/index.d.ts +0 -44
  1088. package/build/types-ts3.8/init.d.ts +0 -2
  1089. package/build/types-ts3.8/integrations/featureFlagShims/growthbook.d.ts +0 -6
  1090. package/build/types-ts3.8/integrations/featureFlagShims/index.d.ts +0 -6
  1091. package/build/types-ts3.8/integrations/featureFlagShims/launchDarkly.d.ts +0 -12
  1092. package/build/types-ts3.8/integrations/featureFlagShims/openFeature.d.ts +0 -25
  1093. package/build/types-ts3.8/integrations/featureFlagShims/statsig.d.ts +0 -8
  1094. package/build/types-ts3.8/integrations/featureFlagShims/unleash.d.ts +0 -8
  1095. package/build/types-ts3.8/integrations/fs/index.d.ts +0 -14
  1096. package/build/types-ts3.8/integrations/fs/vendored/constants.d.ts +0 -5
  1097. package/build/types-ts3.8/integrations/fs/vendored/instrumentation.d.ts +0 -3
  1098. package/build/types-ts3.8/integrations/fs/vendored/types.d.ts +0 -23
  1099. package/build/types-ts3.8/integrations/fs/vendored/utils.d.ts +0 -15
  1100. package/build/types-ts3.8/integrations/http.d.ts +0 -134
  1101. package/build/types-ts3.8/integrations/node-fetch.d.ts +0 -9
  1102. package/build/types-ts3.8/integrations/tracing/InstrumentationNodeModuleFile.d.ts +0 -9
  1103. package/build/types-ts3.8/integrations/tracing/amqplib/index.d.ts +0 -22
  1104. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/amqplib-types.d.ts +0 -44
  1105. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/instrumentation.d.ts +0 -11
  1106. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/patches.d.ts +0 -11
  1107. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/semconv.d.ts +0 -23
  1108. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/types.d.ts +0 -49
  1109. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/utils.d.ts +0 -42
  1110. package/build/types-ts3.8/integrations/tracing/anthropic-ai/index.d.ts +0 -62
  1111. package/build/types-ts3.8/integrations/tracing/anthropic-ai/instrumentation.d.ts +0 -19
  1112. package/build/types-ts3.8/integrations/tracing/connect/index.d.ts +0 -48
  1113. package/build/types-ts3.8/integrations/tracing/connect/vendored/enums/AttributeNames.d.ts +0 -9
  1114. package/build/types-ts3.8/integrations/tracing/connect/vendored/instrumentation.d.ts +0 -18
  1115. package/build/types-ts3.8/integrations/tracing/connect/vendored/internal-types.d.ts +0 -36
  1116. package/build/types-ts3.8/integrations/tracing/connect/vendored/utils.d.ts +0 -5
  1117. package/build/types-ts3.8/integrations/tracing/dataloader/index.d.ts +0 -22
  1118. package/build/types-ts3.8/integrations/tracing/dataloader/vendored/instrumentation.d.ts +0 -18
  1119. package/build/types-ts3.8/integrations/tracing/dataloader/vendored/types.d.ts +0 -22
  1120. package/build/types-ts3.8/integrations/tracing/express.d.ts +0 -19
  1121. package/build/types-ts3.8/integrations/tracing/fastify/index.d.ts +0 -124
  1122. package/build/types-ts3.8/integrations/tracing/fastify/types.d.ts +0 -33
  1123. package/build/types-ts3.8/integrations/tracing/fastify/v3/constants.d.ts +0 -3
  1124. package/build/types-ts3.8/integrations/tracing/fastify/v3/enums/AttributeNames.d.ts +0 -15
  1125. package/build/types-ts3.8/integrations/tracing/fastify/v3/instrumentation.d.ts +0 -16
  1126. package/build/types-ts3.8/integrations/tracing/fastify/v3/internal-types.d.ts +0 -7
  1127. package/build/types-ts3.8/integrations/tracing/fastify/v3/types.d.ts +0 -21
  1128. package/build/types-ts3.8/integrations/tracing/fastify/v3/utils.d.ts +0 -28
  1129. package/build/types-ts3.8/integrations/tracing/firebase/firebase.d.ts +0 -8
  1130. package/build/types-ts3.8/integrations/tracing/firebase/index.d.ts +0 -2
  1131. package/build/types-ts3.8/integrations/tracing/firebase/otel/firebaseInstrumentation.d.ts +0 -14
  1132. package/build/types-ts3.8/integrations/tracing/firebase/otel/index.d.ts +0 -3
  1133. package/build/types-ts3.8/integrations/tracing/firebase/otel/patches/firestore.d.ts +0 -22
  1134. package/build/types-ts3.8/integrations/tracing/firebase/otel/patches/functions.d.ts +0 -18
  1135. package/build/types-ts3.8/integrations/tracing/firebase/otel/types.d.ts +0 -100
  1136. package/build/types-ts3.8/integrations/tracing/genericPool/index.d.ts +0 -22
  1137. package/build/types-ts3.8/integrations/tracing/genericPool/vendored/generic-pool-types.d.ts +0 -5
  1138. package/build/types-ts3.8/integrations/tracing/genericPool/vendored/instrumentation.d.ts +0 -11
  1139. package/build/types-ts3.8/integrations/tracing/google-genai/index.d.ts +0 -62
  1140. package/build/types-ts3.8/integrations/tracing/google-genai/instrumentation.d.ts +0 -20
  1141. package/build/types-ts3.8/integrations/tracing/graphql/index.d.ts +0 -50
  1142. package/build/types-ts3.8/integrations/tracing/graphql/vendored/enum.d.ts +0 -38
  1143. package/build/types-ts3.8/integrations/tracing/graphql/vendored/enums/AttributeNames.d.ts +0 -10
  1144. package/build/types-ts3.8/integrations/tracing/graphql/vendored/graphql-types.d.ts +0 -2
  1145. package/build/types-ts3.8/integrations/tracing/graphql/vendored/instrumentation.d.ts +0 -25
  1146. package/build/types-ts3.8/integrations/tracing/graphql/vendored/internal-types.d.ts +0 -63
  1147. package/build/types-ts3.8/integrations/tracing/graphql/vendored/symbols.d.ts +0 -3
  1148. package/build/types-ts3.8/integrations/tracing/graphql/vendored/types.d.ts +0 -33
  1149. package/build/types-ts3.8/integrations/tracing/graphql/vendored/utils.d.ts +0 -14
  1150. package/build/types-ts3.8/integrations/tracing/hapi/index.d.ts +0 -52
  1151. package/build/types-ts3.8/integrations/tracing/hapi/types.d.ts +0 -166
  1152. package/build/types-ts3.8/integrations/tracing/hapi/vendored/enums/AttributeNames.d.ts +0 -6
  1153. package/build/types-ts3.8/integrations/tracing/hapi/vendored/hapi-types.d.ts +0 -70
  1154. package/build/types-ts3.8/integrations/tracing/hapi/vendored/instrumentation.d.ts +0 -72
  1155. package/build/types-ts3.8/integrations/tracing/hapi/vendored/internal-types.d.ts +0 -32
  1156. package/build/types-ts3.8/integrations/tracing/hapi/vendored/utils.d.ts +0 -18
  1157. package/build/types-ts3.8/integrations/tracing/hono/constants.d.ts +0 -11
  1158. package/build/types-ts3.8/integrations/tracing/hono/index.d.ts +0 -60
  1159. package/build/types-ts3.8/integrations/tracing/hono/instrumentation.d.ts +0 -55
  1160. package/build/types-ts3.8/integrations/tracing/hono/types.d.ts +0 -36
  1161. package/build/types-ts3.8/integrations/tracing/index.d.ts +0 -12
  1162. package/build/types-ts3.8/integrations/tracing/kafka/index.d.ts +0 -21
  1163. package/build/types-ts3.8/integrations/tracing/kafka/vendored/instrumentation.d.ts +0 -15
  1164. package/build/types-ts3.8/integrations/tracing/kafka/vendored/kafkajs-types.d.ts +0 -79
  1165. package/build/types-ts3.8/integrations/tracing/kafka/vendored/semconv.d.ts +0 -54
  1166. package/build/types-ts3.8/integrations/tracing/kafka/vendored/utils.d.ts +0 -29
  1167. package/build/types-ts3.8/integrations/tracing/knex/index.d.ts +0 -22
  1168. package/build/types-ts3.8/integrations/tracing/knex/vendored/instrumentation.d.ts +0 -12
  1169. package/build/types-ts3.8/integrations/tracing/knex/vendored/semconv.d.ts +0 -7
  1170. package/build/types-ts3.8/integrations/tracing/knex/vendored/utils.d.ts +0 -9
  1171. package/build/types-ts3.8/integrations/tracing/koa/index.d.ts +0 -72
  1172. package/build/types-ts3.8/integrations/tracing/koa/vendored/enums/AttributeNames.d.ts +0 -5
  1173. package/build/types-ts3.8/integrations/tracing/koa/vendored/instrumentation.d.ts +0 -32
  1174. package/build/types-ts3.8/integrations/tracing/koa/vendored/internal-types.d.ts +0 -34
  1175. package/build/types-ts3.8/integrations/tracing/koa/vendored/types.d.ts +0 -13
  1176. package/build/types-ts3.8/integrations/tracing/koa/vendored/utils.d.ts +0 -15
  1177. package/build/types-ts3.8/integrations/tracing/langchain/index.d.ts +0 -101
  1178. package/build/types-ts3.8/integrations/tracing/langchain/instrumentation.d.ts +0 -38
  1179. package/build/types-ts3.8/integrations/tracing/langgraph/index.d.ts +0 -77
  1180. package/build/types-ts3.8/integrations/tracing/langgraph/instrumentation.d.ts +0 -19
  1181. package/build/types-ts3.8/integrations/tracing/lrumemoizer/index.d.ts +0 -21
  1182. package/build/types-ts3.8/integrations/tracing/lrumemoizer/vendored/instrumentation.d.ts +0 -6
  1183. package/build/types-ts3.8/integrations/tracing/mongo/index.d.ts +0 -22
  1184. package/build/types-ts3.8/integrations/tracing/mongo/vendored/instrumentation.d.ts +0 -11
  1185. package/build/types-ts3.8/integrations/tracing/mongo/vendored/internal-types.d.ts +0 -62
  1186. package/build/types-ts3.8/integrations/tracing/mongo/vendored/patches.d.ts +0 -15
  1187. package/build/types-ts3.8/integrations/tracing/mongo/vendored/utils.d.ts +0 -15
  1188. package/build/types-ts3.8/integrations/tracing/mongoose/index.d.ts +0 -22
  1189. package/build/types-ts3.8/integrations/tracing/mongoose/vendored/mongoose-types.d.ts +0 -33
  1190. package/build/types-ts3.8/integrations/tracing/mongoose/vendored/mongoose.d.ts +0 -18
  1191. package/build/types-ts3.8/integrations/tracing/mongoose/vendored/utils.d.ts +0 -4
  1192. package/build/types-ts3.8/integrations/tracing/mysql/index.d.ts +0 -22
  1193. package/build/types-ts3.8/integrations/tracing/mysql/vendored/instrumentation.d.ts +0 -14
  1194. package/build/types-ts3.8/integrations/tracing/mysql/vendored/mysql-types.d.ts +0 -78
  1195. package/build/types-ts3.8/integrations/tracing/mysql/vendored/semconv.d.ts +0 -19
  1196. package/build/types-ts3.8/integrations/tracing/mysql/vendored/utils.d.ts +0 -22
  1197. package/build/types-ts3.8/integrations/tracing/mysql2/index.d.ts +0 -22
  1198. package/build/types-ts3.8/integrations/tracing/mysql2/vendored/instrumentation.d.ts +0 -9
  1199. package/build/types-ts3.8/integrations/tracing/mysql2/vendored/mysql2-types.d.ts +0 -39
  1200. package/build/types-ts3.8/integrations/tracing/mysql2/vendored/semconv.d.ts +0 -3
  1201. package/build/types-ts3.8/integrations/tracing/mysql2/vendored/utils.d.ts +0 -25
  1202. package/build/types-ts3.8/integrations/tracing/openai/index.d.ts +0 -62
  1203. package/build/types-ts3.8/integrations/tracing/openai/instrumentation.d.ts +0 -26
  1204. package/build/types-ts3.8/integrations/tracing/postgres/index.d.ts +0 -26
  1205. package/build/types-ts3.8/integrations/tracing/postgres/vendored/enums/AttributeNames.d.ts +0 -6
  1206. package/build/types-ts3.8/integrations/tracing/postgres/vendored/enums/SpanNames.d.ts +0 -6
  1207. package/build/types-ts3.8/integrations/tracing/postgres/vendored/instrumentation.d.ts +0 -12
  1208. package/build/types-ts3.8/integrations/tracing/postgres/vendored/internal-types.d.ts +0 -33
  1209. package/build/types-ts3.8/integrations/tracing/postgres/vendored/pg-pool-types.d.ts +0 -20
  1210. package/build/types-ts3.8/integrations/tracing/postgres/vendored/pg-types.d.ts +0 -54
  1211. package/build/types-ts3.8/integrations/tracing/postgres/vendored/semconv.d.ts +0 -13
  1212. package/build/types-ts3.8/integrations/tracing/postgres/vendored/types.d.ts +0 -11
  1213. package/build/types-ts3.8/integrations/tracing/postgres/vendored/utils.d.ts +0 -56
  1214. package/build/types-ts3.8/integrations/tracing/postgresjs.d.ts +0 -103
  1215. package/build/types-ts3.8/integrations/tracing/redis/cache.d.ts +0 -22
  1216. package/build/types-ts3.8/integrations/tracing/redis/index.d.ts +0 -28
  1217. package/build/types-ts3.8/integrations/tracing/redis/vendored/ioredis-instrumentation.d.ts +0 -10
  1218. package/build/types-ts3.8/integrations/tracing/redis/vendored/redis-instrumentation.d.ts +0 -16
  1219. package/build/types-ts3.8/integrations/tracing/redis/vendored/semconv.d.ts +0 -4
  1220. package/build/types-ts3.8/integrations/tracing/redis/vendored/types.d.ts +0 -24
  1221. package/build/types-ts3.8/integrations/tracing/tedious/index.d.ts +0 -22
  1222. package/build/types-ts3.8/integrations/tracing/tedious/vendored/instrumentation.d.ts +0 -11
  1223. package/build/types-ts3.8/integrations/tracing/tedious/vendored/semconv.d.ts +0 -19
  1224. package/build/types-ts3.8/integrations/tracing/tedious/vendored/tedious-types.d.ts +0 -21
  1225. package/build/types-ts3.8/integrations/tracing/tedious/vendored/utils.d.ts +0 -9
  1226. package/build/types-ts3.8/integrations/tracing/vercelai/constants.d.ts +0 -2
  1227. package/build/types-ts3.8/integrations/tracing/vercelai/index.d.ts +0 -44
  1228. package/build/types-ts3.8/integrations/tracing/vercelai/instrumentation.d.ts +0 -56
  1229. package/build/types-ts3.8/integrations/tracing/vercelai/types.d.ts +0 -50
  1230. package/build/types-ts3.8/preload.d.ts +0 -2
  1231. package/build/types-ts3.8/sdk/diagnosticsChannelInjection.d.ts +0 -41
  1232. package/build/types-ts3.8/sdk/experimentalUseDiagnosticsChannelInjection.d.ts +0 -37
  1233. package/build/types-ts3.8/sdk/index.d.ts +0 -36
  1234. package/build/types-ts3.8/sdk/initOtel.d.ts +0 -30
  1235. package/build/types-ts3.8/types.d.ts +0 -89
  1236. package/build/types-ts3.8/utils/redisCache.d.ts +0 -17
  1237. package/build/types-ts3.8/utils/setHttpServerSpanRouteAttribute.d.ts +0 -9
@@ -1 +0,0 @@
1
- {"version":3,"file":"redis-instrumentation.js","sources":["../../../../../../src/integrations/tracing/redis/vendored/redis-instrumentation.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n *\n * NOTICE from the Sentry authors:\n * - Vendored from: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/instrumentation-redis-v0.62.0/packages/instrumentation-redis\n * - Upstream version: @opentelemetry/instrumentation-redis@0.62.0\n * - Minor TypeScript adjustments for this repository's compiler settings\n * - Refactored to use Sentry's span APIs instead of OpenTelemetry tracing APIs\n */\n\nimport type { TracerProvider } from '@opentelemetry/api';\nimport { InstrumentationBase, InstrumentationNodeModuleDefinition, isWrapped } from '@opentelemetry/instrumentation';\nimport type { Span, SpanAttributes } from '@sentry/core';\nimport {\n debug,\n getActiveSpan,\n SDK_VERSION,\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n SPAN_KIND,\n SPAN_STATUS_ERROR,\n startInactiveSpan,\n withActiveSpan,\n} from '@sentry/core';\nimport { DB_STATEMENT, DB_SYSTEM, NET_PEER_NAME, NET_PEER_PORT } from '@sentry/conventions/attributes';\nimport { defaultDbStatementSerializer } from '@sentry/server-utils';\nimport { DEBUG_BUILD } from '../../../../debug-build';\nimport { InstrumentationNodeModuleFile } from '../../InstrumentationNodeModuleFile';\nimport { ATTR_DB_CONNECTION_STRING, DB_SYSTEM_VALUE_REDIS } from './semconv';\nimport type { RedisInstrumentationConfig, RedisResponseCustomAttributeFunction } from './types';\n\nconst PACKAGE_NAME = '@sentry/instrumentation-redis';\nconst ORIGIN = 'auto.db.otel.redis';\n\n// node-redis >= 5.12.0 publishes via diagnostics_channel, which Sentry subscribes\n// to separately, so this monkey-patching instrumentation only covers the older\n// `redis` (v2-v3), `@redis/client`/`@node-redis/client` (v1, i.e. node-redis v4)\n// and node-redis 5.0-5.11 releases.\n\n// ---- Internal types ----\n\ninterface RedisPluginClientTypes {\n connection_options?: {\n port?: string | number;\n host?: string;\n };\n address?: string;\n}\n\ninterface RedisCommand {\n command: string;\n args: string[];\n buffer_args: boolean;\n callback: (err: Error | null, reply: unknown) => void;\n call_on_write: boolean;\n}\n\ninterface MultiErrorReply extends Error {\n replies: unknown[];\n errorIndexes: Array<number>;\n}\n\ninterface OpenSpanInfo {\n span: Span;\n commandName: string;\n commandArgs: Array<string | Buffer>;\n}\n\nconst OTEL_OPEN_SPANS = Symbol('opentelemetry.instrumentation.redis.open_spans');\nconst MULTI_COMMAND_OPTIONS = Symbol('opentelemetry.instrumentation.redis.multi_command_options');\n\n// ---- shared utils ----\n\nfunction endSpan(span: Span, err: Error | null | undefined): void {\n if (err) {\n span.setStatus({ code: SPAN_STATUS_ERROR, message: err.message });\n }\n span.end();\n}\n\nfunction runResponseHook(\n responseHook: RedisResponseCustomAttributeFunction | undefined,\n span: Span,\n commandName: string,\n commandArgs: Array<string | Buffer>,\n response: unknown,\n): void {\n if (!responseHook) {\n return;\n }\n try {\n responseHook(span, commandName, commandArgs, response);\n } catch {\n // never let a user-provided response hook break instrumentation\n }\n}\n\n// ---- v4-v5 utils ----\n\nfunction removeCredentialsFromDBConnectionStringAttribute(url: string | undefined): string | undefined {\n if (typeof url !== 'string' || !url) {\n return undefined;\n }\n try {\n const u = new URL(url);\n u.searchParams.delete('user_pwd');\n u.username = '';\n u.password = '';\n return u.href;\n } catch (err) {\n DEBUG_BUILD && debug.error('failed to sanitize redis connection url', err);\n }\n return undefined;\n}\n\nfunction getClientAttributes(options: any): SpanAttributes {\n return {\n // oxlint-disable-next-line typescript/no-deprecated\n [DB_SYSTEM]: DB_SYSTEM_VALUE_REDIS,\n // oxlint-disable-next-line typescript/no-deprecated\n [NET_PEER_NAME]: options?.socket?.host,\n // oxlint-disable-next-line typescript/no-deprecated\n [NET_PEER_PORT]: options?.socket?.port,\n [ATTR_DB_CONNECTION_STRING]: removeCredentialsFromDBConnectionStringAttribute(options?.url),\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: ORIGIN,\n };\n}\n\n// ---- RedisInstrumentationV2_V3 ----\n\nclass RedisInstrumentationV2_V3 extends InstrumentationBase<RedisInstrumentationConfig> {\n static COMPONENT = 'redis';\n\n constructor(config: RedisInstrumentationConfig = {}) {\n super(PACKAGE_NAME, SDK_VERSION, config);\n }\n\n init() {\n return [\n new InstrumentationNodeModuleDefinition(\n 'redis',\n ['>=2.6.0 <4'],\n (moduleExports: any) => {\n if (isWrapped(moduleExports.RedisClient.prototype['internal_send_command'])) {\n this._unwrap(moduleExports.RedisClient.prototype, 'internal_send_command');\n }\n this._wrap(moduleExports.RedisClient.prototype, 'internal_send_command', this._getPatchInternalSendCommand());\n return moduleExports;\n },\n (moduleExports: any) => {\n if (moduleExports === undefined) return;\n this._unwrap(moduleExports.RedisClient.prototype, 'internal_send_command');\n },\n ),\n ];\n }\n\n private _getPatchInternalSendCommand() {\n const instrumentation = this;\n return function internal_send_command(original: Function) {\n return function internal_send_command_trace(this: RedisPluginClientTypes, cmd: RedisCommand) {\n if (arguments.length !== 1 || typeof cmd !== 'object') {\n return original.apply(this, arguments);\n }\n const attributes: SpanAttributes = {\n // oxlint-disable-next-line typescript/no-deprecated\n [DB_SYSTEM]: DB_SYSTEM_VALUE_REDIS,\n // oxlint-disable-next-line typescript/no-deprecated\n [DB_STATEMENT]: defaultDbStatementSerializer(cmd.command, cmd.args),\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: ORIGIN,\n };\n if (this.connection_options) {\n // oxlint-disable-next-line typescript/no-deprecated\n attributes[NET_PEER_NAME] = this.connection_options.host;\n // oxlint-disable-next-line typescript/no-deprecated\n attributes[NET_PEER_PORT] = this.connection_options.port;\n }\n if (this.address) {\n attributes[ATTR_DB_CONNECTION_STRING] = `redis://${this.address}`;\n }\n const span = startInactiveSpan({\n name: `${RedisInstrumentationV2_V3.COMPONENT}-${cmd.command}`,\n kind: SPAN_KIND.CLIENT,\n attributes,\n });\n const originalCallback = arguments[0].callback;\n if (originalCallback) {\n const parentSpan = getActiveSpan();\n arguments[0].callback = function callback(this: any, err: Error | null, reply: unknown) {\n runResponseHook(instrumentation.getConfig().responseHook, span, cmd.command, cmd.args, reply);\n endSpan(span, err);\n return withActiveSpan(parentSpan ?? null, () => originalCallback.apply(this, arguments));\n };\n }\n try {\n return original.apply(this, arguments);\n } catch (rethrow) {\n endSpan(span, rethrow as Error);\n throw rethrow;\n }\n };\n };\n }\n}\n\n// ---- RedisInstrumentationV4_V5 ----\n\nclass RedisInstrumentationV4_V5 extends InstrumentationBase<RedisInstrumentationConfig> {\n static COMPONENT = 'redis';\n\n constructor(config: RedisInstrumentationConfig = {}) {\n super(PACKAGE_NAME, SDK_VERSION, config);\n }\n\n init() {\n return [\n this._getInstrumentationNodeModuleDefinition('@redis/client'),\n this._getInstrumentationNodeModuleDefinition('@node-redis/client'),\n ];\n }\n\n private _getInstrumentationNodeModuleDefinition(basePackageName: string) {\n const commanderModuleFile = new InstrumentationNodeModuleFile(\n `${basePackageName}/dist/lib/commander.js`,\n ['^1.0.0'],\n (moduleExports: any, moduleVersion?: string) => {\n const transformCommandArguments = moduleExports.transformCommandArguments;\n if (!transformCommandArguments) {\n DEBUG_BUILD && debug.error('internal instrumentation error, missing transformCommandArguments function');\n return moduleExports;\n }\n const functionToPatch = moduleVersion?.startsWith('1.0.') ? 'extendWithCommands' : 'attachCommands';\n if (isWrapped(moduleExports?.[functionToPatch])) {\n this._unwrap(moduleExports, functionToPatch);\n }\n this._wrap(moduleExports, functionToPatch, this._getPatchExtendWithCommands(transformCommandArguments));\n return moduleExports;\n },\n (moduleExports: any) => {\n if (isWrapped(moduleExports?.extendWithCommands)) {\n this._unwrap(moduleExports, 'extendWithCommands');\n }\n if (isWrapped(moduleExports?.attachCommands)) {\n this._unwrap(moduleExports, 'attachCommands');\n }\n },\n );\n\n const multiCommanderModule = new InstrumentationNodeModuleFile(\n `${basePackageName}/dist/lib/client/multi-command.js`,\n ['^1.0.0', '>=5.0.0 <5.12.0'],\n (moduleExports: any) => {\n const redisClientMultiCommandPrototype = moduleExports?.default?.prototype;\n if (isWrapped(redisClientMultiCommandPrototype?.exec)) {\n this._unwrap(redisClientMultiCommandPrototype, 'exec');\n }\n this._wrap(redisClientMultiCommandPrototype, 'exec', this._getPatchMultiCommandsExec());\n if (isWrapped(redisClientMultiCommandPrototype?.execAsPipeline)) {\n this._unwrap(redisClientMultiCommandPrototype, 'execAsPipeline');\n }\n this._wrap(redisClientMultiCommandPrototype, 'execAsPipeline', this._getPatchMultiCommandsExec());\n if (isWrapped(redisClientMultiCommandPrototype?.addCommand)) {\n this._unwrap(redisClientMultiCommandPrototype, 'addCommand');\n }\n this._wrap(redisClientMultiCommandPrototype, 'addCommand', this._getPatchMultiCommandsAddCommand());\n return moduleExports;\n },\n (moduleExports: any) => {\n const redisClientMultiCommandPrototype = moduleExports?.default?.prototype;\n if (isWrapped(redisClientMultiCommandPrototype?.exec)) {\n this._unwrap(redisClientMultiCommandPrototype, 'exec');\n }\n if (isWrapped(redisClientMultiCommandPrototype?.execAsPipeline)) {\n this._unwrap(redisClientMultiCommandPrototype, 'execAsPipeline');\n }\n if (isWrapped(redisClientMultiCommandPrototype?.addCommand)) {\n this._unwrap(redisClientMultiCommandPrototype, 'addCommand');\n }\n },\n );\n\n const clientIndexModule = new InstrumentationNodeModuleFile(\n `${basePackageName}/dist/lib/client/index.js`,\n ['^1.0.0', '>=5.0.0 <5.12.0'],\n (moduleExports: any) => {\n const redisClientPrototype = moduleExports?.default?.prototype;\n if (redisClientPrototype?.multi) {\n if (isWrapped(redisClientPrototype?.multi)) {\n this._unwrap(redisClientPrototype, 'multi');\n }\n this._wrap(redisClientPrototype, 'multi', this._getPatchRedisClientMulti());\n }\n if (redisClientPrototype?.MULTI) {\n if (isWrapped(redisClientPrototype?.MULTI)) {\n this._unwrap(redisClientPrototype, 'MULTI');\n }\n this._wrap(redisClientPrototype, 'MULTI', this._getPatchRedisClientMulti());\n }\n if (isWrapped(redisClientPrototype?.sendCommand)) {\n this._unwrap(redisClientPrototype, 'sendCommand');\n }\n this._wrap(redisClientPrototype, 'sendCommand', this._getPatchRedisClientSendCommand());\n if (isWrapped(redisClientPrototype?.connect)) {\n this._unwrap(redisClientPrototype, 'connect');\n }\n this._wrap(redisClientPrototype, 'connect', this._getPatchedClientConnect());\n return moduleExports;\n },\n (moduleExports: any) => {\n const redisClientPrototype = moduleExports?.default?.prototype;\n if (isWrapped(redisClientPrototype?.multi)) {\n this._unwrap(redisClientPrototype, 'multi');\n }\n if (isWrapped(redisClientPrototype?.MULTI)) {\n this._unwrap(redisClientPrototype, 'MULTI');\n }\n if (isWrapped(redisClientPrototype?.sendCommand)) {\n this._unwrap(redisClientPrototype, 'sendCommand');\n }\n if (isWrapped(redisClientPrototype?.connect)) {\n this._unwrap(redisClientPrototype, 'connect');\n }\n },\n );\n\n return new InstrumentationNodeModuleDefinition(\n basePackageName,\n ['^1.0.0', '>=5.0.0 <5.12.0'],\n (moduleExports: any) => moduleExports,\n () => {},\n [commanderModuleFile, multiCommanderModule, clientIndexModule],\n );\n }\n\n private _getPatchExtendWithCommands(transformCommandArguments: Function) {\n const plugin = this;\n return function extendWithCommandsPatchWrapper(original: Function) {\n return function extendWithCommandsPatch(this: any, config: any) {\n if (config?.BaseClass?.name !== 'RedisClient') {\n return original.apply(this, arguments);\n }\n const origExecutor = config.executor;\n config.executor = function (this: any, command: any, args: any) {\n const redisCommandArguments = transformCommandArguments(command, args).args;\n return plugin._traceClientCommand(origExecutor, this, arguments, redisCommandArguments);\n };\n return original.apply(this, arguments);\n };\n };\n }\n\n private _getPatchMultiCommandsExec() {\n const plugin = this;\n return function execPatchWrapper(original: Function) {\n return function execPatch(this: any) {\n const execRes = original.apply(this, arguments);\n if (typeof execRes?.then !== 'function') {\n DEBUG_BUILD && debug.error('non-promise result when patching exec/execAsPipeline');\n return execRes;\n }\n return execRes\n .then((redisRes: unknown[]) => {\n const openSpans: OpenSpanInfo[] = this[OTEL_OPEN_SPANS];\n plugin._endSpansWithRedisReplies(openSpans, redisRes);\n return redisRes;\n })\n .catch((err: any) => {\n const openSpans: OpenSpanInfo[] = this[OTEL_OPEN_SPANS];\n if (!openSpans) {\n DEBUG_BUILD && debug.error('cannot find open spans to end for multi/pipeline');\n } else {\n const replies =\n err.constructor.name === 'MultiErrorReply'\n ? (err as MultiErrorReply).replies\n : new Array(openSpans.length).fill(err);\n plugin._endSpansWithRedisReplies(openSpans, replies);\n }\n return Promise.reject(err);\n });\n };\n };\n }\n\n private _getPatchMultiCommandsAddCommand() {\n const plugin = this;\n return function addCommandWrapper(original: Function) {\n return function addCommandPatch(this: any, args: any) {\n return plugin._traceClientCommand(original, this, arguments, args);\n };\n };\n }\n\n private _getPatchRedisClientMulti() {\n return function multiPatchWrapper(original: Function) {\n return function multiPatch(this: any) {\n const multiRes: any = original.apply(this, arguments);\n multiRes[MULTI_COMMAND_OPTIONS] = this.options;\n return multiRes;\n };\n };\n }\n\n private _getPatchRedisClientSendCommand() {\n const plugin = this;\n return function sendCommandWrapper(original: Function) {\n return function sendCommandPatch(this: any, args: any) {\n return plugin._traceClientCommand(original, this, arguments, args);\n };\n };\n }\n\n private _getPatchedClientConnect() {\n return function connectWrapper(original: Function) {\n return function patchedConnect(this: any) {\n const attributes = getClientAttributes(this.options);\n const span = startInactiveSpan({\n name: `${RedisInstrumentationV4_V5.COMPONENT}-connect`,\n kind: SPAN_KIND.CLIENT,\n attributes,\n });\n const res = withActiveSpan(span, () => original.apply(this));\n return res.then(\n (result: any) => {\n span.end();\n return result;\n },\n (error: Error) => {\n endSpan(span, error);\n return Promise.reject(error);\n },\n );\n };\n };\n }\n\n _traceClientCommand(\n origFunction: Function,\n origThis: any,\n origArguments: IArguments,\n redisCommandArguments: Array<string | Buffer>,\n ): any {\n const clientOptions = origThis.options || origThis[MULTI_COMMAND_OPTIONS];\n const commandName = redisCommandArguments[0] as string;\n const commandArgs = redisCommandArguments.slice(1);\n const attributes = getClientAttributes(clientOptions);\n const dbStatement = defaultDbStatementSerializer(commandName, commandArgs);\n if (dbStatement != null) {\n // oxlint-disable-next-line typescript/no-deprecated\n attributes[DB_STATEMENT] = dbStatement;\n }\n const span = startInactiveSpan({\n name: `${RedisInstrumentationV4_V5.COMPONENT}-${commandName}`,\n kind: SPAN_KIND.CLIENT,\n attributes,\n });\n const res = withActiveSpan(span, () => origFunction.apply(origThis, origArguments));\n if (res instanceof Promise) {\n res.then(\n (redisRes: unknown) => {\n this._endSpanWithResponse(span, commandName, commandArgs, redisRes, undefined);\n },\n (err: Error) => {\n this._endSpanWithResponse(span, commandName, commandArgs, null, err);\n },\n );\n } else {\n const redisClientMultiCommand: any = res;\n redisClientMultiCommand[OTEL_OPEN_SPANS] = redisClientMultiCommand[OTEL_OPEN_SPANS] || [];\n redisClientMultiCommand[OTEL_OPEN_SPANS].push({\n span,\n commandName,\n commandArgs,\n });\n }\n return res;\n }\n\n _endSpansWithRedisReplies(openSpans: OpenSpanInfo[] | undefined, replies: unknown[]): void {\n if (!openSpans) {\n DEBUG_BUILD && debug.error('cannot find open spans to end for redis multi/pipeline');\n return;\n }\n if (replies.length !== openSpans.length) {\n DEBUG_BUILD && debug.error('number of multi command spans does not match response from redis');\n return;\n }\n for (let i = 0; i < openSpans.length; i++) {\n const { span, commandName, commandArgs } = openSpans[i]!;\n const currCommandRes = replies[i];\n const [res, err] = currCommandRes instanceof Error ? [null, currCommandRes] : [currCommandRes, undefined];\n this._endSpanWithResponse(span, commandName, commandArgs, res, err);\n }\n }\n\n _endSpanWithResponse(\n span: Span,\n commandName: string,\n commandArgs: Array<string | Buffer>,\n response: unknown,\n error: Error | null | undefined,\n ): void {\n if (!error) {\n runResponseHook(this.getConfig().responseHook, span, commandName, commandArgs, response);\n }\n endSpan(span, error);\n }\n}\n\n// ---- RedisInstrumentation (wrapper) ----\n\nexport class RedisInstrumentation extends InstrumentationBase<RedisInstrumentationConfig> {\n private instrumentationV2_V3: RedisInstrumentationV2_V3;\n private instrumentationV4_V5: RedisInstrumentationV4_V5;\n private initialized = false;\n\n constructor(config: RedisInstrumentationConfig = {}) {\n super(PACKAGE_NAME, SDK_VERSION, config);\n this.instrumentationV2_V3 = new RedisInstrumentationV2_V3(this.getConfig());\n this.instrumentationV4_V5 = new RedisInstrumentationV4_V5(this.getConfig());\n this.initialized = true;\n }\n\n override setConfig(config: RedisInstrumentationConfig = {}): void {\n super.setConfig(config);\n if (!this.initialized) {\n return;\n }\n this.instrumentationV2_V3.setConfig(config);\n this.instrumentationV4_V5.setConfig(config);\n }\n\n init() {}\n\n override getModuleDefinitions() {\n return [...this.instrumentationV2_V3.getModuleDefinitions(), ...this.instrumentationV4_V5.getModuleDefinitions()];\n }\n\n override setTracerProvider(tracerProvider: TracerProvider): void {\n super.setTracerProvider(tracerProvider);\n if (!this.initialized) {\n return;\n }\n this.instrumentationV2_V3.setTracerProvider(tracerProvider);\n this.instrumentationV4_V5.setTracerProvider(tracerProvider);\n }\n\n override enable(): void {\n super.enable();\n if (!this.initialized) {\n return;\n }\n this.instrumentationV2_V3.enable();\n this.instrumentationV4_V5.enable();\n }\n\n override disable(): void {\n super.disable();\n if (!this.initialized) {\n return;\n }\n this.instrumentationV2_V3.disable();\n this.instrumentationV4_V5.disable();\n }\n}\n"],"names":[],"mappings":";;;;;;;;AA+BA,MAAM,YAAA,GAAe,+BAAA;AACrB,MAAM,MAAA,GAAS,oBAAA;AAoCf,MAAM,eAAA,0BAAyB,gDAAgD,CAAA;AAC/E,MAAM,qBAAA,0BAA+B,2DAA2D,CAAA;AAIhG,SAAS,OAAA,CAAQ,MAAY,GAAA,EAAqC;AAChE,EAAA,IAAI,GAAA,EAAK;AACP,IAAA,IAAA,CAAK,UAAU,EAAE,IAAA,EAAM,mBAAmB,OAAA,EAAS,GAAA,CAAI,SAAS,CAAA;AAAA,EAClE;AACA,EAAA,IAAA,CAAK,GAAA,EAAI;AACX;AAEA,SAAS,eAAA,CACP,YA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1D,IAAA,IAAA,CAAK,oBAAA,CAAqB,kBAAkB,cAAc,CAAA;AAAA,EAC5D;AAAA,EAES,MAAA,GAAe;AACtB,IAAA,KAAA,CAAM,MAAA,EAAO;AACb,IAAA,IAAI,CAAC,KAAK,WAAA,EAAa;AACrB,MAAA;AAAA,IACF;AACA,IAAA,IAAA,CAAK,qBAAqB,MAAA,EAAO;AACjC,IAAA,IAAA,CAAK,qBAAqB,MAAA,EAAO;AAAA,EACnC;AAAA,EAES,OAAA,GAAgB;AACvB,IAAA,KAAA,CAAM,OAAA,EAAQ;AACd,IAAA,IAAI,CAAC,KAAK,WAAA,EAAa;AACrB,MAAA;AAAA,IACF;AACA,IAAA,IAAA,CAAK,qBAAqB,OAAA,EAAQ;AAClC,IAAA,IAAA,CAAK,qBAAqB,OAAA,EAAQ;AAAA,EACpC;AACF;;;;"}
@@ -1,5 +0,0 @@
1
- const ATTR_DB_CONNECTION_STRING = "db.connection_string";
2
- const DB_SYSTEM_VALUE_REDIS = "redis";
3
-
4
- export { ATTR_DB_CONNECTION_STRING, DB_SYSTEM_VALUE_REDIS };
5
- //# sourceMappingURL=semconv.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"semconv.js","sources":["../../../../../../src/integrations/tracing/redis/vendored/semconv.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n *\n * NOTICE from the Sentry authors:\n * - Vendored from: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/instrumentation-redis-v0.62.0/packages/instrumentation-redis\n * - Upstream version: @opentelemetry/instrumentation-redis@0.62.0\n * - Minor TypeScript adjustments for this repository's compiler settings\n */\n/* eslint-disable -- vendored @opentelemetry/instrumentation-redis */\n\n/*\n * This file contains a copy of unstable semantic convention definitions\n * used by the vendored redis/ioredis instrumentations.\n * @see https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv\n */\n\n// Deprecated constants kept for backwards compatibility with older semconv\nexport const ATTR_DB_CONNECTION_STRING = 'db.connection_string';\nexport const DB_SYSTEM_NAME_VALUE_REDIS = 'redis';\nexport const DB_SYSTEM_VALUE_REDIS = 'redis';\n"],"names":[],"mappings":"AAkBO,MAAM,yBAAA,GAA4B;AAElC,MAAM,qBAAA,GAAwB;;;;"}
@@ -1,18 +0,0 @@
1
- import { TediousInstrumentation } from './vendored/instrumentation.js';
2
- import { defineIntegration } from '@sentry/core';
3
- import { generateInstrumentOnce } from '@sentry/node-core';
4
-
5
- const INTEGRATION_NAME = "Tedious";
6
- const instrumentTedious = generateInstrumentOnce(INTEGRATION_NAME, () => new TediousInstrumentation({}));
7
- const _tediousIntegration = (() => {
8
- return {
9
- name: INTEGRATION_NAME,
10
- setupOnce() {
11
- instrumentTedious();
12
- }
13
- };
14
- });
15
- const tediousIntegration = defineIntegration(_tediousIntegration);
16
-
17
- export { instrumentTedious, tediousIntegration };
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/integrations/tracing/tedious/index.ts"],"sourcesContent":["import { TediousInstrumentation } from './vendored/instrumentation';\nimport type { IntegrationFn } from '@sentry/core';\nimport { defineIntegration } from '@sentry/core';\nimport { generateInstrumentOnce } from '@sentry/node-core';\n\nconst INTEGRATION_NAME = 'Tedious' as const;\n\nexport const instrumentTedious = generateInstrumentOnce(INTEGRATION_NAME, () => new TediousInstrumentation({}));\n\nconst _tediousIntegration = (() => {\n return {\n name: INTEGRATION_NAME,\n setupOnce() {\n instrumentTedious();\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Adds Sentry tracing instrumentation for the [tedious](https://www.npmjs.com/package/tedious) library.\n *\n * For more information, see the [`tediousIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/tedious/).\n *\n * @example\n * ```javascript\n * const Sentry = require('@sentry/node');\n *\n * Sentry.init({\n * integrations: [Sentry.tediousIntegration()],\n * });\n * ```\n */\nexport const tediousIntegration = defineIntegration(_tediousIntegration);\n"],"names":[],"mappings":";;;;AAKA,MAAM,gBAAA,GAAmB,SAAA;AAElB,MAAM,iBAAA,GAAoB,uBAAuB,gBAAA,EAAkB,MAAM,IAAI,sBAAA,CAAuB,EAAE,CAAC;AAE9G,MAAM,uBAAuB,MAAM;AACjC,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,gBAAA;AAAA,IACN,SAAA,GAAY;AACV,MAAA,iBAAA,EAAkB;AAAA,IACpB;AAAA,GACF;AACF,CAAA,CAAA;AAgBO,MAAM,kBAAA,GAAqB,kBAAkB,mBAAmB;;;;"}
@@ -1,152 +0,0 @@
1
- import { EventEmitter } from 'events';
2
- import { InstrumentationBase, InstrumentationNodeModuleDefinition, isWrapped } from '@opentelemetry/instrumentation';
3
- import { NET_PEER_PORT, NET_PEER_NAME, DB_USER, DB_STATEMENT, DB_NAME, DB_SYSTEM } from '@sentry/conventions/attributes';
4
- import { ATTR_DB_SQL_TABLE, DB_SYSTEM_VALUE_MSSQL } from './semconv.js';
5
- import { getSpanName, once } from './utils.js';
6
- import { SDK_VERSION, startInactiveSpan, SPAN_KIND, withActiveSpan, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SPAN_STATUS_ERROR } from '@sentry/core';
7
-
8
- const PACKAGE_NAME = "@sentry/instrumentation-tedious";
9
- const CURRENT_DATABASE = /* @__PURE__ */ Symbol("opentelemetry.instrumentation-tedious.current-database");
10
- const PATCHED_METHODS = ["callProcedure", "execSql", "execSqlBatch", "execBulkLoad", "prepare", "execute"];
11
- function setDatabase(databaseName) {
12
- Object.defineProperty(this, CURRENT_DATABASE, {
13
- value: databaseName,
14
- writable: true
15
- });
16
- }
17
- const _TediousInstrumentation = class _TediousInstrumentation extends InstrumentationBase {
18
- constructor(config = {}) {
19
- super(PACKAGE_NAME, SDK_VERSION, config);
20
- }
21
- init() {
22
- return [
23
- new InstrumentationNodeModuleDefinition(
24
- _TediousInstrumentation.COMPONENT,
25
- [">=1.11.0 <20"],
26
- (moduleExports) => {
27
- const ConnectionPrototype = moduleExports.Connection.prototype;
28
- for (const method of PATCHED_METHODS) {
29
- if (isWrapped(ConnectionPrototype[method])) {
30
- this._unwrap(ConnectionPrototype, method);
31
- }
32
- this._wrap(ConnectionPrototype, method, this._patchQuery(method));
33
- }
34
- if (isWrapped(ConnectionPrototype.connect)) {
35
- this._unwrap(ConnectionPrototype, "connect");
36
- }
37
- this._wrap(ConnectionPrototype, "connect", this._patchConnect);
38
- return moduleExports;
39
- },
40
- (moduleExports) => {
41
- if (moduleExports === void 0) return;
42
- const ConnectionPrototype = moduleExports.Connection.prototype;
43
- for (const method of PATCHED_METHODS) {
44
- this._unwrap(ConnectionPrototype, method);
45
- }
46
- this._unwrap(ConnectionPrototype, "connect");
47
- }
48
- )
49
- ];
50
- }
51
- _patchConnect(original) {
52
- return function patchedConnect() {
53
- setDatabase.call(this, this.config?.options?.database);
54
- this.removeListener("databaseChange", setDatabase);
55
- this.on("databaseChange", setDatabase);
56
- this.once("end", () => {
57
- this.removeListener("databaseChange", setDatabase);
58
- });
59
- return original.apply(this, arguments);
60
- };
61
- }
62
- _patchQuery(operation) {
63
- return (originalMethod) => {
64
- const thisPlugin = this;
65
- function patchedMethod(request) {
66
- if (!(request instanceof EventEmitter)) {
67
- thisPlugin._diag.warn(`Unexpected invocation of patched ${operation} method. Span not recorded`);
68
- return originalMethod.apply(this, arguments);
69
- }
70
- let procCount = 0;
71
- let statementCount = 0;
72
- const incrementStatementCount = () => statementCount++;
73
- const incrementProcCount = () => procCount++;
74
- const databaseName = this[CURRENT_DATABASE];
75
- const sql = ((request2) => {
76
- if (request2.sqlTextOrProcedure === "sp_prepare" && request2.parametersByName?.stmt?.value) {
77
- return request2.parametersByName.stmt.value;
78
- }
79
- return request2.sqlTextOrProcedure;
80
- })(request);
81
- const attributes = {
82
- [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: "auto.db.otel.tedious",
83
- // eslint-disable-next-line typescript/no-deprecated
84
- [DB_SYSTEM]: DB_SYSTEM_VALUE_MSSQL,
85
- // eslint-disable-next-line typescript/no-deprecated
86
- [DB_NAME]: databaseName,
87
- // >=4 uses `authentication` object; older versions just userName and password pair
88
- // eslint-disable-next-line typescript/no-deprecated
89
- [DB_USER]: this.config?.userName ?? this.config?.authentication?.options?.userName,
90
- // eslint-disable-next-line typescript/no-deprecated
91
- [DB_STATEMENT]: sql,
92
- // eslint-disable-next-line typescript/no-deprecated
93
- [ATTR_DB_SQL_TABLE]: request.table,
94
- // eslint-disable-next-line typescript/no-deprecated
95
- [NET_PEER_NAME]: this.config?.server,
96
- // eslint-disable-next-line typescript/no-deprecated
97
- [NET_PEER_PORT]: this.config?.options?.port
98
- };
99
- const span = startInactiveSpan({
100
- name: getSpanName(operation, databaseName, sql, request.table),
101
- kind: SPAN_KIND.CLIENT,
102
- attributes
103
- });
104
- const endSpan = once((err) => {
105
- request.removeListener("done", incrementStatementCount);
106
- request.removeListener("doneInProc", incrementStatementCount);
107
- request.removeListener("doneProc", incrementProcCount);
108
- request.removeListener("error", endSpan);
109
- this.removeListener("end", endSpan);
110
- span.setAttribute("tedious.procedure_count", procCount);
111
- span.setAttribute("tedious.statement_count", statementCount);
112
- if (err) {
113
- span.setStatus({
114
- code: SPAN_STATUS_ERROR,
115
- message: err.message
116
- });
117
- }
118
- span.end();
119
- });
120
- request.on("done", incrementStatementCount);
121
- request.on("doneInProc", incrementStatementCount);
122
- request.on("doneProc", incrementProcCount);
123
- request.once("error", endSpan);
124
- this.on("end", endSpan);
125
- if (typeof request.callback === "function") {
126
- thisPlugin._wrap(request, "callback", thisPlugin._patchCallbackQuery(endSpan));
127
- } else {
128
- thisPlugin._diag.error("Expected request.callback to be a function");
129
- }
130
- return withActiveSpan(span, () => originalMethod.apply(this, arguments));
131
- }
132
- Object.defineProperty(patchedMethod, "length", {
133
- value: originalMethod.length,
134
- writable: false
135
- });
136
- return patchedMethod;
137
- };
138
- }
139
- _patchCallbackQuery(endSpan) {
140
- return (originalCallback) => {
141
- return function(err, _rowCount, _rows) {
142
- endSpan(err);
143
- return originalCallback.apply(this, arguments);
144
- };
145
- };
146
- }
147
- };
148
- _TediousInstrumentation.COMPONENT = "tedious";
149
- let TediousInstrumentation = _TediousInstrumentation;
150
-
151
- export { TediousInstrumentation };
152
- //# sourceMappingURL=instrumentation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"instrumentation.js","sources":["../../../../../../src/integrations/tracing/tedious/vendored/instrumentation.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n *\n * NOTICE from the Sentry authors:\n * - Vendored from: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/15ef7506553f631ea4181391e0c5725a56f0d082/packages/instrumentation-tedious\n * - Upstream version: @opentelemetry/instrumentation-tedious@0.37.0\n * - Minor TypeScript strictness adjustments\n * - Span creation migrated to the @sentry/core API; origin folded into span creation\n */\n\nimport { EventEmitter } from 'events';\nimport type { InstrumentationConfig } from '@opentelemetry/instrumentation';\nimport { InstrumentationBase, InstrumentationNodeModuleDefinition, isWrapped } from '@opentelemetry/instrumentation';\nimport {\n DB_NAME,\n DB_STATEMENT,\n DB_SYSTEM,\n DB_USER,\n NET_PEER_NAME,\n NET_PEER_PORT,\n} from '@sentry/conventions/attributes';\nimport { DB_SYSTEM_VALUE_MSSQL, ATTR_DB_SQL_TABLE } from './semconv';\nimport type * as tedious from './tedious-types';\nimport { getSpanName, once } from './utils';\nimport type { SpanAttributes } from '@sentry/core';\nimport {\n SDK_VERSION,\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n SPAN_KIND,\n SPAN_STATUS_ERROR,\n startInactiveSpan,\n withActiveSpan,\n} from '@sentry/core';\n\nconst PACKAGE_NAME = '@sentry/instrumentation-tedious';\n\nconst CURRENT_DATABASE = Symbol('opentelemetry.instrumentation-tedious.current-database');\n\nconst PATCHED_METHODS = ['callProcedure', 'execSql', 'execSqlBatch', 'execBulkLoad', 'prepare', 'execute'];\n\ntype UnknownFunction = (...args: any[]) => any;\ntype ApproxConnection = EventEmitter & {\n [CURRENT_DATABASE]: string;\n config: any;\n};\ntype ApproxRequest = EventEmitter & {\n sqlTextOrProcedure: string | undefined;\n callback: any;\n table: string | undefined;\n parametersByName: any;\n};\n\nfunction setDatabase(this: ApproxConnection, databaseName: string) {\n Object.defineProperty(this, CURRENT_DATABASE, {\n value: databaseName,\n writable: true,\n });\n}\n\nexport class TediousInstrumentation extends InstrumentationBase<InstrumentationConfig> {\n static readonly COMPONENT = 'tedious';\n\n constructor(config: InstrumentationConfig = {}) {\n super(PACKAGE_NAME, SDK_VERSION, config);\n }\n\n protected init() {\n return [\n new InstrumentationNodeModuleDefinition(\n TediousInstrumentation.COMPONENT,\n ['>=1.11.0 <20'],\n (moduleExports: typeof tedious) => {\n const ConnectionPrototype: any = moduleExports.Connection.prototype;\n for (const method of PATCHED_METHODS) {\n if (isWrapped(ConnectionPrototype[method])) {\n this._unwrap(ConnectionPrototype, method);\n }\n this._wrap(ConnectionPrototype, method, this._patchQuery(method) as any);\n }\n\n if (isWrapped(ConnectionPrototype.connect)) {\n this._unwrap(ConnectionPrototype, 'connect');\n }\n // oxlint-disable-next-line typescript/unbound-method\n this._wrap(ConnectionPrototype, 'connect', this._patchConnect);\n\n return moduleExports;\n },\n (moduleExports: typeof tedious) => {\n if (moduleExports === undefined) return;\n const ConnectionPrototype: any = moduleExports.Connection.prototype;\n for (const method of PATCHED_METHODS) {\n this._unwrap(ConnectionPrototype, method);\n }\n this._unwrap(ConnectionPrototype, 'connect');\n },\n ),\n ];\n }\n\n private _patchConnect(original: UnknownFunction): UnknownFunction {\n return function patchedConnect(this: ApproxConnection) {\n setDatabase.call(this, this.config?.options?.database);\n\n // remove the listener first in case it's already added\n this.removeListener('databaseChange', setDatabase);\n this.on('databaseChange', setDatabase);\n\n this.once('end', () => {\n this.removeListener('databaseChange', setDatabase);\n });\n return original.apply(this, arguments as unknown as any[]);\n };\n }\n\n private _patchQuery(operation: string) {\n return (originalMethod: UnknownFunction): UnknownFunction => {\n const thisPlugin = this;\n\n function patchedMethod(this: ApproxConnection, request: ApproxRequest) {\n if (!(request instanceof EventEmitter)) {\n thisPlugin._diag.warn(`Unexpected invocation of patched ${operation} method. Span not recorded`);\n return originalMethod.apply(this, arguments as unknown as any[]);\n }\n let procCount = 0;\n let statementCount = 0;\n const incrementStatementCount = () => statementCount++;\n const incrementProcCount = () => procCount++;\n const databaseName = this[CURRENT_DATABASE];\n const sql = (request => {\n // Required for <11.0.9\n if (request.sqlTextOrProcedure === 'sp_prepare' && request.parametersByName?.stmt?.value) {\n return request.parametersByName.stmt.value;\n }\n return request.sqlTextOrProcedure;\n })(request);\n\n const attributes: SpanAttributes = {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.db.otel.tedious',\n // eslint-disable-next-line typescript/no-deprecated\n [DB_SYSTEM]: DB_SYSTEM_VALUE_MSSQL,\n // eslint-disable-next-line typescript/no-deprecated\n [DB_NAME]: databaseName,\n // >=4 uses `authentication` object; older versions just userName and password pair\n // eslint-disable-next-line typescript/no-deprecated\n [DB_USER]: this.config?.userName ?? this.config?.authentication?.options?.userName,\n // eslint-disable-next-line typescript/no-deprecated\n [DB_STATEMENT]: sql,\n // eslint-disable-next-line typescript/no-deprecated\n [ATTR_DB_SQL_TABLE]: request.table,\n // eslint-disable-next-line typescript/no-deprecated\n [NET_PEER_NAME]: this.config?.server,\n // eslint-disable-next-line typescript/no-deprecated\n [NET_PEER_PORT]: this.config?.options?.port,\n };\n const span = startInactiveSpan({\n name: getSpanName(operation, databaseName, sql, request.table),\n kind: SPAN_KIND.CLIENT,\n attributes,\n });\n\n const endSpan = once((err?: any) => {\n request.removeListener('done', incrementStatementCount);\n request.removeListener('doneInProc', incrementStatementCount);\n request.removeListener('doneProc', incrementProcCount);\n request.removeListener('error', endSpan);\n this.removeListener('end', endSpan);\n\n span.setAttribute('tedious.procedure_count', procCount);\n span.setAttribute('tedious.statement_count', statementCount);\n if (err) {\n span.setStatus({\n code: SPAN_STATUS_ERROR,\n message: err.message,\n });\n // TODO(3290): set `error.type` attribute?\n }\n span.end();\n });\n\n request.on('done', incrementStatementCount);\n request.on('doneInProc', incrementStatementCount);\n request.on('doneProc', incrementProcCount);\n request.once('error', endSpan);\n this.on('end', endSpan);\n\n if (typeof request.callback === 'function') {\n thisPlugin._wrap(request, 'callback', thisPlugin._patchCallbackQuery(endSpan));\n } else {\n thisPlugin._diag.error('Expected request.callback to be a function');\n }\n\n return withActiveSpan(span, () => originalMethod.apply(this, arguments as unknown as any[]));\n }\n\n Object.defineProperty(patchedMethod, 'length', {\n value: originalMethod.length,\n writable: false,\n });\n\n return patchedMethod;\n };\n }\n\n private _patchCallbackQuery(endSpan: Function) {\n return (originalCallback: Function) => {\n return function (this: any, err: Error | undefined | null, _rowCount?: number, _rows?: any) {\n endSpan(err);\n return originalCallback.apply(this, arguments);\n };\n };\n }\n}\n"],"names":["request"],"mappings":";;;;;;;AAmCA,MAAM,YAAA,GAAe,iCAAA;AAErB,MAAM,gBAAA,0BAA0B,wDAAwD,CAAA;AAExF,MAAM,kBAAkB,CAAC,eAAA,EAAiB,WAAW,cAAA,EAAgB,cAAA,EAAgB,WAAW,SAAS,CAAA;AAczG,SAAS,YAAoC,YAAA,EAAsB;AACjE,EAAA,MAAA,CAAO,cAAA,CAAe,MAAM,gBAAA,EAAkB;AAAA,IAC5C,KAAA,EAAO,YAAA;AAAA,IACP,QAAA,EAAU;AAAA,GACX,CAAA;AACH;AAEO,MAAM,uBAAA,GAAN,MAAM,uBAAA,SAA+B,mBAAA,CAA2C;AAAA,EAGrF,WAAA,CAAY,MAAA,GAAgC,EAAC,EAAG;AAC9C,IAAA,KAAA,CAAM,YAAA,EAAc,aAAa,MAAM,CAAA;AAAA,EACzC;AAAA,EAEU,IAAA,GAAO;AACf,IAAA,OAAO;AAAA,MACL,IAAI,mCAAA;AAAA,QACF,uBAAA,CAAuB,SAAA;AAAA,QACvB,CAAC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uBAAA,CACK,SAAA,GAAY,SAAA;AADvB,IAAM,sBAAA,GAAN;;;;"}
@@ -1,5 +0,0 @@
1
- const ATTR_DB_SQL_TABLE = "db.sql.table";
2
- const DB_SYSTEM_VALUE_MSSQL = "mssql";
3
-
4
- export { ATTR_DB_SQL_TABLE, DB_SYSTEM_VALUE_MSSQL };
5
- //# sourceMappingURL=semconv.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"semconv.js","sources":["../../../../../../src/integrations/tracing/tedious/vendored/semconv.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n *\n * NOTICE from the Sentry authors:\n * - Vendored from: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/15ef7506553f631ea4181391e0c5725a56f0d082/packages/instrumentation-tedious\n * - Upstream version: @opentelemetry/instrumentation-tedious@0.37.0\n */\n\n/*\n * This file contains a copy of unstable semantic convention definitions\n * used by this package.\n * @see https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv\n */\n\n/**\n * Deprecated, use `db.collection.name` instead.\n *\n * @example \"mytable\"\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n *\n * @deprecated Replaced by `db.collection.name`, but only if not extracting the value from `db.query.text`.\n */\nexport const ATTR_DB_SQL_TABLE = 'db.sql.table' as const;\n\n/**\n * Enum value \"mssql\" for attribute `db.system`.\n *\n * Microsoft SQL Server\n *\n * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const DB_SYSTEM_VALUE_MSSQL = 'mssql' as const;\n"],"names":[],"mappings":"AAwBO,MAAM,iBAAA,GAAoB;AAS1B,MAAM,qBAAA,GAAwB;;;;"}
@@ -1,26 +0,0 @@
1
- function getSpanName(operation, db, sql, bulkLoadTable) {
2
- if (operation === "execBulkLoad" && bulkLoadTable && db) {
3
- return `${operation} ${bulkLoadTable} ${db}`;
4
- }
5
- if (operation === "callProcedure") {
6
- if (db) {
7
- return `${operation} ${sql} ${db}`;
8
- }
9
- return `${operation} ${sql}`;
10
- }
11
- if (db) {
12
- return `${operation} ${db}`;
13
- }
14
- return `${operation}`;
15
- }
16
- const once = (fn) => {
17
- let called = false;
18
- return (...args) => {
19
- if (called) return;
20
- called = true;
21
- return fn(...args);
22
- };
23
- };
24
-
25
- export { getSpanName, once };
26
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sources":["../../../../../../src/integrations/tracing/tedious/vendored/utils.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n *\n * NOTICE from the Sentry authors:\n * - Vendored from: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/15ef7506553f631ea4181391e0c5725a56f0d082/packages/instrumentation-tedious\n * - Upstream version: @opentelemetry/instrumentation-tedious@0.37.0\n */\n/* eslint-disable */\n\n/**\n * The span name SHOULD be set to a low cardinality value\n * representing the statement executed on the database.\n *\n * @returns Operation executed on Tedious Connection. Does not map to SQL statement in any way.\n */\nexport function getSpanName(\n operation: string,\n db: string | undefined,\n sql: string | undefined,\n bulkLoadTable: string | undefined,\n): string {\n if (operation === 'execBulkLoad' && bulkLoadTable && db) {\n return `${operation} ${bulkLoadTable} ${db}`;\n }\n if (operation === 'callProcedure') {\n // `sql` refers to procedure name with `callProcedure`\n if (db) {\n return `${operation} ${sql} ${db}`;\n }\n return `${operation} ${sql}`;\n }\n // do not use `sql` in general case because of high-cardinality\n if (db) {\n return `${operation} ${db}`;\n }\n return `${operation}`;\n}\n\nexport const once = (fn: Function) => {\n let called = false;\n return (...args: unknown[]) => {\n if (called) return;\n called = true;\n return fn(...args);\n };\n};\n"],"names":[],"mappings":"AAgBO,SAAS,WAAA,CACd,SAAA,EACA,EAAA,EACA,GAAA,EACA,aAAA,EACQ;AACR,EAAA,IAAI,SAAA,KAAc,cAAA,IAAkB,aAAA,IAAiB,EAAA,EAAI;AACvD,IAAA,OAAO,CAAA,EAAG,SAAS,CAAA,CAAA,EAAI,aAAa,IAAI,EAAE,CAAA,CAAA;AAAA,EAC5C;AACA,EAAA,IAAI,cAAc,eAAA,EAAiB;AAEjC,IAAA,IAAI,EAAA,EAAI;AACN,MAAA,OAAO,CAAA,EAAG,SAAS,CAAA,CAAA,EAAI,GAAG,IAAI,EAAE,CAAA,CAAA;AAAA,IAClC;AACA,IAAA,OAAO,CAAA,EAAG,SAAS,CAAA,CAAA,EAAI,GAAG,CAAA,CAAA;AAAA,EAC5B;AAEA,EAAA,IAAI,EAAA,EAAI;AACN,IAAA,OAAO,CAAA,EAAG,SAAS,CAAA,CAAA,EAAI,EAAE,CAAA,CAAA;AAAA,EAC3B;AACA,EAAA,OAAO,GAAG,SAAS,CAAA,CAAA;AACrB;AAEO,MAAM,IAAA,GAAO,CAAC,EAAA,KAAiB;AACpC,EAAA,IAAI,MAAA,GAAS,KAAA;AACb,EAAA,OAAO,IAAI,IAAA,KAAoB;AAC7B,IAAA,IAAI,MAAA,EAAQ;AACZ,IAAA,MAAA,GAAS,IAAA;AACT,IAAA,OAAO,EAAA,CAAG,GAAG,IAAI,CAAA;AAAA,EACnB,CAAA;AACF;;;;"}
@@ -1,4 +0,0 @@
1
- const INTEGRATION_NAME = "VercelAI";
2
-
3
- export { INTEGRATION_NAME };
4
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sources":["../../../../../src/integrations/tracing/vercelai/constants.ts"],"sourcesContent":["export const INTEGRATION_NAME = 'VercelAI' as const;\n"],"names":[],"mappings":"AAAO,MAAM,gBAAA,GAAmB;;;;"}
@@ -1,33 +0,0 @@
1
- import { defineIntegration, extendIntegration, addVercelAiProcessors } from '@sentry/core';
2
- import { generateInstrumentOnce } from '@sentry/node-core';
3
- import { vercelAiIntegration } from '@sentry/server-utils';
4
- import { INTEGRATION_NAME } from './constants.js';
5
- import { SentryVercelAiInstrumentation } from './instrumentation.js';
6
-
7
- const instrumentVercelAi = generateInstrumentOnce(INTEGRATION_NAME, () => new SentryVercelAiInstrumentation({}));
8
- function shouldForceIntegration(client) {
9
- const modules = client.getIntegrationByName("Modules");
10
- return !!modules?.getModules?.()?.ai;
11
- }
12
- const _vercelAIIntegration = ((options = {}) => {
13
- let instrumentation;
14
- const parentIntegration = vercelAiIntegration(options);
15
- return extendIntegration(parentIntegration, {
16
- options,
17
- setupOnce() {
18
- instrumentation = instrumentVercelAi();
19
- },
20
- afterAllSetup(client) {
21
- const shouldForce = options.force ?? shouldForceIntegration(client);
22
- if (shouldForce) {
23
- addVercelAiProcessors(client);
24
- } else {
25
- instrumentation?.callWhenPatched(() => addVercelAiProcessors(client));
26
- }
27
- }
28
- });
29
- });
30
- const vercelAIIntegration = defineIntegration(_vercelAIIntegration);
31
-
32
- export { instrumentVercelAi, vercelAIIntegration };
33
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/integrations/tracing/vercelai/index.ts"],"sourcesContent":["import type { Client, IntegrationFn } from '@sentry/core';\nimport { addVercelAiProcessors, defineIntegration, extendIntegration } from '@sentry/core';\nimport { generateInstrumentOnce, type modulesIntegration } from '@sentry/node-core';\nimport { vercelAiIntegration as serverUtilsVercelAiIntegration } from '@sentry/server-utils';\nimport { INTEGRATION_NAME } from './constants';\nimport { SentryVercelAiInstrumentation } from './instrumentation';\nimport type { VercelAiOptions } from './types';\n\nexport const instrumentVercelAi = generateInstrumentOnce(INTEGRATION_NAME, () => new SentryVercelAiInstrumentation({}));\n\n/**\n * Determines if the integration should be forced based on environment and package availability.\n * Returns true if the 'ai' package is available.\n */\nfunction shouldForceIntegration(client: Client): boolean {\n const modules = client.getIntegrationByName<ReturnType<typeof modulesIntegration>>('Modules');\n return !!modules?.getModules?.()?.ai;\n}\n\nconst _vercelAIIntegration = ((options: VercelAiOptions = {}) => {\n let instrumentation: undefined | SentryVercelAiInstrumentation;\n\n const parentIntegration = serverUtilsVercelAiIntegration(options);\n\n return extendIntegration(parentIntegration, {\n options,\n setupOnce() {\n instrumentation = instrumentVercelAi();\n },\n afterAllSetup(client) {\n // Auto-detect if we should force the integration when running with 'ai' package available\n // Note that this can only be detected if the 'Modules' integration is available, and running in CJS mode\n const shouldForce = options.force ?? shouldForceIntegration(client);\n\n if (shouldForce) {\n addVercelAiProcessors(client);\n } else {\n instrumentation?.callWhenPatched(() => addVercelAiProcessors(client));\n }\n },\n });\n}) satisfies IntegrationFn;\n\n/**\n * Adds Sentry tracing instrumentation for the [ai](https://www.npmjs.com/package/ai) library.\n *\n * For more information, see the [`ai` documentation](https://sdk.vercel.ai/docs/ai-sdk-core/telemetry).\n *\n * @example\n * ```javascript\n * const Sentry = require('@sentry/node');\n *\n * Sentry.init({\n * integrations: [Sentry.vercelAIIntegration()],\n * });\n * ```\n *\n * This integration adds tracing support to all `ai` function calls.\n * You need to opt-in to collecting spans for a specific call,\n * you can do so by setting `experimental_telemetry.isEnabled` to `true` in the first argument of the function call.\n *\n * ```javascript\n * const result = await generateText({\n * model: openai('gpt-4-turbo'),\n * experimental_telemetry: { isEnabled: true },\n * });\n * ```\n *\n * If you want to collect inputs and outputs for a specific call, you must specifically opt-in to each\n * function call by setting `experimental_telemetry.recordInputs` and `experimental_telemetry.recordOutputs`\n * to `true`.\n *\n * ```javascript\n * const result = await generateText({\n * model: openai('gpt-4-turbo'),\n * experimental_telemetry: { isEnabled: true, recordInputs: true, recordOutputs: true },\n * });\n */\nexport const vercelAIIntegration = defineIntegration(_vercelAIIntegration);\n"],"names":["serverUtilsVercelAiIntegration"],"mappings":";;;;;;AAQO,MAAM,kBAAA,GAAqB,uBAAuB,gBAAA,EAAkB,MAAM,IAAI,6BAAA,CAA8B,EAAE,CAAC;AAMtH,SAAS,uBAAuB,MAAA,EAAyB;AACvD,EAAA,MAAM,OAAA,GAAU,MAAA,CAAO,oBAAA,CAA4D,SAAS,CAAA;AAC5F,EAAA,OAAO,CAAC,CAAC,OAAA,EAAS,UAAA,IAAa,EAAG,EAAA;AACpC;AAEA,MAAM,oBAAA,IAAwB,CAAC,OAAA,GAA2B,EAAC,KAAM;AAC/D,EAAA,IAAI,eAAA;AAEJ,EAAA,MAAM,iBAAA,GAAoBA,oBAA+B,OAAO,CAAA;AAEhE,EAAA,OAAO,kBAAkB,iBAAA,EAAmB;AAAA,IAC1C,OAAA;AAAA,IACA,SAAA,GAAY;AACV,MAAA,eAAA,GAAkB,kBAAA,EAAmB;AAAA,IACvC,CAAA;AAAA,IACA,cAAc,MAAA,EAAQ;AAGpB,MAAA,MAAM,WAAA,GAAc,OAAA,CAAQ,KAAA,IAAS,sBAAA,CAAuB,MAAM,CAAA;AAElE,MAAA,IAAI,WAAA,EAAa;AACf,QAAA,qBAAA,CAAsB,MAAM,CAAA;AAAA,MAC9B,CAAA,MAAO;AACL,QAAA,eAAA,EAAiB,eAAA,CAAgB,MAAM,qBAAA,CAAsB,MAAM,CAAC,CAAA;AAAA,MACtE;AAAA,IACF;AAAA,GACD,CAAA;AACH,CAAA,CAAA;AAqCO,MAAM,mBAAA,GAAsB,kBAAkB,oBAAoB;;;;"}
@@ -1,174 +0,0 @@
1
- import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
2
- import { SDK_VERSION, getClient, handleCallbackErrors, addNonEnumerableProperty, getActiveSpan, _INTERNAL_getSpanContextForToolCallId, withScope, captureException, _INTERNAL_cleanupToolCallSpanContext } from '@sentry/core';
3
- import { INTEGRATION_NAME } from './constants.js';
4
-
5
- const SUPPORTED_VERSIONS = [">=3.0.0 <7"];
6
- const INSTRUMENTED_METHODS = [
7
- "generateText",
8
- "streamText",
9
- "generateObject",
10
- "streamObject",
11
- "embed",
12
- "embedMany",
13
- "rerank"
14
- ];
15
- function isToolError(obj) {
16
- if (typeof obj !== "object" || obj === null) {
17
- return false;
18
- }
19
- const candidate = obj;
20
- return "type" in candidate && "error" in candidate && "toolName" in candidate && "toolCallId" in candidate && candidate.type === "tool-error" && candidate.error instanceof Error;
21
- }
22
- function processToolCallResults(result) {
23
- if (typeof result !== "object" || result === null || !("content" in result)) {
24
- return;
25
- }
26
- if (typeof result.consumeStream === "function") {
27
- return;
28
- }
29
- const resultObj = result;
30
- if (!Array.isArray(resultObj.content)) {
31
- return;
32
- }
33
- captureToolErrors(resultObj.content);
34
- cleanupToolCallSpanContexts(resultObj.content);
35
- }
36
- function captureToolErrors(content) {
37
- for (const item of content) {
38
- if (!isToolError(item)) {
39
- continue;
40
- }
41
- const spanContext = _INTERNAL_getSpanContextForToolCallId(item.toolCallId);
42
- if (spanContext) {
43
- withScope((scope) => {
44
- scope.setContext("trace", {
45
- trace_id: spanContext.traceId,
46
- span_id: spanContext.spanId
47
- });
48
- scope.setTag("vercel.ai.tool.name", item.toolName);
49
- scope.setTag("vercel.ai.tool.callId", item.toolCallId);
50
- scope.setLevel("error");
51
- captureException(item.error, {
52
- mechanism: {
53
- type: "auto.vercelai.otel",
54
- handled: false
55
- }
56
- });
57
- });
58
- } else {
59
- withScope((scope) => {
60
- scope.setTag("vercel.ai.tool.name", item.toolName);
61
- scope.setTag("vercel.ai.tool.callId", item.toolCallId);
62
- scope.setLevel("error");
63
- captureException(item.error, {
64
- mechanism: {
65
- type: "auto.vercelai.otel",
66
- handled: false
67
- }
68
- });
69
- });
70
- }
71
- }
72
- }
73
- function cleanupToolCallSpanContexts(content) {
74
- for (const item of content) {
75
- if (typeof item === "object" && item !== null && "toolCallId" in item && typeof item.toolCallId === "string") {
76
- _INTERNAL_cleanupToolCallSpanContext(item.toolCallId);
77
- }
78
- }
79
- }
80
- function determineRecordingSettings(integrationRecordingOptions, methodTelemetryOptions, telemetryExplicitlyEnabled, defaultInputsEnabled, defaultOutputsEnabled) {
81
- const recordInputs = integrationRecordingOptions?.recordInputs !== void 0 ? integrationRecordingOptions.recordInputs : methodTelemetryOptions.recordInputs !== void 0 ? methodTelemetryOptions.recordInputs : telemetryExplicitlyEnabled === true ? true : defaultInputsEnabled;
82
- const recordOutputs = integrationRecordingOptions?.recordOutputs !== void 0 ? integrationRecordingOptions.recordOutputs : methodTelemetryOptions.recordOutputs !== void 0 ? methodTelemetryOptions.recordOutputs : telemetryExplicitlyEnabled === true ? true : defaultOutputsEnabled;
83
- return { recordInputs, recordOutputs };
84
- }
85
- class SentryVercelAiInstrumentation extends InstrumentationBase {
86
- constructor(config = {}) {
87
- super("@sentry/instrumentation-vercel-ai", SDK_VERSION, config);
88
- this._isPatched = false;
89
- this._callbacks = [];
90
- }
91
- /**
92
- * Initializes the instrumentation by defining the modules to be patched.
93
- */
94
- init() {
95
- const module = new InstrumentationNodeModuleDefinition("ai", SUPPORTED_VERSIONS, this._patch.bind(this));
96
- return module;
97
- }
98
- /**
99
- * Call the provided callback when the module is patched.
100
- * If it has already been patched, the callback will be called immediately.
101
- */
102
- callWhenPatched(callback) {
103
- if (this._isPatched) {
104
- callback();
105
- } else {
106
- this._callbacks.push(callback);
107
- }
108
- }
109
- /**
110
- * Patches module exports to enable Vercel AI telemetry.
111
- */
112
- _patch(moduleExports) {
113
- this._isPatched = true;
114
- this._callbacks.forEach((callback) => callback());
115
- this._callbacks = [];
116
- const generatePatch = (originalMethod) => {
117
- return new Proxy(originalMethod, {
118
- apply: (target, thisArg, args) => {
119
- const existingExperimentalTelemetry = args[0].experimental_telemetry || {};
120
- const isEnabled = existingExperimentalTelemetry.isEnabled;
121
- const client = getClient();
122
- const integration = client?.getIntegrationByName(INTEGRATION_NAME);
123
- const integrationOptions = integration?.options;
124
- const genAI = integration ? client?.getDataCollectionOptions().genAI : void 0;
125
- const { recordInputs, recordOutputs } = determineRecordingSettings(
126
- integrationOptions,
127
- existingExperimentalTelemetry,
128
- isEnabled,
129
- Boolean(genAI?.inputs),
130
- Boolean(genAI?.outputs)
131
- );
132
- args[0].experimental_telemetry = {
133
- ...existingExperimentalTelemetry,
134
- isEnabled: isEnabled !== void 0 ? isEnabled : true,
135
- recordInputs,
136
- recordOutputs
137
- };
138
- return handleCallbackErrors(
139
- () => Reflect.apply(target, thisArg, args),
140
- (error) => {
141
- if (error && typeof error === "object") {
142
- addNonEnumerableProperty(error, "_sentry_active_span", getActiveSpan());
143
- }
144
- },
145
- () => {
146
- },
147
- (result) => {
148
- processToolCallResults(result);
149
- }
150
- );
151
- }
152
- });
153
- };
154
- if (Object.prototype.toString.call(moduleExports) === "[object Module]") {
155
- for (const method of INSTRUMENTED_METHODS) {
156
- if (moduleExports[method] != null) {
157
- moduleExports[method] = generatePatch(moduleExports[method]);
158
- }
159
- }
160
- return moduleExports;
161
- } else {
162
- const patchedModuleExports = INSTRUMENTED_METHODS.reduce((acc, curr) => {
163
- if (moduleExports[curr] != null) {
164
- acc[curr] = generatePatch(moduleExports[curr]);
165
- }
166
- return acc;
167
- }, {});
168
- return { ...moduleExports, ...patchedModuleExports };
169
- }
170
- }
171
- }
172
-
173
- export { SentryVercelAiInstrumentation, cleanupToolCallSpanContexts, determineRecordingSettings, processToolCallResults };
174
- //# sourceMappingURL=instrumentation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"instrumentation.js","sources":["../../../../../src/integrations/tracing/vercelai/instrumentation.ts"],"sourcesContent":["import type { InstrumentationConfig, InstrumentationModuleDefinition } from '@opentelemetry/instrumentation';\nimport { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';\nimport {\n _INTERNAL_cleanupToolCallSpanContext,\n _INTERNAL_getSpanContextForToolCallId,\n addNonEnumerableProperty,\n captureException,\n getActiveSpan,\n getClient,\n handleCallbackErrors,\n SDK_VERSION,\n withScope,\n} from '@sentry/core';\nimport { INTEGRATION_NAME } from './constants';\nimport type { TelemetrySettings, VercelAiIntegration } from './types';\n\nconst SUPPORTED_VERSIONS = ['>=3.0.0 <7'];\n\n// List of patched methods\n// From: https://sdk.vercel.ai/docs/ai-sdk-core/telemetry#collected-data\nconst INSTRUMENTED_METHODS = [\n 'generateText',\n 'streamText',\n 'generateObject',\n 'streamObject',\n 'embed',\n 'embedMany',\n 'rerank',\n] as const;\n\ninterface MethodFirstArg extends Record<string, unknown> {\n experimental_telemetry?: TelemetrySettings;\n}\n\ntype MethodArgs = [MethodFirstArg, ...unknown[]];\n\ntype PatchedModuleExports = Record<(typeof INSTRUMENTED_METHODS)[number], (...args: MethodArgs) => unknown> &\n Record<string, unknown>;\n\ninterface RecordingOptions {\n recordInputs?: boolean;\n recordOutputs?: boolean;\n}\n\ninterface ToolError {\n type: 'tool-error' | 'tool-result' | 'tool-call';\n toolCallId: string;\n toolName: string;\n input?: {\n [key: string]: unknown;\n };\n error: Error;\n dynamic?: boolean;\n}\n\nfunction isToolError(obj: unknown): obj is ToolError {\n if (typeof obj !== 'object' || obj === null) {\n return false;\n }\n\n const candidate = obj as Record<string, unknown>;\n return (\n 'type' in candidate &&\n 'error' in candidate &&\n 'toolName' in candidate &&\n 'toolCallId' in candidate &&\n candidate.type === 'tool-error' &&\n candidate.error instanceof Error\n );\n}\n\n/**\n * Process tool call results: capture tool errors and clean up span context mappings.\n *\n * Error checking runs first (needs span context for linking), then cleanup removes all entries.\n * Tool errors are not rejected in Vercel AI V5 — they appear as metadata in the result content.\n */\nexport function processToolCallResults(result: unknown): void {\n if (typeof result !== 'object' || result === null || !('content' in result)) {\n return;\n }\n\n // A streamed result derives `content` from a stream that hasn't settled, so reading it both\n // starts draining the stream and hands back a promise we drop — which surfaces as an unhandled\n // rejection once the stream fails. Streamed tool errors were never processed here anyway.\n if (typeof (result as { consumeStream?: unknown }).consumeStream === 'function') {\n return;\n }\n\n const resultObj = result as { content: Array<object> };\n if (!Array.isArray(resultObj.content)) {\n return;\n }\n\n captureToolErrors(resultObj.content);\n cleanupToolCallSpanContexts(resultObj.content);\n}\n\nfunction captureToolErrors(content: Array<object>): void {\n for (const item of content) {\n if (!isToolError(item)) {\n continue;\n }\n\n // Try to get the span context associated with this tool call ID\n const spanContext = _INTERNAL_getSpanContextForToolCallId(item.toolCallId);\n\n if (spanContext) {\n // We have the span context, so link the error using span and trace IDs\n withScope(scope => {\n scope.setContext('trace', {\n trace_id: spanContext.traceId,\n span_id: spanContext.spanId,\n });\n\n scope.setTag('vercel.ai.tool.name', item.toolName);\n scope.setTag('vercel.ai.tool.callId', item.toolCallId);\n scope.setLevel('error');\n\n captureException(item.error, {\n mechanism: {\n type: 'auto.vercelai.otel',\n handled: false,\n },\n });\n });\n } else {\n // Fallback: capture without span linking\n withScope(scope => {\n scope.setTag('vercel.ai.tool.name', item.toolName);\n scope.setTag('vercel.ai.tool.callId', item.toolCallId);\n scope.setLevel('error');\n\n captureException(item.error, {\n mechanism: {\n type: 'auto.vercelai.otel',\n handled: false,\n },\n });\n });\n }\n }\n}\n\n/**\n * Remove span context entries for all completed tool calls in the content array.\n */\nexport function cleanupToolCallSpanContexts(content: Array<object>): void {\n for (const item of content) {\n if (\n typeof item === 'object' &&\n item !== null &&\n 'toolCallId' in item &&\n typeof (item as Record<string, unknown>).toolCallId === 'string'\n ) {\n _INTERNAL_cleanupToolCallSpanContext((item as Record<string, unknown>).toolCallId as string);\n }\n }\n}\n\n/**\n * Determines whether to record inputs and outputs for Vercel AI telemetry based on the configuration hierarchy.\n *\n * The order of precedence is:\n * 1. The vercel ai integration options\n * 2. The experimental_telemetry options in the vercel ai method calls\n * 3. When telemetry is explicitly enabled (isEnabled: true), default to recording\n * 4. Otherwise, use the dataCollection.genAI settings from client options\n */\nexport function determineRecordingSettings(\n integrationRecordingOptions: RecordingOptions | undefined,\n methodTelemetryOptions: RecordingOptions,\n telemetryExplicitlyEnabled: boolean | undefined,\n defaultInputsEnabled: boolean,\n defaultOutputsEnabled: boolean,\n): { recordInputs: boolean; recordOutputs: boolean } {\n const recordInputs =\n integrationRecordingOptions?.recordInputs !== undefined\n ? integrationRecordingOptions.recordInputs\n : methodTelemetryOptions.recordInputs !== undefined\n ? methodTelemetryOptions.recordInputs\n : telemetryExplicitlyEnabled === true\n ? true // When telemetry is explicitly enabled, default to recording inputs\n : defaultInputsEnabled;\n\n const recordOutputs =\n integrationRecordingOptions?.recordOutputs !== undefined\n ? integrationRecordingOptions.recordOutputs\n : methodTelemetryOptions.recordOutputs !== undefined\n ? methodTelemetryOptions.recordOutputs\n : telemetryExplicitlyEnabled === true\n ? true // When telemetry is explicitly enabled, default to recording outputs\n : defaultOutputsEnabled;\n\n return { recordInputs, recordOutputs };\n}\n\n/**\n * This detects is added by the Sentry Vercel AI Integration to detect if the integration should\n * be enabled.\n *\n * It also patches the `ai` module to enable Vercel AI telemetry automatically for all methods.\n */\nexport class SentryVercelAiInstrumentation extends InstrumentationBase {\n private _isPatched = false;\n private _callbacks: (() => void)[] = [];\n\n public constructor(config: InstrumentationConfig = {}) {\n super('@sentry/instrumentation-vercel-ai', SDK_VERSION, config);\n }\n\n /**\n * Initializes the instrumentation by defining the modules to be patched.\n */\n public init(): InstrumentationModuleDefinition {\n const module = new InstrumentationNodeModuleDefinition('ai', SUPPORTED_VERSIONS, this._patch.bind(this));\n return module;\n }\n\n /**\n * Call the provided callback when the module is patched.\n * If it has already been patched, the callback will be called immediately.\n */\n public callWhenPatched(callback: () => void): void {\n if (this._isPatched) {\n callback();\n } else {\n this._callbacks.push(callback);\n }\n }\n\n /**\n * Patches module exports to enable Vercel AI telemetry.\n */\n private _patch(moduleExports: PatchedModuleExports): unknown {\n this._isPatched = true;\n\n this._callbacks.forEach(callback => callback());\n this._callbacks = [];\n\n const generatePatch = <T extends (...args: MethodArgs) => unknown>(originalMethod: T): T => {\n return new Proxy(originalMethod, {\n apply: (target, thisArg, args: MethodArgs) => {\n const existingExperimentalTelemetry = args[0].experimental_telemetry || {};\n const isEnabled = existingExperimentalTelemetry.isEnabled;\n\n const client = getClient();\n const integration = client?.getIntegrationByName<VercelAiIntegration>(INTEGRATION_NAME);\n const integrationOptions = integration?.options;\n const genAI = integration ? client?.getDataCollectionOptions().genAI : undefined;\n\n const { recordInputs, recordOutputs } = determineRecordingSettings(\n integrationOptions,\n existingExperimentalTelemetry,\n isEnabled,\n Boolean(genAI?.inputs),\n Boolean(genAI?.outputs),\n );\n\n args[0].experimental_telemetry = {\n ...existingExperimentalTelemetry,\n isEnabled: isEnabled !== undefined ? isEnabled : true,\n recordInputs,\n recordOutputs,\n };\n\n return handleCallbackErrors(\n () => Reflect.apply(target, thisArg, args),\n error => {\n // This error bubbles up to unhandledrejection handler (if not handled before),\n // where we do not know the active span anymore\n // So to circumvent this, we set the active span on the error object\n // which is picked up by the unhandledrejection handler\n if (error && typeof error === 'object') {\n addNonEnumerableProperty(error, '_sentry_active_span', getActiveSpan());\n }\n },\n () => {},\n result => {\n processToolCallResults(result);\n },\n );\n },\n });\n };\n\n // Is this an ESM module?\n // https://tc39.es/ecma262/#sec-module-namespace-objects\n if (Object.prototype.toString.call(moduleExports) === '[object Module]') {\n // In ESM we take the usual route and just replace the exports we want to instrument\n for (const method of INSTRUMENTED_METHODS) {\n // Skip methods that don't exist in this version of the AI SDK (e.g., rerank was added in v6)\n if (moduleExports[method] != null) {\n moduleExports[method] = generatePatch(moduleExports[method]);\n }\n }\n\n return moduleExports;\n } else {\n // In CJS we can't replace the exports in the original module because they\n // don't have setters, so we create a new object with the same properties\n const patchedModuleExports = INSTRUMENTED_METHODS.reduce((acc, curr) => {\n // Skip methods that don't exist in this version of the AI SDK (e.g., rerank was added in v6)\n if (moduleExports[curr] != null) {\n acc[curr] = generatePatch(moduleExports[curr]);\n }\n return acc;\n }, {} as PatchedModuleExports);\n\n return { ...moduleExports, ...patchedModuleExports };\n }\n }\n}\n"],"names":[],"mappings":";;;;AAgBA,MAAM,kBAAA,GAAqB,CAAC,YAAY,CAAA;AAIxC,MAAM,oBAAA,GAAuB;AAAA,EAC3B,cAAA;AAAA,EACA,YAAA;AAAA,EACA,gBAAA;AAAA,EACA,cAAA;AAAA,EACA,OAAA;AAAA,EACA,WAAA;AAAA,EACA;AACF,CAAA;AA2BA,SAAS,YAAY,GAAA,EAAgC;AACnD,EAAA,IAAI,OAAO,GAAA,KAAQ,QAAA,IAAY,GAAA,K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