@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
@@ -4,8 +4,12 @@
4
4
  *
5
5
  * @module
6
6
  */
7
- export { IOREDIS_DC_CHANNEL_COMMAND, IOREDIS_DC_CHANNEL_CONNECT, REDIS_DC_CHANNEL_BATCH, REDIS_DC_CHANNEL_COMMAND, REDIS_DC_CHANNEL_CONNECT, subscribeRedisDiagnosticChannels, } from './redis/redis-dc-subscriber';
8
- export { IORedisCommandData, RedisBatchData, RedisCommandData, RedisConnectData, RedisDiagnosticChannelResponseHook, RedisTracingChannelFactory, } from './redis/redis-dc-subscriber';
7
+ export { graphqlIntegration } from './graphql';
8
+ export { mongooseIntegration } from './mongoose';
9
+ export { mysql2Integration } from './mysql2';
10
+ export { redisIntegration, RedisDiagnosticChannelsOptions } from './redis';
11
+ export { RedisDiagnosticChannelResponseHook } from './redis/redis-dc-subscriber';
12
+ export { defaultDbStatementSerializer } from './redis/redis-statement-serializer';
9
13
  export { bindTracingChannelToSpan } from './tracing-channel';
10
14
  export { SentryTracingChannel, TracingChannelLifeCycleOptions, TracingChannelBindingHandle, TracingChannelPayloadWithSpan, } from './tracing-channel';
11
15
  export { vercelAiIntegration } from './vercel-ai';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * EXPERIMENTAL: orchestrion-driven `amqplib` integration.
3
+ *
4
+ * Subscribes to the `orchestrion:amqplib:*` diagnostics_channels that the orchestrion code transform
5
+ * injects into `amqplib`'s channel/connection methods. Requires the orchestrion runtime hook or
6
+ * bundler plugin to be active.
7
+ */
8
+ export declare const amqplibChannelIntegration: () => import("@sentry/core").Integration & {
9
+ name: "Amqplib";
10
+ };
11
+ //# sourceMappingURL=amqplib.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { AnthropicAiOptions } from '@sentry/core';
2
+ /**
3
+ * EXPERIMENTAL — orchestrion-driven Anthropic integration. Subscribes to the `orchestrion:@anthropic-ai/sdk:*`
4
+ * diagnostics_channels injected into the SDK's chat (`messages`/`completions`/beta `messages`), `models`, and
5
+ * `messages.stream()` methods, so it requires the orchestrion runtime hook or bundler plugin.
6
+ */
7
+ export declare const anthropicChannelIntegration: (options?: AnthropicAiOptions | undefined) => import("@sentry/core").Integration & {
8
+ name: "Anthropic_AI";
9
+ };
10
+ //# sourceMappingURL=anthropic.d.ts.map
@@ -0,0 +1,18 @@
1
+ import { ExpressIntegrationOptions } from './types';
2
+ /**
3
+ * EXPERIMENTAL — orchestrion-driven Express integration.
4
+ *
5
+ * Subscribes to the `orchestrion:express:handle` (Express v4) and
6
+ * `orchestrion:router:handle` (Express v5, via the `router` package)
7
+ * diagnostics_channels that the orchestrion code transform injects into the
8
+ * routing layer's request handler (`Layer.prototype.handle_request` /
9
+ * `handleRequest`). One span is opened per layer invocation — producing the
10
+ * same spans as the OTel Express instrumentation.
11
+ *
12
+ * Requires the orchestrion runtime hook or bundler plugin to be active — wire
13
+ * that up via `experimentalUseDiagnosticsChannelInjection()`.
14
+ */
15
+ export declare const expressChannelIntegration: (options?: ExpressIntegrationOptions | undefined) => import("@sentry/core").Integration & {
16
+ name: "Express";
17
+ };
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ import * as diagnosticsChannel from 'node:diagnostics_channel';
2
+ import { ExpressIntegrationOptions } from './types';
3
+ export declare function instrumentExpress(options: ExpressIntegrationOptions, tracingChannel: typeof diagnosticsChannel.tracingChannel): void;
4
+ //# sourceMappingURL=instrumentation.d.ts.map
@@ -0,0 +1,28 @@
1
+ import { ExpressLayer, ExpressRequest } from './types';
2
+ /** Record the path pattern a layer was registered with. */
3
+ export declare function setLayerRegisteredPath(layer: ExpressLayer, path: string | undefined): void;
4
+ /** Read the path pattern a layer was registered with, if any. */
5
+ export declare function getLayerRegisteredPath(layer: ExpressLayer): string | undefined;
6
+ /** Push a layer's registered path onto the request's chain. */
7
+ export declare function pushLayerPath(req: ExpressRequest, path: string): void;
8
+ /** Pop the most recently pushed layer path off the request's chain. */
9
+ export declare function popLayerPath(req: ExpressRequest): void;
10
+ /**
11
+ * The path pattern a `route`/`use` call registered, derived from its arguments.
12
+ * A leading string/RegExp/number path becomes the pattern (arrays are joined
13
+ * with `,`); a bare handler function yields `undefined`. Kept in sync with
14
+ * `@sentry/core`'s Express `getLayerPath`.
15
+ */
16
+ export declare function getLayerPath(args: unknown[]): string | undefined;
17
+ /**
18
+ * Concatenate the stored layer paths into the full route pattern (parameters
19
+ * preserved), e.g. `/api/:version/user`. Mirrors `@sentry/core`.
20
+ */
21
+ export declare function getConstructedRoute(req: ExpressRequest): string;
22
+ /**
23
+ * Validate the constructed route against the request URL, returning it only
24
+ * when it plausibly corresponds to a real match (otherwise `undefined`). Mirrors
25
+ * `@sentry/core`'s `getActualMatchedRoute` — used for the `http.route` attribute.
26
+ */
27
+ export declare function getActualMatchedRoute(req: ExpressRequest, constructedRoute: string): string | undefined;
28
+ //# sourceMappingURL=route.d.ts.map
@@ -0,0 +1,64 @@
1
+ export type ExpressLayerType = 'router' | 'middleware' | 'request_handler';
2
+ /**
3
+ * The subset of an Express routing `Layer` we read at handle time. `handle` is
4
+ * the user's middleware/handler; `route` is only set on route-dispatch layers
5
+ * (and carries the parameterized path).
6
+ */
7
+ export interface ExpressLayer {
8
+ handle?: {
9
+ length?: number;
10
+ };
11
+ name?: string;
12
+ path?: string;
13
+ route?: {
14
+ path?: unknown;
15
+ };
16
+ method?: string;
17
+ }
18
+ /** Minimal Express request/response shapes — avoids a hard dep on `node:http`. */
19
+ export interface ExpressRequest {
20
+ method?: string;
21
+ baseUrl?: string;
22
+ originalUrl?: string;
23
+ }
24
+ export interface ExpressResponse {
25
+ once(event: string, listener: () => void): unknown;
26
+ removeListener(event: string, listener: () => void): unknown;
27
+ }
28
+ /**
29
+ * The shape orchestrion's transform attaches to the tracing-channel `context`
30
+ * object for `Layer.prototype.handle_request`/`handleRequest`: `self` is the
31
+ * Layer the method was invoked on and `arguments` are `[req, res, next]`.
32
+ *
33
+ * `_sentryCleanup` is ours: a teardown for the `res.on('finish')` listener we
34
+ * register, invoked from `beforeSpanEnd` when the span ends via `next()`.
35
+ * `_sentryStoredLayer` marks that this invocation pushed a layer path (so the
36
+ * matching pop on `asyncStart` stays symmetric).
37
+ */
38
+ export interface HandleChannelContext {
39
+ self?: ExpressLayer;
40
+ arguments?: unknown[];
41
+ _sentryCleanup?: () => void;
42
+ _sentryStoredLayer?: boolean;
43
+ }
44
+ /**
45
+ * The context orchestrion attaches to the `route`/`use` registration channels:
46
+ * `self` is the router the method was invoked on (its freshly-pushed layer is
47
+ * the last entry in `stack`) and `arguments` are the registration args (the
48
+ * first of which is the path pattern).
49
+ */
50
+ export interface RegistrationChannelContext {
51
+ self?: {
52
+ stack?: ExpressLayer[];
53
+ };
54
+ arguments?: unknown[];
55
+ }
56
+ type IgnoreMatcher = string | RegExp | ((name: string) => boolean);
57
+ export interface ExpressIntegrationOptions {
58
+ /** Ignore specific based on their name */
59
+ ignoreLayers?: IgnoreMatcher[];
60
+ /** Ignore specific layers based on their type */
61
+ ignoreLayersType?: ExpressLayerType[];
62
+ }
63
+ export {};
64
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { GoogleGenAIOptions } from '@sentry/core';
2
+ /**
3
+ * EXPERIMENTAL — orchestrion-driven Google GenAI integration. Subscribes to the
4
+ * `orchestrion:@google/genai:*` diagnostics_channels injected into the SDK's `Models`
5
+ * (`generateContent`/`generateContentStream`/`embedContent`) and `Chat`
6
+ * (`sendMessage`/`sendMessageStream`) methods, so it requires the orchestrion runtime hook or
7
+ * bundler plugin.
8
+ */
9
+ export declare const googleGenAIChannelIntegration: (options?: GoogleGenAIOptions | undefined) => import("@sentry/core").Integration & {
10
+ name: "Google_GenAI";
11
+ };
12
+ //# sourceMappingURL=google-genai.d.ts.map
@@ -0,0 +1,12 @@
1
+ export declare const ORIGIN = "auto.graphql.diagnostic_channel";
2
+ export declare const SPAN_NAME_PARSE = "graphql.parse";
3
+ export declare const SPAN_NAME_VALIDATE = "graphql.validate";
4
+ export declare const SPAN_NAME_EXECUTE = "graphql.execute";
5
+ export declare const SPAN_NAME_RESOLVE = "graphql.resolve";
6
+ export declare const GRAPHQL_FIELD_NAME = "graphql.field.name";
7
+ export declare const GRAPHQL_FIELD_PATH = "graphql.field.path";
8
+ export declare const GRAPHQL_FIELD_TYPE = "graphql.field.type";
9
+ export declare const GRAPHQL_PARENT_NAME = "graphql.parent.name";
10
+ export declare const GRAPHQL_DATA_SYMBOL: unique symbol;
11
+ export declare const GRAPHQL_PATCHED_SYMBOL: unique symbol;
12
+ //# sourceMappingURL=constants.d.ts.map
@@ -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
@@ -0,0 +1,65 @@
1
+ declare const LIFECYCLE_EXT_POINTS: readonly [
2
+ "onPreAuth",
3
+ "onCredentials",
4
+ "onPostAuth",
5
+ "onPreHandler",
6
+ "onPostHandler",
7
+ "onPreResponse",
8
+ "onRequest"
9
+ ];
10
+ export type ServerRequestExtType = (typeof LIFECYCLE_EXT_POINTS)[number];
11
+ export type LifecycleMethod = (request: unknown, h: unknown, err?: Error) => unknown;
12
+ export interface ServerRouteOptions {
13
+ handler?: LifecycleMethod | unknown;
14
+ [key: string]: unknown;
15
+ }
16
+ export interface ServerRoute {
17
+ path: string;
18
+ method: string;
19
+ handler?: LifecycleMethod | unknown;
20
+ options?: ((server: unknown) => ServerRouteOptions) | ServerRouteOptions;
21
+ [key: string]: unknown;
22
+ }
23
+ export interface ServerExtEventsObject {
24
+ type: string;
25
+ [key: string]: unknown;
26
+ }
27
+ export interface ServerExtEventsRequestObject {
28
+ type: ServerRequestExtType;
29
+ method: LifecycleMethod;
30
+ [key: string]: unknown;
31
+ }
32
+ export interface ServerExtOptions {
33
+ [key: string]: unknown;
34
+ }
35
+ /**
36
+ * This symbol is used to mark a Hapi route handler or server extension handler as
37
+ * already patched, since it's possible to use these handlers multiple times
38
+ * i.e. when allowing multiple versions of one plugin, or when registering a plugin
39
+ * multiple times on different servers.
40
+ */
41
+ export declare const handlerPatched: unique symbol;
42
+ export type PatchableServerRoute = ServerRoute & {
43
+ [handlerPatched]?: boolean;
44
+ };
45
+ export type PatchableExtMethod = LifecycleMethod & {
46
+ [handlerPatched]?: boolean;
47
+ };
48
+ export type ServerExtDirectInput = [
49
+ ServerRequestExtType,
50
+ LifecycleMethod,
51
+ (ServerExtOptions | undefined)?
52
+ ];
53
+ export declare const HapiLayerType: {
54
+ readonly ROUTER: "router";
55
+ readonly PLUGIN: "plugin";
56
+ readonly EXT: "server.ext";
57
+ };
58
+ export declare const HapiLifecycleMethodNames: Set<string>;
59
+ export declare enum AttributeNames {
60
+ HAPI_TYPE = "hapi.type",
61
+ PLUGIN_NAME = "hapi.plugin.name",
62
+ EXT_TYPE = "server.ext.type"
63
+ }
64
+ export {};
65
+ //# sourceMappingURL=hapi-types.d.ts.map
@@ -0,0 +1,25 @@
1
+ import { ServerRequestExtType, ServerRoute } from './hapi-types';
2
+ type SpanAttributes = Record<string, string | undefined>;
3
+ interface SpanMetadata {
4
+ attributes: SpanAttributes;
5
+ name: string;
6
+ }
7
+ /** Build the span name and attributes for a Hapi route. */
8
+ export declare const getRouteMetadata: (route: ServerRoute, pluginName?: string) => SpanMetadata;
9
+ /** Build the span name and attributes for a Hapi server extension. */
10
+ export declare const getExtMetadata: (extPoint: ServerRequestExtType, pluginName?: string, methodName?: string) => SpanMetadata;
11
+ /**
12
+ * Wrap the route handler(s) in the live `server.route` arguments array, mutating
13
+ * `args[0]` in place. `args[0]` is either a single route options object or an
14
+ * array of them. Idempotent via the `handlerPatched` marker.
15
+ */
16
+ export declare function wrapRouteArguments(args: unknown[], pluginName?: string): void;
17
+ /**
18
+ * Wrap the extension method(s) in the live `server.ext` arguments array,
19
+ * mutating `args` in place. Handles the three accepted input shapes:
20
+ * `(eventsArray)`, `(lifecycleEventObject)`, and `(extTypeString, method, options)`.
21
+ * Idempotent via the `handlerPatched` marker.
22
+ */
23
+ export declare function wrapExtArguments(args: unknown[], pluginName?: string): void;
24
+ export {};
25
+ //# sourceMappingURL=hapi-utils.d.ts.map
@@ -0,0 +1,9 @@
1
+ /**
2
+ * EXPERIMENTAL — orchestrion-driven hapi integration. Subscribes to the
3
+ * `orchestrion:@hapi/hapi:route` / `:ext` channels injected into `@hapi/hapi`'s
4
+ * `lib/server.js`. Requires the orchestrion runtime hook or bundler plugin.
5
+ */
6
+ export declare const hapiChannelIntegration: () => import("@sentry/core").Integration & {
7
+ name: "Hapi";
8
+ };
9
+ //# sourceMappingURL=hapi.d.ts.map
@@ -0,0 +1,17 @@
1
+ import { Span } from '@sentry/core';
2
+ /** Mirrors `@opentelemetry/instrumentation-ioredis`' response hook. Not called for failed commands. */
3
+ export type IORedisResponseHook = (span: Span, command: string, args: Array<string | Buffer>, result: unknown) => void;
4
+ export interface IORedisChannelIntegrationOptions {
5
+ responseHook?: IORedisResponseHook;
6
+ }
7
+ /**
8
+ * EXPERIMENTAL — orchestrion-driven ioredis integration. Subscribes to
9
+ * `orchestrion:ioredis:command` / `:connect` (injected into ioredis' `<5.11.0`
10
+ * `sendCommand`/`connect`) and creates db spans matching
11
+ * `@opentelemetry/instrumentation-ioredis`. Requires the orchestrion runtime hook
12
+ * or bundler plugin.
13
+ */
14
+ export declare const ioredisChannelIntegration: (options?: IORedisChannelIntegrationOptions | undefined) => import("@sentry/core").Integration & {
15
+ name: "IORedis";
16
+ };
17
+ //# sourceMappingURL=ioredis.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { OpenAiOptions } from '@sentry/core';
2
+ /**
3
+ * EXPERIMENTAL — orchestrion-driven OpenAI integration. Subscribes to the `orchestrion:openai:*`
4
+ * diagnostics_channels injected into `openai`'s `create` methods (chat completions, responses, embeddings,
5
+ * conversations), so it requires the orchestrion runtime hook or bundler plugin.
6
+ */
7
+ export declare const openaiChannelIntegration: (options?: OpenAiOptions | undefined) => import("@sentry/core").Integration & {
8
+ name: "OpenAI";
9
+ };
10
+ //# sourceMappingURL=openai.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,15 @@
1
+ /**
2
+ * EXPERIMENTAL: orchestrion-driven `pg` (node-postgres) integration.
3
+ *
4
+ * Subscribes to the `orchestrion:pg:query`/`:connect` and
5
+ * `orchestrion:pg-pool:connect` diagnostics_channels that the orchestrion code
6
+ * transform injects into `pg`'s `Client.prototype.query`/`connect`
7
+ * and `pg-pool`'s `Pool.prototype.connect`. Requires the orchestrion runtime
8
+ * hook or bundler plugin to be active.
9
+ */
10
+ export declare const postgresChannelIntegration: (options?: {
11
+ ignoreConnectSpans?: boolean;
12
+ } | undefined) => import("@sentry/core").Integration & {
13
+ name: "Postgres";
14
+ };
15
+ //# sourceMappingURL=postgres.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
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Auto-instrument the `ai` SDK. Supported are:
3
+ * - v7 via native `ai:telemetry` tracing channel
4
+ * - v4, v5 & v6 via orchestrion `orchestrion:ai:*` channels
5
+ */
6
+ export declare const vercelAiChannelIntegration: (options?: {
7
+ recordInputs?: boolean;
8
+ recordOutputs?: boolean;
9
+ enableTruncation?: boolean;
10
+ } | undefined) => import("@sentry/core").Integration & {
11
+ name: "VercelAI";
12
+ };
13
+ //# sourceMappingURL=vercel-ai.d.ts.map
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Auto-instrument the [mongoose](https://www.npmjs.com/package/mongoose) library via its native
3
+ * `node:diagnostics_channel` tracing channels (mongoose >= 9.7).
4
+ *
5
+ * On older mongoose versions the channels are never published to, so this integration is inert and
6
+ * the IITM-based patcher (gated to `< 9.7.0`) handles instrumentation instead.
7
+ */
8
+ export declare const mongooseIntegration: () => import("@sentry/core").Integration & {
9
+ name: string;
10
+ };
11
+ //# sourceMappingURL=index.d.ts.map