@sentry/server-utils 10.65.0 → 10.66.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 (301) hide show
  1. package/build/cjs/graphql/graphql-dc-subscriber.js +2 -4
  2. package/build/cjs/graphql/graphql-dc-subscriber.js.map +1 -1
  3. package/build/cjs/graphql/utils.js +7 -1
  4. package/build/cjs/graphql/utils.js.map +1 -1
  5. package/build/cjs/index.js +11 -8
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/integrations/tracing-channel/dataloader.js +95 -0
  8. package/build/cjs/integrations/tracing-channel/dataloader.js.map +1 -0
  9. package/build/cjs/integrations/tracing-channel/generic-pool.js +34 -0
  10. package/build/cjs/integrations/tracing-channel/generic-pool.js.map +1 -0
  11. package/build/cjs/integrations/tracing-channel/graphql/spans.js +2 -2
  12. package/build/cjs/integrations/tracing-channel/graphql/spans.js.map +1 -1
  13. package/build/cjs/integrations/tracing-channel/ioredis.js +29 -26
  14. package/build/cjs/integrations/tracing-channel/ioredis.js.map +1 -1
  15. package/build/cjs/integrations/tracing-channel/kafkajs/consumer.js +71 -0
  16. package/build/cjs/integrations/tracing-channel/kafkajs/consumer.js.map +1 -0
  17. package/build/cjs/integrations/tracing-channel/kafkajs/index.js +70 -0
  18. package/build/cjs/integrations/tracing-channel/kafkajs/index.js.map +1 -0
  19. package/build/cjs/integrations/tracing-channel/kafkajs/semconv.js +22 -0
  20. package/build/cjs/integrations/tracing-channel/kafkajs/semconv.js.map +1 -0
  21. package/build/cjs/integrations/tracing-channel/kafkajs/spans.js +119 -0
  22. package/build/cjs/integrations/tracing-channel/kafkajs/spans.js.map +1 -0
  23. package/build/cjs/integrations/tracing-channel/knex.js +188 -0
  24. package/build/cjs/integrations/tracing-channel/knex.js.map +1 -0
  25. package/build/cjs/integrations/tracing-channel/mysql2.js +83 -0
  26. package/build/cjs/integrations/tracing-channel/mysql2.js.map +1 -0
  27. package/build/cjs/orchestrion/bundler/esbuild.js +11 -0
  28. package/build/cjs/orchestrion/bundler/esbuild.js.map +1 -0
  29. package/build/cjs/orchestrion/bundler/options.js +15 -0
  30. package/build/cjs/orchestrion/bundler/options.js.map +1 -0
  31. package/build/cjs/orchestrion/bundler/rollup.js +11 -0
  32. package/build/cjs/orchestrion/bundler/rollup.js.map +1 -0
  33. package/build/cjs/orchestrion/bundler/vite.js +4 -21
  34. package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
  35. package/build/cjs/orchestrion/bundler/webpack.js +32 -0
  36. package/build/cjs/orchestrion/bundler/webpack.js.map +1 -0
  37. package/build/cjs/orchestrion/channels.js +50 -20
  38. package/build/cjs/orchestrion/channels.js.map +1 -1
  39. package/build/cjs/orchestrion/config/dataloader.js +53 -0
  40. package/build/cjs/orchestrion/config/dataloader.js.map +1 -0
  41. package/build/cjs/orchestrion/config/firebase.js +8 -0
  42. package/build/cjs/orchestrion/config/firebase.js.map +1 -0
  43. package/build/cjs/orchestrion/config/generic-pool.js +21 -0
  44. package/build/cjs/orchestrion/config/generic-pool.js.map +1 -0
  45. package/build/cjs/orchestrion/config/index.js +55 -23
  46. package/build/cjs/orchestrion/config/index.js.map +1 -1
  47. package/build/cjs/orchestrion/config/kafkajs.js +30 -0
  48. package/build/cjs/orchestrion/config/kafkajs.js.map +1 -0
  49. package/build/cjs/orchestrion/config/knex.js +43 -0
  50. package/build/cjs/orchestrion/config/knex.js.map +1 -0
  51. package/build/cjs/orchestrion/config/langchain.js +8 -0
  52. package/build/cjs/orchestrion/config/langchain.js.map +1 -0
  53. package/build/cjs/orchestrion/config/langgraph.js +8 -0
  54. package/build/cjs/orchestrion/config/langgraph.js.map +1 -0
  55. package/build/cjs/orchestrion/config/mongodb.js +8 -0
  56. package/build/cjs/orchestrion/config/mongodb.js.map +1 -0
  57. package/build/cjs/orchestrion/config/mongoose.js +8 -0
  58. package/build/cjs/orchestrion/config/mongoose.js.map +1 -0
  59. package/build/cjs/orchestrion/config/mysql2.js +32 -0
  60. package/build/cjs/orchestrion/config/mysql2.js.map +1 -0
  61. package/build/cjs/orchestrion/config/nestjs.js +122 -0
  62. package/build/cjs/orchestrion/config/nestjs.js.map +1 -0
  63. package/build/cjs/orchestrion/config/prisma.js +8 -0
  64. package/build/cjs/orchestrion/config/prisma.js.map +1 -0
  65. package/build/cjs/orchestrion/config/react-router.js +8 -0
  66. package/build/cjs/orchestrion/config/react-router.js.map +1 -0
  67. package/build/cjs/orchestrion/config/remix.js +8 -0
  68. package/build/cjs/orchestrion/config/remix.js.map +1 -0
  69. package/build/cjs/orchestrion/config/tedious.js +8 -0
  70. package/build/cjs/orchestrion/config/tedious.js.map +1 -0
  71. package/build/cjs/orchestrion/detect.js +12 -11
  72. package/build/cjs/orchestrion/detect.js.map +1 -1
  73. package/build/cjs/orchestrion/index.js +16 -1
  74. package/build/cjs/orchestrion/index.js.map +1 -1
  75. package/build/cjs/orchestrion/runtime/register.js +25 -14
  76. package/build/cjs/orchestrion/runtime/register.js.map +1 -1
  77. package/build/cjs/prisma/global.js +14 -0
  78. package/build/cjs/prisma/global.js.map +1 -0
  79. package/build/cjs/prisma/index.js +27 -0
  80. package/build/cjs/prisma/index.js.map +1 -0
  81. package/build/cjs/prisma/tracing-helper.js +211 -0
  82. package/build/cjs/prisma/tracing-helper.js.map +1 -0
  83. package/build/cjs/vercel-ai/util.js +0 -11
  84. package/build/cjs/vercel-ai/util.js.map +1 -1
  85. package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js +9 -9
  86. package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  87. package/build/esm/graphql/graphql-dc-subscriber.js +3 -5
  88. package/build/esm/graphql/graphql-dc-subscriber.js.map +1 -1
  89. package/build/esm/graphql/utils.js +8 -2
  90. package/build/esm/graphql/utils.js.map +1 -1
  91. package/build/esm/index.js +1 -0
  92. package/build/esm/index.js.map +1 -1
  93. package/build/esm/integrations/tracing-channel/dataloader.js +93 -0
  94. package/build/esm/integrations/tracing-channel/dataloader.js.map +1 -0
  95. package/build/esm/integrations/tracing-channel/generic-pool.js +32 -0
  96. package/build/esm/integrations/tracing-channel/generic-pool.js.map +1 -0
  97. package/build/esm/integrations/tracing-channel/graphql/spans.js +3 -3
  98. package/build/esm/integrations/tracing-channel/graphql/spans.js.map +1 -1
  99. package/build/esm/integrations/tracing-channel/ioredis.js +29 -27
  100. package/build/esm/integrations/tracing-channel/ioredis.js.map +1 -1
  101. package/build/esm/integrations/tracing-channel/kafkajs/consumer.js +67 -0
  102. package/build/esm/integrations/tracing-channel/kafkajs/consumer.js.map +1 -0
  103. package/build/esm/integrations/tracing-channel/kafkajs/index.js +68 -0
  104. package/build/esm/integrations/tracing-channel/kafkajs/index.js.map +1 -0
  105. package/build/esm/integrations/tracing-channel/kafkajs/semconv.js +12 -0
  106. package/build/esm/integrations/tracing-channel/kafkajs/semconv.js.map +1 -0
  107. package/build/esm/integrations/tracing-channel/kafkajs/spans.js +112 -0
  108. package/build/esm/integrations/tracing-channel/kafkajs/spans.js.map +1 -0
  109. package/build/esm/integrations/tracing-channel/knex.js +186 -0
  110. package/build/esm/integrations/tracing-channel/knex.js.map +1 -0
  111. package/build/esm/integrations/tracing-channel/mysql2.js +81 -0
  112. package/build/esm/integrations/tracing-channel/mysql2.js.map +1 -0
  113. package/build/esm/orchestrion/bundler/esbuild.js +9 -0
  114. package/build/esm/orchestrion/bundler/esbuild.js.map +1 -0
  115. package/build/esm/orchestrion/bundler/options.js +13 -0
  116. package/build/esm/orchestrion/bundler/options.js.map +1 -0
  117. package/build/esm/orchestrion/bundler/rollup.js +9 -0
  118. package/build/esm/orchestrion/bundler/rollup.js.map +1 -0
  119. package/build/esm/orchestrion/bundler/vite.js +5 -22
  120. package/build/esm/orchestrion/bundler/vite.js.map +1 -1
  121. package/build/esm/orchestrion/bundler/webpack.js +27 -0
  122. package/build/esm/orchestrion/bundler/webpack.js.map +1 -0
  123. package/build/esm/orchestrion/channels.js +50 -20
  124. package/build/esm/orchestrion/channels.js.map +1 -1
  125. package/build/esm/orchestrion/config/dataloader.js +50 -0
  126. package/build/esm/orchestrion/config/dataloader.js.map +1 -0
  127. package/build/esm/orchestrion/config/firebase.js +5 -0
  128. package/build/esm/orchestrion/config/firebase.js.map +1 -0
  129. package/build/esm/orchestrion/config/generic-pool.js +18 -0
  130. package/build/esm/orchestrion/config/generic-pool.js.map +1 -0
  131. package/build/esm/orchestrion/config/index.js +55 -24
  132. package/build/esm/orchestrion/config/index.js.map +1 -1
  133. package/build/esm/orchestrion/config/kafkajs.js +27 -0
  134. package/build/esm/orchestrion/config/kafkajs.js.map +1 -0
  135. package/build/esm/orchestrion/config/knex.js +40 -0
  136. package/build/esm/orchestrion/config/knex.js.map +1 -0
  137. package/build/esm/orchestrion/config/langchain.js +5 -0
  138. package/build/esm/orchestrion/config/langchain.js.map +1 -0
  139. package/build/esm/orchestrion/config/langgraph.js +5 -0
  140. package/build/esm/orchestrion/config/langgraph.js.map +1 -0
  141. package/build/esm/orchestrion/config/mongodb.js +5 -0
  142. package/build/esm/orchestrion/config/mongodb.js.map +1 -0
  143. package/build/esm/orchestrion/config/mongoose.js +5 -0
  144. package/build/esm/orchestrion/config/mongoose.js.map +1 -0
  145. package/build/esm/orchestrion/config/mysql2.js +29 -0
  146. package/build/esm/orchestrion/config/mysql2.js.map +1 -0
  147. package/build/esm/orchestrion/config/nestjs.js +119 -0
  148. package/build/esm/orchestrion/config/nestjs.js.map +1 -0
  149. package/build/esm/orchestrion/config/prisma.js +5 -0
  150. package/build/esm/orchestrion/config/prisma.js.map +1 -0
  151. package/build/esm/orchestrion/config/react-router.js +5 -0
  152. package/build/esm/orchestrion/config/react-router.js.map +1 -0
  153. package/build/esm/orchestrion/config/remix.js +5 -0
  154. package/build/esm/orchestrion/config/remix.js.map +1 -0
  155. package/build/esm/orchestrion/config/tedious.js +5 -0
  156. package/build/esm/orchestrion/config/tedious.js.map +1 -0
  157. package/build/esm/orchestrion/detect.js +13 -12
  158. package/build/esm/orchestrion/detect.js.map +1 -1
  159. package/build/esm/orchestrion/index.js +11 -2
  160. package/build/esm/orchestrion/index.js.map +1 -1
  161. package/build/esm/orchestrion/runtime/register.js +27 -16
  162. package/build/esm/orchestrion/runtime/register.js.map +1 -1
  163. package/build/esm/package.json +1 -1
  164. package/build/esm/prisma/global.js +12 -0
  165. package/build/esm/prisma/global.js.map +1 -0
  166. package/build/esm/prisma/index.js +24 -0
  167. package/build/esm/prisma/index.js.map +1 -0
  168. package/build/esm/prisma/tracing-helper.js +209 -0
  169. package/build/esm/prisma/tracing-helper.js.map +1 -0
  170. package/build/esm/vercel-ai/util.js +1 -11
  171. package/build/esm/vercel-ai/util.js.map +1 -1
  172. package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js +11 -11
  173. package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  174. package/build/types/graphql/utils.d.ts +2 -6
  175. package/build/types/graphql/utils.d.ts.map +1 -1
  176. package/build/types/index.d.ts +2 -0
  177. package/build/types/index.d.ts.map +1 -1
  178. package/build/types/integrations/tracing-channel/dataloader.d.ts +11 -0
  179. package/build/types/integrations/tracing-channel/dataloader.d.ts.map +1 -0
  180. package/build/types/integrations/tracing-channel/generic-pool.d.ts +10 -0
  181. package/build/types/integrations/tracing-channel/generic-pool.d.ts.map +1 -0
  182. package/build/types/integrations/tracing-channel/ioredis.d.ts +20 -0
  183. package/build/types/integrations/tracing-channel/ioredis.d.ts.map +1 -1
  184. package/build/types/integrations/tracing-channel/kafkajs/consumer.d.ts +8 -0
  185. package/build/types/integrations/tracing-channel/kafkajs/consumer.d.ts.map +1 -0
  186. package/build/types/integrations/tracing-channel/kafkajs/index.d.ts +17 -0
  187. package/build/types/integrations/tracing-channel/kafkajs/index.d.ts.map +1 -0
  188. package/build/types/integrations/tracing-channel/kafkajs/semconv.d.ts +10 -0
  189. package/build/types/integrations/tracing-channel/kafkajs/semconv.d.ts.map +1 -0
  190. package/build/types/integrations/tracing-channel/kafkajs/spans.d.ts +38 -0
  191. package/build/types/integrations/tracing-channel/kafkajs/spans.d.ts.map +1 -0
  192. package/build/types/integrations/tracing-channel/kafkajs/types.d.ts +40 -0
  193. package/build/types/integrations/tracing-channel/kafkajs/types.d.ts.map +1 -0
  194. package/build/types/integrations/tracing-channel/knex.d.ts +11 -0
  195. package/build/types/integrations/tracing-channel/knex.d.ts.map +1 -0
  196. package/build/types/integrations/tracing-channel/mysql2.d.ts +15 -0
  197. package/build/types/integrations/tracing-channel/mysql2.d.ts.map +1 -0
  198. package/build/types/orchestrion/bundler/esbuild.d.ts +21 -0
  199. package/build/types/orchestrion/bundler/esbuild.d.ts.map +1 -0
  200. package/build/types/orchestrion/bundler/options.d.ts +19 -0
  201. package/build/types/orchestrion/bundler/options.d.ts.map +1 -0
  202. package/build/types/orchestrion/bundler/rollup.d.ts +17 -0
  203. package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -0
  204. package/build/types/orchestrion/bundler/vite.d.ts +4 -17
  205. package/build/types/orchestrion/bundler/vite.d.ts.map +1 -1
  206. package/build/types/orchestrion/bundler/webpack.d.ts +19 -0
  207. package/build/types/orchestrion/bundler/webpack.d.ts.map +1 -0
  208. package/build/types/orchestrion/channels.d.ts +64 -37
  209. package/build/types/orchestrion/channels.d.ts.map +1 -1
  210. package/build/types/orchestrion/config/dataloader.d.ts +46 -0
  211. package/build/types/orchestrion/config/dataloader.d.ts.map +1 -0
  212. package/build/types/orchestrion/config/firebase.d.ts +4 -0
  213. package/build/types/orchestrion/config/firebase.d.ts.map +1 -0
  214. package/build/types/orchestrion/config/generic-pool.d.ts +31 -0
  215. package/build/types/orchestrion/config/generic-pool.d.ts.map +1 -0
  216. package/build/types/orchestrion/config/index.d.ts +18 -5
  217. package/build/types/orchestrion/config/index.d.ts.map +1 -1
  218. package/build/types/orchestrion/config/kafkajs.d.ts +17 -0
  219. package/build/types/orchestrion/config/kafkajs.d.ts.map +1 -0
  220. package/build/types/orchestrion/config/knex.d.ts +9 -0
  221. package/build/types/orchestrion/config/knex.d.ts.map +1 -0
  222. package/build/types/orchestrion/config/langchain.d.ts +4 -0
  223. package/build/types/orchestrion/config/langchain.d.ts.map +1 -0
  224. package/build/types/orchestrion/config/langgraph.d.ts +4 -0
  225. package/build/types/orchestrion/config/langgraph.d.ts.map +1 -0
  226. package/build/types/orchestrion/config/mongodb.d.ts +4 -0
  227. package/build/types/orchestrion/config/mongodb.d.ts.map +1 -0
  228. package/build/types/orchestrion/config/mongoose.d.ts +4 -0
  229. package/build/types/orchestrion/config/mongoose.d.ts.map +1 -0
  230. package/build/types/orchestrion/config/mysql2.d.ts +18 -0
  231. package/build/types/orchestrion/config/mysql2.d.ts.map +1 -0
  232. package/build/types/orchestrion/config/nestjs.d.ts +24 -0
  233. package/build/types/orchestrion/config/nestjs.d.ts.map +1 -0
  234. package/build/types/orchestrion/config/prisma.d.ts +4 -0
  235. package/build/types/orchestrion/config/prisma.d.ts.map +1 -0
  236. package/build/types/orchestrion/config/react-router.d.ts +4 -0
  237. package/build/types/orchestrion/config/react-router.d.ts.map +1 -0
  238. package/build/types/orchestrion/config/remix.d.ts +4 -0
  239. package/build/types/orchestrion/config/remix.d.ts.map +1 -0
  240. package/build/types/orchestrion/config/tedious.d.ts +4 -0
  241. package/build/types/orchestrion/config/tedious.d.ts.map +1 -0
  242. package/build/types/orchestrion/detect.d.ts +3 -10
  243. package/build/types/orchestrion/detect.d.ts.map +1 -1
  244. package/build/types/orchestrion/index.d.ts +25 -1
  245. package/build/types/orchestrion/index.d.ts.map +1 -1
  246. package/build/types/orchestrion/runtime/register.d.ts +11 -9
  247. package/build/types/orchestrion/runtime/register.d.ts.map +1 -1
  248. package/build/types/prisma/global.d.ts +5 -0
  249. package/build/types/prisma/global.d.ts.map +1 -0
  250. package/build/types/prisma/index.d.ts +45 -0
  251. package/build/types/prisma/index.d.ts.map +1 -0
  252. package/build/types/prisma/tracing-helper.d.ts +46 -0
  253. package/build/types/prisma/tracing-helper.d.ts.map +1 -0
  254. package/build/types/prisma/types.d.ts +37 -0
  255. package/build/types/prisma/types.d.ts.map +1 -0
  256. package/build/types/vercel-ai/util.d.ts +0 -2
  257. package/build/types/vercel-ai/util.d.ts.map +1 -1
  258. package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
  259. package/build/types-ts3.8/graphql/utils.d.ts +2 -6
  260. package/build/types-ts3.8/index.d.ts +2 -0
  261. package/build/types-ts3.8/integrations/tracing-channel/dataloader.d.ts +11 -0
  262. package/build/types-ts3.8/integrations/tracing-channel/generic-pool.d.ts +10 -0
  263. package/build/types-ts3.8/integrations/tracing-channel/ioredis.d.ts +20 -0
  264. package/build/types-ts3.8/integrations/tracing-channel/kafkajs/consumer.d.ts +8 -0
  265. package/build/types-ts3.8/integrations/tracing-channel/kafkajs/index.d.ts +17 -0
  266. package/build/types-ts3.8/integrations/tracing-channel/kafkajs/semconv.d.ts +10 -0
  267. package/build/types-ts3.8/integrations/tracing-channel/kafkajs/spans.d.ts +38 -0
  268. package/build/types-ts3.8/integrations/tracing-channel/kafkajs/types.d.ts +40 -0
  269. package/build/types-ts3.8/integrations/tracing-channel/knex.d.ts +11 -0
  270. package/build/types-ts3.8/integrations/tracing-channel/mysql2.d.ts +15 -0
  271. package/build/types-ts3.8/orchestrion/bundler/esbuild.d.ts +21 -0
  272. package/build/types-ts3.8/orchestrion/bundler/options.d.ts +19 -0
  273. package/build/types-ts3.8/orchestrion/bundler/rollup.d.ts +17 -0
  274. package/build/types-ts3.8/orchestrion/bundler/vite.d.ts +4 -17
  275. package/build/types-ts3.8/orchestrion/bundler/webpack.d.ts +19 -0
  276. package/build/types-ts3.8/orchestrion/channels.d.ts +64 -37
  277. package/build/types-ts3.8/orchestrion/config/dataloader.d.ts +46 -0
  278. package/build/types-ts3.8/orchestrion/config/firebase.d.ts +4 -0
  279. package/build/types-ts3.8/orchestrion/config/generic-pool.d.ts +31 -0
  280. package/build/types-ts3.8/orchestrion/config/index.d.ts +18 -5
  281. package/build/types-ts3.8/orchestrion/config/kafkajs.d.ts +17 -0
  282. package/build/types-ts3.8/orchestrion/config/knex.d.ts +9 -0
  283. package/build/types-ts3.8/orchestrion/config/langchain.d.ts +4 -0
  284. package/build/types-ts3.8/orchestrion/config/langgraph.d.ts +4 -0
  285. package/build/types-ts3.8/orchestrion/config/mongodb.d.ts +4 -0
  286. package/build/types-ts3.8/orchestrion/config/mongoose.d.ts +4 -0
  287. package/build/types-ts3.8/orchestrion/config/mysql2.d.ts +18 -0
  288. package/build/types-ts3.8/orchestrion/config/nestjs.d.ts +24 -0
  289. package/build/types-ts3.8/orchestrion/config/prisma.d.ts +4 -0
  290. package/build/types-ts3.8/orchestrion/config/react-router.d.ts +4 -0
  291. package/build/types-ts3.8/orchestrion/config/remix.d.ts +4 -0
  292. package/build/types-ts3.8/orchestrion/config/tedious.d.ts +4 -0
  293. package/build/types-ts3.8/orchestrion/detect.d.ts +3 -10
  294. package/build/types-ts3.8/orchestrion/index.d.ts +25 -1
  295. package/build/types-ts3.8/orchestrion/runtime/register.d.ts +11 -9
  296. package/build/types-ts3.8/prisma/global.d.ts +5 -0
  297. package/build/types-ts3.8/prisma/index.d.ts +45 -0
  298. package/build/types-ts3.8/prisma/tracing-helper.d.ts +52 -0
  299. package/build/types-ts3.8/prisma/types.d.ts +40 -0
  300. package/build/types-ts3.8/vercel-ai/util.d.ts +0 -2
  301. package/package.json +41 -8
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Orchestrion-driven mysql2 integration.
3
+ *
4
+ * Adds Sentry tracing instrumentation for the [mysql2](https://www.npmjs.com/package/mysql2) library
5
+ * via diagnostics-channel injection. See {@link instrumentMysql2} for how the two mysql2 version
6
+ * ranges are covered.
7
+ *
8
+ * Known limitation vs. the OTel integration it replaces: the callback-less streaming form
9
+ * (`connection.query(sql).on('result', ...)`) is not traced — see the `mysql2` orchestrion config for
10
+ * why. The callback and promise forms (the common case) are fully instrumented.
11
+ */
12
+ export declare const mysql2ChannelIntegration: () => import("@sentry/core").Integration & {
13
+ name: "Mysql2";
14
+ };
15
+ //# sourceMappingURL=mysql2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mysql2.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing-channel/mysql2.ts"],"names":[],"mappings":"AAwJA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB;;CAA+C,CAAC"}
@@ -0,0 +1,21 @@
1
+ import codeTransformer from '@apm-js-collab/code-transformer-bundler-plugins/esbuild';
2
+ import type { PluginOptions } from './options';
3
+ /**
4
+ * esbuild plugin that runs the orchestrion code transform on the bundled output.
5
+ *
6
+ * Use when bundling a Node app with esbuild. For unbundled Node processes use the
7
+ * runtime hook instead (`node --import @sentry/node/orchestrion app.js`).
8
+ *
9
+ * esbuild does not flatten nested `plugins` arrays, so this returns a single
10
+ * plugin that strips instrumented packages from an `external` denylist before
11
+ * delegating to the upstream transform.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * // build.mjs
16
+ * import { sentryOrchestrionPlugin } from '@sentry/server-utils/orchestrion/esbuild';
17
+ * await esbuild.build({ plugins: [sentryOrchestrionPlugin()] });
18
+ * ```
19
+ */
20
+ export declare function sentryOrchestrionPlugin(options?: PluginOptions): ReturnType<typeof codeTransformer>;
21
+ //# sourceMappingURL=esbuild.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"esbuild.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/esbuild.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,yDAAyD,CAAC;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG/C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,aAAkB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAEvG"}
@@ -0,0 +1,19 @@
1
+ import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
+ import type codeTransformer from '@apm-js-collab/code-transformer-bundler-plugins/rollup';
3
+ export type PluginOptions = {
4
+ /**
5
+ * Additional instrumentations to include with the default instrumentation.
6
+ */
7
+ instrumentations?: InstrumentationConfig[];
8
+ };
9
+ /**
10
+ * The `@apm-js-collab/code-transformer-bundler-plugins` options shared by every
11
+ * orchestrion bundler plugin.
12
+ *
13
+ * `injectDiagnostics` sets `globalThis.__SENTRY_ORCHESTRION__.bundler = ["mysql"]` at
14
+ * app boot so the `_experimentalSetupOrchestrion()` detector can confirm the
15
+ * bundler path ran (rather than relying on a build-time flag that wouldn't be
16
+ * visible to the runtime).
17
+ */
18
+ export declare function orchestrionTransformOptions(options: PluginOptions): Parameters<typeof codeTransformer>[0];
19
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAE7E,OAAO,KAAK,eAAe,MAAM,wDAAwD,CAAC;AAE1F,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,qBAAqB,EAAE,CAAC;CAC5C,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,aAAa,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAOzG"}
@@ -0,0 +1,17 @@
1
+ import codeTransformer from '@apm-js-collab/code-transformer-bundler-plugins/rollup';
2
+ import type { PluginOptions } from './options';
3
+ /**
4
+ * Rollup plugin that runs the orchestrion code transform on the bundled output.
5
+ *
6
+ * Use when bundling a Node app with Rollup. For unbundled Node processes use the
7
+ * runtime hook instead (`node --import @sentry/node/orchestrion app.js`).
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * // rollup.config.js
12
+ * import { sentryOrchestrionPlugin } from '@sentry/server-utils/orchestrion/rollup';
13
+ * export default { plugins: [sentryOrchestrionPlugin()] };
14
+ * ```
15
+ */
16
+ export declare function sentryOrchestrionPlugin(options?: PluginOptions): ReturnType<typeof codeTransformer>;
17
+ //# sourceMappingURL=rollup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rollup.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/rollup.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,wDAAwD,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG/C;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,aAAkB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAEvG"}
@@ -1,4 +1,5 @@
1
- type UnknownPlugin = any;
1
+ import codeTransformer from '@apm-js-collab/code-transformer-bundler-plugins/vite';
2
+ import type { PluginOptions } from './options';
2
3
  /**
3
4
  * Vite plugin that runs the orchestrion code transform on the bundled output.
4
5
  *
@@ -6,26 +7,12 @@ type UnknownPlugin = any;
6
7
  * pipeline, SvelteKit). For unbundled Node processes use the runtime hook
7
8
  * instead (`node --import @sentry/node/orchestrion app.js`).
8
9
  *
9
- * Returns two plugins:
10
- * 1. `sentry-orchestrion-marker` — a `renderChunk` hook that prepends a
11
- * single-line banner to entry chunks. The banner sets
12
- * `globalThis.__SENTRY_ORCHESTRION__.bundler = true` at app boot, so the
13
- * `_experimentalSetupOrchestrion()` detector can confirm the bundler path
14
- * ran (rather than relying on a build-time flag that wouldn't be visible
15
- * to the runtime).
16
- * Also injects every instrumented package name into `ssr.noExternal` via
17
- * the `config` hook, since externalized deps are `require()`d at runtime
18
- * from `node_modules` and never pass through the transform.
19
- * 2. The upstream `@apm-js-collab/code-transformer-bundler-plugins/vite`
20
- * plugin, fed our central `SENTRY_INSTRUMENTATIONS` config.
21
- *
22
10
  * @example
23
11
  * ```ts
24
12
  * // vite.config.ts
25
- * import { sentryOrchestrionPlugin } from '@sentry/node/orchestrion/vite';
13
+ * import { sentryOrchestrionPlugin } from '@sentry/server-utils/orchestrion/vite';
26
14
  * export default { plugins: [sentryOrchestrionPlugin()] };
27
15
  * ```
28
16
  */
29
- export declare function sentryOrchestrionPlugin(): UnknownPlugin[];
30
- export {};
17
+ export declare function sentryOrchestrionPlugin(options?: PluginOptions): ReturnType<typeof codeTransformer>;
31
18
  //# sourceMappingURL=vite.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/vite.ts"],"names":[],"mappings":"AAaA,KAAK,aAAa,GAAG,GAAG,CAAC;AAWzB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,uBAAuB,IAAI,aAAa,EAAE,CAMzD"}
1
+ {"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/vite.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,sDAAsD,CAAC;AAEnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG/C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,aAAkB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAcvG"}
@@ -0,0 +1,19 @@
1
+ import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
+ /** Absolute path to the code-transform loader (a webpack loader; also usable as a Turbopack loader). */
3
+ export declare function getOrchestrionLoaderPath(): string;
4
+ /**
5
+ * Absolute path to the `@apm-js-collab/tracing-hooks` package directory, resolved from this
6
+ * package's own dependency graph. SDKs inject it at build time so the runtime module hook can
7
+ * load the package even where the bare specifier doesn't resolve (bundled SDK code under
8
+ * isolated installs, e.g. pnpm).
9
+ */
10
+ export declare function getTracingHooksDirectory(): string;
11
+ /** The central instrumentation config, to pass as the loader's `instrumentations` option. */
12
+ export declare function getSentryInstrumentations(): InstrumentationConfig[];
13
+ /**
14
+ * The code-transform webpack plugin, pre-fed the instrumentation config. Unlike the Vite plugin it
15
+ * does NOT inject the `__SENTRY_ORCHESTRION__.bundler` marker — that would disable the runtime
16
+ * module hook, which externalized packages still need (hybrid setup).
17
+ */
18
+ export declare function sentryOrchestrionWebpackPlugin(): unknown;
19
+ //# sourceMappingURL=webpack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webpack.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/webpack.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAgB7E,wGAAwG;AACxG,wBAAgB,wBAAwB,IAAI,MAAM,CAEjD;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,IAAI,MAAM,CAIjD;AAED,6FAA6F;AAC7F,wBAAgB,yBAAyB,IAAI,qBAAqB,EAAE,CAEnE;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,IAAI,OAAO,CAMxD"}
@@ -10,17 +10,18 @@
10
10
  * prefixed string from this map; the config files set only the unprefixed
11
11
  * suffix in `channelName`. Keeping both pieces in one file is what guarantees
12
12
  * they don't drift apart and silently stop firing.
13
+ *
14
+ * Kept sorted alphabetically by module so concurrent additions insert at different
15
+ * points rather than all appending to the end (fewer merge conflicts).
13
16
  */
14
17
  export declare const CHANNELS: {
15
- readonly GRAPHQL_PARSE: "orchestrion:graphql:parse";
16
- readonly GRAPHQL_VALIDATE: "orchestrion:graphql:validate";
17
- readonly GRAPHQL_EXECUTE: "orchestrion:graphql:execute";
18
- readonly EXPRESS_HANDLE: "orchestrion:express:handle";
19
- readonly ROUTER_HANDLE: "orchestrion:router:handle";
20
- readonly EXPRESS_ROUTE: "orchestrion:express:route";
21
- readonly EXPRESS_USE: "orchestrion:express:use";
22
- readonly ROUTER_ROUTE: "orchestrion:router:route";
23
- readonly ROUTER_USE: "orchestrion:router:use";
18
+ readonly VERCEL_AI_GENERATE_TEXT: "orchestrion:ai:generateText";
19
+ readonly VERCEL_AI_STREAM_TEXT: "orchestrion:ai:streamText";
20
+ readonly VERCEL_AI_GENERATE_OBJECT: "orchestrion:ai:generateObject";
21
+ readonly VERCEL_AI_EMBED: "orchestrion:ai:embed";
22
+ readonly VERCEL_AI_EMBED_MANY: "orchestrion:ai:embedMany";
23
+ readonly VERCEL_AI_EXECUTE_TOOL_CALL: "orchestrion:ai:executeToolCall";
24
+ readonly VERCEL_AI_RESOLVE_LANGUAGE_MODEL: "orchestrion:ai:resolveLanguageModel";
24
25
  readonly REDIS_COMMAND: "orchestrion:redis:command";
25
26
  readonly NODE_REDIS_COMMAND: "orchestrion:@redis/client:command";
26
27
  readonly NODE_REDIS_EXECUTOR: "orchestrion:@redis/client:executor";
@@ -28,8 +29,62 @@ export declare const CHANNELS: {
28
29
  readonly NODE_REDIS_MULTI: "orchestrion:@redis/client:multi";
29
30
  readonly NODE_REDIS_PIPELINE: "orchestrion:@redis/client:pipeline";
30
31
  readonly NODE_REDIS_BATCH: "orchestrion:@redis/client:batch";
32
+ readonly POSTGRESJS_HANDLE: "orchestrion:postgres:handle";
33
+ readonly POSTGRESJS_CONNECTION: "orchestrion:postgres:connection";
34
+ readonly POSTGRESJS_EXECUTE: "orchestrion:postgres:execute";
35
+ readonly POSTGRESJS_CONNECT: "orchestrion:postgres:connect";
36
+ readonly PG_QUERY: "orchestrion:pg:query";
37
+ readonly PG_CONNECT: "orchestrion:pg:connect";
38
+ readonly PGPOOL_CONNECT: "orchestrion:pg-pool:connect";
39
+ readonly OPENAI_CHAT: "orchestrion:openai:chat";
40
+ readonly OPENAI_RESPONSES: "orchestrion:openai:responses";
41
+ readonly OPENAI_EMBEDDINGS: "orchestrion:openai:embeddings";
42
+ readonly OPENAI_CONVERSATIONS: "orchestrion:openai:conversations";
43
+ readonly NESTJS_APP_CREATION: "orchestrion:@nestjs/core:nestFactoryCreate";
44
+ readonly NESTJS_ROUTER_CONTEXT: "orchestrion:@nestjs/core:routerExecutionContextCreate";
45
+ readonly NESTJS_INJECTABLE: "orchestrion:@nestjs/common:injectableDecorator";
46
+ readonly NESTJS_CATCH: "orchestrion:@nestjs/common:catchDecorator";
47
+ readonly NESTJS_SCHEDULE_CRON: "orchestrion:@nestjs/schedule:cronDecorator";
48
+ readonly NESTJS_SCHEDULE_INTERVAL: "orchestrion:@nestjs/schedule:intervalDecorator";
49
+ readonly NESTJS_SCHEDULE_TIMEOUT: "orchestrion:@nestjs/schedule:timeoutDecorator";
50
+ readonly NESTJS_ONEVENT: "orchestrion:@nestjs/event-emitter:onEventDecorator";
51
+ readonly NESTJS_PROCESSOR: "orchestrion:@nestjs/bullmq:processorDecorator";
52
+ readonly MYSQL_QUERY: "orchestrion:mysql:query";
53
+ readonly MYSQL2_QUERY: "orchestrion:mysql2:query";
54
+ readonly MYSQL2_EXECUTE: "orchestrion:mysql2:execute";
55
+ readonly LRU_MEMOIZER_LOAD: "orchestrion:lru-memoizer:load";
56
+ readonly KNEX_QUERY: "orchestrion:knex:query";
57
+ readonly KNEX_QUERY_BUILDER: "orchestrion:knex:queryBuilder";
58
+ readonly KNEX_SCHEMA_BUILDER: "orchestrion:knex:schemaBuilder";
59
+ readonly KNEX_RAW: "orchestrion:knex:raw";
60
+ readonly KAFKAJS_SEND_BATCH: "orchestrion:kafkajs:send_batch";
61
+ readonly KAFKAJS_CONSUMER_RUN: "orchestrion:kafkajs:consumer_run";
62
+ readonly IOREDIS_COMMAND: "orchestrion:ioredis:command";
63
+ readonly IOREDIS_CONNECT: "orchestrion:ioredis:connect";
31
64
  readonly HAPI_ROUTE: "orchestrion:@hapi/hapi:route";
32
65
  readonly HAPI_EXT: "orchestrion:@hapi/hapi:ext";
66
+ readonly GRAPHQL_PARSE: "orchestrion:graphql:parse";
67
+ readonly GRAPHQL_VALIDATE: "orchestrion:graphql:validate";
68
+ readonly GRAPHQL_EXECUTE: "orchestrion:graphql:execute";
69
+ readonly GOOGLE_GENAI_GENERATE_CONTENT: "orchestrion:@google/genai:generate-content";
70
+ readonly GOOGLE_GENAI_EMBED_CONTENT: "orchestrion:@google/genai:embed-content";
71
+ readonly GOOGLE_GENAI_CHAT: "orchestrion:@google/genai:chat";
72
+ readonly GENERIC_POOL_ACQUIRE: "orchestrion:generic-pool:acquire";
73
+ readonly EXPRESS_HANDLE: "orchestrion:express:handle";
74
+ readonly ROUTER_HANDLE: "orchestrion:router:handle";
75
+ readonly EXPRESS_ROUTE: "orchestrion:express:route";
76
+ readonly EXPRESS_USE: "orchestrion:express:use";
77
+ readonly ROUTER_ROUTE: "orchestrion:router:route";
78
+ readonly ROUTER_USE: "orchestrion:router:use";
79
+ readonly DATALOADER_CONSTRUCT: "orchestrion:dataloader:construct";
80
+ readonly DATALOADER_LOAD: "orchestrion:dataloader:load";
81
+ readonly DATALOADER_LOAD_MANY: "orchestrion:dataloader:loadMany";
82
+ readonly DATALOADER_PRIME: "orchestrion:dataloader:prime";
83
+ readonly DATALOADER_CLEAR: "orchestrion:dataloader:clear";
84
+ readonly DATALOADER_CLEAR_ALL: "orchestrion:dataloader:clearAll";
85
+ readonly ANTHROPIC_CHAT: "orchestrion:@anthropic-ai/sdk:chat";
86
+ readonly ANTHROPIC_MODELS: "orchestrion:@anthropic-ai/sdk:models";
87
+ readonly ANTHROPIC_MESSAGES_STREAM: "orchestrion:@anthropic-ai/sdk:messages-stream";
33
88
  readonly AMQPLIB_PUBLISH: "orchestrion:amqplib:publish";
34
89
  readonly AMQPLIB_CONFIRM_PUBLISH: "orchestrion:amqplib:confirmPublish";
35
90
  readonly AMQPLIB_CONSUME: "orchestrion:amqplib:consume";
@@ -40,34 +95,6 @@ export declare const CHANNELS: {
40
95
  readonly AMQPLIB_ACK_ALL: "orchestrion:amqplib:ackAll";
41
96
  readonly AMQPLIB_NACK_ALL: "orchestrion:amqplib:nackAll";
42
97
  readonly AMQPLIB_CONNECT: "orchestrion:amqplib:connect";
43
- readonly VERCEL_AI_GENERATE_TEXT: "orchestrion:ai:generateText";
44
- readonly VERCEL_AI_STREAM_TEXT: "orchestrion:ai:streamText";
45
- readonly VERCEL_AI_GENERATE_OBJECT: "orchestrion:ai:generateObject";
46
- readonly VERCEL_AI_EMBED: "orchestrion:ai:embed";
47
- readonly VERCEL_AI_EMBED_MANY: "orchestrion:ai:embedMany";
48
- readonly VERCEL_AI_EXECUTE_TOOL_CALL: "orchestrion:ai:executeToolCall";
49
- readonly VERCEL_AI_RESOLVE_LANGUAGE_MODEL: "orchestrion:ai:resolveLanguageModel";
50
- readonly GOOGLE_GENAI_GENERATE_CONTENT: "orchestrion:@google/genai:generate-content";
51
- readonly GOOGLE_GENAI_EMBED_CONTENT: "orchestrion:@google/genai:embed-content";
52
- readonly GOOGLE_GENAI_CHAT: "orchestrion:@google/genai:chat";
53
- readonly ANTHROPIC_CHAT: "orchestrion:@anthropic-ai/sdk:chat";
54
- readonly ANTHROPIC_MODELS: "orchestrion:@anthropic-ai/sdk:models";
55
- readonly ANTHROPIC_MESSAGES_STREAM: "orchestrion:@anthropic-ai/sdk:messages-stream";
56
- readonly OPENAI_CHAT: "orchestrion:openai:chat";
57
- readonly OPENAI_RESPONSES: "orchestrion:openai:responses";
58
- readonly OPENAI_EMBEDDINGS: "orchestrion:openai:embeddings";
59
- readonly OPENAI_CONVERSATIONS: "orchestrion:openai:conversations";
60
- readonly POSTGRESJS_HANDLE: "orchestrion:postgres:handle";
61
- readonly POSTGRESJS_CONNECTION: "orchestrion:postgres:connection";
62
- readonly POSTGRESJS_EXECUTE: "orchestrion:postgres:execute";
63
- readonly POSTGRESJS_CONNECT: "orchestrion:postgres:connect";
64
- readonly PG_QUERY: "orchestrion:pg:query";
65
- readonly PG_CONNECT: "orchestrion:pg:connect";
66
- readonly PGPOOL_CONNECT: "orchestrion:pg-pool:connect";
67
- readonly IOREDIS_COMMAND: "orchestrion:ioredis:command";
68
- readonly IOREDIS_CONNECT: "orchestrion:ioredis:connect";
69
- readonly LRU_MEMOIZER_LOAD: "orchestrion:lru-memoizer:load";
70
- readonly MYSQL_QUERY: "orchestrion:mysql:query";
71
98
  };
72
99
  export type ChannelName = (typeof CHANNELS)[keyof typeof CHANNELS];
73
100
  //# sourceMappingURL=channels.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/channels.ts"],"names":[],"mappings":"AAeA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAeX,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/channels.ts"],"names":[],"mappings":"AA8BA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BX,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,46 @@
1
+ export declare const dataloaderConfig: ({
2
+ channelName: string;
3
+ module: {
4
+ readonly name: "dataloader";
5
+ readonly versionRange: ">=2.0.0 <3";
6
+ readonly filePath: "index.js";
7
+ };
8
+ functionQuery: {
9
+ functionName: string;
10
+ kind: "Sync";
11
+ expressionName?: undefined;
12
+ };
13
+ } | {
14
+ channelName: string;
15
+ module: {
16
+ readonly name: "dataloader";
17
+ readonly versionRange: ">=2.0.0 <3";
18
+ readonly filePath: "index.js";
19
+ };
20
+ functionQuery: {
21
+ expressionName: string;
22
+ kind: "Async";
23
+ functionName?: undefined;
24
+ };
25
+ } | {
26
+ channelName: string;
27
+ module: {
28
+ readonly name: "dataloader";
29
+ readonly versionRange: ">=2.0.0 <3";
30
+ readonly filePath: "index.js";
31
+ };
32
+ functionQuery: {
33
+ expressionName: string;
34
+ kind: "Sync";
35
+ functionName?: undefined;
36
+ };
37
+ })[];
38
+ export declare const dataloaderChannels: {
39
+ readonly DATALOADER_CONSTRUCT: "orchestrion:dataloader:construct";
40
+ readonly DATALOADER_LOAD: "orchestrion:dataloader:load";
41
+ readonly DATALOADER_LOAD_MANY: "orchestrion:dataloader:loadMany";
42
+ readonly DATALOADER_PRIME: "orchestrion:dataloader:prime";
43
+ readonly DATALOADER_CLEAR: "orchestrion:dataloader:clear";
44
+ readonly DATALOADER_CLEAR_ALL: "orchestrion:dataloader:clearAll";
45
+ };
46
+ //# sourceMappingURL=dataloader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataloader.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/dataloader.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqCM,CAAC;AAEpC,eAAO,MAAM,kBAAkB;;;;;;;CAOrB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
+ export declare const firebaseConfig: InstrumentationConfig[];
3
+ export declare const firebaseChannels: {};
4
+ //# sourceMappingURL=firebase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"firebase.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/firebase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E,eAAO,MAAM,cAAc,EAAE,qBAAqB,EAAO,CAAC;AAE1D,eAAO,MAAM,gBAAgB,IAAc,CAAC"}
@@ -0,0 +1,31 @@
1
+ export declare const genericPoolConfig: ({
2
+ channelName: string;
3
+ module: {
4
+ name: string;
5
+ versionRange: string;
6
+ filePath: string;
7
+ };
8
+ functionQuery: {
9
+ className: string;
10
+ methodName: string;
11
+ kind: "Auto";
12
+ expressionName?: undefined;
13
+ };
14
+ } | {
15
+ channelName: string;
16
+ module: {
17
+ name: string;
18
+ versionRange: string;
19
+ filePath: string;
20
+ };
21
+ functionQuery: {
22
+ expressionName: string;
23
+ kind: "Callback";
24
+ className?: undefined;
25
+ methodName?: undefined;
26
+ };
27
+ })[];
28
+ export declare const genericPoolChannels: {
29
+ readonly GENERIC_POOL_ACQUIRE: "orchestrion:generic-pool:acquire";
30
+ };
31
+ //# sourceMappingURL=generic-pool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generic-pool.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/generic-pool.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;IAWK,CAAC;AAEpC,eAAO,MAAM,mBAAmB;;CAEtB,CAAC"}
@@ -1,14 +1,25 @@
1
1
  import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
+ /**
3
+ * The orchestrion code-transform configs. Every instrumentable library is here
4
+ * so the transform is all-or-nothing: whenever orchestrion is enabled, all of
5
+ * these are injected. The channel LISTENERS may live elsewhere (e.g. the NestJS
6
+ * one lives in `@sentry/nestjs`), but the config that decides what gets
7
+ * transformed is centralized here.
8
+ */
2
9
  export declare const SENTRY_INSTRUMENTATIONS: InstrumentationConfig[];
3
10
  /**
4
11
  * The unique set of package names instrumented by `SENTRY_INSTRUMENTATIONS`
5
- * (e.g. `['mysql']`).
12
+ * merged with any caller-provided `instrumentations` (e.g. `['mysql']`).
6
13
  *
7
14
  * Bundler plugins MUST ensure these are actually bundled rather than
8
15
  * externalized: an externalized dependency is resolved from `node_modules` at
9
16
  * runtime and never passes through the code transform's `onLoad`, so its
10
- * diagnostics_channel calls are silently never injected.
17
+ * diagnostics_channel calls are silently never injected. This includes a
18
+ * plugin's custom `instrumentations`, otherwise those extra packages can stay
19
+ * externalized and their transform never runs.
11
20
  */
21
+ export declare function instrumentedModuleNames(instrumentations?: InstrumentationConfig[]): string[];
22
+ /** The instrumented module names from the default Sentry config, with no custom additions. */
12
23
  export declare const INSTRUMENTED_MODULE_NAMES: string[];
13
24
  /**
14
25
  * Returns `external` with any instrumented packages removed, so a bundler that
@@ -17,8 +28,10 @@ export declare const INSTRUMENTED_MODULE_NAMES: string[];
17
28
  * (`'mysql/lib/...'`); wildcard/other patterns are left untouched. `undefined`
18
29
  * is returned unchanged.
19
30
  *
20
- * (Vite uses an `ssr.noExternal` allowlist instead, so it consumes
21
- * `INSTRUMENTED_MODULE_NAMES` directly rather than this helper.)
31
+ * Pass `moduleNames` from `instrumentedModuleNames(options.instrumentations)` so
32
+ * custom instrumentations are stripped too; it defaults to the Sentry config
33
+ * list. (Vite uses an `ssr.noExternal` allowlist instead, so it consumes
34
+ * `instrumentedModuleNames` directly rather than this helper.)
22
35
  */
23
- export declare function withoutInstrumentedExternals(external: readonly string[] | undefined): string[] | undefined;
36
+ export declare function withoutInstrumentedExternals(external: readonly string[] | undefined, moduleNames?: string[]): string[] | undefined;
24
37
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAiB7E,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,EAe1D,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,EAA0D,CAAC;AAEzG;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GAAG,MAAM,EAAE,GAAG,SAAS,CAO1G"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAmC7E;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,EA8B1D,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,gBAAgB,GAAE,qBAAqB,EAAO,GAAG,MAAM,EAAE,CAEhG;AAED,8FAA8F;AAC9F,eAAO,MAAM,yBAAyB,EAAE,MAAM,EAA8B,CAAC;AAE7E;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EACvC,WAAW,GAAE,MAAM,EAA8B,GAChD,MAAM,EAAE,GAAG,SAAS,CAKtB"}
@@ -0,0 +1,17 @@
1
+ export declare const kafkajsConfig: {
2
+ channelName: string;
3
+ module: {
4
+ name: string;
5
+ versionRange: string;
6
+ filePath: string;
7
+ };
8
+ functionQuery: {
9
+ expressionName: string;
10
+ kind: "Async";
11
+ };
12
+ }[];
13
+ export declare const kafkajsChannels: {
14
+ readonly KAFKAJS_SEND_BATCH: "orchestrion:kafkajs:send_batch";
15
+ readonly KAFKAJS_CONSUMER_RUN: "orchestrion:kafkajs:consumer_run";
16
+ };
17
+ //# sourceMappingURL=kafkajs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kafkajs.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/kafkajs.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;GAmBS,CAAC;AAEpC,eAAO,MAAM,eAAe;;;CAGlB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
+ export declare const knexConfig: InstrumentationConfig[];
3
+ export declare const knexChannels: {
4
+ readonly KNEX_QUERY: "orchestrion:knex:query";
5
+ readonly KNEX_QUERY_BUILDER: "orchestrion:knex:queryBuilder";
6
+ readonly KNEX_SCHEMA_BUILDER: "orchestrion:knex:schemaBuilder";
7
+ readonly KNEX_RAW: "orchestrion:knex:raw";
8
+ };
9
+ //# sourceMappingURL=knex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"knex.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/knex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAwC7E,eAAO,MAAM,UAAU,EAAE,qBAAqB,EAK7C,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;CAKf,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
+ export declare const langchainConfig: InstrumentationConfig[];
3
+ export declare const langchainChannels: {};
4
+ //# sourceMappingURL=langchain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"langchain.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/langchain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E,eAAO,MAAM,eAAe,EAAE,qBAAqB,EAAO,CAAC;AAE3D,eAAO,MAAM,iBAAiB,IAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
+ export declare const langgraphConfig: InstrumentationConfig[];
3
+ export declare const langgraphChannels: {};
4
+ //# sourceMappingURL=langgraph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"langgraph.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/langgraph.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E,eAAO,MAAM,eAAe,EAAE,qBAAqB,EAAO,CAAC;AAE3D,eAAO,MAAM,iBAAiB,IAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
+ export declare const mongodbConfig: InstrumentationConfig[];
3
+ export declare const mongodbChannels: {};
4
+ //# sourceMappingURL=mongodb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mongodb.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/mongodb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E,eAAO,MAAM,aAAa,EAAE,qBAAqB,EAAO,CAAC;AAEzD,eAAO,MAAM,eAAe,IAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
+ export declare const mongooseConfig: InstrumentationConfig[];
3
+ export declare const mongooseChannels: {};
4
+ //# sourceMappingURL=mongoose.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mongoose.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/mongoose.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E,eAAO,MAAM,cAAc,EAAE,qBAAqB,EAAO,CAAC;AAE1D,eAAO,MAAM,gBAAgB,IAAc,CAAC"}
@@ -0,0 +1,18 @@
1
+ export declare const mysql2Config: {
2
+ channelName: string;
3
+ module: {
4
+ name: string;
5
+ versionRange: string;
6
+ filePath: string;
7
+ };
8
+ functionQuery: {
9
+ className: string;
10
+ methodName: string;
11
+ kind: "Callback";
12
+ };
13
+ }[];
14
+ export declare const mysql2Channels: {
15
+ readonly MYSQL2_QUERY: "orchestrion:mysql2:query";
16
+ readonly MYSQL2_EXECUTE: "orchestrion:mysql2:execute";
17
+ };
18
+ //# sourceMappingURL=mysql2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mysql2.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/mysql2.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,YAAY;;;;;;;;;;;;GAqBU,CAAC;AAEpC,eAAO,MAAM,cAAc;;;CAGjB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
+ /**
3
+ * NestJS is different from the other instrumentations here. It's a standalone
4
+ * metaframework SDK (`@sentry/nestjs`), so its channel LISTENER lives in that
5
+ * package rather than in `server-utils`. Only the code-transform config (and
6
+ * the channel names below) live here, so `@nestjs/*` is transformed whenever
7
+ * orchestrion is enabled, same as every other library.
8
+ *
9
+ * `@sentry/nestjs` imports {@link nestjsChannels} to subscribe, and picks the
10
+ * channel-vs-OTel path based on the global injection flag.
11
+ */
12
+ export declare const nestjsConfig: InstrumentationConfig[];
13
+ export declare const nestjsChannels: {
14
+ readonly NESTJS_APP_CREATION: "orchestrion:@nestjs/core:nestFactoryCreate";
15
+ readonly NESTJS_ROUTER_CONTEXT: "orchestrion:@nestjs/core:routerExecutionContextCreate";
16
+ readonly NESTJS_INJECTABLE: "orchestrion:@nestjs/common:injectableDecorator";
17
+ readonly NESTJS_CATCH: "orchestrion:@nestjs/common:catchDecorator";
18
+ readonly NESTJS_SCHEDULE_CRON: "orchestrion:@nestjs/schedule:cronDecorator";
19
+ readonly NESTJS_SCHEDULE_INTERVAL: "orchestrion:@nestjs/schedule:intervalDecorator";
20
+ readonly NESTJS_SCHEDULE_TIMEOUT: "orchestrion:@nestjs/schedule:timeoutDecorator";
21
+ readonly NESTJS_ONEVENT: "orchestrion:@nestjs/event-emitter:onEventDecorator";
22
+ readonly NESTJS_PROCESSOR: "orchestrion:@nestjs/bullmq:processorDecorator";
23
+ };
24
+ //# sourceMappingURL=nestjs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nestjs.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/nestjs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAmB3F;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,yBAqGU,CAAC;AAEpC,eAAO,MAAM,cAAc;;;;;;;;;;CAUjB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
+ export declare const prismaConfig: InstrumentationConfig[];
3
+ export declare const prismaChannels: {};
4
+ //# sourceMappingURL=prisma.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prisma.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/prisma.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E,eAAO,MAAM,YAAY,EAAE,qBAAqB,EAAO,CAAC;AAExD,eAAO,MAAM,cAAc,IAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
+ export declare const reactRouterConfig: InstrumentationConfig[];
3
+ export declare const reactRouterChannels: {};
4
+ //# sourceMappingURL=react-router.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-router.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/react-router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E,eAAO,MAAM,iBAAiB,EAAE,qBAAqB,EAAO,CAAC;AAE7D,eAAO,MAAM,mBAAmB,IAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
+ export declare const remixConfig: InstrumentationConfig[];
3
+ export declare const remixChannels: {};
4
+ //# sourceMappingURL=remix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remix.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/remix.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E,eAAO,MAAM,WAAW,EAAE,qBAAqB,EAAO,CAAC;AAEvD,eAAO,MAAM,aAAa,IAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
+ export declare const tediousConfig: InstrumentationConfig[];
3
+ export declare const tediousChannels: {};
4
+ //# sourceMappingURL=tedious.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tedious.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/tedious.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E,eAAO,MAAM,aAAa,EAAE,qBAAqB,EAAO,CAAC;AAEzD,eAAO,MAAM,eAAe,IAAc,CAAC"}