@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,30 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const kafkajsConfig = [
4
+ {
5
+ channelName: "send_batch",
6
+ module: { name: "kafkajs", versionRange: ">=2.0.0 <3", filePath: "src/producer/messageProducer.js" },
7
+ // `const sendBatch = async (...) => {...}` — `expressionName` matches the `const` assignment.
8
+ // We instrument ONLY `sendBatch`: `send` funnels into it internally, so `producer.send`,
9
+ // `producer.sendBatch` and their transactional variants all flow through this one channel.
10
+ // Instrumenting `send` too would double-count spans.
11
+ functionQuery: { expressionName: "sendBatch", kind: "Async" }
12
+ },
13
+ {
14
+ channelName: "consumer_run",
15
+ module: { name: "kafkajs", versionRange: ">=2.0.0 <3", filePath: "src/consumer/index.js" },
16
+ // `const run = async (config) => {...}` — matched by `expressionName`. We don't span `run` itself:
17
+ // the `start` subscriber swaps `config.eachMessage`/`eachBatch` (on `ctx.arguments[0]`) for
18
+ // span-creating wrappers before the original runs. This works because the transform re-reads
19
+ // `ctx.arguments` when invoking the original.
20
+ functionQuery: { expressionName: "run", kind: "Async" }
21
+ }
22
+ ];
23
+ const kafkajsChannels = {
24
+ KAFKAJS_SEND_BATCH: "orchestrion:kafkajs:send_batch",
25
+ KAFKAJS_CONSUMER_RUN: "orchestrion:kafkajs:consumer_run"
26
+ };
27
+
28
+ exports.kafkajsChannels = kafkajsChannels;
29
+ exports.kafkajsConfig = kafkajsConfig;
30
+ //# sourceMappingURL=kafkajs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kafkajs.js","sources":["../../../../src/orchestrion/config/kafkajs.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\nexport const kafkajsConfig = [\n {\n channelName: 'send_batch',\n module: { name: 'kafkajs', versionRange: '>=2.0.0 <3', filePath: 'src/producer/messageProducer.js' },\n // `const sendBatch = async (...) => {...}` — `expressionName` matches the `const` assignment.\n // We instrument ONLY `sendBatch`: `send` funnels into it internally, so `producer.send`,\n // `producer.sendBatch` and their transactional variants all flow through this one channel.\n // Instrumenting `send` too would double-count spans.\n functionQuery: { expressionName: 'sendBatch', kind: 'Async' },\n },\n {\n channelName: 'consumer_run',\n module: { name: 'kafkajs', versionRange: '>=2.0.0 <3', filePath: 'src/consumer/index.js' },\n // `const run = async (config) => {...}` — matched by `expressionName`. We don't span `run` itself:\n // the `start` subscriber swaps `config.eachMessage`/`eachBatch` (on `ctx.arguments[0]`) for\n // span-creating wrappers before the original runs. This works because the transform re-reads\n // `ctx.arguments` when invoking the original.\n functionQuery: { expressionName: 'run', kind: 'Async' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const kafkajsChannels = {\n KAFKAJS_SEND_BATCH: 'orchestrion:kafkajs:send_batch',\n KAFKAJS_CONSUMER_RUN: 'orchestrion:kafkajs:consumer_run',\n} as const;\n"],"names":[],"mappings":";;AAEO,MAAM,aAAA,GAAgB;AAAA,EAC3B;AAAA,IACE,WAAA,EAAa,YAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,WAAW,YAAA,EAAc,YAAA,EAAc,UAAU,iCAAA,EAAkC;AAAA;AAAA;AAAA;AAAA;AAAA,IAKnG,aAAA,EAAe,EAAE,cAAA,EAAgB,WAAA,EAAa,MAAM,OAAA;AAAQ,GAC9D;AAAA,EACA;AAAA,IACE,WAAA,EAAa,cAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,WAAW,YAAA,EAAc,YAAA,EAAc,UAAU,uBAAA,EAAwB;AAAA;AAAA;AAAA;AAAA;AAAA,IAKzF,aAAA,EAAe,EAAE,cAAA,EAAgB,KAAA,EAAO,MAAM,OAAA;AAAQ;AAE1D;AAEO,MAAM,eAAA,GAAkB;AAAA,EAC7B,kBAAA,EAAoB,gCAAA;AAAA,EACpB,oBAAA,EAAsB;AACxB;;;;;"}
@@ -0,0 +1,43 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const MODULE_NAME = "knex";
4
+ const RUNNER_FILES = [
5
+ { filePath: "lib/execution/runner.js", versionRange: ">=0.22.0 <4" },
6
+ { filePath: "lib/runner.js", versionRange: ">=0.10.0 <0.22.0" },
7
+ { filePath: "src/runner.js", versionRange: ">=0.18.0 <0.19.0" }
8
+ ];
9
+ const CLIENT_FILES = [
10
+ { filePath: "lib/client.js", versionRange: ">=0.10.0 <4" },
11
+ { filePath: "src/client.js", versionRange: ">=0.18.0 <0.19.0" }
12
+ ];
13
+ const CLIENT_METHODS = ["queryBuilder", "schemaBuilder", "raw"];
14
+ function runnerQuery(filePath, versionRange) {
15
+ return {
16
+ channelName: "query",
17
+ module: { name: MODULE_NAME, versionRange, filePath },
18
+ functionQuery: { className: "Runner", methodName: "query", kind: "Async" }
19
+ };
20
+ }
21
+ function clientMethod(methodName, filePath, versionRange) {
22
+ return {
23
+ channelName: methodName,
24
+ module: { name: MODULE_NAME, versionRange, filePath },
25
+ functionQuery: { className: "Client", methodName, kind: "Sync" }
26
+ };
27
+ }
28
+ const knexConfig = [
29
+ ...RUNNER_FILES.map(({ filePath, versionRange }) => runnerQuery(filePath, versionRange)),
30
+ ...CLIENT_FILES.flatMap(
31
+ ({ filePath, versionRange }) => CLIENT_METHODS.map((methodName) => clientMethod(methodName, filePath, versionRange))
32
+ )
33
+ ];
34
+ const knexChannels = {
35
+ KNEX_QUERY: "orchestrion:knex:query",
36
+ KNEX_QUERY_BUILDER: "orchestrion:knex:queryBuilder",
37
+ KNEX_SCHEMA_BUILDER: "orchestrion:knex:schemaBuilder",
38
+ KNEX_RAW: "orchestrion:knex:raw"
39
+ };
40
+
41
+ exports.knexChannels = knexChannels;
42
+ exports.knexConfig = knexConfig;
43
+ //# sourceMappingURL=knex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"knex.js","sources":["../../../../src/orchestrion/config/knex.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\nconst MODULE_NAME = 'knex';\n\n// knex ships different file layouts across versions (see `SUPPORTED_VERSIONS` in the vendored OTel\n// instrumentation). Modern builds keep the runner under `lib/execution`, older ones under `lib`, and\n// the source-tree build under `src`. A file that doesn't exist for a given version simply never\n// matches, so overlapping ranges are safe.\nconst RUNNER_FILES = [\n { filePath: 'lib/execution/runner.js', versionRange: '>=0.22.0 <4' },\n { filePath: 'lib/runner.js', versionRange: '>=0.10.0 <0.22.0' },\n { filePath: 'src/runner.js', versionRange: '>=0.18.0 <0.19.0' },\n];\n\nconst CLIENT_FILES = [\n { filePath: 'lib/client.js', versionRange: '>=0.10.0 <4' },\n { filePath: 'src/client.js', versionRange: '>=0.18.0 <0.19.0' },\n];\n\n// The three `Client` methods that create a builder. Wrapping them lets the subscriber capture the\n// span active at builder-creation time, which is reused as the parent when the query runs later\n// (often in a different async context).\nconst CLIENT_METHODS = ['queryBuilder', 'schemaBuilder', 'raw'] as const;\n\nfunction runnerQuery(filePath: string, versionRange: string): InstrumentationConfig {\n return {\n channelName: 'query',\n module: { name: MODULE_NAME, versionRange, filePath },\n functionQuery: { className: 'Runner', methodName: 'query', kind: 'Async' },\n };\n}\n\nfunction clientMethod(methodName: string, filePath: string, versionRange: string): InstrumentationConfig {\n return {\n channelName: methodName,\n module: { name: MODULE_NAME, versionRange, filePath },\n functionQuery: { className: 'Client', methodName, kind: 'Sync' },\n };\n}\n\nexport const knexConfig: InstrumentationConfig[] = [\n ...RUNNER_FILES.map(({ filePath, versionRange }) => runnerQuery(filePath, versionRange)),\n ...CLIENT_FILES.flatMap(({ filePath, versionRange }) =>\n CLIENT_METHODS.map(methodName => clientMethod(methodName, filePath, versionRange)),\n ),\n];\n\nexport const knexChannels = {\n KNEX_QUERY: 'orchestrion:knex:query',\n KNEX_QUERY_BUILDER: 'orchestrion:knex:queryBuilder',\n KNEX_SCHEMA_BUILDER: 'orchestrion:knex:schemaBuilder',\n KNEX_RAW: 'orchestrion:knex:raw',\n} as const;\n"],"names":[],"mappings":";;AAEA,MAAM,WAAA,GAAc,MAAA;AAMpB,MAAM,YAAA,GAAe;AAAA,EACnB,EAAE,QAAA,EAAU,yBAAA,EAA2B,YAAA,EAAc,aAAA,EAAc;AAAA,EACnE,EAAE,QAAA,EAAU,eAAA,EAAiB,YAAA,EAAc,kBAAA,EAAmB;AAAA,EAC9D,EAAE,QAAA,EAAU,eAAA,EAAiB,YAAA,EAAc,kBAAA;AAC7C,CAAA;AAEA,MAAM,YAAA,GAAe;AAAA,EACnB,EAAE,QAAA,EAAU,eAAA,EAAiB,YAAA,EAAc,aAAA,EAAc;AAAA,EACzD,EAAE,QAAA,EAAU,eAAA,EAAiB,YAAA,EAAc,kBAAA;AAC7C,CAAA;AAKA,MAAM,cAAA,GAAiB,CAAC,cAAA,EAAgB,eAAA,EAAiB,KAAK,CAAA;AAE9D,SAAS,WAAA,CAAY,UAAkB,YAAA,EAA6C;AAClF,EAAA,OAAO;AAAA,IACL,WAAA,EAAa,OAAA;AAAA,IACb,MAAA,EAAQ,EAAE,IAAA,EAAM,WAAA,EAAa,cAAc,QAAA,EAAS;AAAA,IACpD,eAAe,EAAE,SAAA,EAAW,UAAU,UAAA,EAAY,OAAA,EAAS,MAAM,OAAA;AAAQ,GAC3E;AACF;AAEA,SAAS,YAAA,CAAa,UAAA,EAAoB,QAAA,EAAkB,YAAA,EAA6C;AACvG,EAAA,OAAO;AAAA,IACL,WAAA,EAAa,UAAA;AAAA,IACb,MAAA,EAAQ,EAAE,IAAA,EAAM,WAAA,EAAa,cAAc,QAAA,EAAS;AAAA,IACpD,eAAe,EAAE,SAAA,EAAW,QAAA,EAAU,UAAA,EAAY,MAAM,MAAA;AAAO,GACjE;AACF;AAEO,MAAM,UAAA,GAAsC;AAAA,EACjD,GAAG,YAAA,CAAa,GAAA,CAAI,CAAC,EAAE,QAAA,EAAU,YAAA,EAAa,KAAM,WAAA,CAAY,QAAA,EAAU,YAAY,CAAC,CAAA;AAAA,EACvF,GAAG,YAAA,CAAa,OAAA;AAAA,IAAQ,CAAC,EAAE,QAAA,EAAU,YAAA,EAAa,KAChD,cAAA,CAAe,GAAA,CAAI,CAAA,UAAA,KAAc,YAAA,CAAa,UAAA,EAAY,QAAA,EAAU,YAAY,CAAC;AAAA;AAErF;AAEO,MAAM,YAAA,GAAe;AAAA,EAC1B,UAAA,EAAY,wBAAA;AAAA,EACZ,kBAAA,EAAoB,+BAAA;AAAA,EACpB,mBAAA,EAAqB,gCAAA;AAAA,EACrB,QAAA,EAAU;AACZ;;;;;"}
@@ -0,0 +1,8 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const langchainConfig = [];
4
+ const langchainChannels = {};
5
+
6
+ exports.langchainChannels = langchainChannels;
7
+ exports.langchainConfig = langchainConfig;
8
+ //# sourceMappingURL=langchain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"langchain.js","sources":["../../../../src/orchestrion/config/langchain.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\n// TODO: Stub for the `langchain` orchestrion integration (ports `SentryLangChainInstrumentation`).\nexport const langchainConfig: InstrumentationConfig[] = [];\n\nexport const langchainChannels = {} as const;\n"],"names":[],"mappings":";;AAGO,MAAM,kBAA2C;AAEjD,MAAM,oBAAoB;;;;;"}
@@ -0,0 +1,8 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const langgraphConfig = [];
4
+ const langgraphChannels = {};
5
+
6
+ exports.langgraphChannels = langgraphChannels;
7
+ exports.langgraphConfig = langgraphConfig;
8
+ //# sourceMappingURL=langgraph.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"langgraph.js","sources":["../../../../src/orchestrion/config/langgraph.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\n// TODO: Stub for the `langgraph` orchestrion integration (ports `SentryLangGraphInstrumentation`).\nexport const langgraphConfig: InstrumentationConfig[] = [];\n\nexport const langgraphChannels = {} as const;\n"],"names":[],"mappings":";;AAGO,MAAM,kBAA2C;AAEjD,MAAM,oBAAoB;;;;;"}
@@ -0,0 +1,8 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const mongodbConfig = [];
4
+ const mongodbChannels = {};
5
+
6
+ exports.mongodbChannels = mongodbChannels;
7
+ exports.mongodbConfig = mongodbConfig;
8
+ //# sourceMappingURL=mongodb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mongodb.js","sources":["../../../../src/orchestrion/config/mongodb.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\n// TODO: Stub for the `mongodb` orchestrion integration (ports `@opentelemetry/instrumentation-mongodb`).\nexport const mongodbConfig: InstrumentationConfig[] = [];\n\nexport const mongodbChannels = {} as const;\n"],"names":[],"mappings":";;AAGO,MAAM,gBAAyC;AAE/C,MAAM,kBAAkB;;;;;"}
@@ -0,0 +1,8 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const mongooseConfig = [];
4
+ const mongooseChannels = {};
5
+
6
+ exports.mongooseChannels = mongooseChannels;
7
+ exports.mongooseConfig = mongooseConfig;
8
+ //# sourceMappingURL=mongoose.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mongoose.js","sources":["../../../../src/orchestrion/config/mongoose.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\n// TODO: Stub for the `mongoose` orchestrion integration (ports `@opentelemetry/instrumentation-mongoose`).\nexport const mongooseConfig: InstrumentationConfig[] = [];\n\nexport const mongooseChannels = {} as const;\n"],"names":[],"mappings":";;AAGO,MAAM,iBAA0C;AAEhD,MAAM,mBAAmB;;;;;"}
@@ -0,0 +1,32 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const mysql2Config = [
4
+ {
5
+ channelName: "query",
6
+ module: { name: "mysql2", versionRange: ">=1.4.2 <3.11.5", filePath: "lib/connection.js" },
7
+ functionQuery: { className: "Connection", methodName: "query", kind: "Callback" }
8
+ },
9
+ {
10
+ channelName: "execute",
11
+ module: { name: "mysql2", versionRange: ">=1.4.2 <3.11.5", filePath: "lib/connection.js" },
12
+ functionQuery: { className: "Connection", methodName: "execute", kind: "Callback" }
13
+ },
14
+ {
15
+ channelName: "query",
16
+ module: { name: "mysql2", versionRange: ">=3.11.5 <3.20.0", filePath: "lib/base/connection.js" },
17
+ functionQuery: { className: "BaseConnection", methodName: "query", kind: "Callback" }
18
+ },
19
+ {
20
+ channelName: "execute",
21
+ module: { name: "mysql2", versionRange: ">=3.11.5 <3.20.0", filePath: "lib/base/connection.js" },
22
+ functionQuery: { className: "BaseConnection", methodName: "execute", kind: "Callback" }
23
+ }
24
+ ];
25
+ const mysql2Channels = {
26
+ MYSQL2_QUERY: "orchestrion:mysql2:query",
27
+ MYSQL2_EXECUTE: "orchestrion:mysql2:execute"
28
+ };
29
+
30
+ exports.mysql2Channels = mysql2Channels;
31
+ exports.mysql2Config = mysql2Config;
32
+ //# sourceMappingURL=mysql2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mysql2.js","sources":["../../../../src/orchestrion/config/mysql2.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\n// Ports `@opentelemetry/instrumentation-mysql2` (which patches `query`/`execute` on the connection\n// prototype) to orchestrion channel injection.\n//\n// Two file layouts across the supported range:\n// - `< 3.11.5` → `class Connection` with `query`/`execute` in `lib/connection.js`\n// - `>= 3.11.5` → the methods moved to `class BaseConnection` in `lib/base/connection.js`\n//\n// Gated to `< 3.20.0`: from 3.20.0 mysql2 publishes to `node:diagnostics_channel` natively, and\n// that path is instrumented by `subscribeMysql2DiagnosticChannels` instead. Injecting there too\n// would emit two spans per query.\n//\n// `Callback` traces the callback shapes: `query(sql, cb)`, `query(sql, values, cb)`, and — since the\n// promise API funnels through the callback form — `await connection.query(sql)`. `execute` never\n// delegates to `query` internally, so instrumenting both is safe.\n//\n// NOT `Auto`: `Auto`'s no-callback branch probes the return value for `.then`, but mysql2's callback-\n// less `query(sql)` returns a `Query` whose `.then()` throws (mysql2's \"use the promise wrapper\"\n// guard) — so `Auto` would crash streamed queries. `Callback` leaves that shape untouched (a rare,\n// row-streaming use that consumes the emitter's events), the tradeoff being it isn't traced.\nexport const mysql2Config = [\n {\n channelName: 'query',\n module: { name: 'mysql2', versionRange: '>=1.4.2 <3.11.5', filePath: 'lib/connection.js' },\n functionQuery: { className: 'Connection', methodName: 'query', kind: 'Callback' },\n },\n {\n channelName: 'execute',\n module: { name: 'mysql2', versionRange: '>=1.4.2 <3.11.5', filePath: 'lib/connection.js' },\n functionQuery: { className: 'Connection', methodName: 'execute', kind: 'Callback' },\n },\n {\n channelName: 'query',\n module: { name: 'mysql2', versionRange: '>=3.11.5 <3.20.0', filePath: 'lib/base/connection.js' },\n functionQuery: { className: 'BaseConnection', methodName: 'query', kind: 'Callback' },\n },\n {\n channelName: 'execute',\n module: { name: 'mysql2', versionRange: '>=3.11.5 <3.20.0', filePath: 'lib/base/connection.js' },\n functionQuery: { className: 'BaseConnection', methodName: 'execute', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const mysql2Channels = {\n MYSQL2_QUERY: 'orchestrion:mysql2:query',\n MYSQL2_EXECUTE: 'orchestrion:mysql2:execute',\n} as const;\n"],"names":[],"mappings":";;AAqBO,MAAM,YAAA,GAAe;AAAA,EAC1B;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,iBAAA,EAAmB,UAAU,mBAAA,EAAoB;AAAA,IACzF,eAAe,EAAE,SAAA,EAAW,cAAc,UAAA,EAAY,OAAA,EAAS,MAAM,UAAA;AAAW,GAClF;AAAA,EACA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,iBAAA,EAAmB,UAAU,mBAAA,EAAoB;AAAA,IACzF,eAAe,EAAE,SAAA,EAAW,cAAc,UAAA,EAAY,SAAA,EAAW,MAAM,UAAA;AAAW,GACpF;AAAA,EACA;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,kBAAA,EAAoB,UAAU,wBAAA,EAAyB;AAAA,IAC/F,eAAe,EAAE,SAAA,EAAW,kBAAkB,UAAA,EAAY,OAAA,EAAS,MAAM,UAAA;AAAW,GACtF;AAAA,EACA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,kBAAA,EAAoB,UAAU,wBAAA,EAAyB;AAAA,IAC/F,eAAe,EAAE,SAAA,EAAW,kBAAkB,UAAA,EAAY,SAAA,EAAW,MAAM,UAAA;AAAW;AAE1F;AAEO,MAAM,cAAA,GAAiB;AAAA,EAC5B,YAAA,EAAc,0BAAA;AAAA,EACd,cAAA,EAAgB;AAClB;;;;;"}
@@ -0,0 +1,122 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ function astQueryInstrumentation(config) {
4
+ return config;
5
+ }
6
+ const nestjsConfig = [
7
+ {
8
+ channelName: "nestFactoryCreate",
9
+ module: { name: "@nestjs/core", versionRange: ">=8.0.0 <12", filePath: "nest-factory.js" },
10
+ functionQuery: { className: "NestFactoryStatic", methodName: "create", kind: "Async" }
11
+ },
12
+ {
13
+ channelName: "routerExecutionContextCreate",
14
+ module: { name: "@nestjs/core", versionRange: ">=8.0.0 <12", filePath: "router/router-execution-context.js" },
15
+ functionQuery: { className: "RouterExecutionContext", methodName: "create", kind: "Sync" }
16
+ },
17
+ astQueryInstrumentation({
18
+ // `@nestjs/common/decorators/core/injectable.decorator.js`:
19
+ // `function Injectable(options) { return (target) => { ... }; }`
20
+ // The inner decorator arrow is anonymous + returned, so only a raw
21
+ // `astQuery` can target it. The subscriber's `start` receives the
22
+ // decorated class as `arguments[0]` and patches its prototype
23
+ // use/canActivate/transform/intercept methods, reproducing the
24
+ // vendored `SentryNestInstrumentation` middleware/guard/pipe/interceptor
25
+ // spans. No span on the decorator itself, so `kind: 'Sync'`.
26
+ channelName: "injectableDecorator",
27
+ module: {
28
+ name: "@nestjs/common",
29
+ versionRange: ">=8.0.0 <12",
30
+ filePath: "decorators/core/injectable.decorator.js"
31
+ },
32
+ astQuery: 'FunctionDeclaration[id.name="Injectable"] ReturnStatement > ArrowFunctionExpression',
33
+ functionQuery: { kind: "Sync" }
34
+ }),
35
+ astQueryInstrumentation({
36
+ // `@nestjs/common/decorators/core/catch.decorator.js`:
37
+ // `function Catch(...exceptions) { return (target) => { ... }; }`
38
+ // Same anonymous-returned-arrow shape as `Injectable`. The subscriber's
39
+ // `start` patches the exception filter's prototype `catch` method to
40
+ // open an `exception_filter` span.
41
+ //
42
+ // Mirrors the vendored `SentryNestInstrumentation` `@Catch` wrap.
43
+ channelName: "catchDecorator",
44
+ module: { name: "@nestjs/common", versionRange: ">=8.0.0 <12", filePath: "decorators/core/catch.decorator.js" },
45
+ astQuery: 'FunctionDeclaration[id.name="Catch"] ReturnStatement > ArrowFunctionExpression',
46
+ functionQuery: { kind: "Sync" }
47
+ }),
48
+ // @nestjs/schedule @Cron/@Interval/@Timeout:
49
+ // `function Cron(...) { return applyDecorators(...); }`
50
+ // The returned decorator has no inline arrow to target, so we match the
51
+ // factory function and reassign `data.result` in `end` to wrap the
52
+ // decorator it returns (which rewrites the user handler `descriptor.value`
53
+ // with isolation-scope + error capture).
54
+ // Mirrors `SentryNestScheduleInstrumentation`, whose supported range we
55
+ // match so opting in doesn't drop coverage the OTel path had. The compiled
56
+ // `function Cron(...)` declaration is unchanged across 2.x–5.x.
57
+ {
58
+ channelName: "cronDecorator",
59
+ module: { name: "@nestjs/schedule", versionRange: ">=2.0.0", filePath: "dist/decorators/cron.decorator.js" },
60
+ functionQuery: { functionName: "Cron", kind: "Sync" }
61
+ },
62
+ {
63
+ channelName: "intervalDecorator",
64
+ module: { name: "@nestjs/schedule", versionRange: ">=2.0.0", filePath: "dist/decorators/interval.decorator.js" },
65
+ functionQuery: { functionName: "Interval", kind: "Sync" }
66
+ },
67
+ {
68
+ channelName: "timeoutDecorator",
69
+ module: { name: "@nestjs/schedule", versionRange: ">=2.0.0", filePath: "dist/decorators/timeout.decorator.js" },
70
+ functionQuery: { functionName: "Timeout", kind: "Sync" }
71
+ },
72
+ {
73
+ // @nestjs/event-emitter @OnEvent:
74
+ // `const OnEvent = (event, options) => {
75
+ // const decoratorFactory = (t, k, d) => {...}; return decoratorFactory;
76
+ // }`
77
+ // `OnEvent` is an arrow assigned to a const, so `expressionName`. `end`
78
+ // reassigns `data.result` to wrap the returned decorator, which rewrites
79
+ // the handler to open an `event.nestjs` span.
80
+ // Mirrors `SentryNestEventInstrumentation`; the `const OnEvent = (...) =>`
81
+ // shape is unchanged across 2.x–3.x.
82
+ channelName: "onEventDecorator",
83
+ module: {
84
+ name: "@nestjs/event-emitter",
85
+ versionRange: ">=2.0.0",
86
+ filePath: "dist/decorators/on-event.decorator.js"
87
+ },
88
+ functionQuery: { expressionName: "OnEvent", kind: "Sync" }
89
+ },
90
+ {
91
+ // @nestjs/bullmq @Processor:
92
+ // `function Processor(...) { return (target) => {...}; }`
93
+ // The factory arg carries the queue name, so we match the factory and
94
+ // reassign `data.result` in `end` to wrap the returned class decorator
95
+ // (which patches `target.prototype.process`).
96
+ // Mirrors `SentryNestBullMQInstrumentation`; the `function Processor(...)`
97
+ // declaration is unchanged across
98
+ // 10.x–11.x.
99
+ channelName: "processorDecorator",
100
+ module: {
101
+ name: "@nestjs/bullmq",
102
+ versionRange: ">=10.0.0",
103
+ filePath: "dist/decorators/processor.decorator.js"
104
+ },
105
+ functionQuery: { functionName: "Processor", kind: "Sync" }
106
+ }
107
+ ];
108
+ const nestjsChannels = {
109
+ NESTJS_APP_CREATION: "orchestrion:@nestjs/core:nestFactoryCreate",
110
+ NESTJS_ROUTER_CONTEXT: "orchestrion:@nestjs/core:routerExecutionContextCreate",
111
+ NESTJS_INJECTABLE: "orchestrion:@nestjs/common:injectableDecorator",
112
+ NESTJS_CATCH: "orchestrion:@nestjs/common:catchDecorator",
113
+ NESTJS_SCHEDULE_CRON: "orchestrion:@nestjs/schedule:cronDecorator",
114
+ NESTJS_SCHEDULE_INTERVAL: "orchestrion:@nestjs/schedule:intervalDecorator",
115
+ NESTJS_SCHEDULE_TIMEOUT: "orchestrion:@nestjs/schedule:timeoutDecorator",
116
+ NESTJS_ONEVENT: "orchestrion:@nestjs/event-emitter:onEventDecorator",
117
+ NESTJS_PROCESSOR: "orchestrion:@nestjs/bullmq:processorDecorator"
118
+ };
119
+
120
+ exports.nestjsChannels = nestjsChannels;
121
+ exports.nestjsConfig = nestjsConfig;
122
+ //# sourceMappingURL=nestjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nestjs.js","sources":["../../../../src/orchestrion/config/nestjs.ts"],"sourcesContent":["import type { FunctionKind, InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\n/**\n * Wrap an instrumentation that targets nodes via a raw esquery selector\n * (`NstQuery`) rather than the structured `functionQuery`. Needed when the\n * target can't be named, e.g. the anonymous arrow a decorator factory returns\n * The transformer supports `astQuery` at runtime (it takes precedence over\n * `functionQuery`, which then only supplies `kind`), but it isn't in the\n * published `InstrumentationConfig` type. Hence the cast.\n */\nfunction astQueryInstrumentation(config: {\n channelName: string;\n module: InstrumentationConfig['module'];\n astQuery: string;\n functionQuery: { kind: FunctionKind };\n}): InstrumentationConfig {\n return config as unknown as InstrumentationConfig;\n}\n\n/**\n * NestJS is different from the other instrumentations here. It's a standalone\n * metaframework SDK (`@sentry/nestjs`), so its channel LISTENER lives in that\n * package rather than in `server-utils`. Only the code-transform config (and\n * the channel names below) live here, so `@nestjs/*` is transformed whenever\n * orchestrion is enabled, same as every other library.\n *\n * `@sentry/nestjs` imports {@link nestjsChannels} to subscribe, and picks the\n * channel-vs-OTel path based on the global injection flag.\n */\nexport const nestjsConfig = [\n {\n channelName: 'nestFactoryCreate',\n module: { name: '@nestjs/core', versionRange: '>=8.0.0 <12', filePath: 'nest-factory.js' },\n functionQuery: { className: 'NestFactoryStatic', methodName: 'create', kind: 'Async' },\n },\n {\n channelName: 'routerExecutionContextCreate',\n module: { name: '@nestjs/core', versionRange: '>=8.0.0 <12', filePath: 'router/router-execution-context.js' },\n functionQuery: { className: 'RouterExecutionContext', methodName: 'create', kind: 'Sync' },\n },\n astQueryInstrumentation({\n // `@nestjs/common/decorators/core/injectable.decorator.js`:\n // `function Injectable(options) { return (target) => { ... }; }`\n // The inner decorator arrow is anonymous + returned, so only a raw\n // `astQuery` can target it. The subscriber's `start` receives the\n // decorated class as `arguments[0]` and patches its prototype\n // use/canActivate/transform/intercept methods, reproducing the\n // vendored `SentryNestInstrumentation` middleware/guard/pipe/interceptor\n // spans. No span on the decorator itself, so `kind: 'Sync'`.\n channelName: 'injectableDecorator',\n module: {\n name: '@nestjs/common',\n versionRange: '>=8.0.0 <12',\n filePath: 'decorators/core/injectable.decorator.js',\n },\n astQuery: 'FunctionDeclaration[id.name=\"Injectable\"] ReturnStatement > ArrowFunctionExpression',\n functionQuery: { kind: 'Sync' },\n }),\n astQueryInstrumentation({\n // `@nestjs/common/decorators/core/catch.decorator.js`:\n // `function Catch(...exceptions) { return (target) => { ... }; }`\n // Same anonymous-returned-arrow shape as `Injectable`. The subscriber's\n // `start` patches the exception filter's prototype `catch` method to\n // open an `exception_filter` span.\n //\n // Mirrors the vendored `SentryNestInstrumentation` `@Catch` wrap.\n channelName: 'catchDecorator',\n module: { name: '@nestjs/common', versionRange: '>=8.0.0 <12', filePath: 'decorators/core/catch.decorator.js' },\n astQuery: 'FunctionDeclaration[id.name=\"Catch\"] ReturnStatement > ArrowFunctionExpression',\n functionQuery: { kind: 'Sync' },\n }),\n // @nestjs/schedule @Cron/@Interval/@Timeout:\n // `function Cron(...) { return applyDecorators(...); }`\n // The returned decorator has no inline arrow to target, so we match the\n // factory function and reassign `data.result` in `end` to wrap the\n // decorator it returns (which rewrites the user handler `descriptor.value`\n // with isolation-scope + error capture).\n // Mirrors `SentryNestScheduleInstrumentation`, whose supported range we\n // match so opting in doesn't drop coverage the OTel path had. The compiled\n // `function Cron(...)` declaration is unchanged across 2.x–5.x.\n {\n channelName: 'cronDecorator',\n module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/cron.decorator.js' },\n functionQuery: { functionName: 'Cron', kind: 'Sync' },\n },\n {\n channelName: 'intervalDecorator',\n module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/interval.decorator.js' },\n functionQuery: { functionName: 'Interval', kind: 'Sync' },\n },\n {\n channelName: 'timeoutDecorator',\n module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/timeout.decorator.js' },\n functionQuery: { functionName: 'Timeout', kind: 'Sync' },\n },\n {\n // @nestjs/event-emitter @OnEvent:\n // `const OnEvent = (event, options) => {\n // const decoratorFactory = (t, k, d) => {...}; return decoratorFactory;\n // }`\n // `OnEvent` is an arrow assigned to a const, so `expressionName`. `end`\n // reassigns `data.result` to wrap the returned decorator, which rewrites\n // the handler to open an `event.nestjs` span.\n // Mirrors `SentryNestEventInstrumentation`; the `const OnEvent = (...) =>`\n // shape is unchanged across 2.x–3.x.\n channelName: 'onEventDecorator',\n module: {\n name: '@nestjs/event-emitter',\n versionRange: '>=2.0.0',\n filePath: 'dist/decorators/on-event.decorator.js',\n },\n functionQuery: { expressionName: 'OnEvent', kind: 'Sync' },\n },\n {\n // @nestjs/bullmq @Processor:\n // `function Processor(...) { return (target) => {...}; }`\n // The factory arg carries the queue name, so we match the factory and\n // reassign `data.result` in `end` to wrap the returned class decorator\n // (which patches `target.prototype.process`).\n // Mirrors `SentryNestBullMQInstrumentation`; the `function Processor(...)`\n // declaration is unchanged across\n // 10.x–11.x.\n channelName: 'processorDecorator',\n module: {\n name: '@nestjs/bullmq',\n versionRange: '>=10.0.0',\n filePath: 'dist/decorators/processor.decorator.js',\n },\n functionQuery: { functionName: 'Processor', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const nestjsChannels = {\n NESTJS_APP_CREATION: 'orchestrion:@nestjs/core:nestFactoryCreate',\n NESTJS_ROUTER_CONTEXT: 'orchestrion:@nestjs/core:routerExecutionContextCreate',\n NESTJS_INJECTABLE: 'orchestrion:@nestjs/common:injectableDecorator',\n NESTJS_CATCH: 'orchestrion:@nestjs/common:catchDecorator',\n NESTJS_SCHEDULE_CRON: 'orchestrion:@nestjs/schedule:cronDecorator',\n NESTJS_SCHEDULE_INTERVAL: 'orchestrion:@nestjs/schedule:intervalDecorator',\n NESTJS_SCHEDULE_TIMEOUT: 'orchestrion:@nestjs/schedule:timeoutDecorator',\n NESTJS_ONEVENT: 'orchestrion:@nestjs/event-emitter:onEventDecorator',\n NESTJS_PROCESSOR: 'orchestrion:@nestjs/bullmq:processorDecorator',\n} as const;\n"],"names":[],"mappings":";;AAUA,SAAS,wBAAwB,MAAA,EAKP;AACxB,EAAA,OAAO,MAAA;AACT;AAYO,MAAM,YAAA,GAAe;AAAA,EAC1B;AAAA,IACE,WAAA,EAAa,mBAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,gBAAgB,YAAA,EAAc,aAAA,EAAe,UAAU,iBAAA,EAAkB;AAAA,IACzF,eAAe,EAAE,SAAA,EAAW,qBAAqB,UAAA,EAAY,QAAA,EAAU,MAAM,OAAA;AAAQ,GACvF;AAAA,EACA;AAAA,IACE,WAAA,EAAa,8BAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,gBAAgB,YAAA,EAAc,aAAA,EAAe,UAAU,oCAAA,EAAqC;AAAA,IAC5G,eAAe,EAAE,SAAA,EAAW,0BAA0B,UAAA,EAAY,QAAA,EAAU,MAAM,MAAA;AAAO,GAC3F;AAAA,EACA,uBAAA,CAAwB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAStB,WAAA,EAAa,qBAAA;AAAA,IACb,MAAA,EAAQ;AAAA,MACN,IAAA,EAAM,gBAAA;AAAA,MACN,YAAA,EAAc,aAAA;AAAA,MACd,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,QAAA,EAAU,qFAAA;AAAA,IACV,aAAA,EAAe,EAAE,IAAA,EAAM,MAAA;AAAO,GAC/B,CAAA;AAAA,EACD,uBAAA,CAAwB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQtB,WAAA,EAAa,gBAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,kBAAkB,YAAA,EAAc,aAAA,EAAe,UAAU,oCAAA,EAAqC;AAAA,IAC9G,QAAA,EAAU,gFAAA;AAAA,IACV,aAAA,EAAe,EAAE,IAAA,EAAM,MAAA;AAAO,GAC/B,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUD;AAAA,IACE,WAAA,EAAa,eAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,oBAAoB,YAAA,EAAc,SAAA,EAAW,UAAU,mCAAA,EAAoC;AAAA,IAC3G,aAAA,EAAe,EAAE,YAAA,EAAc,MAAA,EAAQ,MAAM,MAAA;AAAO,GACtD;AAAA,EACA;AAAA,IACE,WAAA,EAAa,mBAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,oBAAoB,YAAA,EAAc,SAAA,EAAW,UAAU,uCAAA,EAAwC;AAAA,IAC/G,aAAA,EAAe,EAAE,YAAA,EAAc,UAAA,EAAY,MAAM,MAAA;AAAO,GAC1D;AAAA,EACA;AAAA,IACE,WAAA,EAAa,kBAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,oBAAoB,YAAA,EAAc,SAAA,EAAW,UAAU,sCAAA,EAAuC;AAAA,IAC9G,aAAA,EAAe,EAAE,YAAA,EAAc,SAAA,EAAW,MAAM,MAAA;AAAO,GACzD;AAAA,EACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAUE,WAAA,EAAa,kBAAA;AAAA,IACb,MAAA,EAAQ;AAAA,MACN,IAAA,EAAM,uBAAA;AAAA,MACN,YAAA,EAAc,SAAA;AAAA,MACd,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,aAAA,EAAe,EAAE,cAAA,EAAgB,SAAA,EAAW,MAAM,MAAA;AAAO,GAC3D;AAAA,EACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASE,WAAA,EAAa,oBAAA;AAAA,IACb,MAAA,EAAQ;AAAA,MACN,IAAA,EAAM,gBAAA;AAAA,MACN,YAAA,EAAc,UAAA;AAAA,MACd,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,aAAA,EAAe,EAAE,YAAA,EAAc,WAAA,EAAa,MAAM,MAAA;AAAO;AAE7D;AAEO,MAAM,cAAA,GAAiB;AAAA,EAC5B,mBAAA,EAAqB,4CAAA;AAAA,EACrB,qBAAA,EAAuB,uDAAA;AAAA,EACvB,iBAAA,EAAmB,gDAAA;AAAA,EACnB,YAAA,EAAc,2CAAA;AAAA,EACd,oBAAA,EAAsB,4CAAA;AAAA,EACtB,wBAAA,EAA0B,gDAAA;AAAA,EAC1B,uBAAA,EAAyB,+CAAA;AAAA,EACzB,cAAA,EAAgB,oDAAA;AAAA,EAChB,gBAAA,EAAkB;AACpB;;;;;"}
@@ -0,0 +1,8 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const prismaConfig = [];
4
+ const prismaChannels = {};
5
+
6
+ exports.prismaChannels = prismaChannels;
7
+ exports.prismaConfig = prismaConfig;
8
+ //# sourceMappingURL=prisma.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prisma.js","sources":["../../../../src/orchestrion/config/prisma.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\n// TODO: Stub for the `prisma` orchestrion integration (ports `@prisma/instrumentation`).\nexport const prismaConfig: InstrumentationConfig[] = [];\n\nexport const prismaChannels = {} as const;\n"],"names":[],"mappings":";;AAGO,MAAM,eAAwC;AAE9C,MAAM,iBAAiB;;;;;"}
@@ -0,0 +1,8 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const reactRouterConfig = [];
4
+ const reactRouterChannels = {};
5
+
6
+ exports.reactRouterChannels = reactRouterChannels;
7
+ exports.reactRouterConfig = reactRouterConfig;
8
+ //# sourceMappingURL=react-router.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-router.js","sources":["../../../../src/orchestrion/config/react-router.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\n// TODO: Stub for the `react-router` orchestrion integration (ports `ReactRouterInstrumentation`).\nexport const reactRouterConfig: InstrumentationConfig[] = [];\n\nexport const reactRouterChannels = {} as const;\n"],"names":[],"mappings":";;AAGO,MAAM,oBAA6C;AAEnD,MAAM,sBAAsB;;;;;"}
@@ -0,0 +1,8 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const remixConfig = [];
4
+ const remixChannels = {};
5
+
6
+ exports.remixChannels = remixChannels;
7
+ exports.remixConfig = remixConfig;
8
+ //# sourceMappingURL=remix.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remix.js","sources":["../../../../src/orchestrion/config/remix.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\n// TODO: Stub for the `remix` orchestrion integration (ports `RemixInstrumentation`).\nexport const remixConfig: InstrumentationConfig[] = [];\n\nexport const remixChannels = {} as const;\n"],"names":[],"mappings":";;AAGO,MAAM,cAAuC;AAE7C,MAAM,gBAAgB;;;;;"}
@@ -0,0 +1,8 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const tediousConfig = [];
4
+ const tediousChannels = {};
5
+
6
+ exports.tediousChannels = tediousChannels;
7
+ exports.tediousConfig = tediousConfig;
8
+ //# sourceMappingURL=tedious.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tedious.js","sources":["../../../../src/orchestrion/config/tedious.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\n// TODO: Stub for the `tedious` orchestrion integration (ports `@opentelemetry/instrumentation-tedious`).\nexport const tediousConfig: InstrumentationConfig[] = [];\n\nexport const tediousChannels = {} as const;\n"],"names":[],"mappings":";;AAGO,MAAM,gBAAyC;AAE/C,MAAM,kBAAkB;;;;;"}
@@ -1,23 +1,24 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
 
3
3
  const core = require('@sentry/core');
4
- const debugBuild = require('../debug-build.js');
5
4
 
6
5
  function isOrchestrionInjected() {
7
- const marker = globalThis.__SENTRY_ORCHESTRION__;
8
- return !!(marker?.runtime || marker?.bundler);
6
+ return !!core.GLOBAL_OBJ.__SENTRY_ORCHESTRION__;
9
7
  }
10
8
  function detectOrchestrionSetup() {
11
- if (!debugBuild.DEBUG_BUILD) return;
12
- const marker = globalThis.__SENTRY_ORCHESTRION__;
13
- const runtime = !!marker?.runtime;
14
- const bundler = !!marker?.bundler;
15
- debugBuild.DEBUG_BUILD && core.debug.log(`[orchestrion] detect: runtime=${runtime} bundler=${bundler}`);
16
- if (!isOrchestrionInjected()) {
17
- debugBuild.DEBUG_BUILD && core.debug.warn(
18
- "[Sentry] No diagnostics-channel injection detected. Channel-based integrations (mysql, \u2026) will not record spans. Make sure the diagnostics channels are injected via the runtime `--import` hook or a bundler plugin before the instrumented modules load."
9
+ const { runtime, bundler } = core.GLOBAL_OBJ.__SENTRY_ORCHESTRION__ ?? {};
10
+ if (!runtime && !bundler) {
11
+ core.debug.warn(
12
+ "[Sentry] No diagnostics-channel injection detected. Channel-based integrations will not record spans. Make sure the diagnostics channels are injected via the runtime `--import` hook or a bundler plugin before the instrumented modules load."
19
13
  );
14
+ return;
20
15
  }
16
+ core.debug.log(
17
+ runtime ? `[Sentry] Runtime hook registered, injected libraries=${JSON.stringify(runtime)}` : "[Sentry] Runtime hook not registered"
18
+ );
19
+ core.debug.log(
20
+ bundler ? `[Sentry] Bundler plugin ran, injected libraries=${JSON.stringify(bundler)}` : "[Sentry] Bundler plugin did not run"
21
+ );
21
22
  }
22
23
 
23
24
  exports.detectOrchestrionSetup = detectOrchestrionSetup;
@@ -1 +1 @@
1
- {"version":3,"file":"detect.js","sources":["../../../src/orchestrion/detect.ts"],"sourcesContent":["import { debug } from '@sentry/core';\nimport { DEBUG_BUILD } from '../debug-build';\n\ndeclare global {\n // eslint-disable-next-line no-var\n var __SENTRY_ORCHESTRION__: { runtime?: boolean; bundler?: boolean } | undefined;\n}\n\n/**\n * Whether orchestrion has injected the diagnostics channels into this process,\n * either by the runtime `--import` hook / init-time registration (`runtime`)\n * or a bundler plugin (`bundler`). Both injectors set a flag on the\n * `globalThis.__SENTRY_ORCHESTRION__` marker.\n *\n * Use this to avoid wiring up channel-subscriber integrations when nothing\n * will ever publish to those channels.\n */\nexport function isOrchestrionInjected(): boolean {\n const marker = globalThis.__SENTRY_ORCHESTRION__;\n return !!(marker?.runtime || marker?.bundler);\n}\n\n/**\n * Verifies that the diagnostics channels have been injected either by the\n * runtime `--import` hook (or init-time registration), a bundler plugin, or\n * both, and warns if not.\n *\n * Both injectors being active at once is fine: they operate on disjoint module\n * sets (a module is either loaded through Node's loader and transformed by the\n * runtime hook, or inlined by the bundler and transformed by the plugin), so\n * a single module can't be double-wrapped. A hybrid setup, with some deps\n * external and runtime-instrumented, others bundled and plugin-instrumented,\n * is fine.\n *\n * Note: intentionally does NOT warn in production, only in debug builds,\n * because production warnings are reserved for truly critical issues.\n */\nexport function detectOrchestrionSetup(): void {\n if (!DEBUG_BUILD) return;\n\n const marker = globalThis.__SENTRY_ORCHESTRION__;\n const runtime = !!marker?.runtime;\n const bundler = !!marker?.bundler;\n\n DEBUG_BUILD && debug.log(`[orchestrion] detect: runtime=${runtime} bundler=${bundler}`);\n\n if (!isOrchestrionInjected()) {\n DEBUG_BUILD &&\n debug.warn(\n '[Sentry] No diagnostics-channel injection detected. Channel-based integrations ' +\n '(mysql, …) will not record spans. Make sure the diagnostics channels are injected ' +\n 'via the runtime `--import` hook or a bundler plugin before the instrumented modules load.',\n );\n }\n}\n"],"names":["DEBUG_BUILD","debug"],"mappings":";;;;;AAiBO,SAAS,qBAAA,GAAiC;AAC/C,EAAA,MAAM,SAAS,UAAA,CAAW,sBAAA;AAC1B,EAAA,OAAO,CAAC,EAAE,MAAA,EAAQ,OAAA,IAAW,MAAA,EAAQ,OAAA,CAAA;AACvC;AAiBO,SAAS,sBAAA,GAA+B;AAC7C,EAAA,IAAI,CAACA,sBAAA,EAAa;AAElB,EAAA,MAAM,SAAS,UAAA,CAAW,sBAAA;AAC1B,EAAA,MAAM,OAAA,GAAU,CAAC,CAAC,MAAA,EAAQ,OAAA;AAC1B,EAAA,MAAM,OAAA,GAAU,CAAC,CAAC,MAAA,EAAQ,OAAA;AAE1B,EAAAA,sBAAA,IAAeC,WAAM,GAAA,CAAI,CAAA,8BAAA,EAAiC,OAAO,CAAA,SAAA,EAAY,OAAO,CAAA,CAAE,CAAA;AAEtF,EAAA,IAAI,CAAC,uBAAsB,EAAG;AAC5B,IAAAD,sBAAA,IACEC,UAAA,CAAM,IAAA;AAAA,MACJ;AAAA,KAGF;AAAA,EACJ;AACF;;;;;"}
1
+ {"version":3,"file":"detect.js","sources":["../../../src/orchestrion/detect.ts"],"sourcesContent":["import { debug, GLOBAL_OBJ } from '@sentry/core';\n\n/**\n * Whether orchestrion has injected the diagnostics channels into this process,\n * either by the runtime `--import` hook / init-time registration (`runtime`)\n * or a bundler plugin (`bundler`). Both injectors set a flag on the\n * `globalThis.__SENTRY_ORCHESTRION__` marker.\n *\n * Use this to avoid wiring up channel-subscriber integrations when nothing\n * will ever publish to those channels.\n */\nexport function isOrchestrionInjected(): boolean {\n return !!GLOBAL_OBJ.__SENTRY_ORCHESTRION__;\n}\n\n/**\n * Verifies that the diagnostics channels have been injected either by the\n * runtime `--import` hook (or init-time registration), a bundler plugin, or\n * both, and warns if not. When at least one injector is active, logs for each\n * mechanism whether it hooked (a defined array, even empty, means it did) and\n * which libraries it injected.\n *\n * Both injectors being active at once is fine: they operate on disjoint module\n * sets (a module is either loaded through Node's loader and transformed by the\n * runtime hook, or inlined by the bundler and transformed by the plugin), so\n * a single module can't be double-wrapped. A hybrid setup, with some deps\n * external and runtime-instrumented, others bundled and plugin-instrumented,\n * is fine.\n */\nexport function detectOrchestrionSetup(): void {\n const { runtime, bundler } = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ ?? {};\n\n if (!runtime && !bundler) {\n debug.warn(\n '[Sentry] No diagnostics-channel injection detected. Channel-based integrations ' +\n 'will not record spans. Make sure the diagnostics channels are injected ' +\n 'via the runtime `--import` hook or a bundler plugin before the instrumented modules load.',\n );\n return;\n }\n\n debug.log(\n runtime\n ? `[Sentry] Runtime hook registered, injected libraries=${JSON.stringify(runtime)}`\n : '[Sentry] Runtime hook not registered',\n );\n debug.log(\n bundler\n ? `[Sentry] Bundler plugin ran, injected libraries=${JSON.stringify(bundler)}`\n : '[Sentry] Bundler plugin did not run',\n );\n}\n"],"names":["GLOBAL_OBJ","debug"],"mappings":";;;;AAWO,SAAS,qBAAA,GAAiC;AAC/C,EAAA,OAAO,CAAC,CAACA,eAAA,CAAW,sBAAA;AACtB;AAgBO,SAAS,sBAAA,GAA+B;AAC7C,EAAA,MAAM,EAAE,OAAA,EAAS,OAAA,EAAQ,GAAIA,eAAA,CAAW,0BAA0B,EAAC;AAEnE,EAAA,IAAI,CAAC,OAAA,IAAW,CAAC,OAAA,EAAS;AACxB,IAAAC,UAAA,CAAM,IAAA;AAAA,MACJ;AAAA,KAGF;AACA,IAAA;AAAA,EACF;AAEA,EAAAA,UAAA,CAAM,GAAA;AAAA,IACJ,UACI,CAAA,qDAAA,EAAwD,IAAA,CAAK,SAAA,CAAU,OAAO,CAAC,CAAA,CAAA,GAC/E;AAAA,GACN;AACA,EAAAA,UAAA,CAAM,GAAA;AAAA,IACJ,UACI,CAAA,gDAAA,EAAmD,IAAA,CAAK,SAAA,CAAU,OAAO,CAAC,CAAA,CAAA,GAC1E;AAAA,GACN;AACF;;;;;"}
@@ -2,24 +2,32 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
 
3
3
  const amqplib = require('../integrations/tracing-channel/amqplib.js');
4
4
  const anthropic = require('../integrations/tracing-channel/anthropic.js');
5
+ const dataloader = require('../integrations/tracing-channel/dataloader.js');
6
+ const genericPool = require('../integrations/tracing-channel/generic-pool.js');
5
7
  const googleGenai = require('../integrations/tracing-channel/google-genai.js');
6
8
  const index$1 = require('../integrations/tracing-channel/graphql/index.js');
7
9
  const hapi = require('../integrations/tracing-channel/hapi.js');
8
10
  const ioredis = require('../integrations/tracing-channel/ioredis.js');
11
+ const index$2 = require('../integrations/tracing-channel/kafkajs/index.js');
12
+ const knex = require('../integrations/tracing-channel/knex.js');
9
13
  const lruMemoizer = require('../integrations/tracing-channel/lru-memoizer.js');
10
14
  const mysql = require('../integrations/tracing-channel/mysql.js');
15
+ const mysql2 = require('../integrations/tracing-channel/mysql2.js');
11
16
  const openai = require('../integrations/tracing-channel/openai.js');
12
17
  const postgres = require('../integrations/tracing-channel/postgres.js');
13
18
  const postgresJs = require('../integrations/tracing-channel/postgres-js.js');
14
19
  const vercelAi = require('../integrations/tracing-channel/vercel-ai.js');
15
20
  const index = require('../integrations/tracing-channel/express/index.js');
16
21
  const detect = require('./detect.js');
22
+ const nestjs = require('./config/nestjs.js');
17
23
  const redis = require('../integrations/tracing-channel/redis.js');
18
24
 
19
25
  const channelIntegrations = {
20
26
  postgresIntegration: postgres.postgresChannelIntegration,
21
27
  postgresJsIntegration: postgresJs.postgresJsChannelIntegration,
22
28
  mysqlIntegration: mysql.mysqlChannelIntegration,
29
+ mysql2Integration: mysql2.mysql2ChannelIntegration,
30
+ genericPoolIntegration: genericPool.genericPoolChannelIntegration,
23
31
  lruMemoizerIntegration: lruMemoizer.lruMemoizerChannelIntegration,
24
32
  openaiIntegration: openai.openaiChannelIntegration,
25
33
  anthropicIntegration: anthropic.anthropicChannelIntegration,
@@ -28,17 +36,23 @@ const channelIntegrations = {
28
36
  amqplibIntegration: amqplib.amqplibChannelIntegration,
29
37
  hapiIntegration: hapi.hapiChannelIntegration,
30
38
  expressIntegration: index.expressChannelIntegration,
31
- graphqlIntegration: index$1.graphqlDiagnosticsChannelIntegration
39
+ graphqlIntegration: index$1.graphqlDiagnosticsChannelIntegration,
40
+ kafkajsIntegration: index$2.kafkajsChannelIntegration
32
41
  };
33
42
 
34
43
  exports.amqplibChannelIntegration = amqplib.amqplibChannelIntegration;
35
44
  exports.anthropicChannelIntegration = anthropic.anthropicChannelIntegration;
45
+ exports.dataloaderChannelIntegration = dataloader.dataloaderChannelIntegration;
46
+ exports.genericPoolChannelIntegration = genericPool.genericPoolChannelIntegration;
36
47
  exports.googleGenAIChannelIntegration = googleGenai.googleGenAIChannelIntegration;
37
48
  exports.graphqlChannelIntegration = index$1.graphqlChannelIntegration;
38
49
  exports.hapiChannelIntegration = hapi.hapiChannelIntegration;
39
50
  exports.ioredisChannelIntegration = ioredis.ioredisChannelIntegration;
51
+ exports.kafkajsChannelIntegration = index$2.kafkajsChannelIntegration;
52
+ exports.knexChannelIntegration = knex.knexChannelIntegration;
40
53
  exports.lruMemoizerChannelIntegration = lruMemoizer.lruMemoizerChannelIntegration;
41
54
  exports.mysqlChannelIntegration = mysql.mysqlChannelIntegration;
55
+ exports.mysql2ChannelIntegration = mysql2.mysql2ChannelIntegration;
42
56
  exports.openaiChannelIntegration = openai.openaiChannelIntegration;
43
57
  exports.postgresChannelIntegration = postgres.postgresChannelIntegration;
44
58
  exports.postgresJsChannelIntegration = postgresJs.postgresJsChannelIntegration;
@@ -46,6 +60,7 @@ exports.vercelAiChannelIntegration = vercelAi.vercelAiChannelIntegration;
46
60
  exports.expressChannelIntegration = index.expressChannelIntegration;
47
61
  exports.detectOrchestrionSetup = detect.detectOrchestrionSetup;
48
62
  exports.isOrchestrionInjected = detect.isOrchestrionInjected;
63
+ exports.nestjsChannels = nestjs.nestjsChannels;
49
64
  exports.redisChannelIntegration = redis.redisChannelIntegration;
50
65
  exports.channelIntegrations = channelIntegrations;
51
66
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/orchestrion/index.ts"],"sourcesContent":["import { amqplibChannelIntegration } from '../integrations/tracing-channel/amqplib';\nimport { anthropicChannelIntegration } from '../integrations/tracing-channel/anthropic';\nimport { googleGenAIChannelIntegration } from '../integrations/tracing-channel/google-genai';\nimport {\n graphqlChannelIntegration,\n graphqlDiagnosticsChannelIntegration,\n} from '../integrations/tracing-channel/graphql';\nimport { hapiChannelIntegration } from '../integrations/tracing-channel/hapi';\nimport { ioredisChannelIntegration } from '../integrations/tracing-channel/ioredis';\nimport { lruMemoizerChannelIntegration } from '../integrations/tracing-channel/lru-memoizer';\nimport { mysqlChannelIntegration } from '../integrations/tracing-channel/mysql';\nimport { openaiChannelIntegration } from '../integrations/tracing-channel/openai';\nimport { postgresChannelIntegration } from '../integrations/tracing-channel/postgres';\nimport { postgresJsChannelIntegration } from '../integrations/tracing-channel/postgres-js';\nimport { vercelAiChannelIntegration } from '../integrations/tracing-channel/vercel-ai';\nimport { expressChannelIntegration } from '../integrations/tracing-channel/express';\n\nexport { detectOrchestrionSetup, isOrchestrionInjected } from './detect';\nexport {\n amqplibChannelIntegration,\n anthropicChannelIntegration,\n googleGenAIChannelIntegration,\n graphqlChannelIntegration,\n hapiChannelIntegration,\n ioredisChannelIntegration,\n lruMemoizerChannelIntegration,\n mysqlChannelIntegration,\n openaiChannelIntegration,\n postgresChannelIntegration,\n postgresJsChannelIntegration,\n vercelAiChannelIntegration,\n expressChannelIntegration,\n};\nexport type { IORedisChannelIntegrationOptions, IORedisResponseHook } from '../integrations/tracing-channel/ioredis';\nexport type { PostgresJsChannelIntegrationOptions } from '../integrations/tracing-channel/postgres-js';\nexport { redisChannelIntegration } from '../integrations/tracing-channel/redis';\nexport type { RedisChannelIntegrationOptions, RedisResponseHook } from '../integrations/tracing-channel/redis';\n\n// The structural `graphql` package types are the single source of truth shared with `@sentry/node`'s\n// vendored OTel graphql instrumentation (re-exported from here so the two can't drift).\nexport type * from '../integrations/tracing-channel/graphql/graphql-types';\n\n/**\n * The canonical set of orchestrion diagnostics-channel integrations, keyed by their public\n * (OTel-parity) factory name.\n *\n * Single source of truth: add a new channel integration here and every consumer — the `@sentry/node`\n * opt-in helper (`experimentalUseDiagnosticsChannelInjection`) and its public\n * `diagnosticsChannelInjectionIntegrations()` map — picks it up automatically, so there's no separate\n * list to keep in sync.\n *\n * NOTE: `ioredisChannelIntegration` and `redisChannelIntegration` are intentionally NOT here. They\n * only partially replace the composite OTel `Redis` integration and need the node SDK's redis cache\n * `responseHook` (which can't live in `server-utils`), so `@sentry/node` wires them up separately.\n */\nexport const channelIntegrations = {\n postgresIntegration: postgresChannelIntegration,\n postgresJsIntegration: postgresJsChannelIntegration,\n mysqlIntegration: mysqlChannelIntegration,\n lruMemoizerIntegration: lruMemoizerChannelIntegration,\n openaiIntegration: openaiChannelIntegration,\n anthropicIntegration: anthropicChannelIntegration,\n googleGenAIIntegration: googleGenAIChannelIntegration,\n vercelAiIntegration: vercelAiChannelIntegration,\n amqplibIntegration: amqplibChannelIntegration,\n hapiIntegration: hapiChannelIntegration,\n expressIntegration: expressChannelIntegration,\n graphqlIntegration: graphqlDiagnosticsChannelIntegration,\n} as const;\n"],"names":["postgresChannelIntegration","postgresJsChannelIntegration","mysqlChannelIntegration","lruMemoizerChannelIntegration","openaiChannelIntegration","anthropicChannelIntegration","googleGenAIChannelIntegration","vercelAiChannelIntegration","amqplibChannelIntegration","hapiChannelIntegration","expressChannelIntegration","graphqlDiagnosticsChannelIntegration"],"mappings":";;;;;;;;;;;;;;;;;;AAuDO,MAAM,mBAAA,GAAsB;AAAA,EACjC,mBAAA,EAAqBA,mCAAA;AAAA,EACrB,qBAAA,EAAuBC,uCAAA;AAAA,EACvB,gBAAA,EAAkBC,6BAAA;AAAA,EAClB,sBAAA,EAAwBC,yCAAA;AAAA,EACxB,iBAAA,EAAmBC,+BAAA;AAAA,EACnB,oBAAA,EAAsBC,qCAAA;AAAA,EACtB,sBAAA,EAAwBC,yCAAA;AAAA,EACxB,mBAAA,EAAqBC,mCAAA;AAAA,EACrB,kBAAA,EAAoBC,iCAAA;AAAA,EACpB,eAAA,EAAiBC,2BAAA;AAAA,EACjB,kBAAA,EAAoBC,+BAAA;AAAA,EACpB,kBAAA,EAAoBC;AACtB;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/orchestrion/index.ts"],"sourcesContent":["import { amqplibChannelIntegration } from '../integrations/tracing-channel/amqplib';\nimport { anthropicChannelIntegration } from '../integrations/tracing-channel/anthropic';\nimport { dataloaderChannelIntegration } from '../integrations/tracing-channel/dataloader';\nimport { genericPoolChannelIntegration } from '../integrations/tracing-channel/generic-pool';\nimport { googleGenAIChannelIntegration } from '../integrations/tracing-channel/google-genai';\nimport {\n graphqlChannelIntegration,\n graphqlDiagnosticsChannelIntegration,\n} from '../integrations/tracing-channel/graphql';\nimport { hapiChannelIntegration } from '../integrations/tracing-channel/hapi';\nimport { ioredisChannelIntegration } from '../integrations/tracing-channel/ioredis';\nimport { kafkajsChannelIntegration } from '../integrations/tracing-channel/kafkajs';\nimport { knexChannelIntegration } from '../integrations/tracing-channel/knex';\nimport { lruMemoizerChannelIntegration } from '../integrations/tracing-channel/lru-memoizer';\nimport { mysqlChannelIntegration } from '../integrations/tracing-channel/mysql';\nimport { mysql2ChannelIntegration } from '../integrations/tracing-channel/mysql2';\nimport { openaiChannelIntegration } from '../integrations/tracing-channel/openai';\nimport { postgresChannelIntegration } from '../integrations/tracing-channel/postgres';\nimport { postgresJsChannelIntegration } from '../integrations/tracing-channel/postgres-js';\nimport { vercelAiChannelIntegration } from '../integrations/tracing-channel/vercel-ai';\nimport { expressChannelIntegration } from '../integrations/tracing-channel/express';\n\nexport { detectOrchestrionSetup, isOrchestrionInjected } from './detect';\n// The `@nestjs/*` channel names live here alongside their transform config; the\n// listener that subscribes to them lives in `@sentry/nestjs`, which imports this.\nexport { nestjsChannels } from './config/nestjs';\nexport {\n amqplibChannelIntegration,\n anthropicChannelIntegration,\n dataloaderChannelIntegration,\n genericPoolChannelIntegration,\n googleGenAIChannelIntegration,\n graphqlChannelIntegration,\n hapiChannelIntegration,\n ioredisChannelIntegration,\n kafkajsChannelIntegration,\n knexChannelIntegration,\n lruMemoizerChannelIntegration,\n mysqlChannelIntegration,\n mysql2ChannelIntegration,\n openaiChannelIntegration,\n postgresChannelIntegration,\n postgresJsChannelIntegration,\n vercelAiChannelIntegration,\n expressChannelIntegration,\n};\nexport type { IORedisChannelIntegrationOptions, IORedisResponseHook } from '../integrations/tracing-channel/ioredis';\nexport type { PostgresJsChannelIntegrationOptions } from '../integrations/tracing-channel/postgres-js';\nexport { redisChannelIntegration } from '../integrations/tracing-channel/redis';\nexport type { RedisChannelIntegrationOptions, RedisResponseHook } from '../integrations/tracing-channel/redis';\n\n// The structural `graphql` package types are the single source of truth shared with `@sentry/node`'s\n// vendored OTel graphql instrumentation (re-exported from here so the two can't drift).\nexport type * from '../integrations/tracing-channel/graphql/graphql-types';\n\n/**\n * The canonical set of orchestrion diagnostics-channel integrations, keyed by their public\n * (OTel-parity) factory name.\n *\n * Single source of truth: add a new channel integration here and every consumer — the `@sentry/node`\n * opt-in helper (`experimentalUseDiagnosticsChannelInjection`) and its public\n * `diagnosticsChannelInjectionIntegrations()` map — picks it up automatically, so there's no separate\n * list to keep in sync.\n *\n * NOTE: `ioredisChannelIntegration` and `redisChannelIntegration` are intentionally NOT here. They\n * only partially replace the composite OTel `Redis` integration and need the node SDK's redis cache\n * `responseHook` (which can't live in `server-utils`), so `@sentry/node` wires them up separately.\n *\n * Framework SDKs that own their own channel listener (e.g. `@sentry/nestjs`'s `Nest`) are NOT here\n * either: their transform config is still in `SENTRY_INSTRUMENTATIONS`, but the listener lives in\n * their package and picks the channel-vs-OTel path itself at `setupOnce`, so it needs no central swap.\n *\n * NOTE: `dataloaderChannelIntegration` is also NOT here. Everything in this map is auto-appended to\n * the default integrations, but the OTel `Dataloader` integration is opt-in (never a default). Like\n * `@sentry/nestjs`'s `Nest`, its `@sentry/node` factory picks the channel-vs-OTel path itself at\n * `setupOnce` (via `isOrchestrionInjected()`), so there's nothing for the central swap to do.\n */\nexport const channelIntegrations = {\n postgresIntegration: postgresChannelIntegration,\n postgresJsIntegration: postgresJsChannelIntegration,\n mysqlIntegration: mysqlChannelIntegration,\n mysql2Integration: mysql2ChannelIntegration,\n genericPoolIntegration: genericPoolChannelIntegration,\n lruMemoizerIntegration: lruMemoizerChannelIntegration,\n openaiIntegration: openaiChannelIntegration,\n anthropicIntegration: anthropicChannelIntegration,\n googleGenAIIntegration: googleGenAIChannelIntegration,\n vercelAiIntegration: vercelAiChannelIntegration,\n amqplibIntegration: amqplibChannelIntegration,\n hapiIntegration: hapiChannelIntegration,\n expressIntegration: expressChannelIntegration,\n graphqlIntegration: graphqlDiagnosticsChannelIntegration,\n kafkajsIntegration: kafkajsChannelIntegration,\n} as const;\n"],"names":["postgresChannelIntegration","postgresJsChannelIntegration","mysqlChannelIntegration","mysql2ChannelIntegration","genericPoolChannelIntegration","lruMemoizerChannelIntegration","openaiChannelIntegration","anthropicChannelIntegration","googleGenAIChannelIntegration","vercelAiChannelIntegration","amqplibChannelIntegration","hapiChannelIntegration","expressChannelIntegration","graphqlDiagnosticsChannelIntegration","kafkajsChannelIntegration"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA6EO,MAAM,mBAAA,GAAsB;AAAA,EACjC,mBAAA,EAAqBA,mCAAA;AAAA,EACrB,qBAAA,EAAuBC,uCAAA;AAAA,EACvB,gBAAA,EAAkBC,6BAAA;AAAA,EAClB,iBAAA,EAAmBC,+BAAA;AAAA,EACnB,sBAAA,EAAwBC,yCAAA;AAAA,EACxB,sBAAA,EAAwBC,yCAAA;AAAA,EACxB,iBAAA,EAAmBC,+BAAA;AAAA,EACnB,oBAAA,EAAsBC,qCAAA;AAAA,EACtB,sBAAA,EAAwBC,yCAAA;AAAA,EACxB,mBAAA,EAAqBC,mCAAA;AAAA,EACrB,kBAAA,EAAoBC,iCAAA;AAAA,EACpB,eAAA,EAAiBC,2BAAA;AAAA,EACjB,kBAAA,EAAoBC,+BAAA;AAAA,EACpB,kBAAA,EAAoBC,4CAAA;AAAA,EACpB,kBAAA,EAAoBC;AACtB;;;;;;;;;;;;;;;;;;;;;;;;;;"}