@sentry/server-utils 11.0.0-beta.2 → 11.0.0-rc.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 (278) hide show
  1. package/build/THIRD-PARTY-LICENSES.txt +32 -32
  2. package/build/cjs/ai/core/utils.js +41 -0
  3. package/build/cjs/ai/core/utils.js.map +1 -1
  4. package/build/cjs/ai/flue/constants.js +16 -0
  5. package/build/cjs/ai/flue/constants.js.map +1 -0
  6. package/build/cjs/ai/flue/index.js +115 -0
  7. package/build/cjs/ai/flue/index.js.map +1 -0
  8. package/build/cjs/ai/flue/utils.js +202 -0
  9. package/build/cjs/ai/flue/utils.js.map +1 -0
  10. package/build/cjs/ai/google-genai/index.js +10 -8
  11. package/build/cjs/ai/google-genai/index.js.map +1 -1
  12. package/build/cjs/ai/google-genai/streaming.js +11 -3
  13. package/build/cjs/ai/google-genai/streaming.js.map +1 -1
  14. package/build/cjs/ai/google-genai/utils.js +120 -10
  15. package/build/cjs/ai/google-genai/utils.js.map +1 -1
  16. package/build/cjs/ai/mastra/constants.js +2 -0
  17. package/build/cjs/ai/mastra/constants.js.map +1 -1
  18. package/build/cjs/ai/mastra/index.js +16 -7
  19. package/build/cjs/ai/mastra/index.js.map +1 -1
  20. package/build/cjs/ai/mastra/span-registry.js +20 -0
  21. package/build/cjs/ai/mastra/span-registry.js.map +1 -0
  22. package/build/cjs/ai/mistral/constants.js +20 -0
  23. package/build/cjs/ai/mistral/constants.js.map +1 -0
  24. package/build/cjs/ai/mistral/index.js +130 -0
  25. package/build/cjs/ai/mistral/index.js.map +1 -0
  26. package/build/cjs/ai/mistral/streaming.js +208 -0
  27. package/build/cjs/ai/mistral/streaming.js.map +1 -0
  28. package/build/cjs/ai/mistral/utils.js +87 -0
  29. package/build/cjs/ai/mistral/utils.js.map +1 -0
  30. package/build/cjs/ai/vercel-ai/index.js +6 -1
  31. package/build/cjs/ai/vercel-ai/index.js.map +1 -1
  32. package/build/cjs/ai/workers-ai/index.js +1 -4
  33. package/build/cjs/ai/workers-ai/index.js.map +1 -1
  34. package/build/cjs/ai/workers-ai/streaming.js +2 -3
  35. package/build/cjs/ai/workers-ai/streaming.js.map +1 -1
  36. package/build/cjs/ai/workers-ai/utils.js +2 -27
  37. package/build/cjs/ai/workers-ai/utils.js.map +1 -1
  38. package/build/cjs/eve.js +20 -0
  39. package/build/cjs/eve.js.map +1 -0
  40. package/build/cjs/index.js +55 -44
  41. package/build/cjs/index.js.map +1 -1
  42. package/build/cjs/index.no-diagnostic-channels.js +19 -14
  43. package/build/cjs/index.no-diagnostic-channels.js.map +1 -1
  44. package/build/cjs/integrations/aws-sdk/constants.js +0 -2
  45. package/build/cjs/integrations/aws-sdk/constants.js.map +1 -1
  46. package/build/cjs/integrations/aws-sdk/services/lambda.js +1 -1
  47. package/build/cjs/integrations/aws-sdk/services/lambda.js.map +1 -1
  48. package/build/cjs/integrations/aws-sdk/services/sns.js +1 -1
  49. package/build/cjs/integrations/aws-sdk/services/sns.js.map +1 -1
  50. package/build/cjs/integrations/fastify/index.js.map +1 -1
  51. package/build/cjs/integrations/fastify/instrumentation.js.map +1 -1
  52. package/build/cjs/integrations/index.js +6 -0
  53. package/build/cjs/integrations/index.js.map +1 -1
  54. package/build/cjs/integrations/knex.js +5 -3
  55. package/build/cjs/integrations/knex.js.map +1 -1
  56. package/build/cjs/integrations/koa/index.js +2 -8
  57. package/build/cjs/integrations/koa/index.js.map +1 -1
  58. package/build/cjs/integrations/langchain.js +7 -1
  59. package/build/cjs/integrations/langchain.js.map +1 -1
  60. package/build/cjs/integrations/mastra.js +65 -2
  61. package/build/cjs/integrations/mastra.js.map +1 -1
  62. package/build/cjs/integrations/mistral.js +81 -0
  63. package/build/cjs/integrations/mistral.js.map +1 -0
  64. package/build/cjs/integrations/mysql.js +3 -3
  65. package/build/cjs/integrations/mysql.js.map +1 -1
  66. package/build/cjs/integrations/mysql2/index.js +3 -3
  67. package/build/cjs/integrations/mysql2/index.js.map +1 -1
  68. package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js +1 -2
  69. package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
  70. package/build/cjs/integrations/postgres.js +3 -3
  71. package/build/cjs/integrations/postgres.js.map +1 -1
  72. package/build/cjs/integrations/prisma/tracing-helper.js +1 -1
  73. package/build/cjs/integrations/prisma/tracing-helper.js.map +1 -1
  74. package/build/cjs/integrations/tedious.js +4 -3
  75. package/build/cjs/integrations/tedious.js.map +1 -1
  76. package/build/cjs/integrations/vercel-ai/util.js +0 -4
  77. package/build/cjs/integrations/vercel-ai/util.js.map +1 -1
  78. package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js +23 -1
  79. package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  80. package/build/cjs/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js +2 -1
  81. package/build/cjs/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
  82. package/build/cjs/orchestrion/bundler/options.js +1 -0
  83. package/build/cjs/orchestrion/bundler/options.js.map +1 -1
  84. package/build/cjs/orchestrion/bundler/rollup.js +6 -2
  85. package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
  86. package/build/cjs/orchestrion/channels.js +2 -0
  87. package/build/cjs/orchestrion/channels.js.map +1 -1
  88. package/build/cjs/orchestrion/config/channel-integration-definitions.js +1 -0
  89. package/build/cjs/orchestrion/config/channel-integration-definitions.js.map +1 -1
  90. package/build/cjs/orchestrion/config/index.js +10 -0
  91. package/build/cjs/orchestrion/config/index.js.map +1 -1
  92. package/build/cjs/orchestrion/config/mastra.js +14 -2
  93. package/build/cjs/orchestrion/config/mastra.js.map +1 -1
  94. package/build/cjs/orchestrion/config/mistral.js +57 -0
  95. package/build/cjs/orchestrion/config/mistral.js.map +1 -0
  96. package/build/cjs/tracing-channel.js +1 -0
  97. package/build/cjs/tracing-channel.js.map +1 -1
  98. package/build/cjs/utils/sql.js +68 -15
  99. package/build/cjs/utils/sql.js.map +1 -1
  100. package/build/esm/ai/core/utils.js +42 -3
  101. package/build/esm/ai/core/utils.js.map +1 -1
  102. package/build/esm/ai/flue/constants.js +11 -0
  103. package/build/esm/ai/flue/constants.js.map +1 -0
  104. package/build/esm/ai/flue/index.js +113 -0
  105. package/build/esm/ai/flue/index.js.map +1 -0
  106. package/build/esm/ai/flue/utils.js +193 -0
  107. package/build/esm/ai/flue/utils.js.map +1 -0
  108. package/build/esm/ai/google-genai/index.js +12 -10
  109. package/build/esm/ai/google-genai/index.js.map +1 -1
  110. package/build/esm/ai/google-genai/streaming.js +9 -1
  111. package/build/esm/ai/google-genai/streaming.js.map +1 -1
  112. package/build/esm/ai/google-genai/utils.js +117 -11
  113. package/build/esm/ai/google-genai/utils.js.map +1 -1
  114. package/build/esm/ai/mastra/constants.js +2 -1
  115. package/build/esm/ai/mastra/constants.js.map +1 -1
  116. package/build/esm/ai/mastra/index.js +14 -5
  117. package/build/esm/ai/mastra/index.js.map +1 -1
  118. package/build/esm/ai/mastra/span-registry.js +16 -0
  119. package/build/esm/ai/mastra/span-registry.js.map +1 -0
  120. package/build/esm/ai/mistral/constants.js +15 -0
  121. package/build/esm/ai/mistral/constants.js.map +1 -0
  122. package/build/esm/ai/mistral/index.js +126 -0
  123. package/build/esm/ai/mistral/index.js.map +1 -0
  124. package/build/esm/ai/mistral/streaming.js +205 -0
  125. package/build/esm/ai/mistral/streaming.js.map +1 -0
  126. package/build/esm/ai/mistral/utils.js +82 -0
  127. package/build/esm/ai/mistral/utils.js.map +1 -0
  128. package/build/esm/ai/vercel-ai/index.js +6 -1
  129. package/build/esm/ai/vercel-ai/index.js.map +1 -1
  130. package/build/esm/ai/workers-ai/index.js +2 -5
  131. package/build/esm/ai/workers-ai/index.js.map +1 -1
  132. package/build/esm/ai/workers-ai/streaming.js +1 -2
  133. package/build/esm/ai/workers-ai/streaming.js.map +1 -1
  134. package/build/esm/ai/workers-ai/utils.js +2 -27
  135. package/build/esm/ai/workers-ai/utils.js.map +1 -1
  136. package/build/esm/eve.js +18 -0
  137. package/build/esm/eve.js.map +1 -0
  138. package/build/esm/index.js +6 -1
  139. package/build/esm/index.js.map +1 -1
  140. package/build/esm/index.no-diagnostic-channels.js +3 -1
  141. package/build/esm/index.no-diagnostic-channels.js.map +1 -1
  142. package/build/esm/integrations/aws-sdk/constants.js +1 -2
  143. package/build/esm/integrations/aws-sdk/constants.js.map +1 -1
  144. package/build/esm/integrations/aws-sdk/services/lambda.js +2 -2
  145. package/build/esm/integrations/aws-sdk/services/lambda.js.map +1 -1
  146. package/build/esm/integrations/aws-sdk/services/sns.js +3 -3
  147. package/build/esm/integrations/aws-sdk/services/sns.js.map +1 -1
  148. package/build/esm/integrations/fastify/index.js.map +1 -1
  149. package/build/esm/integrations/fastify/instrumentation.js.map +1 -1
  150. package/build/esm/integrations/index.js +6 -0
  151. package/build/esm/integrations/index.js.map +1 -1
  152. package/build/esm/integrations/knex.js +6 -4
  153. package/build/esm/integrations/knex.js.map +1 -1
  154. package/build/esm/integrations/koa/index.js +3 -9
  155. package/build/esm/integrations/koa/index.js.map +1 -1
  156. package/build/esm/integrations/langchain.js +7 -1
  157. package/build/esm/integrations/langchain.js.map +1 -1
  158. package/build/esm/integrations/mastra.js +67 -4
  159. package/build/esm/integrations/mastra.js.map +1 -1
  160. package/build/esm/integrations/mistral.js +66 -0
  161. package/build/esm/integrations/mistral.js.map +1 -0
  162. package/build/esm/integrations/mysql.js +4 -4
  163. package/build/esm/integrations/mysql.js.map +1 -1
  164. package/build/esm/integrations/mysql2/index.js +4 -4
  165. package/build/esm/integrations/mysql2/index.js.map +1 -1
  166. package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js +2 -3
  167. package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
  168. package/build/esm/integrations/postgres.js +4 -4
  169. package/build/esm/integrations/postgres.js.map +1 -1
  170. package/build/esm/integrations/prisma/tracing-helper.js +2 -2
  171. package/build/esm/integrations/prisma/tracing-helper.js.map +1 -1
  172. package/build/esm/integrations/tedious.js +5 -4
  173. package/build/esm/integrations/tedious.js.map +1 -1
  174. package/build/esm/integrations/vercel-ai/util.js +1 -4
  175. package/build/esm/integrations/vercel-ai/util.js.map +1 -1
  176. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +24 -2
  177. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  178. package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js +2 -1
  179. package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
  180. package/build/esm/orchestrion/bundler/options.js +1 -0
  181. package/build/esm/orchestrion/bundler/options.js.map +1 -1
  182. package/build/esm/orchestrion/bundler/rollup.js +6 -2
  183. package/build/esm/orchestrion/bundler/rollup.js.map +1 -1
  184. package/build/esm/orchestrion/channels.js +2 -0
  185. package/build/esm/orchestrion/channels.js.map +1 -1
  186. package/build/esm/orchestrion/config/channel-integration-definitions.js +1 -0
  187. package/build/esm/orchestrion/config/channel-integration-definitions.js.map +1 -1
  188. package/build/esm/orchestrion/config/index.js +9 -1
  189. package/build/esm/orchestrion/config/index.js.map +1 -1
  190. package/build/esm/orchestrion/config/mastra.js +14 -2
  191. package/build/esm/orchestrion/config/mastra.js.map +1 -1
  192. package/build/esm/orchestrion/config/mistral.js +53 -0
  193. package/build/esm/orchestrion/config/mistral.js.map +1 -0
  194. package/build/esm/package.json +1 -1
  195. package/build/esm/tracing-channel.js +1 -1
  196. package/build/esm/tracing-channel.js.map +1 -1
  197. package/build/esm/utils/sql.js +67 -16
  198. package/build/esm/utils/sql.js.map +1 -1
  199. package/build/types/ai/core/utils.d.ts +28 -0
  200. package/build/types/ai/core/utils.d.ts.map +1 -1
  201. package/build/types/ai/flue/constants.d.ts +35 -0
  202. package/build/types/ai/flue/constants.d.ts.map +1 -0
  203. package/build/types/ai/flue/index.d.ts +18 -0
  204. package/build/types/ai/flue/index.d.ts.map +1 -0
  205. package/build/types/ai/flue/types.d.ts +118 -0
  206. package/build/types/ai/flue/types.d.ts.map +1 -0
  207. package/build/types/ai/flue/utils.d.ts +38 -0
  208. package/build/types/ai/flue/utils.d.ts.map +1 -0
  209. package/build/types/ai/google-genai/index.d.ts.map +1 -1
  210. package/build/types/ai/google-genai/streaming.d.ts.map +1 -1
  211. package/build/types/ai/google-genai/utils.d.ts +28 -4
  212. package/build/types/ai/google-genai/utils.d.ts.map +1 -1
  213. package/build/types/ai/index.d.ts +3 -0
  214. package/build/types/ai/index.d.ts.map +1 -1
  215. package/build/types/ai/mastra/constants.d.ts +2 -0
  216. package/build/types/ai/mastra/constants.d.ts.map +1 -1
  217. package/build/types/ai/mastra/index.d.ts +2 -0
  218. package/build/types/ai/mastra/index.d.ts.map +1 -1
  219. package/build/types/ai/mastra/span-registry.d.ts +5 -0
  220. package/build/types/ai/mastra/span-registry.d.ts.map +1 -0
  221. package/build/types/ai/mistral/constants.d.ts +30 -0
  222. package/build/types/ai/mistral/constants.d.ts.map +1 -0
  223. package/build/types/ai/mistral/index.d.ts +20 -0
  224. package/build/types/ai/mistral/index.d.ts.map +1 -0
  225. package/build/types/ai/mistral/streaming.d.ts +24 -0
  226. package/build/types/ai/mistral/streaming.d.ts.map +1 -0
  227. package/build/types/ai/mistral/types.d.ts +39 -0
  228. package/build/types/ai/mistral/types.d.ts.map +1 -0
  229. package/build/types/ai/mistral/utils.d.ts +20 -0
  230. package/build/types/ai/mistral/utils.d.ts.map +1 -0
  231. package/build/types/ai/vercel-ai/index.d.ts.map +1 -1
  232. package/build/types/ai/workers-ai/index.d.ts.map +1 -1
  233. package/build/types/ai/workers-ai/utils.d.ts +2 -14
  234. package/build/types/ai/workers-ai/utils.d.ts.map +1 -1
  235. package/build/types/eve.d.ts +47 -0
  236. package/build/types/eve.d.ts.map +1 -0
  237. package/build/types/exports.d.ts +1 -1
  238. package/build/types/exports.d.ts.map +1 -1
  239. package/build/types/index.d.ts +5 -0
  240. package/build/types/index.d.ts.map +1 -1
  241. package/build/types/integrations/aws-sdk/constants.d.ts +2 -3
  242. package/build/types/integrations/aws-sdk/constants.d.ts.map +1 -1
  243. package/build/types/integrations/aws-sdk/services/lambda.d.ts.map +1 -1
  244. package/build/types/integrations/aws-sdk/services/sns.d.ts.map +1 -1
  245. package/build/types/integrations/fastify/index.d.ts +1 -1
  246. package/build/types/integrations/fastify/instrumentation.d.ts +1 -1
  247. package/build/types/integrations/index.d.ts.map +1 -1
  248. package/build/types/integrations/knex.d.ts.map +1 -1
  249. package/build/types/integrations/koa/index.d.ts.map +1 -1
  250. package/build/types/integrations/langchain.d.ts.map +1 -1
  251. package/build/types/integrations/mastra.d.ts.map +1 -1
  252. package/build/types/integrations/mistral.d.ts +7 -0
  253. package/build/types/integrations/mistral.d.ts.map +1 -0
  254. package/build/types/integrations/postgres.d.ts.map +1 -1
  255. package/build/types/integrations/tedious.d.ts.map +1 -1
  256. package/build/types/integrations/vercel-ai/util.d.ts +2 -2
  257. package/build/types/integrations/vercel-ai/util.d.ts.map +1 -1
  258. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
  259. package/build/types/orchestrion/bundler/options.d.ts +9 -0
  260. package/build/types/orchestrion/bundler/options.d.ts.map +1 -1
  261. package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -1
  262. package/build/types/orchestrion/channels.d.ts +9 -3
  263. package/build/types/orchestrion/channels.d.ts.map +1 -1
  264. package/build/types/orchestrion/config/channel-integration-definitions.d.ts +3 -0
  265. package/build/types/orchestrion/config/channel-integration-definitions.d.ts.map +1 -1
  266. package/build/types/orchestrion/config/index.d.ts +41 -0
  267. package/build/types/orchestrion/config/index.d.ts.map +1 -1
  268. package/build/types/orchestrion/config/mastra.d.ts +1 -0
  269. package/build/types/orchestrion/config/mastra.d.ts.map +1 -1
  270. package/build/types/orchestrion/config/mistral.d.ts +46 -0
  271. package/build/types/orchestrion/config/mistral.d.ts.map +1 -0
  272. package/build/types/orchestrion/config/mongodb.d.ts +2 -2
  273. package/build/types/orchestrion/config/pg.d.ts +1 -1
  274. package/build/types/tracing-channel.d.ts +8 -0
  275. package/build/types/tracing-channel.d.ts.map +1 -1
  276. package/build/types/utils/sql.d.ts +23 -4
  277. package/build/types/utils/sql.d.ts.map +1 -1
  278. package/package.json +3 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/ai/flue/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AA0CjD,OAAO,KAAK,EAAiB,oBAAoB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE/F;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAOlF;AAED;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAkD/C,wBAAgB,aAAa,CAAC,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,GAAG,IAAI,CAsBxF;AAED,wBAAgB,WAAW,CAAC,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,GAAG,IAAI,CAkD9G;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,GAAG,SAAS,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CA2BpG;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,GAAG,IAAI,CAuB/G;AAED,wBAAgB,WAAW,CAAC,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,GAAG,IAAI,CAiB9G;AAED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,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAC3C,OAAO,EAAE,OAAO,GACf,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAYrC;AA2ID;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,CAAC,CAExG"}
@@ -1 +1 @@
1
- {"version":3,"file":"streaming.d.ts","sourceRoot":"","sources":["../../../../src/ai/google-genai/streaming.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAuGnD;;;;GAIG;AACH,wBAAuB,gBAAgB,CACrC,MAAM,EAAE,aAAa,CAAC,mBAAmB,CAAC,EAC1C,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,OAAO,GACrB,cAAc,CAAC,mBAAmB,EAAE,IAAI,EAAE,OAAO,CAAC,CAepD"}
1
+ {"version":3,"file":"streaming.d.ts","sourceRoot":"","sources":["../../../../src/ai/google-genai/streaming.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AA+GnD;;;;GAIG;AACH,wBAAuB,gBAAgB,CACrC,MAAM,EAAE,aAAa,CAAC,mBAAmB,CAAC,EAC1C,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,OAAO,GACrB,cAAc,CAAC,mBAAmB,EAAE,IAAI,EAAE,OAAO,CAAC,CAmBpD"}
@@ -1,3 +1,4 @@
1
+ import type { Span } from '@sentry/core';
1
2
  export type ContentListUnion = Content | Content[] | PartListUnion;
2
3
  export type ContentUnion = Content | PartUnion[] | PartUnion;
3
4
  export type Content = {
@@ -14,13 +15,36 @@ export type Part = Record<string, unknown> & {
14
15
  text?: string;
15
16
  };
16
17
  export type PartListUnion = PartUnion[] | PartUnion;
17
- export type Message = Record<string, unknown> & {
18
+ /**
19
+ * A message part as described in https://develop.sentry.dev/sdk/telemetry/traces/modules/ai-agents/.
20
+ * Parts Sentry cannot type are dropped when the message is rendered, so Google's own `Part` shape
21
+ * (`{ text }`, `{ functionCall }`, ...) has to be translated into this one.
22
+ */
23
+ export type MessagePart = Record<string, unknown> & {
24
+ type: string;
25
+ };
26
+ export type Message = {
18
27
  role: string;
19
- content?: PartListUnion;
20
- parts?: PartListUnion;
28
+ parts: MessagePart[];
21
29
  };
22
30
  /**
23
- *
31
+ * Binary payloads are reported by media type only: `inlineData.data` is base64 bytes, which the
32
+ * conventions require to be dropped rather than recorded.
33
+ */
34
+ export declare function partToMessagePart(part: unknown): MessagePart | undefined;
35
+ /**
36
+ * Bare parts are collected into one message rather than one message each: `[{ text }, { inlineData }]`
37
+ * is a single multimodal turn in Google's API, not two turns.
24
38
  */
25
39
  export declare function contentUnionToMessages(content: ContentListUnion, role?: string): Message[];
40
+ /** Collect the message parts of every candidate in a response. */
41
+ export declare function candidatesToMessageParts(candidates: unknown): MessagePart[];
42
+ /**
43
+ * Set alongside the deprecated `gen_ai.response.text` / `gen_ai.response.tool_calls`: Relay migrates
44
+ * those into `gen_ai.output.messages`, but the tool-calls half of that migration is lossy, so a turn
45
+ * that only calls a tool would otherwise render an empty Output.
46
+ */
47
+ export declare function setOutputMessagesAttribute(span: Span, parts: MessagePart[]): void;
48
+ /** Flatten a `ContentUnion` instruction into the plain text `gen_ai.system_instructions` expects. */
49
+ export declare function systemInstructionToText(systemInstruction: unknown): string | undefined;
26
50
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/ai/google-genai/utils.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,OAA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Client } from './anthropic-ai';
8
8
  export { instrumentGoogleGenAIClient } from './google-genai';
9
+ export { instrumentMistralAiClient } from './mistral';
9
10
  export { instrumentWorkersAiClient } from './workers-ai';
10
11
  export { createLangChainCallbackHandler, instrumentLangChainEmbeddings } from './langchain';
11
12
  export { instrumentStateGraph, instrumentStateGraphCompile, instrumentCreateReactAgent } from './langgraph';
12
13
  export { SentryMastraExporter } from './mastra';
14
+ export { createFlueInstrumentation } from './flue';
15
+ export type { FlueOptions } from './flue';
13
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ai/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,8BAA8B,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAC5G,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ai/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,8BAA8B,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAC5G,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AACnD,YAAY,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC"}
@@ -1,4 +1,6 @@
1
1
  export declare const MASTRA_INTEGRATION_NAME: 'Mastra';
2
+ /** Cap on tracked spans, matching `MAX_TRACKED_PRISMA_SPANS`. Spans that never end would otherwise leak. */
3
+ export declare const MAX_TRACKED_MASTRA_SPANS = 1000;
2
4
  export declare const MASTRA_ORIGIN = "auto.ai.mastra";
3
5
  /** Not `sentry` — that is the community `@mastra/sentry` exporter name. */
4
6
  export declare const MASTRA_EXPORTER_NAME = "sentry-sdk";
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/ai/mastra/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,EAAG,QAAiB,CAAC;AAEzD,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAE9C,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,eAAe,CAAC;AAEjD,2DAA2D;AAC3D,eAAO,MAAM,qCAAqC,WAAW,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,qBAAqB,eAAuC,CAAC;AAE1E;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC,CASzF,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,MAAM,CAK9C,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAAiD,CAAC;AAEnG,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAA0D,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/ai/mastra/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,EAAG,QAAiB,CAAC;AAEzD,4GAA4G;AAC5G,eAAO,MAAM,wBAAwB,OAAO,CAAC;AAE7C,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAE9C,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,eAAe,CAAC;AAEjD,2DAA2D;AAC3D,eAAO,MAAM,qCAAqC,WAAW,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,qBAAqB,eAAuC,CAAC;AAE1E;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC,CASzF,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,MAAM,CAK9C,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAAiD,CAAC;AAEnG,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAA0D,CAAC"}
@@ -30,6 +30,8 @@ export declare class SentryMastraExporter implements MastraObservabilityExporter
30
30
  private _onSpanStarted;
31
31
  /** Track a started span, ending any Sentry span that would otherwise be dropped without `end()`. */
32
32
  private _trackSpan;
33
+ /** Remove a tracked span and keep the id→span registry in lockstep. */
34
+ private _removeTracked;
33
35
  private _onSpanUpdated;
34
36
  private _onSpanEnded;
35
37
  /** Copy model/usage onto the parent agent so the AI Agents view shows totals. */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ai/mastra/index.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAWlD,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AAqB,GAAG,YAAY,CAAC;AAajD;;;;;GAKG;AACH,qBAAa,oBAAqB,YAAW,2BAA2B;IAC/D,IAAI,SAAwB;IAEnC,SAAgB,CAAC,qBAAqB,CAAC,QAAQ;IAE/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6D;IACpF;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAwD;IACjF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAwB;IAEjD,YAAmB,OAAO,GAAE,qBAA0B,EAErD;IAED,4DAA4D;IAC/C,kBAAkB,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAUxE;IAED,gEAAgE;IACnD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAElC;IAED,oEAAoE;IACvD,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAUrC;IAED,OAAO,CAAC,YAAY;IA8BpB,OAAO,CAAC,cAAc;IAoBtB,oGAAoG;IACpG,OAAO,CAAC,UAAU;IAiBlB,uEAAuE;IACvE,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,YAAY;IAwBpB,iFAAiF;IACjF,OAAO,CAAC,oBAAoB;IAiB5B,mDAAmD;IACnD,OAAO,CAAC,gBAAgB;IAiBxB,OAAO,CAAC,cAAc;CAIvB"}
@@ -0,0 +1,5 @@
1
+ import type { Span } from '@sentry/core';
2
+ export declare function registerMastraSpan(mastraId: string, span: Span): void;
3
+ export declare function unregisterMastraSpan(mastraId: string): void;
4
+ export declare function getSentrySpanForMastraId(mastraId: string): Span | undefined;
5
+ //# sourceMappingURL=span-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"span-registry.d.ts","sourceRoot":"","sources":["../../../../src/ai/mastra/span-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAezC,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAErE;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAE3D;AAED,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAE3E"}
@@ -0,0 +1,30 @@
1
+ export declare const MISTRAL_INTEGRATION_NAME: 'Mistral';
2
+ export declare const MISTRAL_PROVIDER_NAME: 'mistralai';
3
+ export declare const MISTRAL_ORIGIN: 'auto.ai.mistralai';
4
+ export declare const MISTRAL_METHOD_REGISTRY: {
5
+ readonly 'chat.complete': {
6
+ readonly operation: 'chat';
7
+ };
8
+ readonly 'chat.stream': {
9
+ readonly operation: 'chat';
10
+ readonly streaming: true;
11
+ };
12
+ readonly 'chat.parse': {
13
+ readonly operation: 'chat';
14
+ };
15
+ readonly 'chat.parseStream': {
16
+ readonly operation: 'chat';
17
+ readonly streaming: true;
18
+ };
19
+ readonly 'embeddings.create': {
20
+ readonly operation: 'embeddings';
21
+ };
22
+ readonly 'agents.complete': {
23
+ readonly operation: 'invoke_agent';
24
+ };
25
+ readonly 'agents.stream': {
26
+ readonly operation: 'invoke_agent';
27
+ readonly streaming: true;
28
+ };
29
+ };
30
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/ai/mistral/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,EAAG,SAAkB,CAAC;AAI3D,eAAO,MAAM,qBAAqB,EAAG,WAAoB,CAAC;AAE1D,eAAO,MAAM,cAAc,EAAG,mBAA4B,CAAC;AAO3D,eAAO,MAAM,uBAAuB;;iBACf,SAAS,EAAE,MAAM;;;iBACnB,SAAS,EAAE,MAAM;iBAAE,SAAS;;;iBAC7B,SAAS,EAAE,MAAM;;;iBACX,SAAS,EAAE,MAAM;iBAAE,SAAS;;;iBAC3B,SAAS,EAAE,YAAY;;;iBACzB,SAAS,EAAE,cAAc;;;iBAC3B,SAAS,EAAE,cAAc;iBAAE,SAAS;;CACV,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { Span } from '@sentry/core';
2
+ import type { MistralOptions } from './types';
3
+ /**
4
+ * Extract request attributes from method arguments.
5
+ *
6
+ * `streaming` comes from the called method, not the request: v2 streams only through the dedicated
7
+ * `*.stream` methods, and their `stream` request field is optional, so a params-derived value would
8
+ * be missing on most streaming calls.
9
+ */
10
+ export declare function extractRequestAttributes(args: unknown[], operationName: string, recordInputs: boolean, streaming: boolean): Record<string, unknown>;
11
+ /**
12
+ * Record AI request inputs on the span, if recording is enabled.
13
+ */
14
+ export declare function addRequestAttributes(span: Span, params: Record<string, unknown>, operationName: string): void;
15
+ /**
16
+ * Instrument a Mistral client with Sentry tracing.
17
+ * Can be used across Node.js, Cloudflare Workers, and Vercel Edge.
18
+ */
19
+ export declare function instrumentMistralAiClient<T extends object>(client: T, options?: MistralOptions): T;
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ai/mistral/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,IAAI,EAAsB,MAAM,cAAc,CAAC;AAqB7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAa9C;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,OAAO,EAAE,EACf,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,OAAO,EACrB,SAAS,EAAE,OAAO,GACjB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAwBzB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAoB7G;AAsGD;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,CAAC,CAElG"}
@@ -0,0 +1,24 @@
1
+ import type { Span } from '@sentry/core';
2
+ type AsyncIterableStream = {
3
+ [Symbol.asyncIterator]: () => AsyncIterator<unknown>;
4
+ };
5
+ /** Whether a value can be drained with `for await`. */
6
+ export declare function isAsyncIterable(value: unknown): value is AsyncIterableStream;
7
+ /**
8
+ * Instrument a Mistral event stream in place: accumulate response attributes as it is drained and
9
+ * end `span` when it finishes.
10
+ *
11
+ * The stream is patched rather than replaced because `EventStream` extends `ReadableStream`, so
12
+ * handing back a bare async generator would drop `getReader`, `tee`, `pipeTo` and the rest of the
13
+ * `ReadableStream` API the caller is entitled to.
14
+ *
15
+ * Both `for await` and `getReader()` are valid ways to drain a `ReadableStream`, and the SDK's
16
+ * iterator polyfill reads through `getReader()`, so both are wrapped. The first path to see a chunk
17
+ * claims accumulation and the other stays a pass-through, which keeps a chunk from being counted
18
+ * twice when one path drives the other.
19
+ *
20
+ * Returns `false` for a value that is not a stream, leaving it untouched.
21
+ */
22
+ export declare function instrumentEventStream(stream: unknown, span: Span, recordOutputs: boolean): boolean;
23
+ export {};
24
+ //# sourceMappingURL=streaming.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streaming.d.ts","sourceRoot":"","sources":["../../../../src/ai/mistral/streaming.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAwBzC,KAAK,mBAAmB,GAAG;IAAE,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,MAAM,aAAa,CAAC,OAAO,CAAC,CAAA;CAAE,CAAC;AAepF,uDAAuD;AACvD,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,mBAAmB,CAE5E;AAmLD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,GAAG,OAAO,CA4FlG"}
@@ -0,0 +1,39 @@
1
+ import type { GenAiOptions } from '../core/utils';
2
+ /** Options for the Mistral integration. */
3
+ export type MistralOptions = GenAiOptions;
4
+ /**
5
+ * A tool call as it appears in a response/stream delta. During streaming the `function.arguments`
6
+ * string arrives fragmented and is accumulated by `index`.
7
+ */
8
+ export interface MistralToolCall {
9
+ id?: string;
10
+ type?: string;
11
+ index?: number;
12
+ function?: {
13
+ name?: string;
14
+ arguments?: string;
15
+ };
16
+ }
17
+ /**
18
+ * A single streaming chunk. Field names are camelCase because the SDK deserializes the snake_case
19
+ * wire payload into typed objects before instrumentation sees them. Streaming APIs actually yield
20
+ * `CompletionEvent` objects that wrap this under `data`.
21
+ * @see https://docs.mistral.ai/api/#tag/chat/operation/stream_chat
22
+ */
23
+ export interface MistralCompletionChunk {
24
+ id: string;
25
+ model: string;
26
+ choices?: Array<{
27
+ delta?: {
28
+ content?: string | Array<unknown> | null;
29
+ toolCalls?: MistralToolCall[] | null;
30
+ };
31
+ finishReason?: string | null;
32
+ }>;
33
+ usage?: {
34
+ promptTokens?: number;
35
+ completionTokens?: number;
36
+ totalTokens?: number;
37
+ };
38
+ }
39
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ai/mistral/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,2CAA2C;AAC3C,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC;AAE1C;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAED;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,KAAK,CAAC;QACd,KAAK,CAAC,EAAE;YAAE,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;YAAC,SAAS,CAAC,EAAE,eAAe,EAAE,GAAG,IAAI,CAAA;SAAE,CAAC;QAC3F,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B,CAAC,CAAC;IACH,KAAK,CAAC,EAAE;QACN,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;CACH"}
@@ -0,0 +1,20 @@
1
+ import type { Span } from '@sentry/core';
2
+ /**
3
+ * Turn a Mistral message content (string or content-chunk array) into a plain string.
4
+ */
5
+ export declare function contentToString(content: unknown): string;
6
+ /**
7
+ * Build the span name for an instrumented Mistral call. Agent ids and a missing model are left out
8
+ * to keep the name low cardinality.
9
+ */
10
+ export declare function getSpanName(operationName: string, attributes: Record<string, unknown>): string;
11
+ /**
12
+ * Extract request parameters. Mistral request fields are camelCase.
13
+ */
14
+ export declare function extractRequestParameters(params: Record<string, unknown>): Record<string, unknown>;
15
+ /**
16
+ * Add response attributes to a span using duck-typing. Mistral responses are camelCase
17
+ * (`choices[].message`, `usage.promptTokens`), matching the SDK's deserialized objects.
18
+ */
19
+ export declare function addResponseAttributes(span: Span, result: unknown, recordOutputs?: boolean): void;
20
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/ai/mistral/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAsB,MAAM,cAAc,CAAC;AAqB7D;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAcxD;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAQ9F;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAYjG;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,IAAI,CA8DhG"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ai/vercel-ai/index.ts"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,gBAAgB,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAqExG;AAED;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,aAA2E,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ai/vercel-ai/index.ts"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,gBAAgB,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAqExG;AAED;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,aAKpC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ai/workers-ai/index.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAiHhD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,CAAC,CAiBpG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ai/workers-ai/index.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAsGhD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,CAAC,CAiBpG"}
@@ -1,4 +1,6 @@
1
1
  import type { Span, SpanAttributeValue } from '@sentry/core';
2
+ import { setOutputMessagesAttribute } from '../core/utils';
3
+ export { setOutputMessagesAttribute };
2
4
  /**
3
5
  * Determine the gen_ai operation name from the inputs passed to `AI.run`.
4
6
  * Workers AI exposes a single `run` method, so we infer the operation from the input shape.
@@ -15,20 +17,6 @@ export declare function extractRequestAttributes(model: unknown, inputs: unknown
15
17
  * Only called when `recordInputs` is enabled.
16
18
  */
17
19
  export declare function addRequestAttributes(span: Span, inputs: unknown, operationName: string): void;
18
- /**
19
- * Build the `gen_ai.output.messages` value (a single assistant message with text and/or
20
- * tool-call parts) from the response text and tool calls.
21
- *
22
- * We set this in addition to the deprecated `gen_ai.response.text` / `gen_ai.response.tool_calls`
23
- * attributes because Sentry's product reads the model output from `gen_ai.output.messages` first.
24
- * Relay migrates `gen_ai.response.text` into `gen_ai.output.messages`, but the tool-calls half of
25
- * that migration is lossy — so tool-call turns would otherwise render an empty Output. Emitting the
26
- * normalized message here (mirroring the Vercel AI integration) keeps tool calls visible.
27
- */
28
- export declare function setOutputMessagesAttribute(span: Span, { responseText, toolCalls }: {
29
- responseText?: string;
30
- toolCalls?: unknown[];
31
- }): void;
32
20
  /**
33
21
  * Record the response attributes (token usage, response text, tool calls) on the span.
34
22
  */
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/ai/workers-ai/utils.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAM7D;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,YAAY,CAAC;AAE3D,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAGhF,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,OAAO,GAAG,sBAAsB,CAUxE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,OAAO,EACf,aAAa,EAAE,MAAM,GACpB,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAmCpC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CA+B7F;AAED;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,IAAI,EACV,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE;IAAE,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAA;CAAE,GAC5E,IAAI,CAkCN;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,GAAG,IAAI,CAkC/F"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/ai/workers-ai/utils.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAA6B,0BAA0B,EAA2B,MAAM,eAAe,CAAC;AAE/G,OAAO,EAAE,0BAA0B,EAAE,CAAC;AAItC;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,YAAY,CAAC;AAE3D,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAGhF,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,OAAO,GAAG,sBAAsB,CAUxE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,OAAO,EACf,aAAa,EAAE,MAAM,GACpB,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAmCpC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CA+B7F;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,GAAG,IAAI,CAkC/F"}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * The subset of eve's hook context (`HookContext` from `eve/hooks`) this helper reads. Typed
3
+ * structurally rather than importing from `eve`, so the SDK carries no dependency on the framework —
4
+ * the shape is checked at the `defineHook(...)` call site in the user's app instead.
5
+ */
6
+ interface EveHookContext {
7
+ session: {
8
+ id: string;
9
+ };
10
+ }
11
+ type EveHookHandler = (event: unknown, context: EveHookContext) => void;
12
+ interface EveConversationHookOptions {
13
+ /**
14
+ * Derive the Sentry conversation id from the eve hook context. Defaults to the durable session id
15
+ * (`ctx.session.id`), which is stable across every turn of a session and so groups them into one
16
+ * conversation.
17
+ */
18
+ getConversationId?: (context: EveHookContext) => string | null | undefined;
19
+ }
20
+ /**
21
+ * Builds the hook definition for an eve `agent/hooks/*.ts` file that tags a session's AI spans with
22
+ * a Sentry conversation id, linking every turn of the session in the Agents "Conversations" view.
23
+ *
24
+ * ```ts
25
+ * // agent/hooks/sentry.ts
26
+ * import * as Sentry from '@sentry/node';
27
+ * import { defineHook } from 'eve/hooks';
28
+ *
29
+ * export default defineHook(Sentry.eveConversationHook());
30
+ * ```
31
+ *
32
+ * The id is set on the isolation scope; the default (always-on) `conversationIdIntegration` then
33
+ * stamps `gen_ai.conversation.id` onto the gen_ai spans the Vercel AI instrumentation records for
34
+ * that turn. That indirection is why the id has to be set here and not on the AI call: eve's session
35
+ * id never reaches the AI SDK's telemetry channel, so it can only be attached via the scope.
36
+ *
37
+ * Subscribes to both `turn.started` and `step.started`. Each eve turn is a fresh durable-workflow
38
+ * request with its own isolation scope, and a turn that parks and resumes (approvals, compaction)
39
+ * resumes in yet another request; `turn.started` alone would miss the model calls after a resume.
40
+ * `step.started` fires before every model call, so together they cover each request that produces
41
+ * spans. Re-setting the same id is idempotent, so the overlap is harmless.
42
+ */
43
+ export declare function eveConversationHook(options?: EveConversationHookOptions): {
44
+ events: Record<'turn.started' | 'step.started', EveHookHandler>;
45
+ };
46
+ export {};
47
+ //# sourceMappingURL=eve.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eve.d.ts","sourceRoot":"","sources":["../../src/eve.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,UAAU,cAAc;IACtB,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;CACzB;AAED,KAAK,cAAc,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;AAExE,UAAU,0BAA0B;IAClC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC5E;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,0BAA+B,GAAG;IAC7E,MAAM,EAAE,MAAM,CAAC,cAAc,GAAG,cAAc,EAAE,cAAc,CAAC,CAAC;CACjE,CAcA"}
@@ -2,7 +2,7 @@ export { setHttpServerSpanRouteAttribute } from './utils/setHttpServerSpanRouteA
2
2
  export { setAsyncLocalStorageAsyncContextStrategy } from './async-context';
3
3
  export { openTelemetryIntegration, getOtlpTracesEndpoint } from './opentelemetry';
4
4
  export * from './ai';
5
- export { getSqlQuerySummary, sanitizeSqlQuery } from './utils/sql';
5
+ export { getSqlQuerySummary, sanitizeSqlQuery, sanitizeSqlQueryWithSummary } from './utils/sql';
6
6
  export type { SqlDialect } from './utils/sql';
7
7
  export { instrumentPostgresJsSql } from './integrations/postgresjs';
8
8
  export type { PostgresConnectionContext } from './integrations/postgresjs';
@@ -1 +1 @@
1
- {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../src/exports.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,wCAAwC,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAClF,cAAc,MAAM,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACnE,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,YAAY,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../src/exports.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,wCAAwC,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAClF,cAAc,MAAM,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAChG,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,YAAY,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -6,6 +6,8 @@ export { bindTracingChannelToSpan } from './tracing-channel';
6
6
  export type { TracingChannelPayloadWithSpan } from './tracing-channel';
7
7
  export type { InstrumentationConfig } from './orchestrion/apmTypes';
8
8
  export { orchestrionModuleInjected } from './utils/moduleInjected';
9
+ export { eveConversationHook } from './eve';
10
+ export { getInstrumentedModuleNames } from './orchestrion/config';
9
11
  export { fastifyIntegration, setupFastifyErrorHandler, } from './integrations/fastify';
10
12
  /**
11
13
  * @deprecated This is a temporary export to avoid breaking changes. It will be removed in the next major version.
@@ -26,11 +28,14 @@ export { kafkaIntegration } from './integrations/kafkajs';
26
28
  export { knexIntegration } from './integrations/knex';
27
29
  export { langChainIntegration } from './integrations/langchain';
28
30
  export { langGraphIntegration } from './integrations/langgraph';
31
+ export { createFlueInstrumentation } from './ai/flue';
32
+ export type { FlueOptions } from './ai/flue';
29
33
  export { mastraIntegration } from './integrations/mastra';
30
34
  export { SentryMastraExporter } from './ai/mastra';
31
35
  export { lruMemoizerIntegration } from './integrations/lru-memoizer';
32
36
  export { mongoIntegration } from './integrations/mongodb';
33
37
  export { mongooseIntegration } from './integrations/mongoose';
38
+ export { mistralAIIntegration } from './integrations/mistral';
34
39
  export { mysqlIntegration } from './integrations/mysql';
35
40
  export { mysql2Integration } from './integrations/mysql2';
36
41
  export { openAIIntegration } from './integrations/openai';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAG1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,sB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AM,WAAW,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAErG,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,14 +1,13 @@
1
1
  /**
2
2
  * AWS-specific span constants used by the aws-sdk channel integration that are NOT covered by
3
3
  * `@sentry/conventions/attributes` (attribute names that exist there are imported from there
4
- * directly). These are either Sentry-specific (the span origin), attribute *values* (not keys), or
5
- * obsolete OTel conventions with no `@sentry/conventions` export.
4
+ * directly). These are either Sentry-specific (the span origin) or attribute *values* (not keys).
6
5
  */
7
6
  /** The span origin every aws-sdk channel span carries. */
8
7
  export declare const AWS_SDK_ORIGIN = "auto.aws.aws_sdk";
9
8
  /** DynamoDB `db.system.name` value (an attribute value, not a key, so not covered by conventions). */
10
9
  export declare const DB_SYSTEM_VALUE_DYNAMODB = "dynamodb";
11
- export declare const ATTR_MESSAGING_DESTINATION_KIND = "messaging.destination_kind";
10
+ /** SNS `messaging.destination_kind` value (an attribute value, not a key, so not covered by conventions). */
12
11
  export declare const MESSAGING_DESTINATION_KIND_VALUE_TOPIC = "topic";
13
12
  export declare const GEN_AI_OPERATION_NAME_VALUE_CHAT = "chat";
14
13
  export declare const GEN_AI_OPERATION_NAME_VALUE_GENERATE_CONTENT = "generate_content";
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/integrations/aws-sdk/constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,0DAA0D;AAC1D,eAAO,MAAM,cAAc,qBAAqB,CAAC;AAEjD,sGAAsG;AACtG,eAAO,MAAM,wBAAwB,aAAa,CAAC;AAKnD,eAAO,MAAM,+BAA+B,+BAA+B,CAAC;AAC5E,eAAO,MAAM,sCAAsC,UAAU,CAAC;AAG9D,eAAO,MAAM,gCAAgC,SAAS,CAAC;AACvD,eAAO,MAAM,4CAA4C,qBAAqB,CAAC;AAC/E,eAAO,MAAM,+BAA+B,gBAAgB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/integrations/aws-sdk/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,0DAA0D;AAC1D,eAAO,MAAM,cAAc,qBAAqB,CAAC;AAEjD,sGAAsG;AACtG,eAAO,MAAM,wBAAwB,aAAa,CAAC;AAEnD,6GAA6G;AAC7G,eAAO,MAAM,sCAAsC,UAAU,CAAC;AAG9D,eAAO,MAAM,gCAAgC,SAAS,CAAC;AACvD,eAAO,MAAM,4CAA4C,qBAAqB,CAAC;AAC/E,eAAO,MAAM,+BAA+B,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"lambda.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/aws-sdk/services/lambda.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AASzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI5E,qBAAa,sBAAuB,YAAW,gBAAgB;IACtD,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,GAAG,eAAe,CAgBrE;IAEM,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAIvE;IAEM,YAAY,CAAC,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAUlE;CACF"}
1
+ {"version":3,"file":"lambda.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/aws-sdk/services/lambda.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AASzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI5E,qBAAa,sBAAuB,YAAW,gBAAgB;IACtD,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,GAAG,eAAe,CAgBrE;IAEM,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAIvE;IAEM,YAAY,CAAC,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CASlE;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"sns.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/aws-sdk/services/sns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAYzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEtE,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAiB5E,qBAAa,mBAAoB,YAAW,gBAAgB;IACnD,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,GAAG,eAAe,CA2CrE;IAEM,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAKvE;IAEM,YAAY,CAAC,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAKlE;CACF"}
1
+ {"version":3,"file":"sns.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/aws-sdk/services/sns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAazC,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEtE,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAiB5E,qBAAa,mBAAoB,YAAW,gBAAgB;IACnD,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,GAAG,eAAe,CA4CrE;IAEM,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAKvE;IAEM,YAAY,CAAC,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAKlE;CACF"}
@@ -30,7 +30,7 @@ interface FastifyIntegrationOptions {
30
30
  }
31
31
  /**
32
32
  * Adds Sentry tracing instrumentation for [Fastify](https://fastify.dev/).
33
- * This integration supports Fastify v3.21.0-v5.0.0.
33
+ * This integration supports Fastify v3.21.0-v6.
34
34
  *
35
35
  * For more information, see the [fastify documentation](https://docs.sentry.io/platforms/javascript/guides/fastify/).
36
36
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Set up the Fastify (>= 3.21.0 < 6) instrumentation by subscribing to the `fastify.initialization`
2
+ * Set up the Fastify (>= 3.21.0 < 7) instrumentation by subscribing to the `fastify.initialization`
3
3
  * diagnostics channel and synchronously instrumenting every Fastify instance as it is created.
4
4
  */
5
5
  export declare function instrumentFastify(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/index.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,iEAAiE;AACjE,wBAAgB,sBAAsB,IAAI,WAAW,EAAE,CA4BtD;AAED,+EAA+E;AAC/E,wBAAgB,oBAAoB,IAAI,WAAW,EAAE,CAEpD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/index.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,iEAAiE;AACjE,wBAAgB,sBAAsB,IAAI,WAAW,EAAE,CA+BtD;AAED,+EAA+E;AAC/E,wBAAgB,oBAAoB,IAAI,WAAW,EAAE,CAEpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"knex.d.ts","sourceRoot":"","sources":["../../../src/integrations/knex.ts"],"names":[],"mappings":"AA6VA;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
1
+ {"version":3,"file":"knex.d.ts","sourceRoot":"","sources":["../../../src/integrations/knex.ts"],"names":[],"mappings":"AA+VA;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/koa/index.ts"],"names":[],"mappings":"AA+EA,MAAM,WAAW,qBAAqB;IACpC,+EAA+E;IAC/E,gBAAgB,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,QAAQ,CAAC,CAAC;CACnD;AA6LD;;;;;GAKG;AACH,eAAO,MAAM,cAAc;;CAAqC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/koa/index.ts"],"names":[],"mappings":"AA8EA,MAAM,WAAW,qBAAqB;IACpC,+EAA+E;IAC/E,gBAAgB,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,QAAQ,CAAC,CAAC;CACnD;AAyLD;;;;;GAKG;AACH,eAAO,MAAM,cAAc;;CAAqC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"langchain.d.ts","sourceRoot":"","sources":["../../../src/integrations/langchain.ts"],"names":[],"mappings":"AAgHA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;CAA2C,CAAC"}
1
+ {"version":3,"file":"langchain.d.ts","sourceRoot":"","sources":["../../../src/integrations/langchain.ts"],"names":[],"mappings":"AAsHA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;CAA2C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"mastra.d.ts","sourceRoot":"","sources":["../../../src/integrations/mastra.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAQ1D,MAAM,WAAW,aAAc,SAAQ,qBAAqB;IAC1D;;;OAGG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAmQD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;CAAwC,CAAC"}
1
+ {"version":3,"file":"mastra.d.ts","sourceRoot":"","sources":["../../../src/integrations/mastra.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAS1D,MAAM,WAAW,aAAc,SAAQ,qBAAqB;IAC1D;;;OAGG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AA8WD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;CAAwC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * An integration to instrument @mistralai/mistrailai.
3
+ */
4
+ export declare const mistralAIIntegration: (options?: import("../ai/core/utils").GenAiOptions | undefined) => import("@sentry/core").Integration & {
5
+ name: "Mistral";
6
+ };
7
+ //# sourceMappingURL=mistral.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mistral.d.ts","sourceRoot":"","sources":["../../../src/integrations/mistral.ts"],"names":[],"mappings":"AAuGA;;GAEG;AACH,eAAO,MAAM,oBAAoB;;CAA2C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../src/integrations/postgres.ts"],"names":[],"mappings":"AAmSA;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB;yBApN+B,OAAO;;;CAoNI,CAAC"}
1
+ {"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../src/integrations/postgres.ts"],"names":[],"mappings":"AAgSA;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB;yBAjN+B,OAAO;;;CAiNI,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tedious.d.ts","sourceRoot":"","sources":["../../../src/integrations/tedious.ts"],"names":[],"mappings":"AA4QA;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;CAAyC,CAAC"}
1
+ {"version":3,"file":"tedious.d.ts","sourceRoot":"","sources":["../../../src/integrations/tedious.ts"],"names":[],"mappings":"AA6QA;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;CAAyC,CAAC"}
@@ -15,8 +15,8 @@ export interface StreamedModelCallResult {
15
15
  responseModel?: string;
16
16
  providerMetadata?: unknown;
17
17
  }
18
- /** A minimal structural check — the streamed model call exposes a web `ReadableStream` on `result.stream`. */
19
- export declare function isReadableStream(value: unknown): value is ReadableStream<unknown>;
18
+ /** The streamed model call exposes a web `ReadableStream` on `result.stream`. */
19
+ export { isReadableStream } from '../../ai/core/utils';
20
20
  /**
21
21
  * Wrap a streamed model call's `ReadableStream` so its chunks are observed as the SDK consumes them,
22
22
  * without altering what the SDK sees. Returns a replacement stream to swap onto `result.stream`.
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/integrations/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;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
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/integrations/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;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,iFAAiF;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;;;;;;;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 +1 @@
1
- {"version":3,"file":"vercel-ai-dc-subscriber.d.ts","sourceRoot":"","sources":["../../../../src/integrations/vercel-ai/vercel-ai-dc-subscriber.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