@sentry/server-utils 10.63.0 → 10.65.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 (398) hide show
  1. package/build/cjs/graphql/graphql-dc-subscriber.js +125 -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 +86 -0
  6. package/build/cjs/graphql/utils.js.map +1 -0
  7. package/build/cjs/index.js +12 -9
  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/anthropic.js +101 -0
  12. package/build/cjs/integrations/tracing-channel/anthropic.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/google-genai.js +96 -0
  22. package/build/cjs/integrations/tracing-channel/google-genai.js.map +1 -0
  23. package/build/cjs/integrations/tracing-channel/graphql/constants.js +26 -0
  24. package/build/cjs/integrations/tracing-channel/graphql/constants.js.map +1 -0
  25. package/build/cjs/integrations/tracing-channel/graphql/index.js +66 -0
  26. package/build/cjs/integrations/tracing-channel/graphql/index.js.map +1 -0
  27. package/build/cjs/integrations/tracing-channel/graphql/resolvers.js +168 -0
  28. package/build/cjs/integrations/tracing-channel/graphql/resolvers.js.map +1 -0
  29. package/build/cjs/integrations/tracing-channel/graphql/spans.js +102 -0
  30. package/build/cjs/integrations/tracing-channel/graphql/spans.js.map +1 -0
  31. package/build/cjs/integrations/tracing-channel/hapi-types.js +30 -0
  32. package/build/cjs/integrations/tracing-channel/hapi-types.js.map +1 -0
  33. package/build/cjs/integrations/tracing-channel/hapi-utils.js +177 -0
  34. package/build/cjs/integrations/tracing-channel/hapi-utils.js.map +1 -0
  35. package/build/cjs/integrations/tracing-channel/hapi.js +52 -0
  36. package/build/cjs/integrations/tracing-channel/hapi.js.map +1 -0
  37. package/build/cjs/integrations/tracing-channel/ioredis.js +96 -0
  38. package/build/cjs/integrations/tracing-channel/ioredis.js.map +1 -0
  39. package/build/cjs/integrations/tracing-channel/mysql.js +2 -1
  40. package/build/cjs/integrations/tracing-channel/mysql.js.map +1 -1
  41. package/build/cjs/integrations/tracing-channel/openai.js +83 -0
  42. package/build/cjs/integrations/tracing-channel/openai.js.map +1 -0
  43. package/build/cjs/integrations/tracing-channel/postgres-js.js +191 -0
  44. package/build/cjs/integrations/tracing-channel/postgres-js.js.map +1 -0
  45. package/build/cjs/integrations/tracing-channel/postgres.js +170 -0
  46. package/build/cjs/integrations/tracing-channel/postgres.js.map +1 -0
  47. package/build/cjs/integrations/tracing-channel/redis.js +227 -0
  48. package/build/cjs/integrations/tracing-channel/redis.js.map +1 -0
  49. package/build/cjs/integrations/tracing-channel/vercel-ai.js +25 -0
  50. package/build/cjs/integrations/tracing-channel/vercel-ai.js.map +1 -0
  51. package/build/cjs/mongoose/index.js +23 -0
  52. package/build/cjs/mongoose/index.js.map +1 -0
  53. package/build/cjs/mongoose/mongoose-dc-subscriber.js +97 -0
  54. package/build/cjs/mongoose/mongoose-dc-subscriber.js.map +1 -0
  55. package/build/cjs/mysql2/index.js +23 -0
  56. package/build/cjs/mysql2/index.js.map +1 -0
  57. package/build/cjs/mysql2/mysql2-dc-subscriber.js +68 -0
  58. package/build/cjs/mysql2/mysql2-dc-subscriber.js.map +1 -0
  59. package/build/cjs/orchestrion/bundler/vite.js +3 -3
  60. package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
  61. package/build/cjs/orchestrion/channels.js +29 -2
  62. package/build/cjs/orchestrion/channels.js.map +1 -1
  63. package/build/cjs/orchestrion/config/amqplib.js +81 -0
  64. package/build/cjs/orchestrion/config/amqplib.js.map +1 -0
  65. package/build/cjs/orchestrion/config/anthropic-ai.js +43 -0
  66. package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -0
  67. package/build/cjs/orchestrion/config/express.js +76 -0
  68. package/build/cjs/orchestrion/config/express.js.map +1 -0
  69. package/build/cjs/orchestrion/config/google-genai.js +38 -0
  70. package/build/cjs/orchestrion/config/google-genai.js.map +1 -0
  71. package/build/cjs/orchestrion/config/graphql.js +28 -0
  72. package/build/cjs/orchestrion/config/graphql.js.map +1 -0
  73. package/build/cjs/orchestrion/config/hapi.js +26 -0
  74. package/build/cjs/orchestrion/config/hapi.js.map +1 -0
  75. package/build/cjs/orchestrion/config/index.js +48 -0
  76. package/build/cjs/orchestrion/config/index.js.map +1 -0
  77. package/build/cjs/orchestrion/config/ioredis.js +35 -0
  78. package/build/cjs/orchestrion/config/ioredis.js.map +1 -0
  79. package/build/cjs/orchestrion/config/lru-memoizer.js +17 -0
  80. package/build/cjs/orchestrion/config/lru-memoizer.js.map +1 -0
  81. package/build/cjs/orchestrion/config/mysql.js +16 -0
  82. package/build/cjs/orchestrion/config/mysql.js.map +1 -0
  83. package/build/cjs/orchestrion/config/openai.js +40 -0
  84. package/build/cjs/orchestrion/config/openai.js.map +1 -0
  85. package/build/cjs/orchestrion/config/pg.js +51 -0
  86. package/build/cjs/orchestrion/config/pg.js.map +1 -0
  87. package/build/cjs/orchestrion/config/postgres.js +50 -0
  88. package/build/cjs/orchestrion/config/postgres.js.map +1 -0
  89. package/build/cjs/orchestrion/config/redis.js +76 -0
  90. package/build/cjs/orchestrion/config/redis.js.map +1 -0
  91. package/build/cjs/orchestrion/config/vercel-ai.js +48 -0
  92. package/build/cjs/orchestrion/config/vercel-ai.js.map +1 -0
  93. package/build/cjs/orchestrion/detect.js +6 -1
  94. package/build/cjs/orchestrion/detect.js.map +1 -1
  95. package/build/cjs/orchestrion/index.js +44 -5
  96. package/build/cjs/orchestrion/index.js.map +1 -1
  97. package/build/cjs/orchestrion/runtime/register.js +10 -7
  98. package/build/cjs/orchestrion/runtime/register.js.map +1 -1
  99. package/build/cjs/redis/index.js +23 -0
  100. package/build/cjs/redis/index.js.map +1 -0
  101. package/build/cjs/redis/redis-dc-subscriber.js +23 -35
  102. package/build/cjs/redis/redis-dc-subscriber.js.map +1 -1
  103. package/build/cjs/redis/redis-statement-serializer.js +34 -0
  104. package/build/cjs/redis/redis-statement-serializer.js.map +1 -0
  105. package/build/cjs/tracing-channel.js +8 -7
  106. package/build/cjs/tracing-channel.js.map +1 -1
  107. package/build/cjs/vercel-ai/util.js +123 -0
  108. package/build/cjs/vercel-ai/util.js.map +1 -0
  109. package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js +147 -76
  110. package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  111. package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js +386 -0
  112. package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -0
  113. package/build/esm/graphql/graphql-dc-subscriber.js +118 -0
  114. package/build/esm/graphql/graphql-dc-subscriber.js.map +1 -0
  115. package/build/esm/graphql/index.js +21 -0
  116. package/build/esm/graphql/index.js.map +1 -0
  117. package/build/esm/graphql/utils.js +81 -0
  118. package/build/esm/graphql/utils.js.map +1 -0
  119. package/build/esm/index.js +5 -1
  120. package/build/esm/index.js.map +1 -1
  121. package/build/esm/integrations/tracing-channel/amqplib.js +418 -0
  122. package/build/esm/integrations/tracing-channel/amqplib.js.map +1 -0
  123. package/build/esm/integrations/tracing-channel/anthropic.js +99 -0
  124. package/build/esm/integrations/tracing-channel/anthropic.js.map +1 -0
  125. package/build/esm/integrations/tracing-channel/express/index.js +22 -0
  126. package/build/esm/integrations/tracing-channel/express/index.js.map +1 -0
  127. package/build/esm/integrations/tracing-channel/express/instrumentation.js +171 -0
  128. package/build/esm/integrations/tracing-channel/express/instrumentation.js.map +1 -0
  129. package/build/esm/integrations/tracing-channel/express/route.js +68 -0
  130. package/build/esm/integrations/tracing-channel/express/route.js.map +1 -0
  131. package/build/esm/integrations/tracing-channel/fastify/instrumentation.js +2 -2
  132. package/build/esm/integrations/tracing-channel/fastify/instrumentation.js.map +1 -1
  133. package/build/esm/integrations/tracing-channel/google-genai.js +94 -0
  134. package/build/esm/integrations/tracing-channel/google-genai.js.map +1 -0
  135. package/build/esm/integrations/tracing-channel/graphql/constants.js +14 -0
  136. package/build/esm/integrations/tracing-channel/graphql/constants.js.map +1 -0
  137. package/build/esm/integrations/tracing-channel/graphql/index.js +63 -0
  138. package/build/esm/integrations/tracing-channel/graphql/index.js.map +1 -0
  139. package/build/esm/integrations/tracing-channel/graphql/resolvers.js +164 -0
  140. package/build/esm/integrations/tracing-channel/graphql/resolvers.js.map +1 -0
  141. package/build/esm/integrations/tracing-channel/graphql/spans.js +96 -0
  142. package/build/esm/integrations/tracing-channel/graphql/spans.js.map +1 -0
  143. package/build/esm/integrations/tracing-channel/hapi-types.js +25 -0
  144. package/build/esm/integrations/tracing-channel/hapi-types.js.map +1 -0
  145. package/build/esm/integrations/tracing-channel/hapi-utils.js +172 -0
  146. package/build/esm/integrations/tracing-channel/hapi-utils.js.map +1 -0
  147. package/build/esm/integrations/tracing-channel/hapi.js +50 -0
  148. package/build/esm/integrations/tracing-channel/hapi.js.map +1 -0
  149. package/build/esm/integrations/tracing-channel/ioredis.js +94 -0
  150. package/build/esm/integrations/tracing-channel/ioredis.js.map +1 -0
  151. package/build/esm/integrations/tracing-channel/mysql.js +3 -2
  152. package/build/esm/integrations/tracing-channel/mysql.js.map +1 -1
  153. package/build/esm/integrations/tracing-channel/openai.js +81 -0
  154. package/build/esm/integrations/tracing-channel/openai.js.map +1 -0
  155. package/build/esm/integrations/tracing-channel/postgres-js.js +189 -0
  156. package/build/esm/integrations/tracing-channel/postgres-js.js.map +1 -0
  157. package/build/esm/integrations/tracing-channel/postgres.js +168 -0
  158. package/build/esm/integrations/tracing-channel/postgres.js.map +1 -0
  159. package/build/esm/integrations/tracing-channel/redis.js +225 -0
  160. package/build/esm/integrations/tracing-channel/redis.js.map +1 -0
  161. package/build/esm/integrations/tracing-channel/vercel-ai.js +23 -0
  162. package/build/esm/integrations/tracing-channel/vercel-ai.js.map +1 -0
  163. package/build/esm/mongoose/index.js +21 -0
  164. package/build/esm/mongoose/index.js.map +1 -0
  165. package/build/esm/mongoose/mongoose-dc-subscriber.js +89 -0
  166. package/build/esm/mongoose/mongoose-dc-subscriber.js.map +1 -0
  167. package/build/esm/mysql2/index.js +21 -0
  168. package/build/esm/mysql2/index.js.map +1 -0
  169. package/build/esm/mysql2/mysql2-dc-subscriber.js +62 -0
  170. package/build/esm/mysql2/mysql2-dc-subscriber.js.map +1 -0
  171. package/build/esm/orchestrion/bundler/vite.js +1 -1
  172. package/build/esm/orchestrion/channels.js +29 -2
  173. package/build/esm/orchestrion/channels.js.map +1 -1
  174. package/build/esm/orchestrion/config/amqplib.js +78 -0
  175. package/build/esm/orchestrion/config/amqplib.js.map +1 -0
  176. package/build/esm/orchestrion/config/anthropic-ai.js +40 -0
  177. package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -0
  178. package/build/esm/orchestrion/config/express.js +73 -0
  179. package/build/esm/orchestrion/config/express.js.map +1 -0
  180. package/build/esm/orchestrion/config/google-genai.js +35 -0
  181. package/build/esm/orchestrion/config/google-genai.js.map +1 -0
  182. package/build/esm/orchestrion/config/graphql.js +25 -0
  183. package/build/esm/orchestrion/config/graphql.js.map +1 -0
  184. package/build/esm/orchestrion/config/hapi.js +23 -0
  185. package/build/esm/orchestrion/config/hapi.js.map +1 -0
  186. package/build/esm/orchestrion/config/index.js +44 -0
  187. package/build/esm/orchestrion/config/index.js.map +1 -0
  188. package/build/esm/orchestrion/config/ioredis.js +32 -0
  189. package/build/esm/orchestrion/config/ioredis.js.map +1 -0
  190. package/build/esm/orchestrion/config/lru-memoizer.js +14 -0
  191. package/build/esm/orchestrion/config/lru-memoizer.js.map +1 -0
  192. package/build/esm/orchestrion/config/mysql.js +13 -0
  193. package/build/esm/orchestrion/config/mysql.js.map +1 -0
  194. package/build/esm/orchestrion/config/openai.js +37 -0
  195. package/build/esm/orchestrion/config/openai.js.map +1 -0
  196. package/build/esm/orchestrion/config/pg.js +48 -0
  197. package/build/esm/orchestrion/config/pg.js.map +1 -0
  198. package/build/esm/orchestrion/config/postgres.js +47 -0
  199. package/build/esm/orchestrion/config/postgres.js.map +1 -0
  200. package/build/esm/orchestrion/config/redis.js +73 -0
  201. package/build/esm/orchestrion/config/redis.js.map +1 -0
  202. package/build/esm/orchestrion/config/vercel-ai.js +45 -0
  203. package/build/esm/orchestrion/config/vercel-ai.js.map +1 -0
  204. package/build/esm/orchestrion/detect.js +6 -2
  205. package/build/esm/orchestrion/detect.js.map +1 -1
  206. package/build/esm/orchestrion/index.js +33 -3
  207. package/build/esm/orchestrion/index.js.map +1 -1
  208. package/build/esm/orchestrion/runtime/register.js +8 -4
  209. package/build/esm/orchestrion/runtime/register.js.map +1 -1
  210. package/build/esm/package.json +1 -1
  211. package/build/esm/redis/index.js +21 -0
  212. package/build/esm/redis/index.js.map +1 -0
  213. package/build/esm/redis/redis-dc-subscriber.js +24 -36
  214. package/build/esm/redis/redis-dc-subscriber.js.map +1 -1
  215. package/build/esm/redis/redis-statement-serializer.js +32 -0
  216. package/build/esm/redis/redis-statement-serializer.js.map +1 -0
  217. package/build/esm/tracing-channel.js +9 -8
  218. package/build/esm/tracing-channel.js.map +1 -1
  219. package/build/esm/vercel-ai/util.js +116 -0
  220. package/build/esm/vercel-ai/util.js.map +1 -0
  221. package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js +122 -54
  222. package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  223. package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js +384 -0
  224. package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -0
  225. package/build/types/graphql/graphql-dc-subscriber.d.ts +94 -0
  226. package/build/types/graphql/graphql-dc-subscriber.d.ts.map +1 -0
  227. package/build/types/graphql/index.d.ts +12 -0
  228. package/build/types/graphql/index.d.ts.map +1 -0
  229. package/build/types/graphql/utils.d.ts +40 -0
  230. package/build/types/graphql/utils.d.ts.map +1 -0
  231. package/build/types/index.d.ts +6 -2
  232. package/build/types/index.d.ts.map +1 -1
  233. package/build/types/integrations/tracing-channel/amqplib.d.ts +11 -0
  234. package/build/types/integrations/tracing-channel/amqplib.d.ts.map +1 -0
  235. package/build/types/integrations/tracing-channel/anthropic.d.ts +10 -0
  236. package/build/types/integrations/tracing-channel/anthropic.d.ts.map +1 -0
  237. package/build/types/integrations/tracing-channel/express/index.d.ts +18 -0
  238. package/build/types/integrations/tracing-channel/express/index.d.ts.map +1 -0
  239. package/build/types/integrations/tracing-channel/express/instrumentation.d.ts +4 -0
  240. package/build/types/integrations/tracing-channel/express/instrumentation.d.ts.map +1 -0
  241. package/build/types/integrations/tracing-channel/express/route.d.ts +28 -0
  242. package/build/types/integrations/tracing-channel/express/route.d.ts.map +1 -0
  243. package/build/types/integrations/tracing-channel/express/types.d.ts +64 -0
  244. package/build/types/integrations/tracing-channel/express/types.d.ts.map +1 -0
  245. package/build/types/integrations/tracing-channel/fastify/instrumentation.d.ts.map +1 -1
  246. package/build/types/integrations/tracing-channel/google-genai.d.ts +12 -0
  247. package/build/types/integrations/tracing-channel/google-genai.d.ts.map +1 -0
  248. package/build/types/integrations/tracing-channel/graphql/constants.d.ts +12 -0
  249. package/build/types/integrations/tracing-channel/graphql/constants.d.ts.map +1 -0
  250. package/build/types/integrations/tracing-channel/graphql/graphql-types.d.ts +135 -0
  251. package/build/types/integrations/tracing-channel/graphql/graphql-types.d.ts.map +1 -0
  252. package/build/types/integrations/tracing-channel/graphql/index.d.ts +28 -0
  253. package/build/types/integrations/tracing-channel/graphql/index.d.ts.map +1 -0
  254. package/build/types/integrations/tracing-channel/graphql/resolvers.d.ts +13 -0
  255. package/build/types/integrations/tracing-channel/graphql/resolvers.d.ts.map +1 -0
  256. package/build/types/integrations/tracing-channel/graphql/spans.d.ts +17 -0
  257. package/build/types/integrations/tracing-channel/graphql/spans.d.ts.map +1 -0
  258. package/build/types/integrations/tracing-channel/graphql/types.d.ts +25 -0
  259. package/build/types/integrations/tracing-channel/graphql/types.d.ts.map +1 -0
  260. package/build/types/integrations/tracing-channel/hapi-types.d.ts +53 -0
  261. package/build/types/integrations/tracing-channel/hapi-types.d.ts.map +1 -0
  262. package/build/types/integrations/tracing-channel/hapi-utils.d.ts +25 -0
  263. package/build/types/integrations/tracing-channel/hapi-utils.d.ts.map +1 -0
  264. package/build/types/integrations/tracing-channel/hapi.d.ts +9 -0
  265. package/build/types/integrations/tracing-channel/hapi.d.ts.map +1 -0
  266. package/build/types/integrations/tracing-channel/ioredis.d.ts +17 -0
  267. package/build/types/integrations/tracing-channel/ioredis.d.ts.map +1 -0
  268. package/build/types/integrations/tracing-channel/mysql.d.ts.map +1 -1
  269. package/build/types/integrations/tracing-channel/openai.d.ts +10 -0
  270. package/build/types/integrations/tracing-channel/openai.d.ts.map +1 -0
  271. package/build/types/integrations/tracing-channel/postgres-js.d.ts +26 -0
  272. package/build/types/integrations/tracing-channel/postgres-js.d.ts.map +1 -0
  273. package/build/types/integrations/tracing-channel/postgres.d.ts +15 -0
  274. package/build/types/integrations/tracing-channel/postgres.d.ts.map +1 -0
  275. package/build/types/integrations/tracing-channel/redis.d.ts +16 -0
  276. package/build/types/integrations/tracing-channel/redis.d.ts.map +1 -0
  277. package/build/types/integrations/tracing-channel/vercel-ai.d.ts +13 -0
  278. package/build/types/integrations/tracing-channel/vercel-ai.d.ts.map +1 -0
  279. package/build/types/mongoose/index.d.ts +11 -0
  280. package/build/types/mongoose/index.d.ts.map +1 -0
  281. package/build/types/mongoose/mongoose-dc-subscriber.d.ts +63 -0
  282. package/build/types/mongoose/mongoose-dc-subscriber.d.ts.map +1 -0
  283. package/build/types/mysql2/index.d.ts +11 -0
  284. package/build/types/mysql2/index.d.ts.map +1 -0
  285. package/build/types/mysql2/mysql2-dc-subscriber.d.ts +59 -0
  286. package/build/types/mysql2/mysql2-dc-subscriber.d.ts.map +1 -0
  287. package/build/types/orchestrion/channels.d.ts +55 -1
  288. package/build/types/orchestrion/channels.d.ts.map +1 -1
  289. package/build/types/orchestrion/config/amqplib.d.ts +66 -0
  290. package/build/types/orchestrion/config/amqplib.d.ts.map +1 -0
  291. package/build/types/orchestrion/config/anthropic-ai.d.ts +31 -0
  292. package/build/types/orchestrion/config/anthropic-ai.d.ts.map +1 -0
  293. package/build/types/orchestrion/config/express.d.ts +32 -0
  294. package/build/types/orchestrion/config/express.d.ts.map +1 -0
  295. package/build/types/orchestrion/config/google-genai.d.ts +30 -0
  296. package/build/types/orchestrion/config/google-genai.d.ts.map +1 -0
  297. package/build/types/orchestrion/config/graphql.d.ts +29 -0
  298. package/build/types/orchestrion/config/graphql.d.ts.map +1 -0
  299. package/build/types/orchestrion/config/hapi.d.ts +17 -0
  300. package/build/types/orchestrion/config/hapi.d.ts.map +1 -0
  301. package/build/types/orchestrion/{config.d.ts → config/index.d.ts} +1 -12
  302. package/build/types/orchestrion/config/index.d.ts.map +1 -0
  303. package/build/types/orchestrion/config/ioredis.d.ts +7 -0
  304. package/build/types/orchestrion/config/ioredis.d.ts.map +1 -0
  305. package/build/types/orchestrion/config/lru-memoizer.d.ts +16 -0
  306. package/build/types/orchestrion/config/lru-memoizer.d.ts.map +1 -0
  307. package/build/types/orchestrion/config/mysql.d.ts +16 -0
  308. package/build/types/orchestrion/config/mysql.d.ts.map +1 -0
  309. package/build/types/orchestrion/config/openai.d.ts +20 -0
  310. package/build/types/orchestrion/config/openai.d.ts.map +1 -0
  311. package/build/types/orchestrion/config/pg.d.ts +33 -0
  312. package/build/types/orchestrion/config/pg.d.ts.map +1 -0
  313. package/build/types/orchestrion/config/postgres.d.ts +9 -0
  314. package/build/types/orchestrion/config/postgres.d.ts.map +1 -0
  315. package/build/types/orchestrion/config/redis.d.ts +37 -0
  316. package/build/types/orchestrion/config/redis.d.ts.map +1 -0
  317. package/build/types/orchestrion/config/vercel-ai.d.ts +12 -0
  318. package/build/types/orchestrion/config/vercel-ai.d.ts.map +1 -0
  319. package/build/types/orchestrion/detect.d.ts +10 -0
  320. package/build/types/orchestrion/detect.d.ts.map +1 -1
  321. package/build/types/orchestrion/index.d.ts +80 -3
  322. package/build/types/orchestrion/index.d.ts.map +1 -1
  323. package/build/types/orchestrion/runtime/register.d.ts.map +1 -1
  324. package/build/types/redis/index.d.ts +18 -0
  325. package/build/types/redis/index.d.ts.map +1 -0
  326. package/build/types/redis/redis-dc-subscriber.d.ts +0 -5
  327. package/build/types/redis/redis-dc-subscriber.d.ts.map +1 -1
  328. package/build/types/redis/redis-statement-serializer.d.ts +6 -0
  329. package/build/types/redis/redis-statement-serializer.d.ts.map +1 -0
  330. package/build/types/tracing-channel.d.ts +5 -0
  331. package/build/types/tracing-channel.d.ts.map +1 -1
  332. package/build/types/vercel-ai/util.d.ts +32 -0
  333. package/build/types/vercel-ai/util.d.ts.map +1 -0
  334. package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts +15 -5
  335. package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
  336. package/build/types/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts +12 -0
  337. package/build/types/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts.map +1 -0
  338. package/build/types-ts3.8/graphql/graphql-dc-subscriber.d.ts +94 -0
  339. package/build/types-ts3.8/graphql/index.d.ts +12 -0
  340. package/build/types-ts3.8/graphql/utils.d.ts +40 -0
  341. package/build/types-ts3.8/index.d.ts +6 -2
  342. package/build/types-ts3.8/integrations/tracing-channel/amqplib.d.ts +11 -0
  343. package/build/types-ts3.8/integrations/tracing-channel/anthropic.d.ts +10 -0
  344. package/build/types-ts3.8/integrations/tracing-channel/express/index.d.ts +18 -0
  345. package/build/types-ts3.8/integrations/tracing-channel/express/instrumentation.d.ts +4 -0
  346. package/build/types-ts3.8/integrations/tracing-channel/express/route.d.ts +28 -0
  347. package/build/types-ts3.8/integrations/tracing-channel/express/types.d.ts +64 -0
  348. package/build/types-ts3.8/integrations/tracing-channel/google-genai.d.ts +12 -0
  349. package/build/types-ts3.8/integrations/tracing-channel/graphql/constants.d.ts +12 -0
  350. package/build/types-ts3.8/integrations/tracing-channel/graphql/graphql-types.d.ts +135 -0
  351. package/build/types-ts3.8/integrations/tracing-channel/graphql/index.d.ts +30 -0
  352. package/build/types-ts3.8/integrations/tracing-channel/graphql/resolvers.d.ts +13 -0
  353. package/build/types-ts3.8/integrations/tracing-channel/graphql/spans.d.ts +17 -0
  354. package/build/types-ts3.8/integrations/tracing-channel/graphql/types.d.ts +25 -0
  355. package/build/types-ts3.8/integrations/tracing-channel/hapi-types.d.ts +65 -0
  356. package/build/types-ts3.8/integrations/tracing-channel/hapi-utils.d.ts +25 -0
  357. package/build/types-ts3.8/integrations/tracing-channel/hapi.d.ts +9 -0
  358. package/build/types-ts3.8/integrations/tracing-channel/ioredis.d.ts +17 -0
  359. package/build/types-ts3.8/integrations/tracing-channel/openai.d.ts +10 -0
  360. package/build/types-ts3.8/integrations/tracing-channel/postgres-js.d.ts +26 -0
  361. package/build/types-ts3.8/integrations/tracing-channel/postgres.d.ts +15 -0
  362. package/build/types-ts3.8/integrations/tracing-channel/redis.d.ts +16 -0
  363. package/build/types-ts3.8/integrations/tracing-channel/vercel-ai.d.ts +13 -0
  364. package/build/types-ts3.8/mongoose/index.d.ts +11 -0
  365. package/build/types-ts3.8/mongoose/mongoose-dc-subscriber.d.ts +63 -0
  366. package/build/types-ts3.8/mysql2/index.d.ts +11 -0
  367. package/build/types-ts3.8/mysql2/mysql2-dc-subscriber.d.ts +59 -0
  368. package/build/types-ts3.8/orchestrion/channels.d.ts +55 -1
  369. package/build/types-ts3.8/orchestrion/config/amqplib.d.ts +66 -0
  370. package/build/types-ts3.8/orchestrion/config/anthropic-ai.d.ts +31 -0
  371. package/build/types-ts3.8/orchestrion/config/express.d.ts +32 -0
  372. package/build/types-ts3.8/orchestrion/config/google-genai.d.ts +30 -0
  373. package/build/types-ts3.8/orchestrion/config/graphql.d.ts +29 -0
  374. package/build/types-ts3.8/orchestrion/config/hapi.d.ts +17 -0
  375. package/build/types-ts3.8/orchestrion/{config.d.ts → config/index.d.ts} +1 -12
  376. package/build/types-ts3.8/orchestrion/config/ioredis.d.ts +7 -0
  377. package/build/types-ts3.8/orchestrion/config/lru-memoizer.d.ts +16 -0
  378. package/build/types-ts3.8/orchestrion/config/mysql.d.ts +16 -0
  379. package/build/types-ts3.8/orchestrion/config/openai.d.ts +20 -0
  380. package/build/types-ts3.8/orchestrion/config/pg.d.ts +33 -0
  381. package/build/types-ts3.8/orchestrion/config/postgres.d.ts +9 -0
  382. package/build/types-ts3.8/orchestrion/config/redis.d.ts +37 -0
  383. package/build/types-ts3.8/orchestrion/config/vercel-ai.d.ts +12 -0
  384. package/build/types-ts3.8/orchestrion/detect.d.ts +10 -0
  385. package/build/types-ts3.8/orchestrion/index.d.ts +82 -3
  386. package/build/types-ts3.8/redis/index.d.ts +18 -0
  387. package/build/types-ts3.8/redis/redis-dc-subscriber.d.ts +0 -5
  388. package/build/types-ts3.8/redis/redis-statement-serializer.d.ts +6 -0
  389. package/build/types-ts3.8/tracing-channel.d.ts +5 -0
  390. package/build/types-ts3.8/vercel-ai/util.d.ts +32 -0
  391. package/build/types-ts3.8/vercel-ai/vercel-ai-dc-subscriber.d.ts +15 -5
  392. package/build/types-ts3.8/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts +12 -0
  393. package/package.json +9 -9
  394. package/build/cjs/orchestrion/config.js +0 -44
  395. package/build/cjs/orchestrion/config.js.map +0 -1
  396. package/build/esm/orchestrion/config.js +0 -40
  397. package/build/esm/orchestrion/config.js.map +0 -1
  398. package/build/types/orchestrion/config.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/mysql.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;;;;;;;;;GAMW,CAAC;AAEpC,eAAO,MAAM,aAAa;;CAEhB,CAAC"}
@@ -0,0 +1,20 @@
1
+ export declare const openaiConfig: {
2
+ channelName: string;
3
+ module: {
4
+ name: string;
5
+ versionRange: string;
6
+ filePath: string;
7
+ };
8
+ functionQuery: {
9
+ className: string;
10
+ methodName: string;
11
+ kind: "Auto";
12
+ };
13
+ }[];
14
+ export declare const openaiChannels: {
15
+ readonly OPENAI_CHAT: "orchestrion:openai:chat";
16
+ readonly OPENAI_RESPONSES: "orchestrion:openai:responses";
17
+ readonly OPENAI_EMBEDDINGS: "orchestrion:openai:embeddings";
18
+ readonly OPENAI_CONVERSATIONS: "orchestrion:openai:conversations";
19
+ };
20
+ //# sourceMappingURL=openai.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/openai.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;GA2BU,CAAC;AAEpC,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC"}
@@ -0,0 +1,33 @@
1
+ export declare const pgConfig: ({
2
+ channelName: string;
3
+ module: {
4
+ name: string;
5
+ versionRange: string;
6
+ filePath: string;
7
+ };
8
+ functionQuery: {
9
+ className: string;
10
+ methodName: string;
11
+ kind: "Auto";
12
+ expressionName?: undefined;
13
+ };
14
+ } | {
15
+ channelName: string;
16
+ module: {
17
+ name: string;
18
+ versionRange: string;
19
+ filePath: string;
20
+ };
21
+ functionQuery: {
22
+ expressionName: string;
23
+ kind: "Auto";
24
+ className?: undefined;
25
+ methodName?: undefined;
26
+ };
27
+ })[];
28
+ export declare const pgChannels: {
29
+ readonly PG_QUERY: "orchestrion:pg:query";
30
+ readonly PG_CONNECT: "orchestrion:pg:connect";
31
+ readonly PGPOOL_CONNECT: "orchestrion:pg-pool:connect";
32
+ };
33
+ //# sourceMappingURL=pg.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pg.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/pg.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;IAuCc,CAAC;AAEpC,eAAO,MAAM,UAAU;;;;CAIb,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
+ export declare const postgresJsConfig: InstrumentationConfig[];
3
+ export declare const postgresJsChannels: {
4
+ readonly POSTGRESJS_HANDLE: "orchestrion:postgres:handle";
5
+ readonly POSTGRESJS_CONNECTION: "orchestrion:postgres:connection";
6
+ readonly POSTGRESJS_EXECUTE: "orchestrion:postgres:execute";
7
+ readonly POSTGRESJS_CONNECT: "orchestrion:postgres:connect";
8
+ };
9
+ //# sourceMappingURL=postgres.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/postgres.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AA+C7E,eAAO,MAAM,gBAAgB,yBAA8D,CAAC;AAE5F,eAAO,MAAM,kBAAkB;;;;;CAKrB,CAAC"}
@@ -0,0 +1,37 @@
1
+ export declare const redisConfig: ({
2
+ channelName: string;
3
+ module: {
4
+ name: string;
5
+ versionRange: string;
6
+ filePath: string;
7
+ };
8
+ functionQuery: {
9
+ expressionName: string;
10
+ kind: "Sync";
11
+ className?: undefined;
12
+ methodName?: undefined;
13
+ };
14
+ } | {
15
+ channelName: string;
16
+ module: {
17
+ name: string;
18
+ versionRange: string;
19
+ filePath: string;
20
+ };
21
+ functionQuery: {
22
+ className: string;
23
+ methodName: string;
24
+ kind: "Async";
25
+ expressionName?: undefined;
26
+ };
27
+ })[];
28
+ export declare const redisChannels: {
29
+ readonly REDIS_COMMAND: "orchestrion:redis:command";
30
+ readonly NODE_REDIS_COMMAND: "orchestrion:@redis/client:command";
31
+ readonly NODE_REDIS_EXECUTOR: "orchestrion:@redis/client:executor";
32
+ readonly NODE_REDIS_CONNECT: "orchestrion:@redis/client:connect";
33
+ readonly NODE_REDIS_MULTI: "orchestrion:@redis/client:multi";
34
+ readonly NODE_REDIS_PIPELINE: "orchestrion:@redis/client:pipeline";
35
+ readonly NODE_REDIS_BATCH: "orchestrion:@redis/client:batch";
36
+ };
37
+ //# sourceMappingURL=redis.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redis.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/redis.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;IA4DW,CAAC;AAEpC,eAAO,MAAM,aAAa;;;;;;;;CAQhB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
+ export declare const vercelAiConfig: InstrumentationConfig[];
3
+ export declare const vercelAiChannels: {
4
+ readonly VERCEL_AI_GENERATE_TEXT: "orchestrion:ai:generateText";
5
+ readonly VERCEL_AI_STREAM_TEXT: "orchestrion:ai:streamText";
6
+ readonly VERCEL_AI_GENERATE_OBJECT: "orchestrion:ai:generateObject";
7
+ readonly VERCEL_AI_EMBED: "orchestrion:ai:embed";
8
+ readonly VERCEL_AI_EMBED_MANY: "orchestrion:ai:embedMany";
9
+ readonly VERCEL_AI_EXECUTE_TOOL_CALL: "orchestrion:ai:executeToolCall";
10
+ readonly VERCEL_AI_RESOLVE_LANGUAGE_MODEL: "orchestrion:ai:resolveLanguageModel";
11
+ };
12
+ //# sourceMappingURL=vercel-ai.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vercel-ai.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/vercel-ai.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAE7E,eAAO,MAAM,cAAc,yBAsBQ,CAAC;AAEpC,eAAO,MAAM,gBAAgB;;;;;;;;CAcnB,CAAC"}
@@ -4,6 +4,16 @@ declare global {
4
4
  bundler?: boolean;
5
5
  } | undefined;
6
6
  }
7
+ /**
8
+ * Whether orchestrion has injected the diagnostics channels into this process,
9
+ * either by the runtime `--import` hook / init-time registration (`runtime`)
10
+ * or a bundler plugin (`bundler`). Both injectors set a flag on the
11
+ * `globalThis.__SENTRY_ORCHESTRION__` marker.
12
+ *
13
+ * Use this to avoid wiring up channel-subscriber integrations when nothing
14
+ * will ever publish to those channels.
15
+ */
16
+ export declare function isOrchestrionInjected(): boolean;
7
17
  /**
8
18
  * Verifies that the diagnostics channels have been injected either by the
9
19
  * runtime `--import` hook (or init-time registration), a bundler plugin, or
@@ -1 +1 @@
1
- {"version":3,"file":"detect.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/detect.ts"],"names":[],"mappings":"AAGA,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,sBAAsB,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,SAAS,CAAC;CAClF;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAiB7C"}
1
+ {"version":3,"file":"detect.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/detect.ts"],"names":[],"mappings":"AAGA,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,sBAAsB,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,SAAS,CAAC;CAClF;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAG/C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAiB7C"}
@@ -1,4 +1,81 @@
1
- export { detectOrchestrionSetup } from './detect';
2
- export { mysqlChannelIntegration } from '../integrations/tracing-channel/mysql';
3
- export { lruMemoizerChannelIntegration } from '../integrations/tracing-channel/lru-memoizer';
1
+ import { amqplibChannelIntegration } from '../integrations/tracing-channel/amqplib';
2
+ import { anthropicChannelIntegration } from '../integrations/tracing-channel/anthropic';
3
+ import { googleGenAIChannelIntegration } from '../integrations/tracing-channel/google-genai';
4
+ import { graphqlChannelIntegration } from '../integrations/tracing-channel/graphql';
5
+ import { hapiChannelIntegration } from '../integrations/tracing-channel/hapi';
6
+ import { ioredisChannelIntegration } from '../integrations/tracing-channel/ioredis';
7
+ import { lruMemoizerChannelIntegration } from '../integrations/tracing-channel/lru-memoizer';
8
+ import { mysqlChannelIntegration } from '../integrations/tracing-channel/mysql';
9
+ import { openaiChannelIntegration } from '../integrations/tracing-channel/openai';
10
+ import { postgresChannelIntegration } from '../integrations/tracing-channel/postgres';
11
+ import { postgresJsChannelIntegration } from '../integrations/tracing-channel/postgres-js';
12
+ import { vercelAiChannelIntegration } from '../integrations/tracing-channel/vercel-ai';
13
+ import { expressChannelIntegration } from '../integrations/tracing-channel/express';
14
+ export { detectOrchestrionSetup, isOrchestrionInjected } from './detect';
15
+ export { amqplibChannelIntegration, anthropicChannelIntegration, googleGenAIChannelIntegration, graphqlChannelIntegration, hapiChannelIntegration, ioredisChannelIntegration, lruMemoizerChannelIntegration, mysqlChannelIntegration, openaiChannelIntegration, postgresChannelIntegration, postgresJsChannelIntegration, vercelAiChannelIntegration, expressChannelIntegration, };
16
+ export type { IORedisChannelIntegrationOptions, IORedisResponseHook } from '../integrations/tracing-channel/ioredis';
17
+ export type { PostgresJsChannelIntegrationOptions } from '../integrations/tracing-channel/postgres-js';
18
+ export { redisChannelIntegration } from '../integrations/tracing-channel/redis';
19
+ export type { RedisChannelIntegrationOptions, RedisResponseHook } from '../integrations/tracing-channel/redis';
20
+ export type * from '../integrations/tracing-channel/graphql/graphql-types';
21
+ /**
22
+ * The canonical set of orchestrion diagnostics-channel integrations, keyed by their public
23
+ * (OTel-parity) factory name.
24
+ *
25
+ * Single source of truth: add a new channel integration here and every consumer — the `@sentry/node`
26
+ * opt-in helper (`experimentalUseDiagnosticsChannelInjection`) and its public
27
+ * `diagnosticsChannelInjectionIntegrations()` map — picks it up automatically, so there's no separate
28
+ * list to keep in sync.
29
+ *
30
+ * NOTE: `ioredisChannelIntegration` and `redisChannelIntegration` are intentionally NOT here. They
31
+ * only partially replace the composite OTel `Redis` integration and need the node SDK's redis cache
32
+ * `responseHook` (which can't live in `server-utils`), so `@sentry/node` wires them up separately.
33
+ */
34
+ export declare const channelIntegrations: {
35
+ readonly postgresIntegration: (options?: {
36
+ ignoreConnectSpans?: boolean;
37
+ } | undefined) => import("@sentry/core").Integration & {
38
+ name: "Postgres";
39
+ };
40
+ readonly postgresJsIntegration: (options?: import(".").PostgresJsChannelIntegrationOptions | undefined) => import("@sentry/core").Integration & {
41
+ name: "PostgresJs";
42
+ };
43
+ readonly mysqlIntegration: () => import("@sentry/core").Integration & {
44
+ name: "Mysql";
45
+ };
46
+ readonly lruMemoizerIntegration: () => import("@sentry/core").Integration & {
47
+ name: "LruMemoizer";
48
+ };
49
+ readonly openaiIntegration: (options?: import("@sentry/core").OpenAiOptions | undefined) => import("@sentry/core").Integration & {
50
+ name: "OpenAI";
51
+ };
52
+ readonly anthropicIntegration: (options?: import("@sentry/core").AnthropicAiOptions | undefined) => import("@sentry/core").Integration & {
53
+ name: "Anthropic_AI";
54
+ };
55
+ readonly googleGenAIIntegration: (options?: import("@sentry/core").GoogleGenAIOptions | undefined) => import("@sentry/core").Integration & {
56
+ name: "Google_GenAI";
57
+ };
58
+ readonly vercelAiIntegration: (options?: {
59
+ recordInputs?: boolean;
60
+ recordOutputs?: boolean;
61
+ enableTruncation?: boolean;
62
+ } | undefined) => import("@sentry/core").Integration & {
63
+ name: "VercelAI";
64
+ };
65
+ readonly amqplibIntegration: () => import("@sentry/core").Integration & {
66
+ name: "Amqplib";
67
+ };
68
+ readonly hapiIntegration: () => import("@sentry/core").Integration & {
69
+ name: "Hapi";
70
+ };
71
+ readonly expressIntegration: (options?: import("../integrations/tracing-channel/express/types").ExpressIntegrationOptions | undefined) => import("@sentry/core").Integration & {
72
+ name: "Express";
73
+ };
74
+ readonly graphqlIntegration: (options?: import("../graphql/graphql-dc-subscriber").GraphqlDiagnosticChannelsOptions) => Omit<import("@sentry/core").Integration & {
75
+ name: "Graphql";
76
+ }, "name" | "setupOnce"> & {
77
+ name: "Graphql";
78
+ setupOnce: () => void | undefined;
79
+ };
80
+ };
4
81
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,6BAA6B,EAAE,MAAM,8CAA8C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AACxF,OAAO,EAAE,6BAA6B,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,EACL,yBAAyB,EAE1B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,6BAA6B,E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AAO,CAAA;KAAE,GAAG,SAAS,CAAC;CAClF;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mCAAmC,IAAI,IAAI,CA4F1D"}
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/runtime/register.ts"],"names":[],"mappings":"AAOA,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,sBAAsB,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,SAAS,CAAC;CAClF;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mCAAmC,IAAI,IAAI,CAiG1D"}
@@ -0,0 +1,18 @@
1
+ import { type RedisDiagnosticChannelResponseHook } from './redis-dc-subscriber';
2
+ /** Options controlling the redis diagnostics-channel subscription. */
3
+ export interface RedisDiagnosticChannelsOptions {
4
+ /**
5
+ * Optional hook invoked once the redis command response arrives. Useful for attaching
6
+ * response-derived attributes (e.g. cache hit/miss, payload size).
7
+ */
8
+ responseHook?: RedisDiagnosticChannelResponseHook;
9
+ }
10
+ /**
11
+ * Auto-instrument the [redis](https://www.npmjs.com/package/redis) and
12
+ * [ioredis](https://www.npmjs.com/package/ioredis) libraries via their native
13
+ * `node:diagnostics_channel` tracing channels (node-redis >= 5.12.0, ioredis >= 5.11.0).
14
+ */
15
+ export declare const redisIntegration: (options?: RedisDiagnosticChannelsOptions | undefined) => import("@sentry/core").Integration & {
16
+ name: string;
17
+ };
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/redis/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kCAAkC,EAAoC,MAAM,uBAAuB,CAAC;AAElH,sEAAsE;AACtE,MAAM,WAAW,8BAA8B;IAC7C;;;OAGG;IACH,YAAY,CAAC,EAAE,kCAAkC,CAAC;CACnD;AAkBD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;CAAuC,CAAC"}
@@ -84,11 +84,6 @@ export type RedisTracingChannelFactory = <T extends object>(name: string) => Tra
84
84
  * On older client versions the channels are never published to, so subscribers
85
85
  * are inert — there is no double-instrumentation against any IITM-based
86
86
  * patcher gated to those older versions.
87
- *
88
- * Idempotent: subsequent calls update the response hook but do not
89
- * re-subscribe.
90
87
  */
91
88
  export declare function subscribeRedisDiagnosticChannels(tracingChannel: RedisTracingChannelFactory, responseHook?: RedisDiagnosticChannelResponseHook): void;
92
- /** Test-only: detach all channel bindings and reset module-local subscribe state. */
93
- export declare function _resetRedisDiagnosticChannelsForTesting(): void;
94
89
  //# sourceMappingURL=redis-dc-subscriber.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"redis-dc-subscriber.d.ts","sourceRoot":"","sources":["../../../src/redis/redis-dc-subscriber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAQ/D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AASzC,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAC7D,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AACzD,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAC7D,eAAO,MAAM,0BAA0B,oBAAoB,CAAC;AAC5D,eAAO,MAAM,0BAA0B,oBAAoB,CAAC;AAK5D;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,2EAA2E;IAC3E,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IACjC,O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CACf;AAED,+EAA+E;AAC/E,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,oFAAoF;AACpF,MAAM,WAAW,gBAAgB;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,MAAM,kCAAkC,GAAG,CAC/C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EAAE,EACjB,MAAM,EAAE,OAAO,KACZ,IAAI,CAAC;AAEV;;;;;;GAMG;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAElG;;;;;;;;GAQG;AACH,wBAAgB,gCAAgC,CAC9C,cAAc,EAAE,0BAA0B,EAC1C,YAAY,CAAC,EAAE,kCAAkC,GAChD,IAAI,CAkBN"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Given the redis command name and arguments, return a combination of the
3
+ * command name + the allowed arguments according to `serializationSubsets`.
4
+ */
5
+ export declare const defaultDbStatementSerializer: (cmdName: string, cmdArgs: Array<string | Buffer | number | unknown[]>) => string;
6
+ //# sourceMappingURL=redis-statement-serializer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redis-statement-serializer.d.ts","sourceRoot":"","sources":["../../../src/redis/redis-statement-serializer.ts"],"names":[],"mappings":"AA0CA;;;GAGG;AACH,eAAO,MAAM,4BAA4B,GACvC,SAAS,MAAM,EACf,SAAS,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,EAAE,CAAC,KACnD,MAWF,CAAC"}
@@ -42,6 +42,11 @@ export interface TracingChannelLifeCycleOptions<TData extends object = object> {
42
42
  /** Ends the span: `end()` on success, `end(error)` on failure. Idempotent. */
43
43
  end: (error?: unknown) => void;
44
44
  }) => boolean;
45
+ /**
46
+ * Apply span/scope binding only if there is a parent span, similar to returning `undefined` in the `getSpan` callback.
47
+ * If you need to perform some conditional checking on the parent span before deciding, do it in the `getSpan` callback.
48
+ */
49
+ requiresParentSpan?: boolean;
45
50
  }
46
51
  /** Returned by {@link bindTracingChannelToSpan}: the bound channel plus a teardown handle. */
47
52
  export interface TracingChannelBindingHandle<TData extends object = object> {
@@ -1 +1 @@
1
- {"version":3,"file":"tracing-channel.d.ts","sourceRoot":"","sources":["../../src/tracing-channel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAE1F,OAAO,KAAK,EAAE,kCAAkC,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAK7E,MAAM,MAAM,6BAA6B,CAAC,KAAK,SAAS,MAAM,IAAI,KAAK,GAAG;IACxE;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;IAEnB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAKF,MAAM,WAAW,oBAAoB,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,IAAI,CAC/E,cAAc,CAAC,KAAK,EAAE,6BAA6B,CAAC,KAAK,CAAC,CAAC,EAC3D,WAAW,GAAG,aAAa,CAC5B;IACC,SAAS,CAAC,WAAW,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AI,EAAE,6BAA6B,CAAC,KAAK,CAAC,CAAC;QAC3C,8EAA8E;QAC9E,GAAG,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;KAChC,KAAK,OAAO,CAAC;IAEd;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,8FAA8F;AAC9F,MAAM,WAAW,2BAA2B,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM;IACxE;;OAEG;IACH,OAAO,EAAE,oBAAoB,CAAC,KAAK,CAAC,CAAC;IAErC;;;OAGG;IACH,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAID;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,SAAS,MAAM,EAC3D,OAAO,EAAE,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,EACrC,OAAO,EAAE,CAAC,IAAI,EAAE,6BAA6B,CAAC,KAAK,CAAC,KAAK,IAAI,GAAG,SAAS,EACzE,IAAI,CAAC,EAAE,8BAA8B,CAAC,KAAK,CAAC,GAC3C,2BAA2B,CAAC,KAAK,CAAC,CA0FpC"}
@@ -0,0 +1,32 @@
1
+ /** Shared, state-free helpers for the Vercel AI (`ai`) channel subscribers, plus the streamed model-call tap. */
2
+ /** Narrow to a string, or `undefined` for anything else. */
3
+ export declare function asString(value: unknown): string | undefined;
4
+ /** Narrow to a finite number, or `undefined` for anything else (including `NaN`). */
5
+ export declare function asNumber(value: unknown): number | undefined;
6
+ /** Add two optional numbers, treating a missing operand as `0` but returning `undefined` when both are absent. */
7
+ export declare function sum(a: number | undefined, b: number | undefined): number | undefined;
8
+ /** Stringify a value, passing strings through and falling back to a placeholder on circular/unserializable input. */
9
+ export declare function safeStringify(value: unknown): string;
10
+ /** The aggregate handed back once a streamed model call finishes, in the shape `enrichSpanOnEnd` expects. */
11
+ export interface StreamedModelCallResult {
12
+ text?: string;
13
+ toolCalls: Array<Record<string, unknown>>;
14
+ usage?: unknown;
15
+ finishReason?: unknown;
16
+ responseId?: string;
17
+ responseModel?: string;
18
+ providerMetadata?: unknown;
19
+ }
20
+ /** A minimal structural check — the streamed model call exposes a web `ReadableStream` on `result.stream`. */
21
+ export declare function isReadableStream(value: unknown): value is ReadableStream<unknown>;
22
+ /**
23
+ * Wrap a streamed model call's `ReadableStream` so its chunks are observed as the SDK consumes them,
24
+ * without altering what the SDK sees. Returns a replacement stream to swap onto `result.stream`.
25
+ *
26
+ * `onFinal` runs exactly once when the stream drains cleanly; `onError` runs exactly once if it errors
27
+ * or is cancelled. Reading one source chunk per `pull` preserves the SDK's backpressure. The
28
+ * `try/catch` around every read guarantees the owning span is always ended — a leaked open span on a
29
+ * mid-stream failure would be worse than a slightly-less-enriched one.
30
+ */
31
+ export declare function tapModelCallStream(stream: ReadableStream<unknown>, onFinal: (result: StreamedModelCallResult) => void, onError: (error: unknown) => void): ReadableStream<unknown>;
32
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/vercel-ai/util.ts"],"names":[],"mappings":"AAAA,iHAAiH;AAIjH,4DAA4D;AAC5D,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAE3D;AAED,qFAAqF;AACrF,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAE3D;AAED,kHAAkH;AAClH,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAEpF;AAED,qHAAqH;AACrH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CASpD;AAoCD,6GAA6G;AAC7G,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,8GAA8G;AAC9G,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAAC,OAAO,CAAC,CAMjF;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,cAAc,CAAC,OAAO,CAAC,EAC/B,OAAO,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,IAAI,EAClD,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAChC,cAAc,CAAC,OAAO,CAAC,CAkDzB"}
@@ -1,9 +1,17 @@
1
1
  import type { Span } from '@sentry/core';
2
2
  import type { TracingChannel } from 'node:diagnostics_channel';
3
+ import { type StreamedModelCallResult } from './util';
3
4
  /** Drop the per-operation `callId` maps once the owning top-level operation settles (success or error). */
4
5
  export declare function clearOperationId(data: VercelAiChannelMessage): void;
6
+ /**
7
+ * Drop the per-operation `callId` maps for a single id. The v6 orchestrion adapter uses this to clear a
8
+ * `streamText` operation only after its lazily-run model call settles — the operation's own span ends
9
+ * synchronously (when `streamText` returns) but the model call runs later as the stream is consumed, and
10
+ * it still needs the operation's `operationId`/`isStream` entry to name itself `ai.streamText.doStream`.
11
+ */
12
+ export declare function clearOperationCallId(callId: string): void;
5
13
  /** The lifecycle event types the `ai:telemetry` channel can carry. */
6
- export type ChannelEventType = 'generateText' | 'streamText' | 'step' | 'languageModelCall' | 'executeTool' | 'embed' | 'rerank';
14
+ export type ChannelEventType = 'generateText' | 'streamText' | 'generateObject' | 'step' | 'languageModelCall' | 'executeTool' | 'embed' | 'embedMany' | 'rerank';
7
15
  /**
8
16
  * The context object the AI SDK passes through one tracing-channel call. It is the same object
9
17
  * identity across `start`/`end`/`asyncEnd`/`error`, and Node's `tracingChannel` attaches
@@ -25,9 +33,9 @@ export interface VercelAiChannelMessage {
25
33
  * nested AI SDK operations (model calls, tool calls) become children of the enclosing span without
26
34
  * any manual parent bookkeeping here.
27
35
  */
28
- type VercelAiTracingChannelFactory = <T extends object>(name: string) => TracingChannel<T, T>;
36
+ export type VercelAiTracingChannelFactory = <T extends object>(name: string) => TracingChannel<T, T>;
29
37
  /** Integration-level recording options, pinned at subscribe time so we never look the integration up per event. */
30
- interface VercelAiChannelOptions {
38
+ export interface VercelAiChannelOptions {
31
39
  recordInputs?: boolean;
32
40
  recordOutputs?: boolean;
33
41
  enableTruncation?: boolean;
@@ -42,9 +50,11 @@ interface VercelAiChannelOptions {
42
50
  *
43
51
  * Safe to always call: on `ai` versions that don't publish to the channel (e.g. < 7) nothing is
44
52
  * ever emitted and this is inert, so there is no double-instrumentation against the OTel-based
45
- * patcher. Idempotent.
53
+ * patcher. The integration's `setupOnce` guarantees this runs a single time.
46
54
  */
47
55
  export declare function subscribeVercelAiTracingChannel(tracingChannel: VercelAiTracingChannelFactory, options?: VercelAiChannelOptions): void;
56
+ /** Map the tapped stream aggregate onto the `languageModelCall` result shape `enrichSpanOnEnd` reads. */
57
+ export declare function streamedResultToChannelResult(final: StreamedModelCallResult): Record<string, unknown>;
48
58
  /**
49
59
  * Transform a channel `start` payload into the span that should be active for the operation. For
50
60
  * `step` we deliberately don't open a span (model calls and tool calls are siblings under the
@@ -58,5 +68,5 @@ export declare function createSpanFromMessage(data: VercelAiChannelMessage, chan
58
68
  * we simply don't set the attribute rather than emit a malformed span.
59
69
  */
60
70
  export declare function enrichSpanOnEnd(span: Span, data: VercelAiChannelMessage, channelOptions: VercelAiChannelOptions): void;
61
- export {};
71
+ export declare function captureToolError(span: Span, data: VercelAiChannelMessage, error: unknown): void;
62
72
  //# sourceMappingURL=vercel-ai-dc-subscriber.d.ts.map
@@ -1 +1 @@
1
- {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G;AACH,wBAAgB,+BAA+B,CAC7C,cAAc,EAAE,6BAA6B,EAC7C,OAAO,GAAE,sBAA2B,GACnC,IAAI,CAgBN;AAwCD,yGAAyG;AACzG,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAuBrG;AA4CD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,sBAAsB,EAC5B,cAAc,EAAE,sBAAsB,GACrC,IAAI,GAAG,SAAS,CAuDlB;AAiFD;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,sBAAsB,EAC5B,cAAc,EAAE,sBAAsB,GACrC,IAAI,CAsFN;AAuED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CA0B/F"}
@@ -0,0 +1,12 @@
1
+ import { type VercelAiChannelOptions, type VercelAiTracingChannelFactory } from './vercel-ai-dc-subscriber';
2
+ /**
3
+ * Subscribe the v6 orchestrion channel adapter. Safe to always call: inert on
4
+ * `ai` >= 7 (those channels are never published) and when orchestrion injection
5
+ * isn't active. Idempotent.
6
+ *
7
+ * `tracingChannel` is the platform-provided factory (the same one passed to
8
+ * `subscribeVercelAiTracingChannel`); `options` pins the recording settings at
9
+ * subscribe time so we never look the integration up per event.
10
+ */
11
+ export declare function subscribeVercelAiOrchestrionChannels(tracingChannel: VercelAiTracingChannelFactory, options?: VercelAiChannelOptions): void;
12
+ //# sourceMappingURL=vercel-ai-orchestrion-subscriber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vercel-ai-orchestrion-subscriber.d.ts","sourceRoot":"","sources":["../../../src/vercel-ai/vercel-ai-orchestrion-subscriber.ts"],"names":[],"mappings":"AAMA,OAAO,EAQL,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,EACnC,MAAM,2BAA2B,CAAC;AA+FnC;;;;;;;;GAQG;AACH,wBAAgB,oCAAoC,CAClD,cAAc,EAAE,6BAA6B,EAC7C,OAAO,GAAE,sBAA2B,GACnC,IAAI,CA8DN"}
@@ -0,0 +1,94 @@
1
+ import { TracingChannel } from 'node:diagnostics_channel';
2
+ import { GraphqlDocumentNode } from './utils';
3
+ export declare const GRAPHQL_DC_CHANNEL_PARSE = "graphql:parse";
4
+ export declare const GRAPHQL_DC_CHANNEL_VALIDATE = "graphql:validate";
5
+ export declare const GRAPHQL_DC_CHANNEL_EXECUTE = "graphql:execute";
6
+ export declare const GRAPHQL_DC_CHANNEL_SUBSCRIBE = "graphql:subscribe";
7
+ export declare const GRAPHQL_DC_CHANNEL_RESOLVE = "graphql:resolve";
8
+ /** Context published on the sync-only `graphql:parse` channel. */
9
+ export interface GraphqlParseData {
10
+ source: string | {
11
+ body?: string;
12
+ };
13
+ result?: GraphqlDocumentNode;
14
+ error?: unknown;
15
+ }
16
+ /** Context published on the sync-only `graphql:validate` channel. */
17
+ export interface GraphqlValidateData {
18
+ document: GraphqlDocumentNode;
19
+ /** Validation errors returned by validation; an empty array means the document is valid. */
20
+ result?: ReadonlyArray<unknown>;
21
+ error?: unknown;
22
+ }
23
+ /**
24
+ * Context published on the `graphql:execute` and `graphql:subscribe` channels.
25
+ *
26
+ * `result` carries an `ExecutionResult` (or, for subscriptions, an async generator); GraphQL errors
27
+ * collected during execution surface on `result.errors` rather than as the channel's `error`
28
+ * lifecycle event, which only fires on an abrupt throw.
29
+ */
30
+ export interface GraphqlOperationData {
31
+ document: GraphqlDocumentNode;
32
+ operationName?: string;
33
+ operationType?: string;
34
+ result?: unknown;
35
+ error?: unknown;
36
+ }
37
+ /**
38
+ * Context published on the per-field `graphql:resolve` channel.
39
+ *
40
+ * A resolver throw or rejection publishes the `error` lifecycle event here; the same failure also
41
+ * surfaces in the enclosing execution result.
42
+ */
43
+ export interface GraphqlResolveData {
44
+ fieldName: string;
45
+ parentType: string;
46
+ fieldType: string;
47
+ fieldPath: string;
48
+ /** Whether the field is handled by graphql's default property resolver (vs. a user resolver). */
49
+ isDefaultResolver: boolean;
50
+ alias?: string;
51
+ args?: unknown;
52
+ result?: unknown;
53
+ error?: unknown;
54
+ }
55
+ /** Options controlling which graphql channels the subscriber emits spans for. */
56
+ export interface GraphqlDiagnosticChannelsOptions {
57
+ /**
58
+ * Do not create spans for resolvers. Resolver spans are per-field and can be very high volume.
59
+ * Defaults to `true`.
60
+ */
61
+ ignoreResolveSpans?: boolean;
62
+ /**
63
+ * When resolver spans are enabled, do not create them for graphql's default property resolver
64
+ * (fields without a user-defined resolver), which are rarely interesting. Defaults to `true`.
65
+ */
66
+ ignoreTrivialResolveSpans?: boolean;
67
+ /**
68
+ * Rename the enclosing root span to include the operation name(s), e.g.
69
+ * `GET /graphql` -> `GET /graphql (query GetUser)`. Defaults to `true`.
70
+ */
71
+ useOperationNameForRootSpan?: boolean;
72
+ }
73
+ /**
74
+ * Platform-provided factory that creates a native tracing channel for the given name. The
75
+ * subscriber binds the span and its lifecycle onto the channel via `bindTracingChannelToSpan`,
76
+ * which propagates the active span through the runtime's async context.
77
+ *
78
+ * Node passes `node:diagnostics_channel`'s `tracingChannel` directly.
79
+ */
80
+ export type GraphqlTracingChannelFactory = <T extends object>(name: string) => TracingChannel<T, T>;
81
+ /**
82
+ * Subscribe Sentry span handlers to graphql's diagnostics-channel events
83
+ * (`graphql:parse`, `:validate`, `:execute`, `:subscribe`), published by graphql >= 17.0.0.
84
+ *
85
+ * On older graphql versions the channels are never published to, so the subscribers are inert —
86
+ * there is no double-instrumentation against the vendored OTel patcher, which is gated to `< 17`.
87
+ *
88
+ * The per-field `graphql:resolve` channel is only subscribed when `ignoreResolveSpans` is `false`:
89
+ * resolver spans are per-field and can be extremely high-volume, so they are off by default (matching
90
+ * the legacy OTel path). When enabled, `ignoreTrivialResolveSpans` (default `true`) additionally skips
91
+ * graphql's default property resolver.
92
+ */
93
+ export declare function subscribeGraphqlDiagnosticChannels(tracingChannel: GraphqlTracingChannelFactory, options?: GraphqlDiagnosticChannelsOptions): void;
94
+ //# sourceMappingURL=graphql-dc-subscriber.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { GraphqlDiagnosticChannelsOptions } from './graphql-dc-subscriber';
2
+ /**
3
+ * Auto-instrument the [graphql](https://www.npmjs.com/package/graphql) library via its native
4
+ * `node:diagnostics_channel` tracing channels (graphql >= 17).
5
+ *
6
+ * On older graphql versions the channels are never published to, so this integration is inert and
7
+ * the vendored OTel instrumentation (gated to `< 17`) handles instrumentation instead.
8
+ */
9
+ export declare const graphqlIntegration: (options?: GraphqlDiagnosticChannelsOptions | undefined) => import("@sentry/core").Integration & {
10
+ name: "Graphql";
11
+ };
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,40 @@
1
+ import { Span } from '@sentry/core';
2
+ /** Minimal shape of a graphql-js lexer token, enough to locate literal spans for redaction. */
3
+ interface GraphqlToken {
4
+ kind: string;
5
+ start: number;
6
+ end: number;
7
+ next?: GraphqlToken | null;
8
+ }
9
+ /** Minimal shape of a parsed graphql-js `DocumentNode`, enough to read its source and tokens. */
10
+ export interface GraphqlDocumentNode {
11
+ loc?: {
12
+ startToken?: GraphqlToken;
13
+ source?: {
14
+ body?: string;
15
+ };
16
+ };
17
+ }
18
+ /**
19
+ * Rename the enclosing root span to include the operation name(s), e.g. `GET /graphql (query GetUser)`.
20
+ * Mirrors the legacy OTel `useOperationNameForRootSpan` behavior; `parseSpanDescription` reads the same
21
+ * `sentry.graphql.operation` attribute on the OTel export path.
22
+ */
23
+ export declare function renameRootSpanWithOperation(span: Span, operationType: string, operationName?: string): void;
24
+ /**
25
+ * Span name follows the GraphQL semantic conventions: `<operation.type> <operation.name>` when both
26
+ * are available, `<operation.type>` when only the type is, otherwise a static fallback.
27
+ */
28
+ export declare function getOperationSpanName(operationType: string | undefined, operationName: string | undefined, fallbackName: string): string;
29
+ /** Whether a graphql execution result carries GraphQL errors (returned on `result.errors`). */
30
+ export declare function hasResultErrors(result: unknown): boolean;
31
+ /**
32
+ * Serialize a parsed document into `graphql.document` while redacting every literal argument value:
33
+ * the original source text is preserved verbatim except that string/number literal spans are
34
+ * replaced (`"foo"` -> `"*"`, `42` -> `*`). graphql does not sanitize its channel payload, so this
35
+ * prevents raw inline values (potential PII) from leaving the process. Variable values are never
36
+ * included. Returns `undefined` (rather than throwing) on anything it cannot serialize.
37
+ */
38
+ export declare function redactGraphqlDocument(document: GraphqlDocumentNode | undefined): string | undefined;
39
+ export {};
40
+ //# sourceMappingURL=utils.d.ts.map