@sentry/server-utils 10.67.0 → 10.69.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 (363) hide show
  1. package/build/cjs/integrations/tracing-channel/dataloader.js +17 -7
  2. package/build/cjs/integrations/tracing-channel/dataloader.js.map +1 -1
  3. package/build/cjs/integrations/tracing-channel/fastify/index.js +2 -4
  4. package/build/cjs/integrations/tracing-channel/fastify/index.js.map +1 -1
  5. package/build/cjs/integrations/tracing-channel/fastify/utils.js.map +1 -1
  6. package/build/cjs/integrations/tracing-channel/firebase/firestore.js +78 -0
  7. package/build/cjs/integrations/tracing-channel/firebase/firestore.js.map +1 -0
  8. package/build/cjs/integrations/tracing-channel/firebase/functions.js +67 -0
  9. package/build/cjs/integrations/tracing-channel/firebase/functions.js.map +1 -0
  10. package/build/cjs/integrations/tracing-channel/firebase/index.js +24 -0
  11. package/build/cjs/integrations/tracing-channel/firebase/index.js.map +1 -0
  12. package/build/cjs/integrations/tracing-channel/firebase/instrumentation.js +66 -0
  13. package/build/cjs/integrations/tracing-channel/firebase/instrumentation.js.map +1 -0
  14. package/build/cjs/orchestrion/bundler/esbuild.js +24 -1
  15. package/build/cjs/orchestrion/bundler/esbuild.js.map +1 -1
  16. package/build/cjs/orchestrion/bundler/options.js +16 -2
  17. package/build/cjs/orchestrion/bundler/options.js.map +1 -1
  18. package/build/cjs/orchestrion/bundler/rollup.js +11 -1
  19. package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
  20. package/build/cjs/orchestrion/bundler/subscribeInjection.js +40 -0
  21. package/build/cjs/orchestrion/bundler/subscribeInjection.js.map +1 -0
  22. package/build/cjs/orchestrion/bundler/vite.js +16 -0
  23. package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
  24. package/build/cjs/orchestrion/bundler/webpack.js +32 -1
  25. package/build/cjs/orchestrion/bundler/webpack.js.map +1 -1
  26. package/build/cjs/orchestrion/channels.js +0 -4
  27. package/build/cjs/orchestrion/channels.js.map +1 -1
  28. package/build/cjs/orchestrion/config/amqplib.js +4 -0
  29. package/build/cjs/orchestrion/config/amqplib.js.map +1 -1
  30. package/build/cjs/orchestrion/config/anthropic-ai.js +4 -0
  31. package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -1
  32. package/build/cjs/orchestrion/config/aws-sdk.js +4 -0
  33. package/build/cjs/orchestrion/config/aws-sdk.js.map +1 -1
  34. package/build/cjs/orchestrion/config/channel-integration-definitions.js +29 -0
  35. package/build/cjs/orchestrion/config/channel-integration-definitions.js.map +1 -0
  36. package/build/cjs/orchestrion/config/dataloader.js +4 -0
  37. package/build/cjs/orchestrion/config/dataloader.js.map +1 -1
  38. package/build/cjs/orchestrion/config/express.js +4 -0
  39. package/build/cjs/orchestrion/config/express.js.map +1 -1
  40. package/build/cjs/orchestrion/config/firebase.js +79 -2
  41. package/build/cjs/orchestrion/config/firebase.js.map +1 -1
  42. package/build/cjs/orchestrion/config/generic-pool.js +4 -0
  43. package/build/cjs/orchestrion/config/generic-pool.js.map +1 -1
  44. package/build/cjs/orchestrion/config/google-genai.js +4 -0
  45. package/build/cjs/orchestrion/config/google-genai.js.map +1 -1
  46. package/build/cjs/orchestrion/config/graphql.js +4 -0
  47. package/build/cjs/orchestrion/config/graphql.js.map +1 -1
  48. package/build/cjs/orchestrion/config/hapi.js +4 -0
  49. package/build/cjs/orchestrion/config/hapi.js.map +1 -1
  50. package/build/cjs/orchestrion/config/index.js +33 -5
  51. package/build/cjs/orchestrion/config/index.js.map +1 -1
  52. package/build/cjs/orchestrion/config/ioredis.js +4 -0
  53. package/build/cjs/orchestrion/config/ioredis.js.map +1 -1
  54. package/build/cjs/orchestrion/config/kafkajs.js +4 -0
  55. package/build/cjs/orchestrion/config/kafkajs.js.map +1 -1
  56. package/build/cjs/orchestrion/config/knex.js +4 -0
  57. package/build/cjs/orchestrion/config/knex.js.map +1 -1
  58. package/build/cjs/orchestrion/config/koa.js +4 -0
  59. package/build/cjs/orchestrion/config/koa.js.map +1 -1
  60. package/build/cjs/orchestrion/config/langchain.js +4 -0
  61. package/build/cjs/orchestrion/config/langchain.js.map +1 -1
  62. package/build/cjs/orchestrion/config/langgraph.js +4 -0
  63. package/build/cjs/orchestrion/config/langgraph.js.map +1 -1
  64. package/build/cjs/orchestrion/config/lru-memoizer.js +4 -0
  65. package/build/cjs/orchestrion/config/lru-memoizer.js.map +1 -1
  66. package/build/cjs/orchestrion/config/mongodb.js +4 -0
  67. package/build/cjs/orchestrion/config/mongodb.js.map +1 -1
  68. package/build/cjs/orchestrion/config/mongoose.js +4 -0
  69. package/build/cjs/orchestrion/config/mongoose.js.map +1 -1
  70. package/build/cjs/orchestrion/config/mysql.js +4 -0
  71. package/build/cjs/orchestrion/config/mysql.js.map +1 -1
  72. package/build/cjs/orchestrion/config/mysql2.js +4 -0
  73. package/build/cjs/orchestrion/config/mysql2.js.map +1 -1
  74. package/build/cjs/orchestrion/config/nestjs.js +4 -0
  75. package/build/cjs/orchestrion/config/nestjs.js.map +1 -1
  76. package/build/cjs/orchestrion/config/openai.js +4 -0
  77. package/build/cjs/orchestrion/config/openai.js.map +1 -1
  78. package/build/cjs/orchestrion/config/pg.js +4 -0
  79. package/build/cjs/orchestrion/config/pg.js.map +1 -1
  80. package/build/cjs/orchestrion/config/postgres.js +4 -0
  81. package/build/cjs/orchestrion/config/postgres.js.map +1 -1
  82. package/build/cjs/orchestrion/config/redis.js +4 -0
  83. package/build/cjs/orchestrion/config/redis.js.map +1 -1
  84. package/build/cjs/orchestrion/config/remix.js +4 -0
  85. package/build/cjs/orchestrion/config/remix.js.map +1 -1
  86. package/build/cjs/orchestrion/config/subscribe-injection.js +25 -0
  87. package/build/cjs/orchestrion/config/subscribe-injection.js.map +1 -0
  88. package/build/cjs/orchestrion/config/tedious.js +4 -0
  89. package/build/cjs/orchestrion/config/tedious.js.map +1 -1
  90. package/build/cjs/orchestrion/config/vercel-ai.js +4 -0
  91. package/build/cjs/orchestrion/config/vercel-ai.js.map +1 -1
  92. package/build/cjs/orchestrion/index.js +12 -7
  93. package/build/cjs/orchestrion/index.js.map +1 -1
  94. package/build/cjs/orchestrion/registerChannelIntegration.js +13 -0
  95. package/build/cjs/orchestrion/registerChannelIntegration.js.map +1 -0
  96. package/build/cjs/vercel-ai/index.js.map +1 -1
  97. package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js +2 -0
  98. package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  99. package/build/esm/integrations/tracing-channel/dataloader.js +17 -7
  100. package/build/esm/integrations/tracing-channel/dataloader.js.map +1 -1
  101. package/build/esm/integrations/tracing-channel/fastify/index.js +2 -4
  102. package/build/esm/integrations/tracing-channel/fastify/index.js.map +1 -1
  103. package/build/esm/integrations/tracing-channel/fastify/utils.js.map +1 -1
  104. package/build/esm/integrations/tracing-channel/firebase/firestore.js +75 -0
  105. package/build/esm/integrations/tracing-channel/firebase/firestore.js.map +1 -0
  106. package/build/esm/integrations/tracing-channel/firebase/functions.js +65 -0
  107. package/build/esm/integrations/tracing-channel/firebase/functions.js.map +1 -0
  108. package/build/esm/integrations/tracing-channel/firebase/index.js +22 -0
  109. package/build/esm/integrations/tracing-channel/firebase/index.js.map +1 -0
  110. package/build/esm/integrations/tracing-channel/firebase/instrumentation.js +64 -0
  111. package/build/esm/integrations/tracing-channel/firebase/instrumentation.js.map +1 -0
  112. package/build/esm/orchestrion/bundler/esbuild.js +25 -2
  113. package/build/esm/orchestrion/bundler/esbuild.js.map +1 -1
  114. package/build/esm/orchestrion/bundler/options.js +15 -3
  115. package/build/esm/orchestrion/bundler/options.js.map +1 -1
  116. package/build/esm/orchestrion/bundler/rollup.js +12 -2
  117. package/build/esm/orchestrion/bundler/rollup.js.map +1 -1
  118. package/build/esm/orchestrion/bundler/subscribeInjection.js +38 -0
  119. package/build/esm/orchestrion/bundler/subscribeInjection.js.map +1 -0
  120. package/build/esm/orchestrion/bundler/vite.js +17 -1
  121. package/build/esm/orchestrion/bundler/vite.js.map +1 -1
  122. package/build/esm/orchestrion/bundler/webpack.js +33 -3
  123. package/build/esm/orchestrion/bundler/webpack.js.map +1 -1
  124. package/build/esm/orchestrion/channels.js +0 -4
  125. package/build/esm/orchestrion/channels.js.map +1 -1
  126. package/build/esm/orchestrion/config/amqplib.js +4 -1
  127. package/build/esm/orchestrion/config/amqplib.js.map +1 -1
  128. package/build/esm/orchestrion/config/anthropic-ai.js +4 -1
  129. package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
  130. package/build/esm/orchestrion/config/aws-sdk.js +4 -1
  131. package/build/esm/orchestrion/config/aws-sdk.js.map +1 -1
  132. package/build/esm/orchestrion/config/channel-integration-definitions.js +26 -0
  133. package/build/esm/orchestrion/config/channel-integration-definitions.js.map +1 -0
  134. package/build/esm/orchestrion/config/dataloader.js +4 -1
  135. package/build/esm/orchestrion/config/dataloader.js.map +1 -1
  136. package/build/esm/orchestrion/config/express.js +4 -1
  137. package/build/esm/orchestrion/config/express.js.map +1 -1
  138. package/build/esm/orchestrion/config/firebase.js +79 -3
  139. package/build/esm/orchestrion/config/firebase.js.map +1 -1
  140. package/build/esm/orchestrion/config/generic-pool.js +4 -1
  141. package/build/esm/orchestrion/config/generic-pool.js.map +1 -1
  142. package/build/esm/orchestrion/config/google-genai.js +4 -1
  143. package/build/esm/orchestrion/config/google-genai.js.map +1 -1
  144. package/build/esm/orchestrion/config/graphql.js +4 -1
  145. package/build/esm/orchestrion/config/graphql.js.map +1 -1
  146. package/build/esm/orchestrion/config/hapi.js +4 -1
  147. package/build/esm/orchestrion/config/hapi.js.map +1 -1
  148. package/build/esm/orchestrion/config/index.js +61 -34
  149. package/build/esm/orchestrion/config/index.js.map +1 -1
  150. package/build/esm/orchestrion/config/ioredis.js +4 -1
  151. package/build/esm/orchestrion/config/ioredis.js.map +1 -1
  152. package/build/esm/orchestrion/config/kafkajs.js +4 -1
  153. package/build/esm/orchestrion/config/kafkajs.js.map +1 -1
  154. package/build/esm/orchestrion/config/knex.js +4 -1
  155. package/build/esm/orchestrion/config/knex.js.map +1 -1
  156. package/build/esm/orchestrion/config/koa.js +4 -1
  157. package/build/esm/orchestrion/config/koa.js.map +1 -1
  158. package/build/esm/orchestrion/config/langchain.js +4 -1
  159. package/build/esm/orchestrion/config/langchain.js.map +1 -1
  160. package/build/esm/orchestrion/config/langgraph.js +4 -1
  161. package/build/esm/orchestrion/config/langgraph.js.map +1 -1
  162. package/build/esm/orchestrion/config/lru-memoizer.js +4 -1
  163. package/build/esm/orchestrion/config/lru-memoizer.js.map +1 -1
  164. package/build/esm/orchestrion/config/mongodb.js +4 -1
  165. package/build/esm/orchestrion/config/mongodb.js.map +1 -1
  166. package/build/esm/orchestrion/config/mongoose.js +4 -1
  167. package/build/esm/orchestrion/config/mongoose.js.map +1 -1
  168. package/build/esm/orchestrion/config/mysql.js +4 -1
  169. package/build/esm/orchestrion/config/mysql.js.map +1 -1
  170. package/build/esm/orchestrion/config/mysql2.js +4 -1
  171. package/build/esm/orchestrion/config/mysql2.js.map +1 -1
  172. package/build/esm/orchestrion/config/nestjs.js +4 -1
  173. package/build/esm/orchestrion/config/nestjs.js.map +1 -1
  174. package/build/esm/orchestrion/config/openai.js +4 -1
  175. package/build/esm/orchestrion/config/openai.js.map +1 -1
  176. package/build/esm/orchestrion/config/pg.js +4 -1
  177. package/build/esm/orchestrion/config/pg.js.map +1 -1
  178. package/build/esm/orchestrion/config/postgres.js +4 -1
  179. package/build/esm/orchestrion/config/postgres.js.map +1 -1
  180. package/build/esm/orchestrion/config/redis.js +4 -1
  181. package/build/esm/orchestrion/config/redis.js.map +1 -1
  182. package/build/esm/orchestrion/config/remix.js +4 -1
  183. package/build/esm/orchestrion/config/remix.js.map +1 -1
  184. package/build/esm/orchestrion/config/subscribe-injection.js +22 -0
  185. package/build/esm/orchestrion/config/subscribe-injection.js.map +1 -0
  186. package/build/esm/orchestrion/config/tedious.js +4 -1
  187. package/build/esm/orchestrion/config/tedious.js.map +1 -1
  188. package/build/esm/orchestrion/config/vercel-ai.js +4 -1
  189. package/build/esm/orchestrion/config/vercel-ai.js.map +1 -1
  190. package/build/esm/orchestrion/index.js +5 -2
  191. package/build/esm/orchestrion/index.js.map +1 -1
  192. package/build/esm/orchestrion/registerChannelIntegration.js +11 -0
  193. package/build/esm/orchestrion/registerChannelIntegration.js.map +1 -0
  194. package/build/esm/package.json +1 -1
  195. package/build/esm/vercel-ai/index.js.map +1 -1
  196. package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js +3 -1
  197. package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  198. package/build/types/index.d.ts +1 -1
  199. package/build/types/index.d.ts.map +1 -1
  200. package/build/types/integrations/tracing-channel/dataloader.d.ts.map +1 -1
  201. package/build/types/integrations/tracing-channel/fastify/index.d.ts +2 -2
  202. package/build/types/integrations/tracing-channel/fastify/index.d.ts.map +1 -1
  203. package/build/types/integrations/tracing-channel/fastify/utils.d.ts +1 -1
  204. package/build/types/integrations/tracing-channel/fastify/utils.d.ts.map +1 -1
  205. package/build/types/integrations/tracing-channel/firebase/firestore-types.d.ts +38 -0
  206. package/build/types/integrations/tracing-channel/firebase/firestore-types.d.ts.map +1 -0
  207. package/build/types/integrations/tracing-channel/firebase/firestore.d.ts +18 -0
  208. package/build/types/integrations/tracing-channel/firebase/firestore.d.ts.map +1 -0
  209. package/build/types/integrations/tracing-channel/firebase/functions.d.ts +15 -0
  210. package/build/types/integrations/tracing-channel/firebase/functions.d.ts.map +1 -0
  211. package/build/types/integrations/tracing-channel/firebase/index.d.ts +15 -0
  212. package/build/types/integrations/tracing-channel/firebase/index.d.ts.map +1 -0
  213. package/build/types/integrations/tracing-channel/firebase/instrumentation.d.ts +2 -0
  214. package/build/types/integrations/tracing-channel/firebase/instrumentation.d.ts.map +1 -0
  215. package/build/types/integrations/tracing-channel/vercel-ai.d.ts +1 -5
  216. package/build/types/integrations/tracing-channel/vercel-ai.d.ts.map +1 -1
  217. package/build/types/orchestrion/bundler/esbuild.d.ts +2 -3
  218. package/build/types/orchestrion/bundler/esbuild.d.ts.map +1 -1
  219. package/build/types/orchestrion/bundler/options.d.ts +34 -0
  220. package/build/types/orchestrion/bundler/options.d.ts.map +1 -1
  221. package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -1
  222. package/build/types/orchestrion/bundler/subscribeInjection.d.ts +13 -0
  223. package/build/types/orchestrion/bundler/subscribeInjection.d.ts.map +1 -0
  224. package/build/types/orchestrion/bundler/vite.d.ts.map +1 -1
  225. package/build/types/orchestrion/bundler/webpack.d.ts +6 -1
  226. package/build/types/orchestrion/bundler/webpack.d.ts.map +1 -1
  227. package/build/types/orchestrion/channels.d.ts +15 -0
  228. package/build/types/orchestrion/channels.d.ts.map +1 -1
  229. package/build/types/orchestrion/config/amqplib.d.ts +2 -0
  230. package/build/types/orchestrion/config/amqplib.d.ts.map +1 -1
  231. package/build/types/orchestrion/config/anthropic-ai.d.ts +2 -0
  232. package/build/types/orchestrion/config/anthropic-ai.d.ts.map +1 -1
  233. package/build/types/orchestrion/config/aws-sdk.d.ts +2 -0
  234. package/build/types/orchestrion/config/aws-sdk.d.ts.map +1 -1
  235. package/build/types/orchestrion/config/channel-integration-definitions.d.ts +81 -0
  236. package/build/types/orchestrion/config/channel-integration-definitions.d.ts.map +1 -0
  237. package/build/types/orchestrion/config/dataloader.d.ts +2 -0
  238. package/build/types/orchestrion/config/dataloader.d.ts.map +1 -1
  239. package/build/types/orchestrion/config/express.d.ts +2 -0
  240. package/build/types/orchestrion/config/express.d.ts.map +1 -1
  241. package/build/types/orchestrion/config/firebase.d.ts +41 -2
  242. package/build/types/orchestrion/config/firebase.d.ts.map +1 -1
  243. package/build/types/orchestrion/config/generic-pool.d.ts +2 -0
  244. package/build/types/orchestrion/config/generic-pool.d.ts.map +1 -1
  245. package/build/types/orchestrion/config/google-genai.d.ts +2 -0
  246. package/build/types/orchestrion/config/google-genai.d.ts.map +1 -1
  247. package/build/types/orchestrion/config/graphql.d.ts +2 -0
  248. package/build/types/orchestrion/config/graphql.d.ts.map +1 -1
  249. package/build/types/orchestrion/config/hapi.d.ts +2 -0
  250. package/build/types/orchestrion/config/hapi.d.ts.map +1 -1
  251. package/build/types/orchestrion/config/index.d.ts +12 -0
  252. package/build/types/orchestrion/config/index.d.ts.map +1 -1
  253. package/build/types/orchestrion/config/ioredis.d.ts +1 -0
  254. package/build/types/orchestrion/config/ioredis.d.ts.map +1 -1
  255. package/build/types/orchestrion/config/kafkajs.d.ts +2 -0
  256. package/build/types/orchestrion/config/kafkajs.d.ts.map +1 -1
  257. package/build/types/orchestrion/config/knex.d.ts +1 -0
  258. package/build/types/orchestrion/config/knex.d.ts.map +1 -1
  259. package/build/types/orchestrion/config/koa.d.ts +2 -0
  260. package/build/types/orchestrion/config/koa.d.ts.map +1 -1
  261. package/build/types/orchestrion/config/langchain.d.ts +2 -0
  262. package/build/types/orchestrion/config/langchain.d.ts.map +1 -1
  263. package/build/types/orchestrion/config/langgraph.d.ts +2 -0
  264. package/build/types/orchestrion/config/langgraph.d.ts.map +1 -1
  265. package/build/types/orchestrion/config/lru-memoizer.d.ts +2 -0
  266. package/build/types/orchestrion/config/lru-memoizer.d.ts.map +1 -1
  267. package/build/types/orchestrion/config/mongodb.d.ts +2 -0
  268. package/build/types/orchestrion/config/mongodb.d.ts.map +1 -1
  269. package/build/types/orchestrion/config/mongoose.d.ts +2 -0
  270. package/build/types/orchestrion/config/mongoose.d.ts.map +1 -1
  271. package/build/types/orchestrion/config/mysql.d.ts +2 -0
  272. package/build/types/orchestrion/config/mysql.d.ts.map +1 -1
  273. package/build/types/orchestrion/config/mysql2.d.ts +2 -0
  274. package/build/types/orchestrion/config/mysql2.d.ts.map +1 -1
  275. package/build/types/orchestrion/config/nestjs.d.ts +1 -0
  276. package/build/types/orchestrion/config/nestjs.d.ts.map +1 -1
  277. package/build/types/orchestrion/config/openai.d.ts +2 -0
  278. package/build/types/orchestrion/config/openai.d.ts.map +1 -1
  279. package/build/types/orchestrion/config/pg.d.ts +2 -0
  280. package/build/types/orchestrion/config/pg.d.ts.map +1 -1
  281. package/build/types/orchestrion/config/postgres.d.ts +1 -0
  282. package/build/types/orchestrion/config/postgres.d.ts.map +1 -1
  283. package/build/types/orchestrion/config/redis.d.ts +2 -0
  284. package/build/types/orchestrion/config/redis.d.ts.map +1 -1
  285. package/build/types/orchestrion/config/remix.d.ts +1 -0
  286. package/build/types/orchestrion/config/remix.d.ts.map +1 -1
  287. package/build/types/orchestrion/config/subscribe-injection.d.ts +31 -0
  288. package/build/types/orchestrion/config/subscribe-injection.d.ts.map +1 -0
  289. package/build/types/orchestrion/config/tedious.d.ts +1 -0
  290. package/build/types/orchestrion/config/tedious.d.ts.map +1 -1
  291. package/build/types/orchestrion/config/vercel-ai.d.ts +1 -0
  292. package/build/types/orchestrion/config/vercel-ai.d.ts.map +1 -1
  293. package/build/types/orchestrion/index.d.ts +7 -6
  294. package/build/types/orchestrion/index.d.ts.map +1 -1
  295. package/build/types/orchestrion/registerChannelIntegration.d.ts +33 -0
  296. package/build/types/orchestrion/registerChannelIntegration.d.ts.map +1 -0
  297. package/build/types/vercel-ai/index.d.ts +2 -3
  298. package/build/types/vercel-ai/index.d.ts.map +1 -1
  299. package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
  300. package/build/types-ts3.8/index.d.ts +1 -1
  301. package/build/types-ts3.8/integrations/tracing-channel/fastify/index.d.ts +2 -2
  302. package/build/types-ts3.8/integrations/tracing-channel/fastify/utils.d.ts +1 -1
  303. package/build/types-ts3.8/integrations/tracing-channel/firebase/firestore-types.d.ts +38 -0
  304. package/build/types-ts3.8/integrations/tracing-channel/firebase/firestore.d.ts +18 -0
  305. package/build/types-ts3.8/integrations/tracing-channel/firebase/functions.d.ts +15 -0
  306. package/build/types-ts3.8/integrations/tracing-channel/firebase/index.d.ts +15 -0
  307. package/build/types-ts3.8/integrations/tracing-channel/firebase/instrumentation.d.ts +2 -0
  308. package/build/types-ts3.8/integrations/tracing-channel/vercel-ai.d.ts +1 -5
  309. package/build/types-ts3.8/orchestrion/bundler/esbuild.d.ts +2 -3
  310. package/build/types-ts3.8/orchestrion/bundler/options.d.ts +34 -0
  311. package/build/types-ts3.8/orchestrion/bundler/subscribeInjection.d.ts +13 -0
  312. package/build/types-ts3.8/orchestrion/bundler/webpack.d.ts +6 -1
  313. package/build/types-ts3.8/orchestrion/channels.d.ts +15 -0
  314. package/build/types-ts3.8/orchestrion/config/amqplib.d.ts +2 -0
  315. package/build/types-ts3.8/orchestrion/config/anthropic-ai.d.ts +2 -0
  316. package/build/types-ts3.8/orchestrion/config/aws-sdk.d.ts +2 -0
  317. package/build/types-ts3.8/orchestrion/config/channel-integration-definitions.d.ts +139 -0
  318. package/build/types-ts3.8/orchestrion/config/dataloader.d.ts +2 -0
  319. package/build/types-ts3.8/orchestrion/config/express.d.ts +2 -0
  320. package/build/types-ts3.8/orchestrion/config/firebase.d.ts +41 -2
  321. package/build/types-ts3.8/orchestrion/config/generic-pool.d.ts +2 -0
  322. package/build/types-ts3.8/orchestrion/config/google-genai.d.ts +2 -0
  323. package/build/types-ts3.8/orchestrion/config/graphql.d.ts +2 -0
  324. package/build/types-ts3.8/orchestrion/config/hapi.d.ts +2 -0
  325. package/build/types-ts3.8/orchestrion/config/index.d.ts +12 -0
  326. package/build/types-ts3.8/orchestrion/config/ioredis.d.ts +1 -0
  327. package/build/types-ts3.8/orchestrion/config/kafkajs.d.ts +2 -0
  328. package/build/types-ts3.8/orchestrion/config/knex.d.ts +1 -0
  329. package/build/types-ts3.8/orchestrion/config/koa.d.ts +2 -0
  330. package/build/types-ts3.8/orchestrion/config/langchain.d.ts +2 -0
  331. package/build/types-ts3.8/orchestrion/config/langgraph.d.ts +2 -0
  332. package/build/types-ts3.8/orchestrion/config/lru-memoizer.d.ts +2 -0
  333. package/build/types-ts3.8/orchestrion/config/mongodb.d.ts +2 -0
  334. package/build/types-ts3.8/orchestrion/config/mongoose.d.ts +2 -0
  335. package/build/types-ts3.8/orchestrion/config/mysql.d.ts +2 -0
  336. package/build/types-ts3.8/orchestrion/config/mysql2.d.ts +2 -0
  337. package/build/types-ts3.8/orchestrion/config/nestjs.d.ts +1 -0
  338. package/build/types-ts3.8/orchestrion/config/openai.d.ts +2 -0
  339. package/build/types-ts3.8/orchestrion/config/pg.d.ts +2 -0
  340. package/build/types-ts3.8/orchestrion/config/postgres.d.ts +1 -0
  341. package/build/types-ts3.8/orchestrion/config/redis.d.ts +2 -0
  342. package/build/types-ts3.8/orchestrion/config/remix.d.ts +1 -0
  343. package/build/types-ts3.8/orchestrion/config/subscribe-injection.d.ts +31 -0
  344. package/build/types-ts3.8/orchestrion/config/tedious.d.ts +1 -0
  345. package/build/types-ts3.8/orchestrion/config/vercel-ai.d.ts +1 -0
  346. package/build/types-ts3.8/orchestrion/index.d.ts +7 -6
  347. package/build/types-ts3.8/orchestrion/registerChannelIntegration.d.ts +33 -0
  348. package/build/types-ts3.8/vercel-ai/index.d.ts +2 -3
  349. package/package.json +4 -3
  350. package/build/cjs/orchestrion/config/prisma.js +0 -8
  351. package/build/cjs/orchestrion/config/prisma.js.map +0 -1
  352. package/build/cjs/orchestrion/config/react-router.js +0 -8
  353. package/build/cjs/orchestrion/config/react-router.js.map +0 -1
  354. package/build/esm/orchestrion/config/prisma.js +0 -5
  355. package/build/esm/orchestrion/config/prisma.js.map +0 -1
  356. package/build/esm/orchestrion/config/react-router.js +0 -5
  357. package/build/esm/orchestrion/config/react-router.js.map +0 -1
  358. package/build/types/orchestrion/config/prisma.d.ts +0 -4
  359. package/build/types/orchestrion/config/prisma.d.ts.map +0 -1
  360. package/build/types/orchestrion/config/react-router.d.ts +0 -4
  361. package/build/types/orchestrion/config/react-router.d.ts.map +0 -1
  362. package/build/types-ts3.8/orchestrion/config/prisma.d.ts +0 -4
  363. package/build/types-ts3.8/orchestrion/config/react-router.d.ts +0 -4
@@ -1 +1 @@
1
- {"version":3,"file":"channels.js","sources":["../../../src/orchestrion/channels.ts"],"sourcesContent":["import { amqplibChannels } from './config/amqplib';\nimport { anthropicAiChannels } from './config/anthropic-ai';\nimport { awsSdkChannels } from './config/aws-sdk';\nimport { dataloaderChannels } from './config/dataloader';\nimport { expressChannels } from './config/express';\nimport { firebaseChannels } from './config/firebase';\nimport { genericPoolChannels } from './config/generic-pool';\nimport { googleGenAiChannels } from './config/google-genai';\nimport { graphqlChannels } from './config/graphql';\nimport { hapiChannels } from './config/hapi';\nimport { ioredisChannels } from './config/ioredis';\nimport { kafkajsChannels } from './config/kafkajs';\nimport { knexChannels } from './config/knex';\nimport { koaChannels } from './config/koa';\nimport { langchainChannels } from './config/langchain';\nimport { langgraphChannels } from './config/langgraph';\nimport { lruMemoizerChannels } from './config/lru-memoizer';\nimport { mongodbChannels } from './config/mongodb';\nimport { mongooseChannels } from './config/mongoose';\nimport { mysql2Channels } from './config/mysql2';\nimport { mysqlChannels } from './config/mysql';\nimport { nestjsChannels } from './config/nestjs';\nimport { openaiChannels } from './config/openai';\nimport { pgChannels } from './config/pg';\nimport { postgresJsChannels } from './config/postgres';\nimport { prismaChannels } from './config/prisma';\nimport { reactRouterChannels } from './config/react-router';\nimport { redisChannels } from './config/redis';\nimport { remixChannels } from './config/remix';\nimport { tediousChannels } from './config/tedious';\nimport { vercelAiChannels } from './config/vercel-ai';\n\n/**\n * Fully-qualified `diagnostics_channel` names that orchestrion publishes to.\n *\n * Orchestrion's transform always prefixes the configured `channelName` with\n * `orchestrion:${module.name}:`. So a config of\n * `{ channelName: 'query', module: { name: 'mysql' } }`\n * publishes to `orchestrion:mysql:query`.\n *\n * Subscribers (`integrations/<lib>/tracing-channel.ts`) consume the full\n * prefixed string from this map; the config files set only the unprefixed\n * suffix in `channelName`. Keeping both pieces in one file is what guarantees\n * they don't drift apart and silently stop firing.\n *\n * Kept sorted alphabetically by module so concurrent additions insert at different\n * points rather than all appending to the end (fewer merge conflicts).\n */\nexport const CHANNELS = {\n ...amqplibChannels,\n ...anthropicAiChannels,\n ...awsSdkChannels,\n ...dataloaderChannels,\n ...expressChannels,\n ...firebaseChannels,\n ...genericPoolChannels,\n ...googleGenAiChannels,\n ...graphqlChannels,\n ...hapiChannels,\n ...ioredisChannels,\n ...kafkajsChannels,\n ...knexChannels,\n ...koaChannels,\n ...langchainChannels,\n ...langgraphChannels,\n ...lruMemoizerChannels,\n ...mongodbChannels,\n ...mongooseChannels,\n ...mysql2Channels,\n ...mysqlChannels,\n ...nestjsChannels,\n ...openaiChannels,\n ...pgChannels,\n ...postgresJsChannels,\n ...prismaChannels,\n ...reactRouterChannels,\n ...redisChannels,\n ...remixChannels,\n ...tediousChannels,\n ...vercelAiChannels,\n} as const;\n\nexport type ChannelName = (typeof CHANNELS)[keyof typeof CHANNELS];\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDO,MAAM,QAAA,GAAW;AAAA,EACtB,GAAG,eAAA;AAAA,EACH,GAAG,mBAAA;AAAA,EACH,GAAG,cAAA;AAAA,EACH,GAAG,kBAAA;AAAA,EACH,GAAG,eAAA;AAAA,EACH,GAAG,gBAAA;AAAA,EACH,GAAG,mBAAA;AAAA,EACH,GAAG,mBAAA;AAAA,EACH,GAAG,eAAA;AAAA,EACH,GAAG,YAAA;AAAA,EACH,GAAG,eAAA;AAAA,EACH,GAAG,eAAA;AAAA,EACH,GAAG,YAAA;AAAA,EACH,GAAG,WAAA;AAAA,EACH,GAAG,iBAAA;AAAA,EACH,GAAG,iBAAA;AAAA,EACH,GAAG,mBAAA;AAAA,EACH,GAAG,eAAA;AAAA,EACH,GAAG,gBAAA;AAAA,EACH,GAAG,cAAA;AAAA,EACH,GAAG,aAAA;AAAA,EACH,GAAG,cAAA;AAAA,EACH,GAAG,cAAA;AAAA,EACH,GAAG,UAAA;AAAA,EACH,GAAG,kBAAA;AAAA,EACH,GAAG,cAAA;AAAA,EACH,GAAG,mBAAA;AAAA,EACH,GAAG,aAAA;AAAA,EACH,GAAG,aAAA;AAAA,EACH,GAAG,eAAA;AAAA,EACH,GAAG;AACL;;;;"}
1
+ {"version":3,"file":"channels.js","sources":["../../../src/orchestrion/channels.ts"],"sourcesContent":["import { amqplibChannels } from './config/amqplib';\nimport { anthropicAiChannels } from './config/anthropic-ai';\nimport { awsSdkChannels } from './config/aws-sdk';\nimport { dataloaderChannels } from './config/dataloader';\nimport { expressChannels } from './config/express';\nimport { firebaseChannels } from './config/firebase';\nimport { genericPoolChannels } from './config/generic-pool';\nimport { googleGenAiChannels } from './config/google-genai';\nimport { graphqlChannels } from './config/graphql';\nimport { hapiChannels } from './config/hapi';\nimport { ioredisChannels } from './config/ioredis';\nimport { kafkajsChannels } from './config/kafkajs';\nimport { knexChannels } from './config/knex';\nimport { koaChannels } from './config/koa';\nimport { langchainChannels } from './config/langchain';\nimport { langgraphChannels } from './config/langgraph';\nimport { lruMemoizerChannels } from './config/lru-memoizer';\nimport { mongodbChannels } from './config/mongodb';\nimport { mongooseChannels } from './config/mongoose';\nimport { mysql2Channels } from './config/mysql2';\nimport { mysqlChannels } from './config/mysql';\nimport { nestjsChannels } from './config/nestjs';\nimport { openaiChannels } from './config/openai';\nimport { pgChannels } from './config/pg';\nimport { postgresJsChannels } from './config/postgres';\nimport { redisChannels } from './config/redis';\nimport { remixChannels } from './config/remix';\nimport { tediousChannels } from './config/tedious';\nimport { vercelAiChannels } from './config/vercel-ai';\n\n/**\n * Fully-qualified `diagnostics_channel` names that orchestrion publishes to.\n *\n * Orchestrion's transform always prefixes the configured `channelName` with\n * `orchestrion:${module.name}:`. So a config of\n * `{ channelName: 'query', module: { name: 'mysql' } }`\n * publishes to `orchestrion:mysql:query`.\n *\n * Subscribers (`integrations/<lib>/tracing-channel.ts`) consume the full\n * prefixed string from this map; the config files set only the unprefixed\n * suffix in `channelName`. Keeping both pieces in one file is what guarantees\n * they don't drift apart and silently stop firing.\n *\n * Kept sorted alphabetically by module so concurrent additions insert at different\n * points rather than all appending to the end (fewer merge conflicts).\n */\nexport const CHANNELS = {\n ...amqplibChannels,\n ...anthropicAiChannels,\n ...awsSdkChannels,\n ...dataloaderChannels,\n ...expressChannels,\n ...firebaseChannels,\n ...genericPoolChannels,\n ...googleGenAiChannels,\n ...graphqlChannels,\n ...hapiChannels,\n ...ioredisChannels,\n ...kafkajsChannels,\n ...knexChannels,\n ...koaChannels,\n ...langchainChannels,\n ...langgraphChannels,\n ...lruMemoizerChannels,\n ...mongodbChannels,\n ...mongooseChannels,\n ...mysql2Channels,\n ...mysqlChannels,\n ...nestjsChannels,\n ...openaiChannels,\n ...pgChannels,\n ...postgresJsChannels,\n ...redisChannels,\n ...remixChannels,\n ...tediousChannels,\n ...vercelAiChannels,\n} as const;\n\nexport type ChannelName = (typeof CHANNELS)[keyof typeof CHANNELS];\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CO,MAAM,QAAA,GAAW;AAAA,EACtB,GAAG,eAAA;AAAA,EACH,GAAG,mBAAA;AAAA,EACH,GAAG,cAAA;AAAA,EACH,GAAG,kBAAA;AAAA,EACH,GAAG,eAAA;AAAA,EACH,GAAG,gBAAA;AAAA,EACH,GAAG,mBAAA;AAAA,EACH,GAAG,mBAAA;AAAA,EACH,GAAG,eAAA;AAAA,EACH,GAAG,YAAA;AAAA,EACH,GAAG,eAAA;AAAA,EACH,GAAG,eAAA;AAAA,EACH,GAAG,YAAA;AAAA,EACH,GAAG,WAAA;AAAA,EACH,GAAG,iBAAA;AAAA,EACH,GAAG,iBAAA;AAAA,EACH,GAAG,mBAAA;AAAA,EACH,GAAG,eAAA;AAAA,EACH,GAAG,gBAAA;AAAA,EACH,GAAG,cAAA;AAAA,EACH,GAAG,aAAA;AAAA,EACH,GAAG,cAAA;AAAA,EACH,GAAG,cAAA;AAAA,EACH,GAAG,UAAA;AAAA,EACH,GAAG,kBAAA;AAAA,EACH,GAAG,aAAA;AAAA,EACH,GAAG,aAAA;AAAA,EACH,GAAG,eAAA;AAAA,EACH,GAAG;AACL;;;;"}
@@ -1,3 +1,5 @@
1
+ import { toSubscribeInjections } from './subscribe-injection.js';
2
+
1
3
  const module$1 = { name: "amqplib", versionRange: ">=0.5.5 <2" };
2
4
  const amqplibConfig = [
3
5
  // Producer span + trace-header injection. `sendToQueue` delegates to `publish`, so it's covered.
@@ -73,6 +75,7 @@ const amqplibChannels = {
73
75
  AMQPLIB_NACK_ALL: "orchestrion:amqplib:nackAll",
74
76
  AMQPLIB_CONNECT: "orchestrion:amqplib:connect"
75
77
  };
78
+ const amqplibSubscribeInjection = toSubscribeInjections(amqplibConfig);
76
79
 
77
- export { amqplibChannels, amqplibConfig };
80
+ export { amqplibChannels, amqplibConfig, amqplibSubscribeInjection };
78
81
  //# sourceMappingURL=amqplib.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"amqplib.js","sources":["../../../../src/orchestrion/config/amqplib.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\n// `amqplib` splits its API across three files:\n// - `lib/channel_model.js` holds `class Channel` (publish/consume/ack/nack/reject/…) and\n// `class ConfirmChannel extends Channel` (a `publish` that takes a broker-confirm callback).\n// - `lib/channel.js` holds `class BaseChannel` whose `dispatchMessage` invokes the registered\n// consumer callback once per delivered message — the natural per-message hook for consumer spans\n// (`Channel.consume` itself only registers the callback, it isn't called per message).\n// - `lib/connect.js` holds the `connect` function whose callback receives the open connection, used\n// to capture connection attributes.\n//\n// The version range mirrors `supportedVersions` in the vendored OTel instrumentation.\nconst module = { name: 'amqplib', versionRange: '>=0.5.5 <2' } as const;\n\nexport const amqplibConfig = [\n // Producer span + trace-header injection. `sendToQueue` delegates to `publish`, so it's covered.\n {\n channelName: 'publish',\n module: { ...module, filePath: 'lib/channel_model.js' },\n functionQuery: { className: 'Channel', methodName: 'publish', kind: 'Sync' },\n },\n // Confirm-channel producer span; the trailing broker-confirm callback ends the span when the\n // broker acks/nacks. It internally calls `super.publish`, so the subscriber guards against the\n // base `publish` channel double-instrumenting.\n {\n channelName: 'confirmPublish',\n module: { ...module, filePath: 'lib/channel_model.js' },\n functionQuery: { className: 'ConfirmChannel', methodName: 'publish', kind: 'Callback' },\n },\n // Records `consumerTag -> { noAck, queue }` so the per-message dispatch hook knows how to name and\n // when to end the consumer span.\n {\n channelName: 'consume',\n module: { ...module, filePath: 'lib/channel_model.js' },\n functionQuery: { className: 'Channel', methodName: 'consume', kind: 'Async' },\n },\n // Per delivered message: creates the consumer span and runs the user callback under it.\n {\n channelName: 'dispatch',\n module: { ...module, filePath: 'lib/channel.js' },\n functionQuery: { className: 'BaseChannel', methodName: 'dispatchMessage', kind: 'Sync' },\n },\n // End the consumer span when the user settles the message.\n {\n channelName: 'ack',\n module: { ...module, filePath: 'lib/channel_model.js' },\n functionQuery: { className: 'Channel', methodName: 'ack', kind: 'Sync' },\n },\n {\n channelName: 'nack',\n module: { ...module, filePath: 'lib/channel_model.js' },\n functionQuery: { className: 'Channel', methodName: 'nack', kind: 'Sync' },\n },\n {\n channelName: 'reject',\n module: { ...module, filePath: 'lib/channel_model.js' },\n functionQuery: { className: 'Channel', methodName: 'reject', kind: 'Sync' },\n },\n {\n channelName: 'ackAll',\n module: { ...module, filePath: 'lib/channel_model.js' },\n functionQuery: { className: 'Channel', methodName: 'ackAll', kind: 'Sync' },\n },\n {\n channelName: 'nackAll',\n module: { ...module, filePath: 'lib/channel_model.js' },\n functionQuery: { className: 'Channel', methodName: 'nackAll', kind: 'Sync' },\n },\n // Stashes connection attributes (url/host/port/protocol/server product) on the connection object\n // for span-time reads via `channel.connection`.\n {\n channelName: 'connect',\n module: { ...module, filePath: 'lib/connect.js' },\n functionQuery: { functionName: 'connect', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const amqplibChannels = {\n AMQPLIB_PUBLISH: 'orchestrion:amqplib:publish',\n AMQPLIB_CONFIRM_PUBLISH: 'orchestrion:amqplib:confirmPublish',\n AMQPLIB_CONSUME: 'orchestrion:amqplib:consume',\n AMQPLIB_DISPATCH: 'orchestrion:amqplib:dispatch',\n AMQPLIB_ACK: 'orchestrion:amqplib:ack',\n AMQPLIB_NACK: 'orchestrion:amqplib:nack',\n AMQPLIB_REJECT: 'orchestrion:amqplib:reject',\n AMQPLIB_ACK_ALL: 'orchestrion:amqplib:ackAll',\n AMQPLIB_NACK_ALL: 'orchestrion:amqplib:nackAll',\n AMQPLIB_CONNECT: 'orchestrion:amqplib:connect',\n} as const;\n"],"names":["module"],"mappings":"AAYA,MAAMA,QAAA,GAAS,EAAE,IAAA,EAAM,SAAA,EAAW,cAAc,YAAA,EAAa;AAEtD,MAAM,aAAA,GAAgB;AAAA;AAAA,EAE3B;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,sBAAA,EAAuB;AAAA,IACtD,eAAe,EAAE,SAAA,EAAW,WAAW,UAAA,EAAY,SAAA,EAAW,MAAM,MAAA;AAAO,GAC7E;AAAA;AAAA;AAAA;AAAA,EAIA;AAAA,IACE,WAAA,EAAa,gBAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,sBAAA,EAAuB;AAAA,IACtD,eAAe,EAAE,SAAA,EAAW,kBAAkB,UAAA,EAAY,SAAA,EAAW,MAAM,UAAA;AAAW,GACxF;AAAA;AAAA;AAAA,EAGA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,sBAAA,EAAuB;AAAA,IACtD,eAAe,EAAE,SAAA,EAAW,WAAW,UAAA,EAAY,SAAA,EAAW,MAAM,OAAA;AAAQ,GAC9E;AAAA;AAAA,EAEA;AAAA,IACE,WAAA,EAAa,UAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,gBAAA,EAAiB;AAAA,IAChD,eAAe,EAAE,SAAA,EAAW,eAAe,UAAA,EAAY,iBAAA,EAAmB,MAAM,MAAA;AAAO,GACzF;AAAA;AAAA,EAEA;AAAA,IACE,WAAA,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AAiB,6BAAA;AAAA,EACjB,uBAAA,EAAyB,oCAAA;AAAA,EACzB,eAAA,EAAiB,6BAAA;AAAA,EACjB,gBAAA,EAAkB,8BAAA;AAAA,EAClB,WAAA,EAAa,yBAAA;AAAA,EACb,YAAA,EAAc,0BAAA;AAAA,EACd,cAAA,EAAgB,4BAAA;AAAA,EAChB,eAAA,EAAiB,4BAAA;AAAA,EACjB,gBAAA,EAAkB,6BAAA;AAAA,EAClB,eAAA,EAAiB;AACnB;;;;"}
1
+ {"version":3,"file":"amqplib.js","sources":["../../../../src/orchestrion/config/amqplib.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\nimport { toSubscribeInjections } from './subscribe-injection';\n\n// `amqplib` splits its API across three files:\n// - `lib/channel_model.js` holds `class Channel` (publish/consume/ack/nack/reject/…) and\n// `class ConfirmChannel extends Channel` (a `publish` that takes a broker-confirm callback).\n// - `lib/channel.js` holds `class BaseChannel` whose `dispatchMessage` invokes the registered\n// consumer callback once per delivered message — the natural per-message hook for consumer spans\n// (`Channel.consume` itself only registers the callback, it isn't called per message).\n// - `lib/connect.js` holds the `connect` function whose callback receives the open connection, used\n// to capture connection attributes.\n//\n// The version range mirrors `supportedVersions` in the vendored OTel instrumentation.\nconst module = { name: 'amqplib', versionRange: '>=0.5.5 <2' } as const;\n\nexport const amqplibConfig = [\n // Producer span + trace-header injection. `sendToQueue` delegates to `publish`, so it's covered.\n {\n channelName: 'publish',\n module: { ...module, filePath: 'lib/channel_model.js' },\n functionQuery: { className: 'Channel', methodName: 'publish', kind: 'Sync' },\n },\n // Confirm-channel producer span; the trailing broker-confirm callback ends the span when the\n // broker acks/nacks. It internally calls `super.publish`, so the subscriber guards against the\n // base `publish` channel double-instrumenting.\n {\n channelName: 'confirmPublish',\n module: { ...module, filePath: 'lib/channel_model.js' },\n functionQuery: { className: 'ConfirmChannel', methodName: 'publish', kind: 'Callback' },\n },\n // Records `consumerTag -> { noAck, queue }` so the per-message dispatch hook knows how to name and\n // when to end the consumer span.\n {\n channelName: 'consume',\n module: { ...module, filePath: 'lib/channel_model.js' },\n functionQuery: { className: 'Channel', methodName: 'consume', kind: 'Async' },\n },\n // Per delivered message: creates the consumer span and runs the user callback under it.\n {\n channelName: 'dispatch',\n module: { ...module, filePath: 'lib/channel.js' },\n functionQuery: { className: 'BaseChannel', methodName: 'dispatchMessage', kind: 'Sync' },\n },\n // End the consumer span when the user settles the message.\n {\n channelName: 'ack',\n module: { ...module, filePath: 'lib/channel_model.js' },\n functionQuery: { className: 'Channel', methodName: 'ack', kind: 'Sync' },\n },\n {\n channelName: 'nack',\n module: { ...module, filePath: 'lib/channel_model.js' },\n functionQuery: { className: 'Channel', methodName: 'nack', kind: 'Sync' },\n },\n {\n channelName: 'reject',\n module: { ...module, filePath: 'lib/channel_model.js' },\n functionQuery: { className: 'Channel', methodName: 'reject', kind: 'Sync' },\n },\n {\n channelName: 'ackAll',\n module: { ...module, filePath: 'lib/channel_model.js' },\n functionQuery: { className: 'Channel', methodName: 'ackAll', kind: 'Sync' },\n },\n {\n channelName: 'nackAll',\n module: { ...module, filePath: 'lib/channel_model.js' },\n functionQuery: { className: 'Channel', methodName: 'nackAll', kind: 'Sync' },\n },\n // Stashes connection attributes (url/host/port/protocol/server product) on the connection object\n // for span-time reads via `channel.connection`.\n {\n channelName: 'connect',\n module: { ...module, filePath: 'lib/connect.js' },\n functionQuery: { functionName: 'connect', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const amqplibChannels = {\n AMQPLIB_PUBLISH: 'orchestrion:amqplib:publish',\n AMQPLIB_CONFIRM_PUBLISH: 'orchestrion:amqplib:confirmPublish',\n AMQPLIB_CONSUME: 'orchestrion:amqplib:consume',\n AMQPLIB_DISPATCH: 'orchestrion:amqplib:dispatch',\n AMQPLIB_ACK: 'orchestrion:amqplib:ack',\n AMQPLIB_NACK: 'orchestrion:amqplib:nack',\n AMQPLIB_REJECT: 'orchestrion:amqplib:reject',\n AMQPLIB_ACK_ALL: 'orchestrion:amqplib:ackAll',\n AMQPLIB_NACK_ALL: 'orchestrion:amqplib:nackAll',\n AMQPLIB_CONNECT: 'orchestrion:amqplib:connect',\n} as const;\n\nexport const amqplibSubscribeInjection = toSubscribeInjections(amqplibConfig);\n"],"names":["module"],"mappings":";;AAaA,MAAMA,QAAA,GAAS,EAAE,IAAA,EAAM,SAAA,EAAW,cAAc,YAAA,EAAa;AAEtD,MAAM,aAAA,GAAgB;AAAA;AAAA,EAE3B;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,sBAAA,EAAuB;AAAA,IACtD,eAAe,EAAE,SAAA,EAAW,WAAW,UAAA,EAAY,SAAA,EAAW,MAAM,MAAA;AAAO,GAC7E;AAAA;AAAA;AAAA;AAAA,EAIA;AAAA,IACE,WAAA,EAAa,gBAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,sBAAA,EAAuB;AAAA,IACtD,eAAe,EAAE,SAAA,EAAW,kBAAkB,UAAA,EAAY,SAAA,EAAW,MAAM,UAAA;AAAW,GACxF;AAAA;AAAA;AAAA,EAGA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,sBAAA,EAAuB;AAAA,IACtD,eAAe,EAAE,SAAA,EAAW,WAAW,UAAA,EAAY,SAAA,EAAW,MAAM,OAAA;AAAQ,GAC9E;AAAA;AAAA,EAEA;AAAA,IACE,WAAA,EAAa,UAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,gBAAA,EAAiB;AAAA,IAChD,eAAe,EAAE,SAAA,EAAW,eAAe,UAAA,EAAY,iBAAA,EAAmB,MAAM,MAAA;AAAO,GACzF;AAAA;AAAA,EAEA;AAAA,IACE,WAAA,EAAa,KAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ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AA,EAAiB,6BAAA;AAAA,EACjB,gBAAA,EAAkB,8BAAA;AAAA,EAClB,WAAA,EAAa,yBAAA;AAAA,EACb,YAAA,EAAc,0BAAA;AAAA,EACd,cAAA,EAAgB,4BAAA;AAAA,EAChB,eAAA,EAAiB,4BAAA;AAAA,EACjB,gBAAA,EAAkB,6BAAA;AAAA,EAClB,eAAA,EAAiB;AACnB;AAEO,MAAM,yBAAA,GAA4B,sBAAsB,aAAa;;;;"}
@@ -1,3 +1,5 @@
1
+ import { toSubscribeInjections } from './subscribe-injection.js';
2
+
1
3
  const anthropicAiConfig = [
2
4
  // One entry each for CJS/ESM
3
5
  ...["resources/messages/messages.js", "resources/messages/messages.mjs"].flatMap(
@@ -35,6 +37,7 @@ const anthropicAiChannels = {
35
37
  ANTHROPIC_MODELS: "orchestrion:@anthropic-ai/sdk:models",
36
38
  ANTHROPIC_MESSAGES_STREAM: "orchestrion:@anthropic-ai/sdk:messages-stream"
37
39
  };
40
+ const anthropicAiSubscribeInjection = toSubscribeInjections(anthropicAiConfig);
38
41
 
39
- export { anthropicAiChannels, anthropicAiConfig };
42
+ export { anthropicAiChannels, anthropicAiConfig, anthropicAiSubscribeInjection };
40
43
  //# sourceMappingURL=anthropic-ai.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"anthropic-ai.js","sources":["../../../../src/orchestrion/config/anthropic-ai.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\nexport const anthropicAiConfig = [\n // One entry each for CJS/ESM\n ...['resources/messages/messages.js', 'resources/messages/messages.mjs'].flatMap(filePath =>\n (['create', 'countTokens'] as const).map(methodName => ({\n channelName: 'chat',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <1', filePath },\n functionQuery: { className: 'Messages', methodName, kind: 'Auto' as const },\n })),\n ),\n ...['resources/completions.js', 'resources/completions.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <1', filePath },\n functionQuery: { className: 'Completions', methodName: 'create', kind: 'Auto' as const },\n })),\n ...['resources/beta/messages/messages.js', 'resources/beta/messages/messages.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <1', filePath },\n functionQuery: { className: 'Messages', methodName: 'create', kind: 'Auto' as const },\n })),\n ...['resources/models.js', 'resources/models.mjs'].map(filePath => ({\n channelName: 'models',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <1', filePath },\n functionQuery: { className: 'Models', methodName: 'retrieve', kind: 'Auto' as const },\n })),\n // `messages.stream()` returns a synchronous emitter, not a promise, so `kind: 'Sync'` is required:\n // `Auto`'s promise wrapper never publishes `end` for a non-thenable return, so the span would never end.\n ...['resources/messages/messages.js', 'resources/messages/messages.mjs'].map(filePath => ({\n channelName: 'messages-stream',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <1', filePath },\n functionQuery: { className: 'Messages', methodName: 'stream', kind: 'Sync' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const anthropicAiChannels = {\n ANTHROPIC_CHAT: 'orchestrion:@anthropic-ai/sdk:chat',\n ANTHROPIC_MODELS: 'orchestrion:@anthropic-ai/sdk:models',\n ANTHROPIC_MESSAGES_STREAM: 'orchestrion:@anthropic-ai/sdk:messages-stream',\n} as const;\n"],"names":[],"mappings":"AAEO,MAAM,iBAAA,GAAoB;AAAA;AAAA,EAE/B,GAAG,CAAC,gCAAA,EAAkC,iCAAiC,CAAA,CAAE,OAAA;AAAA,IAAQ,cAC9E,CAAC,QAAA,EAAU,aAAa,CAAA,CAAY,IAAI,CAAA,UAAA,MAAe;AAAA,MACtD,WAAA,EAAa,MAAA;AAAA,MACb,QAAQ,EAAE,IAAA,EAAM,mBAAA,EAAqB,YAAA,EAAc,eAAe,QAAA,EAAS;AAAA,MAC3E,eAAe,EAAE,SAAA,EAAW,UAAA,EAAY,UAAA,EAAY,MAAM,MAAA;AAAgB,KAC5E,CAAE;AAA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GAAsB;AAAA,EACjC,cAAA,EAAgB,oCAAA;AAAA,EAChB,gBAAA,EAAkB,sCAAA;AAAA,EAClB,yBAAA,EAA2B;AAC7B;;;;"}
1
+ {"version":3,"file":"anthropic-ai.js","sources":["../../../../src/orchestrion/config/anthropic-ai.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\nimport { toSubscribeInjections } from './subscribe-injection';\n\nexport const anthropicAiConfig = [\n // One entry each for CJS/ESM\n ...['resources/messages/messages.js', 'resources/messages/messages.mjs'].flatMap(filePath =>\n (['create', 'countTokens'] as const).map(methodName => ({\n channelName: 'chat',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <1', filePath },\n functionQuery: { className: 'Messages', methodName, kind: 'Auto' as const },\n })),\n ),\n ...['resources/completions.js', 'resources/completions.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <1', filePath },\n functionQuery: { className: 'Completions', methodName: 'create', kind: 'Auto' as const },\n })),\n ...['resources/beta/messages/messages.js', 'resources/beta/messages/messages.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <1', filePath },\n functionQuery: { className: 'Messages', methodName: 'create', kind: 'Auto' as const },\n })),\n ...['resources/models.js', 'resources/models.mjs'].map(filePath => ({\n channelName: 'models',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <1', filePath },\n functionQuery: { className: 'Models', methodName: 'retrieve', kind: 'Auto' as const },\n })),\n // `messages.stream()` returns a synchronous emitter, not a promise, so `kind: 'Sync'` is required:\n // `Auto`'s promise wrapper never publishes `end` for a non-thenable return, so the span would never end.\n ...['resources/messages/messages.js', 'resources/messages/messages.mjs'].map(filePath => ({\n channelName: 'messages-stream',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <1', filePath },\n functionQuery: { className: 'Messages', methodName: 'stream', kind: 'Sync' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const anthropicAiChannels = {\n ANTHROPIC_CHAT: 'orchestrion:@anthropic-ai/sdk:chat',\n ANTHROPIC_MODELS: 'orchestrion:@anthropic-ai/sdk:models',\n ANTHROPIC_MESSAGES_STREAM: 'orchestrion:@anthropic-ai/sdk:messages-stream',\n} as const;\n\nexport const anthropicAiSubscribeInjection = toSubscribeInjections(anthropicAiConfig);\n"],"names":[],"mappings":";;AAGO,MAAM,iBAAA,GAAoB;AAAA;AAAA,EAE/B,GAAG,CAAC,gCAAA,EAAkC,iCAAiC,CAAA,CAAE,OAAA;AAAA,IAAQ,cAC9E,CAAC,QAAA,EAAU,aAAa,CAAA,CAAY,IAAI,CAAA,UAAA,MAAe;AAAA,MACtD,WAAA,EAAa,MAAA;AAAA,MACb,QAAQ,EAAE,IAAA,EAAM,mBAAA,EAAqB,YAAA,EAAc,eAAe,QAAA,EAAS;AAAA,MAC3E,eAAe,EAAE,SAAA,EAAW,UAAA,EAAY,UAAA,EAAY,MAAM,MAAA;AAAgB,KAC5E,CAAE;AAAA,GACJ;AAAA,EACA,GAAG,CAAC,0BAAA,EAA4B,2BAA2B,CAAA,CAAE,IAAI,CAAA,QAAA,MAAa;AAAA,IAC5E,WAAA,EAAa,MAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,mBAAA,EAAqB,YAAA,EAAc,eAAe,QAAA,EAAS;AAAA,IAC3E,eAAe,EAAE,SAAA,EAAW,eAAe,UAAA,EAAY,QAAA,EAAU,MAAM,MAAA;AAAgB,GACzF,CAAE,CAAA;AAAA,EACF,GAAG,CAAC,qCAAA,EAAuC,sCAAsC,CAAA,CAAE,IAAI,CAAA,QAAA,MAAa;AAAA,IAClG,WAAA,EAAa,MAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,mBAAA,EAAqB,YAAA,EAAc,eAAe,QAAA,EAAS;AAAA,IAC3E,eAAe,EAAE,SAAA,EAAW,YAAY,UAAA,EAAY,QAAA,EAAU,MAAM,MAAA;AAAgB,GACtF,CAAE,CAAA;AAAA,EACF,GAAG,CAAC,qBAAA,EAAuB,sBAAsB,CAAA,CAAE,IAAI,CAAA,QAAA,MAAa;AAAA,IAClE,WAAA,EAAa,QAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,mBAAA,EAAqB,YAAA,EAAc,eAAe,QAAA,EAAS;AAAA,IAC3E,eAAe,EAAE,SAAA,EAAW,UAAU,UAAA,EAAY,UAAA,EAAY,MAAM,MAAA;AAAgB,GACtF,CAAE,CAAA;AAAA;AAAA;AAAA,EAGF,GAAG,CAAC,gCAAA,EAAkC,iCAAiC,CAAA,CAAE,IAAI,CAAA,QAAA,MAAa;AAAA,IACxF,WAAA,EAAa,iBAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,mBAAA,EAAqB,YAAA,EAAc,eAAe,QAAA,EAAS;AAAA,IAC3E,eAAe,EAAE,SAAA,EAAW,YAAY,UAAA,EAAY,QAAA,EAAU,MAAM,MAAA;AAAgB,GACtF,CAAE;AACJ;AAEO,MAAM,mBAAA,GAAsB;AAAA,EACjC,cAAA,EAAgB,oCAAA;AAAA,EAChB,gBAAA,EAAkB,sCAAA;AAAA,EAClB,yBAAA,EAA2B;AAC7B;AAEO,MAAM,6BAAA,GAAgC,sBAAsB,iBAAiB;;;;"}
@@ -1,3 +1,5 @@
1
+ import { toSubscribeInjections } from './subscribe-injection.js';
2
+
1
3
  const awsSdkConfig = [
2
4
  {
3
5
  channelName: "send",
@@ -20,6 +22,7 @@ const awsSdkChannels = {
20
22
  AWS_SMITHY_CLIENT_SEND: "orchestrion:@smithy/smithy-client:send",
21
23
  AWS_SDK_SMITHY_CLIENT_SEND: "orchestrion:@aws-sdk/smithy-client:send"
22
24
  };
25
+ const awsSdkSubscribeInjection = toSubscribeInjections(awsSdkConfig);
23
26
 
24
- export { awsSdkChannels, awsSdkConfig };
27
+ export { awsSdkChannels, awsSdkConfig, awsSdkSubscribeInjection };
25
28
  //# sourceMappingURL=aws-sdk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"aws-sdk.js","sources":["../../../../src/orchestrion/config/aws-sdk.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\n// The AWS SDK (v3) routes every command through the smithy `Client.prototype.send` method. Which\n// package hosts that `Client` class changed across versions, so we target all of them; only the one\n// the app's client actually extends is ever invoked.\n//\n// - `@smithy/core` >= 3.24.0: the `Client` class moved into the `client` submodule bundle.\n// - `@smithy/smithy-client`: the `Client` class for aws-sdk v3.363.0+ (pre-`@smithy/core` stack).\n// - `@aws-sdk/smithy-client`: the `Client` class for older aws-sdk v3 releases.\n//\n// `send` is `async send(command, options)` (returns a promise), so `kind: 'Async'`.\nexport const awsSdkConfig = [\n {\n channelName: 'send',\n module: { name: '@smithy/core', versionRange: '>=3.24.0 <4', filePath: 'dist-cjs/submodules/client/index.js' },\n functionQuery: { className: 'Client', methodName: 'send', kind: 'Async' },\n },\n {\n channelName: 'send',\n module: { name: '@smithy/smithy-client', versionRange: '>=1.0.3 <5', filePath: 'dist-cjs/index.js' },\n functionQuery: { className: 'Client', methodName: 'send', kind: 'Async' },\n },\n {\n channelName: 'send',\n module: { name: '@aws-sdk/smithy-client', versionRange: '^3.1.0', filePath: 'dist-cjs/index.js' },\n functionQuery: { className: 'Client', methodName: 'send', kind: 'Async' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const awsSdkChannels = {\n AWS_SMITHY_CORE_SEND: 'orchestrion:@smithy/core:send',\n AWS_SMITHY_CLIENT_SEND: 'orchestrion:@smithy/smithy-client:send',\n AWS_SDK_SMITHY_CLIENT_SEND: 'orchestrion:@aws-sdk/smithy-client:send',\n} as const;\n"],"names":[],"mappings":"AAWO,MAAM,YAAA,GAAe;AAAA,EAC1B;AAAA,IACE,WAAA,EAAa,MAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,gBAAgB,YAAA,EAAc,aAAA,EAAe,UAAU,qCAAA,EAAsC;AAAA,IAC7G,eAAe,EAAE,SAAA,EAAW,UAAU,UAAA,EAAY,MAAA,EAAQ,MAAM,OAAA;AAAQ,GAC1E;AAAA,EACA;AAAA,IACE,WAAA,EAAa,MAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,yBAAyB,YAAA,EAAc,YAAA,EAAc,UAAU,mBAAA,EAAoB;AAAA,IACnG,eAAe,EAAE,SAAA,EAAW,UAAU,UAAA,EAAY,MAAA,EAAQ,MAAM,OAAA;AAAQ,GAC1E;AAAA,EACA;AAAA,IACE,WAAA,EAAa,MAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,0BAA0B,YAAA,EAAc,QAAA,EAAU,UAAU,mBAAA,EAAoB;AAAA,IAChG,eAAe,EAAE,SAAA,EAAW,UAAU,UAAA,EAAY,MAAA,EAAQ,MAAM,OAAA;AAAQ;AAE5E;AAEO,MAAM,cAAA,GAAiB;AAAA,EAC5B,oBAAA,EAAsB,+BAAA;AAAA,EACtB,sBAAA,EAAwB,wCAAA;AAAA,EACxB,0BAAA,EAA4B;AAC9B;;;;"}
1
+ {"version":3,"file":"aws-sdk.js","sources":["../../../../src/orchestrion/config/aws-sdk.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\nimport { toSubscribeInjections } from './subscribe-injection';\n\n// The AWS SDK (v3) routes every command through the smithy `Client.prototype.send` method. Which\n// package hosts that `Client` class changed across versions, so we target all of them; only the one\n// the app's client actually extends is ever invoked.\n//\n// - `@smithy/core` >= 3.24.0: the `Client` class moved into the `client` submodule bundle.\n// - `@smithy/smithy-client`: the `Client` class for aws-sdk v3.363.0+ (pre-`@smithy/core` stack).\n// - `@aws-sdk/smithy-client`: the `Client` class for older aws-sdk v3 releases.\n//\n// `send` is `async send(command, options)` (returns a promise), so `kind: 'Async'`.\nexport const awsSdkConfig = [\n {\n channelName: 'send',\n module: { name: '@smithy/core', versionRange: '>=3.24.0 <4', filePath: 'dist-cjs/submodules/client/index.js' },\n functionQuery: { className: 'Client', methodName: 'send', kind: 'Async' },\n },\n {\n channelName: 'send',\n module: { name: '@smithy/smithy-client', versionRange: '>=1.0.3 <5', filePath: 'dist-cjs/index.js' },\n functionQuery: { className: 'Client', methodName: 'send', kind: 'Async' },\n },\n {\n channelName: 'send',\n module: { name: '@aws-sdk/smithy-client', versionRange: '^3.1.0', filePath: 'dist-cjs/index.js' },\n functionQuery: { className: 'Client', methodName: 'send', kind: 'Async' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const awsSdkChannels = {\n AWS_SMITHY_CORE_SEND: 'orchestrion:@smithy/core:send',\n AWS_SMITHY_CLIENT_SEND: 'orchestrion:@smithy/smithy-client:send',\n AWS_SDK_SMITHY_CLIENT_SEND: 'orchestrion:@aws-sdk/smithy-client:send',\n} as const;\n\nexport const awsSdkSubscribeInjection = toSubscribeInjections(awsSdkConfig);\n"],"names":[],"mappings":";;AAYO,MAAM,YAAA,GAAe;AAAA,EAC1B;AAAA,IACE,WAAA,EAAa,MAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,gBAAgB,YAAA,EAAc,aAAA,EAAe,UAAU,qCAAA,EAAsC;AAAA,IAC7G,eAAe,EAAE,SAAA,EAAW,UAAU,UAAA,EAAY,MAAA,EAAQ,MAAM,OAAA;AAAQ,GAC1E;AAAA,EACA;AAAA,IACE,WAAA,EAAa,MAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,yBAAyB,YAAA,EAAc,YAAA,EAAc,UAAU,mBAAA,EAAoB;AAAA,IACnG,eAAe,EAAE,SAAA,EAAW,UAAU,UAAA,EAAY,MAAA,EAAQ,MAAM,OAAA;AAAQ,GAC1E;AAAA,EACA;AAAA,IACE,WAAA,EAAa,MAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,0BAA0B,YAAA,EAAc,QAAA,EAAU,UAAU,mBAAA,EAAoB;AAAA,IAChG,eAAe,EAAE,SAAA,EAAW,UAAU,UAAA,EAAY,MAAA,EAAQ,MAAM,OAAA;AAAQ;AAE5E;AAEO,MAAM,cAAA,GAAiB;AAAA,EAC5B,oBAAA,EAAsB,+BAAA;AAAA,EACtB,sBAAA,EAAwB,wCAAA;AAAA,EACxB,0BAAA,EAA4B;AAC9B;AAEO,MAAM,wBAAA,GAA2B,sBAAsB,YAAY;;;;"}
@@ -0,0 +1,26 @@
1
+ const CHANNEL_INTEGRATION_DEFINITIONS = [
2
+ { exportName: "postgresChannelIntegration", modules: ["pg", "pg-pool"] },
3
+ { exportName: "postgresJsChannelIntegration", modules: ["postgres"] },
4
+ { exportName: "mysqlChannelIntegration", modules: ["mysql"] },
5
+ { exportName: "mysql2ChannelIntegration", modules: ["mysql2"] },
6
+ { exportName: "genericPoolChannelIntegration", modules: ["generic-pool"] },
7
+ { exportName: "lruMemoizerChannelIntegration", modules: ["lru-memoizer"] },
8
+ { exportName: "openaiChannelIntegration", modules: ["openai"] },
9
+ { exportName: "anthropicChannelIntegration", modules: ["@anthropic-ai/sdk"] },
10
+ { exportName: "googleGenAIChannelIntegration", modules: ["@google/genai"] },
11
+ { exportName: "vercelAiChannelIntegration", modules: ["ai"] },
12
+ { exportName: "amqplibChannelIntegration", modules: ["amqplib"] },
13
+ { exportName: "hapiChannelIntegration", modules: ["@hapi/hapi"] },
14
+ { exportName: "expressChannelIntegration", modules: ["express", "router"] },
15
+ { exportName: "graphqlChannelIntegration", modules: ["graphql"] },
16
+ { exportName: "kafkajsChannelIntegration", modules: ["kafkajs"] },
17
+ { exportName: "redisChannelIntegration", modules: ["redis", "@redis/client"] },
18
+ { exportName: "ioredisChannelIntegration", modules: ["ioredis"] },
19
+ { exportName: "dataloaderChannelIntegration", modules: ["dataloader"] }
20
+ ];
21
+ function subscriberExportForModule(moduleName) {
22
+ return CHANNEL_INTEGRATION_DEFINITIONS.find((d) => d.modules.includes(moduleName))?.exportName;
23
+ }
24
+
25
+ export { CHANNEL_INTEGRATION_DEFINITIONS, subscriberExportForModule };
26
+ //# sourceMappingURL=channel-integration-definitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channel-integration-definitions.js","sources":["../../../../src/orchestrion/config/channel-integration-definitions.ts"],"sourcesContent":["/**\n * Build-time metadata mapping each instrumented package (orchestrion\n * `module.name`) to the channel-subscriber integration that consumes the\n * channels injected into it — by the `exportName` it is published under from\n * `@sentry/server-utils/orchestrion`.\n *\n * Kept in a separate, factory-free module on purpose: the subscribe-injection\n * transform (reachable from every orchestrion bundler plugin) reads this to\n * generate the tiny snippet it injects into each instrumented file, and must\n * not drag any subscriber code — or its `@sentry/core` span machinery — into\n * the plugin's own build to do so.\n *\n * `exportName` must be a named export of `@sentry/server-utils/orchestrion`.\n * `modules` must match `module.name` values in `SENTRY_INSTRUMENTATIONS` — e.g.\n * `postgresChannelIntegration` covers both `pg` and `pg-pool`, and\n * `redisChannelIntegration` both `redis` and `@redis/client`.\n *\n * `redis`, `ioredis` and `dataloader` are included even though they're not in\n * the node SDK's `channelIntegrations` (they only partially replace an OTel\n * integration there): in a bundler-only runtime like Cloudflare Workers there\n * is no OTel integration to coordinate with, so subscribing whenever the\n * package is bundled is unconditionally correct.\n */\nexport const CHANNEL_INTEGRATION_DEFINITIONS = [\n { exportName: 'postgresChannelIntegration', modules: ['pg', 'pg-pool'] },\n { exportName: 'postgresJsChannelIntegration', modules: ['postgres'] },\n { exportName: 'mysqlChannelIntegration', modules: ['mysql'] },\n { exportName: 'mysql2ChannelIntegration', modules: ['mysql2'] },\n { exportName: 'genericPoolChannelIntegration', modules: ['generic-pool'] },\n { exportName: 'lruMemoizerChannelIntegration', modules: ['lru-memoizer'] },\n { exportName: 'openaiChannelIntegration', modules: ['openai'] },\n { exportName: 'anthropicChannelIntegration', modules: ['@anthropic-ai/sdk'] },\n { exportName: 'googleGenAIChannelIntegration', modules: ['@google/genai'] },\n { exportName: 'vercelAiChannelIntegration', modules: ['ai'] },\n { exportName: 'amqplibChannelIntegration', modules: ['amqplib'] },\n { exportName: 'hapiChannelIntegration', modules: ['@hapi/hapi'] },\n { exportName: 'expressChannelIntegration', modules: ['express', 'router'] },\n { exportName: 'graphqlChannelIntegration', modules: ['graphql'] },\n { exportName: 'kafkajsChannelIntegration', modules: ['kafkajs'] },\n { exportName: 'redisChannelIntegration', modules: ['redis', '@redis/client'] },\n { exportName: 'ioredisChannelIntegration', modules: ['ioredis'] },\n { exportName: 'dataloaderChannelIntegration', modules: ['dataloader'] },\n] as const satisfies ReadonlyArray<{ exportName: string; modules: readonly string[] }>;\n\n/** Look up the subscriber export name for an instrumented package, if any. */\nexport function subscriberExportForModule(moduleName: string): string | undefined {\n return CHANNEL_INTEGRATION_DEFINITIONS.find(d => (d.modules as readonly string[]).includes(moduleName))?.exportName;\n}\n"],"names":[],"mappings":"AAuBO,MAAM,+BAAA,GAAkC;AAAA,EAC7C,EAAE,UAAA,EAAY,4BAAA,EAA8B,SAAS,CAAC,IAAA,EAAM,SAAS,CAAA,EAAE;AAAA,EACvE,EAAE,UAAA,EAAY,8BAAA,EAAgC,OAAA,EAAS,CAAC,UAAU,CAAA,EAAE;AAAA,EACpE,EAAE,UAAA,EAAY,yBAAA,EAA2B,OAAA,EAAS,CAAC,OAAO,CAAA,EAAE;AAAA,EAC5D,EAAE,UAAA,EAAY,0BAAA,EAA4B,OAAA,EAAS,CAAC,QAAQ,CAAA,EAAE;AAAA,EAC9D,EAAE,UAAA,EAAY,+BAAA,EAAiC,OAAA,EAAS,CAAC,cAAc,CAAA,EAAE;AAAA,EACzE,EAAE,UAAA,EAAY,+BAAA,EAAiC,OAAA,EAAS,CAAC,cAAc,CAAA,EAAE;AAAA,EACzE,EAAE,UAAA,EAAY,0BAAA,EAA4B,OAAA,EAAS,CAAC,QAAQ,CAAA,EAAE;AAAA,EAC9D,EAAE,UAAA,EAAY,6BAAA,EAA+B,OAAA,EAAS,CAAC,mBAAmB,CAAA,EAAE;AAAA,EAC5E,EAAE,UAAA,EAAY,+BAAA,EAAiC,OAAA,EAAS,CAAC,eAAe,CAAA,EAAE;AAAA,EAC1E,EAAE,UAAA,EAAY,4BAAA,EAA8B,OAAA,EAAS,CAAC,IAAI,CAAA,EAAE;AAAA,EAC5D,EAAE,UAAA,EAAY,2BAAA,EAA6B,OAAA,EAAS,CAAC,SAAS,CAAA,EAAE;AAAA,EAChE,EAAE,UAAA,EAAY,wBAAA,EAA0B,OAAA,EAAS,CAAC,YAAY,CAAA,EAAE;AAAA,EAChE,EAAE,UAAA,EAAY,2BAAA,EAA6B,SAAS,CAAC,SAAA,EAAW,QAAQ,CAAA,EAAE;AAAA,EAC1E,EAAE,UAAA,EAAY,2BAAA,EAA6B,OAAA,EAAS,CAAC,SAAS,CAAA,EAAE;AAAA,EAChE,EAAE,UAAA,EAAY,2BAAA,EAA6B,OAAA,EAAS,CAAC,SAAS,CAAA,EAAE;AAAA,EAChE,EAAE,UAAA,EAAY,yBAAA,EAA2B,SAAS,CAAC,OAAA,EAAS,eAAe,CAAA,EAAE;AAAA,EAC7E,EAAE,UAAA,EAAY,2BAAA,EAA6B,OAAA,EAAS,CAAC,SAAS,CAAA,EAAE;AAAA,EAChE,EAAE,UAAA,EAAY,8BAAA,EAAgC,OAAA,EAAS,CAAC,YAAY,CAAA;AACtE;AAGO,SAAS,0BAA0B,UAAA,EAAwC;AAChF,EAAA,OAAO,+BAAA,CAAgC,KAAK,CAAA,CAAA,KAAM,CAAA,CAAE,QAA8B,QAAA,CAAS,UAAU,CAAC,CAAA,EAAG,UAAA;AAC3G;;;;"}
@@ -1,3 +1,5 @@
1
+ import { toSubscribeInjections } from './subscribe-injection.js';
2
+
1
3
  const module$1 = { name: "dataloader", versionRange: ">=2.0.0 <3", filePath: "index.js" };
2
4
  const dataloaderConfig = [
3
5
  // Wrap the constructor so the subscriber can wrap the user's `batchLoadFn` (arg 0). The batch span
@@ -45,6 +47,7 @@ const dataloaderChannels = {
45
47
  DATALOADER_CLEAR: "orchestrion:dataloader:clear",
46
48
  DATALOADER_CLEAR_ALL: "orchestrion:dataloader:clearAll"
47
49
  };
50
+ const dataloaderSubscribeInjection = toSubscribeInjections(dataloaderConfig);
48
51
 
49
- export { dataloaderChannels, dataloaderConfig };
52
+ export { dataloaderChannels, dataloaderConfig, dataloaderSubscribeInjection };
50
53
  //# sourceMappingURL=dataloader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dataloader.js","sources":["../../../../src/orchestrion/config/dataloader.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\n// `dataloader` ships a single transpiled CommonJS `index.js`. Its class methods are emitted as\n// `_proto.<name> = function <name>() {}` (named function *expressions*), so they match on\n// `expressionName` rather than `methodName`. The constructor is a named function declaration.\n// The version range mirrors `supportedVersions` in the vendored OTel instrumentation.\nconst module = { name: 'dataloader', versionRange: '>=2.0.0 <3', filePath: 'index.js' } as const;\n\nexport const dataloaderConfig = [\n // Wrap the constructor so the subscriber can wrap the user's `batchLoadFn` (arg 0). The batch span\n // is opened when that wrapped function actually runs (on the deferred dispatch tick), mirroring the\n // vendored OTel instrumentation which also wraps `batchLoadFn` at construction time.\n {\n channelName: 'construct',\n module,\n functionQuery: { functionName: 'DataLoader', kind: 'Sync' },\n },\n // `load`/`loadMany` return Promises, so they're `Async`: the span ends on `asyncEnd` (when the\n // load resolves), capturing the real latency and enclosing the deferred `batch` span — matching the\n // vendored OTel `startSpan`. `prime`/`clear`/`clearAll` return `this` synchronously, so they stay `Sync`.\n {\n channelName: 'load',\n module,\n functionQuery: { expressionName: 'load', kind: 'Async' },\n },\n {\n channelName: 'loadMany',\n module,\n functionQuery: { expressionName: 'loadMany', kind: 'Async' },\n },\n {\n channelName: 'prime',\n module,\n functionQuery: { expressionName: 'prime', kind: 'Sync' },\n },\n {\n channelName: 'clear',\n module,\n functionQuery: { expressionName: 'clear', kind: 'Sync' },\n },\n {\n channelName: 'clearAll',\n module,\n functionQuery: { expressionName: 'clearAll', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const dataloaderChannels = {\n DATALOADER_CONSTRUCT: 'orchestrion:dataloader:construct',\n DATALOADER_LOAD: 'orchestrion:dataloader:load',\n DATALOADER_LOAD_MANY: 'orchestrion:dataloader:loadMany',\n DATALOADER_PRIME: 'orchestrion:dataloader:prime',\n DATALOADER_CLEAR: 'orchestrion:dataloader:clear',\n DATALOADER_CLEAR_ALL: 'orchestrion:dataloader:clearAll',\n} as const;\n"],"names":["module"],"mappings":"AAMA,MAAMA,WAAS,EAAE,IAAA,EAAM,cAAc,YAAA,EAAc,YAAA,EAAc,UAAU,UAAA,EAAW;AAE/E,MAAM,gBAAA,GAAmB;AAAA;AAAA;AAAA;AAAA,EAI9B;AAAA,IACE,WAAA,EAAa,WAAA;AAAA,YACbA,QAAA;AAAA,IACA,aAAA,EAAe,EAAE,YAAA,EAAc,YAAA,EAAc,MAAM,MAAA;AAAO,GAC5D;AAAA;AAAA;AAAA;AAAA,EAIA;AAAA,IACE,WAAA,EAAa,MAAA;AAAA,YACbA,QAAA;AAAA,IACA,aAAA,EAAe,EAAE,cAAA,EAAgB,MAAA,EAAQ,MAAM,OAAA;AAAQ,GACzD;AAAA,EACA;AAAA,IACE,WAAA,EAAa,UAAA;AAAA,YACbA,QAAA;AAAA,IACA,aAAA,EAAe,EAAE,cAAA,EAAgB,UAAA,EAAY,MAAM,OAAA;AAAQ,GAC7D;AAAA,EACA;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,YACbA,QAAA;AAAA,IACA,aAAA,EAAe,EAAE,cAAA,EAAgB,OAAA,EAAS,MAAM,MAAA;AAAO,GACzD;AAAA,EACA;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,YACbA,QAAA;AAAA,IACA,aAAA,EAAe,EAAE,cAAA,EAAgB,OAAA,EAAS,MAAM,MAAA;AAAO,GACzD;AAAA,EACA;AAAA,IACE,WAAA,EAAa,UAAA;AAAA,YACbA,QAAA;AAAA,IACA,aAAA,EAAe,EAAE,cAAA,EAAgB,UAAA,EAAY,MAAM,MAAA;AAAO;AAE9D;AAEO,MAAM,kBAAA,GAAqB;AAAA,EAChC,oBAAA,EAAsB,kCAAA;AAAA,EACtB,eAAA,EAAiB,6BAAA;AAAA,EACjB,oBAAA,EAAsB,iCAAA;AAAA,EACtB,gBAAA,EAAkB,8BAAA;AAAA,EAClB,gBAAA,EAAkB,8BAAA;AAAA,EAClB,oBAAA,EAAsB;AACxB;;;;"}
1
+ {"version":3,"file":"dataloader.js","sources":["../../../../src/orchestrion/config/dataloader.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\nimport { toSubscribeInjections } from './subscribe-injection';\n\n// `dataloader` ships a single transpiled CommonJS `index.js`. Its class methods are emitted as\n// `_proto.<name> = function <name>() {}` (named function *expressions*), so they match on\n// `expressionName` rather than `methodName`. The constructor is a named function declaration.\n// The version range mirrors `supportedVersions` in the vendored OTel instrumentation.\nconst module = { name: 'dataloader', versionRange: '>=2.0.0 <3', filePath: 'index.js' } as const;\n\nexport const dataloaderConfig = [\n // Wrap the constructor so the subscriber can wrap the user's `batchLoadFn` (arg 0). The batch span\n // is opened when that wrapped function actually runs (on the deferred dispatch tick), mirroring the\n // vendored OTel instrumentation which also wraps `batchLoadFn` at construction time.\n {\n channelName: 'construct',\n module,\n functionQuery: { functionName: 'DataLoader', kind: 'Sync' },\n },\n // `load`/`loadMany` return Promises, so they're `Async`: the span ends on `asyncEnd` (when the\n // load resolves), capturing the real latency and enclosing the deferred `batch` span — matching the\n // vendored OTel `startSpan`. `prime`/`clear`/`clearAll` return `this` synchronously, so they stay `Sync`.\n {\n channelName: 'load',\n module,\n functionQuery: { expressionName: 'load', kind: 'Async' },\n },\n {\n channelName: 'loadMany',\n module,\n functionQuery: { expressionName: 'loadMany', kind: 'Async' },\n },\n {\n channelName: 'prime',\n module,\n functionQuery: { expressionName: 'prime', kind: 'Sync' },\n },\n {\n channelName: 'clear',\n module,\n functionQuery: { expressionName: 'clear', kind: 'Sync' },\n },\n {\n channelName: 'clearAll',\n module,\n functionQuery: { expressionName: 'clearAll', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const dataloaderChannels = {\n DATALOADER_CONSTRUCT: 'orchestrion:dataloader:construct',\n DATALOADER_LOAD: 'orchestrion:dataloader:load',\n DATALOADER_LOAD_MANY: 'orchestrion:dataloader:loadMany',\n DATALOADER_PRIME: 'orchestrion:dataloader:prime',\n DATALOADER_CLEAR: 'orchestrion:dataloader:clear',\n DATALOADER_CLEAR_ALL: 'orchestrion:dataloader:clearAll',\n} as const;\n\nexport const dataloaderSubscribeInjection = toSubscribeInjections(dataloaderConfig);\n"],"names":["module"],"mappings":";;AAOA,MAAMA,WAAS,EAAE,IAAA,EAAM,cAAc,YAAA,EAAc,YAAA,EAAc,UAAU,UAAA,EAAW;AAE/E,MAAM,gBAAA,GAAmB;AAAA;AAAA;AAAA;AAAA,EAI9B;AAAA,IACE,WAAA,EAAa,WAAA;AAAA,YACbA,QAAA;AAAA,IACA,aAAA,EAAe,EAAE,YAAA,EAAc,YAAA,EAAc,MAAM,MAAA;AAAO,GAC5D;AAAA;AAAA;AAAA;AAAA,EAIA;AAAA,IACE,WAAA,EAAa,MAAA;AAAA,YACbA,QAAA;AAAA,IACA,aAAA,EAAe,EAAE,cAAA,EAAgB,MAAA,EAAQ,MAAM,OAAA;AAAQ,GACzD;AAAA,EACA;AAAA,IACE,WAAA,EAAa,UAAA;AAAA,YACbA,QAAA;AAAA,IACA,aAAA,EAAe,EAAE,cAAA,EAAgB,UAAA,EAAY,MAAM,OAAA;AAAQ,GAC7D;AAAA,EACA;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,YACbA,QAAA;AAAA,IACA,aAAA,EAAe,EAAE,cAAA,EAAgB,OAAA,EAAS,MAAM,MAAA;AAAO,GACzD;AAAA,EACA;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,YACbA,QAAA;AAAA,IACA,aAAA,EAAe,EAAE,cAAA,EAAgB,OAAA,EAAS,MAAM,MAAA;AAAO,GACzD;AAAA,EACA;AAAA,IACE,WAAA,EAAa,UAAA;AAAA,YACbA,QAAA;AAAA,IACA,aAAA,EAAe,EAAE,cAAA,EAAgB,UAAA,EAAY,MAAM,MAAA;AAAO;AAE9D;AAEO,MAAM,kBAAA,GAAqB;AAAA,EAChC,oBAAA,EAAsB,kCAAA;AAAA,EACtB,eAAA,EAAiB,6BAAA;AAAA,EACjB,oBAAA,EAAsB,iCAAA;AAAA,EACtB,gBAAA,EAAkB,8BAAA;AAAA,EAClB,gBAAA,EAAkB,8BAAA;AAAA,EAClB,oBAAA,EAAsB;AACxB;AAEO,MAAM,4BAAA,GAA+B,sBAAsB,gBAAgB;;;;"}
@@ -1,3 +1,5 @@
1
+ import { toSubscribeInjections } from './subscribe-injection.js';
2
+
1
3
  const expressConfig = [
2
4
  // Express funnels every middleware/route handler through a single method on
3
5
  // its routing `Layer`, so instrumenting that one method covers the whole
@@ -69,6 +71,7 @@ const expressChannels = {
69
71
  EXPRESS_REGISTER: "orchestrion:express:register",
70
72
  ROUTER_REGISTER: "orchestrion:router:register"
71
73
  };
74
+ const expressSubscribeInjection = toSubscribeInjections(expressConfig);
72
75
 
73
- export { expressChannels, expressConfig };
76
+ export { expressChannels, expressConfig, expressSubscribeInjection };
74
77
  //# sourceMappingURL=express.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"express.js","sources":["../../../../src/orchestrion/config/express.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\nexport const expressConfig = [\n // Express funnels every middleware/route handler through a single method on\n // its routing `Layer`, so instrumenting that one method covers the whole\n // request pipeline. The `expressChannelIntegration` opens one span per layer\n // invocation. Both are `Layer.prototype.<method> = function <fn>(req, res, next)`\n // prototype assignments (not `class` methods), so `expressionName` (matching\n // the assignment's `left.property.name`) is used. `Callback`: the handler's\n // last argument is `next`, so the transform ends the traced operation when\n // `next` is invoked (and publishes `error` when it's called with an error).\n //\n // Express v4 ships its own router in `express/lib/router/layer.js`.\n {\n channelName: 'handle',\n module: { name: 'express', versionRange: '>=4.0.0 <5', filePath: 'lib/router/layer.js' },\n // v4's method is `Layer.prototype.handle_request = function handle(...)` —\n // match the assigned property name, not the function name.\n functionQuery: { expressionName: 'handle_request', kind: 'Callback' },\n },\n // Express v5 delegates routing to the standalone `router` package.\n {\n channelName: 'handle',\n module: { name: 'router', versionRange: '>=2.0.0 <3', filePath: 'lib/layer.js' },\n functionQuery: { expressionName: 'handleRequest', kind: 'Callback' },\n },\n // Layer *registration* methods. `Router.prototype.route`/`.use` are called\n // once per registered route/middleware (including internally by `app.get`/\n // `app.use`), so subscribing here lets us record each layer's registered path\n // *pattern* — which the handler path (`req.baseUrl`) can't recover for\n // parameterized mounts. `Sync`: these return synchronously and, unlike a\n // handler, `use`'s trailing function argument is a registration payload, not a\n // callback — so `Callback` would misclassify it and never fire `end`.\n //\n // `route` and `use` share one `register` channel because the subscriber handles\n // them identically, saving a channel per module.\n //\n // Express v4 ships its own router in `express/lib/router/index.js`.\n {\n channelName: 'register',\n module: { name: 'express', versionRange: '>=4.0.0 <5', filePath: 'lib/router/index.js' },\n functionQuery: { expressionName: 'route', kind: 'Sync' },\n },\n {\n channelName: 'register',\n module: { name: 'express', versionRange: '>=4.0.0 <5', filePath: 'lib/router/index.js' },\n functionQuery: { expressionName: 'use', kind: 'Sync' },\n },\n // Express v5 delegates routing to the standalone `router` package.\n {\n channelName: 'register',\n module: { name: 'router', versionRange: '>=2.0.0 <3', filePath: 'index.js' },\n functionQuery: { expressionName: 'route', kind: 'Sync' },\n },\n {\n channelName: 'register',\n module: { name: 'router', versionRange: '>=2.0.0 <3', filePath: 'index.js' },\n functionQuery: { expressionName: 'use', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const expressChannels = {\n // Express v4 runs each layer's handler through `Layer.prototype.handle_request`\n // in the `express` module.\n EXPRESS_HANDLE: 'orchestrion:express:handle',\n // Express v5 delegates routing to the standalone `router` package, where the\n // equivalent method is `Layer.prototype.handleRequest`.\n ROUTER_HANDLE: 'orchestrion:router:handle',\n // Layer *registration* (`Router.prototype.route`/`.use`), used to capture each\n // layer's registered path pattern so the matched route can be reconstructed\n // with its parameters intact (`req.baseUrl` only exposes the resolved prefix).\n EXPRESS_REGISTER: 'orchestrion:express:register',\n ROUTER_REGISTER: 'orchestrion:router:register',\n} as const;\n"],"names":[],"mappings":"AAEO,MAAM,aAAA,GAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAW3B;AAAA,IACE,WAAA,EAAa,QAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,WAAW,YAAA,EAAc,YAAA,EAAc,UAAU,qBAAA,EAAsB;AAAA;AAAA;AAAA,IAGvF,aAAA,EAAe,EAAE,cAAA,EAAgB,gBAAA,EAAkB,MAAM,UAAA;AAAW,GACtE;AAAA;AAAA,EAEA;AAAA,IACE,WAAA,EAAa,QAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,YAAA,EAAc,UAAU,cAAA,EAAe;AAAA,IAC/E,aAAA,EAAe,EAAE,cAAA,EAAgB,eAAA,EAAiB,MAAM,UAAA;AAAW,GACrE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAaA;AAAA,IACE,WAAA,EAAa,UAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,WAAW,YAAA,EAAc,YAAA,EAAc,UAAU,qBAAA,EAAsB;AAAA,IACvF,aAAA,EAAe,EAAE,cAAA,EAAgB,OAAA,EAAS,MAAM,MAAA;AAAO,GACzD;AAAA,EACA;AAAA,IACE,WAAA,EAAa,UAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,WAAW,YAAA,EAAc,YAAA,EAAc,UAAU,qBAAA,EAAsB;AAAA,IACvF,aAAA,EAAe,EAAE,cAAA,EAAgB,KAAA,EAAO,MAAM,MAAA;AAAO,GACvD;AAAA;AAAA,EAEA;AAAA,IACE,WAAA,EAAa,UAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,YAAA,EAAc,UAAU,UAAA,EAAW;AAAA,IAC3E,aAAA,EAAe,EAAE,cAAA,EAAgB,OAAA,EAAS,MAAM,MAAA;AAAO,GACzD;AAAA,EACA;AAAA,IACE,WAAA,EAAa,UAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,YAAA,EAAc,UAAU,UAAA,EAAW;AAAA,IAC3E,aAAA,EAAe,EAAE,cAAA,EAAgB,KAAA,EAAO,MAAM,MAAA;AAAO;AAEzD;AAEO,MAAM,eAAA,GAAkB;AAAA;AAAA;AAAA,EAG7B,cAAA,EAAgB,4BAAA;AAAA;AAAA;AAAA,EAGhB,aAAA,EAAe,2BAAA;AAAA;AAAA;AAAA;AAAA,EAIf,gBAAA,EAAkB,8BAAA;AAAA,EAClB,eAAA,EAAiB;AACnB;;;;"}
1
+ {"version":3,"file":"express.js","sources":["../../../../src/orchestrion/config/express.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\nimport { toSubscribeInjections } from './subscribe-injection';\n\nexport const expressConfig = [\n // Express funnels every middleware/route handler through a single method on\n // its routing `Layer`, so instrumenting that one method covers the whole\n // request pipeline. The `expressChannelIntegration` opens one span per layer\n // invocation. Both are `Layer.prototype.<method> = function <fn>(req, res, next)`\n // prototype assignments (not `class` methods), so `expressionName` (matching\n // the assignment's `left.property.name`) is used. `Callback`: the handler's\n // last argument is `next`, so the transform ends the traced operation when\n // `next` is invoked (and publishes `error` when it's called with an error).\n //\n // Express v4 ships its own router in `express/lib/router/layer.js`.\n {\n channelName: 'handle',\n module: { name: 'express', versionRange: '>=4.0.0 <5', filePath: 'lib/router/layer.js' },\n // v4's method is `Layer.prototype.handle_request = function handle(...)` —\n // match the assigned property name, not the function name.\n functionQuery: { expressionName: 'handle_request', kind: 'Callback' },\n },\n // Express v5 delegates routing to the standalone `router` package.\n {\n channelName: 'handle',\n module: { name: 'router', versionRange: '>=2.0.0 <3', filePath: 'lib/layer.js' },\n functionQuery: { expressionName: 'handleRequest', kind: 'Callback' },\n },\n // Layer *registration* methods. `Router.prototype.route`/`.use` are called\n // once per registered route/middleware (including internally by `app.get`/\n // `app.use`), so subscribing here lets us record each layer's registered path\n // *pattern* — which the handler path (`req.baseUrl`) can't recover for\n // parameterized mounts. `Sync`: these return synchronously and, unlike a\n // handler, `use`'s trailing function argument is a registration payload, not a\n // callback — so `Callback` would misclassify it and never fire `end`.\n //\n // `route` and `use` share one `register` channel because the subscriber handles\n // them identically, saving a channel per module.\n //\n // Express v4 ships its own router in `express/lib/router/index.js`.\n {\n channelName: 'register',\n module: { name: 'express', versionRange: '>=4.0.0 <5', filePath: 'lib/router/index.js' },\n functionQuery: { expressionName: 'route', kind: 'Sync' },\n },\n {\n channelName: 'register',\n module: { name: 'express', versionRange: '>=4.0.0 <5', filePath: 'lib/router/index.js' },\n functionQuery: { expressionName: 'use', kind: 'Sync' },\n },\n // Express v5 delegates routing to the standalone `router` package.\n {\n channelName: 'register',\n module: { name: 'router', versionRange: '>=2.0.0 <3', filePath: 'index.js' },\n functionQuery: { expressionName: 'route', kind: 'Sync' },\n },\n {\n channelName: 'register',\n module: { name: 'router', versionRange: '>=2.0.0 <3', filePath: 'index.js' },\n functionQuery: { expressionName: 'use', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const expressChannels = {\n // Express v4 runs each layer's handler through `Layer.prototype.handle_request`\n // in the `express` module.\n EXPRESS_HANDLE: 'orchestrion:express:handle',\n // Express v5 delegates routing to the standalone `router` package, where the\n // equivalent method is `Layer.prototype.handleRequest`.\n ROUTER_HANDLE: 'orchestrion:router:handle',\n // Layer *registration* (`Router.prototype.route`/`.use`), used to capture each\n // layer's registered path pattern so the matched route can be reconstructed\n // with its parameters intact (`req.baseUrl` only exposes the resolved prefix).\n EXPRESS_REGISTER: 'orchestrion:express:register',\n ROUTER_REGISTER: 'orchestrion:router:register',\n} as const;\n\nexport const expressSubscribeInjection = toSubscribeInjections(expressConfig);\n"],"names":[],"mappings":";;AA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,IACE,WAAA,EAAa,UAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,YAAA,EAAc,UAAU,UAAA,EAAW;AAAA,IAC3E,aAAA,EAAe,EAAE,cAAA,EAAgB,KAAA,EAAO,MAAM,MAAA;AAAO;AAEzD;AAEO,MAAM,eAAA,GAAkB;AAAA;AAAA;AAAA,EAG7B,cAAA,EAAgB,4BAAA;AAAA;AAAA;AAAA,EAGhB,aAAA,EAAe,2BAAA;AAAA;AAAA;AAAA;AAAA,EAIf,gBAAA,EAAkB,8BAAA;AAAA,EAClB,eAAA,EAAiB;AACnB;AAEO,MAAM,yBAAA,GAA4B,sBAAsB,aAAa;;;;"}
@@ -1,5 +1,81 @@
1
- const firebaseConfig = [];
2
- const firebaseChannels = {};
1
+ import { toSubscribeInjections } from './subscribe-injection.js';
3
2
 
4
- export { firebaseChannels, firebaseConfig };
3
+ const FIRESTORE_VERSION_RANGE = ">=3.0.0 <5";
4
+ const FIRESTORE_FILE = /dist\/lite\/(index|common-[^/]+)\.node\.(cjs\.js|mjs)$/;
5
+ const FIRESTORE_OPERATIONS = [
6
+ { functionName: "addDoc", channelName: "add-doc" },
7
+ { functionName: "getDocs", channelName: "get-docs" },
8
+ { functionName: "setDoc", channelName: "set-doc" },
9
+ { functionName: "deleteDoc", channelName: "delete-doc" }
10
+ ];
11
+ const FUNCTIONS_VERSION_RANGE = ">=6.0.0 <7";
12
+ const FUNCTIONS_TRIGGERS = [
13
+ { file: "lib/v2/providers/https.js", functionName: "onRequest", channelName: "http-request" },
14
+ { file: "lib/v2/providers/https.js", functionName: "onCall", channelName: "http-call" },
15
+ { file: "lib/v2/providers/firestore.js", functionName: "onDocumentCreated", channelName: "firestore-created" },
16
+ {
17
+ file: "lib/v2/providers/firestore.js",
18
+ functionName: "onDocumentCreatedWithAuthContext",
19
+ channelName: "firestore-created"
20
+ },
21
+ { file: "lib/v2/providers/firestore.js", functionName: "onDocumentUpdated", channelName: "firestore-updated" },
22
+ {
23
+ file: "lib/v2/providers/firestore.js",
24
+ functionName: "onDocumentUpdatedWithAuthContext",
25
+ channelName: "firestore-updated"
26
+ },
27
+ { file: "lib/v2/providers/firestore.js", functionName: "onDocumentDeleted", channelName: "firestore-deleted" },
28
+ {
29
+ file: "lib/v2/providers/firestore.js",
30
+ functionName: "onDocumentDeletedWithAuthContext",
31
+ channelName: "firestore-deleted"
32
+ },
33
+ { file: "lib/v2/providers/firestore.js", functionName: "onDocumentWritten", channelName: "firestore-written" },
34
+ {
35
+ file: "lib/v2/providers/firestore.js",
36
+ functionName: "onDocumentWrittenWithAuthContext",
37
+ channelName: "firestore-written"
38
+ },
39
+ { file: "lib/v2/providers/scheduler.js", functionName: "onSchedule", channelName: "scheduler" },
40
+ { file: "lib/v2/providers/storage.js", functionName: "onObjectFinalized", channelName: "storage-finalized" },
41
+ { file: "lib/v2/providers/storage.js", functionName: "onObjectArchived", channelName: "storage-archived" },
42
+ { file: "lib/v2/providers/storage.js", functionName: "onObjectDeleted", channelName: "storage-deleted" },
43
+ {
44
+ file: "lib/v2/providers/storage.js",
45
+ functionName: "onObjectMetadataUpdated",
46
+ channelName: "storage-metadata-updated"
47
+ }
48
+ ];
49
+ const firebaseConfig = [
50
+ ...FIRESTORE_OPERATIONS.map(({ functionName, channelName }) => ({
51
+ channelName,
52
+ module: { name: "@firebase/firestore", versionRange: FIRESTORE_VERSION_RANGE, filePath: FIRESTORE_FILE },
53
+ functionQuery: { functionName, kind: "Auto" }
54
+ })),
55
+ ...FUNCTIONS_TRIGGERS.map(({ file, functionName, channelName }) => ({
56
+ channelName,
57
+ module: { name: "firebase-functions", versionRange: FUNCTIONS_VERSION_RANGE, filePath: file },
58
+ functionQuery: { functionName, kind: "Sync" }
59
+ }))
60
+ ];
61
+ const firebaseChannels = {
62
+ FIREBASE_FIRESTORE_ADD_DOC: "orchestrion:@firebase/firestore:add-doc",
63
+ FIREBASE_FIRESTORE_GET_DOCS: "orchestrion:@firebase/firestore:get-docs",
64
+ FIREBASE_FIRESTORE_SET_DOC: "orchestrion:@firebase/firestore:set-doc",
65
+ FIREBASE_FIRESTORE_DELETE_DOC: "orchestrion:@firebase/firestore:delete-doc",
66
+ FIREBASE_FUNCTIONS_HTTP_REQUEST: "orchestrion:firebase-functions:http-request",
67
+ FIREBASE_FUNCTIONS_HTTP_CALL: "orchestrion:firebase-functions:http-call",
68
+ FIREBASE_FUNCTIONS_FIRESTORE_CREATED: "orchestrion:firebase-functions:firestore-created",
69
+ FIREBASE_FUNCTIONS_FIRESTORE_UPDATED: "orchestrion:firebase-functions:firestore-updated",
70
+ FIREBASE_FUNCTIONS_FIRESTORE_DELETED: "orchestrion:firebase-functions:firestore-deleted",
71
+ FIREBASE_FUNCTIONS_FIRESTORE_WRITTEN: "orchestrion:firebase-functions:firestore-written",
72
+ FIREBASE_FUNCTIONS_SCHEDULER: "orchestrion:firebase-functions:scheduler",
73
+ FIREBASE_FUNCTIONS_STORAGE_FINALIZED: "orchestrion:firebase-functions:storage-finalized",
74
+ FIREBASE_FUNCTIONS_STORAGE_ARCHIVED: "orchestrion:firebase-functions:storage-archived",
75
+ FIREBASE_FUNCTIONS_STORAGE_DELETED: "orchestrion:firebase-functions:storage-deleted",
76
+ FIREBASE_FUNCTIONS_STORAGE_METADATA_UPDATED: "orchestrion:firebase-functions:storage-metadata-updated"
77
+ };
78
+ const firebaseSubscribeInjection = toSubscribeInjections(firebaseConfig);
79
+
80
+ export { firebaseChannels, firebaseConfig, firebaseSubscribeInjection };
5
81
  //# sourceMappingURL=firebase.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"firebase.js","sources":["../../../../src/orchestrion/config/firebase.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\n// TODO: Stub for the `firebase` orchestrion integration (ports `FirebaseInstrumentation`).\nexport const firebaseConfig: InstrumentationConfig[] = [];\n\nexport const firebaseChannels = {} as const;\n"],"names":[],"mappings":"AAGO,MAAM,iBAA0C;AAEhD,MAAM,mBAAmB;;;;"}
1
+ {"version":3,"file":"firebase.js","sources":["../../../../src/orchestrion/config/firebase.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\nimport { toSubscribeInjections } from './subscribe-injection';\n\n// firebase 9+ ships firestore as `@firebase/firestore` (matches the OTel integration's range). Only the\n// `lite` SDK exposes the free `addDoc`/`getDocs`/`setDoc`/`deleteDoc` functions we trace, and only the\n// `node` entry points (CJS `require`, ESM `import`) are reachable from `@sentry/node`; the\n// browser/react-native builds are irrelevant here. `addDoc` & co. are top-level `function <name>`\n// declarations, so `functionName` matches; they return promises, so `Auto` settles the span on\n// `asyncEnd`. firebase <12.8 declares them in `index.node.{cjs.js,mjs}`; firebase >=12.8 (firestore\n// >=4.10) moved them into a hash-named shared chunk `common-<hash>.node.{cjs.js,mjs}` — the RegExp\n// matches both, so injection keeps working across the version range without pinning a build hash.\nconst FIRESTORE_VERSION_RANGE = '>=3.0.0 <5';\nconst FIRESTORE_FILE = /dist\\/lite\\/(index|common-[^/]+)\\.node\\.(cjs\\.js|mjs)$/;\nconst FIRESTORE_OPERATIONS = [\n { functionName: 'addDoc', channelName: 'add-doc' },\n { functionName: 'getDocs', channelName: 'get-docs' },\n { functionName: 'setDoc', channelName: 'set-doc' },\n { functionName: 'deleteDoc', channelName: 'delete-doc' },\n] as const;\n\n// firebase-functions v2 (CJS-only). The `onX` provider functions *register* a handler and return a\n// synchronous cloud function, so `Sync` is required — the span itself is opened later, when the handler\n// runs, by rewrapping the handler argument in the channel's `start` (see `./firebase/functions`). One\n// channel per faas trigger so the subscriber knows the trigger type without inspecting arguments.\nconst FUNCTIONS_VERSION_RANGE = '>=6.0.0 <7';\nconst FUNCTIONS_TRIGGERS = [\n { file: 'lib/v2/providers/https.js', functionName: 'onRequest', channelName: 'http-request' },\n { file: 'lib/v2/providers/https.js', functionName: 'onCall', channelName: 'http-call' },\n { file: 'lib/v2/providers/firestore.js', functionName: 'onDocumentCreated', channelName: 'firestore-created' },\n {\n file: 'lib/v2/providers/firestore.js',\n functionName: 'onDocumentCreatedWithAuthContext',\n channelName: 'firestore-created',\n },\n { file: 'lib/v2/providers/firestore.js', functionName: 'onDocumentUpdated', channelName: 'firestore-updated' },\n {\n file: 'lib/v2/providers/firestore.js',\n functionName: 'onDocumentUpdatedWithAuthContext',\n channelName: 'firestore-updated',\n },\n { file: 'lib/v2/providers/firestore.js', functionName: 'onDocumentDeleted', channelName: 'firestore-deleted' },\n {\n file: 'lib/v2/providers/firestore.js',\n functionName: 'onDocumentDeletedWithAuthContext',\n channelName: 'firestore-deleted',\n },\n { file: 'lib/v2/providers/firestore.js', functionName: 'onDocumentWritten', channelName: 'firestore-written' },\n {\n file: 'lib/v2/providers/firestore.js',\n functionName: 'onDocumentWrittenWithAuthContext',\n channelName: 'firestore-written',\n },\n { file: 'lib/v2/providers/scheduler.js', functionName: 'onSchedule', channelName: 'scheduler' },\n { file: 'lib/v2/providers/storage.js', functionName: 'onObjectFinalized', channelName: 'storage-finalized' },\n { file: 'lib/v2/providers/storage.js', functionName: 'onObjectArchived', channelName: 'storage-archived' },\n { file: 'lib/v2/providers/storage.js', functionName: 'onObjectDeleted', channelName: 'storage-deleted' },\n {\n file: 'lib/v2/providers/storage.js',\n functionName: 'onObjectMetadataUpdated',\n channelName: 'storage-metadata-updated',\n },\n] as const;\n\nexport const firebaseConfig = [\n ...FIRESTORE_OPERATIONS.map(({ functionName, channelName }) => ({\n channelName,\n module: { name: '@firebase/firestore', versionRange: FIRESTORE_VERSION_RANGE, filePath: FIRESTORE_FILE },\n functionQuery: { functionName, kind: 'Auto' as const },\n })),\n ...FUNCTIONS_TRIGGERS.map(({ file, functionName, channelName }) => ({\n channelName,\n module: { name: 'firebase-functions', versionRange: FUNCTIONS_VERSION_RANGE, filePath: file },\n functionQuery: { functionName, kind: 'Sync' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const firebaseChannels = {\n FIREBASE_FIRESTORE_ADD_DOC: 'orchestrion:@firebase/firestore:add-doc',\n FIREBASE_FIRESTORE_GET_DOCS: 'orchestrion:@firebase/firestore:get-docs',\n FIREBASE_FIRESTORE_SET_DOC: 'orchestrion:@firebase/firestore:set-doc',\n FIREBASE_FIRESTORE_DELETE_DOC: 'orchestrion:@firebase/firestore:delete-doc',\n FIREBASE_FUNCTIONS_HTTP_REQUEST: 'orchestrion:firebase-functions:http-request',\n FIREBASE_FUNCTIONS_HTTP_CALL: 'orchestrion:firebase-functions:http-call',\n FIREBASE_FUNCTIONS_FIRESTORE_CREATED: 'orchestrion:firebase-functions:firestore-created',\n FIREBASE_FUNCTIONS_FIRESTORE_UPDATED: 'orchestrion:firebase-functions:firestore-updated',\n FIREBASE_FUNCTIONS_FIRESTORE_DELETED: 'orchestrion:firebase-functions:firestore-deleted',\n FIREBASE_FUNCTIONS_FIRESTORE_WRITTEN: 'orchestrion:firebase-functions:firestore-written',\n FIREBASE_FUNCTIONS_SCHEDULER: 'orchestrion:firebase-functions:scheduler',\n FIREBASE_FUNCTIONS_STORAGE_FINALIZED: 'orchestrion:firebase-functions:storage-finalized',\n FIREBASE_FUNCTIONS_STORAGE_ARCHIVED: 'orchestrion:firebase-functions:storage-archived',\n FIREBASE_FUNCTIONS_STORAGE_DELETED: 'orchestrion:firebase-functions:storage-deleted',\n FIREBASE_FUNCTIONS_STORAGE_METADATA_UPDATED: 'orchestrion:firebase-functions:storage-metadata-updated',\n} as const;\n\nexport const firebaseSubscribeInjection = toSubscribeInjections(firebaseConfig);\n"],"names":[],"mappings":";;AAWA,MAAM,uBAAA,GAA0B,YAAA;AAChC,MAAM,cAAA,GAAiB,wDAAA;AACvB,MAAM,oBAAA,GAAuB;AAAA,EAC3B,EAAE,YAAA,EAAc,QAAA,EAAU,WAAA,EAAa,SAAA,EAAU;AAAA,EACjD,EAAE,YAAA,EAAc,SAAA,EAAW,WAAA,EAAa,UAAA,EAAW;AAAA,EACnD,EAAE,YAAA,EAAc,QAAA,EAAU,WAAA,EAAa,SAAA,EAAU;AAAA,EACjD,EAAE,YAAA,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A;AAAA,EACtC,oCAAA,EAAsC,kDAAA;AAAA,EACtC,4BAAA,EAA8B,0CAAA;AAAA,EAC9B,oCAAA,EAAsC,kDAAA;AAAA,EACtC,mCAAA,EAAqC,iDAAA;AAAA,EACrC,kCAAA,EAAoC,gDAAA;AAAA,EACpC,2CAAA,EAA6C;AAC/C;AAEO,MAAM,0BAAA,GAA6B,sBAAsB,cAAc;;;;"}
@@ -1,3 +1,5 @@
1
+ import { toSubscribeInjections } from './subscribe-injection.js';
2
+
1
3
  const genericPoolConfig = [
2
4
  {
3
5
  channelName: "acquire",
@@ -13,6 +15,7 @@ const genericPoolConfig = [
13
15
  const genericPoolChannels = {
14
16
  GENERIC_POOL_ACQUIRE: "orchestrion:generic-pool:acquire"
15
17
  };
18
+ const genericPoolSubscribeInjection = toSubscribeInjections(genericPoolConfig);
16
19
 
17
- export { genericPoolChannels, genericPoolConfig };
20
+ export { genericPoolChannels, genericPoolConfig, genericPoolSubscribeInjection };
18
21
  //# sourceMappingURL=generic-pool.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generic-pool.js","sources":["../../../../src/orchestrion/config/generic-pool.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\n// Two shapes of `acquire`, both publishing to the same `orchestrion:generic-pool:acquire` channel:\n// - v3+: `class Pool { acquire(priority) }` returns a promise, so `kind: 'Auto'` resolves to `wrapPromise`.\n// - v2.4–v3: `Pool.prototype.acquire = function acquire(callback, priority)` is callback-based.\n// Versions before 2.4 assigned an anonymous `acquire` per pool instance (a factory), which a static\n// transform can't target, so they're out of scope (matching how the OTel instrumentation split them).\nexport const genericPoolConfig = [\n {\n channelName: 'acquire',\n module: { name: 'generic-pool', versionRange: '>=3.0.0 <4', filePath: 'lib/Pool.js' },\n functionQuery: { className: 'Pool', methodName: 'acquire', kind: 'Auto' },\n },\n {\n channelName: 'acquire',\n module: { name: 'generic-pool', versionRange: '>=2.4.0 <3', filePath: 'lib/generic-pool.js' },\n functionQuery: { expressionName: 'acquire', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const genericPoolChannels = {\n GENERIC_POOL_ACQUIRE: 'orchestrion:generic-pool:acquire',\n} as const;\n"],"names":[],"mappings":"AAOO,MAAM,iBAAA,GAAoB;AAAA,EAC/B;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,gBAAgB,YAAA,EAAc,YAAA,EAAc,UAAU,aAAA,EAAc;AAAA,IACpF,eAAe,EAAE,SAAA,EAAW,QAAQ,UAAA,EAAY,SAAA,EAAW,MAAM,MAAA;AAAO,GAC1E;AAAA,EACA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,gBAAgB,YAAA,EAAc,YAAA,EAAc,UAAU,qBAAA,EAAsB;AAAA,IAC5F,aAAA,EAAe,EAAE,cAAA,EAAgB,SAAA,EAAW,MAAM,UAAA;AAAW;AAEjE;AAEO,MAAM,mBAAA,GAAsB;AAAA,EACjC,oBAAA,EAAsB;AACxB;;;;"}
1
+ {"version":3,"file":"generic-pool.js","sources":["../../../../src/orchestrion/config/generic-pool.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\nimport { toSubscribeInjections } from './subscribe-injection';\n\n// Two shapes of `acquire`, both publishing to the same `orchestrion:generic-pool:acquire` channel:\n// - v3+: `class Pool { acquire(priority) }` returns a promise, so `kind: 'Auto'` resolves to `wrapPromise`.\n// - v2.4–v3: `Pool.prototype.acquire = function acquire(callback, priority)` is callback-based.\n// Versions before 2.4 assigned an anonymous `acquire` per pool instance (a factory), which a static\n// transform can't target, so they're out of scope (matching how the OTel instrumentation split them).\nexport const genericPoolConfig = [\n {\n channelName: 'acquire',\n module: { name: 'generic-pool', versionRange: '>=3.0.0 <4', filePath: 'lib/Pool.js' },\n functionQuery: { className: 'Pool', methodName: 'acquire', kind: 'Auto' },\n },\n {\n channelName: 'acquire',\n module: { name: 'generic-pool', versionRange: '>=2.4.0 <3', filePath: 'lib/generic-pool.js' },\n functionQuery: { expressionName: 'acquire', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const genericPoolChannels = {\n GENERIC_POOL_ACQUIRE: 'orchestrion:generic-pool:acquire',\n} as const;\n\nexport const genericPoolSubscribeInjection = toSubscribeInjections(genericPoolConfig);\n"],"names":[],"mappings":";;AAQO,MAAM,iBAAA,GAAoB;AAAA,EAC/B;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,gBAAgB,YAAA,EAAc,YAAA,EAAc,UAAU,aAAA,EAAc;AAAA,IACpF,eAAe,EAAE,SAAA,EAAW,QAAQ,UAAA,EAAY,SAAA,EAAW,MAAM,MAAA;AAAO,GAC1E;AAAA,EACA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,gBAAgB,YAAA,EAAc,YAAA,EAAc,UAAU,qBAAA,EAAsB;AAAA,IAC5F,aAAA,EAAe,EAAE,cAAA,EAAgB,SAAA,EAAW,MAAM,UAAA;AAAW;AAEjE;AAEO,MAAM,mBAAA,GAAsB;AAAA,EACjC,oBAAA,EAAsB;AACxB;AAEO,MAAM,6BAAA,GAAgC,sBAAsB,iBAAiB;;;;"}
@@ -1,3 +1,5 @@
1
+ import { toSubscribeInjections } from './subscribe-injection.js';
2
+
1
3
  const NODE_DIST_FILES = ["dist/node/index.js", "dist/node/index.mjs", "dist/node/index.cjs"];
2
4
  const googleGenAiConfig = [
3
5
  // `generateContent`/`generateContentStream` are arrow properties assigned in the constructor, not class
@@ -30,6 +32,7 @@ const googleGenAiChannels = {
30
32
  GOOGLE_GENAI_EMBED_CONTENT: "orchestrion:@google/genai:embed-content",
31
33
  GOOGLE_GENAI_CHAT: "orchestrion:@google/genai:chat"
32
34
  };
35
+ const googleGenAiSubscribeInjection = toSubscribeInjections(googleGenAiConfig);
33
36
 
34
- export { googleGenAiChannels, googleGenAiConfig };
37
+ export { googleGenAiChannels, googleGenAiConfig, googleGenAiSubscribeInjection };
35
38
  //# sourceMappingURL=google-genai.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"google-genai.js","sources":["../../../../src/orchestrion/config/google-genai.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\n// `@google/genai` ships one bundled file per module format and the matcher compares `filePath` exactly,\n// so we list every file the `node` export condition resolves to across the supported range: `index.js`\n// (ESM+CJS for <0.15.0, CJS for <1.1.0), `index.mjs` (ESM for >=0.15.0), and `index.cjs` (CJS for >=1.1.0).\n// A file that doesn't exist in a given version simply never matches, so listing all three is safe.\nconst NODE_DIST_FILES = ['dist/node/index.js', 'dist/node/index.mjs', 'dist/node/index.cjs'];\n\nexport const googleGenAiConfig = [\n // `generateContent`/`generateContentStream` are arrow properties assigned in the constructor, not class\n // methods, so they need `expressionName` rather than `className`/`methodName`.\n ...NODE_DIST_FILES.flatMap(filePath =>\n (['generateContent', 'generateContentStream'] as const).map(expressionName => ({\n channelName: 'generate-content',\n module: { name: '@google/genai', versionRange: '>=0.10.0 <2', filePath },\n functionQuery: { expressionName, kind: 'Auto' as const },\n })),\n ),\n // `embedContent` and the `Chat` methods are real class methods.\n ...NODE_DIST_FILES.map(filePath => ({\n channelName: 'embed-content',\n module: { name: '@google/genai', versionRange: '>=0.10.0 <2', filePath },\n functionQuery: { className: 'Models', methodName: 'embedContent', kind: 'Auto' as const },\n })),\n // `sendMessage`/`sendMessageStream` internally delegate to `Models.generateContent(Stream)`; the\n // subscriber suppresses that nested `generate-content` event so a chat call yields a single span.\n ...NODE_DIST_FILES.flatMap(filePath =>\n (['sendMessage', 'sendMessageStream'] as const).map(methodName => ({\n channelName: 'chat',\n module: { name: '@google/genai', versionRange: '>=0.10.0 <2', filePath },\n functionQuery: { className: 'Chat', methodName, kind: 'Auto' as const },\n })),\n ),\n] satisfies InstrumentationConfig[];\n\nexport const googleGenAiChannels = {\n GOOGLE_GENAI_GENERATE_CONTENT: 'orchestrion:@google/genai:generate-content',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BAAA,EAA+B,4CAAA;AAAA,EAC/B,0BAAA,EAA4B,yCAAA;AAAA,EAC5B,iBAAA,EAAmB;AACrB;;;;"}
1
+ {"version":3,"file":"google-genai.js","sources":["../../../../src/orchestrion/config/google-genai.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\nimport { toSubscribeInjections } from './subscribe-injection';\n\n// `@google/genai` ships one bundled file per module format and the matcher compares `filePath` exactly,\n// so we list every file the `node` export condition resolves to across the supported range: `index.js`\n// (ESM+CJS for <0.15.0, CJS for <1.1.0), `index.mjs` (ESM for >=0.15.0), and `index.cjs` (CJS for >=1.1.0).\n// A file that doesn't exist in a given version simply never matches, so listing all three is safe.\nconst NODE_DIST_FILES = ['dist/node/index.js', 'dist/node/index.mjs', 'dist/node/index.cjs'];\n\nexport const googleGenAiConfig = [\n // `generateContent`/`generateContentStream` are arrow properties assigned in the constructor, not class\n // methods, so they need `expressionName` rather than `className`/`methodName`.\n ...NODE_DIST_FILES.flatMap(filePath =>\n (['generateContent', 'generateContentStream'] as const).map(expressionName => ({\n channelName: 'generate-content',\n module: { name: '@google/genai', versionRange: '>=0.10.0 <2', filePath },\n functionQuery: { expressionName, kind: 'Auto' as const },\n })),\n ),\n // `embedContent` and the `Chat` methods are real class methods.\n ...NODE_DIST_FILES.map(filePath => ({\n channelName: 'embed-content',\n module: { name: '@google/genai', versionRange: '>=0.10.0 <2', filePath },\n functionQuery: { className: 'Models', methodName: 'embedContent', kind: 'Auto' as const },\n })),\n // `sendMessage`/`sendMessageStream` internally delegate to `Models.generateContent(Stream)`; the\n // subscriber suppresses that nested `generate-content` event so a chat call yields a single span.\n ...NODE_DIST_FILES.flatMap(filePath =>\n (['sendMessage', 'sendMessageStream'] as const).map(methodName => ({\n channelName: 'chat',\n module: { name: '@google/genai', versionRange: '>=0.10.0 <2', filePath },\n functionQuery: { className: 'Chat', methodName, kind: 'Auto' as const },\n })),\n ),\n] satisfies InstrumentationConfig[];\n\nexport const googleGenAiChannels = {\n GOOGLE_GENAI_GENERATE_CONTENT: 'orchestrion:@google/genai:generate-content',\n GOOGLE_GENAI_EMBED_CONTENT: 'orchestrion:@google/genai:embed-content',\n GOOGLE_GENAI_CHAT: 'orchestrion:@google/genai:chat',\n} as const;\n\nexport const googleGenAiSubscribeInjection = toSubscribeInjections(googleGenAiConfig);\n"],"names":[],"mappings":";;AAOA,MAAM,eAAA,GAAkB,CAAC,oBAAA,EAAsB,qBAAA,EAAuB,qBAAqB,CAAA;AAEpF,MAAM,iBAAA,GAAoB;AAAA;AAAA;AAAA,EAG/B,GAAG,eAAA,CAAgB,OAAA;AAAA,IAAQ,cACxB,CAAC,iBAAA,EAAmB,uBAAuB,CAAA,CAAY,IAAI,CAAA,cAAA,MAAmB;AAAA,MAC7E,WAAA,EAAa,kBAAA;AAAA,MACb,QAAQ,EAAE,IAAA,EAAM,eAAA,EAAiB,YAAA,EAAc,eAAe,QAAA,EAAS;AAAA,MACvE,aAAA,EAAe,EAAE,cAAA,EAAgB,IAAA,EAAM,MAAA;AAAgB,KACzD,CAAE;AAAA,GACJ;AAAA;AAAA,EAEA,GAAG,eAAA,CAAgB,GAAA,CAAI,CAAA,QAAA,MAAa;AAAA,IAClC,WAAA,EAAa,eAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,eAAA,EAAiB,YAAA,EAAc,eAAe,QAAA,EAAS;AAAA,IACvE,eAAe,EAAE,SAAA,EAAW,UAAU,UAAA,EAAY,cAAA,EAAgB,MAAM,MAAA;AAAgB,GAC1F,CAAE,CAAA;AAAA;AAAA;AAAA,EAGF,GAAG,eAAA,CAAgB,OAAA;AAAA,IAAQ,cACxB,CAAC,aAAA,EAAe,mBAAmB,CAAA,CAAY,IAAI,CAAA,UAAA,MAAe;AAAA,MACjE,WAAA,EAAa,MAAA;AAAA,MACb,QAAQ,EAAE,IAAA,EAAM,eAAA,EAAiB,YAAA,EAAc,eAAe,QAAA,EAAS;AAAA,MACvE,eAAe,EAAE,SAAA,EAAW,MAAA,EAAQ,UAAA,EAAY,MAAM,MAAA;AAAgB,KACxE,CAAE;AAAA;AAEN;AAEO,MAAM,mBAAA,GAAsB;AAAA,EACjC,6BAAA,EAA+B,4CAAA;AAAA,EAC/B,0BAAA,EAA4B,yCAAA;AAAA,EAC5B,iBAAA,EAAmB;AACrB;AAEO,MAAM,6BAAA,GAAgC,sBAAsB,iBAAiB;;;;"}
@@ -1,3 +1,5 @@
1
+ import { toSubscribeInjections } from './subscribe-injection.js';
2
+
1
3
  const graphqlConfig = [
2
4
  {
3
5
  channelName: "parse",
@@ -20,6 +22,7 @@ const graphqlChannels = {
20
22
  GRAPHQL_VALIDATE: "orchestrion:graphql:validate",
21
23
  GRAPHQL_EXECUTE: "orchestrion:graphql:execute"
22
24
  };
25
+ const graphqlSubscribeInjection = toSubscribeInjections(graphqlConfig);
23
26
 
24
- export { graphqlChannels, graphqlConfig };
27
+ export { graphqlChannels, graphqlConfig, graphqlSubscribeInjection };
25
28
  //# sourceMappingURL=graphql.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"graphql.js","sources":["../../../../src/orchestrion/config/graphql.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\n// `parse`/`validate`/`execute` are top-level named `function` declarations in graphql's compiled\n// files, stable across the supported majors, so `functionName` matches. `execute` returns\n// `PromiseOrValue`, so `Auto` covers both async (settles on `asyncEnd`) and sync (`end`) schemas.\nexport const graphqlConfig = [\n {\n channelName: 'parse',\n module: { name: 'graphql', versionRange: '>=14.0.0 <17', filePath: 'language/parser.js' },\n functionQuery: { functionName: 'parse', kind: 'Sync' },\n },\n {\n channelName: 'validate',\n module: { name: 'graphql', versionRange: '>=14.0.0 <17', filePath: 'validation/validate.js' },\n functionQuery: { functionName: 'validate', kind: 'Sync' },\n },\n {\n channelName: 'execute',\n module: { name: 'graphql', versionRange: '>=14.0.0 <17', filePath: 'execution/execute.js' },\n functionQuery: { functionName: 'execute', kind: 'Auto' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const graphqlChannels = {\n GRAPHQL_PARSE: 'orchestrion:graphql:parse',\n GRAPHQL_VALIDATE: 'orchestrion:graphql:validate',\n GRAPHQL_EXECUTE: 'orchestrion:graphql:execute',\n} as const;\n"],"names":[],"mappings":"AAKO,MAAM,aAAA,GAAgB;AAAA,EAC3B;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,WAAW,YAAA,EAAc,cAAA,EAAgB,UAAU,oBAAA,EAAqB;AAAA,IACxF,aAAA,EAAe,EAAE,YAAA,EAAc,OAAA,EAAS,MAAM,MAAA;AAAO,GACvD;AAAA,EACA;AAAA,IACE,WAAA,EAAa,UAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,WAAW,YAAA,EAAc,cAAA,EAAgB,UAAU,wBAAA,EAAyB;AAAA,IAC5F,aAAA,EAAe,EAAE,YAAA,EAAc,UAAA,EAAY,MAAM,MAAA;AAAO,GAC1D;AAAA,EACA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,WAAW,YAAA,EAAc,cAAA,EAAgB,UAAU,sBAAA,EAAuB;AAAA,IAC1F,aAAA,EAAe,EAAE,YAAA,EAAc,SAAA,EAAW,MAAM,MAAA;AAAO;AAE3D;AAEO,MAAM,eAAA,GAAkB;AAAA,EAC7B,aAAA,EAAe,2BAAA;AAAA,EACf,gBAAA,EAAkB,8BAAA;AAAA,EAClB,eAAA,EAAiB;AACnB;;;;"}
1
+ {"version":3,"file":"graphql.js","sources":["../../../../src/orchestrion/config/graphql.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\nimport { toSubscribeInjections } from './subscribe-injection';\n\n// `parse`/`validate`/`execute` are top-level named `function` declarations in graphql's compiled\n// files, stable across the supported majors, so `functionName` matches. `execute` returns\n// `PromiseOrValue`, so `Auto` covers both async (settles on `asyncEnd`) and sync (`end`) schemas.\nexport const graphqlConfig = [\n {\n channelName: 'parse',\n module: { name: 'graphql', versionRange: '>=14.0.0 <17', filePath: 'language/parser.js' },\n functionQuery: { functionName: 'parse', kind: 'Sync' },\n },\n {\n channelName: 'validate',\n module: { name: 'graphql', versionRange: '>=14.0.0 <17', filePath: 'validation/validate.js' },\n functionQuery: { functionName: 'validate', kind: 'Sync' },\n },\n {\n channelName: 'execute',\n module: { name: 'graphql', versionRange: '>=14.0.0 <17', filePath: 'execution/execute.js' },\n functionQuery: { functionName: 'execute', kind: 'Auto' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const graphqlChannels = {\n GRAPHQL_PARSE: 'orchestrion:graphql:parse',\n GRAPHQL_VALIDATE: 'orchestrion:graphql:validate',\n GRAPHQL_EXECUTE: 'orchestrion:graphql:execute',\n} as const;\n\nexport const graphqlSubscribeInjection = toSubscribeInjections(graphqlConfig);\n"],"names":[],"mappings":";;AAMO,MAAM,aAAA,GAAgB;AAAA,EAC3B;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,WAAW,YAAA,EAAc,cAAA,EAAgB,UAAU,oBAAA,EAAqB;AAAA,IACxF,aAAA,EAAe,EAAE,YAAA,EAAc,OAAA,EAAS,MAAM,MAAA;AAAO,GACvD;AAAA,EACA;AAAA,IACE,WAAA,EAAa,UAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,WAAW,YAAA,EAAc,cAAA,EAAgB,UAAU,wBAAA,EAAyB;AAAA,IAC5F,aAAA,EAAe,EAAE,YAAA,EAAc,UAAA,EAAY,MAAM,MAAA;AAAO,GAC1D;AAAA,EACA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,WAAW,YAAA,EAAc,cAAA,EAAgB,UAAU,sBAAA,EAAuB;AAAA,IAC1F,aAAA,EAAe,EAAE,YAAA,EAAc,SAAA,EAAW,MAAM,MAAA;AAAO;AAE3D;AAEO,MAAM,eAAA,GAAkB;AAAA,EAC7B,aAAA,EAAe,2BAAA;AAAA,EACf,gBAAA,EAAkB,8BAAA;AAAA,EAClB,eAAA,EAAiB;AACnB;AAEO,MAAM,yBAAA,GAA4B,sBAAsB,aAAa;;;;"}
@@ -1,3 +1,5 @@
1
+ import { toSubscribeInjections } from './subscribe-injection.js';
2
+
1
3
  const hapiConfig = [
2
4
  // hapi's `route`/`ext` live on an anonymous class (`internals.Server = class {}`),
3
5
  // so `{className}` can't match — `{methodName}` targets them in lib/server.js. Both
@@ -18,6 +20,7 @@ const hapiChannels = {
18
20
  HAPI_ROUTE: "orchestrion:@hapi/hapi:route",
19
21
  HAPI_EXT: "orchestrion:@hapi/hapi:ext"
20
22
  };
23
+ const hapiSubscribeInjection = toSubscribeInjections(hapiConfig);
21
24
 
22
- export { hapiChannels, hapiConfig };
25
+ export { hapiChannels, hapiConfig, hapiSubscribeInjection };
23
26
  //# sourceMappingURL=hapi.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hapi.js","sources":["../../../../src/orchestrion/config/hapi.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\nexport const hapiConfig = [\n // hapi's `route`/`ext` live on an anonymous class (`internals.Server = class {}`),\n // so `{className}` can't match — `{methodName}` targets them in lib/server.js. Both\n // are synchronous void methods, so `Sync` suffices: we only use `start` to swap\n // handlers in `ctx.arguments`. Shape verified across the whole range.\n {\n channelName: 'route',\n module: { name: '@hapi/hapi', versionRange: '>=17.0.0 <22.0.0', filePath: 'lib/server.js' },\n functionQuery: { methodName: 'route', kind: 'Sync' },\n },\n {\n channelName: 'ext',\n module: { name: '@hapi/hapi', versionRange: '>=17.0.0 <22.0.0', filePath: 'lib/server.js' },\n functionQuery: { methodName: 'ext', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const hapiChannels = {\n HAPI_ROUTE: 'orchestrion:@hapi/hapi:route',\n HAPI_EXT: 'orchestrion:@hapi/hapi:ext',\n} as const;\n"],"names":[],"mappings":"AAEO,MAAM,UAAA,GAAa;AAAA;AAAA;AAAA;AAAA;AAAA,EAKxB;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,cAAc,YAAA,EAAc,kBAAA,EAAoB,UAAU,eAAA,EAAgB;AAAA,IAC1F,aAAA,EAAe,EAAE,UAAA,EAAY,OAAA,EAAS,MAAM,MAAA;AAAO,GACrD;AAAA,EACA;AAAA,IACE,WAAA,EAAa,KAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,cAAc,YAAA,EAAc,kBAAA,EAAoB,UAAU,eAAA,EAAgB;AAAA,IAC1F,aAAA,EAAe,EAAE,UAAA,EAAY,KAAA,EAAO,MAAM,MAAA;AAAO;AAErD;AAEO,MAAM,YAAA,GAAe;AAAA,EAC1B,UAAA,EAAY,8BAAA;AAAA,EACZ,QAAA,EAAU;AACZ;;;;"}
1
+ {"version":3,"file":"hapi.js","sources":["../../../../src/orchestrion/config/hapi.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\nimport { toSubscribeInjections } from './subscribe-injection';\n\nexport const hapiConfig = [\n // hapi's `route`/`ext` live on an anonymous class (`internals.Server = class {}`),\n // so `{className}` can't match — `{methodName}` targets them in lib/server.js. Both\n // are synchronous void methods, so `Sync` suffices: we only use `start` to swap\n // handlers in `ctx.arguments`. Shape verified across the whole range.\n {\n channelName: 'route',\n module: { name: '@hapi/hapi', versionRange: '>=17.0.0 <22.0.0', filePath: 'lib/server.js' },\n functionQuery: { methodName: 'route', kind: 'Sync' },\n },\n {\n channelName: 'ext',\n module: { name: '@hapi/hapi', versionRange: '>=17.0.0 <22.0.0', filePath: 'lib/server.js' },\n functionQuery: { methodName: 'ext', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const hapiChannels = {\n HAPI_ROUTE: 'orchestrion:@hapi/hapi:route',\n HAPI_EXT: 'orchestrion:@hapi/hapi:ext',\n} as const;\n\nexport const hapiSubscribeInjection = toSubscribeInjections(hapiConfig);\n"],"names":[],"mappings":";;AAGO,MAAM,UAAA,GAAa;AAAA;AAAA;AAAA;AAAA;AAAA,EAKxB;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,cAAc,YAAA,EAAc,kBAAA,EAAoB,UAAU,eAAA,EAAgB;AAAA,IAC1F,aAAA,EAAe,EAAE,UAAA,EAAY,OAAA,EAAS,MAAM,MAAA;AAAO,GACrD;AAAA,EACA;AAAA,IACE,WAAA,EAAa,KAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,cAAc,YAAA,EAAc,kBAAA,EAAoB,UAAU,eAAA,EAAgB;AAAA,IAC1F,aAAA,EAAe,EAAE,UAAA,EAAY,KAAA,EAAO,MAAM,MAAA;AAAO;AAErD;AAEO,MAAM,YAAA,GAAe;AAAA,EAC1B,UAAA,EAAY,8BAAA;AAAA,EACZ,QAAA,EAAU;AACZ;AAEO,MAAM,sBAAA,GAAyB,sBAAsB,UAAU;;;;"}