@sentry/server-utils 10.64.0 → 10.66.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (520) hide show
  1. package/build/cjs/graphql/graphql-dc-subscriber.js +123 -0
  2. package/build/cjs/graphql/graphql-dc-subscriber.js.map +1 -0
  3. package/build/cjs/graphql/index.js +23 -0
  4. package/build/cjs/graphql/index.js.map +1 -0
  5. package/build/cjs/graphql/utils.js +92 -0
  6. package/build/cjs/graphql/utils.js.map +1 -0
  7. package/build/cjs/index.js +13 -11
  8. package/build/cjs/index.js.map +1 -1
  9. package/build/cjs/integrations/tracing-channel/amqplib.js +420 -0
  10. package/build/cjs/integrations/tracing-channel/amqplib.js.map +1 -0
  11. package/build/cjs/integrations/tracing-channel/dataloader.js +95 -0
  12. package/build/cjs/integrations/tracing-channel/dataloader.js.map +1 -0
  13. package/build/cjs/integrations/tracing-channel/express/index.js +24 -0
  14. package/build/cjs/integrations/tracing-channel/express/index.js.map +1 -0
  15. package/build/cjs/integrations/tracing-channel/express/instrumentation.js +173 -0
  16. package/build/cjs/integrations/tracing-channel/express/instrumentation.js.map +1 -0
  17. package/build/cjs/integrations/tracing-channel/express/route.js +76 -0
  18. package/build/cjs/integrations/tracing-channel/express/route.js.map +1 -0
  19. package/build/cjs/integrations/tracing-channel/fastify/instrumentation.js +1 -1
  20. package/build/cjs/integrations/tracing-channel/fastify/instrumentation.js.map +1 -1
  21. package/build/cjs/integrations/tracing-channel/generic-pool.js +34 -0
  22. package/build/cjs/integrations/tracing-channel/generic-pool.js.map +1 -0
  23. package/build/cjs/integrations/tracing-channel/google-genai.js +96 -0
  24. package/build/cjs/integrations/tracing-channel/google-genai.js.map +1 -0
  25. package/build/cjs/integrations/tracing-channel/graphql/constants.js +26 -0
  26. package/build/cjs/integrations/tracing-channel/graphql/constants.js.map +1 -0
  27. package/build/cjs/integrations/tracing-channel/graphql/index.js +66 -0
  28. package/build/cjs/integrations/tracing-channel/graphql/index.js.map +1 -0
  29. package/build/cjs/integrations/tracing-channel/graphql/resolvers.js +168 -0
  30. package/build/cjs/integrations/tracing-channel/graphql/resolvers.js.map +1 -0
  31. package/build/cjs/integrations/tracing-channel/graphql/spans.js +102 -0
  32. package/build/cjs/integrations/tracing-channel/graphql/spans.js.map +1 -0
  33. package/build/cjs/integrations/tracing-channel/ioredis.js +35 -32
  34. package/build/cjs/integrations/tracing-channel/ioredis.js.map +1 -1
  35. package/build/cjs/integrations/tracing-channel/kafkajs/consumer.js +71 -0
  36. package/build/cjs/integrations/tracing-channel/kafkajs/consumer.js.map +1 -0
  37. package/build/cjs/integrations/tracing-channel/kafkajs/index.js +70 -0
  38. package/build/cjs/integrations/tracing-channel/kafkajs/index.js.map +1 -0
  39. package/build/cjs/integrations/tracing-channel/kafkajs/semconv.js +22 -0
  40. package/build/cjs/integrations/tracing-channel/kafkajs/semconv.js.map +1 -0
  41. package/build/cjs/integrations/tracing-channel/kafkajs/spans.js +119 -0
  42. package/build/cjs/integrations/tracing-channel/kafkajs/spans.js.map +1 -0
  43. package/build/cjs/integrations/tracing-channel/knex.js +188 -0
  44. package/build/cjs/integrations/tracing-channel/knex.js.map +1 -0
  45. package/build/cjs/integrations/tracing-channel/mysql.js +1 -1
  46. package/build/cjs/integrations/tracing-channel/mysql.js.map +1 -1
  47. package/build/cjs/integrations/tracing-channel/mysql2.js +83 -0
  48. package/build/cjs/integrations/tracing-channel/mysql2.js.map +1 -0
  49. package/build/cjs/integrations/tracing-channel/openai.js.map +1 -1
  50. package/build/cjs/integrations/tracing-channel/postgres-js.js +191 -0
  51. package/build/cjs/integrations/tracing-channel/postgres-js.js.map +1 -0
  52. package/build/cjs/integrations/tracing-channel/postgres.js +5 -5
  53. package/build/cjs/integrations/tracing-channel/postgres.js.map +1 -1
  54. package/build/cjs/integrations/tracing-channel/redis.js +227 -0
  55. package/build/cjs/integrations/tracing-channel/redis.js.map +1 -0
  56. package/build/cjs/integrations/tracing-channel/vercel-ai.js +2 -2
  57. package/build/cjs/integrations/tracing-channel/vercel-ai.js.map +1 -1
  58. package/build/cjs/mongoose/mongoose-dc-subscriber.js +1 -1
  59. package/build/cjs/mongoose/mongoose-dc-subscriber.js.map +1 -1
  60. package/build/cjs/mysql2/index.js +23 -0
  61. package/build/cjs/mysql2/index.js.map +1 -0
  62. package/build/cjs/mysql2/mysql2-dc-subscriber.js +68 -0
  63. package/build/cjs/mysql2/mysql2-dc-subscriber.js.map +1 -0
  64. package/build/cjs/orchestrion/bundler/esbuild.js +11 -0
  65. package/build/cjs/orchestrion/bundler/esbuild.js.map +1 -0
  66. package/build/cjs/orchestrion/bundler/options.js +15 -0
  67. package/build/cjs/orchestrion/bundler/options.js.map +1 -0
  68. package/build/cjs/orchestrion/bundler/rollup.js +11 -0
  69. package/build/cjs/orchestrion/bundler/rollup.js.map +1 -0
  70. package/build/cjs/orchestrion/bundler/vite.js +4 -21
  71. package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
  72. package/build/cjs/orchestrion/bundler/webpack.js +32 -0
  73. package/build/cjs/orchestrion/bundler/webpack.js.map +1 -0
  74. package/build/cjs/orchestrion/channels.js +53 -11
  75. package/build/cjs/orchestrion/channels.js.map +1 -1
  76. package/build/cjs/orchestrion/config/amqplib.js +81 -0
  77. package/build/cjs/orchestrion/config/amqplib.js.map +1 -0
  78. package/build/cjs/orchestrion/config/dataloader.js +53 -0
  79. package/build/cjs/orchestrion/config/dataloader.js.map +1 -0
  80. package/build/cjs/orchestrion/config/express.js +76 -0
  81. package/build/cjs/orchestrion/config/express.js.map +1 -0
  82. package/build/cjs/orchestrion/config/firebase.js +8 -0
  83. package/build/cjs/orchestrion/config/firebase.js.map +1 -0
  84. package/build/cjs/orchestrion/config/generic-pool.js +21 -0
  85. package/build/cjs/orchestrion/config/generic-pool.js.map +1 -0
  86. package/build/cjs/orchestrion/config/google-genai.js +38 -0
  87. package/build/cjs/orchestrion/config/google-genai.js.map +1 -0
  88. package/build/cjs/orchestrion/config/graphql.js +28 -0
  89. package/build/cjs/orchestrion/config/graphql.js.map +1 -0
  90. package/build/cjs/orchestrion/config/index.js +59 -14
  91. package/build/cjs/orchestrion/config/index.js.map +1 -1
  92. package/build/cjs/orchestrion/config/kafkajs.js +30 -0
  93. package/build/cjs/orchestrion/config/kafkajs.js.map +1 -0
  94. package/build/cjs/orchestrion/config/knex.js +43 -0
  95. package/build/cjs/orchestrion/config/knex.js.map +1 -0
  96. package/build/cjs/orchestrion/config/langchain.js +8 -0
  97. package/build/cjs/orchestrion/config/langchain.js.map +1 -0
  98. package/build/cjs/orchestrion/config/langgraph.js +8 -0
  99. package/build/cjs/orchestrion/config/langgraph.js.map +1 -0
  100. package/build/cjs/orchestrion/config/mongodb.js +8 -0
  101. package/build/cjs/orchestrion/config/mongodb.js.map +1 -0
  102. package/build/cjs/orchestrion/config/mongoose.js +8 -0
  103. package/build/cjs/orchestrion/config/mongoose.js.map +1 -0
  104. package/build/cjs/orchestrion/config/mysql2.js +32 -0
  105. package/build/cjs/orchestrion/config/mysql2.js.map +1 -0
  106. package/build/cjs/orchestrion/config/nestjs.js +122 -0
  107. package/build/cjs/orchestrion/config/nestjs.js.map +1 -0
  108. package/build/cjs/orchestrion/config/postgres.js +50 -0
  109. package/build/cjs/orchestrion/config/postgres.js.map +1 -0
  110. package/build/cjs/orchestrion/config/prisma.js +8 -0
  111. package/build/cjs/orchestrion/config/prisma.js.map +1 -0
  112. package/build/cjs/orchestrion/config/react-router.js +8 -0
  113. package/build/cjs/orchestrion/config/react-router.js.map +1 -0
  114. package/build/cjs/orchestrion/config/redis.js +76 -0
  115. package/build/cjs/orchestrion/config/redis.js.map +1 -0
  116. package/build/cjs/orchestrion/config/remix.js +8 -0
  117. package/build/cjs/orchestrion/config/remix.js.map +1 -0
  118. package/build/cjs/orchestrion/config/tedious.js +8 -0
  119. package/build/cjs/orchestrion/config/tedious.js.map +1 -0
  120. package/build/cjs/orchestrion/config/vercel-ai.js +18 -14
  121. package/build/cjs/orchestrion/config/vercel-ai.js.map +1 -1
  122. package/build/cjs/orchestrion/detect.js +12 -11
  123. package/build/cjs/orchestrion/detect.js.map +1 -1
  124. package/build/cjs/orchestrion/index.js +33 -1
  125. package/build/cjs/orchestrion/index.js.map +1 -1
  126. package/build/cjs/orchestrion/runtime/register.js +25 -14
  127. package/build/cjs/orchestrion/runtime/register.js.map +1 -1
  128. package/build/cjs/prisma/global.js +14 -0
  129. package/build/cjs/prisma/global.js.map +1 -0
  130. package/build/cjs/prisma/index.js +27 -0
  131. package/build/cjs/prisma/index.js.map +1 -0
  132. package/build/cjs/prisma/tracing-helper.js +211 -0
  133. package/build/cjs/prisma/tracing-helper.js.map +1 -0
  134. package/build/cjs/redis/index.js +23 -0
  135. package/build/cjs/redis/index.js.map +1 -0
  136. package/build/cjs/redis/redis-dc-subscriber.js +23 -35
  137. package/build/cjs/redis/redis-dc-subscriber.js.map +1 -1
  138. package/build/cjs/tracing-channel.js +7 -6
  139. package/build/cjs/tracing-channel.js.map +1 -1
  140. package/build/cjs/vercel-ai/util.js +112 -0
  141. package/build/cjs/vercel-ai/util.js.map +1 -0
  142. package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js +138 -74
  143. package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  144. package/build/cjs/vercel-ai/{vercel-ai-orchestrion-v6-subscriber.js → vercel-ai-orchestrion-subscriber.js} +153 -23
  145. package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -0
  146. package/build/esm/graphql/graphql-dc-subscriber.js +116 -0
  147. package/build/esm/graphql/graphql-dc-subscriber.js.map +1 -0
  148. package/build/esm/graphql/index.js +21 -0
  149. package/build/esm/graphql/index.js.map +1 -0
  150. package/build/esm/graphql/utils.js +87 -0
  151. package/build/esm/graphql/utils.js.map +1 -0
  152. package/build/esm/index.js +4 -1
  153. package/build/esm/index.js.map +1 -1
  154. package/build/esm/integrations/tracing-channel/amqplib.js +418 -0
  155. package/build/esm/integrations/tracing-channel/amqplib.js.map +1 -0
  156. package/build/esm/integrations/tracing-channel/anthropic.js +1 -1
  157. package/build/esm/integrations/tracing-channel/dataloader.js +93 -0
  158. package/build/esm/integrations/tracing-channel/dataloader.js.map +1 -0
  159. package/build/esm/integrations/tracing-channel/express/index.js +22 -0
  160. package/build/esm/integrations/tracing-channel/express/index.js.map +1 -0
  161. package/build/esm/integrations/tracing-channel/express/instrumentation.js +171 -0
  162. package/build/esm/integrations/tracing-channel/express/instrumentation.js.map +1 -0
  163. package/build/esm/integrations/tracing-channel/express/route.js +68 -0
  164. package/build/esm/integrations/tracing-channel/express/route.js.map +1 -0
  165. package/build/esm/integrations/tracing-channel/fastify/instrumentation.js +2 -2
  166. package/build/esm/integrations/tracing-channel/fastify/instrumentation.js.map +1 -1
  167. package/build/esm/integrations/tracing-channel/generic-pool.js +32 -0
  168. package/build/esm/integrations/tracing-channel/generic-pool.js.map +1 -0
  169. package/build/esm/integrations/tracing-channel/google-genai.js +94 -0
  170. package/build/esm/integrations/tracing-channel/google-genai.js.map +1 -0
  171. package/build/esm/integrations/tracing-channel/graphql/constants.js +14 -0
  172. package/build/esm/integrations/tracing-channel/graphql/constants.js.map +1 -0
  173. package/build/esm/integrations/tracing-channel/graphql/index.js +63 -0
  174. package/build/esm/integrations/tracing-channel/graphql/index.js.map +1 -0
  175. package/build/esm/integrations/tracing-channel/graphql/resolvers.js +164 -0
  176. package/build/esm/integrations/tracing-channel/graphql/resolvers.js.map +1 -0
  177. package/build/esm/integrations/tracing-channel/graphql/spans.js +96 -0
  178. package/build/esm/integrations/tracing-channel/graphql/spans.js.map +1 -0
  179. package/build/esm/integrations/tracing-channel/ioredis.js +36 -34
  180. package/build/esm/integrations/tracing-channel/ioredis.js.map +1 -1
  181. package/build/esm/integrations/tracing-channel/kafkajs/consumer.js +67 -0
  182. package/build/esm/integrations/tracing-channel/kafkajs/consumer.js.map +1 -0
  183. package/build/esm/integrations/tracing-channel/kafkajs/index.js +68 -0
  184. package/build/esm/integrations/tracing-channel/kafkajs/index.js.map +1 -0
  185. package/build/esm/integrations/tracing-channel/kafkajs/semconv.js +12 -0
  186. package/build/esm/integrations/tracing-channel/kafkajs/semconv.js.map +1 -0
  187. package/build/esm/integrations/tracing-channel/kafkajs/spans.js +112 -0
  188. package/build/esm/integrations/tracing-channel/kafkajs/spans.js.map +1 -0
  189. package/build/esm/integrations/tracing-channel/knex.js +186 -0
  190. package/build/esm/integrations/tracing-channel/knex.js.map +1 -0
  191. package/build/esm/integrations/tracing-channel/mysql.js +2 -2
  192. package/build/esm/integrations/tracing-channel/mysql.js.map +1 -1
  193. package/build/esm/integrations/tracing-channel/mysql2.js +81 -0
  194. package/build/esm/integrations/tracing-channel/mysql2.js.map +1 -0
  195. package/build/esm/integrations/tracing-channel/openai.js +1 -1
  196. package/build/esm/integrations/tracing-channel/openai.js.map +1 -1
  197. package/build/esm/integrations/tracing-channel/postgres-js.js +189 -0
  198. package/build/esm/integrations/tracing-channel/postgres-js.js.map +1 -0
  199. package/build/esm/integrations/tracing-channel/postgres.js +6 -6
  200. package/build/esm/integrations/tracing-channel/postgres.js.map +1 -1
  201. package/build/esm/integrations/tracing-channel/redis.js +225 -0
  202. package/build/esm/integrations/tracing-channel/redis.js.map +1 -0
  203. package/build/esm/integrations/tracing-channel/vercel-ai.js +1 -1
  204. package/build/esm/integrations/tracing-channel/vercel-ai.js.map +1 -1
  205. package/build/esm/mongoose/mongoose-dc-subscriber.js +2 -2
  206. package/build/esm/mongoose/mongoose-dc-subscriber.js.map +1 -1
  207. package/build/esm/mysql2/index.js +21 -0
  208. package/build/esm/mysql2/index.js.map +1 -0
  209. package/build/esm/mysql2/mysql2-dc-subscriber.js +62 -0
  210. package/build/esm/mysql2/mysql2-dc-subscriber.js.map +1 -0
  211. package/build/esm/orchestrion/bundler/esbuild.js +9 -0
  212. package/build/esm/orchestrion/bundler/esbuild.js.map +1 -0
  213. package/build/esm/orchestrion/bundler/options.js +13 -0
  214. package/build/esm/orchestrion/bundler/options.js.map +1 -0
  215. package/build/esm/orchestrion/bundler/rollup.js +9 -0
  216. package/build/esm/orchestrion/bundler/rollup.js.map +1 -0
  217. package/build/esm/orchestrion/bundler/vite.js +5 -22
  218. package/build/esm/orchestrion/bundler/vite.js.map +1 -1
  219. package/build/esm/orchestrion/bundler/webpack.js +27 -0
  220. package/build/esm/orchestrion/bundler/webpack.js.map +1 -0
  221. package/build/esm/orchestrion/channels.js +53 -11
  222. package/build/esm/orchestrion/channels.js.map +1 -1
  223. package/build/esm/orchestrion/config/amqplib.js +78 -0
  224. package/build/esm/orchestrion/config/amqplib.js.map +1 -0
  225. package/build/esm/orchestrion/config/dataloader.js +50 -0
  226. package/build/esm/orchestrion/config/dataloader.js.map +1 -0
  227. package/build/esm/orchestrion/config/express.js +73 -0
  228. package/build/esm/orchestrion/config/express.js.map +1 -0
  229. package/build/esm/orchestrion/config/firebase.js +5 -0
  230. package/build/esm/orchestrion/config/firebase.js.map +1 -0
  231. package/build/esm/orchestrion/config/generic-pool.js +18 -0
  232. package/build/esm/orchestrion/config/generic-pool.js.map +1 -0
  233. package/build/esm/orchestrion/config/google-genai.js +35 -0
  234. package/build/esm/orchestrion/config/google-genai.js.map +1 -0
  235. package/build/esm/orchestrion/config/graphql.js +25 -0
  236. package/build/esm/orchestrion/config/graphql.js.map +1 -0
  237. package/build/esm/orchestrion/config/index.js +59 -15
  238. package/build/esm/orchestrion/config/index.js.map +1 -1
  239. package/build/esm/orchestrion/config/kafkajs.js +27 -0
  240. package/build/esm/orchestrion/config/kafkajs.js.map +1 -0
  241. package/build/esm/orchestrion/config/knex.js +40 -0
  242. package/build/esm/orchestrion/config/knex.js.map +1 -0
  243. package/build/esm/orchestrion/config/langchain.js +5 -0
  244. package/build/esm/orchestrion/config/langchain.js.map +1 -0
  245. package/build/esm/orchestrion/config/langgraph.js +5 -0
  246. package/build/esm/orchestrion/config/langgraph.js.map +1 -0
  247. package/build/esm/orchestrion/config/mongodb.js +5 -0
  248. package/build/esm/orchestrion/config/mongodb.js.map +1 -0
  249. package/build/esm/orchestrion/config/mongoose.js +5 -0
  250. package/build/esm/orchestrion/config/mongoose.js.map +1 -0
  251. package/build/esm/orchestrion/config/mysql2.js +29 -0
  252. package/build/esm/orchestrion/config/mysql2.js.map +1 -0
  253. package/build/esm/orchestrion/config/nestjs.js +119 -0
  254. package/build/esm/orchestrion/config/nestjs.js.map +1 -0
  255. package/build/esm/orchestrion/config/postgres.js +47 -0
  256. package/build/esm/orchestrion/config/postgres.js.map +1 -0
  257. package/build/esm/orchestrion/config/prisma.js +5 -0
  258. package/build/esm/orchestrion/config/prisma.js.map +1 -0
  259. package/build/esm/orchestrion/config/react-router.js +5 -0
  260. package/build/esm/orchestrion/config/react-router.js.map +1 -0
  261. package/build/esm/orchestrion/config/redis.js +73 -0
  262. package/build/esm/orchestrion/config/redis.js.map +1 -0
  263. package/build/esm/orchestrion/config/remix.js +5 -0
  264. package/build/esm/orchestrion/config/remix.js.map +1 -0
  265. package/build/esm/orchestrion/config/tedious.js +5 -0
  266. package/build/esm/orchestrion/config/tedious.js.map +1 -0
  267. package/build/esm/orchestrion/config/vercel-ai.js +18 -14
  268. package/build/esm/orchestrion/config/vercel-ai.js.map +1 -1
  269. package/build/esm/orchestrion/detect.js +13 -12
  270. package/build/esm/orchestrion/detect.js.map +1 -1
  271. package/build/esm/orchestrion/index.js +23 -2
  272. package/build/esm/orchestrion/index.js.map +1 -1
  273. package/build/esm/orchestrion/runtime/register.js +27 -16
  274. package/build/esm/orchestrion/runtime/register.js.map +1 -1
  275. package/build/esm/package.json +1 -1
  276. package/build/esm/prisma/global.js +12 -0
  277. package/build/esm/prisma/global.js.map +1 -0
  278. package/build/esm/prisma/index.js +24 -0
  279. package/build/esm/prisma/index.js.map +1 -0
  280. package/build/esm/prisma/tracing-helper.js +209 -0
  281. package/build/esm/prisma/tracing-helper.js.map +1 -0
  282. package/build/esm/redis/index.js +21 -0
  283. package/build/esm/redis/index.js.map +1 -0
  284. package/build/esm/redis/redis-dc-subscriber.js +24 -36
  285. package/build/esm/redis/redis-dc-subscriber.js.map +1 -1
  286. package/build/esm/tracing-channel.js +8 -7
  287. package/build/esm/tracing-channel.js.map +1 -1
  288. package/build/esm/vercel-ai/util.js +106 -0
  289. package/build/esm/vercel-ai/util.js.map +1 -0
  290. package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js +121 -59
  291. package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  292. package/build/esm/vercel-ai/{vercel-ai-orchestrion-v6-subscriber.js → vercel-ai-orchestrion-subscriber.js} +153 -23
  293. package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -0
  294. package/build/types/graphql/graphql-dc-subscriber.d.ts +94 -0
  295. package/build/types/graphql/graphql-dc-subscriber.d.ts.map +1 -0
  296. package/build/types/graphql/index.d.ts +12 -0
  297. package/build/types/graphql/index.d.ts.map +1 -0
  298. package/build/types/graphql/utils.d.ts +36 -0
  299. package/build/types/graphql/utils.d.ts.map +1 -0
  300. package/build/types/index.d.ts +6 -2
  301. package/build/types/index.d.ts.map +1 -1
  302. package/build/types/integrations/tracing-channel/amqplib.d.ts +11 -0
  303. package/build/types/integrations/tracing-channel/amqplib.d.ts.map +1 -0
  304. package/build/types/integrations/tracing-channel/dataloader.d.ts +11 -0
  305. package/build/types/integrations/tracing-channel/dataloader.d.ts.map +1 -0
  306. package/build/types/integrations/tracing-channel/express/index.d.ts +18 -0
  307. package/build/types/integrations/tracing-channel/express/index.d.ts.map +1 -0
  308. package/build/types/integrations/tracing-channel/express/instrumentation.d.ts +4 -0
  309. package/build/types/integrations/tracing-channel/express/instrumentation.d.ts.map +1 -0
  310. package/build/types/integrations/tracing-channel/express/route.d.ts +28 -0
  311. package/build/types/integrations/tracing-channel/express/route.d.ts.map +1 -0
  312. package/build/types/integrations/tracing-channel/express/types.d.ts +64 -0
  313. package/build/types/integrations/tracing-channel/express/types.d.ts.map +1 -0
  314. package/build/types/integrations/tracing-channel/fastify/instrumentation.d.ts.map +1 -1
  315. package/build/types/integrations/tracing-channel/generic-pool.d.ts +10 -0
  316. package/build/types/integrations/tracing-channel/generic-pool.d.ts.map +1 -0
  317. package/build/types/integrations/tracing-channel/google-genai.d.ts +12 -0
  318. package/build/types/integrations/tracing-channel/google-genai.d.ts.map +1 -0
  319. package/build/types/integrations/tracing-channel/graphql/constants.d.ts +12 -0
  320. package/build/types/integrations/tracing-channel/graphql/constants.d.ts.map +1 -0
  321. package/build/types/integrations/tracing-channel/graphql/graphql-types.d.ts +135 -0
  322. package/build/types/integrations/tracing-channel/graphql/graphql-types.d.ts.map +1 -0
  323. package/build/types/integrations/tracing-channel/graphql/index.d.ts +28 -0
  324. package/build/types/integrations/tracing-channel/graphql/index.d.ts.map +1 -0
  325. package/build/types/integrations/tracing-channel/graphql/resolvers.d.ts +13 -0
  326. package/build/types/integrations/tracing-channel/graphql/resolvers.d.ts.map +1 -0
  327. package/build/types/integrations/tracing-channel/graphql/spans.d.ts +17 -0
  328. package/build/types/integrations/tracing-channel/graphql/spans.d.ts.map +1 -0
  329. package/build/types/integrations/tracing-channel/graphql/types.d.ts +25 -0
  330. package/build/types/integrations/tracing-channel/graphql/types.d.ts.map +1 -0
  331. package/build/types/integrations/tracing-channel/ioredis.d.ts +20 -0
  332. package/build/types/integrations/tracing-channel/ioredis.d.ts.map +1 -1
  333. package/build/types/integrations/tracing-channel/kafkajs/consumer.d.ts +8 -0
  334. package/build/types/integrations/tracing-channel/kafkajs/consumer.d.ts.map +1 -0
  335. package/build/types/integrations/tracing-channel/kafkajs/index.d.ts +17 -0
  336. package/build/types/integrations/tracing-channel/kafkajs/index.d.ts.map +1 -0
  337. package/build/types/integrations/tracing-channel/kafkajs/semconv.d.ts +10 -0
  338. package/build/types/integrations/tracing-channel/kafkajs/semconv.d.ts.map +1 -0
  339. package/build/types/integrations/tracing-channel/kafkajs/spans.d.ts +38 -0
  340. package/build/types/integrations/tracing-channel/kafkajs/spans.d.ts.map +1 -0
  341. package/build/types/integrations/tracing-channel/kafkajs/types.d.ts +40 -0
  342. package/build/types/integrations/tracing-channel/kafkajs/types.d.ts.map +1 -0
  343. package/build/types/integrations/tracing-channel/knex.d.ts +11 -0
  344. package/build/types/integrations/tracing-channel/knex.d.ts.map +1 -0
  345. package/build/types/integrations/tracing-channel/mysql.d.ts.map +1 -1
  346. package/build/types/integrations/tracing-channel/mysql2.d.ts +15 -0
  347. package/build/types/integrations/tracing-channel/mysql2.d.ts.map +1 -0
  348. package/build/types/integrations/tracing-channel/openai.d.ts.map +1 -1
  349. package/build/types/integrations/tracing-channel/postgres-js.d.ts +26 -0
  350. package/build/types/integrations/tracing-channel/postgres-js.d.ts.map +1 -0
  351. package/build/types/integrations/tracing-channel/postgres.d.ts.map +1 -1
  352. package/build/types/integrations/tracing-channel/redis.d.ts +16 -0
  353. package/build/types/integrations/tracing-channel/redis.d.ts.map +1 -0
  354. package/build/types/integrations/tracing-channel/vercel-ai.d.ts +1 -1
  355. package/build/types/mongoose/mongoose-dc-subscriber.d.ts.map +1 -1
  356. package/build/types/mysql2/index.d.ts +11 -0
  357. package/build/types/mysql2/index.d.ts.map +1 -0
  358. package/build/types/mysql2/mysql2-dc-subscriber.d.ts +59 -0
  359. package/build/types/mysql2/mysql2-dc-subscriber.d.ts.map +1 -0
  360. package/build/types/orchestrion/bundler/esbuild.d.ts +21 -0
  361. package/build/types/orchestrion/bundler/esbuild.d.ts.map +1 -0
  362. package/build/types/orchestrion/bundler/options.d.ts +19 -0
  363. package/build/types/orchestrion/bundler/options.d.ts.map +1 -0
  364. package/build/types/orchestrion/bundler/rollup.d.ts +17 -0
  365. package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -0
  366. package/build/types/orchestrion/bundler/vite.d.ts +4 -17
  367. package/build/types/orchestrion/bundler/vite.d.ts.map +1 -1
  368. package/build/types/orchestrion/bundler/webpack.d.ts +19 -0
  369. package/build/types/orchestrion/bundler/webpack.d.ts.map +1 -0
  370. package/build/types/orchestrion/channels.d.ts +71 -10
  371. package/build/types/orchestrion/channels.d.ts.map +1 -1
  372. package/build/types/orchestrion/config/amqplib.d.ts +66 -0
  373. package/build/types/orchestrion/config/amqplib.d.ts.map +1 -0
  374. package/build/types/orchestrion/config/dataloader.d.ts +46 -0
  375. package/build/types/orchestrion/config/dataloader.d.ts.map +1 -0
  376. package/build/types/orchestrion/config/express.d.ts +32 -0
  377. package/build/types/orchestrion/config/express.d.ts.map +1 -0
  378. package/build/types/orchestrion/config/firebase.d.ts +4 -0
  379. package/build/types/orchestrion/config/firebase.d.ts.map +1 -0
  380. package/build/types/orchestrion/config/generic-pool.d.ts +31 -0
  381. package/build/types/orchestrion/config/generic-pool.d.ts.map +1 -0
  382. package/build/types/orchestrion/config/google-genai.d.ts +30 -0
  383. package/build/types/orchestrion/config/google-genai.d.ts.map +1 -0
  384. package/build/types/orchestrion/config/graphql.d.ts +29 -0
  385. package/build/types/orchestrion/config/graphql.d.ts.map +1 -0
  386. package/build/types/orchestrion/config/index.d.ts +18 -5
  387. package/build/types/orchestrion/config/index.d.ts.map +1 -1
  388. package/build/types/orchestrion/config/kafkajs.d.ts +17 -0
  389. package/build/types/orchestrion/config/kafkajs.d.ts.map +1 -0
  390. package/build/types/orchestrion/config/knex.d.ts +9 -0
  391. package/build/types/orchestrion/config/knex.d.ts.map +1 -0
  392. package/build/types/orchestrion/config/langchain.d.ts +4 -0
  393. package/build/types/orchestrion/config/langchain.d.ts.map +1 -0
  394. package/build/types/orchestrion/config/langgraph.d.ts +4 -0
  395. package/build/types/orchestrion/config/langgraph.d.ts.map +1 -0
  396. package/build/types/orchestrion/config/mongodb.d.ts +4 -0
  397. package/build/types/orchestrion/config/mongodb.d.ts.map +1 -0
  398. package/build/types/orchestrion/config/mongoose.d.ts +4 -0
  399. package/build/types/orchestrion/config/mongoose.d.ts.map +1 -0
  400. package/build/types/orchestrion/config/mysql2.d.ts +18 -0
  401. package/build/types/orchestrion/config/mysql2.d.ts.map +1 -0
  402. package/build/types/orchestrion/config/nestjs.d.ts +24 -0
  403. package/build/types/orchestrion/config/nestjs.d.ts.map +1 -0
  404. package/build/types/orchestrion/config/postgres.d.ts +9 -0
  405. package/build/types/orchestrion/config/postgres.d.ts.map +1 -0
  406. package/build/types/orchestrion/config/prisma.d.ts +4 -0
  407. package/build/types/orchestrion/config/prisma.d.ts.map +1 -0
  408. package/build/types/orchestrion/config/react-router.d.ts +4 -0
  409. package/build/types/orchestrion/config/react-router.d.ts.map +1 -0
  410. package/build/types/orchestrion/config/redis.d.ts +37 -0
  411. package/build/types/orchestrion/config/redis.d.ts.map +1 -0
  412. package/build/types/orchestrion/config/remix.d.ts +4 -0
  413. package/build/types/orchestrion/config/remix.d.ts.map +1 -0
  414. package/build/types/orchestrion/config/tedious.d.ts +4 -0
  415. package/build/types/orchestrion/config/tedious.d.ts.map +1 -0
  416. package/build/types/orchestrion/config/vercel-ai.d.ts +1 -0
  417. package/build/types/orchestrion/config/vercel-ai.d.ts.map +1 -1
  418. package/build/types/orchestrion/detect.d.ts +3 -10
  419. package/build/types/orchestrion/detect.d.ts.map +1 -1
  420. package/build/types/orchestrion/index.d.ts +55 -4
  421. package/build/types/orchestrion/index.d.ts.map +1 -1
  422. package/build/types/orchestrion/runtime/register.d.ts +11 -9
  423. package/build/types/orchestrion/runtime/register.d.ts.map +1 -1
  424. package/build/types/prisma/global.d.ts +5 -0
  425. package/build/types/prisma/global.d.ts.map +1 -0
  426. package/build/types/prisma/index.d.ts +45 -0
  427. package/build/types/prisma/index.d.ts.map +1 -0
  428. package/build/types/prisma/tracing-helper.d.ts +46 -0
  429. package/build/types/prisma/tracing-helper.d.ts.map +1 -0
  430. package/build/types/prisma/types.d.ts +37 -0
  431. package/build/types/prisma/types.d.ts.map +1 -0
  432. package/build/types/redis/index.d.ts +18 -0
  433. package/build/types/redis/index.d.ts.map +1 -0
  434. package/build/types/redis/redis-dc-subscriber.d.ts +0 -5
  435. package/build/types/redis/redis-dc-subscriber.d.ts.map +1 -1
  436. package/build/types/tracing-channel.d.ts +5 -0
  437. package/build/types/tracing-channel.d.ts.map +1 -1
  438. package/build/types/vercel-ai/util.d.ts +30 -0
  439. package/build/types/vercel-ai/util.d.ts.map +1 -0
  440. package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts +6 -2
  441. package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
  442. package/build/types/vercel-ai/{vercel-ai-orchestrion-v6-subscriber.d.ts → vercel-ai-orchestrion-subscriber.d.ts} +1 -1
  443. package/build/types/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts.map +1 -0
  444. package/build/types-ts3.8/graphql/graphql-dc-subscriber.d.ts +94 -0
  445. package/build/types-ts3.8/graphql/index.d.ts +12 -0
  446. package/build/types-ts3.8/graphql/utils.d.ts +36 -0
  447. package/build/types-ts3.8/index.d.ts +6 -2
  448. package/build/types-ts3.8/integrations/tracing-channel/amqplib.d.ts +11 -0
  449. package/build/types-ts3.8/integrations/tracing-channel/dataloader.d.ts +11 -0
  450. package/build/types-ts3.8/integrations/tracing-channel/express/index.d.ts +18 -0
  451. package/build/types-ts3.8/integrations/tracing-channel/express/instrumentation.d.ts +4 -0
  452. package/build/types-ts3.8/integrations/tracing-channel/express/route.d.ts +28 -0
  453. package/build/types-ts3.8/integrations/tracing-channel/express/types.d.ts +64 -0
  454. package/build/types-ts3.8/integrations/tracing-channel/generic-pool.d.ts +10 -0
  455. package/build/types-ts3.8/integrations/tracing-channel/google-genai.d.ts +12 -0
  456. package/build/types-ts3.8/integrations/tracing-channel/graphql/constants.d.ts +12 -0
  457. package/build/types-ts3.8/integrations/tracing-channel/graphql/graphql-types.d.ts +135 -0
  458. package/build/types-ts3.8/integrations/tracing-channel/graphql/index.d.ts +30 -0
  459. package/build/types-ts3.8/integrations/tracing-channel/graphql/resolvers.d.ts +13 -0
  460. package/build/types-ts3.8/integrations/tracing-channel/graphql/spans.d.ts +17 -0
  461. package/build/types-ts3.8/integrations/tracing-channel/graphql/types.d.ts +25 -0
  462. package/build/types-ts3.8/integrations/tracing-channel/ioredis.d.ts +20 -0
  463. package/build/types-ts3.8/integrations/tracing-channel/kafkajs/consumer.d.ts +8 -0
  464. package/build/types-ts3.8/integrations/tracing-channel/kafkajs/index.d.ts +17 -0
  465. package/build/types-ts3.8/integrations/tracing-channel/kafkajs/semconv.d.ts +10 -0
  466. package/build/types-ts3.8/integrations/tracing-channel/kafkajs/spans.d.ts +38 -0
  467. package/build/types-ts3.8/integrations/tracing-channel/kafkajs/types.d.ts +40 -0
  468. package/build/types-ts3.8/integrations/tracing-channel/knex.d.ts +11 -0
  469. package/build/types-ts3.8/integrations/tracing-channel/mysql2.d.ts +15 -0
  470. package/build/types-ts3.8/integrations/tracing-channel/postgres-js.d.ts +26 -0
  471. package/build/types-ts3.8/integrations/tracing-channel/redis.d.ts +16 -0
  472. package/build/types-ts3.8/integrations/tracing-channel/vercel-ai.d.ts +1 -1
  473. package/build/types-ts3.8/mysql2/index.d.ts +11 -0
  474. package/build/types-ts3.8/mysql2/mysql2-dc-subscriber.d.ts +59 -0
  475. package/build/types-ts3.8/orchestrion/bundler/esbuild.d.ts +21 -0
  476. package/build/types-ts3.8/orchestrion/bundler/options.d.ts +19 -0
  477. package/build/types-ts3.8/orchestrion/bundler/rollup.d.ts +17 -0
  478. package/build/types-ts3.8/orchestrion/bundler/vite.d.ts +4 -17
  479. package/build/types-ts3.8/orchestrion/bundler/webpack.d.ts +19 -0
  480. package/build/types-ts3.8/orchestrion/channels.d.ts +71 -10
  481. package/build/types-ts3.8/orchestrion/config/amqplib.d.ts +66 -0
  482. package/build/types-ts3.8/orchestrion/config/dataloader.d.ts +46 -0
  483. package/build/types-ts3.8/orchestrion/config/express.d.ts +32 -0
  484. package/build/types-ts3.8/orchestrion/config/firebase.d.ts +4 -0
  485. package/build/types-ts3.8/orchestrion/config/generic-pool.d.ts +31 -0
  486. package/build/types-ts3.8/orchestrion/config/google-genai.d.ts +30 -0
  487. package/build/types-ts3.8/orchestrion/config/graphql.d.ts +29 -0
  488. package/build/types-ts3.8/orchestrion/config/index.d.ts +18 -5
  489. package/build/types-ts3.8/orchestrion/config/kafkajs.d.ts +17 -0
  490. package/build/types-ts3.8/orchestrion/config/knex.d.ts +9 -0
  491. package/build/types-ts3.8/orchestrion/config/langchain.d.ts +4 -0
  492. package/build/types-ts3.8/orchestrion/config/langgraph.d.ts +4 -0
  493. package/build/types-ts3.8/orchestrion/config/mongodb.d.ts +4 -0
  494. package/build/types-ts3.8/orchestrion/config/mongoose.d.ts +4 -0
  495. package/build/types-ts3.8/orchestrion/config/mysql2.d.ts +18 -0
  496. package/build/types-ts3.8/orchestrion/config/nestjs.d.ts +24 -0
  497. package/build/types-ts3.8/orchestrion/config/postgres.d.ts +9 -0
  498. package/build/types-ts3.8/orchestrion/config/prisma.d.ts +4 -0
  499. package/build/types-ts3.8/orchestrion/config/react-router.d.ts +4 -0
  500. package/build/types-ts3.8/orchestrion/config/redis.d.ts +37 -0
  501. package/build/types-ts3.8/orchestrion/config/remix.d.ts +4 -0
  502. package/build/types-ts3.8/orchestrion/config/tedious.d.ts +4 -0
  503. package/build/types-ts3.8/orchestrion/config/vercel-ai.d.ts +1 -0
  504. package/build/types-ts3.8/orchestrion/detect.d.ts +3 -10
  505. package/build/types-ts3.8/orchestrion/index.d.ts +57 -4
  506. package/build/types-ts3.8/orchestrion/runtime/register.d.ts +11 -9
  507. package/build/types-ts3.8/prisma/global.d.ts +5 -0
  508. package/build/types-ts3.8/prisma/index.d.ts +45 -0
  509. package/build/types-ts3.8/prisma/tracing-helper.d.ts +52 -0
  510. package/build/types-ts3.8/prisma/types.d.ts +40 -0
  511. package/build/types-ts3.8/redis/index.d.ts +18 -0
  512. package/build/types-ts3.8/redis/redis-dc-subscriber.d.ts +0 -5
  513. package/build/types-ts3.8/tracing-channel.d.ts +5 -0
  514. package/build/types-ts3.8/vercel-ai/util.d.ts +30 -0
  515. package/build/types-ts3.8/vercel-ai/vercel-ai-dc-subscriber.d.ts +6 -2
  516. package/build/types-ts3.8/vercel-ai/{vercel-ai-orchestrion-v6-subscriber.d.ts → vercel-ai-orchestrion-subscriber.d.ts} +1 -1
  517. package/package.json +41 -8
  518. package/build/cjs/vercel-ai/vercel-ai-orchestrion-v6-subscriber.js.map +0 -1
  519. package/build/esm/vercel-ai/vercel-ai-orchestrion-v6-subscriber.js.map +0 -1
  520. package/build/types/vercel-ai/vercel-ai-orchestrion-v6-subscriber.d.ts.map +0 -1
@@ -0,0 +1,135 @@
1
+ export type PromiseOrValue<T> = T | Promise<T>;
2
+ export type Maybe<T> = null | undefined | T;
3
+ export interface Location {
4
+ start: number;
5
+ end: number;
6
+ startToken: Token;
7
+ [key: string]: unknown;
8
+ }
9
+ export interface Token {
10
+ kind: string;
11
+ start: number;
12
+ end: number;
13
+ line: number;
14
+ column: number;
15
+ value: string;
16
+ prev: Token | null;
17
+ next: Token | null;
18
+ [key: string]: unknown;
19
+ }
20
+ export interface Source {
21
+ body: string;
22
+ name: string;
23
+ [key: string]: unknown;
24
+ }
25
+ export interface DocumentNode {
26
+ kind: string;
27
+ definitions: ReadonlyArray<DefinitionNode>;
28
+ loc?: Location;
29
+ [key: string]: unknown;
30
+ }
31
+ export interface DefinitionNode {
32
+ kind: string;
33
+ operation?: string;
34
+ name?: {
35
+ kind: string;
36
+ value: string;
37
+ loc?: Location;
38
+ };
39
+ loc?: Location;
40
+ [key: string]: unknown;
41
+ }
42
+ export interface OperationDefinitionNode extends DefinitionNode {
43
+ operation: string;
44
+ name?: {
45
+ kind: string;
46
+ value: string;
47
+ loc?: Location;
48
+ };
49
+ }
50
+ export interface ParseOptions {
51
+ noLocation?: boolean;
52
+ [key: string]: unknown;
53
+ }
54
+ export interface ExecutionArgs {
55
+ schema: GraphQLSchema;
56
+ document: DocumentNode;
57
+ rootValue?: unknown;
58
+ contextValue?: unknown;
59
+ variableValues?: Maybe<Record<string, unknown>>;
60
+ operationName?: Maybe<string>;
61
+ fieldResolver?: Maybe<GraphQLFieldResolver>;
62
+ typeResolver?: Maybe<GraphQLTypeResolver>;
63
+ [key: string]: unknown;
64
+ }
65
+ export interface ExecutionResult {
66
+ errors?: ReadonlyArray<GraphQLError>;
67
+ data?: Record<string, unknown> | null;
68
+ [key: string]: unknown;
69
+ }
70
+ export interface GraphQLError {
71
+ message: string;
72
+ [key: string]: unknown;
73
+ }
74
+ export interface GraphQLSchema {
75
+ getQueryType(): GraphQLObjectType | undefined | null;
76
+ getMutationType(): GraphQLObjectType | undefined | null;
77
+ [key: string]: unknown;
78
+ }
79
+ export interface GraphQLObjectType {
80
+ name: string;
81
+ getFields(): Record<string, GraphQLField | undefined>;
82
+ [key: string]: unknown;
83
+ }
84
+ export interface GraphQLField {
85
+ name: string;
86
+ type: GraphQLOutputType;
87
+ resolve?: GraphQLFieldResolver;
88
+ [key: string]: unknown;
89
+ }
90
+ export type GraphQLOutputType = GraphQLNamedOutputType | GraphQLWrappingType;
91
+ interface GraphQLNamedOutputType {
92
+ name?: string;
93
+ [key: string]: unknown;
94
+ }
95
+ interface GraphQLWrappingType {
96
+ ofType: GraphQLOutputType;
97
+ [key: string]: unknown;
98
+ }
99
+ export interface GraphQLUnionType {
100
+ name: string;
101
+ getTypes(): ReadonlyArray<GraphQLObjectType>;
102
+ [key: string]: unknown;
103
+ }
104
+ export type GraphQLType = GraphQLOutputType | GraphQLUnionType;
105
+ export type GraphQLFieldResolver<TSource = unknown, TContext = unknown, TArgs = unknown> = (source: TSource, args: TArgs, context: TContext, info: GraphQLResolveInfo) => unknown;
106
+ export type GraphQLTypeResolver<TSource = unknown, TContext = unknown> = (value: TSource, context: TContext, info: GraphQLResolveInfo, abstractType: unknown) => unknown;
107
+ export interface GraphQLResolveInfo {
108
+ fieldName: string;
109
+ fieldNodes: ReadonlyArray<{
110
+ kind: string;
111
+ loc?: Location;
112
+ [key: string]: unknown;
113
+ }>;
114
+ returnType: {
115
+ toString(): string;
116
+ [key: string]: unknown;
117
+ };
118
+ parentType: {
119
+ name: string;
120
+ [key: string]: unknown;
121
+ };
122
+ path: GraphQLPath;
123
+ [key: string]: unknown;
124
+ }
125
+ export interface GraphQLPath {
126
+ prev: GraphQLPath | undefined;
127
+ key: string | number;
128
+ typename?: string | undefined;
129
+ }
130
+ export type ValidationRule = unknown;
131
+ export interface TypeInfo {
132
+ [key: string]: unknown;
133
+ }
134
+ export {};
135
+ //# sourceMappingURL=graphql-types.d.ts.map
@@ -0,0 +1,30 @@
1
+ import { GraphqlDiagnosticChannelsOptions } from '../../../graphql/graphql-dc-subscriber';
2
+ /**
3
+ * EXPERIMENTAL — orchestrion-driven graphql integration for graphql v14–16 (v17 publishes native
4
+ * `diagnostics_channel` events handled by `@sentry/server-utils`'s graphql integration instead).
5
+ *
6
+ * Subscribes to the `orchestrion:graphql:{parse,validate,execute}` channels the orchestrion code
7
+ * transform injects into `graphql`'s `language/parser.js`, `validation/validate.js` and
8
+ * `execution/execute.js`, emitting spans identical to the native path. Requires the orchestrion
9
+ * runtime hook or bundler plugin — wire it up via `experimentalUseDiagnosticsChannelInjection()`.
10
+ *
11
+ * @experimental
12
+ */
13
+ export declare const graphqlChannelIntegration: (options?: GraphqlDiagnosticChannelsOptions | undefined) => import("@sentry/core").Integration & {
14
+ name: "Graphql";
15
+ };
16
+ /**
17
+ * The complete graphql diagnostics-channel integration: the native subscriber (graphql v17) composed
18
+ * with the orchestrion subscriber (v14–16), so opting into injection instruments every supported
19
+ * version via diagnostics channels without the OTel patcher. Reuses the OTel `Graphql` name so
20
+ * enabling injection swaps this in for it.
21
+ */
22
+ export declare const graphqlDiagnosticsChannelIntegration: (options?: GraphqlDiagnosticChannelsOptions) => Pick<import("@sentry/core").Integration & {
23
+ name: "Graphql";
24
+ }, Exclude<keyof (import("@sentry/core").Integration & {
25
+ name: "Graphql";
26
+ }), "name" | "setupOnce">> & {
27
+ name: "Graphql";
28
+ setupOnce: () => void | undefined;
29
+ };
30
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { DefinitionNode, DocumentNode, GraphQLFieldResolver, GraphQLObjectType, GraphqlResolvedConfig, Maybe, Patched } from './types';
2
+ /**
3
+ * Walks the query/mutation type tree and swaps each field's `resolve` for a span-creating proxy.
4
+ * Idempotent per type via {@link GRAPHQL_PATCHED_SYMBOL}.
5
+ */
6
+ export declare function wrapFields(type: Maybe<GraphQLObjectType & Patched>, getConfig: () => GraphqlResolvedConfig): void;
7
+ export declare function wrapFieldResolver(getConfig: () => GraphqlResolvedConfig, fieldResolver: Maybe<GraphQLFieldResolver & Patched>, isDefaultResolver?: boolean): GraphQLFieldResolver & Patched;
8
+ /**
9
+ * Returns the operation definition for `operationName` (or the first operation) from a parsed
10
+ * document, or `undefined` for schema documents / when no operation is present.
11
+ */
12
+ export declare function getOperation(document: DocumentNode, operationName?: Maybe<string>): DefinitionNode | undefined;
13
+ //# sourceMappingURL=resolvers.d.ts.map
@@ -0,0 +1,17 @@
1
+ import { Span } from '@sentry/core';
2
+ import { GraphqlResolvedConfig } from './types';
3
+ export declare function startParseSpan(): Span;
4
+ /** `documentAST` is the 2nd argument to `validate(schema, documentAST, …)`. */
5
+ export declare function startValidateSpan(documentAST: unknown): Span;
6
+ /** `result` is validation's return value: a (possibly empty) array of errors. */
7
+ export declare function finalizeValidateSpan(span: Span, result: unknown): void;
8
+ /**
9
+ * Opens the execute span and, unless resolver spans are disabled, swaps the schema's field resolvers
10
+ * (and the default field resolver) for span-creating proxies — mutating the live `arguments` in place
11
+ * so the wrapped `execute` call runs with them. Always returns a span; the caller guards against
12
+ * throws (see `safe` in `index.ts`).
13
+ */
14
+ export declare function startExecuteSpan(argsArray: unknown[], self: unknown, config: GraphqlResolvedConfig, getConfig: () => GraphqlResolvedConfig): Span;
15
+ /** `result` is the settled `ExecutionResult`; GraphQL errors surface on `result.errors`, not a throw. */
16
+ export declare function finalizeExecuteSpan(span: Span, result: unknown): void;
17
+ //# sourceMappingURL=spans.d.ts.map
@@ -0,0 +1,25 @@
1
+ import { Span } from '@sentry/core';
2
+ import { GRAPHQL_DATA_SYMBOL, GRAPHQL_PATCHED_SYMBOL } from './constants';
3
+ import { DocumentNode } from './graphql-types';
4
+ export * from './graphql-types';
5
+ /** Bookkeeping we attach to `contextValue` to parent resolver spans under the execute span. */
6
+ interface GraphQLSpanData {
7
+ source?: DocumentNode;
8
+ span: Span;
9
+ fields: Record<string, {
10
+ span: Span;
11
+ } | undefined>;
12
+ }
13
+ export interface ObjectWithGraphQLData {
14
+ [GRAPHQL_DATA_SYMBOL]?: GraphQLSpanData;
15
+ }
16
+ export interface Patched {
17
+ [GRAPHQL_PATCHED_SYMBOL]?: boolean;
18
+ }
19
+ /** Resolved integration config (defaults applied), shared by the span + resolver builders. */
20
+ export interface GraphqlResolvedConfig {
21
+ ignoreResolveSpans: boolean;
22
+ ignoreTrivialResolveSpans: boolean;
23
+ useOperationNameForRootSpan: boolean;
24
+ }
25
+ //# sourceMappingURL=types.d.ts.map
@@ -4,6 +4,25 @@ export type IORedisResponseHook = (span: Span, command: string, args: Array<stri
4
4
  export interface IORedisChannelIntegrationOptions {
5
5
  responseHook?: IORedisResponseHook;
6
6
  }
7
+ interface RedisClientLike {
8
+ options?: {
9
+ host?: string;
10
+ port?: number;
11
+ };
12
+ }
13
+ interface IORedisCommandContext {
14
+ arguments?: unknown[];
15
+ self?: RedisClientLike;
16
+ result?: unknown;
17
+ error?: unknown;
18
+ }
19
+ /**
20
+ * Builds the db span for an `orchestrion:ioredis:command` payload, or returns `undefined` to skip
21
+ * it: for a non-command payload, or the offline-queue re-send of an already-traced command.
22
+ *
23
+ * Exported for unit testing.
24
+ */
25
+ export declare function startIORedisCommandSpan(data: IORedisCommandContext): Span | undefined;
7
26
  /**
8
27
  * EXPERIMENTAL — orchestrion-driven ioredis integration. Subscribes to
9
28
  * `orchestrion:ioredis:command` / `:connect` (injected into ioredis' `<5.11.0`
@@ -14,4 +33,5 @@ export interface IORedisChannelIntegrationOptions {
14
33
  export declare const ioredisChannelIntegration: (options?: IORedisChannelIntegrationOptions | undefined) => import("@sentry/core").Integration & {
15
34
  name: "IORedis";
16
35
  };
36
+ export {};
17
37
  //# sourceMappingURL=ioredis.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { EachBatchHandler, EachMessageHandler } from './types';
2
+ /** Whether `fn` is a callback this module already wrapped, so callers skip re-wrapping it. */
3
+ export declare function isWrappedConsumerCallback(fn: unknown): boolean;
4
+ /** Wraps `eachMessage` so each processed message becomes a consumer span parented to the message's producer. */
5
+ export declare function wrapEachMessage(original: EachMessageHandler): EachMessageHandler;
6
+ /** Wraps `eachBatch` so the batch pull becomes a fresh-root receiving span with a process span per message. */
7
+ export declare function wrapEachBatch(original: EachBatchHandler): EachBatchHandler;
8
+ //# sourceMappingURL=consumer.d.ts.map
@@ -0,0 +1,17 @@
1
+ /**
2
+ * EXPERIMENTAL — orchestrion-driven kafkajs integration.
3
+ *
4
+ * Subscribes to the `orchestrion:kafkajs:*` diagnostics_channels that the orchestrion code transform
5
+ * injects into `kafkajs`'s `producer/messageProducer.js` (`sendBatch`) and `consumer/index.js` (`run`).
6
+ * Requires the orchestrion runtime hook or bundler plugin to be active — wire that up via
7
+ * `experimentalUseDiagnosticsChannelInjection`.
8
+ *
9
+ * Known limitation vs. the OTel integration it replaces: the wrapping producer-`transaction` span is
10
+ * not emitted (the transformer can't replace `transaction()`'s return value to patch commit/abort).
11
+ * Transactional `send`/`sendBatch` calls still produce producer spans, since they route through the
12
+ * same instrumented `sendBatch`.
13
+ */
14
+ export declare const kafkajsChannelIntegration: () => import("@sentry/core").Integration & {
15
+ name: "Kafka";
16
+ };
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,10 @@
1
+ export declare const ATTR_MESSAGING_DESTINATION_PARTITION_ID: "messaging.destination.partition.id";
2
+ export declare const ATTR_MESSAGING_KAFKA_MESSAGE_KEY: "messaging.kafka.message.key";
3
+ export declare const ATTR_MESSAGING_KAFKA_MESSAGE_TOMBSTONE: "messaging.kafka.message.tombstone";
4
+ export declare const ATTR_MESSAGING_KAFKA_OFFSET: "messaging.kafka.offset";
5
+ export declare const MESSAGING_OPERATION_TYPE_VALUE_PROCESS: "process";
6
+ export declare const MESSAGING_OPERATION_TYPE_VALUE_RECEIVE: "receive";
7
+ export declare const MESSAGING_OPERATION_TYPE_VALUE_SEND: "send";
8
+ export declare const MESSAGING_SYSTEM_VALUE_KAFKA: "kafka";
9
+ export declare const ERROR_TYPE_VALUE_OTHER: "_OTHER";
10
+ //# sourceMappingURL=semconv.d.ts.map
@@ -0,0 +1,38 @@
1
+ import { Span, SpanAttributes, SpanLink } from '@sentry/core';
2
+ import { KafkaMessage, Message } from './types';
3
+ interface ConsumerSpanOptions {
4
+ topic: string;
5
+ message: KafkaMessage | undefined;
6
+ operationType: string;
7
+ attributes: SpanAttributes;
8
+ links?: SpanLink[];
9
+ }
10
+ /**
11
+ * Reads a header value off a kafkajs message as a string. kafkajs delivers headers as `Buffer`s (or
12
+ * arrays of them), so we normalize to a string before handing them to Sentry's trace helpers.
13
+ */
14
+ export declare function getHeaderAsString(headers: KafkaMessage['headers'], key: string): string | undefined;
15
+ /**
16
+ * Builds a span link to the producer span carried in the message headers, mirroring the upstream
17
+ * behavior of linking each batch-processed message to its originating producer span.
18
+ */
19
+ export declare function getLinksFromHeaders(headers: KafkaMessage['headers']): SpanLink[] | undefined;
20
+ /** Starts an inactive consumer (process/receive) span carrying the kafkajs messaging attributes. */
21
+ export declare function startConsumerSpan({ topic, message, operationType, links, attributes }: ConsumerSpanOptions): Span;
22
+ /** Starts an inactive producer span and propagates its trace into the message headers. */
23
+ export declare function startProducerSpan(topic: string, message: Message): Span;
24
+ /**
25
+ * Marks all `spans` with the error status and `error.type` derived from a settle-time `reason`,
26
+ * WITHOUT ending them. Mirrors the vendored `endSpansOnPromise` catch block. The producer path (which
27
+ * receives discrete `error`/`asyncEnd` channel events) applies the error on `error` and ends on
28
+ * `asyncEnd`; the consumer path folds this into `endSpansOnPromise`.
29
+ */
30
+ export declare function applyErrorToSpans(spans: Span[], reason: unknown): void;
31
+ /**
32
+ * Resolves once `promise` settles, applying the error status to all `spans` on failure and ending
33
+ * them regardless. Used by the consumer path, which invokes the user callback directly (and so holds a
34
+ * real promise). Verbatim from the vendored `endSpansOnPromise`.
35
+ */
36
+ export declare function endSpansOnPromise<T>(spans: Span[], promise: Promise<T>): Promise<T>;
37
+ export {};
38
+ //# sourceMappingURL=spans.d.ts.map
@@ -0,0 +1,40 @@
1
+ export interface Message {
2
+ key?: Buffer | string | null;
3
+ value: Buffer | string | null;
4
+ partition?: number;
5
+ headers?: Record<string, Buffer | string | (Buffer | string)[] | undefined>;
6
+ timestamp?: string;
7
+ }
8
+ export type KafkaMessage = {
9
+ [key: string]: unknown;
10
+ } & Message;
11
+ /** A single `{ topic, messages }` entry of a `sendBatch({ topicMessages })` call. */
12
+ export interface TopicMessages {
13
+ topic: string;
14
+ messages: Message[];
15
+ }
16
+ /** The `sendBatch`/`send` argument shape after kafkajs normalizes `send` into `sendBatch`. */
17
+ export interface ProducerBatch {
18
+ topicMessages?: TopicMessages[];
19
+ }
20
+ export interface EachMessagePayload {
21
+ topic: string;
22
+ partition: number;
23
+ message: KafkaMessage;
24
+ }
25
+ export interface Batch {
26
+ topic: string;
27
+ partition: number;
28
+ messages: KafkaMessage[];
29
+ }
30
+ export interface EachBatchPayload {
31
+ batch: Batch;
32
+ }
33
+ export type EachMessageHandler = (payload: EachMessagePayload) => Promise<void>;
34
+ export type EachBatchHandler = (payload: EachBatchPayload) => Promise<void>;
35
+ /** The `consumer.run(config)` argument shape; only the two callbacks are read/swapped. */
36
+ export interface ConsumerRunConfig {
37
+ eachMessage?: EachMessageHandler | null;
38
+ eachBatch?: EachBatchHandler | null;
39
+ }
40
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,11 @@
1
+ /**
2
+ * EXPERIMENTAL - orchestrion-driven knex integration.
3
+ *
4
+ * Subscribes to the `orchestrion:knex:*` diagnostics_channels that the orchestrion code transform
5
+ * injects into knex's `Runner.query` (span) and `Client.queryBuilder`/`schemaBuilder`/`raw` (parent-span
6
+ * bookkeeping). Requires the orchestrion runtime hook or bundler plugin to be active.
7
+ */
8
+ export declare const knexChannelIntegration: () => import("@sentry/core").Integration & {
9
+ name: "Knex";
10
+ };
11
+ //# sourceMappingURL=knex.d.ts.map
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Orchestrion-driven mysql2 integration.
3
+ *
4
+ * Adds Sentry tracing instrumentation for the [mysql2](https://www.npmjs.com/package/mysql2) library
5
+ * via diagnostics-channel injection. See {@link instrumentMysql2} for how the two mysql2 version
6
+ * ranges are covered.
7
+ *
8
+ * Known limitation vs. the OTel integration it replaces: the callback-less streaming form
9
+ * (`connection.query(sql).on('result', ...)`) is not traced — see the `mysql2` orchestrion config for
10
+ * why. The callback and promise forms (the common case) are fully instrumented.
11
+ */
12
+ export declare const mysql2ChannelIntegration: () => import("@sentry/core").Integration & {
13
+ name: "Mysql2";
14
+ };
15
+ //# sourceMappingURL=mysql2.d.ts.map
@@ -0,0 +1,26 @@
1
+ import { PostgresConnectionContext, Span } from '@sentry/core';
2
+ export interface PostgresJsChannelIntegrationOptions {
3
+ /**
4
+ * Only create spans when there's already an active parent span. Defaults to
5
+ * `true`, matching the OTel `postgresJsIntegration`.
6
+ */
7
+ requireParentSpan?: boolean;
8
+ /**
9
+ * Hook to modify the query span before the query runs. Receives the span, the
10
+ * sanitized SQL, and (when resolvable) the connection context.
11
+ */
12
+ requestHook?: (span: Span, sanitizedSqlQuery: string, postgresConnectionContext?: PostgresConnectionContext) => void;
13
+ }
14
+ /**
15
+ * EXPERIMENTAL — orchestrion-driven postgres.js (`postgres` v3.x) integration.
16
+ *
17
+ * Subscribes to the `orchestrion:postgres:handle` / `:connection` / `:execute` /
18
+ * `:connect` diagnostics channels injected into postgres.js' `Query.prototype.handle`
19
+ * and `Connection`/`execute`/`connect` (in `src/*` and `cjs/src/*`) and creates db
20
+ * spans matching the OTel `postgresJsIntegration`. Requires the orchestrion runtime
21
+ * hook or bundler plugin.
22
+ */
23
+ export declare const postgresJsChannelIntegration: (options?: PostgresJsChannelIntegrationOptions | undefined) => import("@sentry/core").Integration & {
24
+ name: "PostgresJs";
25
+ };
26
+ //# sourceMappingURL=postgres-js.d.ts.map
@@ -0,0 +1,16 @@
1
+ import { Span } from '@sentry/core';
2
+ /** Mirrors `@opentelemetry/instrumentation-redis`' response hook. Not called for failed commands. */
3
+ export type RedisResponseHook = (span: Span, command: string, args: Array<string | Buffer>, result: unknown) => void;
4
+ export interface RedisChannelIntegrationOptions {
5
+ responseHook?: RedisResponseHook;
6
+ }
7
+ /**
8
+ * EXPERIMENTAL — orchestrion-driven redis integration for `redis` v2-v3 and
9
+ * node-redis v4/v5 `<5.12.0` (`@redis/client`). Covers single commands, `connect`,
10
+ * and multi/pipeline batches, fully replacing `@opentelemetry/instrumentation-redis`.
11
+ * Requires the orchestrion runtime hook or bundler plugin.
12
+ */
13
+ export declare const redisChannelIntegration: (options?: RedisChannelIntegrationOptions | undefined) => import("@sentry/core").Integration & {
14
+ name: "RedisChannel";
15
+ };
16
+ //# sourceMappingURL=redis.d.ts.map
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Auto-instrument the `ai` SDK. Supported are:
3
3
  * - v7 via native `ai:telemetry` tracing channel
4
- * - v6 via orchestrion `orchestrion:ai:*` channels
4
+ * - v4, v5 & v6 via orchestrion `orchestrion:ai:*` channels
5
5
  */
6
6
  export declare const vercelAiChannelIntegration: (options?: {
7
7
  recordInputs?: boolean;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Auto-instrument the [mysql2](https://www.npmjs.com/package/mysql2) library via its native
3
+ * `node:diagnostics_channel` tracing channels (mysql2 >= 3.20.0).
4
+ *
5
+ * On older mysql2 versions the channels are never published to, so this integration is inert and
6
+ * the vendored OTel instrumentation (gated to `< 3.20.0`) handles instrumentation instead.
7
+ */
8
+ export declare const mysql2Integration: () => import("@sentry/core").Integration & {
9
+ name: string;
10
+ };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,59 @@
1
+ import { TracingChannel } from 'node:diagnostics_channel';
2
+ export declare const MYSQL2_DC_CHANNEL_QUERY = "mysql2:query";
3
+ export declare const MYSQL2_DC_CHANNEL_EXECUTE = "mysql2:execute";
4
+ export declare const MYSQL2_DC_CHANNEL_CONNECT = "mysql2:connect";
5
+ export declare const MYSQL2_DC_CHANNEL_POOL_CONNECT = "mysql2:pool:connect";
6
+ /**
7
+ * Shape of the context object mysql2 >= 3.20.0 publishes on its query/execute
8
+ * tracing channels (see mysql2 `lib/base/connection.js`).
9
+ *
10
+ * Node's `traceCallback`/`tracePromise` mutate this same object with
11
+ * `result`/`error` once the operation settles, which `bindTracingChannelToSpan`
12
+ * reads in its lifecycle handlers — hence both are declared optional here.
13
+ *
14
+ * `query` is the SQL statement. On the `query` channel mysql2 has already
15
+ * inlined `values` into it (`Connection.format`), so it carries raw user data;
16
+ * on the `execute` channel it keeps `?` placeholders. Either way we sanitize it
17
+ * before emitting `db.query.text` and never attach `values`.
18
+ */
19
+ export interface MySQL2QueryData {
20
+ query?: string;
21
+ values?: unknown;
22
+ database?: string;
23
+ serverAddress?: string;
24
+ /** Absent for unix-socket connections, where `serverAddress` is the socket path. */
25
+ serverPort?: number;
26
+ result?: unknown;
27
+ error?: Error;
28
+ }
29
+ /**
30
+ * Shape of the context object mysql2 >= 3.20.0 publishes on its
31
+ * `connect`/`pool:connect` channels.
32
+ */
33
+ export interface MySQL2ConnectData {
34
+ database?: string;
35
+ serverAddress?: string;
36
+ serverPort?: number;
37
+ user?: string;
38
+ result?: unknown;
39
+ error?: Error;
40
+ }
41
+ /**
42
+ * Platform-provided factory that creates a native tracing channel for the given name. The
43
+ * subscriber binds the span and its lifecycle onto the channel via `bindTracingChannelToSpan`,
44
+ * which propagates the active span through the runtime's async context.
45
+ *
46
+ * Node passes `node:diagnostics_channel`'s `tracingChannel` directly.
47
+ */
48
+ export type MySQL2TracingChannelFactory = <T extends object>(name: string) => TracingChannel<T, T>;
49
+ /**
50
+ * Subscribe Sentry span handlers to mysql2's diagnostics-channel events
51
+ * (`mysql2:query`, `:execute`, `:connect`, `:pool:connect`), published by
52
+ * mysql2 >= 3.20.0.
53
+ *
54
+ * On older mysql2 versions the channels are never published to, so the
55
+ * subscribers are inert — there is no double-instrumentation against the
56
+ * vendored OTel patcher, which is gated to `< 3.20.0`.
57
+ */
58
+ export declare function subscribeMysql2DiagnosticChannels(tracingChannel: MySQL2TracingChannelFactory): void;
59
+ //# sourceMappingURL=mysql2-dc-subscriber.d.ts.map
@@ -0,0 +1,21 @@
1
+ import codeTransformer from '@apm-js-collab/code-transformer-bundler-plugins/esbuild';
2
+ import { PluginOptions } from './options';
3
+ /**
4
+ * esbuild plugin that runs the orchestrion code transform on the bundled output.
5
+ *
6
+ * Use when bundling a Node app with esbuild. For unbundled Node processes use the
7
+ * runtime hook instead (`node --import @sentry/node/orchestrion app.js`).
8
+ *
9
+ * esbuild does not flatten nested `plugins` arrays, so this returns a single
10
+ * plugin that strips instrumented packages from an `external` denylist before
11
+ * delegating to the upstream transform.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * // build.mjs
16
+ * import { sentryOrchestrionPlugin } from '@sentry/server-utils/orchestrion/esbuild';
17
+ * await esbuild.build({ plugins: [sentryOrchestrionPlugin()] });
18
+ * ```
19
+ */
20
+ export declare function sentryOrchestrionPlugin(options?: PluginOptions): ReturnType<typeof codeTransformer>;
21
+ //# sourceMappingURL=esbuild.d.ts.map
@@ -0,0 +1,19 @@
1
+ import { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
+ import codeTransformer from '@apm-js-collab/code-transformer-bundler-plugins/rollup';
3
+ export type PluginOptions = {
4
+ /**
5
+ * Additional instrumentations to include with the default instrumentation.
6
+ */
7
+ instrumentations?: InstrumentationConfig[];
8
+ };
9
+ /**
10
+ * The `@apm-js-collab/code-transformer-bundler-plugins` options shared by every
11
+ * orchestrion bundler plugin.
12
+ *
13
+ * `injectDiagnostics` sets `globalThis.__SENTRY_ORCHESTRION__.bundler = ["mysql"]` at
14
+ * app boot so the `_experimentalSetupOrchestrion()` detector can confirm the
15
+ * bundler path ran (rather than relying on a build-time flag that wouldn't be
16
+ * visible to the runtime).
17
+ */
18
+ export declare function orchestrionTransformOptions(options: PluginOptions): Parameters<typeof codeTransformer>[0];
19
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1,17 @@
1
+ import codeTransformer from '@apm-js-collab/code-transformer-bundler-plugins/rollup';
2
+ import { PluginOptions } from './options';
3
+ /**
4
+ * Rollup plugin that runs the orchestrion code transform on the bundled output.
5
+ *
6
+ * Use when bundling a Node app with Rollup. For unbundled Node processes use the
7
+ * runtime hook instead (`node --import @sentry/node/orchestrion app.js`).
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * // rollup.config.js
12
+ * import { sentryOrchestrionPlugin } from '@sentry/server-utils/orchestrion/rollup';
13
+ * export default { plugins: [sentryOrchestrionPlugin()] };
14
+ * ```
15
+ */
16
+ export declare function sentryOrchestrionPlugin(options?: PluginOptions): ReturnType<typeof codeTransformer>;
17
+ //# sourceMappingURL=rollup.d.ts.map
@@ -1,4 +1,5 @@
1
- type UnknownPlugin = any;
1
+ import codeTransformer from '@apm-js-collab/code-transformer-bundler-plugins/vite';
2
+ import { PluginOptions } from './options';
2
3
  /**
3
4
  * Vite plugin that runs the orchestrion code transform on the bundled output.
4
5
  *
@@ -6,26 +7,12 @@ type UnknownPlugin = any;
6
7
  * pipeline, SvelteKit). For unbundled Node processes use the runtime hook
7
8
  * instead (`node --import @sentry/node/orchestrion app.js`).
8
9
  *
9
- * Returns two plugins:
10
- * 1. `sentry-orchestrion-marker` — a `renderChunk` hook that prepends a
11
- * single-line banner to entry chunks. The banner sets
12
- * `globalThis.__SENTRY_ORCHESTRION__.bundler = true` at app boot, so the
13
- * `_experimentalSetupOrchestrion()` detector can confirm the bundler path
14
- * ran (rather than relying on a build-time flag that wouldn't be visible
15
- * to the runtime).
16
- * Also injects every instrumented package name into `ssr.noExternal` via
17
- * the `config` hook, since externalized deps are `require()`d at runtime
18
- * from `node_modules` and never pass through the transform.
19
- * 2. The upstream `@apm-js-collab/code-transformer-bundler-plugins/vite`
20
- * plugin, fed our central `SENTRY_INSTRUMENTATIONS` config.
21
- *
22
10
  * @example
23
11
  * ```ts
24
12
  * // vite.config.ts
25
- * import { sentryOrchestrionPlugin } from '@sentry/node/orchestrion/vite';
13
+ * import { sentryOrchestrionPlugin } from '@sentry/server-utils/orchestrion/vite';
26
14
  * export default { plugins: [sentryOrchestrionPlugin()] };
27
15
  * ```
28
16
  */
29
- export declare function sentryOrchestrionPlugin(): UnknownPlugin[];
30
- export {};
17
+ export declare function sentryOrchestrionPlugin(options?: PluginOptions): ReturnType<typeof codeTransformer>;
31
18
  //# sourceMappingURL=vite.d.ts.map
@@ -0,0 +1,19 @@
1
+ import { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
+ /** Absolute path to the code-transform loader (a webpack loader; also usable as a Turbopack loader). */
3
+ export declare function getOrchestrionLoaderPath(): string;
4
+ /**
5
+ * Absolute path to the `@apm-js-collab/tracing-hooks` package directory, resolved from this
6
+ * package's own dependency graph. SDKs inject it at build time so the runtime module hook can
7
+ * load the package even where the bare specifier doesn't resolve (bundled SDK code under
8
+ * isolated installs, e.g. pnpm).
9
+ */
10
+ export declare function getTracingHooksDirectory(): string;
11
+ /** The central instrumentation config, to pass as the loader's `instrumentations` option. */
12
+ export declare function getSentryInstrumentations(): InstrumentationConfig[];
13
+ /**
14
+ * The code-transform webpack plugin, pre-fed the instrumentation config. Unlike the Vite plugin it
15
+ * does NOT inject the `__SENTRY_ORCHESTRION__.bundler` marker — that would disable the runtime
16
+ * module hook, which externalized packages still need (hybrid setup).
17
+ */
18
+ export declare function sentryOrchestrionWebpackPlugin(): unknown;
19
+ //# sourceMappingURL=webpack.d.ts.map