@sentry/server-utils 10.65.0 → 10.67.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 (557) hide show
  1. package/build/cjs/graphql/graphql-dc-subscriber.js +2 -4
  2. package/build/cjs/graphql/graphql-dc-subscriber.js.map +1 -1
  3. package/build/cjs/graphql/utils.js +7 -1
  4. package/build/cjs/graphql/utils.js.map +1 -1
  5. package/build/cjs/index.js +18 -8
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/integrations/tracing-channel/aws-sdk/constants.js +16 -0
  8. package/build/cjs/integrations/tracing-channel/aws-sdk/constants.js.map +1 -0
  9. package/build/cjs/integrations/tracing-channel/aws-sdk/index.js +154 -0
  10. package/build/cjs/integrations/tracing-channel/aws-sdk/index.js.map +1 -0
  11. package/build/cjs/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js +46 -0
  12. package/build/cjs/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js.map +1 -0
  13. package/build/cjs/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js +47 -0
  14. package/build/cjs/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js.map +1 -0
  15. package/build/cjs/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js +419 -0
  16. package/build/cjs/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js.map +1 -0
  17. package/build/cjs/integrations/tracing-channel/aws-sdk/services/dynamodb.js +131 -0
  18. package/build/cjs/integrations/tracing-channel/aws-sdk/services/dynamodb.js.map +1 -0
  19. package/build/cjs/integrations/tracing-channel/aws-sdk/services/kinesis.js +21 -0
  20. package/build/cjs/integrations/tracing-channel/aws-sdk/services/kinesis.js.map +1 -0
  21. package/build/cjs/integrations/tracing-channel/aws-sdk/services/lambda.js +64 -0
  22. package/build/cjs/integrations/tracing-channel/aws-sdk/services/lambda.js.map +1 -0
  23. package/build/cjs/integrations/tracing-channel/aws-sdk/services/s3.js +21 -0
  24. package/build/cjs/integrations/tracing-channel/aws-sdk/services/s3.js.map +1 -0
  25. package/build/cjs/integrations/tracing-channel/aws-sdk/services/secretsmanager.js +27 -0
  26. package/build/cjs/integrations/tracing-channel/aws-sdk/services/secretsmanager.js.map +1 -0
  27. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sns.js +63 -0
  28. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sns.js.map +1 -0
  29. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sqs.js +116 -0
  30. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sqs.js.map +1 -0
  31. package/build/cjs/integrations/tracing-channel/aws-sdk/services/stepfunctions.js +25 -0
  32. package/build/cjs/integrations/tracing-channel/aws-sdk/services/stepfunctions.js.map +1 -0
  33. package/build/cjs/integrations/tracing-channel/aws-sdk/utils.js +30 -0
  34. package/build/cjs/integrations/tracing-channel/aws-sdk/utils.js.map +1 -0
  35. package/build/cjs/integrations/tracing-channel/dataloader.js +95 -0
  36. package/build/cjs/integrations/tracing-channel/dataloader.js.map +1 -0
  37. package/build/cjs/integrations/tracing-channel/express/instrumentation.js +1 -6
  38. package/build/cjs/integrations/tracing-channel/express/instrumentation.js.map +1 -1
  39. package/build/cjs/integrations/tracing-channel/generic-pool.js +34 -0
  40. package/build/cjs/integrations/tracing-channel/generic-pool.js.map +1 -0
  41. package/build/cjs/integrations/tracing-channel/graphql/spans.js +2 -2
  42. package/build/cjs/integrations/tracing-channel/graphql/spans.js.map +1 -1
  43. package/build/cjs/integrations/tracing-channel/ioredis.js +29 -26
  44. package/build/cjs/integrations/tracing-channel/ioredis.js.map +1 -1
  45. package/build/cjs/integrations/tracing-channel/kafkajs/consumer.js +71 -0
  46. package/build/cjs/integrations/tracing-channel/kafkajs/consumer.js.map +1 -0
  47. package/build/cjs/integrations/tracing-channel/kafkajs/index.js +70 -0
  48. package/build/cjs/integrations/tracing-channel/kafkajs/index.js.map +1 -0
  49. package/build/cjs/integrations/tracing-channel/kafkajs/semconv.js +22 -0
  50. package/build/cjs/integrations/tracing-channel/kafkajs/semconv.js.map +1 -0
  51. package/build/cjs/integrations/tracing-channel/kafkajs/spans.js +119 -0
  52. package/build/cjs/integrations/tracing-channel/kafkajs/spans.js.map +1 -0
  53. package/build/cjs/integrations/tracing-channel/knex.js +188 -0
  54. package/build/cjs/integrations/tracing-channel/knex.js.map +1 -0
  55. package/build/cjs/integrations/tracing-channel/koa.js +146 -0
  56. package/build/cjs/integrations/tracing-channel/koa.js.map +1 -0
  57. package/build/cjs/integrations/tracing-channel/langchain.js +63 -0
  58. package/build/cjs/integrations/tracing-channel/langchain.js.map +1 -0
  59. package/build/cjs/integrations/tracing-channel/langgraph.js +100 -0
  60. package/build/cjs/integrations/tracing-channel/langgraph.js.map +1 -0
  61. package/build/cjs/integrations/tracing-channel/mongodb.js +104 -0
  62. package/build/cjs/integrations/tracing-channel/mongodb.js.map +1 -0
  63. package/build/cjs/integrations/tracing-channel/mongoose.js +110 -0
  64. package/build/cjs/integrations/tracing-channel/mongoose.js.map +1 -0
  65. package/build/cjs/integrations/tracing-channel/mysql2.js +83 -0
  66. package/build/cjs/integrations/tracing-channel/mysql2.js.map +1 -0
  67. package/build/cjs/integrations/tracing-channel/openai.js +1 -3
  68. package/build/cjs/integrations/tracing-channel/openai.js.map +1 -1
  69. package/build/cjs/integrations/tracing-channel/redis.js +25 -34
  70. package/build/cjs/integrations/tracing-channel/redis.js.map +1 -1
  71. package/build/cjs/integrations/tracing-channel/tedious.js +145 -0
  72. package/build/cjs/integrations/tracing-channel/tedious.js.map +1 -0
  73. package/build/cjs/mongodb/mongodb-span.js +133 -0
  74. package/build/cjs/mongodb/mongodb-span.js.map +1 -0
  75. package/build/cjs/mongoose/index.js.map +1 -1
  76. package/build/cjs/mongoose/mongoose-legacy-span.js +40 -0
  77. package/build/cjs/mongoose/mongoose-legacy-span.js.map +1 -0
  78. package/build/cjs/orchestrion/bundler/esbuild.js +15 -0
  79. package/build/cjs/orchestrion/bundler/esbuild.js.map +1 -0
  80. package/build/cjs/orchestrion/bundler/options.js +24 -0
  81. package/build/cjs/orchestrion/bundler/options.js.map +1 -0
  82. package/build/cjs/orchestrion/bundler/rollup.js +15 -0
  83. package/build/cjs/orchestrion/bundler/rollup.js.map +1 -0
  84. package/build/cjs/orchestrion/bundler/vite.js +8 -21
  85. package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
  86. package/build/cjs/orchestrion/bundler/webpack.js +36 -0
  87. package/build/cjs/orchestrion/bundler/webpack.js.map +1 -0
  88. package/build/cjs/orchestrion/channels.js +54 -20
  89. package/build/cjs/orchestrion/channels.js.map +1 -1
  90. package/build/cjs/orchestrion/config/amqplib.js.map +1 -1
  91. package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -1
  92. package/build/cjs/orchestrion/config/aws-sdk.js +28 -0
  93. package/build/cjs/orchestrion/config/aws-sdk.js.map +1 -0
  94. package/build/cjs/orchestrion/config/dataloader.js +53 -0
  95. package/build/cjs/orchestrion/config/dataloader.js.map +1 -0
  96. package/build/cjs/orchestrion/config/express.js +9 -8
  97. package/build/cjs/orchestrion/config/express.js.map +1 -1
  98. package/build/cjs/orchestrion/config/firebase.js +8 -0
  99. package/build/cjs/orchestrion/config/firebase.js.map +1 -0
  100. package/build/cjs/orchestrion/config/generic-pool.js +21 -0
  101. package/build/cjs/orchestrion/config/generic-pool.js.map +1 -0
  102. package/build/cjs/orchestrion/config/google-genai.js.map +1 -1
  103. package/build/cjs/orchestrion/config/graphql.js.map +1 -1
  104. package/build/cjs/orchestrion/config/hapi.js.map +1 -1
  105. package/build/cjs/orchestrion/config/index.js +64 -23
  106. package/build/cjs/orchestrion/config/index.js.map +1 -1
  107. package/build/cjs/orchestrion/config/ioredis.js.map +1 -1
  108. package/build/cjs/orchestrion/config/kafkajs.js +30 -0
  109. package/build/cjs/orchestrion/config/kafkajs.js.map +1 -0
  110. package/build/cjs/orchestrion/config/knex.js +43 -0
  111. package/build/cjs/orchestrion/config/knex.js.map +1 -0
  112. package/build/cjs/orchestrion/config/koa.js +16 -0
  113. package/build/cjs/orchestrion/config/koa.js.map +1 -0
  114. package/build/cjs/orchestrion/config/langchain.js +52 -0
  115. package/build/cjs/orchestrion/config/langchain.js.map +1 -0
  116. package/build/cjs/orchestrion/config/langgraph.js +28 -0
  117. package/build/cjs/orchestrion/config/langgraph.js.map +1 -0
  118. package/build/cjs/orchestrion/config/lru-memoizer.js.map +1 -1
  119. package/build/cjs/orchestrion/config/mongodb.js +67 -0
  120. package/build/cjs/orchestrion/config/mongodb.js.map +1 -0
  121. package/build/cjs/orchestrion/config/mongoose.js +107 -0
  122. package/build/cjs/orchestrion/config/mongoose.js.map +1 -0
  123. package/build/cjs/orchestrion/config/mysql.js.map +1 -1
  124. package/build/cjs/orchestrion/config/mysql2.js +32 -0
  125. package/build/cjs/orchestrion/config/mysql2.js.map +1 -0
  126. package/build/cjs/orchestrion/config/nestjs.js +122 -0
  127. package/build/cjs/orchestrion/config/nestjs.js.map +1 -0
  128. package/build/cjs/orchestrion/config/openai.js +5 -5
  129. package/build/cjs/orchestrion/config/openai.js.map +1 -1
  130. package/build/cjs/orchestrion/config/pg.js.map +1 -1
  131. package/build/cjs/orchestrion/config/postgres.js.map +1 -1
  132. package/build/cjs/orchestrion/config/prisma.js +8 -0
  133. package/build/cjs/orchestrion/config/prisma.js.map +1 -0
  134. package/build/cjs/orchestrion/config/react-router.js +8 -0
  135. package/build/cjs/orchestrion/config/react-router.js.map +1 -0
  136. package/build/cjs/orchestrion/config/redis.js.map +1 -1
  137. package/build/cjs/orchestrion/config/remix.js +54 -0
  138. package/build/cjs/orchestrion/config/remix.js.map +1 -0
  139. package/build/cjs/orchestrion/config/tedious.js +24 -0
  140. package/build/cjs/orchestrion/config/tedious.js.map +1 -0
  141. package/build/cjs/orchestrion/config/vercel-ai.js.map +1 -1
  142. package/build/cjs/orchestrion/detect.js +12 -11
  143. package/build/cjs/orchestrion/detect.js.map +1 -1
  144. package/build/cjs/orchestrion/index.js +44 -6
  145. package/build/cjs/orchestrion/index.js.map +1 -1
  146. package/build/cjs/orchestrion/runtime/register.js +45 -21
  147. package/build/cjs/orchestrion/runtime/register.js.map +1 -1
  148. package/build/cjs/prisma/global.js +14 -0
  149. package/build/cjs/prisma/global.js.map +1 -0
  150. package/build/cjs/prisma/index.js +27 -0
  151. package/build/cjs/prisma/index.js.map +1 -0
  152. package/build/cjs/prisma/tracing-helper.js +211 -0
  153. package/build/cjs/prisma/tracing-helper.js.map +1 -0
  154. package/build/cjs/redis/redis-dc-subscriber.js +27 -38
  155. package/build/cjs/redis/redis-dc-subscriber.js.map +1 -1
  156. package/build/cjs/vercel-ai/util.js +0 -11
  157. package/build/cjs/vercel-ai/util.js.map +1 -1
  158. package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js +9 -9
  159. package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  160. package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js +16 -3
  161. package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
  162. package/build/esm/graphql/graphql-dc-subscriber.js +3 -5
  163. package/build/esm/graphql/graphql-dc-subscriber.js.map +1 -1
  164. package/build/esm/graphql/utils.js +8 -2
  165. package/build/esm/graphql/utils.js.map +1 -1
  166. package/build/esm/index.js +3 -0
  167. package/build/esm/index.js.map +1 -1
  168. package/build/esm/integrations/tracing-channel/aws-sdk/constants.js +9 -0
  169. package/build/esm/integrations/tracing-channel/aws-sdk/constants.js.map +1 -0
  170. package/build/esm/integrations/tracing-channel/aws-sdk/index.js +152 -0
  171. package/build/esm/integrations/tracing-channel/aws-sdk/index.js.map +1 -0
  172. package/build/esm/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js +41 -0
  173. package/build/esm/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js.map +1 -0
  174. package/build/esm/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js +45 -0
  175. package/build/esm/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js.map +1 -0
  176. package/build/esm/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js +417 -0
  177. package/build/esm/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js.map +1 -0
  178. package/build/esm/integrations/tracing-channel/aws-sdk/services/dynamodb.js +129 -0
  179. package/build/esm/integrations/tracing-channel/aws-sdk/services/dynamodb.js.map +1 -0
  180. package/build/esm/integrations/tracing-channel/aws-sdk/services/kinesis.js +19 -0
  181. package/build/esm/integrations/tracing-channel/aws-sdk/services/kinesis.js.map +1 -0
  182. package/build/esm/integrations/tracing-channel/aws-sdk/services/lambda.js +62 -0
  183. package/build/esm/integrations/tracing-channel/aws-sdk/services/lambda.js.map +1 -0
  184. package/build/esm/integrations/tracing-channel/aws-sdk/services/s3.js +19 -0
  185. package/build/esm/integrations/tracing-channel/aws-sdk/services/s3.js.map +1 -0
  186. package/build/esm/integrations/tracing-channel/aws-sdk/services/secretsmanager.js +25 -0
  187. package/build/esm/integrations/tracing-channel/aws-sdk/services/secretsmanager.js.map +1 -0
  188. package/build/esm/integrations/tracing-channel/aws-sdk/services/sns.js +61 -0
  189. package/build/esm/integrations/tracing-channel/aws-sdk/services/sns.js.map +1 -0
  190. package/build/esm/integrations/tracing-channel/aws-sdk/services/sqs.js +114 -0
  191. package/build/esm/integrations/tracing-channel/aws-sdk/services/sqs.js.map +1 -0
  192. package/build/esm/integrations/tracing-channel/aws-sdk/services/stepfunctions.js +23 -0
  193. package/build/esm/integrations/tracing-channel/aws-sdk/services/stepfunctions.js.map +1 -0
  194. package/build/esm/integrations/tracing-channel/aws-sdk/utils.js +26 -0
  195. package/build/esm/integrations/tracing-channel/aws-sdk/utils.js.map +1 -0
  196. package/build/esm/integrations/tracing-channel/dataloader.js +93 -0
  197. package/build/esm/integrations/tracing-channel/dataloader.js.map +1 -0
  198. package/build/esm/integrations/tracing-channel/express/instrumentation.js +1 -6
  199. package/build/esm/integrations/tracing-channel/express/instrumentation.js.map +1 -1
  200. package/build/esm/integrations/tracing-channel/generic-pool.js +32 -0
  201. package/build/esm/integrations/tracing-channel/generic-pool.js.map +1 -0
  202. package/build/esm/integrations/tracing-channel/graphql/spans.js +3 -3
  203. package/build/esm/integrations/tracing-channel/graphql/spans.js.map +1 -1
  204. package/build/esm/integrations/tracing-channel/ioredis.js +29 -27
  205. package/build/esm/integrations/tracing-channel/ioredis.js.map +1 -1
  206. package/build/esm/integrations/tracing-channel/kafkajs/consumer.js +67 -0
  207. package/build/esm/integrations/tracing-channel/kafkajs/consumer.js.map +1 -0
  208. package/build/esm/integrations/tracing-channel/kafkajs/index.js +68 -0
  209. package/build/esm/integrations/tracing-channel/kafkajs/index.js.map +1 -0
  210. package/build/esm/integrations/tracing-channel/kafkajs/semconv.js +12 -0
  211. package/build/esm/integrations/tracing-channel/kafkajs/semconv.js.map +1 -0
  212. package/build/esm/integrations/tracing-channel/kafkajs/spans.js +112 -0
  213. package/build/esm/integrations/tracing-channel/kafkajs/spans.js.map +1 -0
  214. package/build/esm/integrations/tracing-channel/knex.js +186 -0
  215. package/build/esm/integrations/tracing-channel/knex.js.map +1 -0
  216. package/build/esm/integrations/tracing-channel/koa.js +144 -0
  217. package/build/esm/integrations/tracing-channel/koa.js.map +1 -0
  218. package/build/esm/integrations/tracing-channel/langchain.js +61 -0
  219. package/build/esm/integrations/tracing-channel/langchain.js.map +1 -0
  220. package/build/esm/integrations/tracing-channel/langgraph.js +98 -0
  221. package/build/esm/integrations/tracing-channel/langgraph.js.map +1 -0
  222. package/build/esm/integrations/tracing-channel/mongodb.js +102 -0
  223. package/build/esm/integrations/tracing-channel/mongodb.js.map +1 -0
  224. package/build/esm/integrations/tracing-channel/mongoose.js +108 -0
  225. package/build/esm/integrations/tracing-channel/mongoose.js.map +1 -0
  226. package/build/esm/integrations/tracing-channel/mysql2.js +81 -0
  227. package/build/esm/integrations/tracing-channel/mysql2.js.map +1 -0
  228. package/build/esm/integrations/tracing-channel/openai.js +1 -3
  229. package/build/esm/integrations/tracing-channel/openai.js.map +1 -1
  230. package/build/esm/integrations/tracing-channel/redis.js +25 -34
  231. package/build/esm/integrations/tracing-channel/redis.js.map +1 -1
  232. package/build/esm/integrations/tracing-channel/tedious.js +143 -0
  233. package/build/esm/integrations/tracing-channel/tedious.js.map +1 -0
  234. package/build/esm/mongodb/mongodb-span.js +126 -0
  235. package/build/esm/mongodb/mongodb-span.js.map +1 -0
  236. package/build/esm/mongoose/index.js.map +1 -1
  237. package/build/esm/mongoose/mongoose-legacy-span.js +38 -0
  238. package/build/esm/mongoose/mongoose-legacy-span.js.map +1 -0
  239. package/build/esm/orchestrion/bundler/esbuild.js +9 -0
  240. package/build/esm/orchestrion/bundler/esbuild.js.map +1 -0
  241. package/build/esm/orchestrion/bundler/options.js +22 -0
  242. package/build/esm/orchestrion/bundler/options.js.map +1 -0
  243. package/build/esm/orchestrion/bundler/rollup.js +9 -0
  244. package/build/esm/orchestrion/bundler/rollup.js.map +1 -0
  245. package/build/esm/orchestrion/bundler/vite.js +5 -22
  246. package/build/esm/orchestrion/bundler/vite.js.map +1 -1
  247. package/build/esm/orchestrion/bundler/webpack.js +27 -0
  248. package/build/esm/orchestrion/bundler/webpack.js.map +1 -0
  249. package/build/esm/orchestrion/channels.js +54 -20
  250. package/build/esm/orchestrion/channels.js.map +1 -1
  251. package/build/esm/orchestrion/config/amqplib.js.map +1 -1
  252. package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
  253. package/build/esm/orchestrion/config/aws-sdk.js +25 -0
  254. package/build/esm/orchestrion/config/aws-sdk.js.map +1 -0
  255. package/build/esm/orchestrion/config/dataloader.js +50 -0
  256. package/build/esm/orchestrion/config/dataloader.js.map +1 -0
  257. package/build/esm/orchestrion/config/express.js +9 -8
  258. package/build/esm/orchestrion/config/express.js.map +1 -1
  259. package/build/esm/orchestrion/config/firebase.js +5 -0
  260. package/build/esm/orchestrion/config/firebase.js.map +1 -0
  261. package/build/esm/orchestrion/config/generic-pool.js +18 -0
  262. package/build/esm/orchestrion/config/generic-pool.js.map +1 -0
  263. package/build/esm/orchestrion/config/google-genai.js.map +1 -1
  264. package/build/esm/orchestrion/config/graphql.js.map +1 -1
  265. package/build/esm/orchestrion/config/hapi.js.map +1 -1
  266. package/build/esm/orchestrion/config/index.js +64 -24
  267. package/build/esm/orchestrion/config/index.js.map +1 -1
  268. package/build/esm/orchestrion/config/ioredis.js.map +1 -1
  269. package/build/esm/orchestrion/config/kafkajs.js +27 -0
  270. package/build/esm/orchestrion/config/kafkajs.js.map +1 -0
  271. package/build/esm/orchestrion/config/knex.js +40 -0
  272. package/build/esm/orchestrion/config/knex.js.map +1 -0
  273. package/build/esm/orchestrion/config/koa.js +13 -0
  274. package/build/esm/orchestrion/config/koa.js.map +1 -0
  275. package/build/esm/orchestrion/config/langchain.js +48 -0
  276. package/build/esm/orchestrion/config/langchain.js.map +1 -0
  277. package/build/esm/orchestrion/config/langgraph.js +25 -0
  278. package/build/esm/orchestrion/config/langgraph.js.map +1 -0
  279. package/build/esm/orchestrion/config/lru-memoizer.js.map +1 -1
  280. package/build/esm/orchestrion/config/mongodb.js +64 -0
  281. package/build/esm/orchestrion/config/mongodb.js.map +1 -0
  282. package/build/esm/orchestrion/config/mongoose.js +103 -0
  283. package/build/esm/orchestrion/config/mongoose.js.map +1 -0
  284. package/build/esm/orchestrion/config/mysql.js.map +1 -1
  285. package/build/esm/orchestrion/config/mysql2.js +29 -0
  286. package/build/esm/orchestrion/config/mysql2.js.map +1 -0
  287. package/build/esm/orchestrion/config/nestjs.js +119 -0
  288. package/build/esm/orchestrion/config/nestjs.js.map +1 -0
  289. package/build/esm/orchestrion/config/openai.js +5 -5
  290. package/build/esm/orchestrion/config/openai.js.map +1 -1
  291. package/build/esm/orchestrion/config/pg.js.map +1 -1
  292. package/build/esm/orchestrion/config/postgres.js.map +1 -1
  293. package/build/esm/orchestrion/config/prisma.js +5 -0
  294. package/build/esm/orchestrion/config/prisma.js.map +1 -0
  295. package/build/esm/orchestrion/config/react-router.js +5 -0
  296. package/build/esm/orchestrion/config/react-router.js.map +1 -0
  297. package/build/esm/orchestrion/config/redis.js.map +1 -1
  298. package/build/esm/orchestrion/config/remix.js +51 -0
  299. package/build/esm/orchestrion/config/remix.js.map +1 -0
  300. package/build/esm/orchestrion/config/tedious.js +21 -0
  301. package/build/esm/orchestrion/config/tedious.js.map +1 -0
  302. package/build/esm/orchestrion/config/vercel-ai.js.map +1 -1
  303. package/build/esm/orchestrion/detect.js +13 -12
  304. package/build/esm/orchestrion/detect.js.map +1 -1
  305. package/build/esm/orchestrion/index.js +26 -2
  306. package/build/esm/orchestrion/index.js.map +1 -1
  307. package/build/esm/orchestrion/runtime/register.js +47 -23
  308. package/build/esm/orchestrion/runtime/register.js.map +1 -1
  309. package/build/esm/package.json +1 -1
  310. package/build/esm/prisma/global.js +12 -0
  311. package/build/esm/prisma/global.js.map +1 -0
  312. package/build/esm/prisma/index.js +24 -0
  313. package/build/esm/prisma/index.js.map +1 -0
  314. package/build/esm/prisma/tracing-helper.js +209 -0
  315. package/build/esm/prisma/tracing-helper.js.map +1 -0
  316. package/build/esm/redis/redis-dc-subscriber.js +27 -38
  317. package/build/esm/redis/redis-dc-subscriber.js.map +1 -1
  318. package/build/esm/vercel-ai/util.js +1 -11
  319. package/build/esm/vercel-ai/util.js.map +1 -1
  320. package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js +11 -11
  321. package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  322. package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js +17 -4
  323. package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
  324. package/build/types/graphql/utils.d.ts +2 -6
  325. package/build/types/graphql/utils.d.ts.map +1 -1
  326. package/build/types/index.d.ts +7 -1
  327. package/build/types/index.d.ts.map +1 -1
  328. package/build/types/integrations/tracing-channel/aws-sdk/aws-sdk.types.d.ts +43 -0
  329. package/build/types/integrations/tracing-channel/aws-sdk/aws-sdk.types.d.ts.map +1 -0
  330. package/build/types/integrations/tracing-channel/aws-sdk/constants.d.ts +15 -0
  331. package/build/types/integrations/tracing-channel/aws-sdk/constants.d.ts.map +1 -0
  332. package/build/types/integrations/tracing-channel/aws-sdk/index.d.ts +15 -0
  333. package/build/types/integrations/tracing-channel/aws-sdk/index.d.ts.map +1 -0
  334. package/build/types/integrations/tracing-channel/aws-sdk/services/MessageAttributes.d.ts +23 -0
  335. package/build/types/integrations/tracing-channel/aws-sdk/services/MessageAttributes.d.ts.map +1 -0
  336. package/build/types/integrations/tracing-channel/aws-sdk/services/ServiceExtension.d.ts +9 -0
  337. package/build/types/integrations/tracing-channel/aws-sdk/services/ServiceExtension.d.ts.map +1 -0
  338. package/build/types/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.d.ts +10 -0
  339. package/build/types/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.d.ts.map +1 -0
  340. package/build/types/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.d.ts +14 -0
  341. package/build/types/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.d.ts.map +1 -0
  342. package/build/types/integrations/tracing-channel/aws-sdk/services/dynamodb.d.ts +8 -0
  343. package/build/types/integrations/tracing-channel/aws-sdk/services/dynamodb.d.ts.map +1 -0
  344. package/build/types/integrations/tracing-channel/aws-sdk/services/index.d.ts +2 -0
  345. package/build/types/integrations/tracing-channel/aws-sdk/services/index.d.ts.map +1 -0
  346. package/build/types/integrations/tracing-channel/aws-sdk/services/kinesis.d.ts +6 -0
  347. package/build/types/integrations/tracing-channel/aws-sdk/services/kinesis.d.ts.map +1 -0
  348. package/build/types/integrations/tracing-channel/aws-sdk/services/lambda.d.ts +9 -0
  349. package/build/types/integrations/tracing-channel/aws-sdk/services/lambda.d.ts.map +1 -0
  350. package/build/types/integrations/tracing-channel/aws-sdk/services/s3.d.ts +6 -0
  351. package/build/types/integrations/tracing-channel/aws-sdk/services/s3.d.ts.map +1 -0
  352. package/build/types/integrations/tracing-channel/aws-sdk/services/secretsmanager.d.ts +8 -0
  353. package/build/types/integrations/tracing-channel/aws-sdk/services/secretsmanager.d.ts.map +1 -0
  354. package/build/types/integrations/tracing-channel/aws-sdk/services/sns.d.ts +9 -0
  355. package/build/types/integrations/tracing-channel/aws-sdk/services/sns.d.ts.map +1 -0
  356. package/build/types/integrations/tracing-channel/aws-sdk/services/sqs.d.ts +9 -0
  357. package/build/types/integrations/tracing-channel/aws-sdk/services/sqs.d.ts.map +1 -0
  358. package/build/types/integrations/tracing-channel/aws-sdk/services/stepfunctions.d.ts +6 -0
  359. package/build/types/integrations/tracing-channel/aws-sdk/services/stepfunctions.d.ts.map +1 -0
  360. package/build/types/integrations/tracing-channel/aws-sdk/types.d.ts +26 -0
  361. package/build/types/integrations/tracing-channel/aws-sdk/types.d.ts.map +1 -0
  362. package/build/types/integrations/tracing-channel/aws-sdk/utils.d.ts +5 -0
  363. package/build/types/integrations/tracing-channel/aws-sdk/utils.d.ts.map +1 -0
  364. package/build/types/integrations/tracing-channel/dataloader.d.ts +11 -0
  365. package/build/types/integrations/tracing-channel/dataloader.d.ts.map +1 -0
  366. package/build/types/integrations/tracing-channel/express/instrumentation.d.ts.map +1 -1
  367. package/build/types/integrations/tracing-channel/generic-pool.d.ts +10 -0
  368. package/build/types/integrations/tracing-channel/generic-pool.d.ts.map +1 -0
  369. package/build/types/integrations/tracing-channel/ioredis.d.ts +20 -0
  370. package/build/types/integrations/tracing-channel/ioredis.d.ts.map +1 -1
  371. package/build/types/integrations/tracing-channel/kafkajs/consumer.d.ts +8 -0
  372. package/build/types/integrations/tracing-channel/kafkajs/consumer.d.ts.map +1 -0
  373. package/build/types/integrations/tracing-channel/kafkajs/index.d.ts +17 -0
  374. package/build/types/integrations/tracing-channel/kafkajs/index.d.ts.map +1 -0
  375. package/build/types/integrations/tracing-channel/kafkajs/semconv.d.ts +10 -0
  376. package/build/types/integrations/tracing-channel/kafkajs/semconv.d.ts.map +1 -0
  377. package/build/types/integrations/tracing-channel/kafkajs/spans.d.ts +38 -0
  378. package/build/types/integrations/tracing-channel/kafkajs/spans.d.ts.map +1 -0
  379. package/build/types/integrations/tracing-channel/kafkajs/types.d.ts +40 -0
  380. package/build/types/integrations/tracing-channel/kafkajs/types.d.ts.map +1 -0
  381. package/build/types/integrations/tracing-channel/knex.d.ts +11 -0
  382. package/build/types/integrations/tracing-channel/knex.d.ts.map +1 -0
  383. package/build/types/integrations/tracing-channel/koa.d.ts +14 -0
  384. package/build/types/integrations/tracing-channel/koa.d.ts.map +1 -0
  385. package/build/types/integrations/tracing-channel/langchain.d.ts +10 -0
  386. package/build/types/integrations/tracing-channel/langchain.d.ts.map +1 -0
  387. package/build/types/integrations/tracing-channel/langgraph.d.ts +10 -0
  388. package/build/types/integrations/tracing-channel/langgraph.d.ts.map +1 -0
  389. package/build/types/integrations/tracing-channel/mongodb.d.ts +12 -0
  390. package/build/types/integrations/tracing-channel/mongodb.d.ts.map +1 -0
  391. package/build/types/integrations/tracing-channel/mongoose.d.ts +15 -0
  392. package/build/types/integrations/tracing-channel/mongoose.d.ts.map +1 -0
  393. package/build/types/integrations/tracing-channel/mysql2.d.ts +15 -0
  394. package/build/types/integrations/tracing-channel/mysql2.d.ts.map +1 -0
  395. package/build/types/integrations/tracing-channel/openai.d.ts.map +1 -1
  396. package/build/types/integrations/tracing-channel/redis.d.ts.map +1 -1
  397. package/build/types/integrations/tracing-channel/tedious.d.ts +11 -0
  398. package/build/types/integrations/tracing-channel/tedious.d.ts.map +1 -0
  399. package/build/types/mongodb/mongodb-span.d.ts +66 -0
  400. package/build/types/mongodb/mongodb-span.d.ts.map +1 -0
  401. package/build/types/mongoose/index.d.ts +2 -0
  402. package/build/types/mongoose/index.d.ts.map +1 -1
  403. package/build/types/mongoose/mongoose-legacy-span.d.ts +29 -0
  404. package/build/types/mongoose/mongoose-legacy-span.d.ts.map +1 -0
  405. package/build/types/orchestrion/bundler/esbuild.d.ts +21 -0
  406. package/build/types/orchestrion/bundler/esbuild.d.ts.map +1 -0
  407. package/build/types/orchestrion/bundler/options.d.ts +29 -0
  408. package/build/types/orchestrion/bundler/options.d.ts.map +1 -0
  409. package/build/types/orchestrion/bundler/rollup.d.ts +17 -0
  410. package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -0
  411. package/build/types/orchestrion/bundler/vite.d.ts +4 -17
  412. package/build/types/orchestrion/bundler/vite.d.ts.map +1 -1
  413. package/build/types/orchestrion/bundler/webpack.d.ts +19 -0
  414. package/build/types/orchestrion/bundler/webpack.d.ts.map +1 -0
  415. package/build/types/orchestrion/channels.d.ts +94 -37
  416. package/build/types/orchestrion/channels.d.ts.map +1 -1
  417. package/build/types/orchestrion/config/aws-sdk.d.ts +19 -0
  418. package/build/types/orchestrion/config/aws-sdk.d.ts.map +1 -0
  419. package/build/types/orchestrion/config/dataloader.d.ts +46 -0
  420. package/build/types/orchestrion/config/dataloader.d.ts.map +1 -0
  421. package/build/types/orchestrion/config/express.d.ts +2 -4
  422. package/build/types/orchestrion/config/express.d.ts.map +1 -1
  423. package/build/types/orchestrion/config/firebase.d.ts +4 -0
  424. package/build/types/orchestrion/config/firebase.d.ts.map +1 -0
  425. package/build/types/orchestrion/config/generic-pool.d.ts +31 -0
  426. package/build/types/orchestrion/config/generic-pool.d.ts.map +1 -0
  427. package/build/types/orchestrion/config/index.d.ts +19 -6
  428. package/build/types/orchestrion/config/index.d.ts.map +1 -1
  429. package/build/types/orchestrion/config/ioredis.d.ts +1 -1
  430. package/build/types/orchestrion/config/ioredis.d.ts.map +1 -1
  431. package/build/types/orchestrion/config/kafkajs.d.ts +17 -0
  432. package/build/types/orchestrion/config/kafkajs.d.ts.map +1 -0
  433. package/build/types/orchestrion/config/knex.d.ts +9 -0
  434. package/build/types/orchestrion/config/knex.d.ts.map +1 -0
  435. package/build/types/orchestrion/config/koa.d.ts +17 -0
  436. package/build/types/orchestrion/config/koa.d.ts.map +1 -0
  437. package/build/types/orchestrion/config/langchain.d.ts +18 -0
  438. package/build/types/orchestrion/config/langchain.d.ts.map +1 -0
  439. package/build/types/orchestrion/config/langgraph.d.ts +21 -0
  440. package/build/types/orchestrion/config/langgraph.d.ts.map +1 -0
  441. package/build/types/orchestrion/config/mongodb.d.ts +59 -0
  442. package/build/types/orchestrion/config/mongodb.d.ts.map +1 -0
  443. package/build/types/orchestrion/config/mongoose.d.ts +40 -0
  444. package/build/types/orchestrion/config/mongoose.d.ts.map +1 -0
  445. package/build/types/orchestrion/config/mysql2.d.ts +18 -0
  446. package/build/types/orchestrion/config/mysql2.d.ts.map +1 -0
  447. package/build/types/orchestrion/config/nestjs.d.ts +24 -0
  448. package/build/types/orchestrion/config/nestjs.d.ts.map +1 -0
  449. package/build/types/orchestrion/config/openai.d.ts +0 -2
  450. package/build/types/orchestrion/config/openai.d.ts.map +1 -1
  451. package/build/types/orchestrion/config/postgres.d.ts +1 -1
  452. package/build/types/orchestrion/config/postgres.d.ts.map +1 -1
  453. package/build/types/orchestrion/config/prisma.d.ts +4 -0
  454. package/build/types/orchestrion/config/prisma.d.ts.map +1 -0
  455. package/build/types/orchestrion/config/react-router.d.ts +4 -0
  456. package/build/types/orchestrion/config/react-router.d.ts.map +1 -0
  457. package/build/types/orchestrion/config/remix.d.ts +9 -0
  458. package/build/types/orchestrion/config/remix.d.ts.map +1 -0
  459. package/build/types/orchestrion/config/tedious.d.ts +12 -0
  460. package/build/types/orchestrion/config/tedious.d.ts.map +1 -0
  461. package/build/types/orchestrion/config/vercel-ai.d.ts +1 -1
  462. package/build/types/orchestrion/config/vercel-ai.d.ts.map +1 -1
  463. package/build/types/orchestrion/detect.d.ts +3 -10
  464. package/build/types/orchestrion/detect.d.ts.map +1 -1
  465. package/build/types/orchestrion/index.d.ts +56 -1
  466. package/build/types/orchestrion/index.d.ts.map +1 -1
  467. package/build/types/orchestrion/runtime/register.d.ts +11 -9
  468. package/build/types/orchestrion/runtime/register.d.ts.map +1 -1
  469. package/build/types/prisma/global.d.ts +5 -0
  470. package/build/types/prisma/global.d.ts.map +1 -0
  471. package/build/types/prisma/index.d.ts +45 -0
  472. package/build/types/prisma/index.d.ts.map +1 -0
  473. package/build/types/prisma/tracing-helper.d.ts +46 -0
  474. package/build/types/prisma/tracing-helper.d.ts.map +1 -0
  475. package/build/types/prisma/types.d.ts +37 -0
  476. package/build/types/prisma/types.d.ts.map +1 -0
  477. package/build/types/vercel-ai/util.d.ts +0 -2
  478. package/build/types/vercel-ai/util.d.ts.map +1 -1
  479. package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
  480. package/build/types/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts.map +1 -1
  481. package/build/types-ts3.8/graphql/utils.d.ts +2 -6
  482. package/build/types-ts3.8/index.d.ts +7 -1
  483. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/aws-sdk.types.d.ts +43 -0
  484. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/constants.d.ts +15 -0
  485. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/index.d.ts +15 -0
  486. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/MessageAttributes.d.ts +23 -0
  487. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/ServiceExtension.d.ts +9 -0
  488. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.d.ts +10 -0
  489. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.d.ts +14 -0
  490. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/dynamodb.d.ts +8 -0
  491. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/index.d.ts +2 -0
  492. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/kinesis.d.ts +6 -0
  493. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/lambda.d.ts +9 -0
  494. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/s3.d.ts +6 -0
  495. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/secretsmanager.d.ts +8 -0
  496. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/sns.d.ts +9 -0
  497. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/sqs.d.ts +9 -0
  498. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/stepfunctions.d.ts +6 -0
  499. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/types.d.ts +26 -0
  500. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/utils.d.ts +5 -0
  501. package/build/types-ts3.8/integrations/tracing-channel/dataloader.d.ts +11 -0
  502. package/build/types-ts3.8/integrations/tracing-channel/generic-pool.d.ts +10 -0
  503. package/build/types-ts3.8/integrations/tracing-channel/ioredis.d.ts +20 -0
  504. package/build/types-ts3.8/integrations/tracing-channel/kafkajs/consumer.d.ts +8 -0
  505. package/build/types-ts3.8/integrations/tracing-channel/kafkajs/index.d.ts +17 -0
  506. package/build/types-ts3.8/integrations/tracing-channel/kafkajs/semconv.d.ts +10 -0
  507. package/build/types-ts3.8/integrations/tracing-channel/kafkajs/spans.d.ts +38 -0
  508. package/build/types-ts3.8/integrations/tracing-channel/kafkajs/types.d.ts +40 -0
  509. package/build/types-ts3.8/integrations/tracing-channel/knex.d.ts +11 -0
  510. package/build/types-ts3.8/integrations/tracing-channel/koa.d.ts +14 -0
  511. package/build/types-ts3.8/integrations/tracing-channel/langchain.d.ts +10 -0
  512. package/build/types-ts3.8/integrations/tracing-channel/langgraph.d.ts +10 -0
  513. package/build/types-ts3.8/integrations/tracing-channel/mongodb.d.ts +12 -0
  514. package/build/types-ts3.8/integrations/tracing-channel/mongoose.d.ts +15 -0
  515. package/build/types-ts3.8/integrations/tracing-channel/mysql2.d.ts +15 -0
  516. package/build/types-ts3.8/integrations/tracing-channel/tedious.d.ts +11 -0
  517. package/build/types-ts3.8/mongodb/mongodb-span.d.ts +66 -0
  518. package/build/types-ts3.8/mongoose/index.d.ts +2 -0
  519. package/build/types-ts3.8/mongoose/mongoose-legacy-span.d.ts +29 -0
  520. package/build/types-ts3.8/orchestrion/bundler/esbuild.d.ts +21 -0
  521. package/build/types-ts3.8/orchestrion/bundler/options.d.ts +29 -0
  522. package/build/types-ts3.8/orchestrion/bundler/rollup.d.ts +17 -0
  523. package/build/types-ts3.8/orchestrion/bundler/vite.d.ts +4 -17
  524. package/build/types-ts3.8/orchestrion/bundler/webpack.d.ts +19 -0
  525. package/build/types-ts3.8/orchestrion/channels.d.ts +94 -37
  526. package/build/types-ts3.8/orchestrion/config/aws-sdk.d.ts +19 -0
  527. package/build/types-ts3.8/orchestrion/config/dataloader.d.ts +46 -0
  528. package/build/types-ts3.8/orchestrion/config/express.d.ts +2 -4
  529. package/build/types-ts3.8/orchestrion/config/firebase.d.ts +4 -0
  530. package/build/types-ts3.8/orchestrion/config/generic-pool.d.ts +31 -0
  531. package/build/types-ts3.8/orchestrion/config/index.d.ts +19 -6
  532. package/build/types-ts3.8/orchestrion/config/ioredis.d.ts +1 -1
  533. package/build/types-ts3.8/orchestrion/config/kafkajs.d.ts +17 -0
  534. package/build/types-ts3.8/orchestrion/config/knex.d.ts +9 -0
  535. package/build/types-ts3.8/orchestrion/config/koa.d.ts +17 -0
  536. package/build/types-ts3.8/orchestrion/config/langchain.d.ts +18 -0
  537. package/build/types-ts3.8/orchestrion/config/langgraph.d.ts +21 -0
  538. package/build/types-ts3.8/orchestrion/config/mongodb.d.ts +59 -0
  539. package/build/types-ts3.8/orchestrion/config/mongoose.d.ts +40 -0
  540. package/build/types-ts3.8/orchestrion/config/mysql2.d.ts +18 -0
  541. package/build/types-ts3.8/orchestrion/config/nestjs.d.ts +24 -0
  542. package/build/types-ts3.8/orchestrion/config/openai.d.ts +0 -2
  543. package/build/types-ts3.8/orchestrion/config/postgres.d.ts +1 -1
  544. package/build/types-ts3.8/orchestrion/config/prisma.d.ts +4 -0
  545. package/build/types-ts3.8/orchestrion/config/react-router.d.ts +4 -0
  546. package/build/types-ts3.8/orchestrion/config/remix.d.ts +9 -0
  547. package/build/types-ts3.8/orchestrion/config/tedious.d.ts +12 -0
  548. package/build/types-ts3.8/orchestrion/config/vercel-ai.d.ts +1 -1
  549. package/build/types-ts3.8/orchestrion/detect.d.ts +3 -10
  550. package/build/types-ts3.8/orchestrion/index.d.ts +56 -1
  551. package/build/types-ts3.8/orchestrion/runtime/register.d.ts +11 -9
  552. package/build/types-ts3.8/prisma/global.d.ts +5 -0
  553. package/build/types-ts3.8/prisma/index.d.ts +45 -0
  554. package/build/types-ts3.8/prisma/tracing-helper.d.ts +52 -0
  555. package/build/types-ts3.8/prisma/types.d.ts +40 -0
  556. package/build/types-ts3.8/vercel-ai/util.d.ts +0 -2
  557. package/package.json +40 -8
@@ -1,29 +1,12 @@
1
1
  import codeTransformer from '@apm-js-collab/code-transformer-bundler-plugins/vite';
2
- import MagicString from 'magic-string';
3
- import { SENTRY_INSTRUMENTATIONS, INSTRUMENTED_MODULE_NAMES } from '../config/index.js';
2
+ import { instrumentedModuleNames } from '../config/index.js';
3
+ import { orchestrionTransformOptions } from './options.js';
4
4
 
5
- function sentryOrchestrionPlugin() {
6
- const codeTransformerPlugins = codeTransformer({ instrumentations: SENTRY_INSTRUMENTATIONS });
7
- const codeTransformerArray = Array.isArray(codeTransformerPlugins) ? codeTransformerPlugins : [codeTransformerPlugins];
8
- return [bundlerMarkerPlugin(), ...codeTransformerArray];
9
- }
10
- function bundlerMarkerPlugin() {
11
- const banner = [
12
- "globalThis.__SENTRY_ORCHESTRION__ = (globalThis.__SENTRY_ORCHESTRION__ || {});",
13
- "globalThis.__SENTRY_ORCHESTRION__.bundler = true;",
14
- ""
15
- ].join("\n");
5
+ function sentryOrchestrionPlugin(options = {}) {
16
6
  return {
17
- name: "sentry-orchestrion-marker",
18
- enforce: "pre",
7
+ ...codeTransformer(orchestrionTransformOptions(options)),
19
8
  config() {
20
- return { ssr: { noExternal: INSTRUMENTED_MODULE_NAMES } };
21
- },
22
- renderChunk(code, chunk) {
23
- if (!chunk.isEntry) return null;
24
- const ms = new MagicString(code);
25
- ms.prepend(banner);
26
- return { code: ms.toString(), map: ms.generateMap({ hires: true }) };
9
+ return { ssr: { noExternal: instrumentedModuleNames(options.instrumentations) } };
27
10
  }
28
11
  };
29
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"vite.js","sources":["../../../../src/orchestrion/bundler/vite.ts"],"sourcesContent":["// EXPERIMENTAL — Vite plugin that runs the orchestrion code transform at build\n// time, injecting `diagnostics_channel.tracingChannel` calls into the libraries\n// listed in `SENTRY_INSTRUMENTATIONS`.\n//\n// This file is published ESM-only via the `@sentry/server-utils/orchestrion/vite`\n// subpath export. `@apm-js-collab/code-transformer-bundler-plugins` is\n// `\"type\": \"module\"`, so consuming it from a CJS build is intentionally\n// unsupported — vite.config.ts is almost always ESM in practice. The CJS\n// rollup variant still emits this file, but `package.json` only exposes the\n// ESM entry, so attempts to `require('@sentry/server-utils/orchestrion/vite')` will\n// fail at resolution time rather than producing a half-broken plugin.\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype UnknownPlugin = any;\n\nimport codeTransformer from '@apm-js-collab/code-transformer-bundler-plugins/vite';\nimport MagicString from 'magic-string';\nimport { INSTRUMENTED_MODULE_NAMES, SENTRY_INSTRUMENTATIONS } from '../config';\n\n// `vite` types live in the package's ESM-only subpath; under Node16 module\n// resolution with TS treating @sentry/server-utils as CJS, importing them produces a\n// false positive. We don't need the runtime value for typing — `UnknownPlugin`\n// is sufficient — so we omit the import entirely.\n\n/**\n * Vite plugin that runs the orchestrion code transform on the bundled output.\n *\n * Use when bundling a Node app with Vite (e.g. Vite SSR builds, Nuxt's Nitro\n * pipeline, SvelteKit). For unbundled Node processes use the runtime hook\n * instead (`node --import @sentry/node/orchestrion app.js`).\n *\n * Returns two plugins:\n * 1. `sentry-orchestrion-marker` — a `renderChunk` hook that prepends a\n * single-line banner to entry chunks. The banner sets\n * `globalThis.__SENTRY_ORCHESTRION__.bundler = true` at app boot, so the\n * `_experimentalSetupOrchestrion()` detector can confirm the bundler path\n * ran (rather than relying on a build-time flag that wouldn't be visible\n * to the runtime).\n * Also injects every instrumented package name into `ssr.noExternal` via\n * the `config` hook, since externalized deps are `require()`d at runtime\n * from `node_modules` and never pass through the transform.\n * 2. The upstream `@apm-js-collab/code-transformer-bundler-plugins/vite`\n * plugin, fed our central `SENTRY_INSTRUMENTATIONS` config.\n *\n * @example\n * ```ts\n * // vite.config.ts\n * import { sentryOrchestrionPlugin } from '@sentry/node/orchestrion/vite';\n * export default { plugins: [sentryOrchestrionPlugin()] };\n * ```\n */\nexport function sentryOrchestrionPlugin(): UnknownPlugin[] {\n const codeTransformerPlugins = codeTransformer({ instrumentations: SENTRY_INSTRUMENTATIONS });\n const codeTransformerArray: UnknownPlugin[] = Array.isArray(codeTransformerPlugins)\n ? codeTransformerPlugins\n : [codeTransformerPlugins];\n return [bundlerMarkerPlugin(), ...codeTransformerArray];\n}\n\nfunction bundlerMarkerPlugin(): UnknownPlugin {\n const banner = [\n 'globalThis.__SENTRY_ORCHESTRION__ = (globalThis.__SENTRY_ORCHESTRION__ || {});',\n 'globalThis.__SENTRY_ORCHESTRION__.bundler = true;',\n '',\n ].join('\\n');\n\n return {\n name: 'sentry-orchestrion-marker',\n enforce: 'pre' as const,\n config(): { ssr: { noExternal: string[] } } {\n // Force-bundle every instrumented package so the code transform actually\n // sees its source. Vite externalizes dependencies in SSR builds by\n // default, leaving them as bare `require()`/`import` calls resolved from\n // `node_modules` at runtime — those copies are untouched and the\n // diagnostics_channel calls never get injected. Vite merges array\n // `noExternal` entries with the user's config, so we don't overwrite\n // their additions.\n return { ssr: { noExternal: INSTRUMENTED_MODULE_NAMES } };\n },\n renderChunk(code: string, chunk: { isEntry: boolean }): { code: string; map: unknown } | null {\n if (!chunk.isEntry) return null;\n // Prepend via magic-string so the entry chunk's sourcemap stays aligned —\n // returning `map: null` here would shift every mapping by the banner's\n // line count and misattribute server stack traces.\n const ms = new MagicString(code);\n ms.prepend(banner);\n return { code: ms.toString(), map: ms.generateMap({ hires: true }) };\n },\n };\n}\n"],"names":[],"mappings":";;;;AAmDO,SAAS,uBAAA,GAA2C;AACzD,EAAA,MAAM,sBAAA,GAAyB,eAAA,CAAgB,EAAE,gBAAA,EAAkB,yBAAyB,CAAA;AAC5F,EAAA,MAAM,uBAAwC,KAAA,CAAM,OAAA,CAAQ,sBAAsB,CAAA,GAC9E,sBAAA,GACA,CAAC,sBAAsB,CAAA;AAC3B,EAAA,OAAO,CAAC,mBAAA,EAAoB,EAAG,GAAG,oBAAoB,CAAA;AACxD;AAEA,SAAS,mBAAA,GAAqC;AAC5C,EAAA,MAAM,MAAA,GAAS;AAAA,IACb,gFAAA;AAAA,IACA,mDAAA;AAAA,IACA;AAAA,GACF,CAAE,KAAK,IAAI,CAAA;AAEX,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,2BAAA;AAAA,IACN,OAAA,EAAS,KAAA;AAAA,IACT,MAAA,GAA4C;AAQ1C,MAAA,OAAO,EAAE,GAAA,EAAK,EAAE,UAAA,EAAY,2BAA0B,EAAE;AAAA,IAC1D,CAAA;AAAA,IACA,WAAA,CAAY,MAAc,KAAA,EAAoE;AAC5F,MAAA,IAAI,CAAC,KAAA,CAAM,OAAA,EAAS,OAAO,IAAA;AAI3B,MAAA,MAAM,EAAA,GAAK,IAAI,WAAA,CAAY,IAAI,CAAA;AAC/B,MAAA,EAAA,CAAG,QAAQ,MAAM,CAAA;AACjB,MAAA,OAAO,EAAE,IAAA,EAAM,EAAA,CAAG,QAAA,EAAS,EAAG,GAAA,EAAK,EAAA,CAAG,WAAA,CAAY,EAAE,KAAA,EAAO,IAAA,EAAM,CAAA,EAAE;AAAA,IACrE;AAAA,GACF;AACF;;;;"}
1
+ {"version":3,"file":"vite.js","sources":["../../../../src/orchestrion/bundler/vite.ts"],"sourcesContent":["import codeTransformer from '@apm-js-collab/code-transformer-bundler-plugins/vite';\nimport { instrumentedModuleNames } from '../config';\nimport type { PluginOptions } from './options';\nimport { orchestrionTransformOptions } from './options';\n\n/**\n * Vite plugin that runs the orchestrion code transform on the bundled output.\n *\n * Use when bundling a Node app with Vite (e.g. Vite SSR builds, Nuxt's Nitro\n * pipeline, SvelteKit). For unbundled Node processes use the runtime hook\n * instead (`node --import @sentry/node/orchestrion app.js`).\n *\n * @example\n * ```ts\n * // vite.config.ts\n * import { sentryOrchestrionPlugin } from '@sentry/server-utils/orchestrion/vite';\n * export default { plugins: [sentryOrchestrionPlugin()] };\n * ```\n */\nexport function sentryOrchestrionPlugin(options: PluginOptions = {}): ReturnType<typeof codeTransformer> {\n return {\n ...codeTransformer(orchestrionTransformOptions(options)),\n config(): { ssr: { noExternal: string[] } } {\n // Force-bundle every instrumented package so the code transform actually\n // sees its source. Vite externalizes dependencies in SSR builds by\n // default, leaving them as bare `require()`/`import` calls resolved from\n // `node_modules` at runtime — those copies are untouched and the\n // diagnostics_channel calls never get injected. Vite merges array\n // `noExternal` entries with the user's config, so we don't overwrite\n // their additions.\n return { ssr: { noExternal: instrumentedModuleNames(options.instrumentations) } };\n },\n };\n}\n"],"names":[],"mappings":";;;;AAmBO,SAAS,uBAAA,CAAwB,OAAA,GAAyB,EAAC,EAAuC;AACvG,EAAA,OAAO;AAAA,IACL,GAAG,eAAA,CAAgB,2BAAA,CAA4B,OAAO,CAAC,CAAA;AAAA,IACvD,MAAA,GAA4C;AAQ1C,MAAA,OAAO,EAAE,KAAK,EAAE,UAAA,EAAY,wBAAwB,OAAA,CAAQ,gBAAgB,GAAE,EAAE;AAAA,IAClF;AAAA,GACF;AACF;;;;"}
@@ -0,0 +1,27 @@
1
+ import { createRequire } from 'node:module';
2
+ import { dirname } from 'node:path';
3
+ import { SENTRY_INSTRUMENTATIONS } from '../config/index.js';
4
+ import codeTransformerWebpack from '@apm-js-collab/code-transformer-bundler-plugins/webpack';
5
+ import { orchestrionTransformOptions } from './options.js';
6
+
7
+ function getOrchestrionRequire() {
8
+ let nodeRequire;
9
+ nodeRequire = createRequire(import.meta.url);
10
+ return nodeRequire;
11
+ }
12
+ function getOrchestrionLoaderPath() {
13
+ return getOrchestrionRequire().resolve("@apm-js-collab/code-transformer-bundler-plugins/webpack-loader");
14
+ }
15
+ function getTracingHooksDirectory() {
16
+ const packageJsonPath = getOrchestrionRequire().resolve("@apm-js-collab/tracing-hooks/package.json");
17
+ return dirname(packageJsonPath).replace(/\\/g, "/");
18
+ }
19
+ function getSentryInstrumentations() {
20
+ return SENTRY_INSTRUMENTATIONS;
21
+ }
22
+ function sentryOrchestrionWebpackPlugin(options = {}) {
23
+ return codeTransformerWebpack(orchestrionTransformOptions(options));
24
+ }
25
+
26
+ export { getOrchestrionLoaderPath, getSentryInstrumentations, getTracingHooksDirectory, sentryOrchestrionWebpackPlugin };
27
+ //# sourceMappingURL=webpack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webpack.js","sources":["../../../../src/orchestrion/bundler/webpack.ts"],"sourcesContent":["// EXPERIMENTAL — orchestrion code-transform loader + webpack plugin. The loader is exposed\n// separately because Turbopack can only take webpack loaders (via `turbopack.rules`), not plugins.\n\nimport { createRequire } from 'node:module';\nimport { dirname } from 'node:path';\nimport type { InstrumentationConfig } from '..';\nimport { SENTRY_INSTRUMENTATIONS } from '../config';\nimport codeTransformerWebpack from '@apm-js-collab/code-transformer-bundler-plugins/webpack';\nimport type { PluginOptions } from './options';\nimport { orchestrionTransformOptions } from './options';\n\n// Both branches use `createRequire` (never alias the CJS `require`) so bundlers consuming this\n// module don't emit a \"Critical dependency\" warning.\nfunction getOrchestrionRequire(): ReturnType<typeof createRequire> {\n let nodeRequire: ReturnType<typeof createRequire>;\n /*! rollup-include-cjs-only */\n nodeRequire = createRequire(__filename);\n /*! rollup-include-cjs-only-end */\n /*! rollup-include-esm-only */\n nodeRequire = createRequire(import.meta.url);\n /*! rollup-include-esm-only-end */\n return nodeRequire;\n}\n\n/** Absolute path to the code-transform loader (a webpack loader; also usable as a Turbopack loader). */\nexport function getOrchestrionLoaderPath(): string {\n return getOrchestrionRequire().resolve('@apm-js-collab/code-transformer-bundler-plugins/webpack-loader');\n}\n\n/**\n * Absolute path to the `@apm-js-collab/tracing-hooks` package directory, resolved from this\n * package's own dependency graph. SDKs inject it at build time so the runtime module hook can\n * load the package even where the bare specifier doesn't resolve (bundled SDK code under\n * isolated installs, e.g. pnpm).\n */\nexport function getTracingHooksDirectory(): string {\n const packageJsonPath = getOrchestrionRequire().resolve('@apm-js-collab/tracing-hooks/package.json');\n // This avoids any backslash-escaping concerns on Windows\n return dirname(packageJsonPath).replace(/\\\\/g, '/');\n}\n\n/** The central instrumentation config, to pass as the loader's `instrumentations` option. */\nexport function getSentryInstrumentations(): InstrumentationConfig[] {\n return SENTRY_INSTRUMENTATIONS;\n}\n\n/**\n * The code-transform webpack plugin, pre-fed the instrumentation config\n */\nexport function sentryOrchestrionWebpackPlugin(options: PluginOptions = {}): ReturnType<typeof codeTransformerWebpack> {\n return codeTransformerWebpack(orchestrionTransformOptions(options));\n}\n"],"names":[],"mappings":";;;;;;AAaA,SAAS,qBAAA,GAA0D;AACjE,EAAA,IAAI,WAAA;AAAA,EACJ,WAAA,GAAA,aAAA,CAAA,MAAA,CAAA,IAAA,CAAA,GAAA,CAAA;AACA,EAAA,OAAA;AAAsC;AAEtC,SAAA,wBAAA,GAAA;AACA,EAAA,OAAA,qBAA4B,2EAAe,CAAA;AAAA;AAE3C,SAAO,wBAAA,GAAA;AACT,EAAA,MAAA,eAAA,GAAA,qBAAA,EAAA,CAAA,OAAA,CAAA,2CAAA,CAAA;AAGO,EAAA,OAAA,OAAS,CAAA,eAAA,CAAA,CAAA,OAAA,CAAA,KAAmC,EAAA,GAAA,CAAA;AACjD;AACF,SAAA,yBAAA,GAAA;AAQO,EAAA,OAAA,uBAAS;AACd;AAEA,SAAO,sCAA2C,GAAA,EAAA,EAAA;AACpD,EAAA,OAAA,sBAAA,CAAA,2BAAA,CAAA,OAAA,CAAA,CAAA;AAGO;;;;"}
@@ -1,33 +1,67 @@
1
- import { mysqlChannels } from './config/mysql.js';
2
- import { lruMemoizerChannels } from './config/lru-memoizer.js';
3
- import { ioredisChannels } from './config/ioredis.js';
4
- import { pgChannels } from './config/pg.js';
5
- import { postgresJsChannels } from './config/postgres.js';
6
- import { openaiChannels } from './config/openai.js';
1
+ import { amqplibChannels } from './config/amqplib.js';
7
2
  import { anthropicAiChannels } from './config/anthropic-ai.js';
3
+ import { awsSdkChannels } from './config/aws-sdk.js';
4
+ import { dataloaderChannels } from './config/dataloader.js';
5
+ import { expressChannels } from './config/express.js';
6
+ import { firebaseChannels } from './config/firebase.js';
7
+ import { genericPoolChannels } from './config/generic-pool.js';
8
8
  import { googleGenAiChannels } from './config/google-genai.js';
9
- import { vercelAiChannels } from './config/vercel-ai.js';
10
- import { amqplibChannels } from './config/amqplib.js';
9
+ import { graphqlChannels } from './config/graphql.js';
11
10
  import { hapiChannels } from './config/hapi.js';
11
+ import { ioredisChannels } from './config/ioredis.js';
12
+ import { kafkajsChannels } from './config/kafkajs.js';
13
+ import { knexChannels } from './config/knex.js';
14
+ import { koaChannels } from './config/koa.js';
15
+ import { langchainChannels } from './config/langchain.js';
16
+ import { langgraphChannels } from './config/langgraph.js';
17
+ import { lruMemoizerChannels } from './config/lru-memoizer.js';
18
+ import { mongodbChannels } from './config/mongodb.js';
19
+ import { mongooseChannels } from './config/mongoose.js';
20
+ import { mysql2Channels } from './config/mysql2.js';
21
+ import { mysqlChannels } from './config/mysql.js';
22
+ import { nestjsChannels } from './config/nestjs.js';
23
+ import { openaiChannels } from './config/openai.js';
24
+ import { pgChannels } from './config/pg.js';
25
+ import { postgresJsChannels } from './config/postgres.js';
26
+ import { prismaChannels } from './config/prisma.js';
27
+ import { reactRouterChannels } from './config/react-router.js';
12
28
  import { redisChannels } from './config/redis.js';
13
- import { expressChannels } from './config/express.js';
14
- import { graphqlChannels } from './config/graphql.js';
29
+ import { remixChannels } from './config/remix.js';
30
+ import { tediousChannels } from './config/tedious.js';
31
+ import { vercelAiChannels } from './config/vercel-ai.js';
15
32
 
16
33
  const CHANNELS = {
17
- ...mysqlChannels,
18
- ...lruMemoizerChannels,
19
- ...ioredisChannels,
20
- ...pgChannels,
21
- ...postgresJsChannels,
22
- ...openaiChannels,
34
+ ...amqplibChannels,
23
35
  ...anthropicAiChannels,
36
+ ...awsSdkChannels,
37
+ ...dataloaderChannels,
38
+ ...expressChannels,
39
+ ...firebaseChannels,
40
+ ...genericPoolChannels,
24
41
  ...googleGenAiChannels,
25
- ...vercelAiChannels,
26
- ...amqplibChannels,
42
+ ...graphqlChannels,
27
43
  ...hapiChannels,
44
+ ...ioredisChannels,
45
+ ...kafkajsChannels,
46
+ ...knexChannels,
47
+ ...koaChannels,
48
+ ...langchainChannels,
49
+ ...langgraphChannels,
50
+ ...lruMemoizerChannels,
51
+ ...mongodbChannels,
52
+ ...mongooseChannels,
53
+ ...mysql2Channels,
54
+ ...mysqlChannels,
55
+ ...nestjsChannels,
56
+ ...openaiChannels,
57
+ ...pgChannels,
58
+ ...postgresJsChannels,
59
+ ...prismaChannels,
60
+ ...reactRouterChannels,
28
61
  ...redisChannels,
29
- ...expressChannels,
30
- ...graphqlChannels
62
+ ...remixChannels,
63
+ ...tediousChannels,
64
+ ...vercelAiChannels
31
65
  };
32
66
 
33
67
  export { CHANNELS };
@@ -1 +1 @@
1
- {"version":3,"file":"channels.js","sources":["../../../src/orchestrion/channels.ts"],"sourcesContent":["import { mysqlChannels } from './config/mysql';\nimport { lruMemoizerChannels } from './config/lru-memoizer';\nimport { ioredisChannels } from './config/ioredis';\nimport { pgChannels } from './config/pg';\nimport { postgresJsChannels } from './config/postgres';\nimport { openaiChannels } from './config/openai';\nimport { anthropicAiChannels } from './config/anthropic-ai';\nimport { googleGenAiChannels } from './config/google-genai';\nimport { vercelAiChannels } from './config/vercel-ai';\nimport { amqplibChannels } from './config/amqplib';\nimport { hapiChannels } from './config/hapi';\nimport { redisChannels } from './config/redis';\nimport { expressChannels } from './config/express';\nimport { graphqlChannels } from './config/graphql';\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 */\nexport const CHANNELS = {\n ...mysqlChannels,\n ...lruMemoizerChannels,\n ...ioredisChannels,\n ...pgChannels,\n ...postgresJsChannels,\n ...openaiChannels,\n ...anthropicAiChannels,\n ...googleGenAiChannels,\n ...vercelAiChannels,\n ...amqplibChannels,\n ...hapiChannels,\n ...redisChannels,\n ...expressChannels,\n ...graphqlChannels,\n} as const;\n\nexport type ChannelName = (typeof CHANNELS)[keyof typeof CHANNELS];\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AA4BO,MAAM,QAAA,GAAW;AAAA,EACtB,GAAG,aAAA;AAAA,EACH,GAAG,mBAAA;AAAA,EACH,GAAG,eAAA;AAAA,EACH,GAAG,UAAA;AAAA,EACH,GAAG,kBAAA;AAAA,EACH,GAAG,cAAA;AAAA,EACH,GAAG,mBAAA;AAAA,EACH,GAAG,mBAAA;AAAA,EACH,GAAG,gBAAA;AAAA,EACH,GAAG,eAAA;AAAA,EACH,GAAG,YAAA;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 { 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 +1 @@
1
- {"version":3,"file":"amqplib.js","sources":["../../../../src/orchestrion/config/amqplib.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\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,EAAa,KAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,sBAAA,EAAuB;AAAA,IACtD,eAAe,EAAE,SAAA,EAAW,WAAW,UAAA,EAAY,KAAA,EAAO,MAAM,MAAA;AAAO,GACzE;AAAA,EACA;AAAA,IACE,WAAA,EAAa,MAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,sBAAA,EAAuB;AAAA,IACtD,eAAe,EAAE,SAAA,EAAW,WAAW,UAAA,EAAY,MAAA,EAAQ,MAAM,MAAA;AAAO,GAC1E;AAAA,EACA;AAAA,IACE,WAAA,EAAa,QAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,sBAAA,EAAuB;AAAA,IACtD,eAAe,EAAE,SAAA,EAAW,WAAW,UAAA,EAAY,QAAA,EAAU,MAAM,MAAA;AAAO,GAC5E;AAAA,EACA;AAAA,IACE,WAAA,EAAa,QAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,sBAAA,EAAuB;AAAA,IACtD,eAAe,EAAE,SAAA,EAAW,WAAW,UAAA,EAAY,QAAA,EAAU,MAAM,MAAA;AAAO,GAC5E;AAAA,EACA;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,EAGA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,gBAAA,EAAiB;AAAA,IAChD,aAAA,EAAe,EAAE,YAAA,EAAc,SAAA,EAAW,MAAM,UAAA;AAAW;AAE/D;AAEO,MAAM,eAAA,GAAkB;AAAA,EAC7B,eAAA,EAAiB,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 '..';\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,EAAa,KAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,sBAAA,EAAuB;AAAA,IACtD,eAAe,EAAE,SAAA,EAAW,WAAW,UAAA,EAAY,KAAA,EAAO,MAAM,MAAA;AAAO,GACzE;AAAA,EACA;AAAA,IACE,WAAA,EAAa,MAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,sBAAA,EAAuB;AAAA,IACtD,eAAe,EAAE,SAAA,EAAW,WAAW,UAAA,EAAY,MAAA,EAAQ,MAAM,MAAA;AAAO,GAC1E;AAAA,EACA;AAAA,IACE,WAAA,EAAa,QAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,sBAAA,EAAuB;AAAA,IACtD,eAAe,EAAE,SAAA,EAAW,WAAW,UAAA,EAAY,QAAA,EAAU,MAAM,MAAA;AAAO,GAC5E;AAAA,EACA;AAAA,IACE,WAAA,EAAa,QAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,sBAAA,EAAuB;AAAA,IACtD,eAAe,EAAE,SAAA,EAAW,WAAW,UAAA,EAAY,QAAA,EAAU,MAAM,MAAA;AAAO,GAC5E;AAAA,EACA;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,EAGA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,gBAAA,EAAiB;AAAA,IAChD,aAAA,EAAe,EAAE,YAAA,EAAc,SAAA,EAAW,MAAM,UAAA;AAAW;AAE/D;AAEO,MAAM,eAAA,GAAkB;AAAA,EAC7B,eAAA,EAAiB,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 +1 @@
1
- {"version":3,"file":"anthropic-ai.js","sources":["../../../../src/orchestrion/config/anthropic-ai.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\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;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;;;;"}
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;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;;;;"}
@@ -0,0 +1,25 @@
1
+ const awsSdkConfig = [
2
+ {
3
+ channelName: "send",
4
+ module: { name: "@smithy/core", versionRange: ">=3.24.0 <4", filePath: "dist-cjs/submodules/client/index.js" },
5
+ functionQuery: { className: "Client", methodName: "send", kind: "Async" }
6
+ },
7
+ {
8
+ channelName: "send",
9
+ module: { name: "@smithy/smithy-client", versionRange: ">=1.0.3 <5", filePath: "dist-cjs/index.js" },
10
+ functionQuery: { className: "Client", methodName: "send", kind: "Async" }
11
+ },
12
+ {
13
+ channelName: "send",
14
+ module: { name: "@aws-sdk/smithy-client", versionRange: "^3.1.0", filePath: "dist-cjs/index.js" },
15
+ functionQuery: { className: "Client", methodName: "send", kind: "Async" }
16
+ }
17
+ ];
18
+ const awsSdkChannels = {
19
+ AWS_SMITHY_CORE_SEND: "orchestrion:@smithy/core:send",
20
+ AWS_SMITHY_CLIENT_SEND: "orchestrion:@smithy/smithy-client:send",
21
+ AWS_SDK_SMITHY_CLIENT_SEND: "orchestrion:@aws-sdk/smithy-client:send"
22
+ };
23
+
24
+ export { awsSdkChannels, awsSdkConfig };
25
+ //# sourceMappingURL=aws-sdk.js.map
@@ -0,0 +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;;;;"}
@@ -0,0 +1,50 @@
1
+ const module$1 = { name: "dataloader", versionRange: ">=2.0.0 <3", filePath: "index.js" };
2
+ const dataloaderConfig = [
3
+ // Wrap the constructor so the subscriber can wrap the user's `batchLoadFn` (arg 0). The batch span
4
+ // is opened when that wrapped function actually runs (on the deferred dispatch tick), mirroring the
5
+ // vendored OTel instrumentation which also wraps `batchLoadFn` at construction time.
6
+ {
7
+ channelName: "construct",
8
+ module: module$1,
9
+ functionQuery: { functionName: "DataLoader", kind: "Sync" }
10
+ },
11
+ // `load`/`loadMany` return Promises, so they're `Async`: the span ends on `asyncEnd` (when the
12
+ // load resolves), capturing the real latency and enclosing the deferred `batch` span — matching the
13
+ // vendored OTel `startSpan`. `prime`/`clear`/`clearAll` return `this` synchronously, so they stay `Sync`.
14
+ {
15
+ channelName: "load",
16
+ module: module$1,
17
+ functionQuery: { expressionName: "load", kind: "Async" }
18
+ },
19
+ {
20
+ channelName: "loadMany",
21
+ module: module$1,
22
+ functionQuery: { expressionName: "loadMany", kind: "Async" }
23
+ },
24
+ {
25
+ channelName: "prime",
26
+ module: module$1,
27
+ functionQuery: { expressionName: "prime", kind: "Sync" }
28
+ },
29
+ {
30
+ channelName: "clear",
31
+ module: module$1,
32
+ functionQuery: { expressionName: "clear", kind: "Sync" }
33
+ },
34
+ {
35
+ channelName: "clearAll",
36
+ module: module$1,
37
+ functionQuery: { expressionName: "clearAll", kind: "Sync" }
38
+ }
39
+ ];
40
+ const dataloaderChannels = {
41
+ DATALOADER_CONSTRUCT: "orchestrion:dataloader:construct",
42
+ DATALOADER_LOAD: "orchestrion:dataloader:load",
43
+ DATALOADER_LOAD_MANY: "orchestrion:dataloader:loadMany",
44
+ DATALOADER_PRIME: "orchestrion:dataloader:prime",
45
+ DATALOADER_CLEAR: "orchestrion:dataloader:clear",
46
+ DATALOADER_CLEAR_ALL: "orchestrion:dataloader:clearAll"
47
+ };
48
+
49
+ export { dataloaderChannels, dataloaderConfig };
50
+ //# sourceMappingURL=dataloader.js.map
@@ -0,0 +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;;;;"}
@@ -30,25 +30,28 @@ const expressConfig = [
30
30
  // handler, `use`'s trailing function argument is a registration payload, not a
31
31
  // callback — so `Callback` would misclassify it and never fire `end`.
32
32
  //
33
+ // `route` and `use` share one `register` channel because the subscriber handles
34
+ // them identically, saving a channel per module.
35
+ //
33
36
  // Express v4 ships its own router in `express/lib/router/index.js`.
34
37
  {
35
- channelName: "route",
38
+ channelName: "register",
36
39
  module: { name: "express", versionRange: ">=4.0.0 <5", filePath: "lib/router/index.js" },
37
40
  functionQuery: { expressionName: "route", kind: "Sync" }
38
41
  },
39
42
  {
40
- channelName: "use",
43
+ channelName: "register",
41
44
  module: { name: "express", versionRange: ">=4.0.0 <5", filePath: "lib/router/index.js" },
42
45
  functionQuery: { expressionName: "use", kind: "Sync" }
43
46
  },
44
47
  // Express v5 delegates routing to the standalone `router` package.
45
48
  {
46
- channelName: "route",
49
+ channelName: "register",
47
50
  module: { name: "router", versionRange: ">=2.0.0 <3", filePath: "index.js" },
48
51
  functionQuery: { expressionName: "route", kind: "Sync" }
49
52
  },
50
53
  {
51
- channelName: "use",
54
+ channelName: "register",
52
55
  module: { name: "router", versionRange: ">=2.0.0 <3", filePath: "index.js" },
53
56
  functionQuery: { expressionName: "use", kind: "Sync" }
54
57
  }
@@ -63,10 +66,8 @@ const expressChannels = {
63
66
  // Layer *registration* (`Router.prototype.route`/`.use`), used to capture each
64
67
  // layer's registered path pattern so the matched route can be reconstructed
65
68
  // with its parameters intact (`req.baseUrl` only exposes the resolved prefix).
66
- EXPRESS_ROUTE: "orchestrion:express:route",
67
- EXPRESS_USE: "orchestrion:express:use",
68
- ROUTER_ROUTE: "orchestrion:router:route",
69
- ROUTER_USE: "orchestrion:router:use"
69
+ EXPRESS_REGISTER: "orchestrion:express:register",
70
+ ROUTER_REGISTER: "orchestrion:router:register"
70
71
  };
71
72
 
72
73
  export { expressChannels, expressConfig };
@@ -1 +1 @@
1
- {"version":3,"file":"express.js","sources":["../../../../src/orchestrion/config/express.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\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 // Express v4 ships its own router in `express/lib/router/index.js`.\n {\n channelName: 'route',\n module: { name: 'express', versionRange: '>=4.0.0 <5', filePath: 'lib/router/index.js' },\n functionQuery: { expressionName: 'route', kind: 'Sync' },\n },\n {\n channelName: 'use',\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: 'route',\n module: { name: 'router', versionRange: '>=2.0.0 <3', filePath: 'index.js' },\n functionQuery: { expressionName: 'route', kind: 'Sync' },\n },\n {\n channelName: 'use',\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_ROUTE: 'orchestrion:express:route',\n EXPRESS_USE: 'orchestrion:express:use',\n ROUTER_ROUTE: 'orchestrion:router:route',\n ROUTER_USE: 'orchestrion:router:use',\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,EAUA;AAAA,IACE,WAAA,EAAa,OAAA;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,KAAA;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,OAAA;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,KAAA;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,aAAA,EAAe,2BAAA;AAAA,EACf,WAAA,EAAa,yBAAA;AAAA,EACb,YAAA,EAAc,0BAAA;AAAA,EACd,UAAA,EAAY;AACd;;;;"}
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;;;;"}
@@ -0,0 +1,5 @@
1
+ const firebaseConfig = [];
2
+ const firebaseChannels = {};
3
+
4
+ export { firebaseChannels, firebaseConfig };
5
+ //# sourceMappingURL=firebase.js.map
@@ -0,0 +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;;;;"}
@@ -0,0 +1,18 @@
1
+ const genericPoolConfig = [
2
+ {
3
+ channelName: "acquire",
4
+ module: { name: "generic-pool", versionRange: ">=3.0.0 <4", filePath: "lib/Pool.js" },
5
+ functionQuery: { className: "Pool", methodName: "acquire", kind: "Auto" }
6
+ },
7
+ {
8
+ channelName: "acquire",
9
+ module: { name: "generic-pool", versionRange: ">=2.4.0 <3", filePath: "lib/generic-pool.js" },
10
+ functionQuery: { expressionName: "acquire", kind: "Callback" }
11
+ }
12
+ ];
13
+ const genericPoolChannels = {
14
+ GENERIC_POOL_ACQUIRE: "orchestrion:generic-pool:acquire"
15
+ };
16
+
17
+ export { genericPoolChannels, genericPoolConfig };
18
+ //# sourceMappingURL=generic-pool.js.map
@@ -0,0 +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 +1 @@
1
- {"version":3,"file":"google-genai.js","sources":["../../../../src/orchestrion/config/google-genai.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\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"],"names":[],"mappings":"AAMA,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;;;;"}
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',\n GOOGLE_GENAI_EMBED_CONTENT: 'orchestrion:@google/genai:embed-content',\n GOOGLE_GENAI_CHAT: 'orchestrion:@google/genai:chat',\n} as const;\n"],"names":[],"mappings":"AAMA,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;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"graphql.js","sources":["../../../../src/orchestrion/config/graphql.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\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 '..';\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 +1 @@
1
- {"version":3,"file":"hapi.js","sources":["../../../../src/orchestrion/config/hapi.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\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 '..';\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;;;;"}