@sentry/node 10.69.0 → 11.0.0-alpha.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 (1194) hide show
  1. package/build/cjs/bundler-plugin/esbuild.js +19 -0
  2. package/build/cjs/bundler-plugin/esbuild.js.map +1 -0
  3. package/build/cjs/bundler-plugin/rollup.js +12 -0
  4. package/build/cjs/bundler-plugin/rollup.js.map +1 -0
  5. package/build/cjs/bundler-plugin/vite.js +12 -0
  6. package/build/cjs/bundler-plugin/vite.js.map +1 -0
  7. package/build/cjs/bundler-plugin/webpack.js +18 -0
  8. package/build/cjs/bundler-plugin/webpack.js.map +1 -0
  9. package/build/cjs/cron/common.js +52 -0
  10. package/build/cjs/cron/common.js.map +1 -0
  11. package/build/cjs/cron/cron.js +88 -0
  12. package/build/cjs/cron/cron.js.map +1 -0
  13. package/build/cjs/cron/index.js +14 -0
  14. package/build/cjs/cron/index.js.map +1 -0
  15. package/build/cjs/cron/node-cron.js +52 -0
  16. package/build/cjs/cron/node-cron.js.map +1 -0
  17. package/build/cjs/cron/node-schedule.js +41 -0
  18. package/build/cjs/cron/node-schedule.js.map +1 -0
  19. package/build/cjs/index.js +111 -123
  20. package/build/cjs/index.js.map +1 -1
  21. package/build/cjs/integrations/anr/index.js +159 -0
  22. package/build/cjs/integrations/anr/index.js.map +1 -0
  23. package/build/cjs/integrations/childProcess.js +81 -0
  24. package/build/cjs/integrations/childProcess.js.map +1 -0
  25. package/build/cjs/integrations/console.js +95 -0
  26. package/build/cjs/integrations/console.js.map +1 -0
  27. package/build/cjs/integrations/context.js +391 -0
  28. package/build/cjs/integrations/context.js.map +1 -0
  29. package/build/cjs/integrations/contextlines.js +251 -0
  30. package/build/cjs/integrations/contextlines.js.map +1 -0
  31. package/build/cjs/integrations/fs/index.js +1 -1
  32. package/build/cjs/integrations/fs/index.js.map +1 -1
  33. package/build/cjs/integrations/fs/vendored/constants.js.map +1 -1
  34. package/build/cjs/integrations/http/SentryHttpInstrumentation.js +67 -0
  35. package/build/cjs/integrations/http/SentryHttpInstrumentation.js.map +1 -0
  36. package/build/cjs/integrations/http/httpServerIntegration.js +77 -0
  37. package/build/cjs/integrations/http/httpServerIntegration.js.map +1 -0
  38. package/build/cjs/integrations/http/httpServerSpansIntegration.js +243 -0
  39. package/build/cjs/integrations/http/httpServerSpansIntegration.js.map +1 -0
  40. package/build/cjs/integrations/http/index.js +71 -0
  41. package/build/cjs/integrations/http/index.js.map +1 -0
  42. package/build/cjs/integrations/local-variables/common.js +20 -0
  43. package/build/cjs/integrations/local-variables/common.js.map +1 -0
  44. package/build/cjs/integrations/local-variables/index.js +10 -0
  45. package/build/cjs/integrations/local-variables/index.js.map +1 -0
  46. package/build/cjs/integrations/local-variables/local-variables-async.js +106 -0
  47. package/build/cjs/integrations/local-variables/local-variables-async.js.map +1 -0
  48. package/build/cjs/integrations/modules.js +98 -0
  49. package/build/cjs/integrations/modules.js.map +1 -0
  50. package/build/cjs/integrations/node-fetch/index.js +24 -0
  51. package/build/cjs/integrations/node-fetch/index.js.map +1 -0
  52. package/build/cjs/integrations/node-fetch/undici-instrumentation.js +261 -0
  53. package/build/cjs/integrations/node-fetch/undici-instrumentation.js.map +1 -0
  54. package/build/cjs/integrations/nodeRuntimeMetrics.js +181 -0
  55. package/build/cjs/integrations/nodeRuntimeMetrics.js.map +1 -0
  56. package/build/cjs/integrations/onuncaughtexception.js +92 -0
  57. package/build/cjs/integrations/onuncaughtexception.js.map +1 -0
  58. package/build/cjs/integrations/onunhandledrejection.js +92 -0
  59. package/build/cjs/integrations/onunhandledrejection.js.map +1 -0
  60. package/build/cjs/integrations/pino.js +116 -0
  61. package/build/cjs/integrations/pino.js.map +1 -0
  62. package/build/cjs/integrations/processSession.js +22 -0
  63. package/build/cjs/integrations/processSession.js.map +1 -0
  64. package/build/cjs/integrations/spotlight.js +79 -0
  65. package/build/cjs/integrations/spotlight.js.map +1 -0
  66. package/build/cjs/integrations/systemError.js +54 -0
  67. package/build/cjs/integrations/systemError.js.map +1 -0
  68. package/build/cjs/integrations/tracing/express.js +0 -52
  69. package/build/cjs/integrations/tracing/express.js.map +1 -1
  70. package/build/cjs/integrations/tracing/fastify/index.js +1 -16
  71. package/build/cjs/integrations/tracing/fastify/index.js.map +1 -1
  72. package/build/cjs/integrations/tracing/hapi/index.js +0 -16
  73. package/build/cjs/integrations/tracing/hapi/index.js.map +1 -1
  74. package/build/cjs/integrations/tracing/index.js +29 -87
  75. package/build/cjs/integrations/tracing/index.js.map +1 -1
  76. package/build/cjs/integrations/tracing/koa/index.js +0 -24
  77. package/build/cjs/integrations/tracing/koa/index.js.map +1 -1
  78. package/build/cjs/integrations/tracing/redis/cache.js +1 -0
  79. package/build/cjs/integrations/tracing/redis/cache.js.map +1 -1
  80. package/build/cjs/integrations/tracing/redis/index.js +10 -26
  81. package/build/cjs/integrations/tracing/redis/index.js.map +1 -1
  82. package/build/cjs/integrations/winston.js +84 -0
  83. package/build/cjs/integrations/winston.js.map +1 -0
  84. package/build/cjs/logs/capture.js +26 -0
  85. package/build/cjs/logs/capture.js.map +1 -0
  86. package/build/cjs/logs/exports.js +32 -0
  87. package/build/cjs/logs/exports.js.map +1 -0
  88. package/build/cjs/nodeVersion.js +10 -0
  89. package/build/cjs/nodeVersion.js.map +1 -0
  90. package/build/cjs/otel/logger.js +21 -0
  91. package/build/cjs/otel/logger.js.map +1 -0
  92. package/build/cjs/proxy/base.js +69 -0
  93. package/build/cjs/proxy/base.js.map +1 -0
  94. package/build/cjs/proxy/index.js +112 -0
  95. package/build/cjs/proxy/index.js.map +1 -0
  96. package/build/cjs/proxy/parse-proxy-response.js +88 -0
  97. package/build/cjs/proxy/parse-proxy-response.js.map +1 -0
  98. package/build/cjs/sdk/api.js +61 -0
  99. package/build/cjs/sdk/api.js.map +1 -0
  100. package/build/cjs/sdk/client.js +113 -0
  101. package/build/cjs/sdk/client.js.map +1 -0
  102. package/build/cjs/sdk/index.js +185 -41
  103. package/build/cjs/sdk/index.js.map +1 -1
  104. package/build/cjs/sdk/initOtel.js +14 -91
  105. package/build/cjs/sdk/initOtel.js.map +1 -1
  106. package/build/cjs/transports/http.js +102 -0
  107. package/build/cjs/transports/http.js.map +1 -0
  108. package/build/cjs/utils/debug.js +17 -0
  109. package/build/cjs/utils/debug.js.map +1 -0
  110. package/build/cjs/utils/entry-point.js +36 -0
  111. package/build/cjs/utils/entry-point.js.map +1 -0
  112. package/build/cjs/utils/errorhandling.js +33 -0
  113. package/build/cjs/utils/errorhandling.js.map +1 -0
  114. package/build/cjs/utils/module.js +37 -0
  115. package/build/cjs/utils/module.js.map +1 -0
  116. package/build/cjs/utils/outgoingFetchRequest.js +178 -0
  117. package/build/cjs/utils/outgoingFetchRequest.js.map +1 -0
  118. package/build/cjs/utils/spotlight.js +18 -0
  119. package/build/cjs/utils/spotlight.js.map +1 -0
  120. package/build/esm/bundler-plugin/esbuild.js +17 -0
  121. package/build/esm/bundler-plugin/esbuild.js.map +1 -0
  122. package/build/esm/bundler-plugin/rollup.js +10 -0
  123. package/build/esm/bundler-plugin/rollup.js.map +1 -0
  124. package/build/esm/bundler-plugin/vite.js +10 -0
  125. package/build/esm/bundler-plugin/vite.js.map +1 -0
  126. package/build/esm/bundler-plugin/webpack.js +16 -0
  127. package/build/esm/bundler-plugin/webpack.js.map +1 -0
  128. package/build/esm/cron/common.js +50 -0
  129. package/build/esm/cron/common.js.map +1 -0
  130. package/build/esm/cron/cron.js +86 -0
  131. package/build/esm/cron/cron.js.map +1 -0
  132. package/build/esm/cron/index.js +12 -0
  133. package/build/esm/cron/index.js.map +1 -0
  134. package/build/esm/cron/node-cron.js +50 -0
  135. package/build/esm/cron/node-cron.js.map +1 -0
  136. package/build/esm/cron/node-schedule.js +39 -0
  137. package/build/esm/cron/node-schedule.js.map +1 -0
  138. package/build/esm/index.js +36 -36
  139. package/build/esm/integrations/anr/index.js +155 -0
  140. package/build/esm/integrations/anr/index.js.map +1 -0
  141. package/build/esm/integrations/anr/worker-script.js +2 -0
  142. package/build/esm/integrations/childProcess.js +79 -0
  143. package/build/esm/integrations/childProcess.js.map +1 -0
  144. package/build/esm/integrations/console.js +93 -0
  145. package/build/esm/integrations/console.js.map +1 -0
  146. package/build/esm/integrations/context.js +383 -0
  147. package/build/esm/integrations/context.js.map +1 -0
  148. package/build/esm/integrations/contextlines.js +245 -0
  149. package/build/esm/integrations/contextlines.js.map +1 -0
  150. package/build/esm/integrations/fs/index.js +1 -1
  151. package/build/esm/integrations/fs/index.js.map +1 -1
  152. package/build/esm/integrations/fs/vendored/constants.js.map +1 -1
  153. package/build/esm/integrations/http/SentryHttpInstrumentation.js +65 -0
  154. package/build/esm/integrations/http/SentryHttpInstrumentation.js.map +1 -0
  155. package/build/esm/integrations/http/httpServerIntegration.js +74 -0
  156. package/build/esm/integrations/http/httpServerIntegration.js.map +1 -0
  157. package/build/esm/integrations/http/httpServerSpansIntegration.js +240 -0
  158. package/build/esm/integrations/http/httpServerSpansIntegration.js.map +1 -0
  159. package/build/esm/integrations/http/index.js +69 -0
  160. package/build/esm/integrations/http/index.js.map +1 -0
  161. package/build/esm/integrations/local-variables/common.js +15 -0
  162. package/build/esm/integrations/local-variables/common.js.map +1 -0
  163. package/build/esm/integrations/local-variables/index.js +8 -0
  164. package/build/esm/integrations/local-variables/index.js.map +1 -0
  165. package/build/esm/integrations/local-variables/local-variables-async.js +103 -0
  166. package/build/esm/integrations/local-variables/local-variables-async.js.map +1 -0
  167. package/build/esm/integrations/local-variables/worker-script.js +2 -0
  168. package/build/esm/integrations/modules.js +57 -0
  169. package/build/esm/integrations/modules.js.map +1 -0
  170. package/build/esm/integrations/node-fetch/index.js +22 -0
  171. package/build/esm/integrations/node-fetch/index.js.map +1 -0
  172. package/build/esm/integrations/node-fetch/undici-instrumentation.js +259 -0
  173. package/build/esm/integrations/node-fetch/undici-instrumentation.js.map +1 -0
  174. package/build/esm/integrations/nodeRuntimeMetrics.js +178 -0
  175. package/build/esm/integrations/nodeRuntimeMetrics.js.map +1 -0
  176. package/build/esm/integrations/onuncaughtexception.js +89 -0
  177. package/build/esm/integrations/onuncaughtexception.js.map +1 -0
  178. package/build/esm/integrations/onunhandledrejection.js +89 -0
  179. package/build/esm/integrations/onunhandledrejection.js.map +1 -0
  180. package/build/esm/integrations/pino.js +114 -0
  181. package/build/esm/integrations/pino.js.map +1 -0
  182. package/build/esm/integrations/processSession.js +20 -0
  183. package/build/esm/integrations/processSession.js.map +1 -0
  184. package/build/esm/integrations/spotlight.js +76 -0
  185. package/build/esm/integrations/spotlight.js.map +1 -0
  186. package/build/esm/integrations/systemError.js +52 -0
  187. package/build/esm/integrations/systemError.js.map +1 -0
  188. package/build/esm/integrations/tracing/express.js +2 -51
  189. package/build/esm/integrations/tracing/express.js.map +1 -1
  190. package/build/esm/integrations/tracing/fastify/index.js +3 -17
  191. package/build/esm/integrations/tracing/fastify/index.js.map +1 -1
  192. package/build/esm/integrations/tracing/hapi/index.js +2 -16
  193. package/build/esm/integrations/tracing/hapi/index.js.map +1 -1
  194. package/build/esm/integrations/tracing/index.js +12 -69
  195. package/build/esm/integrations/tracing/index.js.map +1 -1
  196. package/build/esm/integrations/tracing/koa/index.js +2 -24
  197. package/build/esm/integrations/tracing/koa/index.js.map +1 -1
  198. package/build/esm/integrations/tracing/redis/cache.js +2 -1
  199. package/build/esm/integrations/tracing/redis/cache.js.map +1 -1
  200. package/build/esm/integrations/tracing/redis/index.js +11 -26
  201. package/build/esm/integrations/tracing/redis/index.js.map +1 -1
  202. package/build/esm/integrations/winston.js +82 -0
  203. package/build/esm/integrations/winston.js.map +1 -0
  204. package/build/esm/logs/capture.js +24 -0
  205. package/build/esm/logs/capture.js.map +1 -0
  206. package/build/esm/logs/exports.js +24 -0
  207. package/build/esm/logs/exports.js.map +1 -0
  208. package/build/esm/nodeVersion.js +8 -0
  209. package/build/esm/nodeVersion.js.map +1 -0
  210. package/build/esm/otel/logger.js +19 -0
  211. package/build/esm/otel/logger.js.map +1 -0
  212. package/build/esm/package.json +1 -1
  213. package/build/esm/proxy/base.js +67 -0
  214. package/build/esm/proxy/base.js.map +1 -0
  215. package/build/esm/proxy/index.js +110 -0
  216. package/build/esm/proxy/index.js.map +1 -0
  217. package/build/esm/proxy/parse-proxy-response.js +86 -0
  218. package/build/esm/proxy/parse-proxy-response.js.map +1 -0
  219. package/build/esm/sdk/api.js +58 -0
  220. package/build/esm/sdk/api.js.map +1 -0
  221. package/build/esm/sdk/client.js +111 -0
  222. package/build/esm/sdk/client.js.map +1 -0
  223. package/build/esm/sdk/index.js +187 -42
  224. package/build/esm/sdk/index.js.map +1 -1
  225. package/build/esm/sdk/initOtel.js +15 -91
  226. package/build/esm/sdk/initOtel.js.map +1 -1
  227. package/build/esm/transports/http.js +100 -0
  228. package/build/esm/transports/http.js.map +1 -0
  229. package/build/esm/utils/debug.js +15 -0
  230. package/build/esm/utils/debug.js.map +1 -0
  231. package/build/esm/utils/entry-point.js +33 -0
  232. package/build/esm/utils/entry-point.js.map +1 -0
  233. package/build/esm/utils/errorhandling.js +31 -0
  234. package/build/esm/utils/errorhandling.js.map +1 -0
  235. package/build/esm/utils/module.js +35 -0
  236. package/build/esm/utils/module.js.map +1 -0
  237. package/build/esm/utils/outgoingFetchRequest.js +174 -0
  238. package/build/esm/utils/outgoingFetchRequest.js.map +1 -0
  239. package/build/esm/utils/spotlight.js +16 -0
  240. package/build/esm/utils/spotlight.js.map +1 -0
  241. package/build/import-hook.mjs +0 -10
  242. package/build/types/bundler-plugin/esbuild.d.ts +34 -0
  243. package/build/types/bundler-plugin/esbuild.d.ts.map +1 -0
  244. package/build/types/bundler-plugin/rollup.d.ts +35 -0
  245. package/build/types/bundler-plugin/rollup.d.ts.map +1 -0
  246. package/build/types/bundler-plugin/vite.d.ts +36 -0
  247. package/build/types/bundler-plugin/vite.d.ts.map +1 -0
  248. package/build/types/bundler-plugin/webpack.d.ts +37 -0
  249. package/build/types/bundler-plugin/webpack.d.ts.map +1 -0
  250. package/build/types/cron/common.d.ts +5 -0
  251. package/build/types/cron/common.d.ts.map +1 -0
  252. package/build/types/cron/cron.d.ts +43 -0
  253. package/build/types/cron/cron.d.ts.map +1 -0
  254. package/build/types/cron/index.d.ts +10 -0
  255. package/build/types/cron/index.d.ts.map +1 -0
  256. package/build/types/cron/node-cron.d.ts +28 -0
  257. package/build/types/cron/node-cron.d.ts.map +1 -0
  258. package/build/types/cron/node-schedule.d.ts +19 -0
  259. package/build/types/cron/node-schedule.d.ts.map +1 -0
  260. package/build/types/index.d.ts +35 -35
  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 +59 -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 +22 -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/http/SentryHttpInstrumentation.d.ts +102 -0
  279. package/build/types/integrations/http/SentryHttpInstrumentation.d.ts.map +1 -0
  280. package/build/types/integrations/http/httpServerIntegration.d.ts +67 -0
  281. package/build/types/integrations/http/httpServerIntegration.d.ts.map +1 -0
  282. package/build/types/integrations/http/httpServerSpansIntegration.d.ts +59 -0
  283. package/build/types/integrations/http/httpServerSpansIntegration.d.ts.map +1 -0
  284. package/build/types/integrations/http/index.d.ts +127 -0
  285. package/build/types/integrations/http/index.d.ts.map +1 -0
  286. package/build/types/integrations/local-variables/common.d.ts +79 -0
  287. package/build/types/integrations/local-variables/common.d.ts.map +1 -0
  288. package/build/types/integrations/local-variables/index.d.ts +4 -0
  289. package/build/types/integrations/local-variables/index.d.ts.map +1 -0
  290. package/build/types/integrations/local-variables/local-variables-async.d.ts +9 -0
  291. package/build/types/integrations/local-variables/local-variables-async.d.ts.map +1 -0
  292. package/build/types/integrations/local-variables/worker.d.ts +2 -0
  293. package/build/types/integrations/local-variables/worker.d.ts.map +1 -0
  294. package/build/types/integrations/modules.d.ts +17 -0
  295. package/build/types/integrations/modules.d.ts.map +1 -0
  296. package/build/types/integrations/node-fetch/index.d.ts +9 -0
  297. package/build/types/integrations/node-fetch/index.d.ts.map +1 -0
  298. package/build/types/integrations/node-fetch/types.d.ts +95 -0
  299. package/build/types/integrations/node-fetch/types.d.ts.map +1 -0
  300. package/build/types/integrations/node-fetch/undici-instrumentation.d.ts +17 -0
  301. package/build/types/integrations/node-fetch/undici-instrumentation.d.ts.map +1 -0
  302. package/build/types/integrations/nodeRuntimeMetrics.d.ts +66 -0
  303. package/build/types/integrations/nodeRuntimeMetrics.d.ts.map +1 -0
  304. package/build/types/integrations/onuncaughtexception.d.ts +33 -0
  305. package/build/types/integrations/onuncaughtexception.d.ts.map +1 -0
  306. package/build/types/integrations/onunhandledrejection.d.ts +22 -0
  307. package/build/types/integrations/onunhandledrejection.d.ts.map +1 -0
  308. package/build/types/integrations/pino.d.ts +61 -0
  309. package/build/types/integrations/pino.d.ts.map +1 -0
  310. package/build/types/integrations/processSession.d.ts +7 -0
  311. package/build/types/integrations/processSession.d.ts.map +1 -0
  312. package/build/types/integrations/spotlight.d.ts +18 -0
  313. package/build/types/integrations/spotlight.d.ts.map +1 -0
  314. package/build/types/integrations/systemError.d.ts +14 -0
  315. package/build/types/integrations/systemError.d.ts.map +1 -0
  316. package/build/types/integrations/tracing/express.d.ts +1 -14
  317. package/build/types/integrations/tracing/express.d.ts.map +1 -1
  318. package/build/types/integrations/tracing/fastify/index.d.ts +1 -5
  319. package/build/types/integrations/tracing/fastify/index.d.ts.map +1 -1
  320. package/build/types/integrations/tracing/hapi/index.d.ts +0 -23
  321. package/build/types/integrations/tracing/hapi/index.d.ts.map +1 -1
  322. package/build/types/integrations/tracing/index.d.ts +0 -9
  323. package/build/types/integrations/tracing/index.d.ts.map +1 -1
  324. package/build/types/integrations/tracing/koa/index.d.ts +0 -46
  325. package/build/types/integrations/tracing/koa/index.d.ts.map +1 -1
  326. package/build/types/integrations/tracing/redis/cache.d.ts.map +1 -1
  327. package/build/types/integrations/tracing/redis/index.d.ts +0 -7
  328. package/build/types/integrations/tracing/redis/index.d.ts.map +1 -1
  329. package/build/types/integrations/tracing/redis/vendored/types.d.ts +0 -15
  330. package/build/types/integrations/tracing/redis/vendored/types.d.ts.map +1 -1
  331. package/build/types/integrations/winston.d.ts +55 -0
  332. package/build/types/integrations/winston.d.ts.map +1 -0
  333. package/build/types/logs/capture.d.ts +29 -0
  334. package/build/types/logs/capture.d.ts.map +1 -0
  335. package/build/types/logs/exports.d.ts +150 -0
  336. package/build/types/logs/exports.d.ts.map +1 -0
  337. package/build/types/nodeVersion.d.ts +8 -0
  338. package/build/types/nodeVersion.d.ts.map +1 -0
  339. package/build/types/otel/logger.d.ts +5 -0
  340. package/build/types/otel/logger.d.ts.map +1 -0
  341. package/build/types/proxy/base.d.ts +61 -0
  342. package/build/types/proxy/base.d.ts.map +1 -0
  343. package/build/types/proxy/helpers.d.ts +37 -0
  344. package/build/types/proxy/helpers.d.ts.map +1 -0
  345. package/build/types/proxy/index.d.ts +70 -0
  346. package/build/types/proxy/index.d.ts.map +1 -0
  347. package/build/types/proxy/parse-proxy-response.d.ts +39 -0
  348. package/build/types/proxy/parse-proxy-response.d.ts.map +1 -0
  349. package/build/types/sdk/api.d.ts +8 -0
  350. package/build/types/sdk/api.d.ts.map +1 -0
  351. package/build/types/sdk/client.d.ts +31 -0
  352. package/build/types/sdk/client.d.ts.map +1 -0
  353. package/build/types/sdk/index.d.ts +1 -19
  354. package/build/types/sdk/index.d.ts.map +1 -1
  355. package/build/types/sdk/initOtel.d.ts +11 -20
  356. package/build/types/sdk/initOtel.d.ts.map +1 -1
  357. package/build/types/sdk/scope.d.ts +7 -0
  358. package/build/types/sdk/scope.d.ts.map +1 -0
  359. package/build/types/transports/http-module.d.ts +27 -0
  360. package/build/types/transports/http-module.d.ts.map +1 -0
  361. package/build/types/transports/http.d.ts +17 -0
  362. package/build/types/transports/http.d.ts.map +1 -0
  363. package/build/types/transports/index.d.ts +3 -0
  364. package/build/types/transports/index.d.ts.map +1 -0
  365. package/build/types/types.d.ts +35 -23
  366. package/build/types/types.d.ts.map +1 -1
  367. package/build/types/utils/addOriginToSpan.d.ts +5 -0
  368. package/build/types/utils/addOriginToSpan.d.ts.map +1 -0
  369. package/build/types/utils/debug.d.ts +5 -0
  370. package/build/types/utils/debug.d.ts.map +1 -0
  371. package/build/types/utils/entry-point.d.ts +24 -0
  372. package/build/types/utils/entry-point.d.ts.map +1 -0
  373. package/build/types/utils/errorhandling.d.ts +5 -0
  374. package/build/types/utils/errorhandling.d.ts.map +1 -0
  375. package/build/types/utils/module.d.ts +3 -0
  376. package/build/types/utils/module.d.ts.map +1 -0
  377. package/build/types/utils/outgoingFetchRequest.d.ts +20 -0
  378. package/build/types/utils/outgoingFetchRequest.d.ts.map +1 -0
  379. package/build/types/utils/prepareEvent.d.ts +17 -0
  380. package/build/types/utils/prepareEvent.d.ts.map +1 -0
  381. package/build/types/utils/spotlight.d.ts +8 -0
  382. package/build/types/utils/spotlight.d.ts.map +1 -0
  383. package/package.json +37 -31
  384. package/build/cjs/init.js +0 -4
  385. package/build/cjs/init.js.map +0 -1
  386. package/build/cjs/integrations/http.js +0 -69
  387. package/build/cjs/integrations/http.js.map +0 -1
  388. package/build/cjs/integrations/node-fetch.js +0 -24
  389. package/build/cjs/integrations/node-fetch.js.map +0 -1
  390. package/build/cjs/integrations/tracing/InstrumentationNodeModuleFile.js +0 -15
  391. package/build/cjs/integrations/tracing/InstrumentationNodeModuleFile.js.map +0 -1
  392. package/build/cjs/integrations/tracing/amqplib/index.js +0 -21
  393. package/build/cjs/integrations/tracing/amqplib/index.js.map +0 -1
  394. package/build/cjs/integrations/tracing/amqplib/vendored/instrumentation.js +0 -117
  395. package/build/cjs/integrations/tracing/amqplib/vendored/instrumentation.js.map +0 -1
  396. package/build/cjs/integrations/tracing/amqplib/vendored/patches.js +0 -185
  397. package/build/cjs/integrations/tracing/amqplib/vendored/patches.js.map +0 -1
  398. package/build/cjs/integrations/tracing/amqplib/vendored/semconv.js +0 -26
  399. package/build/cjs/integrations/tracing/amqplib/vendored/semconv.js.map +0 -1
  400. package/build/cjs/integrations/tracing/amqplib/vendored/types.js +0 -17
  401. package/build/cjs/integrations/tracing/amqplib/vendored/types.js.map +0 -1
  402. package/build/cjs/integrations/tracing/amqplib/vendored/utils.js +0 -129
  403. package/build/cjs/integrations/tracing/amqplib/vendored/utils.js.map +0 -1
  404. package/build/cjs/integrations/tracing/anthropic-ai/index.js +0 -24
  405. package/build/cjs/integrations/tracing/anthropic-ai/index.js.map +0 -1
  406. package/build/cjs/integrations/tracing/anthropic-ai/instrumentation.js +0 -72
  407. package/build/cjs/integrations/tracing/anthropic-ai/instrumentation.js.map +0 -1
  408. package/build/cjs/integrations/tracing/connect/index.js +0 -35
  409. package/build/cjs/integrations/tracing/connect/index.js.map +0 -1
  410. package/build/cjs/integrations/tracing/connect/vendored/enums/AttributeNames.js +0 -16
  411. package/build/cjs/integrations/tracing/connect/vendored/enums/AttributeNames.js.map +0 -1
  412. package/build/cjs/integrations/tracing/connect/vendored/instrumentation.js +0 -137
  413. package/build/cjs/integrations/tracing/connect/vendored/instrumentation.js.map +0 -1
  414. package/build/cjs/integrations/tracing/connect/vendored/internal-types.js +0 -8
  415. package/build/cjs/integrations/tracing/connect/vendored/internal-types.js.map +0 -1
  416. package/build/cjs/integrations/tracing/connect/vendored/utils.js +0 -36
  417. package/build/cjs/integrations/tracing/connect/vendored/utils.js.map +0 -1
  418. package/build/cjs/integrations/tracing/dataloader/index.js +0 -26
  419. package/build/cjs/integrations/tracing/dataloader/index.js.map +0 -1
  420. package/build/cjs/integrations/tracing/dataloader/vendored/instrumentation.js +0 -227
  421. package/build/cjs/integrations/tracing/dataloader/vendored/instrumentation.js.map +0 -1
  422. package/build/cjs/integrations/tracing/fastify/v3/constants.js +0 -6
  423. package/build/cjs/integrations/tracing/fastify/v3/constants.js.map +0 -1
  424. package/build/cjs/integrations/tracing/fastify/v3/enums/AttributeNames.js +0 -24
  425. package/build/cjs/integrations/tracing/fastify/v3/enums/AttributeNames.js.map +0 -1
  426. package/build/cjs/integrations/tracing/fastify/v3/instrumentation.js +0 -220
  427. package/build/cjs/integrations/tracing/fastify/v3/instrumentation.js.map +0 -1
  428. package/build/cjs/integrations/tracing/fastify/v3/utils.js +0 -64
  429. package/build/cjs/integrations/tracing/fastify/v3/utils.js.map +0 -1
  430. package/build/cjs/integrations/tracing/firebase/firebase.js +0 -21
  431. package/build/cjs/integrations/tracing/firebase/firebase.js.map +0 -1
  432. package/build/cjs/integrations/tracing/firebase/otel/firebaseInstrumentation.js +0 -28
  433. package/build/cjs/integrations/tracing/firebase/otel/firebaseInstrumentation.js.map +0 -1
  434. package/build/cjs/integrations/tracing/firebase/otel/patches/firestore.js +0 -155
  435. package/build/cjs/integrations/tracing/firebase/otel/patches/firestore.js.map +0 -1
  436. package/build/cjs/integrations/tracing/firebase/otel/patches/functions.js +0 -141
  437. package/build/cjs/integrations/tracing/firebase/otel/patches/functions.js.map +0 -1
  438. package/build/cjs/integrations/tracing/genericPool/index.js +0 -21
  439. package/build/cjs/integrations/tracing/genericPool/index.js.map +0 -1
  440. package/build/cjs/integrations/tracing/genericPool/vendored/instrumentation.js +0 -122
  441. package/build/cjs/integrations/tracing/genericPool/vendored/instrumentation.js.map +0 -1
  442. package/build/cjs/integrations/tracing/google-genai/index.js +0 -23
  443. package/build/cjs/integrations/tracing/google-genai/index.js.map +0 -1
  444. package/build/cjs/integrations/tracing/google-genai/instrumentation.js +0 -68
  445. package/build/cjs/integrations/tracing/google-genai/instrumentation.js.map +0 -1
  446. package/build/cjs/integrations/tracing/graphql/index.js +0 -34
  447. package/build/cjs/integrations/tracing/graphql/index.js.map +0 -1
  448. package/build/cjs/integrations/tracing/graphql/vendored/enum.js +0 -47
  449. package/build/cjs/integrations/tracing/graphql/vendored/enum.js.map +0 -1
  450. package/build/cjs/integrations/tracing/graphql/vendored/enums/AttributeNames.js +0 -15
  451. package/build/cjs/integrations/tracing/graphql/vendored/enums/AttributeNames.js.map +0 -1
  452. package/build/cjs/integrations/tracing/graphql/vendored/instrumentation.js +0 -329
  453. package/build/cjs/integrations/tracing/graphql/vendored/instrumentation.js.map +0 -1
  454. package/build/cjs/integrations/tracing/graphql/vendored/internal-types.js +0 -6
  455. package/build/cjs/integrations/tracing/graphql/vendored/internal-types.js.map +0 -1
  456. package/build/cjs/integrations/tracing/graphql/vendored/symbols.js +0 -8
  457. package/build/cjs/integrations/tracing/graphql/vendored/symbols.js.map +0 -1
  458. package/build/cjs/integrations/tracing/graphql/vendored/utils.js +0 -265
  459. package/build/cjs/integrations/tracing/graphql/vendored/utils.js.map +0 -1
  460. package/build/cjs/integrations/tracing/hapi/vendored/enums/AttributeNames.js +0 -11
  461. package/build/cjs/integrations/tracing/hapi/vendored/enums/AttributeNames.js.map +0 -1
  462. package/build/cjs/integrations/tracing/hapi/vendored/instrumentation.js +0 -255
  463. package/build/cjs/integrations/tracing/hapi/vendored/instrumentation.js.map +0 -1
  464. package/build/cjs/integrations/tracing/hapi/vendored/internal-types.js +0 -24
  465. package/build/cjs/integrations/tracing/hapi/vendored/internal-types.js.map +0 -1
  466. package/build/cjs/integrations/tracing/hapi/vendored/utils.js +0 -85
  467. package/build/cjs/integrations/tracing/hapi/vendored/utils.js.map +0 -1
  468. package/build/cjs/integrations/tracing/hono/constants.js +0 -14
  469. package/build/cjs/integrations/tracing/hono/constants.js.map +0 -1
  470. package/build/cjs/integrations/tracing/hono/index.js +0 -86
  471. package/build/cjs/integrations/tracing/hono/index.js.map +0 -1
  472. package/build/cjs/integrations/tracing/hono/instrumentation.js +0 -201
  473. package/build/cjs/integrations/tracing/hono/instrumentation.js.map +0 -1
  474. package/build/cjs/integrations/tracing/kafka/index.js +0 -21
  475. package/build/cjs/integrations/tracing/kafka/index.js.map +0 -1
  476. package/build/cjs/integrations/tracing/kafka/vendored/instrumentation.js +0 -237
  477. package/build/cjs/integrations/tracing/kafka/vendored/instrumentation.js.map +0 -1
  478. package/build/cjs/integrations/tracing/kafka/vendored/semconv.js +0 -22
  479. package/build/cjs/integrations/tracing/kafka/vendored/semconv.js.map +0 -1
  480. package/build/cjs/integrations/tracing/kafka/vendored/utils.js +0 -114
  481. package/build/cjs/integrations/tracing/kafka/vendored/utils.js.map +0 -1
  482. package/build/cjs/integrations/tracing/knex/index.js +0 -26
  483. package/build/cjs/integrations/tracing/knex/index.js.map +0 -1
  484. package/build/cjs/integrations/tracing/knex/vendored/instrumentation.js +0 -135
  485. package/build/cjs/integrations/tracing/knex/vendored/instrumentation.js.map +0 -1
  486. package/build/cjs/integrations/tracing/knex/vendored/semconv.js +0 -10
  487. package/build/cjs/integrations/tracing/knex/vendored/semconv.js.map +0 -1
  488. package/build/cjs/integrations/tracing/knex/vendored/utils.js +0 -84
  489. package/build/cjs/integrations/tracing/knex/vendored/utils.js.map +0 -1
  490. package/build/cjs/integrations/tracing/koa/vendored/enums/AttributeNames.js +0 -10
  491. package/build/cjs/integrations/tracing/koa/vendored/enums/AttributeNames.js.map +0 -1
  492. package/build/cjs/integrations/tracing/koa/vendored/instrumentation.js +0 -127
  493. package/build/cjs/integrations/tracing/koa/vendored/instrumentation.js.map +0 -1
  494. package/build/cjs/integrations/tracing/koa/vendored/internal-types.js +0 -6
  495. package/build/cjs/integrations/tracing/koa/vendored/internal-types.js.map +0 -1
  496. package/build/cjs/integrations/tracing/koa/vendored/types.js +0 -10
  497. package/build/cjs/integrations/tracing/koa/vendored/types.js.map +0 -1
  498. package/build/cjs/integrations/tracing/koa/vendored/utils.js +0 -36
  499. package/build/cjs/integrations/tracing/koa/vendored/utils.js.map +0 -1
  500. package/build/cjs/integrations/tracing/langchain/index.js +0 -23
  501. package/build/cjs/integrations/tracing/langchain/index.js.map +0 -1
  502. package/build/cjs/integrations/tracing/langchain/instrumentation.js +0 -160
  503. package/build/cjs/integrations/tracing/langchain/instrumentation.js.map +0 -1
  504. package/build/cjs/integrations/tracing/langgraph/index.js +0 -23
  505. package/build/cjs/integrations/tracing/langgraph/index.js.map +0 -1
  506. package/build/cjs/integrations/tracing/langgraph/instrumentation.js +0 -96
  507. package/build/cjs/integrations/tracing/langgraph/instrumentation.js.map +0 -1
  508. package/build/cjs/integrations/tracing/lrumemoizer/index.js +0 -21
  509. package/build/cjs/integrations/tracing/lrumemoizer/index.js.map +0 -1
  510. package/build/cjs/integrations/tracing/lrumemoizer/vendored/instrumentation.js +0 -38
  511. package/build/cjs/integrations/tracing/lrumemoizer/vendored/instrumentation.js.map +0 -1
  512. package/build/cjs/integrations/tracing/mongo/index.js +0 -21
  513. package/build/cjs/integrations/tracing/mongo/index.js.map +0 -1
  514. package/build/cjs/integrations/tracing/mongo/vendored/instrumentation.js +0 -129
  515. package/build/cjs/integrations/tracing/mongo/vendored/instrumentation.js.map +0 -1
  516. package/build/cjs/integrations/tracing/mongo/vendored/patches.js +0 -150
  517. package/build/cjs/integrations/tracing/mongo/vendored/patches.js.map +0 -1
  518. package/build/cjs/integrations/tracing/mongo/vendored/utils.js +0 -40
  519. package/build/cjs/integrations/tracing/mongo/vendored/utils.js.map +0 -1
  520. package/build/cjs/integrations/tracing/mongoose/index.js +0 -22
  521. package/build/cjs/integrations/tracing/mongoose/index.js.map +0 -1
  522. package/build/cjs/integrations/tracing/mongoose/vendored/mongoose.js +0 -240
  523. package/build/cjs/integrations/tracing/mongoose/vendored/mongoose.js.map +0 -1
  524. package/build/cjs/integrations/tracing/mongoose/vendored/utils.js +0 -41
  525. package/build/cjs/integrations/tracing/mongoose/vendored/utils.js.map +0 -1
  526. package/build/cjs/integrations/tracing/mysql/index.js +0 -21
  527. package/build/cjs/integrations/tracing/mysql/index.js.map +0 -1
  528. package/build/cjs/integrations/tracing/mysql/vendored/instrumentation.js +0 -185
  529. package/build/cjs/integrations/tracing/mysql/vendored/instrumentation.js.map +0 -1
  530. package/build/cjs/integrations/tracing/mysql/vendored/semconv.js +0 -8
  531. package/build/cjs/integrations/tracing/mysql/vendored/semconv.js.map +0 -1
  532. package/build/cjs/integrations/tracing/mysql/vendored/utils.js +0 -38
  533. package/build/cjs/integrations/tracing/mysql/vendored/utils.js.map +0 -1
  534. package/build/cjs/integrations/tracing/mysql2/index.js +0 -22
  535. package/build/cjs/integrations/tracing/mysql2/index.js.map +0 -1
  536. package/build/cjs/integrations/tracing/mysql2/vendored/instrumentation.js +0 -138
  537. package/build/cjs/integrations/tracing/mysql2/vendored/instrumentation.js.map +0 -1
  538. package/build/cjs/integrations/tracing/mysql2/vendored/semconv.js +0 -8
  539. package/build/cjs/integrations/tracing/mysql2/vendored/semconv.js.map +0 -1
  540. package/build/cjs/integrations/tracing/mysql2/vendored/utils.js +0 -81
  541. package/build/cjs/integrations/tracing/mysql2/vendored/utils.js.map +0 -1
  542. package/build/cjs/integrations/tracing/openai/index.js +0 -23
  543. package/build/cjs/integrations/tracing/openai/index.js.map +0 -1
  544. package/build/cjs/integrations/tracing/openai/instrumentation.js +0 -80
  545. package/build/cjs/integrations/tracing/openai/instrumentation.js.map +0 -1
  546. package/build/cjs/integrations/tracing/postgres/index.js +0 -27
  547. package/build/cjs/integrations/tracing/postgres/index.js.map +0 -1
  548. package/build/cjs/integrations/tracing/postgres/vendored/enums/AttributeNames.js +0 -11
  549. package/build/cjs/integrations/tracing/postgres/vendored/enums/AttributeNames.js.map +0 -1
  550. package/build/cjs/integrations/tracing/postgres/vendored/enums/SpanNames.js +0 -11
  551. package/build/cjs/integrations/tracing/postgres/vendored/enums/SpanNames.js.map +0 -1
  552. package/build/cjs/integrations/tracing/postgres/vendored/instrumentation.js +0 -225
  553. package/build/cjs/integrations/tracing/postgres/vendored/instrumentation.js.map +0 -1
  554. package/build/cjs/integrations/tracing/postgres/vendored/semconv.js +0 -8
  555. package/build/cjs/integrations/tracing/postgres/vendored/semconv.js.map +0 -1
  556. package/build/cjs/integrations/tracing/postgres/vendored/utils.js +0 -151
  557. package/build/cjs/integrations/tracing/postgres/vendored/utils.js.map +0 -1
  558. package/build/cjs/integrations/tracing/postgresjs.js +0 -265
  559. package/build/cjs/integrations/tracing/postgresjs.js.map +0 -1
  560. package/build/cjs/integrations/tracing/redis/vendored/ioredis-instrumentation.js +0 -147
  561. package/build/cjs/integrations/tracing/redis/vendored/ioredis-instrumentation.js.map +0 -1
  562. package/build/cjs/integrations/tracing/redis/vendored/redis-instrumentation.js +0 -445
  563. package/build/cjs/integrations/tracing/redis/vendored/redis-instrumentation.js.map +0 -1
  564. package/build/cjs/integrations/tracing/redis/vendored/semconv.js +0 -8
  565. package/build/cjs/integrations/tracing/redis/vendored/semconv.js.map +0 -1
  566. package/build/cjs/integrations/tracing/tedious/index.js +0 -21
  567. package/build/cjs/integrations/tracing/tedious/index.js.map +0 -1
  568. package/build/cjs/integrations/tracing/tedious/vendored/instrumentation.js +0 -154
  569. package/build/cjs/integrations/tracing/tedious/vendored/instrumentation.js.map +0 -1
  570. package/build/cjs/integrations/tracing/tedious/vendored/semconv.js +0 -8
  571. package/build/cjs/integrations/tracing/tedious/vendored/semconv.js.map +0 -1
  572. package/build/cjs/integrations/tracing/tedious/vendored/utils.js +0 -29
  573. package/build/cjs/integrations/tracing/tedious/vendored/utils.js.map +0 -1
  574. package/build/cjs/integrations/tracing/vercelai/constants.js +0 -6
  575. package/build/cjs/integrations/tracing/vercelai/constants.js.map +0 -1
  576. package/build/cjs/integrations/tracing/vercelai/index.js +0 -36
  577. package/build/cjs/integrations/tracing/vercelai/index.js.map +0 -1
  578. package/build/cjs/integrations/tracing/vercelai/instrumentation.js +0 -176
  579. package/build/cjs/integrations/tracing/vercelai/instrumentation.js.map +0 -1
  580. package/build/cjs/preload.js +0 -8
  581. package/build/cjs/preload.js.map +0 -1
  582. package/build/cjs/sdk/diagnosticsChannelInjection.js +0 -21
  583. package/build/cjs/sdk/diagnosticsChannelInjection.js.map +0 -1
  584. package/build/cjs/sdk/experimentalUseDiagnosticsChannelInjection.js +0 -33
  585. package/build/cjs/sdk/experimentalUseDiagnosticsChannelInjection.js.map +0 -1
  586. package/build/cjs/utils/setHttpServerSpanRouteAttribute.js +0 -21
  587. package/build/cjs/utils/setHttpServerSpanRouteAttribute.js.map +0 -1
  588. package/build/esm/init.js +0 -4
  589. package/build/esm/init.js.map +0 -1
  590. package/build/esm/integrations/http.js +0 -66
  591. package/build/esm/integrations/http.js.map +0 -1
  592. package/build/esm/integrations/node-fetch.js +0 -22
  593. package/build/esm/integrations/node-fetch.js.map +0 -1
  594. package/build/esm/integrations/tracing/InstrumentationNodeModuleFile.js +0 -13
  595. package/build/esm/integrations/tracing/InstrumentationNodeModuleFile.js.map +0 -1
  596. package/build/esm/integrations/tracing/amqplib/index.js +0 -18
  597. package/build/esm/integrations/tracing/amqplib/index.js.map +0 -1
  598. package/build/esm/integrations/tracing/amqplib/vendored/instrumentation.js +0 -115
  599. package/build/esm/integrations/tracing/amqplib/vendored/instrumentation.js.map +0 -1
  600. package/build/esm/integrations/tracing/amqplib/vendored/patches.js +0 -177
  601. package/build/esm/integrations/tracing/amqplib/vendored/patches.js.map +0 -1
  602. package/build/esm/integrations/tracing/amqplib/vendored/semconv.js +0 -14
  603. package/build/esm/integrations/tracing/amqplib/vendored/semconv.js.map +0 -1
  604. package/build/esm/integrations/tracing/amqplib/vendored/types.js +0 -15
  605. package/build/esm/integrations/tracing/amqplib/vendored/types.js.map +0 -1
  606. package/build/esm/integrations/tracing/amqplib/vendored/utils.js +0 -117
  607. package/build/esm/integrations/tracing/amqplib/vendored/utils.js.map +0 -1
  608. package/build/esm/integrations/tracing/anthropic-ai/index.js +0 -21
  609. package/build/esm/integrations/tracing/anthropic-ai/index.js.map +0 -1
  610. package/build/esm/integrations/tracing/anthropic-ai/instrumentation.js +0 -70
  611. package/build/esm/integrations/tracing/anthropic-ai/instrumentation.js.map +0 -1
  612. package/build/esm/integrations/tracing/connect/index.js +0 -31
  613. package/build/esm/integrations/tracing/connect/index.js.map +0 -1
  614. package/build/esm/integrations/tracing/connect/vendored/enums/AttributeNames.js +0 -13
  615. package/build/esm/integrations/tracing/connect/vendored/enums/AttributeNames.js.map +0 -1
  616. package/build/esm/integrations/tracing/connect/vendored/instrumentation.js +0 -135
  617. package/build/esm/integrations/tracing/connect/vendored/instrumentation.js.map +0 -1
  618. package/build/esm/integrations/tracing/connect/vendored/internal-types.js +0 -6
  619. package/build/esm/integrations/tracing/connect/vendored/internal-types.js.map +0 -1
  620. package/build/esm/integrations/tracing/connect/vendored/utils.js +0 -32
  621. package/build/esm/integrations/tracing/connect/vendored/utils.js.map +0 -1
  622. package/build/esm/integrations/tracing/dataloader/index.js +0 -23
  623. package/build/esm/integrations/tracing/dataloader/index.js.map +0 -1
  624. package/build/esm/integrations/tracing/dataloader/vendored/instrumentation.js +0 -225
  625. package/build/esm/integrations/tracing/dataloader/vendored/instrumentation.js.map +0 -1
  626. package/build/esm/integrations/tracing/fastify/v3/constants.js +0 -4
  627. package/build/esm/integrations/tracing/fastify/v3/constants.js.map +0 -1
  628. package/build/esm/integrations/tracing/fastify/v3/enums/AttributeNames.js +0 -20
  629. package/build/esm/integrations/tracing/fastify/v3/enums/AttributeNames.js.map +0 -1
  630. package/build/esm/integrations/tracing/fastify/v3/instrumentation.js +0 -218
  631. package/build/esm/integrations/tracing/fastify/v3/instrumentation.js.map +0 -1
  632. package/build/esm/integrations/tracing/fastify/v3/utils.js +0 -60
  633. package/build/esm/integrations/tracing/fastify/v3/utils.js.map +0 -1
  634. package/build/esm/integrations/tracing/firebase/firebase.js +0 -18
  635. package/build/esm/integrations/tracing/firebase/firebase.js.map +0 -1
  636. package/build/esm/integrations/tracing/firebase/otel/firebaseInstrumentation.js +0 -26
  637. package/build/esm/integrations/tracing/firebase/otel/firebaseInstrumentation.js.map +0 -1
  638. package/build/esm/integrations/tracing/firebase/otel/patches/firestore.js +0 -152
  639. package/build/esm/integrations/tracing/firebase/otel/patches/firestore.js.map +0 -1
  640. package/build/esm/integrations/tracing/firebase/otel/patches/functions.js +0 -138
  641. package/build/esm/integrations/tracing/firebase/otel/patches/functions.js.map +0 -1
  642. package/build/esm/integrations/tracing/genericPool/index.js +0 -18
  643. package/build/esm/integrations/tracing/genericPool/index.js.map +0 -1
  644. package/build/esm/integrations/tracing/genericPool/vendored/instrumentation.js +0 -120
  645. package/build/esm/integrations/tracing/genericPool/vendored/instrumentation.js.map +0 -1
  646. package/build/esm/integrations/tracing/google-genai/index.js +0 -20
  647. package/build/esm/integrations/tracing/google-genai/index.js.map +0 -1
  648. package/build/esm/integrations/tracing/google-genai/instrumentation.js +0 -66
  649. package/build/esm/integrations/tracing/google-genai/instrumentation.js.map +0 -1
  650. package/build/esm/integrations/tracing/graphql/index.js +0 -31
  651. package/build/esm/integrations/tracing/graphql/index.js.map +0 -1
  652. package/build/esm/integrations/tracing/graphql/vendored/enum.js +0 -43
  653. package/build/esm/integrations/tracing/graphql/vendored/enum.js.map +0 -1
  654. package/build/esm/integrations/tracing/graphql/vendored/enums/AttributeNames.js +0 -13
  655. package/build/esm/integrations/tracing/graphql/vendored/enums/AttributeNames.js.map +0 -1
  656. package/build/esm/integrations/tracing/graphql/vendored/instrumentation.js +0 -327
  657. package/build/esm/integrations/tracing/graphql/vendored/instrumentation.js.map +0 -1
  658. package/build/esm/integrations/tracing/graphql/vendored/internal-types.js +0 -4
  659. package/build/esm/integrations/tracing/graphql/vendored/internal-types.js.map +0 -1
  660. package/build/esm/integrations/tracing/graphql/vendored/symbols.js +0 -5
  661. package/build/esm/integrations/tracing/graphql/vendored/symbols.js.map +0 -1
  662. package/build/esm/integrations/tracing/graphql/vendored/utils.js +0 -257
  663. package/build/esm/integrations/tracing/graphql/vendored/utils.js.map +0 -1
  664. package/build/esm/integrations/tracing/hapi/vendored/enums/AttributeNames.js +0 -9
  665. package/build/esm/integrations/tracing/hapi/vendored/enums/AttributeNames.js.map +0 -1
  666. package/build/esm/integrations/tracing/hapi/vendored/instrumentation.js +0 -253
  667. package/build/esm/integrations/tracing/hapi/vendored/instrumentation.js.map +0 -1
  668. package/build/esm/integrations/tracing/hapi/vendored/internal-types.js +0 -19
  669. package/build/esm/integrations/tracing/hapi/vendored/internal-types.js.map +0 -1
  670. package/build/esm/integrations/tracing/hapi/vendored/utils.js +0 -76
  671. package/build/esm/integrations/tracing/hapi/vendored/utils.js.map +0 -1
  672. package/build/esm/integrations/tracing/hono/constants.js +0 -11
  673. package/build/esm/integrations/tracing/hono/constants.js.map +0 -1
  674. package/build/esm/integrations/tracing/hono/index.js +0 -82
  675. package/build/esm/integrations/tracing/hono/index.js.map +0 -1
  676. package/build/esm/integrations/tracing/hono/instrumentation.js +0 -199
  677. package/build/esm/integrations/tracing/hono/instrumentation.js.map +0 -1
  678. package/build/esm/integrations/tracing/kafka/index.js +0 -18
  679. package/build/esm/integrations/tracing/kafka/index.js.map +0 -1
  680. package/build/esm/integrations/tracing/kafka/vendored/instrumentation.js +0 -235
  681. package/build/esm/integrations/tracing/kafka/vendored/instrumentation.js.map +0 -1
  682. package/build/esm/integrations/tracing/kafka/vendored/semconv.js +0 -12
  683. package/build/esm/integrations/tracing/kafka/vendored/semconv.js.map +0 -1
  684. package/build/esm/integrations/tracing/kafka/vendored/utils.js +0 -108
  685. package/build/esm/integrations/tracing/kafka/vendored/utils.js.map +0 -1
  686. package/build/esm/integrations/tracing/knex/index.js +0 -23
  687. package/build/esm/integrations/tracing/knex/index.js.map +0 -1
  688. package/build/esm/integrations/tracing/knex/vendored/instrumentation.js +0 -133
  689. package/build/esm/integrations/tracing/knex/vendored/instrumentation.js.map +0 -1
  690. package/build/esm/integrations/tracing/knex/vendored/semconv.js +0 -6
  691. package/build/esm/integrations/tracing/knex/vendored/semconv.js.map +0 -1
  692. package/build/esm/integrations/tracing/knex/vendored/utils.js +0 -75
  693. package/build/esm/integrations/tracing/knex/vendored/utils.js.map +0 -1
  694. package/build/esm/integrations/tracing/koa/vendored/enums/AttributeNames.js +0 -8
  695. package/build/esm/integrations/tracing/koa/vendored/enums/AttributeNames.js.map +0 -1
  696. package/build/esm/integrations/tracing/koa/vendored/instrumentation.js +0 -125
  697. package/build/esm/integrations/tracing/koa/vendored/instrumentation.js.map +0 -1
  698. package/build/esm/integrations/tracing/koa/vendored/internal-types.js +0 -4
  699. package/build/esm/integrations/tracing/koa/vendored/internal-types.js.map +0 -1
  700. package/build/esm/integrations/tracing/koa/vendored/types.js +0 -8
  701. package/build/esm/integrations/tracing/koa/vendored/types.js.map +0 -1
  702. package/build/esm/integrations/tracing/koa/vendored/utils.js +0 -33
  703. package/build/esm/integrations/tracing/koa/vendored/utils.js.map +0 -1
  704. package/build/esm/integrations/tracing/langchain/index.js +0 -20
  705. package/build/esm/integrations/tracing/langchain/index.js.map +0 -1
  706. package/build/esm/integrations/tracing/langchain/instrumentation.js +0 -158
  707. package/build/esm/integrations/tracing/langchain/instrumentation.js.map +0 -1
  708. package/build/esm/integrations/tracing/langgraph/index.js +0 -20
  709. package/build/esm/integrations/tracing/langgraph/index.js.map +0 -1
  710. package/build/esm/integrations/tracing/langgraph/instrumentation.js +0 -94
  711. package/build/esm/integrations/tracing/langgraph/instrumentation.js.map +0 -1
  712. package/build/esm/integrations/tracing/lrumemoizer/index.js +0 -18
  713. package/build/esm/integrations/tracing/lrumemoizer/index.js.map +0 -1
  714. package/build/esm/integrations/tracing/lrumemoizer/vendored/instrumentation.js +0 -36
  715. package/build/esm/integrations/tracing/lrumemoizer/vendored/instrumentation.js.map +0 -1
  716. package/build/esm/integrations/tracing/mongo/index.js +0 -18
  717. package/build/esm/integrations/tracing/mongo/index.js.map +0 -1
  718. package/build/esm/integrations/tracing/mongo/vendored/instrumentation.js +0 -127
  719. package/build/esm/integrations/tracing/mongo/vendored/instrumentation.js.map +0 -1
  720. package/build/esm/integrations/tracing/mongo/vendored/patches.js +0 -142
  721. package/build/esm/integrations/tracing/mongo/vendored/patches.js.map +0 -1
  722. package/build/esm/integrations/tracing/mongo/vendored/utils.js +0 -34
  723. package/build/esm/integrations/tracing/mongo/vendored/utils.js.map +0 -1
  724. package/build/esm/integrations/tracing/mongoose/index.js +0 -19
  725. package/build/esm/integrations/tracing/mongoose/index.js.map +0 -1
  726. package/build/esm/integrations/tracing/mongoose/vendored/mongoose.js +0 -236
  727. package/build/esm/integrations/tracing/mongoose/vendored/mongoose.js.map +0 -1
  728. package/build/esm/integrations/tracing/mongoose/vendored/utils.js +0 -38
  729. package/build/esm/integrations/tracing/mongoose/vendored/utils.js.map +0 -1
  730. package/build/esm/integrations/tracing/mysql/index.js +0 -18
  731. package/build/esm/integrations/tracing/mysql/index.js.map +0 -1
  732. package/build/esm/integrations/tracing/mysql/vendored/instrumentation.js +0 -183
  733. package/build/esm/integrations/tracing/mysql/vendored/instrumentation.js.map +0 -1
  734. package/build/esm/integrations/tracing/mysql/vendored/semconv.js +0 -5
  735. package/build/esm/integrations/tracing/mysql/vendored/semconv.js.map +0 -1
  736. package/build/esm/integrations/tracing/mysql/vendored/utils.js +0 -33
  737. package/build/esm/integrations/tracing/mysql/vendored/utils.js.map +0 -1
  738. package/build/esm/integrations/tracing/mysql2/index.js +0 -19
  739. package/build/esm/integrations/tracing/mysql2/index.js.map +0 -1
  740. package/build/esm/integrations/tracing/mysql2/vendored/instrumentation.js +0 -136
  741. package/build/esm/integrations/tracing/mysql2/vendored/instrumentation.js.map +0 -1
  742. package/build/esm/integrations/tracing/mysql2/vendored/semconv.js +0 -5
  743. package/build/esm/integrations/tracing/mysql2/vendored/semconv.js.map +0 -1
  744. package/build/esm/integrations/tracing/mysql2/vendored/utils.js +0 -75
  745. package/build/esm/integrations/tracing/mysql2/vendored/utils.js.map +0 -1
  746. package/build/esm/integrations/tracing/openai/index.js +0 -20
  747. package/build/esm/integrations/tracing/openai/index.js.map +0 -1
  748. package/build/esm/integrations/tracing/openai/instrumentation.js +0 -78
  749. package/build/esm/integrations/tracing/openai/instrumentation.js.map +0 -1
  750. package/build/esm/integrations/tracing/postgres/index.js +0 -24
  751. package/build/esm/integrations/tracing/postgres/index.js.map +0 -1
  752. package/build/esm/integrations/tracing/postgres/vendored/enums/AttributeNames.js +0 -9
  753. package/build/esm/integrations/tracing/postgres/vendored/enums/AttributeNames.js.map +0 -1
  754. package/build/esm/integrations/tracing/postgres/vendored/enums/SpanNames.js +0 -9
  755. package/build/esm/integrations/tracing/postgres/vendored/enums/SpanNames.js.map +0 -1
  756. package/build/esm/integrations/tracing/postgres/vendored/instrumentation.js +0 -223
  757. package/build/esm/integrations/tracing/postgres/vendored/instrumentation.js.map +0 -1
  758. package/build/esm/integrations/tracing/postgres/vendored/semconv.js +0 -5
  759. package/build/esm/integrations/tracing/postgres/vendored/semconv.js.map +0 -1
  760. package/build/esm/integrations/tracing/postgres/vendored/utils.js +0 -136
  761. package/build/esm/integrations/tracing/postgres/vendored/utils.js.map +0 -1
  762. package/build/esm/integrations/tracing/postgresjs.js +0 -261
  763. package/build/esm/integrations/tracing/postgresjs.js.map +0 -1
  764. package/build/esm/integrations/tracing/redis/vendored/ioredis-instrumentation.js +0 -145
  765. package/build/esm/integrations/tracing/redis/vendored/ioredis-instrumentation.js.map +0 -1
  766. package/build/esm/integrations/tracing/redis/vendored/redis-instrumentation.js +0 -443
  767. package/build/esm/integrations/tracing/redis/vendored/redis-instrumentation.js.map +0 -1
  768. package/build/esm/integrations/tracing/redis/vendored/semconv.js +0 -5
  769. package/build/esm/integrations/tracing/redis/vendored/semconv.js.map +0 -1
  770. package/build/esm/integrations/tracing/tedious/index.js +0 -18
  771. package/build/esm/integrations/tracing/tedious/index.js.map +0 -1
  772. package/build/esm/integrations/tracing/tedious/vendored/instrumentation.js +0 -152
  773. package/build/esm/integrations/tracing/tedious/vendored/instrumentation.js.map +0 -1
  774. package/build/esm/integrations/tracing/tedious/vendored/semconv.js +0 -5
  775. package/build/esm/integrations/tracing/tedious/vendored/semconv.js.map +0 -1
  776. package/build/esm/integrations/tracing/tedious/vendored/utils.js +0 -26
  777. package/build/esm/integrations/tracing/tedious/vendored/utils.js.map +0 -1
  778. package/build/esm/integrations/tracing/vercelai/constants.js +0 -4
  779. package/build/esm/integrations/tracing/vercelai/constants.js.map +0 -1
  780. package/build/esm/integrations/tracing/vercelai/index.js +0 -33
  781. package/build/esm/integrations/tracing/vercelai/index.js.map +0 -1
  782. package/build/esm/integrations/tracing/vercelai/instrumentation.js +0 -171
  783. package/build/esm/integrations/tracing/vercelai/instrumentation.js.map +0 -1
  784. package/build/esm/preload.js +0 -8
  785. package/build/esm/preload.js.map +0 -1
  786. package/build/esm/sdk/diagnosticsChannelInjection.js +0 -17
  787. package/build/esm/sdk/diagnosticsChannelInjection.js.map +0 -1
  788. package/build/esm/sdk/experimentalUseDiagnosticsChannelInjection.js +0 -30
  789. package/build/esm/sdk/experimentalUseDiagnosticsChannelInjection.js.map +0 -1
  790. package/build/esm/utils/setHttpServerSpanRouteAttribute.js +0 -19
  791. package/build/esm/utils/setHttpServerSpanRouteAttribute.js.map +0 -1
  792. package/build/loader-hook.mjs +0 -1
  793. package/build/types/init.d.ts +0 -2
  794. package/build/types/init.d.ts.map +0 -1
  795. package/build/types/integrations/http.d.ts +0 -131
  796. package/build/types/integrations/http.d.ts.map +0 -1
  797. package/build/types/integrations/node-fetch.d.ts +0 -9
  798. package/build/types/integrations/node-fetch.d.ts.map +0 -1
  799. package/build/types/integrations/tracing/InstrumentationNodeModuleFile.d.ts +0 -9
  800. package/build/types/integrations/tracing/InstrumentationNodeModuleFile.d.ts.map +0 -1
  801. package/build/types/integrations/tracing/amqplib/index.d.ts +0 -22
  802. package/build/types/integrations/tracing/amqplib/index.d.ts.map +0 -1
  803. package/build/types/integrations/tracing/amqplib/vendored/amqplib-types.d.ts +0 -44
  804. package/build/types/integrations/tracing/amqplib/vendored/amqplib-types.d.ts.map +0 -1
  805. package/build/types/integrations/tracing/amqplib/vendored/instrumentation.d.ts +0 -11
  806. package/build/types/integrations/tracing/amqplib/vendored/instrumentation.d.ts.map +0 -1
  807. package/build/types/integrations/tracing/amqplib/vendored/patches.d.ts +0 -11
  808. package/build/types/integrations/tracing/amqplib/vendored/patches.d.ts.map +0 -1
  809. package/build/types/integrations/tracing/amqplib/vendored/semconv.d.ts +0 -23
  810. package/build/types/integrations/tracing/amqplib/vendored/semconv.d.ts.map +0 -1
  811. package/build/types/integrations/tracing/amqplib/vendored/types.d.ts +0 -49
  812. package/build/types/integrations/tracing/amqplib/vendored/types.d.ts.map +0 -1
  813. package/build/types/integrations/tracing/amqplib/vendored/utils.d.ts +0 -42
  814. package/build/types/integrations/tracing/amqplib/vendored/utils.d.ts.map +0 -1
  815. package/build/types/integrations/tracing/anthropic-ai/index.d.ts +0 -62
  816. package/build/types/integrations/tracing/anthropic-ai/index.d.ts.map +0 -1
  817. package/build/types/integrations/tracing/anthropic-ai/instrumentation.d.ts +0 -19
  818. package/build/types/integrations/tracing/anthropic-ai/instrumentation.d.ts.map +0 -1
  819. package/build/types/integrations/tracing/connect/index.d.ts +0 -48
  820. package/build/types/integrations/tracing/connect/index.d.ts.map +0 -1
  821. package/build/types/integrations/tracing/connect/vendored/enums/AttributeNames.d.ts +0 -9
  822. package/build/types/integrations/tracing/connect/vendored/enums/AttributeNames.d.ts.map +0 -1
  823. package/build/types/integrations/tracing/connect/vendored/instrumentation.d.ts +0 -18
  824. package/build/types/integrations/tracing/connect/vendored/instrumentation.d.ts.map +0 -1
  825. package/build/types/integrations/tracing/connect/vendored/internal-types.d.ts +0 -31
  826. package/build/types/integrations/tracing/connect/vendored/internal-types.d.ts.map +0 -1
  827. package/build/types/integrations/tracing/connect/vendored/utils.d.ts +0 -5
  828. package/build/types/integrations/tracing/connect/vendored/utils.d.ts.map +0 -1
  829. package/build/types/integrations/tracing/dataloader/index.d.ts +0 -22
  830. package/build/types/integrations/tracing/dataloader/index.d.ts.map +0 -1
  831. package/build/types/integrations/tracing/dataloader/vendored/instrumentation.d.ts +0 -18
  832. package/build/types/integrations/tracing/dataloader/vendored/instrumentation.d.ts.map +0 -1
  833. package/build/types/integrations/tracing/dataloader/vendored/types.d.ts +0 -22
  834. package/build/types/integrations/tracing/dataloader/vendored/types.d.ts.map +0 -1
  835. package/build/types/integrations/tracing/fastify/v3/constants.d.ts +0 -3
  836. package/build/types/integrations/tracing/fastify/v3/constants.d.ts.map +0 -1
  837. package/build/types/integrations/tracing/fastify/v3/enums/AttributeNames.d.ts +0 -15
  838. package/build/types/integrations/tracing/fastify/v3/enums/AttributeNames.d.ts.map +0 -1
  839. package/build/types/integrations/tracing/fastify/v3/instrumentation.d.ts +0 -16
  840. package/build/types/integrations/tracing/fastify/v3/instrumentation.d.ts.map +0 -1
  841. package/build/types/integrations/tracing/fastify/v3/internal-types.d.ts +0 -7
  842. package/build/types/integrations/tracing/fastify/v3/internal-types.d.ts.map +0 -1
  843. package/build/types/integrations/tracing/fastify/v3/types.d.ts +0 -21
  844. package/build/types/integrations/tracing/fastify/v3/types.d.ts.map +0 -1
  845. package/build/types/integrations/tracing/fastify/v3/utils.d.ts +0 -28
  846. package/build/types/integrations/tracing/fastify/v3/utils.d.ts.map +0 -1
  847. package/build/types/integrations/tracing/firebase/firebase.d.ts +0 -8
  848. package/build/types/integrations/tracing/firebase/firebase.d.ts.map +0 -1
  849. package/build/types/integrations/tracing/firebase/index.d.ts +0 -2
  850. package/build/types/integrations/tracing/firebase/index.d.ts.map +0 -1
  851. package/build/types/integrations/tracing/firebase/otel/firebaseInstrumentation.d.ts +0 -14
  852. package/build/types/integrations/tracing/firebase/otel/firebaseInstrumentation.d.ts.map +0 -1
  853. package/build/types/integrations/tracing/firebase/otel/index.d.ts +0 -3
  854. package/build/types/integrations/tracing/firebase/otel/index.d.ts.map +0 -1
  855. package/build/types/integrations/tracing/firebase/otel/patches/firestore.d.ts +0 -22
  856. package/build/types/integrations/tracing/firebase/otel/patches/firestore.d.ts.map +0 -1
  857. package/build/types/integrations/tracing/firebase/otel/patches/functions.d.ts +0 -18
  858. package/build/types/integrations/tracing/firebase/otel/patches/functions.d.ts.map +0 -1
  859. package/build/types/integrations/tracing/firebase/otel/types.d.ts +0 -100
  860. package/build/types/integrations/tracing/firebase/otel/types.d.ts.map +0 -1
  861. package/build/types/integrations/tracing/genericPool/index.d.ts +0 -22
  862. package/build/types/integrations/tracing/genericPool/index.d.ts.map +0 -1
  863. package/build/types/integrations/tracing/genericPool/vendored/generic-pool-types.d.ts +0 -5
  864. package/build/types/integrations/tracing/genericPool/vendored/generic-pool-types.d.ts.map +0 -1
  865. package/build/types/integrations/tracing/genericPool/vendored/instrumentation.d.ts +0 -11
  866. package/build/types/integrations/tracing/genericPool/vendored/instrumentation.d.ts.map +0 -1
  867. package/build/types/integrations/tracing/google-genai/index.d.ts +0 -62
  868. package/build/types/integrations/tracing/google-genai/index.d.ts.map +0 -1
  869. package/build/types/integrations/tracing/google-genai/instrumentation.d.ts +0 -20
  870. package/build/types/integrations/tracing/google-genai/instrumentation.d.ts.map +0 -1
  871. package/build/types/integrations/tracing/graphql/index.d.ts +0 -50
  872. package/build/types/integrations/tracing/graphql/index.d.ts.map +0 -1
  873. package/build/types/integrations/tracing/graphql/vendored/enum.d.ts +0 -38
  874. package/build/types/integrations/tracing/graphql/vendored/enum.d.ts.map +0 -1
  875. package/build/types/integrations/tracing/graphql/vendored/enums/AttributeNames.d.ts +0 -10
  876. package/build/types/integrations/tracing/graphql/vendored/enums/AttributeNames.d.ts.map +0 -1
  877. package/build/types/integrations/tracing/graphql/vendored/graphql-types.d.ts +0 -2
  878. package/build/types/integrations/tracing/graphql/vendored/graphql-types.d.ts.map +0 -1
  879. package/build/types/integrations/tracing/graphql/vendored/instrumentation.d.ts +0 -25
  880. package/build/types/integrations/tracing/graphql/vendored/instrumentation.d.ts.map +0 -1
  881. package/build/types/integrations/tracing/graphql/vendored/internal-types.d.ts +0 -63
  882. package/build/types/integrations/tracing/graphql/vendored/internal-types.d.ts.map +0 -1
  883. package/build/types/integrations/tracing/graphql/vendored/symbols.d.ts +0 -3
  884. package/build/types/integrations/tracing/graphql/vendored/symbols.d.ts.map +0 -1
  885. package/build/types/integrations/tracing/graphql/vendored/types.d.ts +0 -33
  886. package/build/types/integrations/tracing/graphql/vendored/types.d.ts.map +0 -1
  887. package/build/types/integrations/tracing/graphql/vendored/utils.d.ts +0 -14
  888. package/build/types/integrations/tracing/graphql/vendored/utils.d.ts.map +0 -1
  889. package/build/types/integrations/tracing/hapi/vendored/enums/AttributeNames.d.ts +0 -6
  890. package/build/types/integrations/tracing/hapi/vendored/enums/AttributeNames.d.ts.map +0 -1
  891. package/build/types/integrations/tracing/hapi/vendored/hapi-types.d.ts +0 -70
  892. package/build/types/integrations/tracing/hapi/vendored/hapi-types.d.ts.map +0 -1
  893. package/build/types/integrations/tracing/hapi/vendored/instrumentation.d.ts +0 -72
  894. package/build/types/integrations/tracing/hapi/vendored/instrumentation.d.ts.map +0 -1
  895. package/build/types/integrations/tracing/hapi/vendored/internal-types.d.ts +0 -32
  896. package/build/types/integrations/tracing/hapi/vendored/internal-types.d.ts.map +0 -1
  897. package/build/types/integrations/tracing/hapi/vendored/utils.d.ts +0 -18
  898. package/build/types/integrations/tracing/hapi/vendored/utils.d.ts.map +0 -1
  899. package/build/types/integrations/tracing/hono/constants.d.ts +0 -11
  900. package/build/types/integrations/tracing/hono/constants.d.ts.map +0 -1
  901. package/build/types/integrations/tracing/hono/index.d.ts +0 -60
  902. package/build/types/integrations/tracing/hono/index.d.ts.map +0 -1
  903. package/build/types/integrations/tracing/hono/instrumentation.d.ts +0 -55
  904. package/build/types/integrations/tracing/hono/instrumentation.d.ts.map +0 -1
  905. package/build/types/integrations/tracing/hono/types.d.ts +0 -36
  906. package/build/types/integrations/tracing/hono/types.d.ts.map +0 -1
  907. package/build/types/integrations/tracing/kafka/index.d.ts +0 -21
  908. package/build/types/integrations/tracing/kafka/index.d.ts.map +0 -1
  909. package/build/types/integrations/tracing/kafka/vendored/instrumentation.d.ts +0 -15
  910. package/build/types/integrations/tracing/kafka/vendored/instrumentation.d.ts.map +0 -1
  911. package/build/types/integrations/tracing/kafka/vendored/kafkajs-types.d.ts +0 -79
  912. package/build/types/integrations/tracing/kafka/vendored/kafkajs-types.d.ts.map +0 -1
  913. package/build/types/integrations/tracing/kafka/vendored/semconv.d.ts +0 -54
  914. package/build/types/integrations/tracing/kafka/vendored/semconv.d.ts.map +0 -1
  915. package/build/types/integrations/tracing/kafka/vendored/utils.d.ts +0 -29
  916. package/build/types/integrations/tracing/kafka/vendored/utils.d.ts.map +0 -1
  917. package/build/types/integrations/tracing/knex/index.d.ts +0 -22
  918. package/build/types/integrations/tracing/knex/index.d.ts.map +0 -1
  919. package/build/types/integrations/tracing/knex/vendored/instrumentation.d.ts +0 -12
  920. package/build/types/integrations/tracing/knex/vendored/instrumentation.d.ts.map +0 -1
  921. package/build/types/integrations/tracing/knex/vendored/semconv.d.ts +0 -7
  922. package/build/types/integrations/tracing/knex/vendored/semconv.d.ts.map +0 -1
  923. package/build/types/integrations/tracing/knex/vendored/utils.d.ts +0 -9
  924. package/build/types/integrations/tracing/knex/vendored/utils.d.ts.map +0 -1
  925. package/build/types/integrations/tracing/koa/vendored/enums/AttributeNames.d.ts +0 -5
  926. package/build/types/integrations/tracing/koa/vendored/enums/AttributeNames.d.ts.map +0 -1
  927. package/build/types/integrations/tracing/koa/vendored/instrumentation.d.ts +0 -32
  928. package/build/types/integrations/tracing/koa/vendored/instrumentation.d.ts.map +0 -1
  929. package/build/types/integrations/tracing/koa/vendored/internal-types.d.ts +0 -34
  930. package/build/types/integrations/tracing/koa/vendored/internal-types.d.ts.map +0 -1
  931. package/build/types/integrations/tracing/koa/vendored/types.d.ts +0 -13
  932. package/build/types/integrations/tracing/koa/vendored/types.d.ts.map +0 -1
  933. package/build/types/integrations/tracing/koa/vendored/utils.d.ts +0 -15
  934. package/build/types/integrations/tracing/koa/vendored/utils.d.ts.map +0 -1
  935. package/build/types/integrations/tracing/langchain/index.d.ts +0 -101
  936. package/build/types/integrations/tracing/langchain/index.d.ts.map +0 -1
  937. package/build/types/integrations/tracing/langchain/instrumentation.d.ts +0 -38
  938. package/build/types/integrations/tracing/langchain/instrumentation.d.ts.map +0 -1
  939. package/build/types/integrations/tracing/langgraph/index.d.ts +0 -77
  940. package/build/types/integrations/tracing/langgraph/index.d.ts.map +0 -1
  941. package/build/types/integrations/tracing/langgraph/instrumentation.d.ts +0 -19
  942. package/build/types/integrations/tracing/langgraph/instrumentation.d.ts.map +0 -1
  943. package/build/types/integrations/tracing/lrumemoizer/index.d.ts +0 -21
  944. package/build/types/integrations/tracing/lrumemoizer/index.d.ts.map +0 -1
  945. package/build/types/integrations/tracing/lrumemoizer/vendored/instrumentation.d.ts +0 -6
  946. package/build/types/integrations/tracing/lrumemoizer/vendored/instrumentation.d.ts.map +0 -1
  947. package/build/types/integrations/tracing/mongo/index.d.ts +0 -22
  948. package/build/types/integrations/tracing/mongo/index.d.ts.map +0 -1
  949. package/build/types/integrations/tracing/mongo/vendored/instrumentation.d.ts +0 -11
  950. package/build/types/integrations/tracing/mongo/vendored/instrumentation.d.ts.map +0 -1
  951. package/build/types/integrations/tracing/mongo/vendored/internal-types.d.ts +0 -62
  952. package/build/types/integrations/tracing/mongo/vendored/internal-types.d.ts.map +0 -1
  953. package/build/types/integrations/tracing/mongo/vendored/patches.d.ts +0 -15
  954. package/build/types/integrations/tracing/mongo/vendored/patches.d.ts.map +0 -1
  955. package/build/types/integrations/tracing/mongo/vendored/utils.d.ts +0 -15
  956. package/build/types/integrations/tracing/mongo/vendored/utils.d.ts.map +0 -1
  957. package/build/types/integrations/tracing/mongoose/index.d.ts +0 -22
  958. package/build/types/integrations/tracing/mongoose/index.d.ts.map +0 -1
  959. package/build/types/integrations/tracing/mongoose/vendored/mongoose-types.d.ts +0 -33
  960. package/build/types/integrations/tracing/mongoose/vendored/mongoose-types.d.ts.map +0 -1
  961. package/build/types/integrations/tracing/mongoose/vendored/mongoose.d.ts +0 -18
  962. package/build/types/integrations/tracing/mongoose/vendored/mongoose.d.ts.map +0 -1
  963. package/build/types/integrations/tracing/mongoose/vendored/utils.d.ts +0 -4
  964. package/build/types/integrations/tracing/mongoose/vendored/utils.d.ts.map +0 -1
  965. package/build/types/integrations/tracing/mysql/index.d.ts +0 -22
  966. package/build/types/integrations/tracing/mysql/index.d.ts.map +0 -1
  967. package/build/types/integrations/tracing/mysql/vendored/instrumentation.d.ts +0 -14
  968. package/build/types/integrations/tracing/mysql/vendored/instrumentation.d.ts.map +0 -1
  969. package/build/types/integrations/tracing/mysql/vendored/mysql-types.d.ts +0 -78
  970. package/build/types/integrations/tracing/mysql/vendored/mysql-types.d.ts.map +0 -1
  971. package/build/types/integrations/tracing/mysql/vendored/semconv.d.ts +0 -19
  972. package/build/types/integrations/tracing/mysql/vendored/semconv.d.ts.map +0 -1
  973. package/build/types/integrations/tracing/mysql/vendored/utils.d.ts +0 -22
  974. package/build/types/integrations/tracing/mysql/vendored/utils.d.ts.map +0 -1
  975. package/build/types/integrations/tracing/mysql2/index.d.ts +0 -22
  976. package/build/types/integrations/tracing/mysql2/index.d.ts.map +0 -1
  977. package/build/types/integrations/tracing/mysql2/vendored/instrumentation.d.ts +0 -9
  978. package/build/types/integrations/tracing/mysql2/vendored/instrumentation.d.ts.map +0 -1
  979. package/build/types/integrations/tracing/mysql2/vendored/mysql2-types.d.ts +0 -39
  980. package/build/types/integrations/tracing/mysql2/vendored/mysql2-types.d.ts.map +0 -1
  981. package/build/types/integrations/tracing/mysql2/vendored/semconv.d.ts +0 -3
  982. package/build/types/integrations/tracing/mysql2/vendored/semconv.d.ts.map +0 -1
  983. package/build/types/integrations/tracing/mysql2/vendored/utils.d.ts +0 -25
  984. package/build/types/integrations/tracing/mysql2/vendored/utils.d.ts.map +0 -1
  985. package/build/types/integrations/tracing/openai/index.d.ts +0 -62
  986. package/build/types/integrations/tracing/openai/index.d.ts.map +0 -1
  987. package/build/types/integrations/tracing/openai/instrumentation.d.ts +0 -26
  988. package/build/types/integrations/tracing/openai/instrumentation.d.ts.map +0 -1
  989. package/build/types/integrations/tracing/postgres/index.d.ts +0 -26
  990. package/build/types/integrations/tracing/postgres/index.d.ts.map +0 -1
  991. package/build/types/integrations/tracing/postgres/vendored/enums/AttributeNames.d.ts +0 -6
  992. package/build/types/integrations/tracing/postgres/vendored/enums/AttributeNames.d.ts.map +0 -1
  993. package/build/types/integrations/tracing/postgres/vendored/enums/SpanNames.d.ts +0 -6
  994. package/build/types/integrations/tracing/postgres/vendored/enums/SpanNames.d.ts.map +0 -1
  995. package/build/types/integrations/tracing/postgres/vendored/instrumentation.d.ts +0 -12
  996. package/build/types/integrations/tracing/postgres/vendored/instrumentation.d.ts.map +0 -1
  997. package/build/types/integrations/tracing/postgres/vendored/internal-types.d.ts +0 -33
  998. package/build/types/integrations/tracing/postgres/vendored/internal-types.d.ts.map +0 -1
  999. package/build/types/integrations/tracing/postgres/vendored/pg-pool-types.d.ts +0 -20
  1000. package/build/types/integrations/tracing/postgres/vendored/pg-pool-types.d.ts.map +0 -1
  1001. package/build/types/integrations/tracing/postgres/vendored/pg-types.d.ts +0 -54
  1002. package/build/types/integrations/tracing/postgres/vendored/pg-types.d.ts.map +0 -1
  1003. package/build/types/integrations/tracing/postgres/vendored/semconv.d.ts +0 -13
  1004. package/build/types/integrations/tracing/postgres/vendored/semconv.d.ts.map +0 -1
  1005. package/build/types/integrations/tracing/postgres/vendored/types.d.ts +0 -11
  1006. package/build/types/integrations/tracing/postgres/vendored/types.d.ts.map +0 -1
  1007. package/build/types/integrations/tracing/postgres/vendored/utils.d.ts +0 -56
  1008. package/build/types/integrations/tracing/postgres/vendored/utils.d.ts.map +0 -1
  1009. package/build/types/integrations/tracing/postgresjs.d.ts +0 -103
  1010. package/build/types/integrations/tracing/postgresjs.d.ts.map +0 -1
  1011. package/build/types/integrations/tracing/redis/vendored/ioredis-instrumentation.d.ts +0 -10
  1012. package/build/types/integrations/tracing/redis/vendored/ioredis-instrumentation.d.ts.map +0 -1
  1013. package/build/types/integrations/tracing/redis/vendored/redis-instrumentation.d.ts +0 -16
  1014. package/build/types/integrations/tracing/redis/vendored/redis-instrumentation.d.ts.map +0 -1
  1015. package/build/types/integrations/tracing/redis/vendored/semconv.d.ts +0 -4
  1016. package/build/types/integrations/tracing/redis/vendored/semconv.d.ts.map +0 -1
  1017. package/build/types/integrations/tracing/tedious/index.d.ts +0 -22
  1018. package/build/types/integrations/tracing/tedious/index.d.ts.map +0 -1
  1019. package/build/types/integrations/tracing/tedious/vendored/instrumentation.d.ts +0 -11
  1020. package/build/types/integrations/tracing/tedious/vendored/instrumentation.d.ts.map +0 -1
  1021. package/build/types/integrations/tracing/tedious/vendored/semconv.d.ts +0 -19
  1022. package/build/types/integrations/tracing/tedious/vendored/semconv.d.ts.map +0 -1
  1023. package/build/types/integrations/tracing/tedious/vendored/tedious-types.d.ts +0 -21
  1024. package/build/types/integrations/tracing/tedious/vendored/tedious-types.d.ts.map +0 -1
  1025. package/build/types/integrations/tracing/tedious/vendored/utils.d.ts +0 -9
  1026. package/build/types/integrations/tracing/tedious/vendored/utils.d.ts.map +0 -1
  1027. package/build/types/integrations/tracing/vercelai/constants.d.ts +0 -2
  1028. package/build/types/integrations/tracing/vercelai/constants.d.ts.map +0 -1
  1029. package/build/types/integrations/tracing/vercelai/index.d.ts +0 -44
  1030. package/build/types/integrations/tracing/vercelai/index.d.ts.map +0 -1
  1031. package/build/types/integrations/tracing/vercelai/instrumentation.d.ts +0 -56
  1032. package/build/types/integrations/tracing/vercelai/instrumentation.d.ts.map +0 -1
  1033. package/build/types/integrations/tracing/vercelai/types.d.ts +0 -50
  1034. package/build/types/integrations/tracing/vercelai/types.d.ts.map +0 -1
  1035. package/build/types/preload.d.ts +0 -2
  1036. package/build/types/preload.d.ts.map +0 -1
  1037. package/build/types/sdk/diagnosticsChannelInjection.d.ts +0 -41
  1038. package/build/types/sdk/diagnosticsChannelInjection.d.ts.map +0 -1
  1039. package/build/types/sdk/experimentalUseDiagnosticsChannelInjection.d.ts +0 -37
  1040. package/build/types/sdk/experimentalUseDiagnosticsChannelInjection.d.ts.map +0 -1
  1041. package/build/types/utils/setHttpServerSpanRouteAttribute.d.ts +0 -9
  1042. package/build/types/utils/setHttpServerSpanRouteAttribute.d.ts.map +0 -1
  1043. package/build/types-ts3.8/debug-build.d.ts +0 -7
  1044. package/build/types-ts3.8/index.d.ts +0 -44
  1045. package/build/types-ts3.8/init.d.ts +0 -2
  1046. package/build/types-ts3.8/integrations/featureFlagShims/growthbook.d.ts +0 -6
  1047. package/build/types-ts3.8/integrations/featureFlagShims/index.d.ts +0 -6
  1048. package/build/types-ts3.8/integrations/featureFlagShims/launchDarkly.d.ts +0 -12
  1049. package/build/types-ts3.8/integrations/featureFlagShims/openFeature.d.ts +0 -25
  1050. package/build/types-ts3.8/integrations/featureFlagShims/statsig.d.ts +0 -8
  1051. package/build/types-ts3.8/integrations/featureFlagShims/unleash.d.ts +0 -8
  1052. package/build/types-ts3.8/integrations/fs/index.d.ts +0 -14
  1053. package/build/types-ts3.8/integrations/fs/vendored/constants.d.ts +0 -5
  1054. package/build/types-ts3.8/integrations/fs/vendored/instrumentation.d.ts +0 -3
  1055. package/build/types-ts3.8/integrations/fs/vendored/types.d.ts +0 -23
  1056. package/build/types-ts3.8/integrations/fs/vendored/utils.d.ts +0 -15
  1057. package/build/types-ts3.8/integrations/http.d.ts +0 -134
  1058. package/build/types-ts3.8/integrations/node-fetch.d.ts +0 -9
  1059. package/build/types-ts3.8/integrations/tracing/InstrumentationNodeModuleFile.d.ts +0 -9
  1060. package/build/types-ts3.8/integrations/tracing/amqplib/index.d.ts +0 -22
  1061. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/amqplib-types.d.ts +0 -44
  1062. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/instrumentation.d.ts +0 -11
  1063. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/patches.d.ts +0 -11
  1064. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/semconv.d.ts +0 -23
  1065. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/types.d.ts +0 -49
  1066. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/utils.d.ts +0 -42
  1067. package/build/types-ts3.8/integrations/tracing/anthropic-ai/index.d.ts +0 -62
  1068. package/build/types-ts3.8/integrations/tracing/anthropic-ai/instrumentation.d.ts +0 -19
  1069. package/build/types-ts3.8/integrations/tracing/connect/index.d.ts +0 -48
  1070. package/build/types-ts3.8/integrations/tracing/connect/vendored/enums/AttributeNames.d.ts +0 -9
  1071. package/build/types-ts3.8/integrations/tracing/connect/vendored/instrumentation.d.ts +0 -18
  1072. package/build/types-ts3.8/integrations/tracing/connect/vendored/internal-types.d.ts +0 -36
  1073. package/build/types-ts3.8/integrations/tracing/connect/vendored/utils.d.ts +0 -5
  1074. package/build/types-ts3.8/integrations/tracing/dataloader/index.d.ts +0 -22
  1075. package/build/types-ts3.8/integrations/tracing/dataloader/vendored/instrumentation.d.ts +0 -18
  1076. package/build/types-ts3.8/integrations/tracing/dataloader/vendored/types.d.ts +0 -22
  1077. package/build/types-ts3.8/integrations/tracing/express.d.ts +0 -19
  1078. package/build/types-ts3.8/integrations/tracing/fastify/index.d.ts +0 -119
  1079. package/build/types-ts3.8/integrations/tracing/fastify/types.d.ts +0 -33
  1080. package/build/types-ts3.8/integrations/tracing/fastify/v3/constants.d.ts +0 -3
  1081. package/build/types-ts3.8/integrations/tracing/fastify/v3/enums/AttributeNames.d.ts +0 -15
  1082. package/build/types-ts3.8/integrations/tracing/fastify/v3/instrumentation.d.ts +0 -16
  1083. package/build/types-ts3.8/integrations/tracing/fastify/v3/internal-types.d.ts +0 -7
  1084. package/build/types-ts3.8/integrations/tracing/fastify/v3/types.d.ts +0 -21
  1085. package/build/types-ts3.8/integrations/tracing/fastify/v3/utils.d.ts +0 -28
  1086. package/build/types-ts3.8/integrations/tracing/firebase/firebase.d.ts +0 -8
  1087. package/build/types-ts3.8/integrations/tracing/firebase/index.d.ts +0 -2
  1088. package/build/types-ts3.8/integrations/tracing/firebase/otel/firebaseInstrumentation.d.ts +0 -14
  1089. package/build/types-ts3.8/integrations/tracing/firebase/otel/index.d.ts +0 -3
  1090. package/build/types-ts3.8/integrations/tracing/firebase/otel/patches/firestore.d.ts +0 -22
  1091. package/build/types-ts3.8/integrations/tracing/firebase/otel/patches/functions.d.ts +0 -18
  1092. package/build/types-ts3.8/integrations/tracing/firebase/otel/types.d.ts +0 -100
  1093. package/build/types-ts3.8/integrations/tracing/genericPool/index.d.ts +0 -22
  1094. package/build/types-ts3.8/integrations/tracing/genericPool/vendored/generic-pool-types.d.ts +0 -5
  1095. package/build/types-ts3.8/integrations/tracing/genericPool/vendored/instrumentation.d.ts +0 -11
  1096. package/build/types-ts3.8/integrations/tracing/google-genai/index.d.ts +0 -62
  1097. package/build/types-ts3.8/integrations/tracing/google-genai/instrumentation.d.ts +0 -20
  1098. package/build/types-ts3.8/integrations/tracing/graphql/index.d.ts +0 -50
  1099. package/build/types-ts3.8/integrations/tracing/graphql/vendored/enum.d.ts +0 -38
  1100. package/build/types-ts3.8/integrations/tracing/graphql/vendored/enums/AttributeNames.d.ts +0 -10
  1101. package/build/types-ts3.8/integrations/tracing/graphql/vendored/graphql-types.d.ts +0 -2
  1102. package/build/types-ts3.8/integrations/tracing/graphql/vendored/instrumentation.d.ts +0 -25
  1103. package/build/types-ts3.8/integrations/tracing/graphql/vendored/internal-types.d.ts +0 -63
  1104. package/build/types-ts3.8/integrations/tracing/graphql/vendored/symbols.d.ts +0 -3
  1105. package/build/types-ts3.8/integrations/tracing/graphql/vendored/types.d.ts +0 -33
  1106. package/build/types-ts3.8/integrations/tracing/graphql/vendored/utils.d.ts +0 -14
  1107. package/build/types-ts3.8/integrations/tracing/hapi/index.d.ts +0 -52
  1108. package/build/types-ts3.8/integrations/tracing/hapi/types.d.ts +0 -166
  1109. package/build/types-ts3.8/integrations/tracing/hapi/vendored/enums/AttributeNames.d.ts +0 -6
  1110. package/build/types-ts3.8/integrations/tracing/hapi/vendored/hapi-types.d.ts +0 -70
  1111. package/build/types-ts3.8/integrations/tracing/hapi/vendored/instrumentation.d.ts +0 -72
  1112. package/build/types-ts3.8/integrations/tracing/hapi/vendored/internal-types.d.ts +0 -32
  1113. package/build/types-ts3.8/integrations/tracing/hapi/vendored/utils.d.ts +0 -18
  1114. package/build/types-ts3.8/integrations/tracing/hono/constants.d.ts +0 -11
  1115. package/build/types-ts3.8/integrations/tracing/hono/index.d.ts +0 -60
  1116. package/build/types-ts3.8/integrations/tracing/hono/instrumentation.d.ts +0 -55
  1117. package/build/types-ts3.8/integrations/tracing/hono/types.d.ts +0 -36
  1118. package/build/types-ts3.8/integrations/tracing/index.d.ts +0 -12
  1119. package/build/types-ts3.8/integrations/tracing/kafka/index.d.ts +0 -21
  1120. package/build/types-ts3.8/integrations/tracing/kafka/vendored/instrumentation.d.ts +0 -15
  1121. package/build/types-ts3.8/integrations/tracing/kafka/vendored/kafkajs-types.d.ts +0 -79
  1122. package/build/types-ts3.8/integrations/tracing/kafka/vendored/semconv.d.ts +0 -54
  1123. package/build/types-ts3.8/integrations/tracing/kafka/vendored/utils.d.ts +0 -29
  1124. package/build/types-ts3.8/integrations/tracing/knex/index.d.ts +0 -22
  1125. package/build/types-ts3.8/integrations/tracing/knex/vendored/instrumentation.d.ts +0 -12
  1126. package/build/types-ts3.8/integrations/tracing/knex/vendored/semconv.d.ts +0 -7
  1127. package/build/types-ts3.8/integrations/tracing/knex/vendored/utils.d.ts +0 -9
  1128. package/build/types-ts3.8/integrations/tracing/koa/index.d.ts +0 -72
  1129. package/build/types-ts3.8/integrations/tracing/koa/vendored/enums/AttributeNames.d.ts +0 -5
  1130. package/build/types-ts3.8/integrations/tracing/koa/vendored/instrumentation.d.ts +0 -32
  1131. package/build/types-ts3.8/integrations/tracing/koa/vendored/internal-types.d.ts +0 -34
  1132. package/build/types-ts3.8/integrations/tracing/koa/vendored/types.d.ts +0 -13
  1133. package/build/types-ts3.8/integrations/tracing/koa/vendored/utils.d.ts +0 -15
  1134. package/build/types-ts3.8/integrations/tracing/langchain/index.d.ts +0 -101
  1135. package/build/types-ts3.8/integrations/tracing/langchain/instrumentation.d.ts +0 -38
  1136. package/build/types-ts3.8/integrations/tracing/langgraph/index.d.ts +0 -77
  1137. package/build/types-ts3.8/integrations/tracing/langgraph/instrumentation.d.ts +0 -19
  1138. package/build/types-ts3.8/integrations/tracing/lrumemoizer/index.d.ts +0 -21
  1139. package/build/types-ts3.8/integrations/tracing/lrumemoizer/vendored/instrumentation.d.ts +0 -6
  1140. package/build/types-ts3.8/integrations/tracing/mongo/index.d.ts +0 -22
  1141. package/build/types-ts3.8/integrations/tracing/mongo/vendored/instrumentation.d.ts +0 -11
  1142. package/build/types-ts3.8/integrations/tracing/mongo/vendored/internal-types.d.ts +0 -62
  1143. package/build/types-ts3.8/integrations/tracing/mongo/vendored/patches.d.ts +0 -15
  1144. package/build/types-ts3.8/integrations/tracing/mongo/vendored/utils.d.ts +0 -15
  1145. package/build/types-ts3.8/integrations/tracing/mongoose/index.d.ts +0 -22
  1146. package/build/types-ts3.8/integrations/tracing/mongoose/vendored/mongoose-types.d.ts +0 -33
  1147. package/build/types-ts3.8/integrations/tracing/mongoose/vendored/mongoose.d.ts +0 -18
  1148. package/build/types-ts3.8/integrations/tracing/mongoose/vendored/utils.d.ts +0 -4
  1149. package/build/types-ts3.8/integrations/tracing/mysql/index.d.ts +0 -22
  1150. package/build/types-ts3.8/integrations/tracing/mysql/vendored/instrumentation.d.ts +0 -14
  1151. package/build/types-ts3.8/integrations/tracing/mysql/vendored/mysql-types.d.ts +0 -78
  1152. package/build/types-ts3.8/integrations/tracing/mysql/vendored/semconv.d.ts +0 -19
  1153. package/build/types-ts3.8/integrations/tracing/mysql/vendored/utils.d.ts +0 -22
  1154. package/build/types-ts3.8/integrations/tracing/mysql2/index.d.ts +0 -22
  1155. package/build/types-ts3.8/integrations/tracing/mysql2/vendored/instrumentation.d.ts +0 -9
  1156. package/build/types-ts3.8/integrations/tracing/mysql2/vendored/mysql2-types.d.ts +0 -39
  1157. package/build/types-ts3.8/integrations/tracing/mysql2/vendored/semconv.d.ts +0 -3
  1158. package/build/types-ts3.8/integrations/tracing/mysql2/vendored/utils.d.ts +0 -25
  1159. package/build/types-ts3.8/integrations/tracing/openai/index.d.ts +0 -62
  1160. package/build/types-ts3.8/integrations/tracing/openai/instrumentation.d.ts +0 -26
  1161. package/build/types-ts3.8/integrations/tracing/postgres/index.d.ts +0 -26
  1162. package/build/types-ts3.8/integrations/tracing/postgres/vendored/enums/AttributeNames.d.ts +0 -6
  1163. package/build/types-ts3.8/integrations/tracing/postgres/vendored/enums/SpanNames.d.ts +0 -6
  1164. package/build/types-ts3.8/integrations/tracing/postgres/vendored/instrumentation.d.ts +0 -12
  1165. package/build/types-ts3.8/integrations/tracing/postgres/vendored/internal-types.d.ts +0 -33
  1166. package/build/types-ts3.8/integrations/tracing/postgres/vendored/pg-pool-types.d.ts +0 -20
  1167. package/build/types-ts3.8/integrations/tracing/postgres/vendored/pg-types.d.ts +0 -54
  1168. package/build/types-ts3.8/integrations/tracing/postgres/vendored/semconv.d.ts +0 -13
  1169. package/build/types-ts3.8/integrations/tracing/postgres/vendored/types.d.ts +0 -11
  1170. package/build/types-ts3.8/integrations/tracing/postgres/vendored/utils.d.ts +0 -56
  1171. package/build/types-ts3.8/integrations/tracing/postgresjs.d.ts +0 -103
  1172. package/build/types-ts3.8/integrations/tracing/redis/cache.d.ts +0 -22
  1173. package/build/types-ts3.8/integrations/tracing/redis/index.d.ts +0 -28
  1174. package/build/types-ts3.8/integrations/tracing/redis/vendored/ioredis-instrumentation.d.ts +0 -10
  1175. package/build/types-ts3.8/integrations/tracing/redis/vendored/redis-instrumentation.d.ts +0 -16
  1176. package/build/types-ts3.8/integrations/tracing/redis/vendored/semconv.d.ts +0 -4
  1177. package/build/types-ts3.8/integrations/tracing/redis/vendored/types.d.ts +0 -24
  1178. package/build/types-ts3.8/integrations/tracing/tedious/index.d.ts +0 -22
  1179. package/build/types-ts3.8/integrations/tracing/tedious/vendored/instrumentation.d.ts +0 -11
  1180. package/build/types-ts3.8/integrations/tracing/tedious/vendored/semconv.d.ts +0 -19
  1181. package/build/types-ts3.8/integrations/tracing/tedious/vendored/tedious-types.d.ts +0 -21
  1182. package/build/types-ts3.8/integrations/tracing/tedious/vendored/utils.d.ts +0 -9
  1183. package/build/types-ts3.8/integrations/tracing/vercelai/constants.d.ts +0 -2
  1184. package/build/types-ts3.8/integrations/tracing/vercelai/index.d.ts +0 -44
  1185. package/build/types-ts3.8/integrations/tracing/vercelai/instrumentation.d.ts +0 -56
  1186. package/build/types-ts3.8/integrations/tracing/vercelai/types.d.ts +0 -50
  1187. package/build/types-ts3.8/preload.d.ts +0 -2
  1188. package/build/types-ts3.8/sdk/diagnosticsChannelInjection.d.ts +0 -41
  1189. package/build/types-ts3.8/sdk/experimentalUseDiagnosticsChannelInjection.d.ts +0 -37
  1190. package/build/types-ts3.8/sdk/index.d.ts +0 -36
  1191. package/build/types-ts3.8/sdk/initOtel.d.ts +0 -30
  1192. package/build/types-ts3.8/types.d.ts +0 -89
  1193. package/build/types-ts3.8/utils/redisCache.d.ts +0 -17
  1194. package/build/types-ts3.8/utils/setHttpServerSpanRouteAttribute.d.ts +0 -9
@@ -1,14 +1,8 @@
1
- import { defineIntegration, extendIntegration, getClient } from '@sentry/core';
2
- import { generateInstrumentOnce } from '@sentry/node-core';
3
- import { FastifyInstrumentationV3 } from './v3/instrumentation.js';
1
+ import { defineIntegration, getClient } from '@sentry/core';
4
2
  import { fastifyIntegration as fastifyIntegration$1, handleFastifyError } from '@sentry/server-utils';
5
3
  export { instrumentFastify } from '@sentry/server-utils';
6
4
 
7
5
  const INTEGRATION_NAME = "Fastify";
8
- const instrumentFastifyV3 = generateInstrumentOnce(
9
- `${INTEGRATION_NAME}.v3`,
10
- () => new FastifyInstrumentationV3()
11
- );
12
6
  function getFastifyIntegration() {
13
7
  const client = getClient();
14
8
  if (!client) {
@@ -17,16 +11,8 @@ function getFastifyIntegration() {
17
11
  return client.getIntegrationByName(INTEGRATION_NAME);
18
12
  }
19
13
  }
20
- const _fastifyIntegration = ((options) => {
21
- const parentIntegration = fastifyIntegration$1(options);
22
- return extendIntegration(parentIntegration, {
23
- setupOnce() {
24
- instrumentFastifyV3();
25
- }
26
- });
27
- });
28
14
  const fastifyIntegration = defineIntegration(
29
- (options = {}) => _fastifyIntegration(options)
15
+ (options = {}) => fastifyIntegration$1(options)
30
16
  );
31
17
  function setupFastifyErrorHandler(fastify, options) {
32
18
  if (options?.shouldHandleError) {
@@ -47,5 +33,5 @@ function setupFastifyErrorHandler(fastify, options) {
47
33
  fastify.register(plugin);
48
34
  }
49
35
 
50
- export { fastifyIntegration, instrumentFastifyV3, setupFastifyErrorHandler };
36
+ export { fastifyIntegration, setupFastifyErrorHandler };
51
37
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/integrations/tracing/fastify/index.ts"],"sourcesContent":["import type { Integration, IntegrationFn } from '@sentry/core';\nimport { defineIntegration, extendIntegration, getClient } from '@sentry/core';\nimport { generateInstrumentOnce } from '@sentry/node-core';\nimport type { FastifyInstance, FastifyMinimal, FastifyReply, FastifyRequest } from './types';\nimport { FastifyInstrumentationV3 } from './v3/instrumentation';\nimport {\n fastifyIntegration as serverUtilsFastifyIntegration,\n instrumentFastify,\n handleFastifyError,\n} from '@sentry/server-utils';\n\ninterface FastifyIntegration extends Integration {\n getShouldHandleError: () => (error: Error, request: FastifyRequest, reply: FastifyReply) => boolean;\n // todo(v11): Remove this\n setShouldHandleError: (\n shouldHandleError: (error: Error, request: FastifyRequest, reply: FastifyReply) => boolean,\n ) => void;\n}\n\n// oxlint-disable-next-line typescript/no-deprecated\nexport { instrumentFastify };\n\n/**\n * Options for the Fastify integration.\n *\n * `shouldHandleError` - Callback method deciding whether error should be captured and sent to Sentry\n * This is used on Fastify v5 where Sentry handles errors in the diagnostics channel.\n * Fastify v3 and v4 use `setupFastifyErrorHandler` instead.\n *\n * @example\n *\n * ```javascript\n * Sentry.init({\n * integrations: [\n * Sentry.fastifyIntegration({\n * shouldHandleError(_error, _request, reply) {\n * return reply.statusCode >= 500;\n * },\n * });\n * },\n * });\n * ```\n *\n */\ninterface FastifyIntegrationOptions {\n /**\n * Callback method deciding whether error should be captured and sent to Sentry\n * This is used on Fastify v5 where Sentry handles errors in the diagnostics channel.\n * Fastify v3 and v4 use `setupFastifyErrorHandler` instead.\n *\n * @param error Captured Fastify error\n * @param request Fastify request (or any object containing at least method, routeOptions.url, and routerPath)\n * @param reply Fastify reply (or any object containing at least statusCode)\n */\n shouldHandleError: (error: Error, request: FastifyRequest, reply: FastifyReply) => boolean;\n}\n\ninterface FastifyHandlerOptions {\n /**\n * Callback method deciding whether error should be captured and sent to Sentry\n *\n * @param error Captured Fastify error\n * @param request Fastify request (or any object containing at least method, routeOptions.url, and routerPath)\n * @param reply Fastify reply (or any object containing at least statusCode)\n *\n * @example\n *\n *\n * ```javascript\n * setupFastifyErrorHandler(app, {\n * shouldHandleError(_error, _request, reply) {\n * return reply.statusCode >= 400;\n * },\n * });\n * ```\n *\n *\n * If using TypeScript, you can cast the request and reply to get full type safety.\n *\n * ```typescript\n * import type { FastifyRequest, FastifyReply } from 'fastify';\n *\n * setupFastifyErrorHandler(app, {\n * shouldHandleError(error, minimalRequest, minimalReply) {\n * const request = minimalRequest as FastifyRequest;\n * const reply = minimalReply as FastifyReply;\n * return reply.statusCode >= 500;\n * },\n * });\n * ```\n */\n shouldHandleError: (error: Error, request: FastifyRequest, reply: FastifyReply) => boolean;\n}\n\nconst INTEGRATION_NAME = 'Fastify' as const;\n\nexport const instrumentFastifyV3 = generateInstrumentOnce(\n `${INTEGRATION_NAME}.v3`,\n () => new FastifyInstrumentationV3(),\n);\n\nfunction getFastifyIntegration(): FastifyIntegration | undefined {\n const client = getClient();\n if (!client) {\n return undefined;\n } else {\n return client.getIntegrationByName(INTEGRATION_NAME);\n }\n}\n\nconst _fastifyIntegration = ((options: Partial<FastifyIntegrationOptions>) => {\n const parentIntegration = serverUtilsFastifyIntegration(options) as FastifyIntegration;\n\n return extendIntegration(parentIntegration, {\n setupOnce() {\n instrumentFastifyV3();\n },\n });\n}) satisfies IntegrationFn;\n\n/**\n * Adds Sentry tracing instrumentation for [Fastify](https://fastify.dev/).\n *\n * If you also want to capture errors, you need to call `setupFastifyErrorHandler(app)` after you set up your Fastify server.\n *\n * For more information, see the [fastify documentation](https://docs.sentry.io/platforms/javascript/guides/fastify/).\n *\n * @example\n * ```javascript\n * const Sentry = require('@sentry/node');\n *\n * Sentry.init({\n * integrations: [Sentry.fastifyIntegration()],\n * })\n * ```\n */\nexport const fastifyIntegration = defineIntegration((options: Partial<FastifyIntegrationOptions> = {}) =>\n _fastifyIntegration(options),\n);\n\n/**\n * Add an Fastify error handler to capture errors to Sentry.\n *\n * @param fastify The Fastify instance to which to add the error handler\n * @param options Configuration options for the handler\n *\n * @example\n * ```javascript\n * const Sentry = require('@sentry/node');\n * const Fastify = require(\"fastify\");\n *\n * const app = Fastify();\n *\n * Sentry.setupFastifyErrorHandler(app);\n *\n * // Add your routes, etc.\n *\n * app.listen({ port: 3000 });\n * ```\n */\nexport function setupFastifyErrorHandler(fastify: FastifyMinimal, options?: Partial<FastifyHandlerOptions>): void {\n if (options?.shouldHandleError) {\n getFastifyIntegration()?.setShouldHandleError(options.shouldHandleError);\n }\n\n const plugin = Object.assign(\n function (fastify: FastifyInstance, _options: unknown, done: () => void): void {\n fastify.addHook('onError', async (request, reply, error) => {\n // oxlint-disable-next-line typescript/no-deprecated\n handleFastifyError.call(handleFastifyError, error, request, reply, 'onError-hook');\n });\n done();\n },\n {\n [Symbol.for('skip-override')]: true,\n [Symbol.for('fastify.display-name')]: 'sentry-fastify-error-handler',\n },\n );\n\n fastify.register(plugin);\n}\n"],"names":["serverUtilsFastifyIntegration","fastify"],"mappings":";;;;;;AA8FA,MAAM,gBAAA,GAAmB,SAAA;AAElB,MAAM,mBAAA,GAAsB,sBAAA;AAAA,EACjC,GAAG,gBAAgB,CAAA,GAAA,CAAA;AAAA,EACnB,MAAM,IAAI,wBAAA;AACZ;AAEA,SAAS,qBAAA,GAAwD;AAC/D,EAAA,MAAM,SAAS,SAAA,EAAU;AACzB,EAAA,IAAI,CAAC,MAAA,EAAQ;AACX,IAAA,OAAO,MAAA;AAAA,EACT,CAAA,MAAO;AACL,IAAA,OAAO,MAAA,CAAO,qBAAqB,gBAAgB,CAAA;AAAA,EACrD;AACF;AAEA,MAAM,mBAAA,IAAuB,CAAC,OAAA,KAAgD;AAC5E,EAAA,MAAM,iBAAA,GAAoBA,qBAA8B,OAAO,CAAA;AAE/D,EAAA,OAAO,kBAAkB,iBAAA,EAAmB;AAAA,IAC1C,SAAA,GAAY;AACV,MAAA,mBAAA,EAAoB;AAAA,IACtB;AAAA,GACD,CAAA;AACH,CAAA,CAAA;AAkBO,MAAM,kBAAA,GAAqB,iBAAA;AAAA,EAAkB,CAAC,OAAA,GAA8C,EAAC,KAClG,oBAAoB,OAAO;AAC7B;AAsBO,SAAS,wBAAA,CAAyB,SAAyB,OAAA,EAAgD;AAChH,EAAA,IAAI,SAAS,iBAAA,EAAmB;AAC9B,IAAA,qBAAA,EAAsB,EAAG,oBAAA,CAAqB,OAAA,CAAQ,iBAAiB,CAAA;AAAA,EACzE;AAEA,EAAA,MAAM,SAAS,MAAA,CAAO,MAAA;AAAA,IACpB,SAAUC,QAAAA,EAA0B,QAAA,EAAmB,IAAA,EAAwB;AAC7E,MAAAA,SAAQ,OAAA,CAAQ,SAAA,EAAW,OAAO,OAAA,EAAS,OAAO,KAAA,KAAU;AAE1D,QAAA,kBAAA,CAAmB,IAAA,CAAK,kBAAA,EAAoB,KAAA,EAAO,OAAA,EAAS,OAAO,cAAc,CAAA;AAAA,MACnF,CAAC,CAAA;AACD,MAAA,IAAA,EAAK;AAAA,IACP,CAAA;AAAA,IACA;AAAA,MACE,iBAAC,MAAA,CAAO,GAAA,CAAI,eAAe,CAAC,GAAG,IAAA;AAAA,MAC/B,iBAAC,MAAA,CAAO,GAAA,CAAI,sBAAsB,CAAC,GAAG;AAAA;AACxC,GACF;AAEA,EAAA,OAAA,CAAQ,SAAS,MAAM,CAAA;AACzB;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/integrations/tracing/fastify/index.ts"],"sourcesContent":["import type { Integration } from '@sentry/core';\nimport { defineIntegration, getClient } from '@sentry/core';\nimport type { FastifyInstance, FastifyMinimal, FastifyReply, FastifyRequest } from './types';\nimport {\n fastifyIntegration as serverUtilsFastifyIntegration,\n instrumentFastify,\n handleFastifyError,\n} from '@sentry/server-utils';\n\ninterface FastifyIntegration extends Integration {\n getShouldHandleError: () => (error: Error, request: FastifyRequest, reply: FastifyReply) => boolean;\n // todo(v11): Remove this\n setShouldHandleError: (\n shouldHandleError: (error: Error, request: FastifyRequest, reply: FastifyReply) => boolean,\n ) => void;\n}\n\n// oxlint-disable-next-line typescript/no-deprecated\nexport { instrumentFastify };\n\n/**\n * Options for the Fastify integration.\n *\n * `shouldHandleError` - Callback method deciding whether error should be captured and sent to Sentry\n * This is used on Fastify v5 where Sentry handles errors in the diagnostics channel.\n * Fastify v3 and v4 use `setupFastifyErrorHandler` instead.\n *\n * @example\n *\n * ```javascript\n * Sentry.init({\n * integrations: [\n * Sentry.fastifyIntegration({\n * shouldHandleError(_error, _request, reply) {\n * return reply.statusCode >= 500;\n * },\n * });\n * },\n * });\n * ```\n *\n */\ninterface FastifyIntegrationOptions {\n /**\n * Callback method deciding whether error should be captured and sent to Sentry\n * This is used on Fastify v5 where Sentry handles errors in the diagnostics channel.\n * Fastify v3 and v4 use `setupFastifyErrorHandler` instead.\n *\n * @param error Captured Fastify error\n * @param request Fastify request (or any object containing at least method, routeOptions.url, and routerPath)\n * @param reply Fastify reply (or any object containing at least statusCode)\n */\n shouldHandleError: (error: Error, request: FastifyRequest, reply: FastifyReply) => boolean;\n}\n\ninterface FastifyHandlerOptions {\n /**\n * Callback method deciding whether error should be captured and sent to Sentry\n *\n * @param error Captured Fastify error\n * @param request Fastify request (or any object containing at least method, routeOptions.url, and routerPath)\n * @param reply Fastify reply (or any object containing at least statusCode)\n *\n * @example\n *\n *\n * ```javascript\n * setupFastifyErrorHandler(app, {\n * shouldHandleError(_error, _request, reply) {\n * return reply.statusCode >= 400;\n * },\n * });\n * ```\n *\n *\n * If using TypeScript, you can cast the request and reply to get full type safety.\n *\n * ```typescript\n * import type { FastifyRequest, FastifyReply } from 'fastify';\n *\n * setupFastifyErrorHandler(app, {\n * shouldHandleError(error, minimalRequest, minimalReply) {\n * const request = minimalRequest as FastifyRequest;\n * const reply = minimalReply as FastifyReply;\n * return reply.statusCode >= 500;\n * },\n * });\n * ```\n */\n shouldHandleError: (error: Error, request: FastifyRequest, reply: FastifyReply) => boolean;\n}\n\nconst INTEGRATION_NAME = 'Fastify' as const;\n\nfunction getFastifyIntegration(): FastifyIntegration | undefined {\n const client = getClient();\n if (!client) {\n return undefined;\n } else {\n return client.getIntegrationByName(INTEGRATION_NAME);\n }\n}\n\n/**\n * Adds Sentry tracing instrumentation for [Fastify](https://fastify.dev/).\n *\n * If you also want to capture errors, you need to call `setupFastifyErrorHandler(app)` after you set up your Fastify server.\n *\n * For more information, see the [fastify documentation](https://docs.sentry.io/platforms/javascript/guides/fastify/).\n *\n * @example\n * ```javascript\n * const Sentry = require('@sentry/node');\n *\n * Sentry.init({\n * integrations: [Sentry.fastifyIntegration()],\n * })\n * ```\n */\nexport const fastifyIntegration = defineIntegration((options: Partial<FastifyIntegrationOptions> = {}) =>\n serverUtilsFastifyIntegration(options),\n);\n\n/**\n * Add an Fastify error handler to capture errors to Sentry.\n *\n * @param fastify The Fastify instance to which to add the error handler\n * @param options Configuration options for the handler\n *\n * @example\n * ```javascript\n * const Sentry = require('@sentry/node');\n * const Fastify = require(\"fastify\");\n *\n * const app = Fastify();\n *\n * Sentry.setupFastifyErrorHandler(app);\n *\n * // Add your routes, etc.\n *\n * app.listen({ port: 3000 });\n * ```\n */\nexport function setupFastifyErrorHandler(fastify: FastifyMinimal, options?: Partial<FastifyHandlerOptions>): void {\n if (options?.shouldHandleError) {\n getFastifyIntegration()?.setShouldHandleError(options.shouldHandleError);\n }\n\n const plugin = Object.assign(\n function (fastify: FastifyInstance, _options: unknown, done: () => void): void {\n fastify.addHook('onError', async (request, reply, error) => {\n // oxlint-disable-next-line typescript/no-deprecated\n handleFastifyError.call(handleFastifyError, error, request, reply, 'onError-hook');\n });\n done();\n },\n {\n [Symbol.for('skip-override')]: true,\n [Symbol.for('fastify.display-name')]: 'sentry-fastify-error-handler',\n },\n );\n\n fastify.register(plugin);\n}\n"],"names":["serverUtilsFastifyIntegration","fastify"],"mappings":";;;;AA4FA,MAAM,gBAAA,GAAmB,SAAA;AAEzB,SAAS,qBAAA,GAAwD;AAC/D,EAAA,MAAM,SAAS,SAAA,EAAU;AACzB,EAAA,IAAI,CAAC,MAAA,EAAQ;AACX,IAAA,OAAO,MAAA;AAAA,EACT,CAAA,MAAO;AACL,IAAA,OAAO,MAAA,CAAO,qBAAqB,gBAAgB,CAAA;AAAA,EACrD;AACF;AAkBO,MAAM,kBAAA,GAAqB,iBAAA;AAAA,EAAkB,CAAC,OAAA,GAA8C,EAAC,KAClGA,qBAA8B,OAAO;AACvC;AAsBO,SAAS,wBAAA,CAAyB,SAAyB,OAAA,EAAgD;AAChH,EAAA,IAAI,SAAS,iBAAA,EAAmB;AAC9B,IAAA,qBAAA,EAAsB,EAAG,oBAAA,CAAqB,OAAA,CAAQ,iBAAiB,CAAA;AAAA,EACzE;AAEA,EAAA,MAAM,SAAS,MAAA,CAAO,MAAA;AAAA,IACpB,SAAUC,QAAAA,EAA0B,QAAA,EAAmB,IAAA,EAAwB;AAC7E,MAAAA,SAAQ,OAAA,CAAQ,SAAA,EAAW,OAAO,OAAA,EAAS,OAAO,KAAA,KAAU;AAE1D,QAAA,kBAAA,CAAmB,IAAA,CAAK,kBAAA,EAAoB,KAAA,EAAO,OAAA,EAAS,OAAO,cAAc,CAAA;AAAA,MACnF,CAAC,CAAA;AACD,MAAA,IAAA,EAAK;AAAA,IACP,CAAA;AAAA,IACA;AAAA,MACE,iBAAC,MAAA,CAAO,GAAA,CAAI,eAAe,CAAC,GAAG,IAAA;AAAA,MAC/B,iBAAC,MAAA,CAAO,GAAA,CAAI,sBAAsB,CAAC,GAAG;AAAA;AACxC,GACF;AAEA,EAAA,OAAA,CAAQ,SAAS,MAAM,CAAA;AACzB;;;;"}
@@ -1,19 +1,6 @@
1
- import { HapiInstrumentation } from './vendored/instrumentation.js';
2
- import { defineIntegration, SDK_VERSION, getIsolationScope, getDefaultIsolationScope, debug, captureException } from '@sentry/core';
3
- import { generateInstrumentOnce, ensureIsWrapped } from '@sentry/node-core';
1
+ import { SDK_VERSION, getIsolationScope, getDefaultIsolationScope, debug, captureException } from '@sentry/core';
4
2
  import { DEBUG_BUILD } from '../../../debug-build.js';
5
3
 
6
- const INTEGRATION_NAME = "Hapi";
7
- const instrumentHapi = generateInstrumentOnce(INTEGRATION_NAME, () => new HapiInstrumentation());
8
- const _hapiIntegration = (() => {
9
- return {
10
- name: INTEGRATION_NAME,
11
- setupOnce() {
12
- instrumentHapi();
13
- }
14
- };
15
- });
16
- const hapiIntegration = defineIntegration(_hapiIntegration);
17
4
  function isErrorEvent(event) {
18
5
  return !!(event && typeof event === "object" && "error" in event && event.error);
19
6
  }
@@ -48,8 +35,7 @@ const hapiErrorPlugin = {
48
35
  };
49
36
  async function setupHapiErrorHandler(server) {
50
37
  await server.register(hapiErrorPlugin);
51
- ensureIsWrapped(server.register, "hapi");
52
38
  }
53
39
 
54
- export { hapiErrorPlugin, hapiIntegration, instrumentHapi, setupHapiErrorHandler };
40
+ export { hapiErrorPlugin, setupHapiErrorHandler };
55
41
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/integrations/tracing/hapi/index.ts"],"sourcesContent":["import { HapiInstrumentation } from './vendored/instrumentation';\nimport type { IntegrationFn } from '@sentry/core';\nimport {\n captureException,\n debug,\n defineIntegration,\n getDefaultIsolationScope,\n getIsolationScope,\n SDK_VERSION,\n} from '@sentry/core';\nimport { ensureIsWrapped, generateInstrumentOnce } from '@sentry/node-core';\nimport { DEBUG_BUILD } from '../../../debug-build';\nimport type { Request, RequestEvent, Server } from './types';\n\nconst INTEGRATION_NAME = 'Hapi' as const;\n\nexport const instrumentHapi = generateInstrumentOnce(INTEGRATION_NAME, () => new HapiInstrumentation());\n\nconst _hapiIntegration = (() => {\n return {\n name: INTEGRATION_NAME,\n setupOnce() {\n instrumentHapi();\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Adds Sentry tracing instrumentation for [Hapi](https://hapi.dev/).\n *\n * If you also want to capture errors, you need to call `setupHapiErrorHandler(server)` after you set up your server.\n *\n * For more information, see the [hapi documentation](https://docs.sentry.io/platforms/javascript/guides/hapi/).\n *\n * @example\n * ```javascript\n * const Sentry = require('@sentry/node');\n *\n * Sentry.init({\n * integrations: [Sentry.hapiIntegration()],\n * })\n * ```\n */\nexport const hapiIntegration = defineIntegration(_hapiIntegration);\n\nfunction isErrorEvent(event: unknown): event is RequestEvent {\n return !!(event && typeof event === 'object' && 'error' in event && event.error);\n}\n\nfunction sendErrorToSentry(errorData: object): void {\n captureException(errorData, {\n mechanism: {\n type: 'auto.function.hapi',\n handled: false,\n },\n });\n}\n\nexport const hapiErrorPlugin = {\n name: 'SentryHapiErrorPlugin',\n version: SDK_VERSION,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n register: async function (serverArg: Record<any, any>) {\n const server = serverArg as unknown as Server;\n\n server.events.on({ name: 'request', channels: ['error'] }, (request: Request, event: RequestEvent) => {\n if (getIsolationScope() !== getDefaultIsolationScope()) {\n const route = request.route;\n if (route.path) {\n getIsolationScope().setTransactionName(`${route.method.toUpperCase()} ${route.path}`);\n }\n } else {\n DEBUG_BUILD &&\n debug.warn('Isolation scope is still the default isolation scope - skipping setting transactionName');\n }\n\n if (isErrorEvent(event)) {\n sendErrorToSentry(event.error);\n }\n });\n },\n};\n\n/**\n * Add a Hapi plugin to capture errors to Sentry.\n *\n * @param server The Hapi server to attach the error handler to\n *\n * @example\n * ```javascript\n * const Sentry = require('@sentry/node');\n * const Hapi = require('@hapi/hapi');\n *\n * const init = async () => {\n * const server = Hapi.server();\n *\n * // all your routes here\n *\n * await Sentry.setupHapiErrorHandler(server);\n *\n * await server.start();\n * };\n * ```\n */\nexport async function setupHapiErrorHandler(server: Server): Promise<void> {\n await server.register(hapiErrorPlugin);\n ensureIsWrapped(server.register, 'hapi');\n}\n"],"names":[],"mappings":";;;;;AAcA,MAAM,gBAAA,GAAmB,MAAA;AAElB,MAAM,iBAAiB,sBAAA,CAAuB,gBAAA,EAAkB,MAAM,IAAI,qBAAqB;AAEtG,MAAM,oBAAoB,MAAM;AAC9B,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,gBAAA;AAAA,IACN,SAAA,GAAY;AACV,MAAA,cAAA,EAAe;AAAA,IACjB;AAAA,GACF;AACF,CAAA,CAAA;AAkBO,MAAM,eAAA,GAAkB,kBAAkB,gBAAgB;AAEjE,SAAS,aAAa,KAAA,EAAuC;AAC3D,EAAA,OAAO,CAAC,EAAE,KAAA,IAAS,OAAO,UAAU,QAAA,IAAY,OAAA,IAAW,SAAS,KAAA,CAAM,KAAA,CAAA;AAC5E;AAEA,SAAS,kBAAkB,SAAA,EAAyB;AAClD,EAAA,gBAAA,CAAiB,SAAA,EAAW;AAAA,IAC1B,SAAA,EAAW;AAAA,MACT,IAAA,EAAM,oBAAA;AAAA,MACN,OAAA,EAAS;AAAA;AACX,GACD,CAAA;AACH;AAEO,MAAM,eAAA,GAAkB;AAAA,EAC7B,IAAA,EAAM,uBAAA;AAAA,EACN,OAAA,EAAS,WAAA;AAAA;AAAA,EAET,QAAA,EAAU,eAAgB,SAAA,EAA6B;AACrD,IAAA,MAAM,MAAA,GAAS,SAAA;AAEf,IAAA,MAAA,CAAO,MAAA,CAAO,EAAA,CAAG,EAAE,IAAA,EAAM,SAAA,EAAW,QAAA,EAAU,CAAC,OAAO,CAAA,EAAE,EAAG,CAAC,OAAA,EAAkB,KAAA,KAAwB;AACpG,MAAA,IAAI,iBAAA,EAAkB,KAAM,wBAAA,EAAyB,EAAG;AACtD,QAAA,MAAM,QAAQ,OAAA,CAAQ,KAAA;AACtB,QAAA,IAAI,MAAM,IAAA,EAAM;AACd,UAAA,iBAAA,EAAkB,CAAE,kBAAA,CAAmB,CAAA,EAAG,KAAA,CAAM,MAAA,CAAO,aAAa,CAAA,CAAA,EAAI,KAAA,CAAM,IAAI,CAAA,CAAE,CAAA;AAAA,QACtF;AAAA,MACF,CAAA,MAAO;AACL,QAAA,WAAA,IACE,KAAA,CAAM,KAAK,yFAAyF,CAAA;AAAA,MACxG;AAEA,MAAA,IAAI,YAAA,CAAa,KAAK,CAAA,EAAG;AACvB,QAAA,iBAAA,CAAkB,MAAM,KAAK,CAAA;AAAA,MAC/B;AAAA,IACF,CAAC,CAAA;AAAA,EACH;AACF;AAuBA,eAAsB,sBAAsB,MAAA,EAA+B;AACzE,EAAA,MAAM,MAAA,CAAO,SAAS,eAAe,CAAA;AACrC,EAAA,eAAA,CAAgB,MAAA,CAAO,UAAU,MAAM,CAAA;AACzC;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/integrations/tracing/hapi/index.ts"],"sourcesContent":["import { captureException, debug, getDefaultIsolationScope, getIsolationScope, SDK_VERSION } from '@sentry/core';\nimport { DEBUG_BUILD } from '../../../debug-build';\nimport type { Request, RequestEvent, Server } from './types';\n\nfunction isErrorEvent(event: unknown): event is RequestEvent {\n return !!(event && typeof event === 'object' && 'error' in event && event.error);\n}\n\nfunction sendErrorToSentry(errorData: object): void {\n captureException(errorData, {\n mechanism: {\n type: 'auto.function.hapi',\n handled: false,\n },\n });\n}\n\nexport const hapiErrorPlugin = {\n name: 'SentryHapiErrorPlugin',\n version: SDK_VERSION,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n register: async function (serverArg: Record<any, any>) {\n const server = serverArg as unknown as Server;\n\n server.events.on({ name: 'request', channels: ['error'] }, (request: Request, event: RequestEvent) => {\n if (getIsolationScope() !== getDefaultIsolationScope()) {\n const route = request.route;\n if (route.path) {\n getIsolationScope().setTransactionName(`${route.method.toUpperCase()} ${route.path}`);\n }\n } else {\n DEBUG_BUILD &&\n debug.warn('Isolation scope is still the default isolation scope - skipping setting transactionName');\n }\n\n if (isErrorEvent(event)) {\n sendErrorToSentry(event.error);\n }\n });\n },\n};\n\n/**\n * Add a Hapi plugin to capture errors to Sentry.\n *\n * @param server The Hapi server to attach the error handler to\n *\n * @example\n * ```javascript\n * const Sentry = require('@sentry/node');\n * const Hapi = require('@hapi/hapi');\n *\n * const init = async () => {\n * const server = Hapi.server();\n *\n * // all your routes here\n *\n * await Sentry.setupHapiErrorHandler(server);\n *\n * await server.start();\n * };\n * ```\n */\nexport async function setupHapiErrorHandler(server: Server): Promise<void> {\n await server.register(hapiErrorPlugin);\n}\n"],"names":[],"mappings":";;;AAIA,SAAS,aAAa,KAAA,EAAuC;AAC3D,EAAA,OAAO,CAAC,EAAE,KAAA,IAAS,OAAO,UAAU,QAAA,IAAY,OAAA,IAAW,SAAS,KAAA,CAAM,KAAA,CAAA;AAC5E;AAEA,SAAS,kBAAkB,SAAA,EAAyB;AAClD,EAAA,gBAAA,CAAiB,SAAA,EAAW;AAAA,IAC1B,SAAA,EAAW;AAAA,MACT,IAAA,EAAM,oBAAA;AAAA,MACN,OAAA,EAAS;AAAA;AACX,GACD,CAAA;AACH;AAEO,MAAM,eAAA,GAAkB;AAAA,EAC7B,IAAA,EAAM,uBAAA;AAAA,EACN,OAAA,EAAS,WAAA;AAAA;AAAA,EAET,QAAA,EAAU,eAAgB,SAAA,EAA6B;AACrD,IAAA,MAAM,MAAA,GAAS,SAAA;AAEf,IAAA,MAAA,CAAO,MAAA,CAAO,EAAA,CAAG,EAAE,IAAA,EAAM,SAAA,EAAW,QAAA,EAAU,CAAC,OAAO,CAAA,EAAE,EAAG,CAAC,OAAA,EAAkB,KAAA,KAAwB;AACpG,MAAA,IAAI,iBAAA,EAAkB,KAAM,wBAAA,EAAyB,EAAG;AACtD,QAAA,MAAM,QAAQ,OAAA,CAAQ,KAAA;AACtB,QAAA,IAAI,MAAM,IAAA,EAAM;AACd,UAAA,iBAAA,EAAkB,CAAE,kBAAA,CAAmB,CAAA,EAAG,KAAA,CAAM,MAAA,CAAO,aAAa,CAAA,CAAA,EAAI,KAAA,CAAM,IAAI,CAAA,CAAE,CAAA;AAAA,QACtF;AAAA,MACF,CAAA,MAAO;AACL,QAAA,WAAA,IACE,KAAA,CAAM,KAAK,yFAAyF,CAAA;AAAA,MACxG;AAEA,MAAA,IAAI,YAAA,CAAa,KAAK,CAAA,EAAG;AACvB,QAAA,iBAAA,CAAkB,MAAM,KAAK,CAAA;AAAA,MAC/B;AAAA,IACF,CAAC,CAAA;AAAA,EACH;AACF;AAuBA,eAAsB,sBAAsB,MAAA,EAA+B;AACzE,EAAA,MAAM,MAAA,CAAO,SAAS,eAAe,CAAA;AACvC;;;;"}
@@ -1,98 +1,41 @@
1
1
  import { prismaIntegration } from '@sentry/server-utils';
2
- import { instrumentSentryHttp } from '../http.js';
3
- import { instrumentAmqplib, amqplibIntegration } from './amqplib/index.js';
4
- import { instrumentAnthropicAi, anthropicAIIntegration } from './anthropic-ai/index.js';
5
- import { instrumentConnect, connectIntegration } from './connect/index.js';
6
- import { instrumentExpress, expressIntegration } from './express.js';
7
- import { instrumentFastifyV3, fastifyIntegration } from './fastify/index.js';
8
- import { instrumentFirebase, firebaseIntegration } from './firebase/firebase.js';
9
- import { instrumentGenericPool, genericPoolIntegration } from './genericPool/index.js';
10
- import { instrumentGoogleGenAI, googleGenAIIntegration } from './google-genai/index.js';
11
- import { instrumentGraphql, graphqlIntegration } from './graphql/index.js';
12
- import { instrumentHapi, hapiIntegration } from './hapi/index.js';
13
- import { instrumentHono, honoIntegration } from './hono/index.js';
14
- import { instrumentKafka, kafkaIntegration } from './kafka/index.js';
15
- import { instrumentKoa, koaIntegration } from './koa/index.js';
16
- import { instrumentLangChain, langChainIntegration } from './langchain/index.js';
17
- import { instrumentLangGraph, langGraphIntegration } from './langgraph/index.js';
18
- import { instrumentLruMemoizer, lruMemoizerIntegration } from './lrumemoizer/index.js';
19
- import { instrumentMongo, mongoIntegration } from './mongo/index.js';
20
- import { instrumentMongoose, mongooseIntegration } from './mongoose/index.js';
21
- import { instrumentMysql, mysqlIntegration } from './mysql/index.js';
22
- import { instrumentMysql2, mysql2Integration } from './mysql2/index.js';
23
- import { instrumentOpenAi, openAIIntegration } from './openai/index.js';
24
- import { instrumentPostgres, postgresIntegration } from './postgres/index.js';
25
- import { instrumentPostgresJs, postgresJsIntegration } from './postgresjs.js';
26
- import { instrumentRedis, redisIntegration } from './redis/index.js';
27
- import { instrumentTedious, tediousIntegration } from './tedious/index.js';
28
- import { instrumentVercelAi, vercelAIIntegration } from './vercelai/index.js';
2
+ import { expressIntegration, graphqlDiagnosticsIntegration, mongodbIntegration, mongooseIntegration, mysqlIntegration, mysql2Integration, postgresIntegration, hapiIntegration, koaIntegration, tediousIntegration, genericPoolIntegration, kafkajsIntegration, amqplibIntegration, lruMemoizerIntegration, langChainIntegration, langGraphIntegration, vercelAiIntegration, openaiIntegration, anthropicIntegration, googleGenAIIntegration, postgresJsIntegration, firebaseIntegration } from '@sentry/server-utils/orchestrion';
3
+ import { fastifyIntegration } from './fastify/index.js';
4
+ import { redisIntegration } from './redis/index.js';
29
5
 
30
6
  function getAutoPerformanceIntegrations() {
31
7
  return [
32
8
  expressIntegration(),
33
9
  fastifyIntegration(),
34
- graphqlIntegration(),
35
- // eslint-disable-next-line typescript/no-deprecated
36
- honoIntegration(),
37
- mongoIntegration(),
10
+ graphqlDiagnosticsIntegration(),
11
+ mongodbIntegration(),
38
12
  mongooseIntegration(),
39
13
  mysqlIntegration(),
40
14
  mysql2Integration(),
15
+ // Redis keeps the node wrapper: it wires the cache `responseHook` into the channel subscribers
16
+ // and covers all redis client versions (native diagnostics_channel + orchestrion fallbacks).
41
17
  redisIntegration(),
42
18
  postgresIntegration(),
43
19
  prismaIntegration(),
44
20
  hapiIntegration(),
45
21
  koaIntegration(),
46
- connectIntegration(),
47
22
  tediousIntegration(),
48
23
  genericPoolIntegration(),
49
- kafkaIntegration(),
24
+ kafkajsIntegration(),
50
25
  amqplibIntegration(),
51
26
  lruMemoizerIntegration(),
52
27
  // AI providers
53
28
  // LangChain must come first to disable AI provider integrations before they instrument
54
29
  langChainIntegration(),
55
30
  langGraphIntegration(),
56
- vercelAIIntegration(),
57
- openAIIntegration(),
58
- anthropicAIIntegration(),
31
+ vercelAiIntegration(),
32
+ openaiIntegration(),
33
+ anthropicIntegration(),
59
34
  googleGenAIIntegration(),
60
35
  postgresJsIntegration(),
61
36
  firebaseIntegration()
62
37
  ];
63
38
  }
64
- function getOpenTelemetryInstrumentationToPreload() {
65
- return [
66
- instrumentSentryHttp,
67
- instrumentExpress,
68
- instrumentConnect,
69
- instrumentFastifyV3,
70
- instrumentHapi,
71
- instrumentHono,
72
- instrumentKafka,
73
- instrumentKoa,
74
- instrumentLruMemoizer,
75
- instrumentMongo,
76
- instrumentMongoose,
77
- instrumentMysql,
78
- instrumentMysql2,
79
- instrumentPostgres,
80
- instrumentHapi,
81
- instrumentGraphql,
82
- instrumentRedis,
83
- instrumentTedious,
84
- instrumentGenericPool,
85
- instrumentAmqplib,
86
- instrumentLangChain,
87
- instrumentVercelAi,
88
- instrumentOpenAi,
89
- instrumentPostgresJs,
90
- instrumentFirebase,
91
- instrumentAnthropicAi,
92
- instrumentGoogleGenAI,
93
- instrumentLangGraph
94
- ];
95
- }
96
39
 
97
- export { getAutoPerformanceIntegrations, getOpenTelemetryInstrumentationToPreload };
40
+ export { getAutoPerformanceIntegrations };
98
41
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/integrations/tracing/index.ts"],"sourcesContent":["import type { Integration } from '@sentry/core';\nimport { prismaIntegration } from '@sentry/server-utils';\nimport { instrumentSentryHttp } from '../http';\nimport { amqplibIntegration, instrumentAmqplib } from './amqplib';\nimport { anthropicAIIntegration, instrumentAnthropicAi } from './anthropic-ai';\nimport { connectIntegration, instrumentConnect } from './connect';\nimport { expressIntegration, instrumentExpress } from './express';\nimport { fastifyIntegration, instrumentFastifyV3 } from './fastify';\nimport { firebaseIntegration, instrumentFirebase } from './firebase';\nimport { genericPoolIntegration, instrumentGenericPool } from './genericPool';\nimport { googleGenAIIntegration, instrumentGoogleGenAI } from './google-genai';\nimport { graphqlIntegration, instrumentGraphql } from './graphql';\nimport { hapiIntegration, instrumentHapi } from './hapi';\nimport { honoIntegration, instrumentHono } from './hono';\nimport { instrumentKafka, kafkaIntegration } from './kafka';\nimport { instrumentKoa, koaIntegration } from './koa';\nimport { instrumentLangChain, langChainIntegration } from './langchain';\nimport { instrumentLangGraph, langGraphIntegration } from './langgraph';\nimport { instrumentLruMemoizer, lruMemoizerIntegration } from './lrumemoizer';\nimport { instrumentMongo, mongoIntegration } from './mongo';\nimport { instrumentMongoose, mongooseIntegration } from './mongoose';\nimport { instrumentMysql, mysqlIntegration } from './mysql';\nimport { instrumentMysql2, mysql2Integration } from './mysql2';\nimport { instrumentOpenAi, openAIIntegration } from './openai';\nimport { instrumentPostgres, postgresIntegration } from './postgres';\nimport { instrumentPostgresJs, postgresJsIntegration } from './postgresjs';\nimport { instrumentRedis, redisIntegration } from './redis';\nimport { instrumentTedious, tediousIntegration } from './tedious';\nimport { instrumentVercelAi, vercelAIIntegration } from './vercelai';\n\n/**\n * With OTEL, all performance integrations will be added, as OTEL only initializes them when the patched package is actually required.\n */\nexport function getAutoPerformanceIntegrations(): Integration[] {\n return [\n expressIntegration(),\n fastifyIntegration(),\n graphqlIntegration(),\n // eslint-disable-next-line typescript/no-deprecated\n honoIntegration(),\n mongoIntegration(),\n mongooseIntegration(),\n mysqlIntegration(),\n mysql2Integration(),\n redisIntegration(),\n postgresIntegration(),\n prismaIntegration(),\n hapiIntegration(),\n koaIntegration(),\n connectIntegration(),\n tediousIntegration(),\n genericPoolIntegration(),\n kafkaIntegration(),\n amqplibIntegration(),\n lruMemoizerIntegration(),\n // AI providers\n // LangChain must come first to disable AI provider integrations before they instrument\n langChainIntegration(),\n langGraphIntegration(),\n vercelAIIntegration(),\n openAIIntegration(),\n anthropicAIIntegration(),\n googleGenAIIntegration(),\n postgresJsIntegration(),\n firebaseIntegration(),\n ];\n}\n\n/**\n * Get a list of methods to instrument OTEL, when preload instrumentation.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function getOpenTelemetryInstrumentationToPreload(): (((options?: any) => void) & { id: string })[] {\n return [\n instrumentSentryHttp,\n instrumentExpress,\n instrumentConnect,\n instrumentFastifyV3,\n instrumentHapi,\n instrumentHono,\n instrumentKafka,\n instrumentKoa,\n instrumentLruMemoizer,\n instrumentMongo,\n instrumentMongoose,\n instrumentMysql,\n instrumentMysql2,\n instrumentPostgres,\n instrumentHapi,\n instrumentGraphql,\n instrumentRedis,\n instrumentTedious,\n instrumentGenericPool,\n instrumentAmqplib,\n instrumentLangChain,\n instrumentVercelAi,\n instrumentOpenAi,\n instrumentPostgresJs,\n instrumentFirebase,\n instrumentAnthropicAi,\n instrumentGoogleGenAI,\n instrumentLangGraph,\n ];\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCO,SAAS,8BAAA,GAAgD;AAC9D,EAAA,OAAO;AAAA,IACL,kBAAA,EAAmB;AAAA,IACnB,kBAAA,EAAmB;AAAA,IACnB,kBAAA,EAAmB;AAAA;AAAA,IAEnB,eAAA,EAAgB;AAAA,IAChB,gBAAA,EAAiB;AAAA,IACjB,mBAAA,EAAoB;AAAA,IACpB,gBAAA,EAAiB;AAAA,IACjB,iBAAA,EAAkB;AAAA,IAClB,gBAAA,EAAiB;AAAA,IACjB,mBAAA,EAAoB;AAAA,IACpB,iBAAA,EAAkB;AAAA,IAClB,eAAA,EAAgB;AAAA,IAChB,cAAA,EAAe;AAAA,IACf,kBAAA,EAAmB;AAAA,IACnB,kBAAA,EAAmB;AAAA,IACnB,sBAAA,EAAuB;AAAA,IACvB,gBAAA,EAAiB;AAAA,IACjB,kBAAA,EAAmB;AAAA,IACnB,sBAAA,EAAuB;AAAA;AAAA;AAAA,IAGvB,oBAAA,EAAqB;AAAA,IACrB,oBAAA,EAAqB;AAAA,IACrB,mBAAA,EAAoB;AAAA,IACpB,iBAAA,EAAkB;AAAA,IAClB,sBAAA,EAAuB;AAAA,IACvB,sBAAA,EAAuB;AAAA,IACvB,qBAAA,EAAsB;AAAA,IACtB,mBAAA;AAAoB,GACtB;AACF;AAMO,SAAS,wCAAA,GAA2F;AACzG,EAAA,OAAO;AAAA,IACL,oBAAA;AAAA,IACA,iBAAA;AAAA,IACA,iBAAA;AAAA,IACA,mBAAA;AAAA,IACA,cAAA;AAAA,IACA,cAAA;AAAA,IACA,eAAA;AAAA,IACA,aAAA;AAAA,IACA,qBAAA;AAAA,IACA,eAAA;AAAA,IACA,kBAAA;AAAA,IACA,eAAA;AAAA,IACA,gBAAA;AAAA,IACA,kBAAA;AAAA,IACA,cAAA;AAAA,IACA,iBAAA;AAAA,IACA,eAAA;AAAA,IACA,iBAAA;AAAA,IACA,qBAAA;AAAA,IACA,iBAAA;AAAA,IACA,mBAAA;AAAA,IACA,kBAAA;AAAA,IACA,gBAAA;AAAA,IACA,oBAAA;AAAA,IACA,kBAAA;AAAA,IACA,qBAAA;AAAA,IACA,qBAAA;AAAA,IACA;AAAA,GACF;AACF;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/integrations/tracing/index.ts"],"sourcesContent":["import type { Integration } from '@sentry/core';\nimport { prismaIntegration } from '@sentry/server-utils';\nimport {\n amqplibIntegration,\n anthropicIntegration,\n expressIntegration,\n firebaseIntegration,\n genericPoolIntegration,\n googleGenAIIntegration,\n graphqlDiagnosticsIntegration,\n hapiIntegration,\n kafkajsIntegration,\n koaIntegration,\n langChainIntegration,\n langGraphIntegration,\n lruMemoizerIntegration,\n mongodbIntegration,\n mongooseIntegration,\n mysqlIntegration,\n mysql2Integration,\n openaiIntegration,\n postgresIntegration,\n postgresJsIntegration,\n tediousIntegration,\n vercelAiIntegration,\n} from '@sentry/server-utils/orchestrion';\nimport { fastifyIntegration } from './fastify';\nimport { redisIntegration } from './redis';\n\nexport function getAutoPerformanceIntegrations(): Integration[] {\n return [\n expressIntegration(),\n fastifyIntegration(),\n graphqlDiagnosticsIntegration(),\n mongodbIntegration(),\n mongooseIntegration(),\n mysqlIntegration(),\n mysql2Integration(),\n // Redis keeps the node wrapper: it wires the cache `responseHook` into the channel subscribers\n // and covers all redis client versions (native diagnostics_channel + orchestrion fallbacks).\n redisIntegration(),\n postgresIntegration(),\n prismaIntegration(),\n hapiIntegration(),\n koaIntegration(),\n tediousIntegration(),\n genericPoolIntegration(),\n kafkajsIntegration(),\n amqplibIntegration(),\n lruMemoizerIntegration(),\n // AI providers\n // LangChain must come first to disable AI provider integrations before they instrument\n langChainIntegration(),\n langGraphIntegration(),\n vercelAiIntegration(),\n openaiIntegration(),\n anthropicIntegration(),\n googleGenAIIntegration(),\n postgresJsIntegration(),\n firebaseIntegration(),\n ];\n}\n"],"names":[],"mappings":";;;;;AA6BO,SAAS,8BAAA,GAAgD;AAC9D,EAAA,OAAO;AAAA,IACL,kBAAA,EAAmB;AAAA,IACnB,kBAAA,EAAmB;AAAA,IACnB,6BAAA,EAA8B;AAAA,IAC9B,kBAAA,EAAmB;AAAA,IACnB,mBAAA,EAAoB;AAAA,IACpB,gBAAA,EAAiB;AAAA,IACjB,iBAAA,EAAkB;AAAA;AAAA;AAAA,IAGlB,gBAAA,EAAiB;AAAA,IACjB,mBAAA,EAAoB;AAAA,IACpB,iBAAA,EAAkB;AAAA,IAClB,eAAA,EAAgB;AAAA,IAChB,cAAA,EAAe;AAAA,IACf,kBAAA,EAAmB;AAAA,IACnB,sBAAA,EAAuB;AAAA,IACvB,kBAAA,EAAmB;AAAA,IACnB,kBAAA,EAAmB;AAAA,IACnB,sBAAA,EAAuB;AAAA;AAAA;AAAA,IAGvB,oBAAA,EAAqB;AAAA,IACrB,oBAAA,EAAqB;AAAA,IACrB,mBAAA,EAAoB;AAAA,IACpB,iBAAA,EAAkB;AAAA,IAClB,oBAAA,EAAqB;AAAA,IACrB,sBAAA,EAAuB;AAAA,IACvB,qBAAA,EAAsB;AAAA,IACtB,mBAAA;AAAoB,GACtB;AACF;;;;"}
@@ -1,26 +1,5 @@
1
- import { KoaInstrumentation } from './vendored/instrumentation.js';
2
- import { defineIntegration, captureException } from '@sentry/core';
3
- import { generateInstrumentOnce, ensureIsWrapped } from '@sentry/node-core';
1
+ import { captureException } from '@sentry/core';
4
2
 
5
- const INTEGRATION_NAME = "Koa";
6
- const instrumentKoa = generateInstrumentOnce(
7
- INTEGRATION_NAME,
8
- KoaInstrumentation,
9
- (options = {}) => {
10
- return {
11
- ignoreLayersType: options.ignoreLayersType
12
- };
13
- }
14
- );
15
- const _koaIntegration = ((options = {}) => {
16
- return {
17
- name: INTEGRATION_NAME,
18
- setupOnce() {
19
- instrumentKoa(options);
20
- }
21
- };
22
- });
23
- const koaIntegration = defineIntegration(_koaIntegration);
24
3
  const setupKoaErrorHandler = (app) => {
25
4
  app.use(async (ctx, next) => {
26
5
  try {
@@ -35,8 +14,7 @@ const setupKoaErrorHandler = (app) => {
35
14
  throw error;
36
15
  }
37
16
  });
38
- ensureIsWrapped(app.use, "koa");
39
17
  };
40
18
 
41
- export { instrumentKoa, koaIntegration, setupKoaErrorHandler };
19
+ export { setupKoaErrorHandler };
42
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/integrations/tracing/koa/index.ts"],"sourcesContent":["import type { KoaInstrumentationConfig, KoaLayerType } from './vendored/types';\nimport { KoaInstrumentation } from './vendored/instrumentation';\nimport type { IntegrationFn } from '@sentry/core';\nimport { captureException, defineIntegration } from '@sentry/core';\nimport { ensureIsWrapped, generateInstrumentOnce } from '@sentry/node-core';\n\ninterface KoaOptions {\n /**\n * Ignore layers of specified types\n */\n ignoreLayersType?: Array<'middleware' | 'router'>;\n}\n\nconst INTEGRATION_NAME = 'Koa' as const;\n\nexport const instrumentKoa = generateInstrumentOnce(\n INTEGRATION_NAME,\n KoaInstrumentation,\n (options: KoaOptions = {}) => {\n return {\n ignoreLayersType: options.ignoreLayersType as KoaLayerType[],\n } satisfies KoaInstrumentationConfig;\n },\n);\n\nconst _koaIntegration = ((options: KoaOptions = {}) => {\n return {\n name: INTEGRATION_NAME,\n setupOnce() {\n instrumentKoa(options);\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Adds Sentry tracing instrumentation for [Koa](https://koajs.com/).\n *\n * If you also want to capture errors, you need to call `setupKoaErrorHandler(app)` after you set up your Koa server.\n *\n * For more information, see the [koa documentation](https://docs.sentry.io/platforms/javascript/guides/koa/).\n *\n * @param {KoaOptions} options Configuration options for the Koa integration.\n *\n * @example\n * ```javascript\n * const Sentry = require('@sentry/node');\n *\n * Sentry.init({\n * integrations: [Sentry.koaIntegration()],\n * })\n * ```\n *\n * @example\n * ```javascript\n * // To ignore middleware spans\n * const Sentry = require('@sentry/node');\n *\n * Sentry.init({\n * integrations: [\n * Sentry.koaIntegration({\n * ignoreLayersType: ['middleware']\n * })\n * ],\n * })\n * ```\n */\nexport const koaIntegration = defineIntegration(_koaIntegration);\n\n/**\n * Add an Koa error handler to capture errors to Sentry.\n *\n * The error handler must be before any other middleware and after all controllers.\n *\n * @param app The Express instances\n * @param options {ExpressHandlerOptions} Configuration options for the handler\n *\n * @example\n * ```javascript\n * const Sentry = require('@sentry/node');\n * const Koa = require(\"koa\");\n *\n * const app = new Koa();\n *\n * Sentry.setupKoaErrorHandler(app);\n *\n * // Add your routes, etc.\n *\n * app.listen(3000);\n * ```\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const setupKoaErrorHandler = (app: { use: (arg0: (ctx: any, next: any) => Promise<void>) => void }): void => {\n app.use(async (ctx, next) => {\n try {\n await next();\n } catch (error) {\n captureException(error, {\n mechanism: {\n handled: false,\n type: 'auto.middleware.koa',\n },\n });\n throw error;\n }\n });\n\n ensureIsWrapped(app.use, 'koa');\n};\n"],"names":[],"mappings":";;;;AAaA,MAAM,gBAAA,GAAmB,KAAA;AAElB,MAAM,aAAA,GAAgB,sBAAA;AAAA,EAC3B,gBAAA;AAAA,EACA,kBAAA;AAAA,EACA,CAAC,OAAA,GAAsB,EAAC,KAAM;AAC5B,IAAA,OAAO;AAAA,MACL,kBAAkB,OAAA,CAAQ;AAAA,KAC5B;AAAA,EACF;AACF;AAEA,MAAM,eAAA,IAAmB,CAAC,OAAA,GAAsB,EAAC,KAAM;AACrD,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,gBAAA;AAAA,IACN,SAAA,GAAY;AACV,MAAA,aAAA,CAAc,OAAO,CAAA;AAAA,IACvB;AAAA,GACF;AACF,CAAA,CAAA;AAkCO,MAAM,cAAA,GAAiB,kBAAkB,eAAe;AAyBxD,MAAM,oBAAA,GAAuB,CAAC,GAAA,KAA+E;AAClH,EAAA,GAAA,CAAI,GAAA,CAAI,OAAO,GAAA,EAAK,IAAA,KAAS;AAC3B,IAAA,IAAI;AACF,MAAA,MAAM,IAAA,EAAK;AAAA,IACb,SAAS,KAAA,EAAO;AACd,MAAA,gBAAA,CAAiB,KAAA,EAAO;AAAA,QACtB,SAAA,EAAW;AAAA,UACT,OAAA,EAAS,KAAA;AAAA,UACT,IAAA,EAAM;AAAA;AACR,OACD,CAAA;AACD,MAAA,MAAM,KAAA;AAAA,IACR;AAAA,EACF,CAAC,CAAA;AAED,EAAA,eAAA,CAAgB,GAAA,CAAI,KAAK,KAAK,CAAA;AAChC;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/integrations/tracing/koa/index.ts"],"sourcesContent":["import { captureException } from '@sentry/core';\n\n/**\n * Add an Koa error handler to capture errors to Sentry.\n *\n * The error handler must be before any other middleware and after all controllers.\n *\n * @param app The Express instances\n * @param options {ExpressHandlerOptions} Configuration options for the handler\n *\n * @example\n * ```javascript\n * const Sentry = require('@sentry/node');\n * const Koa = require(\"koa\");\n *\n * const app = new Koa();\n *\n * Sentry.setupKoaErrorHandler(app);\n *\n * // Add your routes, etc.\n *\n * app.listen(3000);\n * ```\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const setupKoaErrorHandler = (app: { use: (arg0: (ctx: any, next: any) => Promise<void>) => void }): void => {\n app.use(async (ctx, next) => {\n try {\n await next();\n } catch (error) {\n captureException(error, {\n mechanism: {\n handled: false,\n type: 'auto.middleware.koa',\n },\n });\n throw error;\n }\n });\n};\n"],"names":[],"mappings":";;AAyBO,MAAM,oBAAA,GAAuB,CAAC,GAAA,KAA+E;AAClH,EAAA,GAAA,CAAI,GAAA,CAAI,OAAO,GAAA,EAAK,IAAA,KAAS;AAC3B,IAAA,IAAI;AACF,MAAA,MAAM,IAAA,EAAK;AAAA,IACb,SAAS,KAAA,EAAO;AACd,MAAA,gBAAA,CAAiB,KAAA,EAAO;AAAA,QACtB,SAAA,EAAW;AAAA,UACT,OAAA,EAAS,KAAA;AAAA,UACT,IAAA,EAAM;AAAA;AACR,OACD,CAAA;AACD,MAAA,MAAM,KAAA;AAAA,IACR;AAAA,EACF,CAAC,CAAA;AACH;;;;"}
@@ -1,4 +1,4 @@
1
- import { spanToJSON, SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE, SEMANTIC_ATTRIBUTE_CACHE_HIT, SEMANTIC_ATTRIBUTE_CACHE_KEY, SEMANTIC_ATTRIBUTE_SENTRY_OP, truncate } from '@sentry/core';
1
+ import { spanToJSON, SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE, SEMANTIC_ATTRIBUTE_CACHE_HIT, SEMANTIC_ATTRIBUTE_CACHE_KEY, SEMANTIC_ATTRIBUTE_SENTRY_OP, truncate, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE } from '@sentry/core';
2
2
  import { getCacheKeySafely, getCacheOperation, shouldConsiderForCache, isInCommands, calculateCacheItemSize, REMOVE_COMMANDS, GET_COMMANDS } from '../../../utils/redisCache.js';
3
3
 
4
4
  let _redisOptions = {};
@@ -32,6 +32,7 @@ const cacheResponseHook = (span, redisCommand, cmdArgs, response) => {
32
32
  span.updateName(
33
33
  _redisOptions.maxCacheKeyLength ? truncate(spanDescription, _redisOptions.maxCacheKeyLength) : spanDescription
34
34
  );
35
+ span.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, void 0);
35
36
  };
36
37
 
37
38
  export { _redisOptions, cacheResponseHook, setRedisOptions };
@@ -1 +1 @@
1
- {"version":3,"file":"cache.js","sources":["../../../../../src/integrations/tracing/redis/cache.ts"],"sourcesContent":["import type { Span } from '@sentry/core';\nimport {\n SEMANTIC_ATTRIBUTE_CACHE_HIT,\n SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE,\n SEMANTIC_ATTRIBUTE_CACHE_KEY,\n SEMANTIC_ATTRIBUTE_SENTRY_OP,\n spanToJSON,\n truncate,\n} from '@sentry/core';\nimport type { IORedisCommandArgs } from '../../../utils/redisCache';\nimport {\n calculateCacheItemSize,\n GET_COMMANDS,\n getCacheKeySafely,\n getCacheOperation,\n isInCommands,\n REMOVE_COMMANDS,\n shouldConsiderForCache,\n} from '../../../utils/redisCache';\nimport type { IORedisResponseCustomAttributeFunction } from './vendored/types';\n\n// This module deliberately does NOT import the vendored OTel `IORedisInstrumentation`/\n// `RedisInstrumentation`, so the orchestrion opt-in can pull `cacheResponseHook`\n// without dragging the OTel redis instrumentation into its module graph.\n\nexport interface RedisOptions {\n /**\n * Define cache prefixes for cache keys that should be captured as a cache span.\n *\n * Setting this to, for example, `['user:']` will capture cache keys that start with `user:`.\n */\n cachePrefixes?: string[];\n /**\n * Maximum length of the cache key added to the span description. If the key exceeds this length, it will be truncated.\n *\n * Passing `0` will use the full cache key without truncation.\n *\n * By default, the full cache key is used.\n */\n maxCacheKeyLength?: number;\n}\n\n/* Only exported for testing purposes */\nexport let _redisOptions: RedisOptions = {};\n\n/** Set the options consumed by {@link cacheResponseHook}. */\nexport function setRedisOptions(options: RedisOptions): void {\n _redisOptions = options;\n}\n\n/* Only exported for testing purposes */\nexport const cacheResponseHook: IORedisResponseCustomAttributeFunction = (\n span: Span,\n redisCommand: string,\n cmdArgs: IORedisCommandArgs,\n response: unknown,\n) => {\n const safeKey = getCacheKeySafely(redisCommand, cmdArgs);\n const cacheOperation = getCacheOperation(redisCommand);\n\n if (\n !safeKey ||\n !cacheOperation ||\n !_redisOptions.cachePrefixes ||\n !shouldConsiderForCache(redisCommand, safeKey, _redisOptions.cachePrefixes)\n ) {\n // not relevant for cache\n return;\n }\n\n // otel/ioredis seems to be using the old standard, as there was a change to those params: https://github.com/open-telemetry/opentelemetry-specification/issues/3199\n // We are using params based on the docs: https://opentelemetry.io/docs/specs/semconv/attributes-registry/network/\n // Fall back to stable semconv attributes (server.address/server.port) when\n // old-semconv ones are absent, eg OTEL_SEMCONV_STABILITY_OPT_IN=database\n // set for node-redis v4/v5.\n const spanData = spanToJSON(span).data;\n const networkPeerAddress = spanData['net.peer.name'] ?? spanData['server.address'];\n const networkPeerPort = spanData['net.peer.port'] ?? spanData['server.port'];\n if (networkPeerPort && networkPeerAddress) {\n span.setAttributes({ 'network.peer.address': networkPeerAddress, 'network.peer.port': networkPeerPort });\n }\n\n // A remove response is a delete-count, not a cached value, so its size is meaningless.\n const cacheItemSize = isInCommands(REMOVE_COMMANDS, redisCommand) ? undefined : calculateCacheItemSize(response);\n\n if (cacheItemSize) {\n span.setAttribute(SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE, cacheItemSize);\n }\n\n if (isInCommands(GET_COMMANDS, redisCommand) && cacheItemSize !== undefined) {\n span.setAttribute(SEMANTIC_ATTRIBUTE_CACHE_HIT, cacheItemSize > 0);\n }\n\n span.setAttributes({\n [SEMANTIC_ATTRIBUTE_SENTRY_OP]: cacheOperation,\n [SEMANTIC_ATTRIBUTE_CACHE_KEY]: safeKey,\n });\n\n // todo: change to string[] once EAP supports it\n const spanDescription = safeKey.join(', ');\n\n span.updateName(\n _redisOptions.maxCacheKeyLength ? truncate(spanDescription, _redisOptions.maxCacheKeyLength) : spanDescription,\n );\n};\n"],"names":[],"mappings":";;;AA2CO,IAAI,gBAA8B;AAGlC,SAAS,gBAAgB,OAAA,EAA6B;AAC3D,EAAA,aAAA,GAAgB,OAAA;AAClB;AAGO,MAAM,iBAAA,GAA4D,CACvE,IAAA,EACA,YAAA,EACA,SACA,QAAA,KACG;AACH,EAAA,MAAM,OAAA,GAAU,iBAAA,CAAkB,YAAA,EAAc,OAAO,CAAA;AACvD,EAAA,MAAM,cAAA,GAAiB,kBAAkB,YAAY,CAAA;AAErD,EAAA,IACE,CAAC,OAAA,IACD,CAAC,cAAA,IACD,CAAC,aAAA,CAAc,aAAA,IACf,CAAC,sBAAA,CAAuB,YAAA,EAAc,OAAA,EAAS,aAAA,CAAc,aAAa,CAAA,EAC1E;AAEA,IAAA;AAAA,EACF;AAOA,EAAA,MAAM,QAAA,GAAW,UAAA,CAAW,IAAI,CAAA,CAAE,IAAA;AAClC,EAAA,MAAM,kBAAA,GAAqB,QAAA,CAAS,eAAe,CAAA,IAAK,SAAS,gBAAgB,CAAA;AACjF,EAAA,MAAM,eAAA,GAAkB,QAAA,CAAS,eAAe,CAAA,IAAK,SAAS,aAAa,CAAA;AAC3E,EAAA,IAAI,mBAAmB,kBAAA,EAAoB;AACzC,IAAA,IAAA,CAAK,cAAc,EAAE,sBAAA,EAAwB,kBAAA,EAAoB,mBAAA,EAAqB,iBAAiB,CAAA;AAAA,EACzG;AAGA,EAAA,MAAM,gBAAgB,YAAA,CAAa,eAAA,EAAiB,YAAY,CAAA,GAAI,MAAA,GAAY,uBAAuB,QAAQ,CAAA;AAE/G,EAAA,IAAI,aAAA,EAAe;AACjB,IAAA,IAAA,CAAK,YAAA,CAAa,oCAAoC,aAAa,CAAA;AAAA,EACrE;AAEA,EAAA,IAAI,YAAA,CAAa,YAAA,EAAc,YAAY,CAAA,IAAK,kBAAkB,MAAA,EAAW;AAC3E,IAAA,IAAA,CAAK,YAAA,CAAa,4BAAA,EAA8B,aAAA,GAAgB,CAAC,CAAA;AAAA,EACnE;AAEA,EAAA,IAAA,CAAK,aAAA,CAAc;AAAA,IACjB,CAAC,4BAA4B,GAAG,cAAA;AAAA,IAChC,CAAC,4BAA4B,GAAG;AAAA,GACjC,CAAA;AAGD,EAAA,MAAM,eAAA,GAAkB,OAAA,CAAQ,IAAA,CAAK,IAAI,CAAA;AAEzC,EAAA,IAAA,CAAK,UAAA;AAAA,IACH,cAAc,iBAAA,GAAoB,QAAA,CAAS,eAAA,EAAiB,aAAA,CAAc,iBAAiB,CAAA,GAAI;AAAA,GACjG;AACF;;;;"}
1
+ {"version":3,"file":"cache.js","sources":["../../../../../src/integrations/tracing/redis/cache.ts"],"sourcesContent":["import type { Span } from '@sentry/core';\nimport {\n SEMANTIC_ATTRIBUTE_CACHE_HIT,\n SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE,\n SEMANTIC_ATTRIBUTE_CACHE_KEY,\n SEMANTIC_ATTRIBUTE_SENTRY_OP,\n SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,\n spanToJSON,\n truncate,\n} from '@sentry/core';\nimport type { IORedisCommandArgs } from '../../../utils/redisCache';\nimport {\n calculateCacheItemSize,\n GET_COMMANDS,\n getCacheKeySafely,\n getCacheOperation,\n isInCommands,\n REMOVE_COMMANDS,\n shouldConsiderForCache,\n} from '../../../utils/redisCache';\nimport type { IORedisResponseCustomAttributeFunction } from './vendored/types';\n\n// This module deliberately does NOT import the vendored OTel `IORedisInstrumentation`/\n// `RedisInstrumentation`, so the orchestrion opt-in can pull `cacheResponseHook`\n// without dragging the OTel redis instrumentation into its module graph.\n\nexport interface RedisOptions {\n /**\n * Define cache prefixes for cache keys that should be captured as a cache span.\n *\n * Setting this to, for example, `['user:']` will capture cache keys that start with `user:`.\n */\n cachePrefixes?: string[];\n /**\n * Maximum length of the cache key added to the span description. If the key exceeds this length, it will be truncated.\n *\n * Passing `0` will use the full cache key without truncation.\n *\n * By default, the full cache key is used.\n */\n maxCacheKeyLength?: number;\n}\n\n/* Only exported for testing purposes */\nexport let _redisOptions: RedisOptions = {};\n\n/** Set the options consumed by {@link cacheResponseHook}. */\nexport function setRedisOptions(options: RedisOptions): void {\n _redisOptions = options;\n}\n\n/* Only exported for testing purposes */\nexport const cacheResponseHook: IORedisResponseCustomAttributeFunction = (\n span: Span,\n redisCommand: string,\n cmdArgs: IORedisCommandArgs,\n response: unknown,\n) => {\n const safeKey = getCacheKeySafely(redisCommand, cmdArgs);\n const cacheOperation = getCacheOperation(redisCommand);\n\n if (\n !safeKey ||\n !cacheOperation ||\n !_redisOptions.cachePrefixes ||\n !shouldConsiderForCache(redisCommand, safeKey, _redisOptions.cachePrefixes)\n ) {\n // not relevant for cache\n return;\n }\n\n // otel/ioredis seems to be using the old standard, as there was a change to those params: https://github.com/open-telemetry/opentelemetry-specification/issues/3199\n // We are using params based on the docs: https://opentelemetry.io/docs/specs/semconv/attributes-registry/network/\n // Fall back to stable semconv attributes (server.address/server.port) when\n // old-semconv ones are absent, eg OTEL_SEMCONV_STABILITY_OPT_IN=database\n // set for node-redis v4/v5.\n const spanData = spanToJSON(span).data;\n const networkPeerAddress = spanData['net.peer.name'] ?? spanData['server.address'];\n const networkPeerPort = spanData['net.peer.port'] ?? spanData['server.port'];\n if (networkPeerPort && networkPeerAddress) {\n span.setAttributes({ 'network.peer.address': networkPeerAddress, 'network.peer.port': networkPeerPort });\n }\n\n // A remove response is a delete-count, not a cached value, so its size is meaningless.\n const cacheItemSize = isInCommands(REMOVE_COMMANDS, redisCommand) ? undefined : calculateCacheItemSize(response);\n\n if (cacheItemSize) {\n span.setAttribute(SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE, cacheItemSize);\n }\n\n if (isInCommands(GET_COMMANDS, redisCommand) && cacheItemSize !== undefined) {\n span.setAttribute(SEMANTIC_ATTRIBUTE_CACHE_HIT, cacheItemSize > 0);\n }\n\n span.setAttributes({\n [SEMANTIC_ATTRIBUTE_SENTRY_OP]: cacheOperation,\n [SEMANTIC_ATTRIBUTE_CACHE_KEY]: safeKey,\n });\n\n // todo: change to string[] once EAP supports it\n const spanDescription = safeKey.join(', ');\n\n span.updateName(\n _redisOptions.maxCacheKeyLength ? truncate(spanDescription, _redisOptions.maxCacheKeyLength) : spanDescription,\n );\n span.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, undefined);\n};\n"],"names":[],"mappings":";;;AA4CO,IAAI,gBAA8B;AAGlC,SAAS,gBAAgB,OAAA,EAA6B;AAC3D,EAAA,aAAA,GAAgB,OAAA;AAClB;AAGO,MAAM,iBAAA,GAA4D,CACvE,IAAA,EACA,YAAA,EACA,SACA,QAAA,KACG;AACH,EAAA,MAAM,OAAA,GAAU,iBAAA,CAAkB,YAAA,EAAc,OAAO,CAAA;AACvD,EAAA,MAAM,cAAA,GAAiB,kBAAkB,YAAY,CAAA;AAErD,EAAA,IACE,CAAC,OAAA,IACD,CAAC,cAAA,IACD,CAAC,aAAA,CAAc,aAAA,IACf,CAAC,sBAAA,CAAuB,YAAA,EAAc,OAAA,EAAS,aAAA,CAAc,aAAa,CAAA,EAC1E;AAEA,IAAA;AAAA,EACF;AAOA,EAAA,MAAM,QAAA,GAAW,UAAA,CAAW,IAAI,CAAA,CAAE,IAAA;AAClC,EAAA,MAAM,kBAAA,GAAqB,QAAA,CAAS,eAAe,CAAA,IAAK,SAAS,gBAAgB,CAAA;AACjF,EAAA,MAAM,eAAA,GAAkB,QAAA,CAAS,eAAe,CAAA,IAAK,SAAS,aAAa,CAAA;AAC3E,EAAA,IAAI,mBAAmB,kBAAA,EAAoB;AACzC,IAAA,IAAA,CAAK,cAAc,EAAE,sBAAA,EAAwB,kBAAA,EAAoB,mBAAA,EAAqB,iBAAiB,CAAA;AAAA,EACzG;AAGA,EAAA,MAAM,gBAAgB,YAAA,CAAa,eAAA,EAAiB,YAAY,CAAA,GAAI,MAAA,GAAY,uBAAuB,QAAQ,CAAA;AAE/G,EAAA,IAAI,aAAA,EAAe;AACjB,IAAA,IAAA,CAAK,YAAA,CAAa,oCAAoC,aAAa,CAAA;AAAA,EACrE;AAEA,EAAA,IAAI,YAAA,CAAa,YAAA,EAAc,YAAY,CAAA,IAAK,kBAAkB,MAAA,EAAW;AAC3E,IAAA,IAAA,CAAK,YAAA,CAAa,4BAAA,EAA8B,aAAA,GAAgB,CAAC,CAAA;AAAA,EACnE;AAEA,EAAA,IAAA,CAAK,aAAA,CAAc;AAAA,IACjB,CAAC,4BAA4B,GAAG,cAAA;AAAA,IAChC,CAAC,4BAA4B,GAAG;AAAA,GACjC,CAAA;AAGD,EAAA,MAAM,eAAA,GAAkB,OAAA,CAAQ,IAAA,CAAK,IAAI,CAAA;AAEzC,EAAA,IAAA,CAAK,UAAA;AAAA,IACH,cAAc,iBAAA,GAAoB,QAAA,CAAS,eAAA,EAAiB,aAAA,CAAc,iBAAiB,CAAA,GAAI;AAAA,GACjG;AACA,EAAA,IAAA,CAAK,YAAA,CAAa,kCAAkC,MAAS,CAAA;AAC/D;;;;"}
@@ -1,43 +1,28 @@
1
1
  import { defineIntegration, extendIntegration } from '@sentry/core';
2
- import * as dc from 'node:diagnostics_channel';
3
2
  import { redisIntegration as redisIntegration$1 } from '@sentry/server-utils';
4
- import { generateInstrumentOnce } from '@sentry/node-core';
5
- import { isDiagnosticsChannelInjectionEnabled } from '../../../sdk/diagnosticsChannelInjection.js';
3
+ import { ioredisChannelIntegration, redisChannelIntegration } from '@sentry/server-utils/orchestrion';
6
4
  import { cacheResponseHook, setRedisOptions } from './cache.js';
7
5
  export { _redisOptions } from './cache.js';
8
- import { IORedisInstrumentation } from './vendored/ioredis-instrumentation.js';
9
- import { RedisInstrumentation } from './vendored/redis-instrumentation.js';
10
6
 
11
7
  const INTEGRATION_NAME = "Redis";
12
- const instrumentIORedis = generateInstrumentOnce(`${INTEGRATION_NAME}.IORedis`, () => {
13
- return new IORedisInstrumentation({
14
- responseHook: cacheResponseHook
15
- });
16
- });
17
- const instrumentRedisModule = generateInstrumentOnce(`${INTEGRATION_NAME}.Redis`, () => {
18
- return new RedisInstrumentation({
19
- responseHook: cacheResponseHook
20
- });
21
- });
22
- const instrumentRedis = Object.assign(
23
- () => {
24
- if (!isDiagnosticsChannelInjectionEnabled() || !dc.tracingChannel) {
25
- instrumentIORedis();
26
- instrumentRedisModule();
27
- }
28
- },
29
- { id: INTEGRATION_NAME }
30
- );
31
8
  const _redisIntegration = ((options = {}) => {
9
+ const orchestrionIntegrations = [
10
+ ioredisChannelIntegration({ responseHook: cacheResponseHook }),
11
+ redisChannelIntegration({ responseHook: cacheResponseHook })
12
+ ];
32
13
  return extendIntegration(redisIntegration$1({ responseHook: cacheResponseHook }), {
33
14
  name: INTEGRATION_NAME,
34
15
  setupOnce() {
35
16
  setRedisOptions(options);
36
- instrumentRedis();
17
+ },
18
+ setup(client) {
19
+ for (const integration of orchestrionIntegrations) {
20
+ integration.setup?.(client);
21
+ }
37
22
  }
38
23
  });
39
24
  });
40
25
  const redisIntegration = defineIntegration(_redisIntegration);
41
26
 
42
- export { cacheResponseHook, instrumentRedis, redisIntegration };
27
+ export { cacheResponseHook, redisIntegration };
43
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/integrations/tracing/redis/index.ts"],"sourcesContent":["import type { IntegrationFn } from '@sentry/core';\nimport { defineIntegration, extendIntegration } from '@sentry/core';\nimport * as dc from 'node:diagnostics_channel';\nimport { redisIntegration as redisChannelIntegration } from '@sentry/server-utils';\nimport { generateInstrumentOnce } from '@sentry/node-core';\nimport { isDiagnosticsChannelInjectionEnabled } from '../../../sdk/diagnosticsChannelInjection';\nimport { cacheResponseHook, type RedisOptions, setRedisOptions } from './cache';\nimport { IORedisInstrumentation } from './vendored/ioredis-instrumentation';\nimport { RedisInstrumentation } from './vendored/redis-instrumentation';\n\n// `cacheResponseHook`/`_redisOptions` live in `./cache` (which has no OTel\n// instrumentation imports) so the orchestrion opt-in can pull the hook without\n// dragging the OTel redis instrumentation in. Re-exported here for tests.\nexport { _redisOptions, cacheResponseHook } from './cache';\n\nconst INTEGRATION_NAME = 'Redis' as const;\n\nconst instrumentIORedis = generateInstrumentOnce(`${INTEGRATION_NAME}.IORedis`, () => {\n return new IORedisInstrumentation({\n responseHook: cacheResponseHook,\n });\n});\n\nconst instrumentRedisModule = generateInstrumentOnce(`${INTEGRATION_NAME}.Redis`, () => {\n return new RedisInstrumentation({\n responseHook: cacheResponseHook,\n });\n});\n\n/**\n * To be able to preload all Redis OTel instrumentations with just one ID\n * (\"Redis\"), all the instrumentations are generated in this one function\n */\nexport const instrumentRedis = Object.assign(\n (): void => {\n // When diagnostics-channel injection is opted in, orchestrion fully owns the older\n // ioredis (`<5.11.0`) and redis/node-redis (`<5.12.0`) ranges — commands, connect, and\n // batches — so skip both OTel monkey-patches to avoid double instrumentation. On Node\n // without `tracingChannel` (<18.19) orchestrion can't run, so keep the OTel patches there.\n if (!isDiagnosticsChannelInjectionEnabled() || !dc.tracingChannel) {\n instrumentIORedis();\n instrumentRedisModule();\n }\n\n // todo: implement them gradually\n // new LegacyRedisInstrumentation({}),\n },\n { id: INTEGRATION_NAME },\n);\n\nconst _redisIntegration = ((options: RedisOptions = {}) => {\n // The diagnostics_channel subscription (node-redis >= 5.12.0, ioredis >= 5.11.0) lives in\n // server-utils so it is shared across server runtimes; we extend it here to also run the vendored\n // OTel patchers for older client versions. `cacheResponseHook` reads options set in the extension's\n // `setupOnce` below, but it only runs at command time, by which point those options are set.\n return extendIntegration(redisChannelIntegration({ responseHook: cacheResponseHook }), {\n name: INTEGRATION_NAME,\n setupOnce() {\n setRedisOptions(options);\n instrumentRedis();\n },\n });\n}) satisfies IntegrationFn;\n\n/**\n * Adds Sentry tracing instrumentation for the [redis](https://www.npmjs.com/package/redis) and\n * [ioredis](https://www.npmjs.com/package/ioredis) libraries.\n *\n * For more information, see the [`redisIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/redis/).\n *\n * @example\n * ```javascript\n * const Sentry = require('@sentry/node');\n *\n * Sentry.init({\n * integrations: [Sentry.redisIntegration()],\n * });\n * ```\n */\nexport const redisIntegration = defineIntegration(_redisIntegration);\n"],"names":["redisChannelIntegration"],"mappings":";;;;;;;;;;AAeA,MAAM,gBAAA,GAAmB,OAAA;AAEzB,MAAM,iBAAA,GAAoB,sBAAA,CAAuB,CAAA,EAAG,gBAAgB,YAAY,MAAM;AACpF,EAAA,OAAO,IAAI,sBAAA,CAAuB;AAAA,IAChC,YAAA,EAAc;AAAA,GACf,CAAA;AACH,CAAC,CAAA;AAED,MAAM,qBAAA,GAAwB,sBAAA,CAAuB,CAAA,EAAG,gBAAgB,UAAU,MAAM;AACtF,EAAA,OAAO,IAAI,oBAAA,CAAqB;AAAA,IAC9B,YAAA,EAAc;AAAA,GACf,CAAA;AACH,CAAC,CAAA;AAMM,MAAM,kBAAkB,MAAA,CAAO,MAAA;AAAA,EACpC,MAAY;AAKV,IAAA,IAAI,CAAC,oCAAA,EAAqC,IAAK,CAAC,GAAG,cAAA,EAAgB;AACjE,MAAA,iBAAA,EAAkB;AAClB,MAAA,qBAAA,EAAsB;AAAA,IACxB;AAAA,EAIF,CAAA;AAAA,EACA,EAAE,IAAI,gBAAA;AACR;AAEA,MAAM,iBAAA,IAAqB,CAAC,OAAA,GAAwB,EAAC,KAAM;AAKzD,EAAA,OAAO,kBAAkBA,kBAAA,CAAwB,EAAE,YAAA,EAAc,iBAAA,EAAmB,CAAA,EAAG;AAAA,IACrF,IAAA,EAAM,gBAAA;AAAA,IACN,SAAA,GAAY;AACV,MAAA,eAAA,CAAgB,OAAO,CAAA;AACvB,MAAA,eAAA,EAAgB;AAAA,IAClB;AAAA,GACD,CAAA;AACH,CAAA,CAAA;AAiBO,MAAM,gBAAA,GAAmB,kBAAkB,iBAAiB;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/integrations/tracing/redis/index.ts"],"sourcesContent":["import type { IntegrationFn } from '@sentry/core';\nimport { defineIntegration, extendIntegration } from '@sentry/core';\nimport { redisIntegration as redisNativeChannelIntegration } from '@sentry/server-utils';\nimport { ioredisChannelIntegration, redisChannelIntegration } from '@sentry/server-utils/orchestrion';\nimport { cacheResponseHook, type RedisOptions, setRedisOptions } from './cache';\n\n// `cacheResponseHook`/`_redisOptions` live in `./cache` (which has no OTel\n// instrumentation imports) so the orchestrion opt-in can pull the hook without\n// dragging the OTel redis instrumentation in. Re-exported here for tests.\nexport { _redisOptions, cacheResponseHook } from './cache';\n\nconst INTEGRATION_NAME = 'Redis' as const;\n\nconst _redisIntegration = ((options: RedisOptions = {}) => {\n // A single public `Redis` integration covers every redis client version. The native\n // diagnostics_channel subscription (node-redis >= 5.12.0, ioredis >= 5.11.0, and batches) lives in\n // server-utils so it is shared across server runtimes; the orchestrion channel integrations cover\n // the older node-redis (`<5.12.0`) and ioredis (`<5.11.0`) ranges. We fold the orchestrion\n // subscribers into this integration's `setup` so `Sentry.redisIntegration()` alone instruments\n // all ranges, even with `defaultIntegrations: []`. All three share the node cache `responseHook`,\n // which reads the options set below but only runs at command time, by which point they are set.\n const orchestrionIntegrations = [\n ioredisChannelIntegration({ responseHook: cacheResponseHook }),\n redisChannelIntegration({ responseHook: cacheResponseHook }),\n ];\n\n return extendIntegration(redisNativeChannelIntegration({ responseHook: cacheResponseHook }), {\n name: INTEGRATION_NAME,\n setupOnce() {\n setRedisOptions(options);\n },\n setup(client) {\n for (const integration of orchestrionIntegrations) {\n integration.setup?.(client);\n }\n },\n });\n}) satisfies IntegrationFn;\n\n/**\n * Adds Sentry tracing instrumentation for the [redis](https://www.npmjs.com/package/redis) and\n * [ioredis](https://www.npmjs.com/package/ioredis) libraries.\n *\n * For more information, see the [`redisIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/redis/).\n *\n * @example\n * ```javascript\n * const Sentry = require('@sentry/node');\n *\n * Sentry.init({\n * integrations: [Sentry.redisIntegration()],\n * });\n * ```\n */\nexport const redisIntegration = defineIntegration(_redisIntegration);\n"],"names":["redisNativeChannelIntegration"],"mappings":";;;;;;AAWA,MAAM,gBAAA,GAAmB,OAAA;AAEzB,MAAM,iBAAA,IAAqB,CAAC,OAAA,GAAwB,EAAC,KAAM;AAQzD,EAAA,MAAM,uBAAA,GAA0B;AAAA,IAC9B,yBAAA,CAA0B,EAAE,YAAA,EAAc,iBAAA,EAAmB,CAAA;AAAA,IAC7D,uBAAA,CAAwB,EAAE,YAAA,EAAc,iBAAA,EAAmB;AAAA,GAC7D;AAEA,EAAA,OAAO,kBAAkBA,kBAAA,CAA8B,EAAE,YAAA,EAAc,iBAAA,EAAmB,CAAA,EAAG;AAAA,IAC3F,IAAA,EAAM,gBAAA;AAAA,IACN,SAAA,GAAY;AACV,MAAA,eAAA,CAAgB,OAAO,CAAA;AAAA,IACzB,CAAA;AAAA,IACA,MAAM,MAAA,EAAQ;AACZ,MAAA,KAAA,MAAW,eAAe,uBAAA,EAAyB;AACjD,QAAA,WAAA,CAAY,QAAQ,MAAM,CAAA;AAAA,MAC5B;AAAA,IACF;AAAA,GACD,CAAA;AACH,CAAA,CAAA;AAiBO,MAAM,gBAAA,GAAmB,kBAAkB,iBAAiB;;;;"}
@@ -0,0 +1,82 @@
1
+ import { isObjectLike, debug } from '@sentry/core';
2
+ import { DEBUG_BUILD } from '../debug-build.js';
3
+ import { captureLog } from '../logs/capture.js';
4
+
5
+ const DEFAULT_CAPTURED_LEVELS = ["trace", "debug", "info", "warn", "error", "fatal"];
6
+ const LEVEL_SYMBOL = /* @__PURE__ */ Symbol.for("level");
7
+ const MESSAGE_SYMBOL = /* @__PURE__ */ Symbol.for("message");
8
+ const SPLAT_SYMBOL = /* @__PURE__ */ Symbol.for("splat");
9
+ function createSentryWinstonTransport(TransportClass, sentryWinstonOptions) {
10
+ class SentryWinstonTransport extends TransportClass {
11
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
+ constructor(options) {
13
+ super(options);
14
+ this._levels = new Set(sentryWinstonOptions?.levels ?? DEFAULT_CAPTURED_LEVELS);
15
+ }
16
+ /**
17
+ * Forwards a winston log to the Sentry SDK.
18
+ */
19
+ log(info, callback) {
20
+ try {
21
+ setImmediate(() => {
22
+ this.emit("logged", info);
23
+ });
24
+ if (!isObjectLike(info)) {
25
+ return;
26
+ }
27
+ const levelFromSymbol = info[LEVEL_SYMBOL];
28
+ const { level, message, timestamp, ...attributes } = info;
29
+ attributes[LEVEL_SYMBOL] = void 0;
30
+ attributes[MESSAGE_SYMBOL] = void 0;
31
+ attributes[SPLAT_SYMBOL] = void 0;
32
+ const customLevel = sentryWinstonOptions?.customLevelMap?.[levelFromSymbol];
33
+ const winstonLogLevel = WINSTON_LEVEL_TO_LOG_SEVERITY_LEVEL_MAP[levelFromSymbol];
34
+ const logSeverityLevel = customLevel ?? winstonLogLevel ?? "info";
35
+ if (this._levels.has(logSeverityLevel)) {
36
+ captureLog(logSeverityLevel, message, {
37
+ ...attributes,
38
+ "sentry.origin": "auto.log.winston"
39
+ });
40
+ } else if (!customLevel && !winstonLogLevel) {
41
+ DEBUG_BUILD && debug.log(
42
+ `Winston log level ${levelFromSymbol} is not captured by Sentry. Please add ${levelFromSymbol} to the "customLevelMap" option of the Sentry Winston transport.`
43
+ );
44
+ }
45
+ } catch {
46
+ }
47
+ if (callback) {
48
+ callback();
49
+ }
50
+ }
51
+ }
52
+ return SentryWinstonTransport;
53
+ }
54
+ const WINSTON_LEVEL_TO_LOG_SEVERITY_LEVEL_MAP = {
55
+ // npm
56
+ silly: "trace",
57
+ // npm and syslog
58
+ debug: "debug",
59
+ // npm
60
+ verbose: "debug",
61
+ // npm
62
+ http: "debug",
63
+ // npm and syslog
64
+ info: "info",
65
+ // syslog
66
+ notice: "info",
67
+ // npm
68
+ warn: "warn",
69
+ // syslog
70
+ warning: "warn",
71
+ // npm and syslog
72
+ error: "error",
73
+ // syslog
74
+ emerg: "fatal",
75
+ // syslog
76
+ alert: "fatal",
77
+ // syslog
78
+ crit: "fatal"
79
+ };
80
+
81
+ export { createSentryWinstonTransport };
82
+ //# sourceMappingURL=winston.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"winston.js","sources":["../../../src/integrations/winston.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/ban-ts-comment */\nimport type { LogSeverityLevel } from '@sentry/core';\nimport { debug, isObjectLike } from '@sentry/core';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { captureLog } from '../logs/capture';\n\nconst DEFAULT_CAPTURED_LEVELS: Array<LogSeverityLevel> = ['trace', 'debug', 'info', 'warn', 'error', 'fatal'];\n\n// See: https://github.com/winstonjs/triple-beam\nconst LEVEL_SYMBOL = Symbol.for('level');\nconst MESSAGE_SYMBOL = Symbol.for('message');\nconst SPLAT_SYMBOL = Symbol.for('splat');\n\n/**\n * Options for the Sentry Winston transport.\n */\ninterface WinstonTransportOptions {\n /**\n * Use this option to filter which levels should be captured. By default, all levels are captured.\n *\n * @example\n * ```ts\n * const SentryWinstonTransport = Sentry.createSentryWinstonTransport(Transport, {\n * // Only capture error and warn logs\n * levels: ['error', 'warn'],\n * });\n * ```\n */\n levels?: Array<LogSeverityLevel>;\n\n /**\n * Use this option to map custom levels to Sentry log severity levels.\n *\n * @example\n * ```ts\n * const SentryWinstonTransport = Sentry.createSentryWinstonTransport(Transport, {\n * customLevelMap: {\n * myCustomLevel: 'info',\n * customError: 'error',\n * },\n * });\n * ```\n */\n customLevelMap?: Record<string, LogSeverityLevel>;\n}\n\n/**\n * Creates a new Sentry Winston transport that fowards logs to Sentry.\n *\n * Supports Winston 3.x.x.\n *\n * @param TransportClass - The Winston transport class to extend.\n * @returns The extended transport class.\n *\n * @example\n * ```ts\n * const winston = require('winston');\n * const Transport = require('winston-transport');\n *\n * const SentryWinstonTransport = Sentry.createSentryWinstonTransport(Transport);\n *\n * const logger = winston.createLogger({\n * transports: [new SentryWinstonTransport()],\n * });\n * ```\n */\nexport function createSentryWinstonTransport<TransportStreamInstance extends object>(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n TransportClass: new (options?: any) => TransportStreamInstance,\n sentryWinstonOptions?: WinstonTransportOptions,\n): typeof TransportClass {\n // @ts-ignore - We know this is safe because SentryWinstonTransport extends TransportClass\n class SentryWinstonTransport extends TransportClass {\n private _levels: Set<LogSeverityLevel>;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n public constructor(options?: any) {\n super(options);\n this._levels = new Set(sentryWinstonOptions?.levels ?? DEFAULT_CAPTURED_LEVELS);\n }\n\n /**\n * Forwards a winston log to the Sentry SDK.\n */\n public log(info: unknown, callback: () => void): void {\n try {\n setImmediate(() => {\n // @ts-ignore - We know this is safe because SentryWinstonTransport extends TransportClass\n this.emit('logged', info);\n });\n\n if (!isObjectLike(info)) {\n return;\n }\n\n const levelFromSymbol = info[LEVEL_SYMBOL];\n\n // See: https://github.com/winstonjs/winston?tab=readme-ov-file#streams-objectmode-and-info-objects\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { level, message, timestamp, ...attributes } = info;\n // Remove all symbols from the remaining attributes\n attributes[LEVEL_SYMBOL] = undefined;\n attributes[MESSAGE_SYMBOL] = undefined;\n attributes[SPLAT_SYMBOL] = undefined;\n\n const customLevel = sentryWinstonOptions?.customLevelMap?.[levelFromSymbol as string];\n const winstonLogLevel = WINSTON_LEVEL_TO_LOG_SEVERITY_LEVEL_MAP[levelFromSymbol as string];\n const logSeverityLevel = customLevel ?? winstonLogLevel ?? 'info';\n\n if (this._levels.has(logSeverityLevel)) {\n captureLog(logSeverityLevel, message as string, {\n ...attributes,\n 'sentry.origin': 'auto.log.winston',\n });\n } else if (!customLevel && !winstonLogLevel) {\n DEBUG_BUILD &&\n debug.log(\n `Winston log level ${levelFromSymbol} is not captured by Sentry. Please add ${levelFromSymbol} to the \"customLevelMap\" option of the Sentry Winston transport.`,\n );\n }\n } catch {\n // do nothing\n }\n\n if (callback) {\n callback();\n }\n }\n }\n\n return SentryWinstonTransport as typeof TransportClass;\n}\n\n// npm\n// {\n// error: 0,\n// warn: 1,\n// info: 2,\n// http: 3,\n// verbose: 4,\n// debug: 5,\n// silly: 6\n// }\n//\n// syslog\n// {\n// emerg: 0,\n// alert: 1,\n// crit: 2,\n// error: 3,\n// warning: 4,\n// notice: 5,\n// info: 6,\n// debug: 7,\n// }\nconst WINSTON_LEVEL_TO_LOG_SEVERITY_LEVEL_MAP: Record<string, LogSeverityLevel> = {\n // npm\n silly: 'trace',\n // npm and syslog\n debug: 'debug',\n // npm\n verbose: 'debug',\n // npm\n http: 'debug',\n // npm and syslog\n info: 'info',\n // syslog\n notice: 'info',\n // npm\n warn: 'warn',\n // syslog\n warning: 'warn',\n // npm and syslog\n error: 'error',\n // syslog\n emerg: 'fatal',\n // syslog\n alert: 'fatal',\n // syslog\n crit: 'fatal',\n};\n"],"names":[],"mappings":";;;;AAMA,MAAM,0BAAmD,CAAC,OAAA,EAAS,SAAS,MAAA,EAAQ,MAAA,EAAQ,SAAS,OAAO,CAAA;AAG5G,MAAM,YAAA,mBAAe,MAAA,CAAO,GAAA,CAAI,OAAO,CAAA;AACvC,MAAM,cAAA,mBAAiB,MAAA,CAAO,GAAA,CAAI,SAAS,CAAA;AAC3C,MAAM,YAAA,mBAAe,MAAA,CAAO,GAAA,CAAI,OAAO,CAAA;AAuDhC,SAAS,4BAAA,CAEd,gBACA,oBAAA,EACuB;AAAA,EAEvB,MAAM,+BAA+B,cAAA,CAAe;AAAA;AAAA,IAG3C,YAAY,OAAA,EAAe;AAChC,MAAA,KAAA,CAAM,OAAO,CAAA;AACb,MAAA,IAAA,CAAK,OAAA,GAAU,IAAI,GAAA,CAAI,oBAAA,EAAsB,UAAU,uBAAuB,CAAA;AAAA,IAChF;AAAA;AAAA;AAAA;AAAA,IAKO,GAAA,CAAI,MAAe,QAAA,EAA4B;AACpD,MAAA,IAAI;AACF,QAAA,YAAA,CAAa,MAAM;AAEjB,UAAA,IAAA,CAAK,IAAA,CAAK,UAAU,IAAI,CAAA;AAAA,QAC1B,CAAC,CAAA;AAED,QAAA,IAAI,CAAC,YAAA,CAAa,IAAI,CAAA,EAAG;AACvB,UAAA;AAAA,QACF;AAEA,QAAA,MAAM,eAAA,GAAkB,KAAK,YAAY,CAAA;AAIzC,QAAA,MAAM,EAAE,KAAA,EAAO,OAAA,EAAS,SAAA,EAAW,GAAG,YAAW,GAAI,IAAA;AAErD,QAAA,UAAA,CAAW,YAAY,CAAA,GAAI,KAAA,CAAA;AAC3B,QAAA,UAAA,CAAW,cAAc,CAAA,GAAI,KAAA,CAAA;AAC7B,QAAA,UAAA,CAAW,YAAY,CAAA,GAAI,KAAA,CAAA;AAE3B,QAAA,MAAM,WAAA,GAAc,oBAAA,EAAsB,cAAA,GAAiB,eAAyB,CAAA;AACpF,QAAA,MAAM,eAAA,GAAkB,wCAAwC,eAAyB,CAAA;AACzF,QAAA,MAAM,gBAAA,GAAmB,eAAe,eAAA,IAAmB,MAAA;AAE3D,QAAA,IAAI,IAAA,CAAK,OAAA,CAAQ,GAAA,CAAI,gBAAgB,CAAA,EAAG;AACtC,UAAA,UAAA,CAAW,kBAAkB,OAAA,EAAmB;AAAA,YAC9C,GAAG,UAAA;AAAA,YACH,eAAA,EAAiB;AAAA,WAClB,CAAA;AAAA,QACH,CAAA,MAAA,IAAW,CAAC,WAAA,IAAe,CAAC,eAAA,EAAiB;AAC3C,UAAA,WAAA,IACE,KAAA,CAAM,GAAA;AAAA,YACJ,CAAA,kBAAA,EAAqB,eAAe,CAAA,uCAAA,EAA0C,eAAe,CAAA,gEAAA;AAAA,WAC/F;AAAA,QACJ;AAAA,MACF,CAAA,CAAA,MAAQ;AAAA,MAER;AAEA,MAAA,IAAI,QAAA,EAAU;AACZ,QAAA,QAAA,EAAS;AAAA,MACX;AAAA,IACF;AAAA;AAGF,EAAA,OAAO,sBAAA;AACT;AAwBA,MAAM,uCAAA,GAA4E;AAAA;AAAA,EAEhF,KAAA,EAAO,OAAA;AAAA;AAAA,EAEP,KAAA,EAAO,OAAA;AAAA;AAAA,EAEP,OAAA,EAAS,OAAA;AAAA;AAAA,EAET,IAAA,EAAM,OAAA;AAAA;AAAA,EAEN,IAAA,EAAM,MAAA;AAAA;AAAA,EAEN,MAAA,EAAQ,MAAA;AAAA;AAAA,EAER,IAAA,EAAM,MAAA;AAAA;AAAA,EAEN,OAAA,EAAS,MAAA;AAAA;AAAA,EAET,KAAA,EAAO,OAAA;AAAA;AAAA,EAEP,KAAA,EAAO,OAAA;AAAA;AAAA,EAEP,KAAA,EAAO,OAAA;AAAA;AAAA,EAEP,IAAA,EAAM;AACR,CAAA;;;;"}
@@ -0,0 +1,24 @@
1
+ import { format } from 'node:util';
2
+ import { _INTERNAL_captureLog } from '@sentry/core';
3
+
4
+ function captureLog(level, ...args) {
5
+ const [messageOrMessageTemplate, paramsOrAttributes, maybeAttributesOrMetadata, maybeMetadata] = args;
6
+ if (Array.isArray(paramsOrAttributes)) {
7
+ const attributes = { ...maybeAttributesOrMetadata };
8
+ attributes["sentry.message.template"] = messageOrMessageTemplate;
9
+ paramsOrAttributes.forEach((param, index) => {
10
+ attributes[`sentry.message.parameter.${index}`] = param;
11
+ });
12
+ const message = format(messageOrMessageTemplate, ...paramsOrAttributes);
13
+ _INTERNAL_captureLog({ level, message, attributes }, maybeMetadata?.scope);
14
+ } else {
15
+ _INTERNAL_captureLog(
16
+ { level, message: messageOrMessageTemplate, attributes: paramsOrAttributes },
17
+ // type-casting here because from the type definitions we know that `maybeAttributesOrMetadata` is a metadata object (or undefined)
18
+ maybeAttributesOrMetadata?.scope ?? maybeMetadata?.scope
19
+ );
20
+ }
21
+ }
22
+
23
+ export { captureLog };
24
+ //# sourceMappingURL=capture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capture.js","sources":["../../../src/logs/capture.ts"],"sourcesContent":["import { format } from 'node:util';\nimport type { Log, LogSeverityLevel, ParameterizedString, Scope } from '@sentry/core';\nimport { _INTERNAL_captureLog } from '@sentry/core';\n\n/**\n * Additional metadata to capture the log with.\n */\ninterface CaptureLogMetadata {\n scope?: Scope;\n}\n\ntype CaptureLogArgWithTemplate = [\n messageTemplate: string,\n messageParams: Array<unknown>,\n attributes?: Log['attributes'],\n metadata?: CaptureLogMetadata,\n];\n\ntype CaptureLogArgWithoutTemplate = [\n message: ParameterizedString,\n attributes?: Log['attributes'],\n metadata?: CaptureLogMetadata,\n];\n\nexport type CaptureLogArgs = CaptureLogArgWithTemplate | CaptureLogArgWithoutTemplate;\n\n/**\n * Capture a log with the given level.\n *\n * @param level - The level of the log.\n * @param message - The message to log.\n * @param attributes - Arbitrary structured data that stores information about the log - e.g., userId: 100.\n */\nexport function captureLog(level: LogSeverityLevel, ...args: CaptureLogArgs): void {\n const [messageOrMessageTemplate, paramsOrAttributes, maybeAttributesOrMetadata, maybeMetadata] = args;\n if (Array.isArray(paramsOrAttributes)) {\n // type-casting here because from the type definitions we know that `maybeAttributesOrMetadata` is an attributes object (or undefined)\n const attributes = { ...(maybeAttributesOrMetadata as Log['attributes'] | undefined) };\n attributes['sentry.message.template'] = messageOrMessageTemplate;\n paramsOrAttributes.forEach((param, index) => {\n attributes[`sentry.message.parameter.${index}`] = param;\n });\n const message = format(messageOrMessageTemplate, ...paramsOrAttributes);\n _INTERNAL_captureLog({ level, message, attributes }, maybeMetadata?.scope);\n } else {\n _INTERNAL_captureLog(\n { level, message: messageOrMessageTemplate, attributes: paramsOrAttributes },\n // type-casting here because from the type definitions we know that `maybeAttributesOrMetadata` is a metadata object (or undefined)\n (maybeAttributesOrMetadata as CaptureLogMetadata | undefined)?.scope ?? maybeMetadata?.scope,\n );\n }\n}\n"],"names":[],"mappings":";;;AAiCO,SAAS,UAAA,CAAW,UAA4B,IAAA,EAA4B;AACjF,EAAA,MAAM,CAAC,wBAAA,EAA0B,kBAAA,EAAoB,yBAAA,EAA2B,aAAa,CAAA,GAAI,IAAA;AACjG,EAAA,IAAI,KAAA,CAAM,OAAA,CAAQ,kBAAkB,CAAA,EAAG;AAErC,IAAA,MAAM,UAAA,GAAa,EAAE,GAAI,yBAAA,EAA4D;AACrF,IAAA,UAAA,CAAW,yBAAyB,CAAA,GAAI,wBAAA;AACxC,IAAA,kBAAA,CAAmB,OAAA,CAAQ,CAAC,KAAA,EAAO,KAAA,KAAU;AAC3C,MAAA,UAAA,CAAW,CAAA,yBAAA,EAA4B,KAAK,CAAA,CAAE,CAAA,GAAI,KAAA;AAAA,IACpD,CAAC,CAAA;AACD,IAAA,MAAM,OAAA,GAAU,MAAA,CAAO,wBAAA,EAA0B,GAAG,kBAAkB,CAAA;AACtE,IAAA,oBAAA,CAAqB,EAAE,KAAA,EAAO,OAAA,EAAS,UAAA,EAAW,EAAG,eAAe,KAAK,CAAA;AAAA,EAC3E,CAAA,MAAO;AACL,IAAA,oBAAA;AAAA,MACE,EAAE,KAAA,EAAO,OAAA,EAAS,wBAAA,EAA0B,YAAY,kBAAA,EAAmB;AAAA;AAAA,MAE1E,yBAAA,EAA8D,SAAS,aAAA,EAAe;AAAA,KACzF;AAAA,EACF;AACF;;;;"}
@@ -0,0 +1,24 @@
1
+ import { captureLog } from './capture.js';
2
+ export { fmt } from '@sentry/core';
3
+
4
+ function trace(...args) {
5
+ captureLog("trace", ...args);
6
+ }
7
+ function debug(...args) {
8
+ captureLog("debug", ...args);
9
+ }
10
+ function info(...args) {
11
+ captureLog("info", ...args);
12
+ }
13
+ function warn(...args) {
14
+ captureLog("warn", ...args);
15
+ }
16
+ function error(...args) {
17
+ captureLog("error", ...args);
18
+ }
19
+ function fatal(...args) {
20
+ captureLog("fatal", ...args);
21
+ }
22
+
23
+ export { debug, error, fatal, info, trace, warn };
24
+ //# sourceMappingURL=exports.js.map