@sentry/server-utils 10.66.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 (386) hide show
  1. package/build/cjs/index.js +7 -0
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/integrations/tracing-channel/aws-sdk/constants.js +16 -0
  4. package/build/cjs/integrations/tracing-channel/aws-sdk/constants.js.map +1 -0
  5. package/build/cjs/integrations/tracing-channel/aws-sdk/index.js +154 -0
  6. package/build/cjs/integrations/tracing-channel/aws-sdk/index.js.map +1 -0
  7. package/build/cjs/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js +46 -0
  8. package/build/cjs/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js.map +1 -0
  9. package/build/cjs/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js +47 -0
  10. package/build/cjs/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js.map +1 -0
  11. package/build/cjs/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js +419 -0
  12. package/build/cjs/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js.map +1 -0
  13. package/build/cjs/integrations/tracing-channel/aws-sdk/services/dynamodb.js +131 -0
  14. package/build/cjs/integrations/tracing-channel/aws-sdk/services/dynamodb.js.map +1 -0
  15. package/build/cjs/integrations/tracing-channel/aws-sdk/services/kinesis.js +21 -0
  16. package/build/cjs/integrations/tracing-channel/aws-sdk/services/kinesis.js.map +1 -0
  17. package/build/cjs/integrations/tracing-channel/aws-sdk/services/lambda.js +64 -0
  18. package/build/cjs/integrations/tracing-channel/aws-sdk/services/lambda.js.map +1 -0
  19. package/build/cjs/integrations/tracing-channel/aws-sdk/services/s3.js +21 -0
  20. package/build/cjs/integrations/tracing-channel/aws-sdk/services/s3.js.map +1 -0
  21. package/build/cjs/integrations/tracing-channel/aws-sdk/services/secretsmanager.js +27 -0
  22. package/build/cjs/integrations/tracing-channel/aws-sdk/services/secretsmanager.js.map +1 -0
  23. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sns.js +63 -0
  24. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sns.js.map +1 -0
  25. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sqs.js +116 -0
  26. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sqs.js.map +1 -0
  27. package/build/cjs/integrations/tracing-channel/aws-sdk/services/stepfunctions.js +25 -0
  28. package/build/cjs/integrations/tracing-channel/aws-sdk/services/stepfunctions.js.map +1 -0
  29. package/build/cjs/integrations/tracing-channel/aws-sdk/utils.js +30 -0
  30. package/build/cjs/integrations/tracing-channel/aws-sdk/utils.js.map +1 -0
  31. package/build/cjs/integrations/tracing-channel/express/instrumentation.js +1 -6
  32. package/build/cjs/integrations/tracing-channel/express/instrumentation.js.map +1 -1
  33. package/build/cjs/integrations/tracing-channel/koa.js +146 -0
  34. package/build/cjs/integrations/tracing-channel/koa.js.map +1 -0
  35. package/build/cjs/integrations/tracing-channel/langchain.js +63 -0
  36. package/build/cjs/integrations/tracing-channel/langchain.js.map +1 -0
  37. package/build/cjs/integrations/tracing-channel/langgraph.js +100 -0
  38. package/build/cjs/integrations/tracing-channel/langgraph.js.map +1 -0
  39. package/build/cjs/integrations/tracing-channel/mongodb.js +104 -0
  40. package/build/cjs/integrations/tracing-channel/mongodb.js.map +1 -0
  41. package/build/cjs/integrations/tracing-channel/mongoose.js +110 -0
  42. package/build/cjs/integrations/tracing-channel/mongoose.js.map +1 -0
  43. package/build/cjs/integrations/tracing-channel/openai.js +1 -3
  44. package/build/cjs/integrations/tracing-channel/openai.js.map +1 -1
  45. package/build/cjs/integrations/tracing-channel/redis.js +25 -34
  46. package/build/cjs/integrations/tracing-channel/redis.js.map +1 -1
  47. package/build/cjs/integrations/tracing-channel/tedious.js +145 -0
  48. package/build/cjs/integrations/tracing-channel/tedious.js.map +1 -0
  49. package/build/cjs/mongodb/mongodb-span.js +133 -0
  50. package/build/cjs/mongodb/mongodb-span.js.map +1 -0
  51. package/build/cjs/mongoose/index.js.map +1 -1
  52. package/build/cjs/mongoose/mongoose-legacy-span.js +40 -0
  53. package/build/cjs/mongoose/mongoose-legacy-span.js.map +1 -0
  54. package/build/cjs/orchestrion/bundler/esbuild.js +5 -1
  55. package/build/cjs/orchestrion/bundler/esbuild.js.map +1 -1
  56. package/build/cjs/orchestrion/bundler/options.js +10 -1
  57. package/build/cjs/orchestrion/bundler/options.js.map +1 -1
  58. package/build/cjs/orchestrion/bundler/rollup.js +5 -1
  59. package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
  60. package/build/cjs/orchestrion/bundler/vite.js +5 -1
  61. package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
  62. package/build/cjs/orchestrion/bundler/webpack.js +8 -4
  63. package/build/cjs/orchestrion/bundler/webpack.js.map +1 -1
  64. package/build/cjs/orchestrion/channels.js +4 -0
  65. package/build/cjs/orchestrion/channels.js.map +1 -1
  66. package/build/cjs/orchestrion/config/amqplib.js.map +1 -1
  67. package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -1
  68. package/build/cjs/orchestrion/config/aws-sdk.js +28 -0
  69. package/build/cjs/orchestrion/config/aws-sdk.js.map +1 -0
  70. package/build/cjs/orchestrion/config/dataloader.js.map +1 -1
  71. package/build/cjs/orchestrion/config/express.js +9 -8
  72. package/build/cjs/orchestrion/config/express.js.map +1 -1
  73. package/build/cjs/orchestrion/config/firebase.js.map +1 -1
  74. package/build/cjs/orchestrion/config/generic-pool.js.map +1 -1
  75. package/build/cjs/orchestrion/config/google-genai.js.map +1 -1
  76. package/build/cjs/orchestrion/config/graphql.js.map +1 -1
  77. package/build/cjs/orchestrion/config/hapi.js.map +1 -1
  78. package/build/cjs/orchestrion/config/index.js +10 -1
  79. package/build/cjs/orchestrion/config/index.js.map +1 -1
  80. package/build/cjs/orchestrion/config/ioredis.js.map +1 -1
  81. package/build/cjs/orchestrion/config/kafkajs.js.map +1 -1
  82. package/build/cjs/orchestrion/config/knex.js.map +1 -1
  83. package/build/cjs/orchestrion/config/koa.js +16 -0
  84. package/build/cjs/orchestrion/config/koa.js.map +1 -0
  85. package/build/cjs/orchestrion/config/langchain.js +46 -2
  86. package/build/cjs/orchestrion/config/langchain.js.map +1 -1
  87. package/build/cjs/orchestrion/config/langgraph.js +22 -2
  88. package/build/cjs/orchestrion/config/langgraph.js.map +1 -1
  89. package/build/cjs/orchestrion/config/lru-memoizer.js.map +1 -1
  90. package/build/cjs/orchestrion/config/mongodb.js +61 -2
  91. package/build/cjs/orchestrion/config/mongodb.js.map +1 -1
  92. package/build/cjs/orchestrion/config/mongoose.js +101 -2
  93. package/build/cjs/orchestrion/config/mongoose.js.map +1 -1
  94. package/build/cjs/orchestrion/config/mysql.js.map +1 -1
  95. package/build/cjs/orchestrion/config/mysql2.js.map +1 -1
  96. package/build/cjs/orchestrion/config/nestjs.js.map +1 -1
  97. package/build/cjs/orchestrion/config/openai.js +5 -5
  98. package/build/cjs/orchestrion/config/openai.js.map +1 -1
  99. package/build/cjs/orchestrion/config/pg.js.map +1 -1
  100. package/build/cjs/orchestrion/config/postgres.js.map +1 -1
  101. package/build/cjs/orchestrion/config/prisma.js.map +1 -1
  102. package/build/cjs/orchestrion/config/react-router.js.map +1 -1
  103. package/build/cjs/orchestrion/config/redis.js.map +1 -1
  104. package/build/cjs/orchestrion/config/remix.js +48 -2
  105. package/build/cjs/orchestrion/config/remix.js.map +1 -1
  106. package/build/cjs/orchestrion/config/tedious.js +18 -2
  107. package/build/cjs/orchestrion/config/tedious.js.map +1 -1
  108. package/build/cjs/orchestrion/config/vercel-ai.js.map +1 -1
  109. package/build/cjs/orchestrion/index.js +32 -9
  110. package/build/cjs/orchestrion/index.js.map +1 -1
  111. package/build/cjs/orchestrion/runtime/register.js +25 -12
  112. package/build/cjs/orchestrion/runtime/register.js.map +1 -1
  113. package/build/cjs/redis/redis-dc-subscriber.js +27 -38
  114. package/build/cjs/redis/redis-dc-subscriber.js.map +1 -1
  115. package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js +16 -3
  116. package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
  117. package/build/esm/index.js +2 -0
  118. package/build/esm/index.js.map +1 -1
  119. package/build/esm/integrations/tracing-channel/aws-sdk/constants.js +9 -0
  120. package/build/esm/integrations/tracing-channel/aws-sdk/constants.js.map +1 -0
  121. package/build/esm/integrations/tracing-channel/aws-sdk/index.js +152 -0
  122. package/build/esm/integrations/tracing-channel/aws-sdk/index.js.map +1 -0
  123. package/build/esm/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js +41 -0
  124. package/build/esm/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js.map +1 -0
  125. package/build/esm/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js +45 -0
  126. package/build/esm/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js.map +1 -0
  127. package/build/esm/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js +417 -0
  128. package/build/esm/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js.map +1 -0
  129. package/build/esm/integrations/tracing-channel/aws-sdk/services/dynamodb.js +129 -0
  130. package/build/esm/integrations/tracing-channel/aws-sdk/services/dynamodb.js.map +1 -0
  131. package/build/esm/integrations/tracing-channel/aws-sdk/services/kinesis.js +19 -0
  132. package/build/esm/integrations/tracing-channel/aws-sdk/services/kinesis.js.map +1 -0
  133. package/build/esm/integrations/tracing-channel/aws-sdk/services/lambda.js +62 -0
  134. package/build/esm/integrations/tracing-channel/aws-sdk/services/lambda.js.map +1 -0
  135. package/build/esm/integrations/tracing-channel/aws-sdk/services/s3.js +19 -0
  136. package/build/esm/integrations/tracing-channel/aws-sdk/services/s3.js.map +1 -0
  137. package/build/esm/integrations/tracing-channel/aws-sdk/services/secretsmanager.js +25 -0
  138. package/build/esm/integrations/tracing-channel/aws-sdk/services/secretsmanager.js.map +1 -0
  139. package/build/esm/integrations/tracing-channel/aws-sdk/services/sns.js +61 -0
  140. package/build/esm/integrations/tracing-channel/aws-sdk/services/sns.js.map +1 -0
  141. package/build/esm/integrations/tracing-channel/aws-sdk/services/sqs.js +114 -0
  142. package/build/esm/integrations/tracing-channel/aws-sdk/services/sqs.js.map +1 -0
  143. package/build/esm/integrations/tracing-channel/aws-sdk/services/stepfunctions.js +23 -0
  144. package/build/esm/integrations/tracing-channel/aws-sdk/services/stepfunctions.js.map +1 -0
  145. package/build/esm/integrations/tracing-channel/aws-sdk/utils.js +26 -0
  146. package/build/esm/integrations/tracing-channel/aws-sdk/utils.js.map +1 -0
  147. package/build/esm/integrations/tracing-channel/express/instrumentation.js +1 -6
  148. package/build/esm/integrations/tracing-channel/express/instrumentation.js.map +1 -1
  149. package/build/esm/integrations/tracing-channel/koa.js +144 -0
  150. package/build/esm/integrations/tracing-channel/koa.js.map +1 -0
  151. package/build/esm/integrations/tracing-channel/langchain.js +61 -0
  152. package/build/esm/integrations/tracing-channel/langchain.js.map +1 -0
  153. package/build/esm/integrations/tracing-channel/langgraph.js +98 -0
  154. package/build/esm/integrations/tracing-channel/langgraph.js.map +1 -0
  155. package/build/esm/integrations/tracing-channel/mongodb.js +102 -0
  156. package/build/esm/integrations/tracing-channel/mongodb.js.map +1 -0
  157. package/build/esm/integrations/tracing-channel/mongoose.js +108 -0
  158. package/build/esm/integrations/tracing-channel/mongoose.js.map +1 -0
  159. package/build/esm/integrations/tracing-channel/openai.js +1 -3
  160. package/build/esm/integrations/tracing-channel/openai.js.map +1 -1
  161. package/build/esm/integrations/tracing-channel/redis.js +25 -34
  162. package/build/esm/integrations/tracing-channel/redis.js.map +1 -1
  163. package/build/esm/integrations/tracing-channel/tedious.js +143 -0
  164. package/build/esm/integrations/tracing-channel/tedious.js.map +1 -0
  165. package/build/esm/mongodb/mongodb-span.js +126 -0
  166. package/build/esm/mongodb/mongodb-span.js.map +1 -0
  167. package/build/esm/mongoose/index.js.map +1 -1
  168. package/build/esm/mongoose/mongoose-legacy-span.js +38 -0
  169. package/build/esm/mongoose/mongoose-legacy-span.js.map +1 -0
  170. package/build/esm/orchestrion/bundler/options.js +10 -1
  171. package/build/esm/orchestrion/bundler/options.js.map +1 -1
  172. package/build/esm/orchestrion/bundler/webpack.js +4 -4
  173. package/build/esm/orchestrion/bundler/webpack.js.map +1 -1
  174. package/build/esm/orchestrion/channels.js +4 -0
  175. package/build/esm/orchestrion/channels.js.map +1 -1
  176. package/build/esm/orchestrion/config/amqplib.js.map +1 -1
  177. package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
  178. package/build/esm/orchestrion/config/aws-sdk.js +25 -0
  179. package/build/esm/orchestrion/config/aws-sdk.js.map +1 -0
  180. package/build/esm/orchestrion/config/dataloader.js.map +1 -1
  181. package/build/esm/orchestrion/config/express.js +9 -8
  182. package/build/esm/orchestrion/config/express.js.map +1 -1
  183. package/build/esm/orchestrion/config/firebase.js.map +1 -1
  184. package/build/esm/orchestrion/config/generic-pool.js.map +1 -1
  185. package/build/esm/orchestrion/config/google-genai.js.map +1 -1
  186. package/build/esm/orchestrion/config/graphql.js.map +1 -1
  187. package/build/esm/orchestrion/config/hapi.js.map +1 -1
  188. package/build/esm/orchestrion/config/index.js +10 -1
  189. package/build/esm/orchestrion/config/index.js.map +1 -1
  190. package/build/esm/orchestrion/config/ioredis.js.map +1 -1
  191. package/build/esm/orchestrion/config/kafkajs.js.map +1 -1
  192. package/build/esm/orchestrion/config/knex.js.map +1 -1
  193. package/build/esm/orchestrion/config/koa.js +13 -0
  194. package/build/esm/orchestrion/config/koa.js.map +1 -0
  195. package/build/esm/orchestrion/config/langchain.js +46 -3
  196. package/build/esm/orchestrion/config/langchain.js.map +1 -1
  197. package/build/esm/orchestrion/config/langgraph.js +22 -2
  198. package/build/esm/orchestrion/config/langgraph.js.map +1 -1
  199. package/build/esm/orchestrion/config/lru-memoizer.js.map +1 -1
  200. package/build/esm/orchestrion/config/mongodb.js +61 -2
  201. package/build/esm/orchestrion/config/mongodb.js.map +1 -1
  202. package/build/esm/orchestrion/config/mongoose.js +101 -3
  203. package/build/esm/orchestrion/config/mongoose.js.map +1 -1
  204. package/build/esm/orchestrion/config/mysql.js.map +1 -1
  205. package/build/esm/orchestrion/config/mysql2.js.map +1 -1
  206. package/build/esm/orchestrion/config/nestjs.js.map +1 -1
  207. package/build/esm/orchestrion/config/openai.js +5 -5
  208. package/build/esm/orchestrion/config/openai.js.map +1 -1
  209. package/build/esm/orchestrion/config/pg.js.map +1 -1
  210. package/build/esm/orchestrion/config/postgres.js.map +1 -1
  211. package/build/esm/orchestrion/config/prisma.js.map +1 -1
  212. package/build/esm/orchestrion/config/react-router.js.map +1 -1
  213. package/build/esm/orchestrion/config/redis.js.map +1 -1
  214. package/build/esm/orchestrion/config/remix.js +48 -2
  215. package/build/esm/orchestrion/config/remix.js.map +1 -1
  216. package/build/esm/orchestrion/config/tedious.js +18 -2
  217. package/build/esm/orchestrion/config/tedious.js.map +1 -1
  218. package/build/esm/orchestrion/config/vercel-ai.js.map +1 -1
  219. package/build/esm/orchestrion/index.js +17 -2
  220. package/build/esm/orchestrion/index.js.map +1 -1
  221. package/build/esm/orchestrion/runtime/register.js +25 -12
  222. package/build/esm/orchestrion/runtime/register.js.map +1 -1
  223. package/build/esm/package.json +1 -1
  224. package/build/esm/redis/redis-dc-subscriber.js +27 -38
  225. package/build/esm/redis/redis-dc-subscriber.js.map +1 -1
  226. package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js +17 -4
  227. package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
  228. package/build/types/index.d.ts +5 -1
  229. package/build/types/index.d.ts.map +1 -1
  230. package/build/types/integrations/tracing-channel/aws-sdk/aws-sdk.types.d.ts +43 -0
  231. package/build/types/integrations/tracing-channel/aws-sdk/aws-sdk.types.d.ts.map +1 -0
  232. package/build/types/integrations/tracing-channel/aws-sdk/constants.d.ts +15 -0
  233. package/build/types/integrations/tracing-channel/aws-sdk/constants.d.ts.map +1 -0
  234. package/build/types/integrations/tracing-channel/aws-sdk/index.d.ts +15 -0
  235. package/build/types/integrations/tracing-channel/aws-sdk/index.d.ts.map +1 -0
  236. package/build/types/integrations/tracing-channel/aws-sdk/services/MessageAttributes.d.ts +23 -0
  237. package/build/types/integrations/tracing-channel/aws-sdk/services/MessageAttributes.d.ts.map +1 -0
  238. package/build/types/integrations/tracing-channel/aws-sdk/services/ServiceExtension.d.ts +9 -0
  239. package/build/types/integrations/tracing-channel/aws-sdk/services/ServiceExtension.d.ts.map +1 -0
  240. package/build/types/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.d.ts +10 -0
  241. package/build/types/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.d.ts.map +1 -0
  242. package/build/types/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.d.ts +14 -0
  243. package/build/types/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.d.ts.map +1 -0
  244. package/build/types/integrations/tracing-channel/aws-sdk/services/dynamodb.d.ts +8 -0
  245. package/build/types/integrations/tracing-channel/aws-sdk/services/dynamodb.d.ts.map +1 -0
  246. package/build/types/integrations/tracing-channel/aws-sdk/services/index.d.ts +2 -0
  247. package/build/types/integrations/tracing-channel/aws-sdk/services/index.d.ts.map +1 -0
  248. package/build/types/integrations/tracing-channel/aws-sdk/services/kinesis.d.ts +6 -0
  249. package/build/types/integrations/tracing-channel/aws-sdk/services/kinesis.d.ts.map +1 -0
  250. package/build/types/integrations/tracing-channel/aws-sdk/services/lambda.d.ts +9 -0
  251. package/build/types/integrations/tracing-channel/aws-sdk/services/lambda.d.ts.map +1 -0
  252. package/build/types/integrations/tracing-channel/aws-sdk/services/s3.d.ts +6 -0
  253. package/build/types/integrations/tracing-channel/aws-sdk/services/s3.d.ts.map +1 -0
  254. package/build/types/integrations/tracing-channel/aws-sdk/services/secretsmanager.d.ts +8 -0
  255. package/build/types/integrations/tracing-channel/aws-sdk/services/secretsmanager.d.ts.map +1 -0
  256. package/build/types/integrations/tracing-channel/aws-sdk/services/sns.d.ts +9 -0
  257. package/build/types/integrations/tracing-channel/aws-sdk/services/sns.d.ts.map +1 -0
  258. package/build/types/integrations/tracing-channel/aws-sdk/services/sqs.d.ts +9 -0
  259. package/build/types/integrations/tracing-channel/aws-sdk/services/sqs.d.ts.map +1 -0
  260. package/build/types/integrations/tracing-channel/aws-sdk/services/stepfunctions.d.ts +6 -0
  261. package/build/types/integrations/tracing-channel/aws-sdk/services/stepfunctions.d.ts.map +1 -0
  262. package/build/types/integrations/tracing-channel/aws-sdk/types.d.ts +26 -0
  263. package/build/types/integrations/tracing-channel/aws-sdk/types.d.ts.map +1 -0
  264. package/build/types/integrations/tracing-channel/aws-sdk/utils.d.ts +5 -0
  265. package/build/types/integrations/tracing-channel/aws-sdk/utils.d.ts.map +1 -0
  266. package/build/types/integrations/tracing-channel/express/instrumentation.d.ts.map +1 -1
  267. package/build/types/integrations/tracing-channel/koa.d.ts +14 -0
  268. package/build/types/integrations/tracing-channel/koa.d.ts.map +1 -0
  269. package/build/types/integrations/tracing-channel/langchain.d.ts +10 -0
  270. package/build/types/integrations/tracing-channel/langchain.d.ts.map +1 -0
  271. package/build/types/integrations/tracing-channel/langgraph.d.ts +10 -0
  272. package/build/types/integrations/tracing-channel/langgraph.d.ts.map +1 -0
  273. package/build/types/integrations/tracing-channel/mongodb.d.ts +12 -0
  274. package/build/types/integrations/tracing-channel/mongodb.d.ts.map +1 -0
  275. package/build/types/integrations/tracing-channel/mongoose.d.ts +15 -0
  276. package/build/types/integrations/tracing-channel/mongoose.d.ts.map +1 -0
  277. package/build/types/integrations/tracing-channel/openai.d.ts.map +1 -1
  278. package/build/types/integrations/tracing-channel/redis.d.ts.map +1 -1
  279. package/build/types/integrations/tracing-channel/tedious.d.ts +11 -0
  280. package/build/types/integrations/tracing-channel/tedious.d.ts.map +1 -0
  281. package/build/types/mongodb/mongodb-span.d.ts +66 -0
  282. package/build/types/mongodb/mongodb-span.d.ts.map +1 -0
  283. package/build/types/mongoose/index.d.ts +2 -0
  284. package/build/types/mongoose/index.d.ts.map +1 -1
  285. package/build/types/mongoose/mongoose-legacy-span.d.ts +29 -0
  286. package/build/types/mongoose/mongoose-legacy-span.d.ts.map +1 -0
  287. package/build/types/orchestrion/bundler/options.d.ts +13 -3
  288. package/build/types/orchestrion/bundler/options.d.ts.map +1 -1
  289. package/build/types/orchestrion/bundler/webpack.d.ts +5 -5
  290. package/build/types/orchestrion/bundler/webpack.d.ts.map +1 -1
  291. package/build/types/orchestrion/channels.d.ts +36 -6
  292. package/build/types/orchestrion/channels.d.ts.map +1 -1
  293. package/build/types/orchestrion/config/aws-sdk.d.ts +19 -0
  294. package/build/types/orchestrion/config/aws-sdk.d.ts.map +1 -0
  295. package/build/types/orchestrion/config/express.d.ts +2 -4
  296. package/build/types/orchestrion/config/express.d.ts.map +1 -1
  297. package/build/types/orchestrion/config/firebase.d.ts +1 -1
  298. package/build/types/orchestrion/config/firebase.d.ts.map +1 -1
  299. package/build/types/orchestrion/config/index.d.ts +1 -1
  300. package/build/types/orchestrion/config/index.d.ts.map +1 -1
  301. package/build/types/orchestrion/config/ioredis.d.ts +1 -1
  302. package/build/types/orchestrion/config/ioredis.d.ts.map +1 -1
  303. package/build/types/orchestrion/config/knex.d.ts +1 -1
  304. package/build/types/orchestrion/config/knex.d.ts.map +1 -1
  305. package/build/types/orchestrion/config/koa.d.ts +17 -0
  306. package/build/types/orchestrion/config/koa.d.ts.map +1 -0
  307. package/build/types/orchestrion/config/langchain.d.ts +17 -3
  308. package/build/types/orchestrion/config/langchain.d.ts.map +1 -1
  309. package/build/types/orchestrion/config/langgraph.d.ts +20 -3
  310. package/build/types/orchestrion/config/langgraph.d.ts.map +1 -1
  311. package/build/types/orchestrion/config/mongodb.d.ts +58 -3
  312. package/build/types/orchestrion/config/mongodb.d.ts.map +1 -1
  313. package/build/types/orchestrion/config/mongoose.d.ts +39 -3
  314. package/build/types/orchestrion/config/mongoose.d.ts.map +1 -1
  315. package/build/types/orchestrion/config/nestjs.d.ts +1 -1
  316. package/build/types/orchestrion/config/nestjs.d.ts.map +1 -1
  317. package/build/types/orchestrion/config/openai.d.ts +0 -2
  318. package/build/types/orchestrion/config/openai.d.ts.map +1 -1
  319. package/build/types/orchestrion/config/postgres.d.ts +1 -1
  320. package/build/types/orchestrion/config/postgres.d.ts.map +1 -1
  321. package/build/types/orchestrion/config/prisma.d.ts +1 -1
  322. package/build/types/orchestrion/config/prisma.d.ts.map +1 -1
  323. package/build/types/orchestrion/config/react-router.d.ts +1 -1
  324. package/build/types/orchestrion/config/react-router.d.ts.map +1 -1
  325. package/build/types/orchestrion/config/remix.d.ts +7 -2
  326. package/build/types/orchestrion/config/remix.d.ts.map +1 -1
  327. package/build/types/orchestrion/config/tedious.d.ts +10 -2
  328. package/build/types/orchestrion/config/tedious.d.ts.map +1 -1
  329. package/build/types/orchestrion/config/vercel-ai.d.ts +1 -1
  330. package/build/types/orchestrion/config/vercel-ai.d.ts.map +1 -1
  331. package/build/types/orchestrion/index.d.ts +32 -1
  332. package/build/types/orchestrion/index.d.ts.map +1 -1
  333. package/build/types/orchestrion/runtime/register.d.ts.map +1 -1
  334. package/build/types/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts.map +1 -1
  335. package/build/types-ts3.8/index.d.ts +5 -1
  336. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/aws-sdk.types.d.ts +43 -0
  337. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/constants.d.ts +15 -0
  338. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/index.d.ts +15 -0
  339. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/MessageAttributes.d.ts +23 -0
  340. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/ServiceExtension.d.ts +9 -0
  341. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.d.ts +10 -0
  342. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.d.ts +14 -0
  343. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/dynamodb.d.ts +8 -0
  344. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/index.d.ts +2 -0
  345. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/kinesis.d.ts +6 -0
  346. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/lambda.d.ts +9 -0
  347. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/s3.d.ts +6 -0
  348. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/secretsmanager.d.ts +8 -0
  349. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/sns.d.ts +9 -0
  350. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/sqs.d.ts +9 -0
  351. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/stepfunctions.d.ts +6 -0
  352. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/types.d.ts +26 -0
  353. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/utils.d.ts +5 -0
  354. package/build/types-ts3.8/integrations/tracing-channel/koa.d.ts +14 -0
  355. package/build/types-ts3.8/integrations/tracing-channel/langchain.d.ts +10 -0
  356. package/build/types-ts3.8/integrations/tracing-channel/langgraph.d.ts +10 -0
  357. package/build/types-ts3.8/integrations/tracing-channel/mongodb.d.ts +12 -0
  358. package/build/types-ts3.8/integrations/tracing-channel/mongoose.d.ts +15 -0
  359. package/build/types-ts3.8/integrations/tracing-channel/tedious.d.ts +11 -0
  360. package/build/types-ts3.8/mongodb/mongodb-span.d.ts +66 -0
  361. package/build/types-ts3.8/mongoose/index.d.ts +2 -0
  362. package/build/types-ts3.8/mongoose/mongoose-legacy-span.d.ts +29 -0
  363. package/build/types-ts3.8/orchestrion/bundler/options.d.ts +13 -3
  364. package/build/types-ts3.8/orchestrion/bundler/webpack.d.ts +5 -5
  365. package/build/types-ts3.8/orchestrion/channels.d.ts +36 -6
  366. package/build/types-ts3.8/orchestrion/config/aws-sdk.d.ts +19 -0
  367. package/build/types-ts3.8/orchestrion/config/express.d.ts +2 -4
  368. package/build/types-ts3.8/orchestrion/config/firebase.d.ts +1 -1
  369. package/build/types-ts3.8/orchestrion/config/index.d.ts +1 -1
  370. package/build/types-ts3.8/orchestrion/config/ioredis.d.ts +1 -1
  371. package/build/types-ts3.8/orchestrion/config/knex.d.ts +1 -1
  372. package/build/types-ts3.8/orchestrion/config/koa.d.ts +17 -0
  373. package/build/types-ts3.8/orchestrion/config/langchain.d.ts +17 -3
  374. package/build/types-ts3.8/orchestrion/config/langgraph.d.ts +20 -3
  375. package/build/types-ts3.8/orchestrion/config/mongodb.d.ts +58 -3
  376. package/build/types-ts3.8/orchestrion/config/mongoose.d.ts +39 -3
  377. package/build/types-ts3.8/orchestrion/config/nestjs.d.ts +1 -1
  378. package/build/types-ts3.8/orchestrion/config/openai.d.ts +0 -2
  379. package/build/types-ts3.8/orchestrion/config/postgres.d.ts +1 -1
  380. package/build/types-ts3.8/orchestrion/config/prisma.d.ts +1 -1
  381. package/build/types-ts3.8/orchestrion/config/react-router.d.ts +1 -1
  382. package/build/types-ts3.8/orchestrion/config/remix.d.ts +7 -2
  383. package/build/types-ts3.8/orchestrion/config/tedious.d.ts +10 -2
  384. package/build/types-ts3.8/orchestrion/config/vercel-ai.d.ts +1 -1
  385. package/build/types-ts3.8/orchestrion/index.d.ts +32 -1
  386. package/package.json +3 -4
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/orchestrion/config/index.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\nimport { uniq } from '@sentry/core';\n\nimport { amqplibConfig } from './amqplib';\nimport { anthropicAiConfig } from './anthropic-ai';\nimport { dataloaderConfig } from './dataloader';\nimport { expressConfig } from './express';\nimport { firebaseConfig } from './firebase';\nimport { genericPoolConfig } from './generic-pool';\nimport { googleGenAiConfig } from './google-genai';\nimport { graphqlConfig } from './graphql';\nimport { hapiConfig } from './hapi';\nimport { ioredisConfig } from './ioredis';\nimport { kafkajsConfig } from './kafkajs';\nimport { knexConfig } from './knex';\nimport { langchainConfig } from './langchain';\nimport { langgraphConfig } from './langgraph';\nimport { lruMemoizerConfig } from './lru-memoizer';\nimport { mongodbConfig } from './mongodb';\nimport { mongooseConfig } from './mongoose';\nimport { mysql2Config } from './mysql2';\nimport { mysqlConfig } from './mysql';\nimport { nestjsConfig } from './nestjs';\nimport { openaiConfig } from './openai';\nimport { pgConfig } from './pg';\nimport { postgresJsConfig } from './postgres';\nimport { prismaConfig } from './prisma';\nimport { reactRouterConfig } from './react-router';\nimport { redisConfig } from './redis';\nimport { remixConfig } from './remix';\nimport { tediousConfig } from './tedious';\nimport { vercelAiConfig } from './vercel-ai';\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\n/**\n * The orchestrion code-transform configs. Every instrumentable library is here\n * so the transform is all-or-nothing: whenever orchestrion is enabled, all of\n * these are injected. The channel LISTENERS may live elsewhere (e.g. the NestJS\n * one lives in `@sentry/nestjs`), but the config that decides what gets\n * transformed is centralized here.\n */\nexport const SENTRY_INSTRUMENTATIONS: InstrumentationConfig[] = [\n ...amqplibConfig,\n ...anthropicAiConfig,\n ...dataloaderConfig,\n ...expressConfig,\n ...firebaseConfig,\n ...genericPoolConfig,\n ...googleGenAiConfig,\n ...graphqlConfig,\n ...hapiConfig,\n ...ioredisConfig,\n ...kafkajsConfig,\n ...knexConfig,\n ...langchainConfig,\n ...langgraphConfig,\n ...lruMemoizerConfig,\n ...mongodbConfig,\n ...mongooseConfig,\n ...mysql2Config,\n ...mysqlConfig,\n ...nestjsConfig,\n ...openaiConfig,\n ...pgConfig,\n ...postgresJsConfig,\n ...prismaConfig,\n ...reactRouterConfig,\n ...redisConfig,\n ...remixConfig,\n ...tediousConfig,\n ...vercelAiConfig,\n];\n\n/**\n * The unique set of package names instrumented by `SENTRY_INSTRUMENTATIONS`\n * merged with any caller-provided `instrumentations` (e.g. `['mysql']`).\n *\n * Bundler plugins MUST ensure these are actually bundled rather than\n * externalized: an externalized dependency is resolved from `node_modules` at\n * runtime and never passes through the code transform's `onLoad`, so its\n * diagnostics_channel calls are silently never injected. This includes a\n * plugin's custom `instrumentations`, otherwise those extra packages can stay\n * externalized and their transform never runs.\n */\nexport function instrumentedModuleNames(instrumentations: InstrumentationConfig[] = []): string[] {\n return uniq([...SENTRY_INSTRUMENTATIONS, ...instrumentations].map(i => i.module.name));\n}\n\n/** The instrumented module names from the default Sentry config, with no custom additions. */\nexport const INSTRUMENTED_MODULE_NAMES: string[] = instrumentedModuleNames();\n\n/**\n * Returns `external` with any instrumented packages removed, so a bundler that\n * uses an \"external\" denylist (esbuild, Bun, Rollup) still bundles — and thus\n * transforms — them. Matches an exact package name (`'mysql'`) or a subpath\n * (`'mysql/lib/...'`); wildcard/other patterns are left untouched. `undefined`\n * is returned unchanged.\n *\n * Pass `moduleNames` from `instrumentedModuleNames(options.instrumentations)` so\n * custom instrumentations are stripped too; it defaults to the Sentry config\n * list. (Vite uses an `ssr.noExternal` allowlist instead, so it consumes\n * `instrumentedModuleNames` directly rather than this helper.)\n */\nexport function withoutInstrumentedExternals(\n external: readonly string[] | undefined,\n moduleNames: string[] = INSTRUMENTED_MODULE_NAMES,\n): string[] | undefined {\n if (!external) {\n return undefined;\n }\n return external.filter(entry => !moduleNames.some(name => entry === name || entry.startsWith(`${name}/`)));\n}\n"],"names":["amqplibConfig","anthropicAiConfig","dataloaderConfig","expressConfig","firebaseConfig","genericPoolConfig","googleGenAiConfig","graphqlConfig","hapiConfig","ioredisConfig","kafkajsConfig","knexConfig","langchainConfig","langgraphConfig","lruMemoizerConfig","mongodbConfig","mongooseConfig","mysql2Config","mysqlConfig","nestjsConfig","openaiConfig","pgConfig","postgresJsConfig","prismaConfig","reactRouterConfig","redisConfig","remixConfig","tediousConfig","vercelAiConfig","uniq"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CO,MAAM,uBAAA,GAAmD;AAAA,EAC9D,GAAGA,qB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EAAG,IAAI,CAAA,CAAA,CAAG,CAAC,CAAC,CAAA;AAC3G;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/orchestrion/config/index.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\nimport { uniq } from '@sentry/core';\n\nimport { amqplibConfig } from './amqplib';\nimport { anthropicAiConfig } from './anthropic-ai';\nimport { awsSdkConfig } from './aws-sdk';\nimport { dataloaderConfig } from './dataloader';\nimport { expressConfig } from './express';\nimport { firebaseConfig } from './firebase';\nimport { genericPoolConfig } from './generic-pool';\nimport { googleGenAiConfig } from './google-genai';\nimport { graphqlConfig } from './graphql';\nimport { hapiConfig } from './hapi';\nimport { ioredisConfig } from './ioredis';\nimport { kafkajsConfig } from './kafkajs';\nimport { knexConfig } from './knex';\nimport { koaConfig } from './koa';\nimport { langchainConfig } from './langchain';\nimport { langgraphConfig } from './langgraph';\nimport { lruMemoizerConfig } from './lru-memoizer';\nimport { mongodbConfig } from './mongodb';\nimport { mongooseConfig } from './mongoose';\nimport { mysql2Config } from './mysql2';\nimport { mysqlConfig } from './mysql';\nimport { nestjsConfig } from './nestjs';\nimport { openaiConfig } from './openai';\nimport { pgConfig } from './pg';\nimport { postgresJsConfig } from './postgres';\nimport { prismaConfig } from './prisma';\nimport { reactRouterConfig } from './react-router';\nimport { redisConfig } from './redis';\nimport { remixConfig } from './remix';\nimport { tediousConfig } from './tedious';\nimport { vercelAiConfig } from './vercel-ai';\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\n/**\n * The orchestrion code-transform configs. Every instrumentable library is here\n * so the transform is all-or-nothing: whenever orchestrion is enabled, all of\n * these are injected. The channel LISTENERS may live elsewhere (e.g. the NestJS\n * one lives in `@sentry/nestjs`), but the config that decides what gets\n * transformed is centralized here.\n */\nexport const SENTRY_INSTRUMENTATIONS: InstrumentationConfig[] = [\n ...amqplibConfig,\n ...anthropicAiConfig,\n ...awsSdkConfig,\n ...dataloaderConfig,\n ...expressConfig,\n ...firebaseConfig,\n ...genericPoolConfig,\n ...googleGenAiConfig,\n ...graphqlConfig,\n ...hapiConfig,\n ...ioredisConfig,\n ...kafkajsConfig,\n ...knexConfig,\n ...koaConfig,\n ...langchainConfig,\n ...langgraphConfig,\n ...lruMemoizerConfig,\n ...mongodbConfig,\n ...mongooseConfig,\n ...mysql2Config,\n ...mysqlConfig,\n ...nestjsConfig,\n ...openaiConfig,\n ...pgConfig,\n ...postgresJsConfig,\n ...prismaConfig,\n ...reactRouterConfig,\n ...redisConfig,\n ...remixConfig,\n ...tediousConfig,\n ...vercelAiConfig,\n];\n\n/**\n * The unique set of package names instrumented by `SENTRY_INSTRUMENTATIONS`\n * merged with any caller-provided `instrumentations` (e.g. `['mysql']`).\n *\n * Bundler plugins MUST ensure these are actually bundled rather than\n * externalized: an externalized dependency is resolved from `node_modules` at\n * runtime and never passes through the code transform's `onLoad`, so its\n * diagnostics_channel calls are silently never injected. This includes a\n * plugin's custom `instrumentations`, otherwise those extra packages can stay\n * externalized and their transform never runs.\n */\nexport function instrumentedModuleNames(instrumentations: InstrumentationConfig[] = []): string[] {\n return [\n ...uniq([...SENTRY_INSTRUMENTATIONS, ...instrumentations].map(i => i.module.name)),\n // Additional things that need to be bundled but are not covered by the above\n // Remix needs to bundle this so @remix-run/server-runtime is _also_ bundled\n '@remix-run/node',\n ];\n}\n\n/** The instrumented module names from the default Sentry config, with no custom additions. */\nexport const INSTRUMENTED_MODULE_NAMES: string[] = instrumentedModuleNames();\n\n/**\n * Returns `external` with any instrumented packages removed, so a bundler that\n * uses an \"external\" denylist (esbuild, Bun, Rollup) still bundles — and thus\n * transforms — them. Matches an exact package name (`'mysql'`) or a subpath\n * (`'mysql/lib/...'`); wildcard/other patterns are left untouched. `undefined`\n * is returned unchanged.\n *\n * Pass `moduleNames` from `instrumentedModuleNames(options.instrumentations)` so\n * custom instrumentations are stripped too; it defaults to the Sentry config\n * list. (Vite uses an `ssr.noExternal` allowlist instead, so it consumes\n * `instrumentedModuleNames` directly rather than this helper.)\n */\nexport function withoutInstrumentedExternals(\n external: readonly string[] | undefined,\n moduleNames: string[] = INSTRUMENTED_MODULE_NAMES,\n): string[] | undefined {\n if (!external) {\n return undefined;\n }\n return external.filter(entry => !moduleNames.some(name => entry === name || entry.startsWith(`${name}/`)));\n}\n"],"names":["amqplibConfig","anthropicAiConfig","awsSdkConfig","dataloaderConfig","expressConfig","firebaseConfig","genericPoolConfig","googleGenAiConfig","graphqlConfig","hapiConfig","ioredisConfig","kafkajsConfig","knexConfig","koaConfig","langchainConfig","langgraphConfig","lruMemoizerConfig","mongodbConfig","mongooseConfig","mysql2Config","mysqlConfig","nestjsConfig","openaiConfig","pgConfig","postgresJsConfig","prismaConfig","reactRouterConfig","redisConfig","remixConfig","tediousConfig","vercelAiConfig","uniq"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CO,MAAM,uBAAA,GAAmD;AAAA,EAC9D,GAAGA,qBAAA;AAAA,EACH,GAAGC,6BAAA;AAAA,EACH,GAAGC,mBAAA;AAAA,EACH,GAAGC,2BAAA;AAAA,EACH,GAAGC,qBAAA;AAAA,EACH,GAAGC,uBAAA;AAAA,EACH,GAAGC,6BAAA;AAAA,EACH,GAAGC,6BAAA;AAAA,EACH,GAAGC,qBAAA;AAAA,EACH,GAAGC,eAAA;AAAA,EACH,GAAGC,qBAAA;AAAA,EACH,GAAGC,qBAAA;AAAA,EACH,GAAGC,eAAA;AAAA,EACH,GAAGC,aAAA;AAAA,EACH,GAAGC,yBAAA;AAAA,EACH,GAAGC,yBAAA;AAAA,EACH,GAAGC,6BAAA;AAAA,EACH,GAAGC,qBAAA;AAAA,EACH,GAAGC,uBAAA;AAAA,EACH,GAAGC,mBAAA;AAAA,EACH,GAAGC,iBAAA;AAAA,EACH,GAAGC,mBAAA;AAAA,EACH,GAAGC,mBAAA;AAAA,EACH,GAAGC,WAAA;AAAA,EACH,GAAGC,yBAAA;AAAA,EACH,GAAGC,mBAAA;AAAA,EACH,GAAGC,6BAAA;AAAA,EACH,GAAGC,iBAAA;AAAA,EACH,GAAGC,iBAAA;AAAA,EACH,GAAGC,qBAAA;AAAA,EACH,GAAGC;AACL;AAaO,SAAS,uBAAA,CAAwB,gBAAA,GAA4C,EAAC,EAAa;AAChG,EAAA,OAAO;AAAA,IACL,GAAGC,SAAA,CAAK,CAAC,GAAG,uBAAA,EAAyB,GAAG,gBAAgB,CAAA,CAAE,GAAA,CAAI,CAAA,CAAA,KAAK,CAAA,CAAE,MAAA,CAAO,IAAI,CAAC,CAAA;AAAA;AAAA;AAAA,IAGjF;AAAA,GACF;AACF;AAGO,MAAM,4BAAsC,uBAAA;AAc5C,SAAS,4BAAA,CACd,QAAA,EACA,WAAA,GAAwB,yBAAA,EACF;AACtB,EAAA,IAAI,CAAC,QAAA,EAAU;AACb,IAAA,OAAO,MAAA;AAAA,EACT;AACA,EAAA,OAAO,QAAA,CAAS,MAAA,CAAO,CAAA,KAAA,KAAS,CAAC,YAAY,IAAA,CAAK,CAAA,IAAA,KAAQ,KAAA,KAAU,IAAA,IAAQ,MAAM,UAAA,CAAW,CAAA,EAAG,IAAI,CAAA,CAAA,CAAG,CAAC,CAAC,CAAA;AAC3G;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ioredis.js","sources":["../../../../src/orchestrion/config/ioredis.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\nexport const ioredisConfig = [\n // ioredis `<5.11.0` (>=5.11.0 publishes its own `ioredis:*` diagnostics_channel)\n ...['lib/redis.js', 'built/redis.js', 'built/redis/index.js'].flatMap((filePath): InstrumentationConfig[] => [\n {\n channelName: 'command',\n module: { name: 'ioredis', versionRange: '>=2.0.0 <5.0.0', filePath },\n functionQuery: { expressionName: 'sendCommand', kind: 'Async' },\n },\n {\n channelName: 'connect',\n module: { name: 'ioredis', versionRange: '>=2.0.0 <5.0.0', filePath },\n functionQuery: { expressionName: 'connect', kind: 'Async' },\n },\n ]),\n {\n channelName: 'command',\n module: { name: 'ioredis', versionRange: '>=5.0.0 <5.11.0', filePath: 'built/Redis.js' },\n functionQuery: { className: 'Redis', methodName: 'sendCommand', kind: 'Async' },\n },\n {\n channelName: 'connect',\n module: { name: 'ioredis', versionRange: '>=5.0.0 <5.11.0', filePath: 'built/Redis.js' },\n functionQuery: { className: 'Redis', methodName: 'connect', kind: 'Async' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const ioredisChannels = {\n IOREDIS_COMMAND: 'orchestrion:ioredis:command',\n IOREDIS_CONNECT: 'orchestrion:ioredis:connect',\n} as const;\n"],"names":[],"mappings":";;AAEO,MAAM,aAAA,GAAgB;AAAA;AAAA,EAE3B,GAAG,CAAC,cAAA,EAAgB,gBAAA,EAAkB,sBAAsB,CAAA,CAAE,OAAA,CAAQ,CAAC,QAAA,KAAsC;AAAA,IAC3G;AAAA,MACE,WAAA,EAAa,SAAA;AAAA,MACb,QAAQ,EAAE,IAAA,EAAM,SAAA,EAAW,YAAA,EAAc,kBAAkB,QAAA,EAAS;AAAA,MACpE,aAAA,EAAe,EAAE,cAAA,EAAgB,aAAA,EAAe,MAAM,OAAA;AAAQ,KAChE;AAAA,IACA;AAAA,MACE,WAAA,EAAa,SAAA;AAAA,MACb,QAAQ,EAAE,IAAA,EAAM,SAAA,EAAW,YAAA,EAAc,kBAAkB,QAAA,EAAS;AAAA,MACpE,aAAA,EAAe,EAAE,cAAA,EAAgB,SAAA,EAAW,MAAM,OAAA;AAAQ;AAC5D,GACD,CAAA;AAAA,EACD;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,WAAW,YAAA,EAAc,iBAAA,EAAmB,UAAU,gBAAA,EAAiB;AAAA,IACvF,eAAe,EAAE,SAAA,EAAW,SAAS,UAAA,EAAY,aAAA,EAAe,MAAM,OAAA;AAAQ,GAChF;AAAA,EACA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,WAAW,YAAA,EAAc,iBAAA,EAAmB,UAAU,gBAAA,EAAiB;AAAA,IACvF,eAAe,EAAE,SAAA,EAAW,SAAS,UAAA,EAAY,SAAA,EAAW,MAAM,OAAA;AAAQ;AAE9E;AAEO,MAAM,eAAA,GAAkB;AAAA,EAC7B,eAAA,EAAiB,6BAAA;AAAA,EACjB,eAAA,EAAiB;AACnB;;;;;"}
1
+ {"version":3,"file":"ioredis.js","sources":["../../../../src/orchestrion/config/ioredis.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\nexport const ioredisConfig = [\n // ioredis `<5.11.0` (>=5.11.0 publishes its own `ioredis:*` diagnostics_channel)\n ...['lib/redis.js', 'built/redis.js', 'built/redis/index.js'].flatMap((filePath): InstrumentationConfig[] => [\n {\n channelName: 'command',\n module: { name: 'ioredis', versionRange: '>=2.0.0 <5.0.0', filePath },\n functionQuery: { expressionName: 'sendCommand', kind: 'Async' },\n },\n {\n channelName: 'connect',\n module: { name: 'ioredis', versionRange: '>=2.0.0 <5.0.0', filePath },\n functionQuery: { expressionName: 'connect', kind: 'Async' },\n },\n ]),\n {\n channelName: 'command',\n module: { name: 'ioredis', versionRange: '>=5.0.0 <5.11.0', filePath: 'built/Redis.js' },\n functionQuery: { className: 'Redis', methodName: 'sendCommand', kind: 'Async' },\n },\n {\n channelName: 'connect',\n module: { name: 'ioredis', versionRange: '>=5.0.0 <5.11.0', filePath: 'built/Redis.js' },\n functionQuery: { className: 'Redis', methodName: 'connect', kind: 'Async' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const ioredisChannels = {\n IOREDIS_COMMAND: 'orchestrion:ioredis:command',\n IOREDIS_CONNECT: 'orchestrion:ioredis:connect',\n} as const;\n"],"names":[],"mappings":";;AAEO,MAAM,aAAA,GAAgB;AAAA;AAAA,EAE3B,GAAG,CAAC,cAAA,EAAgB,gBAAA,EAAkB,sBAAsB,CAAA,CAAE,OAAA,CAAQ,CAAC,QAAA,KAAsC;AAAA,IAC3G;AAAA,MACE,WAAA,EAAa,SAAA;AAAA,MACb,QAAQ,EAAE,IAAA,EAAM,SAAA,EAAW,YAAA,EAAc,kBAAkB,QAAA,EAAS;AAAA,MACpE,aAAA,EAAe,EAAE,cAAA,EAAgB,aAAA,EAAe,MAAM,OAAA;AAAQ,KAChE;AAAA,IACA;AAAA,MACE,WAAA,EAAa,SAAA;AAAA,MACb,QAAQ,EAAE,IAAA,EAAM,SAAA,EAAW,YAAA,EAAc,kBAAkB,QAAA,EAAS;AAAA,MACpE,aAAA,EAAe,EAAE,cAAA,EAAgB,SAAA,EAAW,MAAM,OAAA;AAAQ;AAC5D,GACD,CAAA;AAAA,EACD;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,WAAW,YAAA,EAAc,iBAAA,EAAmB,UAAU,gBAAA,EAAiB;AAAA,IACvF,eAAe,EAAE,SAAA,EAAW,SAAS,UAAA,EAAY,aAAA,EAAe,MAAM,OAAA;AAAQ,GAChF;AAAA,EACA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,WAAW,YAAA,EAAc,iBAAA,EAAmB,UAAU,gBAAA,EAAiB;AAAA,IACvF,eAAe,EAAE,SAAA,EAAW,SAAS,UAAA,EAAY,SAAA,EAAW,MAAM,OAAA;AAAQ;AAE9E;AAEO,MAAM,eAAA,GAAkB;AAAA,EAC7B,eAAA,EAAiB,6BAAA;AAAA,EACjB,eAAA,EAAiB;AACnB;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"kafkajs.js","sources":["../../../../src/orchestrion/config/kafkajs.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\nexport const kafkajsConfig = [\n {\n channelName: 'send_batch',\n module: { name: 'kafkajs', versionRange: '>=2.0.0 <3', filePath: 'src/producer/messageProducer.js' },\n // `const sendBatch = async (...) => {...}` — `expressionName` matches the `const` assignment.\n // We instrument ONLY `sendBatch`: `send` funnels into it internally, so `producer.send`,\n // `producer.sendBatch` and their transactional variants all flow through this one channel.\n // Instrumenting `send` too would double-count spans.\n functionQuery: { expressionName: 'sendBatch', kind: 'Async' },\n },\n {\n channelName: 'consumer_run',\n module: { name: 'kafkajs', versionRange: '>=2.0.0 <3', filePath: 'src/consumer/index.js' },\n // `const run = async (config) => {...}` — matched by `expressionName`. We don't span `run` itself:\n // the `start` subscriber swaps `config.eachMessage`/`eachBatch` (on `ctx.arguments[0]`) for\n // span-creating wrappers before the original runs. This works because the transform re-reads\n // `ctx.arguments` when invoking the original.\n functionQuery: { expressionName: 'run', kind: 'Async' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const kafkajsChannels = {\n KAFKAJS_SEND_BATCH: 'orchestrion:kafkajs:send_batch',\n KAFKAJS_CONSUMER_RUN: 'orchestrion:kafkajs:consumer_run',\n} as const;\n"],"names":[],"mappings":";;AAEO,MAAM,aAAA,GAAgB;AAAA,EAC3B;AAAA,IACE,WAAA,EAAa,YAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,WAAW,YAAA,EAAc,YAAA,EAAc,UAAU,iCAAA,EAAkC;AAAA;AAAA;AAAA;AAAA;AAAA,IAKnG,aAAA,EAAe,EAAE,cAAA,EAAgB,WAAA,EAAa,MAAM,OAAA;AAAQ,GAC9D;AAAA,EACA;AAAA,IACE,WAAA,EAAa,cAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,WAAW,YAAA,EAAc,YAAA,EAAc,UAAU,uBAAA,EAAwB;AAAA;AAAA;AAAA;AAAA;AAAA,IAKzF,aAAA,EAAe,EAAE,cAAA,EAAgB,KAAA,EAAO,MAAM,OAAA;AAAQ;AAE1D;AAEO,MAAM,eAAA,GAAkB;AAAA,EAC7B,kBAAA,EAAoB,gCAAA;AAAA,EACpB,oBAAA,EAAsB;AACxB;;;;;"}
1
+ {"version":3,"file":"kafkajs.js","sources":["../../../../src/orchestrion/config/kafkajs.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\nexport const kafkajsConfig = [\n {\n channelName: 'send_batch',\n module: { name: 'kafkajs', versionRange: '>=2.0.0 <3', filePath: 'src/producer/messageProducer.js' },\n // `const sendBatch = async (...) => {...}` — `expressionName` matches the `const` assignment.\n // We instrument ONLY `sendBatch`: `send` funnels into it internally, so `producer.send`,\n // `producer.sendBatch` and their transactional variants all flow through this one channel.\n // Instrumenting `send` too would double-count spans.\n functionQuery: { expressionName: 'sendBatch', kind: 'Async' },\n },\n {\n channelName: 'consumer_run',\n module: { name: 'kafkajs', versionRange: '>=2.0.0 <3', filePath: 'src/consumer/index.js' },\n // `const run = async (config) => {...}` — matched by `expressionName`. We don't span `run` itself:\n // the `start` subscriber swaps `config.eachMessage`/`eachBatch` (on `ctx.arguments[0]`) for\n // span-creating wrappers before the original runs. This works because the transform re-reads\n // `ctx.arguments` when invoking the original.\n functionQuery: { expressionName: 'run', kind: 'Async' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const kafkajsChannels = {\n KAFKAJS_SEND_BATCH: 'orchestrion:kafkajs:send_batch',\n KAFKAJS_CONSUMER_RUN: 'orchestrion:kafkajs:consumer_run',\n} as const;\n"],"names":[],"mappings":";;AAEO,MAAM,aAAA,GAAgB;AAAA,EAC3B;AAAA,IACE,WAAA,EAAa,YAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,WAAW,YAAA,EAAc,YAAA,EAAc,UAAU,iCAAA,EAAkC;AAAA;AAAA;AAAA;AAAA;AAAA,IAKnG,aAAA,EAAe,EAAE,cAAA,EAAgB,WAAA,EAAa,MAAM,OAAA;AAAQ,GAC9D;AAAA,EACA;AAAA,IACE,WAAA,EAAa,cAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,WAAW,YAAA,EAAc,YAAA,EAAc,UAAU,uBAAA,EAAwB;AAAA;AAAA;AAAA;AAAA;AAAA,IAKzF,aAAA,EAAe,EAAE,cAAA,EAAgB,KAAA,EAAO,MAAM,OAAA;AAAQ;AAE1D;AAEO,MAAM,eAAA,GAAkB;AAAA,EAC7B,kBAAA,EAAoB,gCAAA;AAAA,EACpB,oBAAA,EAAsB;AACxB;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"knex.js","sources":["../../../../src/orchestrion/config/knex.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\nconst MODULE_NAME = 'knex';\n\n// knex ships different file layouts across versions (see `SUPPORTED_VERSIONS` in the vendored OTel\n// instrumentation). Modern builds keep the runner under `lib/execution`, older ones under `lib`, and\n// the source-tree build under `src`. A file that doesn't exist for a given version simply never\n// matches, so overlapping ranges are safe.\nconst RUNNER_FILES = [\n { filePath: 'lib/execution/runner.js', versionRange: '>=0.22.0 <4' },\n { filePath: 'lib/runner.js', versionRange: '>=0.10.0 <0.22.0' },\n { filePath: 'src/runner.js', versionRange: '>=0.18.0 <0.19.0' },\n];\n\nconst CLIENT_FILES = [\n { filePath: 'lib/client.js', versionRange: '>=0.10.0 <4' },\n { filePath: 'src/client.js', versionRange: '>=0.18.0 <0.19.0' },\n];\n\n// The three `Client` methods that create a builder. Wrapping them lets the subscriber capture the\n// span active at builder-creation time, which is reused as the parent when the query runs later\n// (often in a different async context).\nconst CLIENT_METHODS = ['queryBuilder', 'schemaBuilder', 'raw'] as const;\n\nfunction runnerQuery(filePath: string, versionRange: string): InstrumentationConfig {\n return {\n channelName: 'query',\n module: { name: MODULE_NAME, versionRange, filePath },\n functionQuery: { className: 'Runner', methodName: 'query', kind: 'Async' },\n };\n}\n\nfunction clientMethod(methodName: string, filePath: string, versionRange: string): InstrumentationConfig {\n return {\n channelName: methodName,\n module: { name: MODULE_NAME, versionRange, filePath },\n functionQuery: { className: 'Client', methodName, kind: 'Sync' },\n };\n}\n\nexport const knexConfig: InstrumentationConfig[] = [\n ...RUNNER_FILES.map(({ filePath, versionRange }) => runnerQuery(filePath, versionRange)),\n ...CLIENT_FILES.flatMap(({ filePath, versionRange }) =>\n CLIENT_METHODS.map(methodName => clientMethod(methodName, filePath, versionRange)),\n ),\n];\n\nexport const knexChannels = {\n KNEX_QUERY: 'orchestrion:knex:query',\n KNEX_QUERY_BUILDER: 'orchestrion:knex:queryBuilder',\n KNEX_SCHEMA_BUILDER: 'orchestrion:knex:schemaBuilder',\n KNEX_RAW: 'orchestrion:knex:raw',\n} as const;\n"],"names":[],"mappings":";;AAEA,MAAM,WAAA,GAAc,MAAA;AAMpB,MAAM,YAAA,GAAe;AAAA,EACnB,EAAE,QAAA,EAAU,yBAAA,EAA2B,YAAA,EAAc,aAAA,EAAc;AAAA,EACnE,EAAE,QAAA,EAAU,eAAA,EAAiB,YAAA,EAAc,kBAAA,EAAmB;AAAA,EAC9D,EAAE,QAAA,EAAU,eAAA,EAAiB,YAAA,EAAc,kBAAA;AAC7C,CAAA;AAEA,MAAM,YAAA,GAAe;AAAA,EACnB,EAAE,QAAA,EAAU,eAAA,EAAiB,YAAA,EAAc,aAAA,EAAc;AAAA,EACzD,EAAE,QAAA,EAAU,eAAA,EAAiB,YAAA,EAAc,kBAAA;AAC7C,CAAA;AAKA,MAAM,cAAA,GAAiB,CAAC,cAAA,EAAgB,eAAA,EAAiB,KAAK,CAAA;AAE9D,SAAS,WAAA,CAAY,UAAkB,YAAA,EAA6C;AAClF,EAAA,OAAO;AAAA,IACL,WAAA,EAAa,OAAA;AAAA,IACb,MAAA,EAAQ,EAAE,IAAA,EAAM,WAAA,EAAa,cAAc,QAAA,EAAS;AAAA,IACpD,eAAe,EAAE,SAAA,EAAW,UAAU,UAAA,EAAY,OAAA,EAAS,MAAM,OAAA;AAAQ,GAC3E;AACF;AAEA,SAAS,YAAA,CAAa,UAAA,EAAoB,QAAA,EAAkB,YAAA,EAA6C;AACvG,EAAA,OAAO;AAAA,IACL,WAAA,EAAa,UAAA;AAAA,IACb,MAAA,EAAQ,EAAE,IAAA,EAAM,WAAA,EAAa,cAAc,QAAA,EAAS;AAAA,IACpD,eAAe,EAAE,SAAA,EAAW,QAAA,EAAU,UAAA,EAAY,MAAM,MAAA;AAAO,GACjE;AACF;AAEO,MAAM,UAAA,GAAsC;AAAA,EACjD,GAAG,YAAA,CAAa,GAAA,CAAI,CAAC,EAAE,QAAA,EAAU,YAAA,EAAa,KAAM,WAAA,CAAY,QAAA,EAAU,YAAY,CAAC,CAAA;AAAA,EACvF,GAAG,YAAA,CAAa,OAAA;AAAA,IAAQ,CAAC,EAAE,QAAA,EAAU,YAAA,EAAa,KAChD,cAAA,CAAe,GAAA,CAAI,CAAA,UAAA,KAAc,YAAA,CAAa,UAAA,EAAY,QAAA,EAAU,YAAY,CAAC;AAAA;AAErF;AAEO,MAAM,YAAA,GAAe;AAAA,EAC1B,UAAA,EAAY,wBAAA;AAAA,EACZ,kBAAA,EAAoB,+BAAA;AAAA,EACpB,mBAAA,EAAqB,gCAAA;AAAA,EACrB,QAAA,EAAU;AACZ;;;;;"}
1
+ {"version":3,"file":"knex.js","sources":["../../../../src/orchestrion/config/knex.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\nconst MODULE_NAME = 'knex';\n\n// knex ships different file layouts across versions (see `SUPPORTED_VERSIONS` in the vendored OTel\n// instrumentation). Modern builds keep the runner under `lib/execution`, older ones under `lib`, and\n// the source-tree build under `src`. A file that doesn't exist for a given version simply never\n// matches, so overlapping ranges are safe.\nconst RUNNER_FILES = [\n { filePath: 'lib/execution/runner.js', versionRange: '>=0.22.0 <4' },\n { filePath: 'lib/runner.js', versionRange: '>=0.10.0 <0.22.0' },\n { filePath: 'src/runner.js', versionRange: '>=0.18.0 <0.19.0' },\n];\n\nconst CLIENT_FILES = [\n { filePath: 'lib/client.js', versionRange: '>=0.10.0 <4' },\n { filePath: 'src/client.js', versionRange: '>=0.18.0 <0.19.0' },\n];\n\n// The three `Client` methods that create a builder. Wrapping them lets the subscriber capture the\n// span active at builder-creation time, which is reused as the parent when the query runs later\n// (often in a different async context).\nconst CLIENT_METHODS = ['queryBuilder', 'schemaBuilder', 'raw'] as const;\n\nfunction runnerQuery(filePath: string, versionRange: string): InstrumentationConfig {\n return {\n channelName: 'query',\n module: { name: MODULE_NAME, versionRange, filePath },\n functionQuery: { className: 'Runner', methodName: 'query', kind: 'Async' },\n };\n}\n\nfunction clientMethod(methodName: string, filePath: string, versionRange: string): InstrumentationConfig {\n return {\n channelName: methodName,\n module: { name: MODULE_NAME, versionRange, filePath },\n functionQuery: { className: 'Client', methodName, kind: 'Sync' },\n };\n}\n\nexport const knexConfig: InstrumentationConfig[] = [\n ...RUNNER_FILES.map(({ filePath, versionRange }) => runnerQuery(filePath, versionRange)),\n ...CLIENT_FILES.flatMap(({ filePath, versionRange }) =>\n CLIENT_METHODS.map(methodName => clientMethod(methodName, filePath, versionRange)),\n ),\n];\n\nexport const knexChannels = {\n KNEX_QUERY: 'orchestrion:knex:query',\n KNEX_QUERY_BUILDER: 'orchestrion:knex:queryBuilder',\n KNEX_SCHEMA_BUILDER: 'orchestrion:knex:schemaBuilder',\n KNEX_RAW: 'orchestrion:knex:raw',\n} as const;\n"],"names":[],"mappings":";;AAEA,MAAM,WAAA,GAAc,MAAA;AAMpB,MAAM,YAAA,GAAe;AAAA,EACnB,EAAE,QAAA,EAAU,yBAAA,EAA2B,YAAA,EAAc,aAAA,EAAc;AAAA,EACnE,EAAE,QAAA,EAAU,eAAA,EAAiB,YAAA,EAAc,kBAAA,EAAmB;AAAA,EAC9D,EAAE,QAAA,EAAU,eAAA,EAAiB,YAAA,EAAc,kBAAA;AAC7C,CAAA;AAEA,MAAM,YAAA,GAAe;AAAA,EACnB,EAAE,QAAA,EAAU,eAAA,EAAiB,YAAA,EAAc,aAAA,EAAc;AAAA,EACzD,EAAE,QAAA,EAAU,eAAA,EAAiB,YAAA,EAAc,kBAAA;AAC7C,CAAA;AAKA,MAAM,cAAA,GAAiB,CAAC,cAAA,EAAgB,eAAA,EAAiB,KAAK,CAAA;AAE9D,SAAS,WAAA,CAAY,UAAkB,YAAA,EAA6C;AAClF,EAAA,OAAO;AAAA,IACL,WAAA,EAAa,OAAA;AAAA,IACb,MAAA,EAAQ,EAAE,IAAA,EAAM,WAAA,EAAa,cAAc,QAAA,EAAS;AAAA,IACpD,eAAe,EAAE,SAAA,EAAW,UAAU,UAAA,EAAY,OAAA,EAAS,MAAM,OAAA;AAAQ,GAC3E;AACF;AAEA,SAAS,YAAA,CAAa,UAAA,EAAoB,QAAA,EAAkB,YAAA,EAA6C;AACvG,EAAA,OAAO;AAAA,IACL,WAAA,EAAa,UAAA;AAAA,IACb,MAAA,EAAQ,EAAE,IAAA,EAAM,WAAA,EAAa,cAAc,QAAA,EAAS;AAAA,IACpD,eAAe,EAAE,SAAA,EAAW,QAAA,EAAU,UAAA,EAAY,MAAM,MAAA;AAAO,GACjE;AACF;AAEO,MAAM,UAAA,GAAsC;AAAA,EACjD,GAAG,YAAA,CAAa,GAAA,CAAI,CAAC,EAAE,QAAA,EAAU,YAAA,EAAa,KAAM,WAAA,CAAY,QAAA,EAAU,YAAY,CAAC,CAAA;AAAA,EACvF,GAAG,YAAA,CAAa,OAAA;AAAA,IAAQ,CAAC,EAAE,QAAA,EAAU,YAAA,EAAa,KAChD,cAAA,CAAe,GAAA,CAAI,CAAA,UAAA,KAAc,YAAA,CAAa,UAAA,EAAY,QAAA,EAAU,YAAY,CAAC;AAAA;AAErF;AAEO,MAAM,YAAA,GAAe;AAAA,EAC1B,UAAA,EAAY,wBAAA;AAAA,EACZ,kBAAA,EAAoB,+BAAA;AAAA,EACpB,mBAAA,EAAqB,gCAAA;AAAA,EACrB,QAAA,EAAU;AACZ;;;;;"}
@@ -0,0 +1,16 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const koaConfig = [
4
+ {
5
+ channelName: "use",
6
+ module: { name: "koa", versionRange: ">=2.0.0 <4", filePath: "lib/application.js" },
7
+ functionQuery: { className: "Application", methodName: "use", kind: "Sync" }
8
+ }
9
+ ];
10
+ const koaChannels = {
11
+ KOA_USE: "orchestrion:koa:use"
12
+ };
13
+
14
+ exports.koaChannels = koaChannels;
15
+ exports.koaConfig = koaConfig;
16
+ //# sourceMappingURL=koa.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"koa.js","sources":["../../../../src/orchestrion/config/koa.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\nexport const koaConfig = [\n {\n channelName: 'use',\n module: { name: 'koa', versionRange: '>=2.0.0 <4', filePath: 'lib/application.js' },\n functionQuery: { className: 'Application', methodName: 'use', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const koaChannels = {\n KOA_USE: 'orchestrion:koa:use',\n} as const;\n"],"names":[],"mappings":";;AAEO,MAAM,SAAA,GAAY;AAAA,EACvB;AAAA,IACE,WAAA,EAAa,KAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,OAAO,YAAA,EAAc,YAAA,EAAc,UAAU,oBAAA,EAAqB;AAAA,IAClF,eAAe,EAAE,SAAA,EAAW,eAAe,UAAA,EAAY,KAAA,EAAO,MAAM,MAAA;AAAO;AAE/E;AAEO,MAAM,WAAA,GAAc;AAAA,EACzB,OAAA,EAAS;AACX;;;;;"}
@@ -1,8 +1,52 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
 
3
- const langchainConfig = [];
4
- const langchainChannels = {};
3
+ const chatModelConfig = ["dist/language_models/chat_models.cjs", "dist/language_models/chat_models.js"].flatMap(
4
+ (filePath) => {
5
+ const module = { name: "@langchain/core", versionRange: ">=0.1.0 <2.0.0", filePath };
6
+ return [
7
+ {
8
+ channelName: "chatModelInvoke",
9
+ module,
10
+ functionQuery: { className: "BaseChatModel", methodName: "invoke", kind: "Async" }
11
+ },
12
+ {
13
+ channelName: "chatModelStream",
14
+ module,
15
+ functionQuery: { className: "BaseChatModel", methodName: "_streamIterator", kind: "Async" }
16
+ }
17
+ ];
18
+ }
19
+ );
20
+ const EMBED_QUERY = "embedQuery";
21
+ const EMBED_DOCUMENTS = "embedDocuments";
22
+ const EMBEDDINGS_PROVIDERS = [
23
+ { name: "@langchain/openai", versionRange: ">=0.1.0 <2.0.0", methods: [EMBED_QUERY, EMBED_DOCUMENTS] },
24
+ { name: "@langchain/google-genai", versionRange: ">=0.1.0 <3.0.0", methods: [EMBED_QUERY, EMBED_DOCUMENTS] },
25
+ { name: "@langchain/mistralai", versionRange: ">=0.1.0 <2.0.0", methods: [EMBED_QUERY, EMBED_DOCUMENTS] },
26
+ // `@langchain/google-vertexai` inherits its embed methods from this shared base. The base's
27
+ // `embedQuery` delegates to `embedDocuments`, so hooking only `embedDocuments` still traces both
28
+ // entry points as a single span each, instead of emitting a nested duplicate for `embedQuery`.
29
+ { name: "@langchain/google-common", versionRange: ">=0.1.0 <3.0.0", methods: [EMBED_DOCUMENTS] }
30
+ ];
31
+ const embeddingsConfig = EMBEDDINGS_PROVIDERS.flatMap(
32
+ ({ name, versionRange, methods }) => ["dist/embeddings.cjs", "dist/embeddings.js"].flatMap(
33
+ (filePath) => methods.map((method) => ({
34
+ channelName: method,
35
+ module: { name, versionRange, filePath },
36
+ functionQuery: { methodName: method, kind: "Async" }
37
+ }))
38
+ )
39
+ );
40
+ const langchainConfig = [...chatModelConfig, ...embeddingsConfig];
41
+ const langchainEmbeddingsChannels = EMBEDDINGS_PROVIDERS.flatMap(
42
+ ({ name, methods }) => methods.map((method) => `orchestrion:${name}:${method}`)
43
+ );
44
+ const langchainChannels = {
45
+ LANGCHAIN_CHAT_MODEL_INVOKE: "orchestrion:@langchain/core:chatModelInvoke",
46
+ LANGCHAIN_CHAT_MODEL_STREAM: "orchestrion:@langchain/core:chatModelStream"
47
+ };
5
48
 
6
49
  exports.langchainChannels = langchainChannels;
7
50
  exports.langchainConfig = langchainConfig;
51
+ exports.langchainEmbeddingsChannels = langchainEmbeddingsChannels;
8
52
  //# sourceMappingURL=langchain.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"langchain.js","sources":["../../../../src/orchestrion/config/langchain.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\n// TODO: Stub for the `langchain` orchestrion integration (ports `SentryLangChainInstrumentation`).\nexport const langchainConfig: InstrumentationConfig[] = [];\n\nexport const langchainChannels = {} as const;\n"],"names":[],"mappings":";;AAGO,MAAM,kBAA2C;AAEjD,MAAM,oBAAoB;;;;;"}
1
+ {"version":3,"file":"langchain.js","sources":["../../../../src/orchestrion/config/langchain.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\n// `@langchain/*` packages ship dual CJS/ESM builds (`.cjs` for `require`, `.js` for `import`) and the\n// matcher compares `filePath` exactly, so each hook is declared once per built file.\n\n// LangChain's chat model methods live on `BaseChatModel` in `@langchain/core` and are inherited by\n// every provider class (`ChatAnthropic`, `ChatOpenAI`, …), so a single hook there covers all\n// providers. `invoke` also backs `.batch()` (which calls `invoke` per item); `_streamIterator`\n// backs `.stream()`. The vendored OTel instrumentation instead patched each provider package to\n// dodge `@langchain/core` being bundled, but orchestrion transforms its source directly regardless\n// of bundling.\nconst chatModelConfig = ['dist/language_models/chat_models.cjs', 'dist/language_models/chat_models.js'].flatMap(\n filePath => {\n const module = { name: '@langchain/core', versionRange: '>=0.1.0 <2.0.0', filePath };\n\n return [\n {\n channelName: 'chatModelInvoke',\n module,\n functionQuery: { className: 'BaseChatModel', methodName: 'invoke', kind: 'Async' as const },\n },\n {\n channelName: 'chatModelStream',\n module,\n functionQuery: { className: 'BaseChatModel', methodName: '_streamIterator', kind: 'Async' as const },\n },\n ];\n },\n);\n\n// Embeddings have no shared concrete method on the base class (each provider implements\n// `embedQuery`/`embedDocuments`), so they're hooked per package. These are the provider packages the\n// vendored OTel instrumentation covered that actually ship an `Embeddings` subclass: `@langchain/openai`,\n// `@langchain/google-genai` and `@langchain/mistralai` define the two methods on their own class, while\n// `@langchain/google-vertexai` inherits them from the shared `@langchain/google-common` base, so that base\n// is the module hooked for it. (anthropic and groq are chat-only — they ship no embeddings class.) The\n// `embedQuery`/`embedDocuments` channel names are per-method; orchestrion prefixes them with the module\n// name, so the full channel strings stay distinct across packages.\nconst EMBED_QUERY = 'embedQuery';\nconst EMBED_DOCUMENTS = 'embedDocuments';\n\nconst EMBEDDINGS_PROVIDERS = [\n { name: '@langchain/openai', versionRange: '>=0.1.0 <2.0.0', methods: [EMBED_QUERY, EMBED_DOCUMENTS] },\n { name: '@langchain/google-genai', versionRange: '>=0.1.0 <3.0.0', methods: [EMBED_QUERY, EMBED_DOCUMENTS] },\n { name: '@langchain/mistralai', versionRange: '>=0.1.0 <2.0.0', methods: [EMBED_QUERY, EMBED_DOCUMENTS] },\n // `@langchain/google-vertexai` inherits its embed methods from this shared base. The base's\n // `embedQuery` delegates to `embedDocuments`, so hooking only `embedDocuments` still traces both\n // entry points as a single span each, instead of emitting a nested duplicate for `embedQuery`.\n { name: '@langchain/google-common', versionRange: '>=0.1.0 <3.0.0', methods: [EMBED_DOCUMENTS] },\n];\n\nconst embeddingsConfig = EMBEDDINGS_PROVIDERS.flatMap(({ name, versionRange, methods }) =>\n ['dist/embeddings.cjs', 'dist/embeddings.js'].flatMap(filePath =>\n methods.map(method => ({\n channelName: method,\n module: { name, versionRange, filePath },\n functionQuery: { methodName: method, kind: 'Async' as const },\n })),\n ),\n);\n\nexport const langchainConfig = [...chatModelConfig, ...embeddingsConfig] satisfies InstrumentationConfig[];\n\n// The embeddings channel strings the subscriber binds to, derived from the provider list above so that\n// adding a provider is a single edit that both instruments it and subscribes the listener to it.\nexport const langchainEmbeddingsChannels = EMBEDDINGS_PROVIDERS.flatMap(({ name, methods }) =>\n methods.map(method => `orchestrion:${name}:${method}`),\n);\n\nexport const langchainChannels = {\n LANGCHAIN_CHAT_MODEL_INVOKE: 'orchestrion:@langchain/core:chatModelInvoke',\n LANGCHAIN_CHAT_MODEL_STREAM: 'orchestrion:@langchain/core:chatModelStream',\n} as const;\n"],"names":[],"mappings":";;AAWA,MAAM,eAAA,GAAkB,CAAC,sCAAA,EAAwC,qCA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CAAA,MAAA,MAAW;AAAA,MACrB,WAAA,EAAa,MAAA;AAAA,MACb,MAAA,EAAQ,EAAE,IAAA,EAAM,YAAA,EAAc,QAAA,EAAS;AAAA,MACvC,aAAA,EAAe,EAAE,UAAA,EAAY,MAAA,EAAQ,MAAM,OAAA;AAAiB,KAC9D,CAAE;AAAA;AAEN,CAAA;AAEO,MAAM,eAAA,GAAkB,CAAC,GAAG,eAAA,EAAiB,GAAG,gBAAgB;AAIhE,MAAM,8BAA8B,oBAAA,CAAqB,OAAA;AAAA,EAAQ,CAAC,EAAE,IAAA,EAAM,OAAA,EAAQ,KACvF,OAAA,CAAQ,GAAA,CAAI,CAAA,MAAA,KAAU,CAAA,YAAA,EAAe,IAAI,CAAA,CAAA,EAAI,MAAM,CAAA,CAAE;AACvD;AAEO,MAAM,iBAAA,GAAoB;AAAA,EAC/B,2BAAA,EAA6B,6CAAA;AAAA,EAC7B,2BAAA,EAA6B;AAC/B;;;;;;"}
@@ -1,7 +1,27 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
 
3
- const langgraphConfig = [];
4
- const langgraphChannels = {};
3
+ const module$1 = (filePath) => ({
4
+ name: "@langchain/langgraph",
5
+ versionRange: ">=0.0.0 <2.0.0",
6
+ filePath
7
+ });
8
+ const compileConfig = ["dist/graph/state.cjs", "dist/graph/state.js"].map((filePath) => ({
9
+ channelName: "stateGraphCompile",
10
+ module: module$1(filePath),
11
+ functionQuery: { className: "StateGraph", methodName: "compile", kind: "Sync" }
12
+ }));
13
+ const createReactAgentConfig = ["dist/prebuilt/react_agent_executor.cjs", "dist/prebuilt/react_agent_executor.js"].map(
14
+ (filePath) => ({
15
+ channelName: "createReactAgent",
16
+ module: module$1(filePath),
17
+ functionQuery: { functionName: "createReactAgent", kind: "Sync" }
18
+ })
19
+ );
20
+ const langgraphConfig = [...compileConfig, ...createReactAgentConfig];
21
+ const langgraphChannels = {
22
+ LANGGRAPH_STATE_GRAPH_COMPILE: "orchestrion:@langchain/langgraph:stateGraphCompile",
23
+ LANGGRAPH_CREATE_REACT_AGENT: "orchestrion:@langchain/langgraph:createReactAgent"
24
+ };
5
25
 
6
26
  exports.langgraphChannels = langgraphChannels;
7
27
  exports.langgraphConfig = langgraphConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"langgraph.js","sources":["../../../../src/orchestrion/config/langgraph.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\n// TODO: Stub for the `langgraph` orchestrion integration (ports `SentryLangGraphInstrumentation`).\nexport const langgraphConfig: InstrumentationConfig[] = [];\n\nexport const langgraphChannels = {} as const;\n"],"names":[],"mappings":";;AAGO,MAAM,kBAA2C;AAEjD,MAAM,oBAAoB;;;;;"}
1
+ {"version":3,"file":"langgraph.js","sources":["../../../../src/orchestrion/config/langgraph.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\n// `@langchain/langgraph` ships dual CJS/ESM builds (`.cjs` for `require`, `.js` for `import`) and the\n// matcher compares `filePath` exactly, so each hook is declared once per built file. `StateGraph.compile`\n// and `createReactAgent` both return synchronously; the subscriber wraps the returned compiled graph's\n// `invoke` (mirroring the vendored OTel instrumentation, which patched these on the module exports).\nconst module = (filePath: string): InstrumentationConfig['module'] => ({\n name: '@langchain/langgraph',\n versionRange: '>=0.0.0 <2.0.0',\n filePath,\n});\n\nconst compileConfig = ['dist/graph/state.cjs', 'dist/graph/state.js'].map(filePath => ({\n channelName: 'stateGraphCompile',\n module: module(filePath),\n functionQuery: { className: 'StateGraph', methodName: 'compile', kind: 'Sync' as const },\n}));\n\n// `createReactAgent` is a single function declaration re-exported from both `@langchain/langgraph` and\n// `@langchain/langgraph/prebuilt`; hooking its definition file covers every import path.\nconst createReactAgentConfig = ['dist/prebuilt/react_agent_executor.cjs', 'dist/prebuilt/react_agent_executor.js'].map(\n filePath => ({\n channelName: 'createReactAgent',\n module: module(filePath),\n functionQuery: { functionName: 'createReactAgent', kind: 'Sync' as const },\n }),\n);\n\nexport const langgraphConfig = [...compileConfig, ...createReactAgentConfig] satisfies InstrumentationConfig[];\n\nexport const langgraphChannels = {\n LANGGRAPH_STATE_GRAPH_COMPILE: 'orchestrion:@langchain/langgraph:stateGraphCompile',\n LANGGRAPH_CREATE_REACT_AGENT: 'orchestrion:@langchain/langgraph:createReactAgent',\n} as const;\n"],"names":["module"],"mappings":";;AAMA,MAAMA,QAAA,GAAS,CAAC,QAAA,MAAuD;AAAA,EACrE,IAAA,EAAM,sBAAA;AAAA,EACN,YAAA,EAAc,gBAAA;AAAA,EACd;AACF,CAAA,CAAA;AAEA,MAAM,gBAAgB,CAAC,sBAAA,EAAwB,qBAAqB,CAAA,CAAE,IAAI,CAAA,QAAA,MAAa;AAAA,EACrF,WAAA,EAAa,mBAAA;AAAA,EACb,MAAA,EAAQA,SAAO,QAAQ,CAAA;AAAA,EACvB,eAAe,EAAE,SAAA,EAAW,cAAc,UAAA,EAAY,SAAA,EAAW,MAAM,MAAA;AACzE,CAAA,CAAE,CAAA;AAIF,MAAM,sBAAA,GAAyB,CAAC,wCAAA,EAA0C,uCAAuC,CAAA,CAAE,GAAA;AAAA,EACjH,CAAA,QAAA,MAAa;AAAA,IACX,WAAA,EAAa,kBAAA;AAAA,IACb,MAAA,EAAQA,SAAO,QAAQ,CAAA;AAAA,IACvB,aAAA,EAAe,EAAE,YAAA,EAAc,kBAAA,EAAoB,MAAM,MAAA;AAAgB,GAC3E;AACF,CAAA;AAEO,MAAM,eAAA,GAAkB,CAAC,GAAG,aAAA,EAAe,GAAG,sBAAsB;AAEpE,MAAM,iBAAA,GAAoB;AAAA,EAC/B,6BAAA,EAA+B,oDAAA;AAAA,EAC/B,4BAAA,EAA8B;AAChC;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"lru-memoizer.js","sources":["../../../../src/orchestrion/config/lru-memoizer.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\nexport const lruMemoizerConfig = [\n {\n channelName: 'load',\n // `>=2.1.0` only: the named `function memoizedFunction()` the selector targets exists from 2.1.0\n module: { name: 'lru-memoizer', versionRange: '>=2.1.0 <4', filePath: 'lib/async.js' },\n functionQuery: { functionName: 'memoizedFunction', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const lruMemoizerChannels = {\n LRU_MEMOIZER_LOAD: 'orchestrion:lru-memoizer:load',\n} as const;\n"],"names":[],"mappings":";;AAEO,MAAM,iBAAA,GAAoB;AAAA,EAC/B;AAAA,IACE,WAAA,EAAa,MAAA;AAAA;AAAA,IAEb,QAAQ,EAAE,IAAA,EAAM,gBAAgB,YAAA,EAAc,YAAA,EAAc,UAAU,cAAA,EAAe;AAAA,IACrF,aAAA,EAAe,EAAE,YAAA,EAAc,kBAAA,EAAoB,MAAM,UAAA;AAAW;AAExE;AAEO,MAAM,mBAAA,GAAsB;AAAA,EACjC,iBAAA,EAAmB;AACrB;;;;;"}
1
+ {"version":3,"file":"lru-memoizer.js","sources":["../../../../src/orchestrion/config/lru-memoizer.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\nexport const lruMemoizerConfig = [\n {\n channelName: 'load',\n // `>=2.1.0` only: the named `function memoizedFunction()` the selector targets exists from 2.1.0\n module: { name: 'lru-memoizer', versionRange: '>=2.1.0 <4', filePath: 'lib/async.js' },\n functionQuery: { functionName: 'memoizedFunction', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const lruMemoizerChannels = {\n LRU_MEMOIZER_LOAD: 'orchestrion:lru-memoizer:load',\n} as const;\n"],"names":[],"mappings":";;AAEO,MAAM,iBAAA,GAAoB;AAAA,EAC/B;AAAA,IACE,WAAA,EAAa,MAAA;AAAA;AAAA,IAEb,QAAQ,EAAE,IAAA,EAAM,gBAAgB,YAAA,EAAc,YAAA,EAAc,UAAU,cAAA,EAAe;AAAA,IACrF,aAAA,EAAe,EAAE,YAAA,EAAc,kBAAA,EAAoB,MAAM,UAAA;AAAW;AAExE;AAEO,MAAM,mBAAA,GAAsB;AAAA,EACjC,iBAAA,EAAmB;AACrB;;;;;"}
@@ -1,7 +1,66 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
 
3
- const mongodbConfig = [];
4
- const mongodbChannels = {};
3
+ const module$1 = { name: "mongodb" };
4
+ const mongodbConfig = [
5
+ // Band 1: mongodb >= 6.4 — promise-based command.
6
+ // `methodName`-only (no `className`): the code-transformer's `className` matcher throws on classes
7
+ // containing ES2022 `static {}` blocks (mongodb 7.x's `Connection`/`ConnectionPool` have them — see
8
+ // `transformer-bug.md`), and `methodName` alone matches exactly the base method across all versions.
9
+ {
10
+ channelName: "command",
11
+ module: { ...module$1, versionRange: ">=6.4.0 <8", filePath: "lib/cmap/connection.js" },
12
+ functionQuery: { methodName: "command", kind: "Async" }
13
+ },
14
+ // Band 2: mongodb >= 4.0 < 6.4 — callback-based command (same `command` channel, different kind).
15
+ {
16
+ channelName: "command",
17
+ module: { ...module$1, versionRange: ">=4.0.0 <6.4", filePath: "lib/cmap/connection.js" },
18
+ functionQuery: { methodName: "command", kind: "Callback" }
19
+ },
20
+ // Band 2: the pool runs the checkout callback in a detached async context, so the operation's
21
+ // `command()` (invoked inside it) loses the caller's active span. Hooking `checkOut` re-propagates
22
+ // that context to the callback (the subscriber creates no span — see `getSpan` returning undefined).
23
+ // Only needed < 6.4; from 6.4 `checkOut` is promise-based and the context survives natively.
24
+ {
25
+ channelName: "checkout",
26
+ module: { ...module$1, versionRange: ">=4.0.0 <6.4", filePath: "lib/cmap/connection_pool.js" },
27
+ functionQuery: { methodName: "checkOut", kind: "Callback" }
28
+ },
29
+ // Band 3: mongodb >= 3.3 < 4 — the driver had no unified `command`; each operation is a separate
30
+ // `lib/core/wireprotocol` function, all callback-style. `insert`/`update`/`remove` are named
31
+ // function expressions in the `index.js` `module.exports` object (matched by `expressionName`);
32
+ // `command`/`query`/`getMore` are single-function modules (matched by `functionName`).
33
+ ...["insert", "update", "remove"].map((op) => ({
34
+ channelName: `v3_${op}`,
35
+ module: { ...module$1, versionRange: ">=3.3.0 <4", filePath: "lib/core/wireprotocol/index.js" },
36
+ functionQuery: { expressionName: op, kind: "Callback" }
37
+ })),
38
+ {
39
+ channelName: "v3_command",
40
+ module: { ...module$1, versionRange: ">=3.3.0 <4", filePath: "lib/core/wireprotocol/command.js" },
41
+ functionQuery: { functionName: "command", kind: "Callback" }
42
+ },
43
+ {
44
+ channelName: "v3_query",
45
+ module: { ...module$1, versionRange: ">=3.3.0 <4", filePath: "lib/core/wireprotocol/query.js" },
46
+ functionQuery: { functionName: "query", kind: "Callback" }
47
+ },
48
+ {
49
+ channelName: "v3_get_more",
50
+ module: { ...module$1, versionRange: ">=3.3.0 <4", filePath: "lib/core/wireprotocol/get_more.js" },
51
+ functionQuery: { functionName: "getMore", kind: "Callback" }
52
+ }
53
+ ];
54
+ const mongodbChannels = {
55
+ MONGODB_COMMAND: "orchestrion:mongodb:command",
56
+ MONGODB_CHECKOUT: "orchestrion:mongodb:checkout",
57
+ MONGODB_V3_INSERT: "orchestrion:mongodb:v3_insert",
58
+ MONGODB_V3_UPDATE: "orchestrion:mongodb:v3_update",
59
+ MONGODB_V3_REMOVE: "orchestrion:mongodb:v3_remove",
60
+ MONGODB_V3_COMMAND: "orchestrion:mongodb:v3_command",
61
+ MONGODB_V3_QUERY: "orchestrion:mongodb:v3_query",
62
+ MONGODB_V3_GET_MORE: "orchestrion:mongodb:v3_get_more"
63
+ };
5
64
 
6
65
  exports.mongodbChannels = mongodbChannels;
7
66
  exports.mongodbConfig = mongodbConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"mongodb.js","sources":["../../../../src/orchestrion/config/mongodb.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\n// TODO: Stub for the `mongodb` orchestrion integration (ports `@opentelemetry/instrumentation-mongodb`).\nexport const mongodbConfig: InstrumentationConfig[] = [];\n\nexport const mongodbChannels = {} as const;\n"],"names":[],"mappings":";;AAGO,MAAM,gBAAyC;AAE/C,MAAM,kBAAkB;;;;;"}
1
+ {"version":3,"file":"mongodb.js","sources":["../../../../src/orchestrion/config/mongodb.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\n// The mongodb driver's command architecture changed across majors, mirrored in the vendored OTel\n// instrumentation's version bands:\n// - >= 6.4: promise-based `Connection.prototype.command`\n// - >= 4.0 < 6.4: callback-based `Connection.prototype.command` + `ConnectionPool.checkOut`\n// (the pool runs the checkout callback in a detached context, so the channel re-propagates the\n// caller's async context to it — see the subscriber)\n// - >= 3.3 < 4: the `lib/core/wireprotocol` module functions\nconst module = { name: 'mongodb' } as const;\n\nexport const mongodbConfig = [\n // Band 1: mongodb >= 6.4 — promise-based command.\n // `methodName`-only (no `className`): the code-transformer's `className` matcher throws on classes\n // containing ES2022 `static {}` blocks (mongodb 7.x's `Connection`/`ConnectionPool` have them — see\n // `transformer-bug.md`), and `methodName` alone matches exactly the base method across all versions.\n {\n channelName: 'command',\n module: { ...module, versionRange: '>=6.4.0 <8', filePath: 'lib/cmap/connection.js' },\n functionQuery: { methodName: 'command', kind: 'Async' },\n },\n // Band 2: mongodb >= 4.0 < 6.4 — callback-based command (same `command` channel, different kind).\n {\n channelName: 'command',\n module: { ...module, versionRange: '>=4.0.0 <6.4', filePath: 'lib/cmap/connection.js' },\n functionQuery: { methodName: 'command', kind: 'Callback' },\n },\n // Band 2: the pool runs the checkout callback in a detached async context, so the operation's\n // `command()` (invoked inside it) loses the caller's active span. Hooking `checkOut` re-propagates\n // that context to the callback (the subscriber creates no span — see `getSpan` returning undefined).\n // Only needed < 6.4; from 6.4 `checkOut` is promise-based and the context survives natively.\n {\n channelName: 'checkout',\n module: { ...module, versionRange: '>=4.0.0 <6.4', filePath: 'lib/cmap/connection_pool.js' },\n functionQuery: { methodName: 'checkOut', kind: 'Callback' },\n },\n // Band 3: mongodb >= 3.3 < 4 — the driver had no unified `command`; each operation is a separate\n // `lib/core/wireprotocol` function, all callback-style. `insert`/`update`/`remove` are named\n // function expressions in the `index.js` `module.exports` object (matched by `expressionName`);\n // `command`/`query`/`getMore` are single-function modules (matched by `functionName`).\n ...(['insert', 'update', 'remove'] as const).map(op => ({\n channelName: `v3_${op}`,\n module: { ...module, versionRange: '>=3.3.0 <4', filePath: 'lib/core/wireprotocol/index.js' },\n functionQuery: { expressionName: op, kind: 'Callback' as const },\n })),\n {\n channelName: 'v3_command',\n module: { ...module, versionRange: '>=3.3.0 <4', filePath: 'lib/core/wireprotocol/command.js' },\n functionQuery: { functionName: 'command', kind: 'Callback' },\n },\n {\n channelName: 'v3_query',\n module: { ...module, versionRange: '>=3.3.0 <4', filePath: 'lib/core/wireprotocol/query.js' },\n functionQuery: { functionName: 'query', kind: 'Callback' },\n },\n {\n channelName: 'v3_get_more',\n module: { ...module, versionRange: '>=3.3.0 <4', filePath: 'lib/core/wireprotocol/get_more.js' },\n functionQuery: { functionName: 'getMore', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const mongodbChannels = {\n MONGODB_COMMAND: 'orchestrion:mongodb:command',\n MONGODB_CHECKOUT: 'orchestrion:mongodb:checkout',\n MONGODB_V3_INSERT: 'orchestrion:mongodb:v3_insert',\n MONGODB_V3_UPDATE: 'orchestrion:mongodb:v3_update',\n MONGODB_V3_REMOVE: 'orchestrion:mongodb:v3_remove',\n MONGODB_V3_COMMAND: 'orchestrion:mongodb:v3_command',\n MONGODB_V3_QUERY: 'orchestrion:mongodb:v3_query',\n MONGODB_V3_GET_MORE: 'orchestrion:mongodb:v3_get_more',\n} as const;\n"],"names":["module"],"mappings":";;AASA,MAAMA,QAAA,GAAS,EAAE,IAAA,EAAM,SAAA,EAAU;AAE1B,MAAM,aAAA,GAAgB;AAAA;AAAA;AAAA;AAAA;AAAA,EAK3B;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,GAAGA,UAAQ,YAAA,EAAc,YAAA,EAAc,UAAU,wBAAA,EAAyB;AAAA,IACpF,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AAA;AAAW,GAC3D;AAAA,EACA;AAAA,IACE,WAAA,EAAa,aAAA;AAAA,IACb,QAAQ,EAAE,GAAGA,UAAQ,YAAA,EAAc,YAAA,EAAc,UAAU,mCAAA,EAAoC;AAAA,IAC/F,aAAA,EAAe,EAAE,YAAA,EAAc,SAAA,EAAW,MAAM,UAAA;AAAW;AAE/D;AAEO,MAAM,eAAA,GAAkB;AAAA,EAC7B,eAAA,EAAiB,6BAAA;AAAA,EACjB,gBAAA,EAAkB,8BAAA;AAAA,EAClB,iBAAA,EAAmB,+BAAA;AAAA,EACnB,iBAAA,EAAmB,+BAAA;AAAA,EACnB,iBAAA,EAAmB,+BAAA;AAAA,EACnB,kBAAA,EAAoB,gCAAA;AAAA,EACpB,gBAAA,EAAkB,8BAAA;AAAA,EAClB,mBAAA,EAAqB;AACvB;;;;;"}
@@ -1,8 +1,107 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
 
3
- const mongooseConfig = [];
4
- const mongooseChannels = {};
3
+ const module$1 = { name: "mongoose", versionRange: ">=5.9.7 <9.7.0" };
4
+ const CONTEXT_CAPTURE_QUERY_METHODS = [
5
+ "find",
6
+ "findOne",
7
+ "deleteOne",
8
+ "deleteMany",
9
+ "estimatedDocumentCount",
10
+ "countDocuments",
11
+ "distinct",
12
+ "where",
13
+ "$where",
14
+ "findOneAndUpdate",
15
+ "findOneAndDelete",
16
+ "findOneAndReplace",
17
+ // 5/6/7 only (removed in 8), inert in recent versions
18
+ "remove",
19
+ "count",
20
+ "findOneAndRemove"
21
+ ];
22
+ const mongooseConfig = [
23
+ // Query execution
24
+ // the span for most read/write operations. `op`, collection and model are
25
+ // read off the `Query` at exec time.
26
+ {
27
+ channelName: "query_exec",
28
+ module: { ...module$1, filePath: "lib/query.js" },
29
+ functionQuery: { expressionName: "exec", kind: "Auto" }
30
+ },
31
+ // Aggregation pipeline execution.
32
+ {
33
+ channelName: "aggregate_exec",
34
+ module: { ...module$1, filePath: "lib/aggregate.js" },
35
+ functionQuery: { expressionName: "exec", kind: "Auto" }
36
+ },
37
+ // `doc.save()` (and its `$save` alias, which mongoose points at `save` on
38
+ // require. the alias picks up the transformed body automatically, so no
39
+ // separate entry is needed).
40
+ {
41
+ channelName: "model_save",
42
+ module: { ...module$1, filePath: "lib/model.js" },
43
+ functionQuery: { expressionName: "save", kind: "Auto" }
44
+ },
45
+ // Static batch operations.
46
+ {
47
+ channelName: "model_insert_many",
48
+ module: { ...module$1, filePath: "lib/model.js" },
49
+ functionQuery: { expressionName: "insertMany", kind: "Auto" }
50
+ },
51
+ {
52
+ channelName: "model_bulk_write",
53
+ module: { ...module$1, filePath: "lib/model.js" },
54
+ functionQuery: { expressionName: "bulkWrite", kind: "Auto" }
55
+ },
56
+ // `doc.remove()` (a document method, deprecated in 6 and removed in 7)
57
+ // `expressionName: 'remove'` also matches the sibling `Model.remove`
58
+ // *static* in this file, which no matcher can tell apart from the prototype
59
+ // method; that static is deprecated and would just produce a redundant span
60
+ // so the collision is accepted rather than dropping the doc-method span.
61
+ {
62
+ channelName: "model_remove",
63
+ module: { ...module$1, filePath: "lib/model.js" },
64
+ functionQuery: { expressionName: "remove", kind: "Auto" }
65
+ },
66
+ // NOTE: document `updateOne`/`deleteOne` (mongoose 8.21+) are deliberately
67
+ // NOT hooked here. The vendored OTel/IITM patcher wraps
68
+ // `Model.prototype.updateOne`/`deleteOne`, but those delegate to
69
+ // `Query.exec`, which the `query_exec` channel above already instruments
70
+ // (its `this.op` is the right operation). Verified by the `mongoose-v8`
71
+ // suite against a real mongoose 8.21+ under orchestrion. A dedicated hook
72
+ // is also not possible cleanly: `expressionName: 'updateOne'` in
73
+ // `lib/model.js` can't be told apart from the same-named `Model.updateOne`
74
+ // *static* (the common query-builder form), so hooking it would double-span
75
+ // every `Model.updateOne(...)` call.
76
+ //
77
+ // `Model.aggregate()` builds an `Aggregate` with no method to hook for
78
+ // context capture, so hook the static itself and stash the active span
79
+ // on the returned aggregate. `Sync`: it returns the aggregate.
80
+ {
81
+ channelName: "model_aggregate",
82
+ module: { ...module$1, filePath: "lib/model.js" },
83
+ functionQuery: { expressionName: "aggregate", kind: "Sync" }
84
+ },
85
+ ...CONTEXT_CAPTURE_QUERY_METHODS.map((methodName) => ({
86
+ channelName: `ctx_${methodName}`,
87
+ module: { ...module$1, filePath: "lib/query.js" },
88
+ functionQuery: { expressionName: methodName, kind: "Sync" }
89
+ }))
90
+ ];
91
+ const mongooseChannels = {
92
+ MONGOOSE_QUERY_EXEC: "orchestrion:mongoose:query_exec",
93
+ MONGOOSE_AGGREGATE_EXEC: "orchestrion:mongoose:aggregate_exec",
94
+ MONGOOSE_MODEL_SAVE: "orchestrion:mongoose:model_save",
95
+ MONGOOSE_MODEL_INSERT_MANY: "orchestrion:mongoose:model_insert_many",
96
+ MONGOOSE_MODEL_BULK_WRITE: "orchestrion:mongoose:model_bulk_write",
97
+ MONGOOSE_MODEL_REMOVE: "orchestrion:mongoose:model_remove",
98
+ MONGOOSE_MODEL_AGGREGATE: "orchestrion:mongoose:model_aggregate"
99
+ };
100
+ const MONGOOSE_CONTEXT_CAPTURE_CHANNELS = CONTEXT_CAPTURE_QUERY_METHODS.map(
101
+ (methodName) => `orchestrion:mongoose:ctx_${methodName}`
102
+ );
5
103
 
104
+ exports.MONGOOSE_CONTEXT_CAPTURE_CHANNELS = MONGOOSE_CONTEXT_CAPTURE_CHANNELS;
6
105
  exports.mongooseChannels = mongooseChannels;
7
106
  exports.mongooseConfig = mongooseConfig;
8
107
  //# sourceMappingURL=mongoose.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mongoose.js","sources":["../../../../src/orchestrion/config/mongoose.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\n// TODO: Stub for the `mongoose` orchestrion integration (ports `@opentelemetry/instrumentation-mongoose`).\nexport const mongooseConfig: InstrumentationConfig[] = [];\n\nexport const mongooseChannels = {} as const;\n"],"names":[],"mappings":";;AAGO,MAAM,iBAA0C;AAEhD,MAAM,mBAAmB;;;;;"}
1
+ {"version":3,"file":"mongoose.js","sources":["../../../../src/orchestrion/config/mongoose.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\n// mongoose >= 9.7.0 publishes via its own `node:diagnostics_channel` tracing channels (handled by\n// `subscribeMongooseDiagnosticChannels`), so this transform is gated to `< 9.7.0` to avoid emitting\n// two spans per operation. The lower bound mirrors the vendored OTel IITM patcher's supported range.\nconst module = { name: 'mongoose', versionRange: '>=5.9.7 <9.7.0' } as const;\n\n// mongoose defines its prototype/static methods as assignments\n// (`Query.prototype.find = function(...)`, most of them anonymous), so the\n// transform matches the assigned property name via `expressionName`\n// rather than the function name. Entries whose method does not exist in a\n// given major are simply inert.\n\n// Builder methods that run synchronously and return a `Query`/`Aggregate`.\n// They don't get their own span; the subscriber only reads the active span\n// at build time and stashes it on the query so the later `exec()` can parent\n// to where the query was *built*, not where it is awaited. `kind: 'Sync'`\n// so the returned thenable isn't mistaken for the traced operation's result.\nconst CONTEXT_CAPTURE_QUERY_METHODS = [\n 'find',\n 'findOne',\n 'deleteOne',\n 'deleteMany',\n 'estimatedDocumentCount',\n 'countDocuments',\n 'distinct',\n 'where',\n '$where',\n 'findOneAndUpdate',\n 'findOneAndDelete',\n 'findOneAndReplace',\n // 5/6/7 only (removed in 8), inert in recent versions\n 'remove',\n 'count',\n 'findOneAndRemove',\n] as const;\n\nexport const mongooseConfig = [\n // Query execution\n // the span for most read/write operations. `op`, collection and model are\n // read off the `Query` at exec time.\n {\n channelName: 'query_exec',\n module: { ...module, filePath: 'lib/query.js' },\n functionQuery: { expressionName: 'exec', kind: 'Auto' },\n },\n // Aggregation pipeline execution.\n {\n channelName: 'aggregate_exec',\n module: { ...module, filePath: 'lib/aggregate.js' },\n functionQuery: { expressionName: 'exec', kind: 'Auto' },\n },\n // `doc.save()` (and its `$save` alias, which mongoose points at `save` on\n // require. the alias picks up the transformed body automatically, so no\n // separate entry is needed).\n {\n channelName: 'model_save',\n module: { ...module, filePath: 'lib/model.js' },\n functionQuery: { expressionName: 'save', kind: 'Auto' },\n },\n // Static batch operations.\n {\n channelName: 'model_insert_many',\n module: { ...module, filePath: 'lib/model.js' },\n functionQuery: { expressionName: 'insertMany', kind: 'Auto' },\n },\n {\n channelName: 'model_bulk_write',\n module: { ...module, filePath: 'lib/model.js' },\n functionQuery: { expressionName: 'bulkWrite', kind: 'Auto' },\n },\n // `doc.remove()` (a document method, deprecated in 6 and removed in 7)\n // `expressionName: 'remove'` also matches the sibling `Model.remove`\n // *static* in this file, which no matcher can tell apart from the prototype\n // method; that static is deprecated and would just produce a redundant span\n // so the collision is accepted rather than dropping the doc-method span.\n {\n channelName: 'model_remove',\n module: { ...module, filePath: 'lib/model.js' },\n functionQuery: { expressionName: 'remove', kind: 'Auto' },\n },\n // NOTE: document `updateOne`/`deleteOne` (mongoose 8.21+) are deliberately\n // NOT hooked here. The vendored OTel/IITM patcher wraps\n // `Model.prototype.updateOne`/`deleteOne`, but those delegate to\n // `Query.exec`, which the `query_exec` channel above already instruments\n // (its `this.op` is the right operation). Verified by the `mongoose-v8`\n // suite against a real mongoose 8.21+ under orchestrion. A dedicated hook\n // is also not possible cleanly: `expressionName: 'updateOne'` in\n // `lib/model.js` can't be told apart from the same-named `Model.updateOne`\n // *static* (the common query-builder form), so hooking it would double-span\n // every `Model.updateOne(...)` call.\n //\n // `Model.aggregate()` builds an `Aggregate` with no method to hook for\n // context capture, so hook the static itself and stash the active span\n // on the returned aggregate. `Sync`: it returns the aggregate.\n {\n channelName: 'model_aggregate',\n module: { ...module, filePath: 'lib/model.js' },\n functionQuery: { expressionName: 'aggregate', kind: 'Sync' },\n },\n ...CONTEXT_CAPTURE_QUERY_METHODS.map(methodName => ({\n channelName: `ctx_${methodName}`,\n module: { ...module, filePath: 'lib/query.js' },\n functionQuery: { expressionName: methodName, kind: 'Sync' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const mongooseChannels = {\n MONGOOSE_QUERY_EXEC: 'orchestrion:mongoose:query_exec',\n MONGOOSE_AGGREGATE_EXEC: 'orchestrion:mongoose:aggregate_exec',\n MONGOOSE_MODEL_SAVE: 'orchestrion:mongoose:model_save',\n MONGOOSE_MODEL_INSERT_MANY: 'orchestrion:mongoose:model_insert_many',\n MONGOOSE_MODEL_BULK_WRITE: 'orchestrion:mongoose:model_bulk_write',\n MONGOOSE_MODEL_REMOVE: 'orchestrion:mongoose:model_remove',\n MONGOOSE_MODEL_AGGREGATE: 'orchestrion:mongoose:model_aggregate',\n} as const;\n\n/**\n * Fully-qualified names of the context-capture channels, derived from the\n * same method list the transform config uses so the two can't drift. The\n * subscriber subscribes to all of them uniformly to stash the build-time\n * parent span (see `mongooseChannels` for the span-creating channels).\n */\nexport const MONGOOSE_CONTEXT_CAPTURE_CHANNELS: string[] = CONTEXT_CAPTURE_QUERY_METHODS.map(\n methodName => `orchestrion:mongoose:ctx_${methodName}`,\n);\n"],"names":["module"],"mappings":";;AAKA,MAAMA,QAAA,GAAS,EAAE,IAAA,EAAM,UAAA,EAAY,cAAc,gBAAA,EAAiB;AAalE,MAAM,6BAAA,GAAgC;AAAA,EACpC,MAAA;AAAA,EACA,SAAA;AAAA,EACA,WAAA;AAAA,EACA,YAAA;AAAA,EACA,wBAAA;AAAA,EACA,gBAAA;AAAA,EACA,UAAA;AAAA,EACA,OAAA;AAAA,EACA,QAAA;AAAA,EACA,kBAAA;AAAA,EACA,kBAAA;AAAA,EACA,mBAAA;AAAA;AAAA,EAEA,QAAA;AAAA,EACA,OAAA;AAAA,EACA;AACF,CAAA;AAEO,MAAM,cAAA,GAAiB;AAAA;AAAA;AAAA;AAAA,EAI5B;AAAA,IACE,WAAA,EAAa,YAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,cAAA,EAAe;AAAA,IAC9C,aAAA,EAAe,EAAE,cAAA,EAAgB,MAAA,EAAQ,MAAM,MAAA;AAAO,GACxD;AAAA;AAAA,EAEA;AAAA,I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B,WAAA,EAAa,MAAM,MAAA;AAAO,GAC7D;AAAA,EACA,GAAG,6BAAA,CAA8B,GAAA,CAAI,CAAA,UAAA,MAAe;AAAA,IAClD,WAAA,EAAa,OAAO,UAAU,CAAA,CAAA;AAAA,IAC9B,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,cAAA,EAAe;AAAA,IAC9C,aAAA,EAAe,EAAE,cAAA,EAAgB,UAAA,EAAY,MAAM,MAAA;AAAgB,GACrE,CAAE;AACJ;AAEO,MAAM,gBAAA,GAAmB;AAAA,EAC9B,mBAAA,EAAqB,iCAAA;AAAA,EACrB,uBAAA,EAAyB,qCAAA;AAAA,EACzB,mBAAA,EAAqB,iCAAA;AAAA,EACrB,0BAAA,EAA4B,wCAAA;AAAA,EAC5B,yBAAA,EAA2B,uCAAA;AAAA,EAC3B,qBAAA,EAAuB,mCAAA;AAAA,EACvB,wBAAA,EAA0B;AAC5B;AAQO,MAAM,oCAA8C,6BAAA,CAA8B,GAAA;AAAA,EACvF,CAAA,UAAA,KAAc,4BAA4B,UAAU,CAAA;AACtD;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"mysql.js","sources":["../../../../src/orchestrion/config/mysql.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\nexport const mysqlConfig = [\n {\n channelName: 'query',\n module: { name: 'mysql', versionRange: '>=2.0.0 <3', filePath: 'lib/Connection.js' },\n functionQuery: { expressionName: 'query', kind: 'Auto' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const mysqlChannels = {\n MYSQL_QUERY: 'orchestrion:mysql:query',\n} as const;\n"],"names":[],"mappings":";;AAEO,MAAM,WAAA,GAAc;AAAA,EACzB;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,SAAS,YAAA,EAAc,YAAA,EAAc,UAAU,mBAAA,EAAoB;AAAA,IACnF,aAAA,EAAe,EAAE,cAAA,EAAgB,OAAA,EAAS,MAAM,MAAA;AAAO;AAE3D;AAEO,MAAM,aAAA,GAAgB;AAAA,EAC3B,WAAA,EAAa;AACf;;;;;"}
1
+ {"version":3,"file":"mysql.js","sources":["../../../../src/orchestrion/config/mysql.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\nexport const mysqlConfig = [\n {\n channelName: 'query',\n module: { name: 'mysql', versionRange: '>=2.0.0 <3', filePath: 'lib/Connection.js' },\n functionQuery: { expressionName: 'query', kind: 'Auto' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const mysqlChannels = {\n MYSQL_QUERY: 'orchestrion:mysql:query',\n} as const;\n"],"names":[],"mappings":";;AAEO,MAAM,WAAA,GAAc;AAAA,EACzB;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,SAAS,YAAA,EAAc,YAAA,EAAc,UAAU,mBAAA,EAAoB;AAAA,IACnF,aAAA,EAAe,EAAE,cAAA,EAAgB,OAAA,EAAS,MAAM,MAAA;AAAO;AAE3D;AAEO,MAAM,aAAA,GAAgB;AAAA,EAC3B,WAAA,EAAa;AACf;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"mysql2.js","sources":["../../../../src/orchestrion/config/mysql2.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\n// Ports `@opentelemetry/instrumentation-mysql2` (which patches `query`/`execute` on the connection\n// prototype) to orchestrion channel injection.\n//\n// Two file layouts across the supported range:\n// - `< 3.11.5` → `class Connection` with `query`/`execute` in `lib/connection.js`\n// - `>= 3.11.5` → the methods moved to `class BaseConnection` in `lib/base/connection.js`\n//\n// Gated to `< 3.20.0`: from 3.20.0 mysql2 publishes to `node:diagnostics_channel` natively, and\n// that path is instrumented by `subscribeMysql2DiagnosticChannels` instead. Injecting there too\n// would emit two spans per query.\n//\n// `Callback` traces the callback shapes: `query(sql, cb)`, `query(sql, values, cb)`, and — since the\n// promise API funnels through the callback form — `await connection.query(sql)`. `execute` never\n// delegates to `query` internally, so instrumenting both is safe.\n//\n// NOT `Auto`: `Auto`'s no-callback branch probes the return value for `.then`, but mysql2's callback-\n// less `query(sql)` returns a `Query` whose `.then()` throws (mysql2's \"use the promise wrapper\"\n// guard) — so `Auto` would crash streamed queries. `Callback` leaves that shape untouched (a rare,\n// row-streaming use that consumes the emitter's events), the tradeoff being it isn't traced.\nexport const mysql2Config = [\n {\n channelName: 'query',\n module: { name: 'mysql2', versionRange: '>=1.4.2 <3.11.5', filePath: 'lib/connection.js' },\n functionQuery: { className: 'Connection', methodName: 'query', kind: 'Callback' },\n },\n {\n channelName: 'execute',\n module: { name: 'mysql2', versionRange: '>=1.4.2 <3.11.5', filePath: 'lib/connection.js' },\n functionQuery: { className: 'Connection', methodName: 'execute', kind: 'Callback' },\n },\n {\n channelName: 'query',\n module: { name: 'mysql2', versionRange: '>=3.11.5 <3.20.0', filePath: 'lib/base/connection.js' },\n functionQuery: { className: 'BaseConnection', methodName: 'query', kind: 'Callback' },\n },\n {\n channelName: 'execute',\n module: { name: 'mysql2', versionRange: '>=3.11.5 <3.20.0', filePath: 'lib/base/connection.js' },\n functionQuery: { className: 'BaseConnection', methodName: 'execute', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const mysql2Channels = {\n MYSQL2_QUERY: 'orchestrion:mysql2:query',\n MYSQL2_EXECUTE: 'orchestrion:mysql2:execute',\n} as const;\n"],"names":[],"mappings":";;AAqBO,MAAM,YAAA,GAAe;AAAA,EAC1B;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,iBAAA,EAAmB,UAAU,mBAAA,EAAoB;AAAA,IACzF,eAAe,EAAE,SAAA,EAAW,cAAc,UAAA,EAAY,OAAA,EAAS,MAAM,UAAA;AAAW,GAClF;AAAA,EACA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,iBAAA,EAAmB,UAAU,mBAAA,EAAoB;AAAA,IACzF,eAAe,EAAE,SAAA,EAAW,cAAc,UAAA,EAAY,SAAA,EAAW,MAAM,UAAA;AAAW,GACpF;AAAA,EACA;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,kBAAA,EAAoB,UAAU,wBAAA,EAAyB;AAAA,IAC/F,eAAe,EAAE,SAAA,EAAW,kBAAkB,UAAA,EAAY,OAAA,EAAS,MAAM,UAAA;AAAW,GACtF;AAAA,EACA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,kBAAA,EAAoB,UAAU,wBAAA,EAAyB;AAAA,IAC/F,eAAe,EAAE,SAAA,EAAW,kBAAkB,UAAA,EAAY,SAAA,EAAW,MAAM,UAAA;AAAW;AAE1F;AAEO,MAAM,cAAA,GAAiB;AAAA,EAC5B,YAAA,EAAc,0BAAA;AAAA,EACd,cAAA,EAAgB;AAClB;;;;;"}
1
+ {"version":3,"file":"mysql2.js","sources":["../../../../src/orchestrion/config/mysql2.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\n// Ports `@opentelemetry/instrumentation-mysql2` (which patches `query`/`execute` on the connection\n// prototype) to orchestrion channel injection.\n//\n// Two file layouts across the supported range:\n// - `< 3.11.5` → `class Connection` with `query`/`execute` in `lib/connection.js`\n// - `>= 3.11.5` → the methods moved to `class BaseConnection` in `lib/base/connection.js`\n//\n// Gated to `< 3.20.0`: from 3.20.0 mysql2 publishes to `node:diagnostics_channel` natively, and\n// that path is instrumented by `subscribeMysql2DiagnosticChannels` instead. Injecting there too\n// would emit two spans per query.\n//\n// `Callback` traces the callback shapes: `query(sql, cb)`, `query(sql, values, cb)`, and — since the\n// promise API funnels through the callback form — `await connection.query(sql)`. `execute` never\n// delegates to `query` internally, so instrumenting both is safe.\n//\n// NOT `Auto`: `Auto`'s no-callback branch probes the return value for `.then`, but mysql2's callback-\n// less `query(sql)` returns a `Query` whose `.then()` throws (mysql2's \"use the promise wrapper\"\n// guard) — so `Auto` would crash streamed queries. `Callback` leaves that shape untouched (a rare,\n// row-streaming use that consumes the emitter's events), the tradeoff being it isn't traced.\nexport const mysql2Config = [\n {\n channelName: 'query',\n module: { name: 'mysql2', versionRange: '>=1.4.2 <3.11.5', filePath: 'lib/connection.js' },\n functionQuery: { className: 'Connection', methodName: 'query', kind: 'Callback' },\n },\n {\n channelName: 'execute',\n module: { name: 'mysql2', versionRange: '>=1.4.2 <3.11.5', filePath: 'lib/connection.js' },\n functionQuery: { className: 'Connection', methodName: 'execute', kind: 'Callback' },\n },\n {\n channelName: 'query',\n module: { name: 'mysql2', versionRange: '>=3.11.5 <3.20.0', filePath: 'lib/base/connection.js' },\n functionQuery: { className: 'BaseConnection', methodName: 'query', kind: 'Callback' },\n },\n {\n channelName: 'execute',\n module: { name: 'mysql2', versionRange: '>=3.11.5 <3.20.0', filePath: 'lib/base/connection.js' },\n functionQuery: { className: 'BaseConnection', methodName: 'execute', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const mysql2Channels = {\n MYSQL2_QUERY: 'orchestrion:mysql2:query',\n MYSQL2_EXECUTE: 'orchestrion:mysql2:execute',\n} as const;\n"],"names":[],"mappings":";;AAqBO,MAAM,YAAA,GAAe;AAAA,EAC1B;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,iBAAA,EAAmB,UAAU,mBAAA,EAAoB;AAAA,IACzF,eAAe,EAAE,SAAA,EAAW,cAAc,UAAA,EAAY,OAAA,EAAS,MAAM,UAAA;AAAW,GAClF;AAAA,EACA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,iBAAA,EAAmB,UAAU,mBAAA,EAAoB;AAAA,IACzF,eAAe,EAAE,SAAA,EAAW,cAAc,UAAA,EAAY,SAAA,EAAW,MAAM,UAAA;AAAW,GACpF;AAAA,EACA;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,kBAAA,EAAoB,UAAU,wBAAA,EAAyB;AAAA,IAC/F,eAAe,EAAE,SAAA,EAAW,kBAAkB,UAAA,EAAY,OAAA,EAAS,MAAM,UAAA;AAAW,GACtF;AAAA,EACA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,kBAAA,EAAoB,UAAU,wBAAA,EAAyB;AAAA,IAC/F,eAAe,EAAE,SAAA,EAAW,kBAAkB,UAAA,EAAY,SAAA,EAAW,MAAM,UAAA;AAAW;AAE1F;AAEO,MAAM,cAAA,GAAiB;AAAA,EAC5B,YAAA,EAAc,0BAAA;AAAA,EACd,cAAA,EAAgB;AAClB;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"nestjs.js","sources":["../../../../src/orchestrion/config/nestjs.ts"],"sourcesContent":["import type { FunctionKind, InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\n/**\n * Wrap an instrumentation that targets nodes via a raw esquery selector\n * (`NstQuery`) rather than the structured `functionQuery`. Needed when the\n * target can't be named, e.g. the anonymous arrow a decorator factory returns\n * The transformer supports `astQuery` at runtime (it takes precedence over\n * `functionQuery`, which then only supplies `kind`), but it isn't in the\n * published `InstrumentationConfig` type. Hence the cast.\n */\nfunction astQueryInstrumentation(config: {\n channelName: string;\n module: InstrumentationConfig['module'];\n astQuery: string;\n functionQuery: { kind: FunctionKind };\n}): InstrumentationConfig {\n return config as unknown as InstrumentationConfig;\n}\n\n/**\n * NestJS is different from the other instrumentations here. It's a standalone\n * metaframework SDK (`@sentry/nestjs`), so its channel LISTENER lives in that\n * package rather than in `server-utils`. Only the code-transform config (and\n * the channel names below) live here, so `@nestjs/*` is transformed whenever\n * orchestrion is enabled, same as every other library.\n *\n * `@sentry/nestjs` imports {@link nestjsChannels} to subscribe, and picks the\n * channel-vs-OTel path based on the global injection flag.\n */\nexport const nestjsConfig = [\n {\n channelName: 'nestFactoryCreate',\n module: { name: '@nestjs/core', versionRange: '>=8.0.0 <12', filePath: 'nest-factory.js' },\n functionQuery: { className: 'NestFactoryStatic', methodName: 'create', kind: 'Async' },\n },\n {\n channelName: 'routerExecutionContextCreate',\n module: { name: '@nestjs/core', versionRange: '>=8.0.0 <12', filePath: 'router/router-execution-context.js' },\n functionQuery: { className: 'RouterExecutionContext', methodName: 'create', kind: 'Sync' },\n },\n astQueryInstrumentation({\n // `@nestjs/common/decorators/core/injectable.decorator.js`:\n // `function Injectable(options) { return (target) => { ... }; }`\n // The inner decorator arrow is anonymous + returned, so only a raw\n // `astQuery` can target it. The subscriber's `start` receives the\n // decorated class as `arguments[0]` and patches its prototype\n // use/canActivate/transform/intercept methods, reproducing the\n // vendored `SentryNestInstrumentation` middleware/guard/pipe/interceptor\n // spans. No span on the decorator itself, so `kind: 'Sync'`.\n channelName: 'injectableDecorator',\n module: {\n name: '@nestjs/common',\n versionRange: '>=8.0.0 <12',\n filePath: 'decorators/core/injectable.decorator.js',\n },\n astQuery: 'FunctionDeclaration[id.name=\"Injectable\"] ReturnStatement > ArrowFunctionExpression',\n functionQuery: { kind: 'Sync' },\n }),\n astQueryInstrumentation({\n // `@nestjs/common/decorators/core/catch.decorator.js`:\n // `function Catch(...exceptions) { return (target) => { ... }; }`\n // Same anonymous-returned-arrow shape as `Injectable`. The subscriber's\n // `start` patches the exception filter's prototype `catch` method to\n // open an `exception_filter` span.\n //\n // Mirrors the vendored `SentryNestInstrumentation` `@Catch` wrap.\n channelName: 'catchDecorator',\n module: { name: '@nestjs/common', versionRange: '>=8.0.0 <12', filePath: 'decorators/core/catch.decorator.js' },\n astQuery: 'FunctionDeclaration[id.name=\"Catch\"] ReturnStatement > ArrowFunctionExpression',\n functionQuery: { kind: 'Sync' },\n }),\n // @nestjs/schedule @Cron/@Interval/@Timeout:\n // `function Cron(...) { return applyDecorators(...); }`\n // The returned decorator has no inline arrow to target, so we match the\n // factory function and reassign `data.result` in `end` to wrap the\n // decorator it returns (which rewrites the user handler `descriptor.value`\n // with isolation-scope + error capture).\n // Mirrors `SentryNestScheduleInstrumentation`, whose supported range we\n // match so opting in doesn't drop coverage the OTel path had. The compiled\n // `function Cron(...)` declaration is unchanged across 2.x–5.x.\n {\n channelName: 'cronDecorator',\n module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/cron.decorator.js' },\n functionQuery: { functionName: 'Cron', kind: 'Sync' },\n },\n {\n channelName: 'intervalDecorator',\n module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/interval.decorator.js' },\n functionQuery: { functionName: 'Interval', kind: 'Sync' },\n },\n {\n channelName: 'timeoutDecorator',\n module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/timeout.decorator.js' },\n functionQuery: { functionName: 'Timeout', kind: 'Sync' },\n },\n {\n // @nestjs/event-emitter @OnEvent:\n // `const OnEvent = (event, options) => {\n // const decoratorFactory = (t, k, d) => {...}; return decoratorFactory;\n // }`\n // `OnEvent` is an arrow assigned to a const, so `expressionName`. `end`\n // reassigns `data.result` to wrap the returned decorator, which rewrites\n // the handler to open an `event.nestjs` span.\n // Mirrors `SentryNestEventInstrumentation`; the `const OnEvent = (...) =>`\n // shape is unchanged across 2.x–3.x.\n channelName: 'onEventDecorator',\n module: {\n name: '@nestjs/event-emitter',\n versionRange: '>=2.0.0',\n filePath: 'dist/decorators/on-event.decorator.js',\n },\n functionQuery: { expressionName: 'OnEvent', kind: 'Sync' },\n },\n {\n // @nestjs/bullmq @Processor:\n // `function Processor(...) { return (target) => {...}; }`\n // The factory arg carries the queue name, so we match the factory and\n // reassign `data.result` in `end` to wrap the returned class decorator\n // (which patches `target.prototype.process`).\n // Mirrors `SentryNestBullMQInstrumentation`; the `function Processor(...)`\n // declaration is unchanged across\n // 10.x–11.x.\n channelName: 'processorDecorator',\n module: {\n name: '@nestjs/bullmq',\n versionRange: '>=10.0.0',\n filePath: 'dist/decorators/processor.decorator.js',\n },\n functionQuery: { functionName: 'Processor', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const nestjsChannels = {\n NESTJS_APP_CREATION: 'orchestrion:@nestjs/core:nestFactoryCreate',\n NESTJS_ROUTER_CONTEXT: 'orchestrion:@nestjs/core:routerExecutionContextCreate',\n NESTJS_INJECTABLE: 'orchestrion:@nestjs/common:injectableDecorator',\n NESTJS_CATCH: 'orchestrion:@nestjs/common:catchDecorator',\n NESTJS_SCHEDULE_CRON: 'orchestrion:@nestjs/schedule:cronDecorator',\n NESTJS_SCHEDULE_INTERVAL: 'orchestrion:@nestjs/schedule:intervalDecorator',\n NESTJS_SCHEDULE_TIMEOUT: 'orchestrion:@nestjs/schedule:timeoutDecorator',\n NESTJS_ONEVENT: 'orchestrion:@nestjs/event-emitter:onEventDecorator',\n NESTJS_PROCESSOR: 'orchestrion:@nestjs/bullmq:processorDecorator',\n} as const;\n"],"names":[],"mappings":";;AAUA,SAAS,wBAAwB,MAAA,EAKP;AACxB,EAAA,OAAO,MAAA;AACT;AAYO,MAAM,YAAA,GAAe;AAAA,EAC1B;AAAA,IACE,WAAA,EAAa,mBAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,gBAAgB,YAAA,EAAc,aAAA,EAAe,UAAU,iBAAA,EAAkB;AAAA,IACzF,eAAe,EAAE,SAAA,EAAW,qBAAqB,UAAA,EAAY,QAAA,EAAU,MAAM,OAAA;AAAQ,GACvF;AAAA,EACA;AAAA,IACE,WAAA,EAAa,8BAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,gBAAgB,YAAA,EAAc,aAAA,EAAe,UAAU,oCAAA,EAAqC;AAAA,IAC5G,eAAe,EAAE,SAAA,EAAW,0BAA0B,UAAA,EAAY,QAAA,EAAU,MA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C;AAAA,IAC9G,aAAA,EAAe,EAAE,YAAA,EAAc,SAAA,EAAW,MAAM,MAAA;AAAO,GACzD;AAAA,EACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAUE,WAAA,EAAa,kBAAA;AAAA,IACb,MAAA,EAAQ;AAAA,MACN,IAAA,EAAM,uBAAA;AAAA,MACN,YAAA,EAAc,SAAA;AAAA,MACd,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,aAAA,EAAe,EAAE,cAAA,EAAgB,SAAA,EAAW,MAAM,MAAA;AAAO,GAC3D;AAAA,EACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASE,WAAA,EAAa,oBAAA;AAAA,IACb,MAAA,EAAQ;AAAA,MACN,IAAA,EAAM,gBAAA;AAAA,MACN,YAAA,EAAc,UAAA;AAAA,MACd,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,aAAA,EAAe,EAAE,YAAA,EAAc,WAAA,EAAa,MAAM,MAAA;AAAO;AAE7D;AAEO,MAAM,cAAA,GAAiB;AAAA,EAC5B,mBAAA,EAAqB,4CAAA;AAAA,EACrB,qBAAA,EAAuB,uDAAA;AAAA,EACvB,iBAAA,EAAmB,gDAAA;AAAA,EACnB,YAAA,EAAc,2CAAA;AAAA,EACd,oBAAA,EAAsB,4CAAA;AAAA,EACtB,wBAAA,EAA0B,gDAAA;AAAA,EAC1B,uBAAA,EAAyB,+CAAA;AAAA,EACzB,cAAA,EAAgB,oDAAA;AAAA,EAChB,gBAAA,EAAkB;AACpB;;;;;"}
1
+ {"version":3,"file":"nestjs.js","sources":["../../../../src/orchestrion/config/nestjs.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\n/**\n * Wrap an instrumentation that targets nodes via a raw esquery selector\n * (`NstQuery`) rather than the structured `functionQuery`. Needed when the\n * target can't be named, e.g. the anonymous arrow a decorator factory returns\n * The transformer supports `astQuery` at runtime (it takes precedence over\n * `functionQuery`, which then only supplies `kind`), but it isn't in the\n * published `InstrumentationConfig` type. Hence the cast.\n */\nfunction astQueryInstrumentation(config: {\n channelName: string;\n module: InstrumentationConfig['module'];\n astQuery: string;\n functionQuery: { kind: 'Sync' | 'Async' | 'Callback' | 'Auto' };\n}): InstrumentationConfig {\n return config as unknown as InstrumentationConfig;\n}\n\n/**\n * NestJS is different from the other instrumentations here. It's a standalone\n * metaframework SDK (`@sentry/nestjs`), so its channel LISTENER lives in that\n * package rather than in `server-utils`. Only the code-transform config (and\n * the channel names below) live here, so `@nestjs/*` is transformed whenever\n * orchestrion is enabled, same as every other library.\n *\n * `@sentry/nestjs` imports {@link nestjsChannels} to subscribe, and picks the\n * channel-vs-OTel path based on the global injection flag.\n */\nexport const nestjsConfig = [\n {\n channelName: 'nestFactoryCreate',\n module: { name: '@nestjs/core', versionRange: '>=8.0.0 <12', filePath: 'nest-factory.js' },\n functionQuery: { className: 'NestFactoryStatic', methodName: 'create', kind: 'Async' },\n },\n {\n channelName: 'routerExecutionContextCreate',\n module: { name: '@nestjs/core', versionRange: '>=8.0.0 <12', filePath: 'router/router-execution-context.js' },\n functionQuery: { className: 'RouterExecutionContext', methodName: 'create', kind: 'Sync' },\n },\n astQueryInstrumentation({\n // `@nestjs/common/decorators/core/injectable.decorator.js`:\n // `function Injectable(options) { return (target) => { ... }; }`\n // The inner decorator arrow is anonymous + returned, so only a raw\n // `astQuery` can target it. The subscriber's `start` receives the\n // decorated class as `arguments[0]` and patches its prototype\n // use/canActivate/transform/intercept methods, reproducing the\n // vendored `SentryNestInstrumentation` middleware/guard/pipe/interceptor\n // spans. No span on the decorator itself, so `kind: 'Sync'`.\n channelName: 'injectableDecorator',\n module: {\n name: '@nestjs/common',\n versionRange: '>=8.0.0 <12',\n filePath: 'decorators/core/injectable.decorator.js',\n },\n astQuery: 'FunctionDeclaration[id.name=\"Injectable\"] ReturnStatement > ArrowFunctionExpression',\n functionQuery: { kind: 'Sync' },\n }),\n astQueryInstrumentation({\n // `@nestjs/common/decorators/core/catch.decorator.js`:\n // `function Catch(...exceptions) { return (target) => { ... }; }`\n // Same anonymous-returned-arrow shape as `Injectable`. The subscriber's\n // `start` patches the exception filter's prototype `catch` method to\n // open an `exception_filter` span.\n //\n // Mirrors the vendored `SentryNestInstrumentation` `@Catch` wrap.\n channelName: 'catchDecorator',\n module: { name: '@nestjs/common', versionRange: '>=8.0.0 <12', filePath: 'decorators/core/catch.decorator.js' },\n astQuery: 'FunctionDeclaration[id.name=\"Catch\"] ReturnStatement > ArrowFunctionExpression',\n functionQuery: { kind: 'Sync' },\n }),\n // @nestjs/schedule @Cron/@Interval/@Timeout:\n // `function Cron(...) { return applyDecorators(...); }`\n // The returned decorator has no inline arrow to target, so we match the\n // factory function and reassign `data.result` in `end` to wrap the\n // decorator it returns (which rewrites the user handler `descriptor.value`\n // with isolation-scope + error capture).\n // Mirrors `SentryNestScheduleInstrumentation`, whose supported range we\n // match so opting in doesn't drop coverage the OTel path had. The compiled\n // `function Cron(...)` declaration is unchanged across 2.x–5.x.\n {\n channelName: 'cronDecorator',\n module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/cron.decorator.js' },\n functionQuery: { functionName: 'Cron', kind: 'Sync' },\n },\n {\n channelName: 'intervalDecorator',\n module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/interval.decorator.js' },\n functionQuery: { functionName: 'Interval', kind: 'Sync' },\n },\n {\n channelName: 'timeoutDecorator',\n module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/timeout.decorator.js' },\n functionQuery: { functionName: 'Timeout', kind: 'Sync' },\n },\n {\n // @nestjs/event-emitter @OnEvent:\n // `const OnEvent = (event, options) => {\n // const decoratorFactory = (t, k, d) => {...}; return decoratorFactory;\n // }`\n // `OnEvent` is an arrow assigned to a const, so `expressionName`. `end`\n // reassigns `data.result` to wrap the returned decorator, which rewrites\n // the handler to open an `event.nestjs` span.\n // Mirrors `SentryNestEventInstrumentation`; the `const OnEvent = (...) =>`\n // shape is unchanged across 2.x–3.x.\n channelName: 'onEventDecorator',\n module: {\n name: '@nestjs/event-emitter',\n versionRange: '>=2.0.0',\n filePath: 'dist/decorators/on-event.decorator.js',\n },\n functionQuery: { expressionName: 'OnEvent', kind: 'Sync' },\n },\n {\n // @nestjs/bullmq @Processor:\n // `function Processor(...) { return (target) => {...}; }`\n // The factory arg carries the queue name, so we match the factory and\n // reassign `data.result` in `end` to wrap the returned class decorator\n // (which patches `target.prototype.process`).\n // Mirrors `SentryNestBullMQInstrumentation`; the `function Processor(...)`\n // declaration is unchanged across\n // 10.x–11.x.\n channelName: 'processorDecorator',\n module: {\n name: '@nestjs/bullmq',\n versionRange: '>=10.0.0',\n filePath: 'dist/decorators/processor.decorator.js',\n },\n functionQuery: { functionName: 'Processor', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const nestjsChannels = {\n NESTJS_APP_CREATION: 'orchestrion:@nestjs/core:nestFactoryCreate',\n NESTJS_ROUTER_CONTEXT: 'orchestrion:@nestjs/core:routerExecutionContextCreate',\n NESTJS_INJECTABLE: 'orchestrion:@nestjs/common:injectableDecorator',\n NESTJS_CATCH: 'orchestrion:@nestjs/common:catchDecorator',\n NESTJS_SCHEDULE_CRON: 'orchestrion:@nestjs/schedule:cronDecorator',\n NESTJS_SCHEDULE_INTERVAL: 'orchestrion:@nestjs/schedule:intervalDecorator',\n NESTJS_SCHEDULE_TIMEOUT: 'orchestrion:@nestjs/schedule:timeoutDecorator',\n NESTJS_ONEVENT: 'orchestrion:@nestjs/event-emitter:onEventDecorator',\n NESTJS_PROCESSOR: 'orchestrion:@nestjs/bullmq:processorDecorator',\n} as const;\n"],"names":[],"mappings":";;AAUA,SAAS,wBAAwB,MAAA,EAKP;AACxB,EAAA,OAAO,MAAA;AACT;AAYO,MAAM,YAAA,GAAe;AAAA,EAC1B;AAAA,IACE,WAAA,EAAa,mBAAA;AAAA,IACb,QAA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B,wBAAA,EAA0B,gDAAA;AAAA,EAC1B,uBAAA,EAAyB,+CAAA;AAAA,EACzB,cAAA,EAAgB,oDAAA;AAAA,EAChB,gBAAA,EAAkB;AACpB;;;;;"}
@@ -11,7 +11,7 @@ const openaiConfig = [
11
11
  })),
12
12
  // OpenAI responses API — same `create(body, options)` shape as chat completions.
13
13
  ...["resources/responses/responses.js", "resources/responses/responses.mjs"].map((filePath) => ({
14
- channelName: "responses",
14
+ channelName: "chat",
15
15
  module: { name: "openai", versionRange: ">=4.0.0 <7", filePath },
16
16
  functionQuery: { className: "Responses", methodName: "create", kind: "Auto" }
17
17
  })),
@@ -23,16 +23,16 @@ const openaiConfig = [
23
23
  })),
24
24
  // OpenAI conversations API — same `create(body, options)` shape as chat completions.
25
25
  ...["resources/conversations/conversations.js", "resources/conversations/conversations.mjs"].map((filePath) => ({
26
- channelName: "conversations",
26
+ channelName: "chat",
27
27
  module: { name: "openai", versionRange: ">=4.0.0 <7", filePath },
28
28
  functionQuery: { className: "Conversations", methodName: "create", kind: "Auto" }
29
29
  }))
30
30
  ];
31
31
  const openaiChannels = {
32
+ // Chat completions, the responses API, and the conversations API all report a `chat` operation with
33
+ // identical span handling, so they share one channel.
32
34
  OPENAI_CHAT: "orchestrion:openai:chat",
33
- OPENAI_RESPONSES: "orchestrion:openai:responses",
34
- OPENAI_EMBEDDINGS: "orchestrion:openai:embeddings",
35
- OPENAI_CONVERSATIONS: "orchestrion:openai:conversations"
35
+ OPENAI_EMBEDDINGS: "orchestrion:openai:embeddings"
36
36
  };
37
37
 
38
38
  exports.openaiChannels = openaiChannels;
@@ -1 +1 @@
1
- {"version":3,"file":"openai.js","sources":["../../../../src/orchestrion/config/openai.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\nexport const openaiConfig = [\n // OpenAI chat completions. `Completions.create` returns a thenable `APIPromise` with no callback arg,\n // so `kind: 'Auto'` resolves to `wrapPromise`. openai ships dual CJS/ESM and the matcher compares\n // `filePath` exactly, hence one entry per built file (`.js` for `require`, `.mjs` for `import`).\n ...['resources/chat/completions/completions.js', 'resources/chat/completions/completions.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: 'openai', versionRange: '>=4.0.0 <7', filePath },\n functionQuery: { className: 'Completions', methodName: 'create', kind: 'Auto' as const },\n })),\n // OpenAI responses API — same `create(body, options)` shape as chat completions.\n ...['resources/responses/responses.js', 'resources/responses/responses.mjs'].map(filePath => ({\n channelName: 'responses',\n module: { name: 'openai', versionRange: '>=4.0.0 <7', filePath },\n functionQuery: { className: 'Responses', methodName: 'create', kind: 'Auto' as const },\n })),\n // OpenAI embeddings API — same `create(body, options)` shape as chat completions.\n ...['resources/embeddings.js', 'resources/embeddings.mjs'].map(filePath => ({\n channelName: 'embeddings',\n module: { name: 'openai', versionRange: '>=4.0.0 <7', filePath },\n functionQuery: { className: 'Embeddings', methodName: 'create', kind: 'Auto' as const },\n })),\n // OpenAI conversations API — same `create(body, options)` shape as chat completions.\n ...['resources/conversations/conversations.js', 'resources/conversations/conversations.mjs'].map(filePath => ({\n channelName: 'conversations',\n module: { name: 'openai', versionRange: '>=4.0.0 <7', filePath },\n functionQuery: { className: 'Conversations', methodName: 'create', kind: 'Auto' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const openaiChannels = {\n OPENAI_CHAT: 'orchestrion:openai:chat',\n OPENAI_RESPONSES: 'orchestrion:openai:responses',\n OPENAI_EMBEDDINGS: 'orchestrion:openai:embeddings',\n OPENAI_CONVERSATIONS: 'orchestrion:openai:conversations',\n} as const;\n"],"names":[],"mappings":";;AAEO,MAAM,YAAA,GAAe;AAAA;AAAA;AAAA;AAAA,EAI1B,GAAG,CAAC,2CAAA,EAA6C,4CAA4C,CAAA,CAAE,IAAI,CAAA,QAAA,MAAa;AAAA,IAC9G,WAAA,EAAa,MAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,QAAA,EAAU,YAAA,EAAc,cAAc,QAAA,EAAS;AAAA,IA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esContent":["import type { InstrumentationConfig } from '..';\n\nexport const openaiConfig = [\n // OpenAI chat completions. `Completions.create` returns a thenable `APIPromise` with no callback arg,\n // so `kind: 'Auto'` resolves to `wrapPromise`. openai ships dual CJS/ESM and the matcher compares\n // `filePath` exactly, hence one entry per built file (`.js` for `require`, `.mjs` for `import`).\n ...['resources/chat/completions/completions.js', 'resources/chat/completions/completions.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: 'openai', versionRange: '>=4.0.0 <7', filePath },\n functionQuery: { className: 'Completions', methodName: 'create', kind: 'Auto' as const },\n })),\n // OpenAI responses API — same `create(body, options)` shape as chat completions.\n ...['resources/responses/responses.js', 'resources/responses/responses.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: 'openai', versionRange: '>=4.0.0 <7', filePath },\n functionQuery: { className: 'Responses', methodName: 'create', kind: 'Auto' as const },\n })),\n // OpenAI embeddings API — same `create(body, options)` shape as chat completions.\n ...['resources/embeddings.js', 'resources/embeddings.mjs'].map(filePath => ({\n channelName: 'embeddings',\n module: { name: 'openai', versionRange: '>=4.0.0 <7', filePath },\n functionQuery: { className: 'Embeddings', methodName: 'create', kind: 'Auto' as const },\n })),\n // OpenAI conversations API — same `create(body, options)` shape as chat completions.\n ...['resources/conversations/conversations.js', 'resources/conversations/conversations.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: 'openai', versionRange: '>=4.0.0 <7', filePath },\n functionQuery: { className: 'Conversations', methodName: 'create', kind: 'Auto' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const openaiChannels = {\n // Chat completions, the responses API, and the conversations API all report a `chat` operation with\n // identical span handling, so they share one channel.\n OPENAI_CHAT: 'orchestrion:openai:chat',\n OPENAI_EMBEDDINGS: 'orchestrion:openai:embeddings',\n} as const;\n"],"names":[],"mappings":";;AAEO,MAAM,YAAA,GAAe;AAAA;AAAA;AAAA;AAAA,EAI1B,GAAG,CAAC,2CAAA,EAA6C,4CAA4C,CAAA,CAAE,IAAI,CAA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