@sentry/server-utils 11.13.0 → 11.15.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 (328) hide show
  1. package/build/cjs/chunks/config.js +19 -5
  2. package/build/cjs/chunks/config.js.map +1 -1
  3. package/build/cjs/chunks/exports.js +593 -238
  4. package/build/cjs/chunks/exports.js.map +1 -1
  5. package/build/cjs/chunks/moduleInjectedTransform.js +6 -5
  6. package/build/cjs/chunks/moduleInjectedTransform.js.map +1 -1
  7. package/build/cjs/index.js +1186 -182
  8. package/build/cjs/index.js.map +1 -1
  9. package/build/cjs/orchestrion/bundler/rollup.js +4 -4
  10. package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
  11. package/build/esm/ai/anthropic-ai/index.js +32 -56
  12. package/build/esm/ai/anthropic-ai/index.js.map +1 -1
  13. package/build/esm/ai/anthropic-ai/streaming.js +10 -6
  14. package/build/esm/ai/anthropic-ai/streaming.js.map +1 -1
  15. package/build/esm/ai/anthropic-ai/tool-runner.js +18 -3
  16. package/build/esm/ai/anthropic-ai/tool-runner.js.map +1 -1
  17. package/build/esm/ai/anthropic-ai/utils.js +41 -3
  18. package/build/esm/ai/anthropic-ai/utils.js.map +1 -1
  19. package/build/esm/ai/core/span-hooks.js +23 -0
  20. package/build/esm/ai/core/span-hooks.js.map +1 -0
  21. package/build/esm/ai/core/time-to-first-chunk.js +14 -0
  22. package/build/esm/ai/core/time-to-first-chunk.js.map +1 -0
  23. package/build/esm/ai/core/utils.js +29 -3
  24. package/build/esm/ai/core/utils.js.map +1 -1
  25. package/build/esm/ai/flue/index.js +15 -12
  26. package/build/esm/ai/flue/index.js.map +1 -1
  27. package/build/esm/ai/flue/utils.js +24 -17
  28. package/build/esm/ai/flue/utils.js.map +1 -1
  29. package/build/esm/ai/google-genai/constants.js +2 -1
  30. package/build/esm/ai/google-genai/constants.js.map +1 -1
  31. package/build/esm/ai/google-genai/decisions.js +25 -0
  32. package/build/esm/ai/google-genai/decisions.js.map +1 -0
  33. package/build/esm/ai/google-genai/index.js +35 -11
  34. package/build/esm/ai/google-genai/index.js.map +1 -1
  35. package/build/esm/ai/google-genai/streaming.js +6 -2
  36. package/build/esm/ai/google-genai/streaming.js.map +1 -1
  37. package/build/esm/ai/langchain/embeddings.js +5 -2
  38. package/build/esm/ai/langchain/embeddings.js.map +1 -1
  39. package/build/esm/ai/langchain/index.js +82 -24
  40. package/build/esm/ai/langchain/index.js.map +1 -1
  41. package/build/esm/ai/langchain/utils.js +9 -1
  42. package/build/esm/ai/langchain/utils.js.map +1 -1
  43. package/build/esm/ai/langgraph/agent-span.js +13 -5
  44. package/build/esm/ai/langgraph/agent-span.js.map +1 -1
  45. package/build/esm/ai/langgraph/index.js +13 -15
  46. package/build/esm/ai/langgraph/index.js.map +1 -1
  47. package/build/esm/ai/langgraph/stream.js +4 -3
  48. package/build/esm/ai/langgraph/stream.js.map +1 -1
  49. package/build/esm/ai/langgraph/utils.js +17 -8
  50. package/build/esm/ai/langgraph/utils.js.map +1 -1
  51. package/build/esm/ai/mastra/classifier-evaluation.js.map +1 -1
  52. package/build/esm/ai/mastra/index.js +33 -16
  53. package/build/esm/ai/mastra/index.js.map +1 -1
  54. package/build/esm/ai/mastra/utils.js +3 -5
  55. package/build/esm/ai/mastra/utils.js.map +1 -1
  56. package/build/esm/ai/mistral/index.js +28 -13
  57. package/build/esm/ai/mistral/index.js.map +1 -1
  58. package/build/esm/ai/mistral/streaming.js +6 -8
  59. package/build/esm/ai/mistral/streaming.js.map +1 -1
  60. package/build/esm/ai/mistral/utils.js +9 -1
  61. package/build/esm/ai/mistral/utils.js.map +1 -1
  62. package/build/esm/ai/openai/index.js +19 -8
  63. package/build/esm/ai/openai/index.js.map +1 -1
  64. package/build/esm/ai/openai/streaming.js +7 -2
  65. package/build/esm/ai/openai/streaming.js.map +1 -1
  66. package/build/esm/ai/pi-ai/chat.js +18 -1
  67. package/build/esm/ai/pi-ai/chat.js.map +1 -1
  68. package/build/esm/ai/pi-ai/recording.js +34 -15
  69. package/build/esm/ai/pi-ai/recording.js.map +1 -1
  70. package/build/esm/ai/pi-durable/index.js +7 -2
  71. package/build/esm/ai/pi-durable/index.js.map +1 -1
  72. package/build/esm/ai/pi-durable/runs.js.map +1 -1
  73. package/build/esm/ai/pi-durable/tools.js +18 -3
  74. package/build/esm/ai/pi-durable/tools.js.map +1 -1
  75. package/build/esm/ai/typesafe/index.js +14 -6
  76. package/build/esm/ai/typesafe/index.js.map +1 -1
  77. package/build/esm/ai/vercel-ai/index.js +3 -1
  78. package/build/esm/ai/vercel-ai/index.js.map +1 -1
  79. package/build/esm/ai/workers-ai/index.js +32 -14
  80. package/build/esm/ai/workers-ai/index.js.map +1 -1
  81. package/build/esm/ai/workers-ai/streaming.js +8 -10
  82. package/build/esm/ai/workers-ai/streaming.js.map +1 -1
  83. package/build/esm/cron/common.js +16 -0
  84. package/build/esm/cron/common.js.map +1 -0
  85. package/build/esm/cron/cron.js +82 -0
  86. package/build/esm/cron/cron.js.map +1 -0
  87. package/build/esm/cron/index.js +13 -0
  88. package/build/esm/cron/index.js.map +1 -0
  89. package/build/esm/cron/node-cron.js +66 -0
  90. package/build/esm/cron/node-cron.js.map +1 -0
  91. package/build/esm/cron/node-schedule.js +43 -0
  92. package/build/esm/cron/node-schedule.js.map +1 -0
  93. package/build/esm/index.js +6 -1
  94. package/build/esm/index.js.map +1 -1
  95. package/build/esm/integrations/anthropic.js +25 -16
  96. package/build/esm/integrations/anthropic.js.map +1 -1
  97. package/build/esm/integrations/aws-sdk/index.js +1 -0
  98. package/build/esm/integrations/aws-sdk/index.js.map +1 -1
  99. package/build/esm/integrations/aws-sdk/services/ServicesExtensions.js +3 -0
  100. package/build/esm/integrations/aws-sdk/services/ServicesExtensions.js.map +1 -1
  101. package/build/esm/integrations/aws-sdk/services/bedrock-runtime.js +45 -12
  102. package/build/esm/integrations/aws-sdk/services/bedrock-runtime.js.map +1 -1
  103. package/build/esm/integrations/bullmq/contextManager.js +45 -0
  104. package/build/esm/integrations/bullmq/contextManager.js.map +1 -0
  105. package/build/esm/integrations/bullmq/index.js +44 -0
  106. package/build/esm/integrations/bullmq/index.js.map +1 -0
  107. package/build/esm/integrations/bullmq/meter.js +86 -0
  108. package/build/esm/integrations/bullmq/meter.js.map +1 -0
  109. package/build/esm/integrations/bullmq/span.js +114 -0
  110. package/build/esm/integrations/bullmq/span.js.map +1 -0
  111. package/build/esm/integrations/bullmq/tracer.js +62 -0
  112. package/build/esm/integrations/bullmq/tracer.js.map +1 -0
  113. package/build/esm/integrations/cron.js +2 -2
  114. package/build/esm/integrations/cron.js.map +1 -1
  115. package/build/esm/integrations/express/instrumentation.js +10 -1
  116. package/build/esm/integrations/express/instrumentation.js.map +1 -1
  117. package/build/esm/integrations/google-genai.js +26 -14
  118. package/build/esm/integrations/google-genai.js.map +1 -1
  119. package/build/esm/integrations/langgraph.js +5 -7
  120. package/build/esm/integrations/langgraph.js.map +1 -1
  121. package/build/esm/integrations/mastra-classifier.js +1 -1
  122. package/build/esm/integrations/mastra-classifier.js.map +1 -1
  123. package/build/esm/integrations/mistral.js +15 -5
  124. package/build/esm/integrations/mistral.js.map +1 -1
  125. package/build/esm/integrations/node-cron.js +5 -4
  126. package/build/esm/integrations/node-cron.js.map +1 -1
  127. package/build/esm/integrations/node-schedule.js +2 -2
  128. package/build/esm/integrations/node-schedule.js.map +1 -1
  129. package/build/esm/integrations/openai-compatible.js +16 -8
  130. package/build/esm/integrations/openai-compatible.js.map +1 -1
  131. package/build/esm/integrations/openai.js +16 -8
  132. package/build/esm/integrations/openai.js.map +1 -1
  133. package/build/esm/integrations/pi-ai.js +39 -18
  134. package/build/esm/integrations/pi-ai.js.map +1 -1
  135. package/build/esm/integrations/pino.js +131 -0
  136. package/build/esm/integrations/pino.js.map +1 -0
  137. package/build/esm/integrations/typesafe.js +17 -3
  138. package/build/esm/integrations/typesafe.js.map +1 -1
  139. package/build/esm/integrations/vercel-ai/index.js.map +1 -1
  140. package/build/esm/integrations/vercel-ai/util.js +3 -2
  141. package/build/esm/integrations/vercel-ai/util.js.map +1 -1
  142. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +53 -18
  143. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  144. package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js +22 -16
  145. package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
  146. package/build/esm/integrations/winston.js +90 -0
  147. package/build/esm/integrations/winston.js.map +1 -0
  148. package/build/esm/orchestrion/bundler/moduleInjectedTransform.js +6 -5
  149. package/build/esm/orchestrion/bundler/moduleInjectedTransform.js.map +1 -1
  150. package/build/esm/orchestrion/bundler/rollup.js +4 -4
  151. package/build/esm/orchestrion/bundler/rollup.js.map +1 -1
  152. package/build/esm/orchestrion/config/google-genai.js +19 -5
  153. package/build/esm/orchestrion/config/google-genai.js.map +1 -1
  154. package/build/esm/orchestrion/detect.js +1 -1
  155. package/build/esm/orchestrion/detect.js.map +1 -1
  156. package/build/esm/package.json +1 -1
  157. package/build/esm/utils/cronMonitoring.js +128 -50
  158. package/build/esm/utils/cronMonitoring.js.map +1 -1
  159. package/build/types/ai/anthropic-ai/index.d.ts +1 -5
  160. package/build/types/ai/anthropic-ai/index.d.ts.map +1 -1
  161. package/build/types/ai/anthropic-ai/streaming.d.ts +3 -2
  162. package/build/types/ai/anthropic-ai/streaming.d.ts.map +1 -1
  163. package/build/types/ai/anthropic-ai/tool-runner.d.ts.map +1 -1
  164. package/build/types/ai/anthropic-ai/types.d.ts +24 -3
  165. package/build/types/ai/anthropic-ai/types.d.ts.map +1 -1
  166. package/build/types/ai/anthropic-ai/utils.d.ts +2 -3
  167. package/build/types/ai/anthropic-ai/utils.d.ts.map +1 -1
  168. package/build/types/ai/core/span-hooks.d.ts +31 -0
  169. package/build/types/ai/core/span-hooks.d.ts.map +1 -0
  170. package/build/types/ai/core/time-to-first-chunk.d.ts +7 -0
  171. package/build/types/ai/core/time-to-first-chunk.d.ts.map +1 -0
  172. package/build/types/ai/core/utils.d.ts +30 -1
  173. package/build/types/ai/core/utils.d.ts.map +1 -1
  174. package/build/types/ai/flue/index.d.ts +13 -5
  175. package/build/types/ai/flue/index.d.ts.map +1 -1
  176. package/build/types/ai/flue/types.d.ts +20 -2
  177. package/build/types/ai/flue/types.d.ts.map +1 -1
  178. package/build/types/ai/flue/utils.d.ts +5 -9
  179. package/build/types/ai/flue/utils.d.ts.map +1 -1
  180. package/build/types/ai/google-genai/constants.d.ts +3 -0
  181. package/build/types/ai/google-genai/constants.d.ts.map +1 -1
  182. package/build/types/ai/google-genai/decisions.d.ts +8 -0
  183. package/build/types/ai/google-genai/decisions.d.ts.map +1 -0
  184. package/build/types/ai/google-genai/index.d.ts +3 -1
  185. package/build/types/ai/google-genai/index.d.ts.map +1 -1
  186. package/build/types/ai/google-genai/streaming.d.ts +2 -1
  187. package/build/types/ai/google-genai/streaming.d.ts.map +1 -1
  188. package/build/types/ai/google-genai/types.d.ts +17 -3
  189. package/build/types/ai/google-genai/types.d.ts.map +1 -1
  190. package/build/types/ai/langchain/index.d.ts.map +1 -1
  191. package/build/types/ai/langchain/types.d.ts +49 -3
  192. package/build/types/ai/langchain/types.d.ts.map +1 -1
  193. package/build/types/ai/langchain/utils.d.ts +6 -0
  194. package/build/types/ai/langchain/utils.d.ts.map +1 -1
  195. package/build/types/ai/langgraph/agent-span.d.ts +4 -1
  196. package/build/types/ai/langgraph/agent-span.d.ts.map +1 -1
  197. package/build/types/ai/langgraph/index.d.ts +1 -1
  198. package/build/types/ai/langgraph/index.d.ts.map +1 -1
  199. package/build/types/ai/langgraph/stream.d.ts.map +1 -1
  200. package/build/types/ai/langgraph/types.d.ts +14 -3
  201. package/build/types/ai/langgraph/types.d.ts.map +1 -1
  202. package/build/types/ai/langgraph/utils.d.ts +3 -0
  203. package/build/types/ai/langgraph/utils.d.ts.map +1 -1
  204. package/build/types/ai/mastra/classifier-evaluation.d.ts +3 -3
  205. package/build/types/ai/mastra/classifier-evaluation.d.ts.map +1 -1
  206. package/build/types/ai/mastra/index.d.ts +17 -3
  207. package/build/types/ai/mastra/index.d.ts.map +1 -1
  208. package/build/types/ai/mastra/types.d.ts +2 -0
  209. package/build/types/ai/mastra/types.d.ts.map +1 -1
  210. package/build/types/ai/mastra/utils.d.ts.map +1 -1
  211. package/build/types/ai/mistral/index.d.ts.map +1 -1
  212. package/build/types/ai/mistral/streaming.d.ts +2 -1
  213. package/build/types/ai/mistral/streaming.d.ts.map +1 -1
  214. package/build/types/ai/mistral/types.d.ts +14 -3
  215. package/build/types/ai/mistral/types.d.ts.map +1 -1
  216. package/build/types/ai/mistral/utils.d.ts +5 -0
  217. package/build/types/ai/mistral/utils.d.ts.map +1 -1
  218. package/build/types/ai/openai/index.d.ts.map +1 -1
  219. package/build/types/ai/openai/streaming.d.ts +3 -1
  220. package/build/types/ai/openai/streaming.d.ts.map +1 -1
  221. package/build/types/ai/openai/types.d.ts +14 -3
  222. package/build/types/ai/openai/types.d.ts.map +1 -1
  223. package/build/types/ai/pi-ai/chat.d.ts +7 -1
  224. package/build/types/ai/pi-ai/chat.d.ts.map +1 -1
  225. package/build/types/ai/pi-ai/recording.d.ts +21 -9
  226. package/build/types/ai/pi-ai/recording.d.ts.map +1 -1
  227. package/build/types/ai/pi-ai/types.d.ts +16 -0
  228. package/build/types/ai/pi-ai/types.d.ts.map +1 -1
  229. package/build/types/ai/pi-durable/index.d.ts +12 -3
  230. package/build/types/ai/pi-durable/index.d.ts.map +1 -1
  231. package/build/types/ai/pi-durable/runs.d.ts +2 -0
  232. package/build/types/ai/pi-durable/runs.d.ts.map +1 -1
  233. package/build/types/ai/pi-durable/tools.d.ts +4 -3
  234. package/build/types/ai/pi-durable/tools.d.ts.map +1 -1
  235. package/build/types/ai/pi-durable/types.d.ts +15 -0
  236. package/build/types/ai/pi-durable/types.d.ts.map +1 -1
  237. package/build/types/ai/typesafe/index.d.ts +10 -2
  238. package/build/types/ai/typesafe/index.d.ts.map +1 -1
  239. package/build/types/ai/vercel-ai/index.d.ts.map +1 -1
  240. package/build/types/ai/vercel-ai/vercel-ai-attributes.d.ts +3 -0
  241. package/build/types/ai/vercel-ai/vercel-ai-attributes.d.ts.map +1 -1
  242. package/build/types/ai/workers-ai/index.d.ts.map +1 -1
  243. package/build/types/ai/workers-ai/streaming.d.ts +2 -1
  244. package/build/types/ai/workers-ai/streaming.d.ts.map +1 -1
  245. package/build/types/ai/workers-ai/types.d.ts +18 -3
  246. package/build/types/ai/workers-ai/types.d.ts.map +1 -1
  247. package/build/types/cron/common.d.ts +8 -0
  248. package/build/types/cron/common.d.ts.map +1 -0
  249. package/build/types/cron/cron.d.ts +45 -0
  250. package/build/types/cron/cron.d.ts.map +1 -0
  251. package/build/types/cron/index.d.ts +10 -0
  252. package/build/types/cron/index.d.ts.map +1 -0
  253. package/build/types/cron/node-cron.d.ts +33 -0
  254. package/build/types/cron/node-cron.d.ts.map +1 -0
  255. package/build/types/cron/node-schedule.d.ts +19 -0
  256. package/build/types/cron/node-schedule.d.ts.map +1 -0
  257. package/build/types/index.d.ts +5 -0
  258. package/build/types/index.d.ts.map +1 -1
  259. package/build/types/integrations/anthropic.d.ts +2 -1
  260. package/build/types/integrations/anthropic.d.ts.map +1 -1
  261. package/build/types/integrations/aws-sdk/index.d.ts +3 -3
  262. package/build/types/integrations/aws-sdk/index.d.ts.map +1 -1
  263. package/build/types/integrations/aws-sdk/services/ServiceExtension.d.ts +1 -0
  264. package/build/types/integrations/aws-sdk/services/ServiceExtension.d.ts.map +1 -1
  265. package/build/types/integrations/aws-sdk/services/ServicesExtensions.d.ts +3 -2
  266. package/build/types/integrations/aws-sdk/services/ServicesExtensions.d.ts.map +1 -1
  267. package/build/types/integrations/aws-sdk/services/bedrock-runtime.d.ts +25 -4
  268. package/build/types/integrations/aws-sdk/services/bedrock-runtime.d.ts.map +1 -1
  269. package/build/types/integrations/bullmq/contextManager.d.ts +13 -0
  270. package/build/types/integrations/bullmq/contextManager.d.ts.map +1 -0
  271. package/build/types/integrations/bullmq/index.d.ts +43 -0
  272. package/build/types/integrations/bullmq/index.d.ts.map +1 -0
  273. package/build/types/integrations/bullmq/meter.d.ts +7 -0
  274. package/build/types/integrations/bullmq/meter.d.ts.map +1 -0
  275. package/build/types/integrations/bullmq/span.d.ts +35 -0
  276. package/build/types/integrations/bullmq/span.d.ts.map +1 -0
  277. package/build/types/integrations/bullmq/tracer.d.ts +5 -0
  278. package/build/types/integrations/bullmq/tracer.d.ts.map +1 -0
  279. package/build/types/integrations/bullmq/types.d.ts +72 -0
  280. package/build/types/integrations/bullmq/types.d.ts.map +1 -0
  281. package/build/types/integrations/cron.d.ts.map +1 -1
  282. package/build/types/integrations/express/types.d.ts +1 -0
  283. package/build/types/integrations/express/types.d.ts.map +1 -1
  284. package/build/types/integrations/flue.d.ts +2 -1
  285. package/build/types/integrations/flue.d.ts.map +1 -1
  286. package/build/types/integrations/google-genai.d.ts +5 -4
  287. package/build/types/integrations/google-genai.d.ts.map +1 -1
  288. package/build/types/integrations/groq.d.ts +1 -1
  289. package/build/types/integrations/langchain.d.ts +2 -1
  290. package/build/types/integrations/langchain.d.ts.map +1 -1
  291. package/build/types/integrations/langgraph.d.ts +2 -1
  292. package/build/types/integrations/langgraph.d.ts.map +1 -1
  293. package/build/types/integrations/mistral.d.ts +2 -1
  294. package/build/types/integrations/mistral.d.ts.map +1 -1
  295. package/build/types/integrations/node-cron.d.ts +1 -1
  296. package/build/types/integrations/node-cron.d.ts.map +1 -1
  297. package/build/types/integrations/node-schedule.d.ts.map +1 -1
  298. package/build/types/integrations/openai-compatible.d.ts.map +1 -1
  299. package/build/types/integrations/openai.d.ts +2 -1
  300. package/build/types/integrations/openai.d.ts.map +1 -1
  301. package/build/types/integrations/pi-ai.d.ts +6 -3
  302. package/build/types/integrations/pi-ai.d.ts.map +1 -1
  303. package/build/types/integrations/pi-durable.d.ts +2 -1
  304. package/build/types/integrations/pi-durable.d.ts.map +1 -1
  305. package/build/types/integrations/pino.d.ts +61 -0
  306. package/build/types/integrations/pino.d.ts.map +1 -0
  307. package/build/types/integrations/together-ai.d.ts +1 -1
  308. package/build/types/integrations/typesafe.d.ts +2 -2
  309. package/build/types/integrations/typesafe.d.ts.map +1 -1
  310. package/build/types/integrations/vercel-ai/index.d.ts +3 -3
  311. package/build/types/integrations/vercel-ai/index.d.ts.map +1 -1
  312. package/build/types/integrations/vercel-ai/util.d.ts +2 -1
  313. package/build/types/integrations/vercel-ai/util.d.ts.map +1 -1
  314. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts +20 -4
  315. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
  316. package/build/types/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts.map +1 -1
  317. package/build/types/integrations/winston.d.ts +55 -0
  318. package/build/types/integrations/winston.d.ts.map +1 -0
  319. package/build/types/orchestrion/bundler/moduleInjectedTransform.d.ts.map +1 -1
  320. package/build/types/orchestrion/bundler/rollup.d.ts +3 -3
  321. package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -1
  322. package/build/types/orchestrion/channels.d.ts +1 -0
  323. package/build/types/orchestrion/channels.d.ts.map +1 -1
  324. package/build/types/orchestrion/config/google-genai.d.ts +13 -0
  325. package/build/types/orchestrion/config/google-genai.d.ts.map +1 -1
  326. package/build/types/utils/cronMonitoring.d.ts +4 -5
  327. package/build/types/utils/cronMonitoring.d.ts.map +1 -1
  328. package/package.json +3 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/cron/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAG3D;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,WAAW,EACpB,WAAW,GAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAoB,GACxD,aAAa,GAAG,SAAS,CAW3B"}
@@ -0,0 +1,45 @@
1
+ export type CronJobParams = {
2
+ cronTime: string | Date;
3
+ onTick: (context: unknown, onComplete?: unknown) => void | Promise<void>;
4
+ onComplete?: () => void | Promise<void>;
5
+ start?: boolean | null;
6
+ context?: unknown;
7
+ runOnInit?: boolean | null;
8
+ unrefTimeout?: boolean | null;
9
+ } & ({
10
+ timeZone?: string | null;
11
+ utcOffset?: never;
12
+ } | {
13
+ timeZone?: never;
14
+ utcOffset?: number | null;
15
+ });
16
+ export type CronJob = {};
17
+ export type CronJobConstructor = {
18
+ from: (param: CronJobParams) => CronJob;
19
+ new (cronTime: CronJobParams['cronTime'], onTick: CronJobParams['onTick'], onComplete?: CronJobParams['onComplete'], start?: CronJobParams['start'], timeZone?: CronJobParams['timeZone'], context?: CronJobParams['context'], runOnInit?: CronJobParams['runOnInit'], utcOffset?: null, unrefTimeout?: CronJobParams['unrefTimeout']): CronJob;
20
+ new (cronTime: CronJobParams['cronTime'], onTick: CronJobParams['onTick'], onComplete?: CronJobParams['onComplete'], start?: CronJobParams['start'], timeZone?: null, context?: CronJobParams['context'], runOnInit?: CronJobParams['runOnInit'], utcOffset?: CronJobParams['utcOffset'], unrefTimeout?: CronJobParams['unrefTimeout']): CronJob;
21
+ };
22
+ /**
23
+ * Instruments the `cron` library to send a check-in event to Sentry for each job execution.
24
+ *
25
+ * ```ts
26
+ * import * as Sentry from '@sentry/node';
27
+ * import { CronJob } from 'cron';
28
+ *
29
+ * const CronJobWithCheckIn = Sentry.cron.instrumentCron(CronJob, 'my-cron-job');
30
+ *
31
+ * // use the constructor
32
+ * const job = new CronJobWithCheckIn('* * * * *', () => {
33
+ * console.log('You will see this message every minute');
34
+ * });
35
+ *
36
+ * // or from
37
+ * const job = CronJobWithCheckIn.from({ cronTime: '* * * * *', onTick: () => {
38
+ * console.log('You will see this message every minute');
39
+ * });
40
+ * ```
41
+ *
42
+ * @deprecated Use `cronJobIntegration` instead.
43
+ */
44
+ export declare function instrumentCron<T>(lib: T & CronJobConstructor, monitorSlug: string): T;
45
+ //# sourceMappingURL=cron.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cron.d.ts","sourceRoot":"","sources":["../../../src/cron/cron.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,OAAO,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzE,UAAU,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC/B,GAAG,CACA;IACE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,KAAK,CAAC;CACnB,GACD;IACE,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CACJ,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,EAErB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,OAAO,CAAC;IAExC,KACE,QAAQ,EAAE,aAAa,CAAC,UAAU,CAAC,EACnC,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,EAC/B,UAAU,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,EACxC,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,EAC9B,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,EACpC,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,EAClC,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,EACtC,SAAS,CAAC,EAAE,IAAI,EAChB,YAAY,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,GAC3C,OAAO,CAAC;IACX,KACE,QAAQ,EAAE,aAAa,CAAC,UAAU,CAAC,EACnC,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,EAC/B,UAAU,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,EACxC,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,EAC9B,QAAQ,CAAC,EAAE,IAAI,EACf,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,EAClC,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,EACtC,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,EACtC,YAAY,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,GAC3C,OAAO,CAAC;CACZ,CAAC;AAMF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,kBAAkB,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC,CA2FrF"}
@@ -0,0 +1,10 @@
1
+ import { instrumentCron } from './cron';
2
+ import { instrumentNodeCron } from './node-cron';
3
+ import { instrumentNodeSchedule } from './node-schedule';
4
+ /** Methods to instrument cron libraries for Sentry check-ins */
5
+ export declare const cron: {
6
+ instrumentCron: typeof instrumentCron;
7
+ instrumentNodeCron: typeof instrumentNodeCron;
8
+ instrumentNodeSchedule: typeof instrumentNodeSchedule;
9
+ };
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cron/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,gEAAgE;AAChE,eAAO,MAAM,IAAI;;;;CAMhB,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { type MonitorConfig } from '@sentry/core';
2
+ export interface NodeCronOptions {
3
+ name: string;
4
+ timezone?: string;
5
+ }
6
+ export interface NodeCron {
7
+ schedule: (cronExpression: string, callback: (context?: unknown) => void, options: NodeCronOptions | undefined) => unknown;
8
+ }
9
+ /**
10
+ * Wraps the `node-cron` library with check-in monitoring.
11
+ *
12
+ * ```ts
13
+ * import * as Sentry from "@sentry/node";
14
+ * import * as cron from "node-cron";
15
+ *
16
+ * const cronWithCheckIn = Sentry.cron.instrumentNodeCron(cron);
17
+ *
18
+ * cronWithCheckIn.schedule(
19
+ * "* * * * *",
20
+ * () => {
21
+ * console.log("running a task every minute");
22
+ * },
23
+ * { name: "my-cron-job" },
24
+ * );
25
+ * ```
26
+ *
27
+ * On node-cron 4, steps on `*` in the day-of-month or month field (such as every second day) aren't sent as a
28
+ * schedule, because this wrapper can't tell the node-cron version. `nodeCronIntegration` can.
29
+ *
30
+ * @deprecated Use `nodeCronIntegration` instead.
31
+ */
32
+ export declare function instrumentNodeCron<T>(lib: Partial<NodeCron> & T, monitorConfig?: Pick<MonitorConfig, 'isolateTrace'>): T;
33
+ //# sourceMappingURL=node-cron.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-cron.d.ts","sourceRoot":"","sources":["../../../src/cron/node-cron.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,aAAa,EAGnB,MAAM,cAAc,CAAC;AAItB,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,CACR,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,EACrC,OAAO,EAAE,eAAe,GAAG,SAAS,KACjC,OAAO,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EAC1B,aAAa,GAAE,IAAI,CAAC,aAAa,EAAE,cAAc,CAAM,GACtD,CAAC,CA2DH"}
@@ -0,0 +1,19 @@
1
+ export interface NodeSchedule {
2
+ scheduleJob(nameOrExpression: string | Date | object, expressionOrCallback: string | Date | object | (() => void), callback?: () => void): unknown;
3
+ }
4
+ /**
5
+ * Instruments the `node-schedule` library to send a check-in event to Sentry for each job execution.
6
+ *
7
+ * ```ts
8
+ * import * as Sentry from '@sentry/node';
9
+ * import * as schedule from 'node-schedule';
10
+ *
11
+ * const scheduleWithCheckIn = Sentry.cron.instrumentNodeSchedule(schedule);
12
+ *
13
+ * const job = scheduleWithCheckIn.scheduleJob('my-cron-job', '* * * * *', () => {
14
+ * console.log('You will see this message every minute');
15
+ * });
16
+ * ```
17
+ */
18
+ export declare function instrumentNodeSchedule<T>(lib: T & NodeSchedule): T;
19
+ //# sourceMappingURL=node-schedule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-schedule.d.ts","sourceRoot":"","sources":["../../../src/cron/node-schedule.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B,WAAW,CACT,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,EACxC,oBAAoB,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,EAC3D,QAAQ,CAAC,EAAE,MAAM,IAAI,GACpB,OAAO,CAAC;CACZ;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,YAAY,GAAG,CAAC,CA6ClE"}
@@ -27,6 +27,9 @@ export { nodeCronIntegration } from './integrations/node-cron';
27
27
  export type { NodeCronIntegrationOptions } from './integrations/node-cron';
28
28
  export { nodeScheduleIntegration } from './integrations/node-schedule';
29
29
  export type { NodeScheduleIntegrationOptions } from './integrations/node-schedule';
30
+ export { cronExpressionToMonitorConfig as _INTERNAL_cronExpressionToMonitorConfig } from './utils/cronMonitoring';
31
+ export { cron } from './cron';
32
+ export { BullMQTelemetry } from './integrations/bullmq';
30
33
  export { googleGenAIIntegration } from './integrations/google-genai';
31
34
  export { graphqlIntegration } from './integrations/graphql';
32
35
  export { hapiIntegration } from './integrations/hapi';
@@ -57,6 +60,8 @@ export { togetherAIIntegration } from './integrations/together-ai';
57
60
  export { typesafeIntegration } from './integrations/typesafe';
58
61
  export { mysqlIntegration } from './integrations/mysql';
59
62
  export { mysql2Integration } from './integrations/mysql2';
63
+ export { pinoIntegration } from './integrations/pino';
64
+ export { createSentryWinstonTransport } from './integrations/winston';
60
65
  export { openAIIntegration } from './integrations/openai';
61
66
  export { postgresIntegration } from './integrations/pg';
62
67
  export { postgresJsIntegration } from './integrations/postgresjs';
@@ -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,sBAAsB,IAAI,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAC3G,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,YAAY,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AACvE,YAAY,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AACpE,YAAY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;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,9 +1,10 @@
1
+ import type { AnthropicAiOptions } from '../ai/anthropic-ai/types';
1
2
  /**
2
3
  * Diagnostics-channel-based Anthropic integration. Subscribes to the `orchestrion:@anthropic-ai/sdk:*`
3
4
  * diagnostics_channels injected into the SDK's chat (`messages`/`completions`/beta `messages`) and
4
5
  * `messages.stream()` methods, so it requires the Sentry runtime hook or bundler plugin.
5
6
  */
6
- export declare const anthropicAIIntegration: (options?: import("../ai/core/utils").GenAiOptions | undefined) => import("@sentry/core").Integration & {
7
+ export declare const anthropicAIIntegration: (options?: AnthropicAiOptions | undefined) => import("@sentry/core").Integration & {
7
8
  name: "Anthropic_AI";
8
9
  };
9
10
  //# sourceMappingURL=anthropic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../../src/integrations/anthropic.ts"],"names":[],"mappings":"AAmSA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;CAA6C,CAAC"}
1
+ {"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../../src/integrations/anthropic.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAuB,kBAAkB,EAAuB,MAAM,0BAA0B,CAAC;AA2R7G;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;CAA6C,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { GenAiOptions } from '../../ai/core/utils';
2
- export type AwsIntegrationOptions = GenAiOptions;
1
+ import type { BedrockRuntimeOptions } from './services/bedrock-runtime';
2
+ export type AwsIntegrationOptions = BedrockRuntimeOptions;
3
3
  /**
4
4
  * Diagnostics-channel-based aws-sdk (v3) integration.
5
5
  *
@@ -8,7 +8,7 @@ export type AwsIntegrationOptions = GenAiOptions;
8
8
  * spans identical to the OTel `@opentelemetry/instrumentation-aws-sdk` integration. Requires the
9
9
  * Sentry runtime hook or bundler plugin.
10
10
  */
11
- export declare const awsIntegration: (options?: GenAiOptions | undefined) => import("@sentry/core").Integration & {
11
+ export declare const awsIntegration: (options?: BedrockRuntimeOptions | undefined) => import("@sentry/core").Integration & {
12
12
  name: "Aws";
13
13
  };
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/aws-sdk/index.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAuDxD,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC;AAqLjD;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;CAAqC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/aws-sdk/index.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AA+CxE,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,CAAC;AAsL1D;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;CAAqC,CAAC"}
@@ -5,5 +5,6 @@ export interface ServiceExtension {
5
5
  requestPreSpanHook: (request: NormalizedRequest) => RequestMetadata;
6
6
  requestPostSpanHook?: (request: NormalizedRequest, span: Span) => void;
7
7
  responseHook?: (response: NormalizedResponse, span: Span) => void;
8
+ errorHook?: (request: NormalizedRequest, error: unknown, span: Span) => void;
8
9
  }
9
10
  //# sourceMappingURL=ServiceExtension.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ServiceExtension.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/aws-sdk/services/ServiceExtension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEvF,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC,MAAM,WAAW,gBAAgB;IAE/B,kBAAkB,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,eAAe,CAAC;IAIpE,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IASvE,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CACnE"}
1
+ {"version":3,"file":"ServiceExtension.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/aws-sdk/services/ServiceExtension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEvF,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC,MAAM,WAAW,gBAAgB;IAE/B,kBAAkB,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,eAAe,CAAC;IAIpE,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IASvE,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAGlE,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CAC9E"}
@@ -1,12 +1,13 @@
1
1
  import type { Span } from '@sentry/core';
2
- import type { GenAiOptions } from '../../../ai/core/utils';
3
2
  import type { NormalizedRequest, NormalizedResponse, RequestMetadata } from '../types';
3
+ import type { BedrockRuntimeOptions } from './bedrock-runtime';
4
4
  import type { ServiceExtension } from './ServiceExtension';
5
5
  export declare class ServicesExtensions implements ServiceExtension {
6
6
  private _services;
7
- constructor(genAiOptions?: GenAiOptions);
7
+ constructor(genAiOptions?: BedrockRuntimeOptions);
8
8
  requestPreSpanHook(request: NormalizedRequest): RequestMetadata;
9
9
  requestPostSpanHook(request: NormalizedRequest, span: Span): void;
10
10
  responseHook(response: NormalizedResponse, span: Span): void;
11
+ errorHook(request: NormalizedRequest, error: unknown, span: Span): void;
11
12
  }
12
13
  //# sourceMappingURL=ServicesExtensions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ServicesExtensions.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/aws-sdk/services/ServicesExtensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAOvF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAK3D,qBAAa,kBAAmB,YAAW,gBAAgB;IAGzD,OAAO,CAAC,SAAS,CAAgC;IAEjD,YAAmB,YAAY,CAAC,EAAE,YAAY,EAY7C;IAEM,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,GAAG,eAAe,CAMrE;IAEM,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAGvE;IAEM,YAAY,CAAC,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAGlE;CACF"}
1
+ {"version":3,"file":"ServicesExtensions.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/aws-sdk/services/ServicesExtensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AACvF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAO/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAK3D,qBAAa,kBAAmB,YAAW,gBAAgB;IAGzD,OAAO,CAAC,SAAS,CAAgC;IAEjD,YAAmB,YAAY,CAAC,EAAE,qBAAqB,EAYtD;IAEM,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,GAAG,eAAe,CAMrE;IAEM,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAGvE;IAEM,YAAY,CAAC,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAGlE;IAEM,SAAS,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAG7E;CACF"}
@@ -1,12 +1,33 @@
1
1
  import type { Span } from '@sentry/core';
2
- import type { GenAiOptions } from '../../../ai/core/utils';
3
- import type { NormalizedRequest, NormalizedResponse } from '../types';
2
+ import type { GenAiSpanHooks } from '../../../ai/core/span-hooks';
3
+ import type { GenAiCallOptions } from '../../../ai/core/utils';
4
+ import type { CommandInput, NormalizedRequest, NormalizedResponse } from '../types';
4
5
  import type { RequestMetadata, ServiceExtension } from './ServiceExtension';
6
+ /**
7
+ * The call that `recordInputs`/`recordOutputs` decide on, and that the span hooks get: a Bedrock Runtime
8
+ * command as sent.
9
+ */
10
+ export interface BedrockRuntimeCallInfo {
11
+ /** The command name, such as `Converse` or `InvokeModelWithResponseStream`. */
12
+ commandName: string;
13
+ /** The command input as passed. */
14
+ input: CommandInput;
15
+ }
16
+ /**
17
+ * Options for the Bedrock Runtime instrumentation of the AWS integration. `onSpanEnd` gets the command
18
+ * output; for `ConverseStream` and `InvokeModelWithResponseStream` it is `undefined`.
19
+ */
20
+ export type BedrockRuntimeOptions = GenAiCallOptions<BedrockRuntimeCallInfo> & GenAiSpanHooks<BedrockRuntimeCallInfo>;
5
21
  export declare class BedrockRuntimeServiceExtension implements ServiceExtension {
6
22
  private readonly _options;
7
23
  private _piAiRequests;
8
- constructor(_options?: GenAiOptions);
9
- private _recordingOptions;
24
+ private _calls;
25
+ constructor(_options?: BedrockRuntimeOptions);
26
+ private _resolveRecording;
27
+ private _shouldRecordOutputs;
28
+ private _runSpanEnd;
29
+ requestPostSpanHook(request: NormalizedRequest, span: Span): void;
30
+ errorHook(request: NormalizedRequest, error: unknown, span: Span): void;
10
31
  requestPreSpanHook(request: NormalizedRequest): RequestMetadata;
11
32
  responseHook(response: NormalizedResponse, span: Span): void;
12
33
  private _requestPreSpanHookConverse;
@@ -1 +1 @@
1
- {"version":3,"file":"bedrock-runtime.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/aws-sdk/services/bedrock-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAezC,OAAO,KAAK,EAAE,YAAY,EAAuB,MAAM,wBAAwB,CAAC;AAehF,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAUtE,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AA4B5E,qBAAa,8BAA+B,YAAW,gBAAgB;IAKlD,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAF5C,OAAO,CAAC,aAAa,CAA6C;IAElE,YAAoC,QAAQ,GAAE,YAAiB,EAAI;IAEnE,OAAO,CAAC,iBAAiB;IAIlB,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,GAAG,eAAe,CAkBrE;IAEM,YAAY,CAAC,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CA2BlE;IAED,OAAO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BAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAE7E;IAEM,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,GAAG,eAAe,CAkBrE;IAEM,YAAY,CAAC,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CA2BlE;IAED,OAAO,CAAC,2BAA2B;IA8CnC,OAAO,CAAC,8BAA8B;IAmItC,OAAO,CAAC,qBAAqB;IAqB7B,OAAO,CAAC,2BAA2B;IAmBnC,OAAO,CAAC,wBAAwB;IAsEhC,OAAO,CAAC,0CAA0C;CAgCnD"}
@@ -0,0 +1,13 @@
1
+ import type { ContextManager, SentryContext } from './types';
2
+ export declare class SentryBullMQContextManager implements ContextManager<SentryContext> {
3
+ active(): SentryContext;
4
+ with<A extends (...args: unknown[]) => unknown>(context: SentryContext, fn: A): ReturnType<A>;
5
+ /**
6
+ * Returns a context without a span. BullMQ 6.3.11+ runs the stalled jobs checker in it, so the
7
+ * checker does not stay attached to the span that was active when the worker started.
8
+ */
9
+ root(): SentryContext;
10
+ getMetadata(context: SentryContext): string;
11
+ fromMetadata(activeContext: SentryContext, metadata: string): SentryContext;
12
+ }
13
+ //# sourceMappingURL=contextManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contextManager.d.ts","sourceRoot":"","sources":["../../../../src/integrations/bullmq/contextManager.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7D,qBAAa,0BAA2B,YAAW,cAAc,CAAC,aAAa,CAAC;IACvE,MAAM,IAAI,aAAa,CAK7B;IAEM,IAAI,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAOnG;IAED;;;OAGG;IACI,IAAI,IAAI,aAAa,CAK3B;IAEM,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAKjD;IAEM,YAAY,CAAC,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,GAAG,aAAa,CAcjF;CACF"}
@@ -0,0 +1,43 @@
1
+ import type { ContextManager, Meter, Telemetry, Tracer, SentryContext } from './types';
2
+ /**
3
+ * A Sentry-specific telemetry implementation for BullMQ.
4
+ *
5
+ * This implements BullMQ's Telemetry interface to provide automatic tracing
6
+ * for queue operations with proper Queue Insights attributes.
7
+ *
8
+ * @example
9
+ * ```javascript
10
+ * import * as Sentry from '@sentry/node';
11
+ * import { Queue, Worker } from 'bullmq';
12
+ *
13
+ * const telemetry = new Sentry.BullMQTelemetry();
14
+ *
15
+ * const queue = new Queue('myQueue', {
16
+ * connection: { host: '127.0.0.1', port: 6379 },
17
+ * telemetry,
18
+ * });
19
+ *
20
+ * const worker = new Worker('myQueue', async (job) => {
21
+ * // Process job
22
+ * }, {
23
+ * connection: { host: '127.0.0.1', port: 6379 },
24
+ * telemetry,
25
+ * });
26
+ * ```
27
+ *
28
+ * To also send BullMQ's job metrics to Sentry, use `new Sentry.BullMQTelemetry({ enableMetrics: true })`.
29
+ *
30
+ * @see https://docs.bullmq.io/guide/telemetry
31
+ */
32
+ export declare class BullMQTelemetry implements Telemetry<SentryContext> {
33
+ tracer: Tracer<SentryContext>;
34
+ contextManager: ContextManager<SentryContext>;
35
+ meter?: Meter;
36
+ constructor(options?: {
37
+ /**
38
+ * Sends BullMQ's job metrics, such as `messaging.bullmq.jobs.completed` and `messaging.process.duration`, to Sentry. Defaults to `false`.
39
+ */
40
+ enableMetrics?: boolean;
41
+ });
42
+ }
43
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/bullmq/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEvF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBAAa,eAAgB,YAAW,SAAS,CAAC,aAAa,CAAC;IACvD,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;IAC9B,cAAc,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAC9C,KAAK,CAAC,EAAE,KAAK,CAAC;IAErB,YACE,OAAO,GAAE;QACP;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;KACpB,EAQP;CACF"}
@@ -0,0 +1,7 @@
1
+ import type { Counter, Gauge, Histogram, Meter, MetricOptions } from './types';
2
+ export declare class SentryBullMQMeter implements Meter {
3
+ createCounter(name: string, options?: MetricOptions): Counter;
4
+ createHistogram(name: string, options?: MetricOptions): Histogram;
5
+ createGauge(name: string, options?: MetricOptions): Gauge;
6
+ }
7
+ //# sourceMappingURL=meter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meter.d.ts","sourceRoot":"","sources":["../../../../src/integrations/bullmq/meter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAkB,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAqG/F,qBAAa,iBAAkB,YAAW,KAAK;IACtC,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAEnE;IAEM,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAMvE;IAEM,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,KAAK,CAE/D;CACF"}
@@ -0,0 +1,35 @@
1
+ import type { Attributes, Span } from '@opentelemetry/api';
2
+ import type { Scope } from '@sentry/core';
3
+ import type { AttributeValue, TelemetrySpan } from './types';
4
+ /**
5
+ * Returns the Sentry key for a `bullmq.*` attribute key or metric name: the key from `MESSAGING_BULLMQ_KEYS`, or
6
+ * `messaging.<key>` for the keys that are not in it, such as the metric names. Returns all other keys unchanged.
7
+ */
8
+ export declare function toMessagingKey(key: string): string;
9
+ /**
10
+ * Returns the BullMQ attributes with Sentry keys: the `messaging.*` convention where one exists, and the
11
+ * `messaging.bullmq.*` key for all others. The attributes that hold JSON strings and the deprecated ones are left out.
12
+ */
13
+ export declare function toSentryAttributes(attributes: Record<string, AttributeValue>): Attributes;
14
+ export declare class SentryBullMQSpan implements TelemetrySpan {
15
+ private _span;
16
+ private _scope;
17
+ private _recordedError;
18
+ constructor(span: Span, scope: Scope);
19
+ setAttribute(key: string, value: AttributeValue): void;
20
+ setAttributes(attributes: Record<string, AttributeValue>): void;
21
+ addEvent(name: string, attributes?: Record<string, AttributeValue>): void;
22
+ /**
23
+ * Does not capture to Sentry. BullMQ calls this for Redis, lock and serialization errors that it
24
+ * retries itself, often several times for one fault, and for the job error right before the `job failed` event.
25
+ * Job failures are captured in `addEvent`.
26
+ */
27
+ recordException(exception: Error | string | {
28
+ code?: number;
29
+ message?: string;
30
+ name?: string;
31
+ }): void;
32
+ setSpanOnContext(context: unknown): unknown;
33
+ end(): void;
34
+ }
35
+ //# sourceMappingURL=span.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"span.d.ts","sourceRoot":"","sources":["../../../../src/integrations/bullmq/span.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAiC3D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAwC7D;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAElD;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,UAAU,CAoDzF;AAED,qBAAa,gBAAiB,YAAW,aAAa;IACpD,OAAO,CAAC,KAAK,CAAO;IACpB,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,cAAc,CAAoB;IAE1C,YAAmB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAG1C;IAEM,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,GAAG,IAAI,CAE5D;IAEM,aAAa,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,IAAI,CAErE;IAEM,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,IAAI,CAyB/E;IAED;;;;OAIG;IACI,eAAe,CAAC,SAAS,EAAE,KAAK,GAAG,MAAM,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAQ3G;IAEM,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAMjD;IAEM,GAAG,IAAI,IAAI,CAEjB;CACF"}
@@ -0,0 +1,5 @@
1
+ import type { SpanOptions, TelemetrySpan, Tracer, SentryContext } from './types';
2
+ export declare class SentryBullMQTracer implements Tracer<SentryContext> {
3
+ startSpan(name: string, options?: SpanOptions, context?: SentryContext): TelemetrySpan;
4
+ }
5
+ //# sourceMappingURL=tracer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tracer.d.ts","sourceRoot":"","sources":["../../../../src/integrations/bullmq/tracer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAuCjF,qBAAa,kBAAmB,YAAW,MAAM,CAAC,aAAa,CAAC;IACvD,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,aAAa,CAiC5F;CACF"}
@@ -0,0 +1,72 @@
1
+ import type { Span } from '@opentelemetry/api';
2
+ import type { Scope } from '@sentry/core';
3
+ /**
4
+ * Vendored from bullmq@5.79.1 — src/interfaces/telemetry.ts
5
+ * https://github.com/taskforcesh/bullmq/blob/master/src/interfaces/telemetry.ts
6
+ *
7
+ * Minimal subset of BullMQ's Telemetry interface so we don't depend on bullmq at runtime.
8
+ *
9
+ * SPDX-License-Identifier: MIT
10
+ * Copyright (c) 2018 BullForce Labs AB and contributors
11
+ */
12
+ export type AttributeValue = string | number | boolean | Array<string | number | boolean>;
13
+ export interface SpanOptions {
14
+ kind?: number;
15
+ attributes?: Record<string, AttributeValue>;
16
+ parent?: unknown;
17
+ }
18
+ export interface TelemetrySpan {
19
+ setAttribute(key: string, value: AttributeValue): void;
20
+ setAttributes(attributes: Record<string, AttributeValue>): void;
21
+ addEvent(name: string, attributes?: Record<string, AttributeValue>): void;
22
+ recordException(exception: Error | string | {
23
+ code?: number;
24
+ message?: string;
25
+ name?: string;
26
+ }): void;
27
+ setSpanOnContext(context: unknown): unknown;
28
+ end(): void;
29
+ }
30
+ export interface Tracer<Context> {
31
+ startSpan(name: string, options?: SpanOptions, context?: Context): TelemetrySpan;
32
+ }
33
+ export interface ContextManager<Context> {
34
+ active(): Context;
35
+ with<A extends (...args: unknown[]) => unknown>(context: Context, fn: A): ReturnType<A>;
36
+ root?(): Context;
37
+ getMetadata(context: Context): string;
38
+ fromMetadata(activeContext: Context, metadata: string): Context;
39
+ }
40
+ export interface MetricOptions {
41
+ description?: string;
42
+ unit?: string;
43
+ }
44
+ export interface Counter {
45
+ add(value: number, attributes?: Record<string, AttributeValue>): void;
46
+ }
47
+ export interface Histogram {
48
+ record(value: number, attributes?: Record<string, AttributeValue>): void;
49
+ }
50
+ export interface Gauge {
51
+ record(value: number, attributes?: Record<string, AttributeValue>): void;
52
+ }
53
+ export interface Meter {
54
+ createCounter(name: string, options?: MetricOptions): Counter;
55
+ createHistogram(name: string, options?: MetricOptions): Histogram;
56
+ createGauge?(name: string, options?: MetricOptions): Gauge;
57
+ }
58
+ export interface Telemetry<Context> {
59
+ tracer: Tracer<Context>;
60
+ contextManager: ContextManager<Context>;
61
+ meter?: Meter;
62
+ }
63
+ export interface SentryContext {
64
+ span: Span | undefined;
65
+ scope: Scope;
66
+ producerSpanContext?: {
67
+ traceId: string;
68
+ spanId: string;
69
+ sampled: boolean;
70
+ };
71
+ }
72
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/integrations/bullmq/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAE1C;;;;;;;;GAQG;AAEH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAE1F,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC5C,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;IACvD,aAAa,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,IAAI,CAAC;IAChE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,E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AS,EAAE,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,cAAc,GAAG,IAAI,CAY/E"}
1
+ {"version":3,"file":"cron.d.ts","sourceRoot":"","sources":["../../../src/integrations/cron.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAS,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAYrE,MAAM,WAAW,yBAAyB;IACxC,qEAAqE;IACrE,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CACtC;AAaD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;CAAyC,CAAC;AAOzE,uGAAuG;AACvG,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,cAAc,GAAG,IAAI,CAc/E"}
@@ -12,6 +12,7 @@ export interface ExpressLayer {
12
12
  };
13
13
  name?: string;
14
14
  path?: string;
15
+ keys?: unknown[];
15
16
  route?: {
16
17
  path?: unknown;
17
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/integrations/express/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,YAAY,GAAG,iBAAiB,CAAC;AAE3E;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAG3B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,kFAAkF;AAClF,MAA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IACrE,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,WAAW,CAAC,EAAE,IAAI,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,0BAA2B,SAAQ,yBAAyB;IAC3E,IAAI,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;CACnC;AAED,+FAA+F;AAC/F,MAAM,WAAW,eAAgB,SAAQ,KAAK;IAC5C,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,MAAM,CAAC,EAAE;QACP,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KAC9B,CAAC;CACH;AAED,gGAAgG;AAChG,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,EAAE,eAAe,KAAK,OAAO,CAAC,GAAG,KAAK,CAAC;AAErF,KAAK,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC;AACnE,MAAM,WAAW,yBAAyB;IACxC,0CAA0C;IAC1C,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC;IAC/B,iDAAiD;IACjD,gBAAgB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,iBAAiB,CAAC,EAAE,wBAAwB,CAAC;CAC9C"}
@@ -1,4 +1,5 @@
1
- export declare const flueIntegration: (options?: import("../ai/core/utils").GenAiOptions | undefined) => import("@sentry/core").Integration & {
1
+ import type { FlueOptions } from '../ai/flue';
2
+ export declare const flueIntegration: (options?: FlueOptions | undefined) => import("@sentry/core").Integration & {
2
3
  name: "Flue";
3
4
  };
4
5
  //# sourceMappingURL=flue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flue.d.ts","sourceRoot":"","sources":["../../../src/integrations/flue.ts"],"names":[],"mappings":"AA+DA,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
1
+ {"version":3,"file":"flue.d.ts","sourceRoot":"","sources":["../../../src/integrations/flue.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AA6D9C,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
@@ -1,11 +1,12 @@
1
+ import type { GoogleGenAIOptions } from '../ai/google-genai/types';
1
2
  /**
2
3
  * Diagnostics-channel-based Google GenAI integration. Subscribes to the
3
4
  * `orchestrion:@google/genai:*` diagnostics_channels injected into the SDK's `Models`
4
- * (`generateContent`/`generateContentStream`/`embedContent`) and `Chat`
5
- * (`sendMessage`/`sendMessageStream`) methods, so it requires the Sentry runtime hook or
6
- * bundler plugin.
5
+ * (`generateContent`/`generateContentStream`/`embedContent`), `Chat`
6
+ * (`sendMessage`/`sendMessageStream`) and decisions (`create`) methods, so it requires the Sentry
7
+ * runtime hook or bundler plugin.
7
8
  */
8
- export declare const googleGenAIIntegration: (options?: import("../ai/core/utils").GenAiOptions | undefined) => import("@sentry/core").Integration & {
9
+ export declare const googleGenAIIntegration: (options?: GoogleGenAIOptions | undefined) => import("@sentry/core").Integration & {
9
10
  name: "Google_GenAI";
10
11
  };
11
12
  //# sourceMappingURL=google-genai.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"google-genai.d.ts","sourceRoot":"","sources":["../../../src/integrations/google-genai.ts"],"names":[],"mappings":"AA0KA;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;;CAA6C,CAAC"}
1
+ {"version":3,"file":"google-genai.d.ts","sourceRoot":"","sources":["../../../src/integrations/google-genai.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAuB,kBAAkB,EAAuB,MAAM,0BAA0B,CAAC;AA0J7G;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;;CAA6C,CAAC"}
@@ -4,7 +4,7 @@ export declare const GROQ_INTEGRATION_NAME: 'Groq';
4
4
  * so this reuses the openai span/streaming logic; see `createOpenAiCompatibleIntegration`. Requires the
5
5
  * Sentry runtime hook or bundler plugin so the diagnostics channels get injected into `groq-sdk`.
6
6
  */
7
- export declare const groqIntegration: (options?: import("../ai/core/utils").GenAiOptions | undefined) => import("@sentry/core").Integration & {
7
+ export declare const groqIntegration: (options?: import("../ai/openai/types").OpenAiOptions | undefined) => import("@sentry/core").Integration & {
8
8
  name: "Groq";
9
9
  };
10
10
  //# sourceMappingURL=groq.d.ts.map
@@ -1,9 +1,10 @@
1
+ import type { LangChainOptions } from '../ai/langchain/types';
1
2
  /**
2
3
  * Diagnostics-channel-based LangChain integration. Subscribes to the diagnostics_channels
3
4
  * injected into `@langchain/core`'s `BaseChatModel` (to inject the Sentry callback handler) and into
4
5
  * `@langchain/openai`'s embedding methods, so it requires the Sentry runtime hook or bundler plugin.
5
6
  */
6
- export declare const langChainIntegration: (options?: import("../ai/core/utils").GenAiOptions | undefined) => import("@sentry/core").Integration & {
7
+ export declare const langChainIntegration: (options?: LangChainOptions | undefined) => import("@sentry/core").Integration & {
7
8
  name: "LangChain";
8
9
  };
9
10
  //# sourceMappingURL=langchain.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"langchain.d.ts","sourceRoot":"","sources":["../../../src/integrations/langchain.ts"],"names":[],"mappings":"AAyIA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;CAA2C,CAAC"}
1
+ {"version":3,"file":"langchain.d.ts","sourceRoot":"","sources":["../../../src/integrations/langchain.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAgI9D;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;CAA2C,CAAC"}