@sentry/server-utils 11.14.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 (277) hide show
  1. package/build/cjs/chunks/exports.js +526 -217
  2. package/build/cjs/chunks/exports.js.map +1 -1
  3. package/build/cjs/index.js +1028 -120
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/esm/ai/anthropic-ai/index.js +32 -56
  6. package/build/esm/ai/anthropic-ai/index.js.map +1 -1
  7. package/build/esm/ai/anthropic-ai/streaming.js +10 -6
  8. package/build/esm/ai/anthropic-ai/streaming.js.map +1 -1
  9. package/build/esm/ai/anthropic-ai/tool-runner.js +18 -3
  10. package/build/esm/ai/anthropic-ai/tool-runner.js.map +1 -1
  11. package/build/esm/ai/anthropic-ai/utils.js +41 -3
  12. package/build/esm/ai/anthropic-ai/utils.js.map +1 -1
  13. package/build/esm/ai/core/span-hooks.js +23 -0
  14. package/build/esm/ai/core/span-hooks.js.map +1 -0
  15. package/build/esm/ai/core/time-to-first-chunk.js +14 -0
  16. package/build/esm/ai/core/time-to-first-chunk.js.map +1 -0
  17. package/build/esm/ai/core/utils.js +29 -3
  18. package/build/esm/ai/core/utils.js.map +1 -1
  19. package/build/esm/ai/flue/index.js +15 -12
  20. package/build/esm/ai/flue/index.js.map +1 -1
  21. package/build/esm/ai/flue/utils.js +24 -17
  22. package/build/esm/ai/flue/utils.js.map +1 -1
  23. package/build/esm/ai/google-genai/index.js +21 -8
  24. package/build/esm/ai/google-genai/index.js.map +1 -1
  25. package/build/esm/ai/google-genai/streaming.js +6 -2
  26. package/build/esm/ai/google-genai/streaming.js.map +1 -1
  27. package/build/esm/ai/langchain/embeddings.js +5 -2
  28. package/build/esm/ai/langchain/embeddings.js.map +1 -1
  29. package/build/esm/ai/langchain/index.js +82 -24
  30. package/build/esm/ai/langchain/index.js.map +1 -1
  31. package/build/esm/ai/langchain/utils.js +9 -1
  32. package/build/esm/ai/langchain/utils.js.map +1 -1
  33. package/build/esm/ai/langgraph/agent-span.js +13 -5
  34. package/build/esm/ai/langgraph/agent-span.js.map +1 -1
  35. package/build/esm/ai/langgraph/index.js +13 -15
  36. package/build/esm/ai/langgraph/index.js.map +1 -1
  37. package/build/esm/ai/langgraph/stream.js +4 -3
  38. package/build/esm/ai/langgraph/stream.js.map +1 -1
  39. package/build/esm/ai/langgraph/utils.js +17 -8
  40. package/build/esm/ai/langgraph/utils.js.map +1 -1
  41. package/build/esm/ai/mastra/classifier-evaluation.js.map +1 -1
  42. package/build/esm/ai/mastra/index.js +33 -16
  43. package/build/esm/ai/mastra/index.js.map +1 -1
  44. package/build/esm/ai/mastra/utils.js +3 -5
  45. package/build/esm/ai/mastra/utils.js.map +1 -1
  46. package/build/esm/ai/mistral/index.js +21 -7
  47. package/build/esm/ai/mistral/index.js.map +1 -1
  48. package/build/esm/ai/mistral/streaming.js +4 -2
  49. package/build/esm/ai/mistral/streaming.js.map +1 -1
  50. package/build/esm/ai/openai/index.js +19 -8
  51. package/build/esm/ai/openai/index.js.map +1 -1
  52. package/build/esm/ai/openai/streaming.js +7 -2
  53. package/build/esm/ai/openai/streaming.js.map +1 -1
  54. package/build/esm/ai/pi-ai/chat.js +18 -1
  55. package/build/esm/ai/pi-ai/chat.js.map +1 -1
  56. package/build/esm/ai/pi-ai/recording.js +34 -15
  57. package/build/esm/ai/pi-ai/recording.js.map +1 -1
  58. package/build/esm/ai/pi-durable/index.js +7 -2
  59. package/build/esm/ai/pi-durable/index.js.map +1 -1
  60. package/build/esm/ai/pi-durable/runs.js.map +1 -1
  61. package/build/esm/ai/pi-durable/tools.js +18 -3
  62. package/build/esm/ai/pi-durable/tools.js.map +1 -1
  63. package/build/esm/ai/typesafe/index.js +14 -6
  64. package/build/esm/ai/typesafe/index.js.map +1 -1
  65. package/build/esm/ai/workers-ai/index.js +26 -9
  66. package/build/esm/ai/workers-ai/index.js.map +1 -1
  67. package/build/esm/ai/workers-ai/streaming.js +6 -4
  68. package/build/esm/ai/workers-ai/streaming.js.map +1 -1
  69. package/build/esm/cron/common.js +16 -0
  70. package/build/esm/cron/common.js.map +1 -0
  71. package/build/esm/cron/cron.js +82 -0
  72. package/build/esm/cron/cron.js.map +1 -0
  73. package/build/esm/cron/index.js +13 -0
  74. package/build/esm/cron/index.js.map +1 -0
  75. package/build/esm/cron/node-cron.js +66 -0
  76. package/build/esm/cron/node-cron.js.map +1 -0
  77. package/build/esm/cron/node-schedule.js +43 -0
  78. package/build/esm/cron/node-schedule.js.map +1 -0
  79. package/build/esm/index.js +6 -2
  80. package/build/esm/index.js.map +1 -1
  81. package/build/esm/integrations/anthropic.js +25 -16
  82. package/build/esm/integrations/anthropic.js.map +1 -1
  83. package/build/esm/integrations/aws-sdk/index.js +1 -0
  84. package/build/esm/integrations/aws-sdk/index.js.map +1 -1
  85. package/build/esm/integrations/aws-sdk/services/ServicesExtensions.js +3 -0
  86. package/build/esm/integrations/aws-sdk/services/ServicesExtensions.js.map +1 -1
  87. package/build/esm/integrations/aws-sdk/services/bedrock-runtime.js +45 -12
  88. package/build/esm/integrations/aws-sdk/services/bedrock-runtime.js.map +1 -1
  89. package/build/esm/integrations/bullmq/contextManager.js +45 -0
  90. package/build/esm/integrations/bullmq/contextManager.js.map +1 -0
  91. package/build/esm/integrations/bullmq/index.js +44 -0
  92. package/build/esm/integrations/bullmq/index.js.map +1 -0
  93. package/build/esm/integrations/bullmq/meter.js +86 -0
  94. package/build/esm/integrations/bullmq/meter.js.map +1 -0
  95. package/build/esm/integrations/bullmq/span.js +114 -0
  96. package/build/esm/integrations/bullmq/span.js.map +1 -0
  97. package/build/esm/integrations/bullmq/tracer.js +62 -0
  98. package/build/esm/integrations/bullmq/tracer.js.map +1 -0
  99. package/build/esm/integrations/express/instrumentation.js +10 -1
  100. package/build/esm/integrations/express/instrumentation.js.map +1 -1
  101. package/build/esm/integrations/google-genai.js +17 -9
  102. package/build/esm/integrations/google-genai.js.map +1 -1
  103. package/build/esm/integrations/langgraph.js +5 -7
  104. package/build/esm/integrations/langgraph.js.map +1 -1
  105. package/build/esm/integrations/mastra-classifier.js +1 -1
  106. package/build/esm/integrations/mastra-classifier.js.map +1 -1
  107. package/build/esm/integrations/mistral.js +13 -4
  108. package/build/esm/integrations/mistral.js.map +1 -1
  109. package/build/esm/integrations/openai-compatible.js +16 -8
  110. package/build/esm/integrations/openai-compatible.js.map +1 -1
  111. package/build/esm/integrations/openai.js +16 -8
  112. package/build/esm/integrations/openai.js.map +1 -1
  113. package/build/esm/integrations/pi-ai.js +39 -18
  114. package/build/esm/integrations/pi-ai.js.map +1 -1
  115. package/build/esm/integrations/pino.js +131 -0
  116. package/build/esm/integrations/pino.js.map +1 -0
  117. package/build/esm/integrations/typesafe.js +17 -3
  118. package/build/esm/integrations/typesafe.js.map +1 -1
  119. package/build/esm/integrations/vercel-ai/index.js.map +1 -1
  120. package/build/esm/integrations/vercel-ai/util.js +3 -2
  121. package/build/esm/integrations/vercel-ai/util.js.map +1 -1
  122. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +44 -17
  123. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  124. package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js +22 -16
  125. package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
  126. package/build/esm/integrations/winston.js +90 -0
  127. package/build/esm/integrations/winston.js.map +1 -0
  128. package/build/esm/orchestrion/detect.js +1 -1
  129. package/build/esm/orchestrion/detect.js.map +1 -1
  130. package/build/esm/package.json +1 -1
  131. package/build/types/ai/anthropic-ai/index.d.ts +1 -5
  132. package/build/types/ai/anthropic-ai/index.d.ts.map +1 -1
  133. package/build/types/ai/anthropic-ai/streaming.d.ts +3 -2
  134. package/build/types/ai/anthropic-ai/streaming.d.ts.map +1 -1
  135. package/build/types/ai/anthropic-ai/tool-runner.d.ts.map +1 -1
  136. package/build/types/ai/anthropic-ai/types.d.ts +24 -3
  137. package/build/types/ai/anthropic-ai/types.d.ts.map +1 -1
  138. package/build/types/ai/anthropic-ai/utils.d.ts +2 -3
  139. package/build/types/ai/anthropic-ai/utils.d.ts.map +1 -1
  140. package/build/types/ai/core/span-hooks.d.ts +31 -0
  141. package/build/types/ai/core/span-hooks.d.ts.map +1 -0
  142. package/build/types/ai/core/time-to-first-chunk.d.ts +7 -0
  143. package/build/types/ai/core/time-to-first-chunk.d.ts.map +1 -0
  144. package/build/types/ai/core/utils.d.ts +30 -1
  145. package/build/types/ai/core/utils.d.ts.map +1 -1
  146. package/build/types/ai/flue/index.d.ts +13 -5
  147. package/build/types/ai/flue/index.d.ts.map +1 -1
  148. package/build/types/ai/flue/types.d.ts +20 -2
  149. package/build/types/ai/flue/types.d.ts.map +1 -1
  150. package/build/types/ai/flue/utils.d.ts +5 -9
  151. package/build/types/ai/flue/utils.d.ts.map +1 -1
  152. package/build/types/ai/google-genai/index.d.ts.map +1 -1
  153. package/build/types/ai/google-genai/streaming.d.ts +2 -1
  154. package/build/types/ai/google-genai/streaming.d.ts.map +1 -1
  155. package/build/types/ai/google-genai/types.d.ts +17 -3
  156. package/build/types/ai/google-genai/types.d.ts.map +1 -1
  157. package/build/types/ai/langchain/index.d.ts.map +1 -1
  158. package/build/types/ai/langchain/types.d.ts +49 -3
  159. package/build/types/ai/langchain/types.d.ts.map +1 -1
  160. package/build/types/ai/langchain/utils.d.ts +6 -0
  161. package/build/types/ai/langchain/utils.d.ts.map +1 -1
  162. package/build/types/ai/langgraph/agent-span.d.ts +4 -1
  163. package/build/types/ai/langgraph/agent-span.d.ts.map +1 -1
  164. package/build/types/ai/langgraph/index.d.ts +1 -1
  165. package/build/types/ai/langgraph/index.d.ts.map +1 -1
  166. package/build/types/ai/langgraph/stream.d.ts.map +1 -1
  167. package/build/types/ai/langgraph/types.d.ts +14 -3
  168. package/build/types/ai/langgraph/types.d.ts.map +1 -1
  169. package/build/types/ai/langgraph/utils.d.ts +3 -0
  170. package/build/types/ai/langgraph/utils.d.ts.map +1 -1
  171. package/build/types/ai/mastra/classifier-evaluation.d.ts +3 -3
  172. package/build/types/ai/mastra/classifier-evaluation.d.ts.map +1 -1
  173. package/build/types/ai/mastra/index.d.ts +17 -3
  174. package/build/types/ai/mastra/index.d.ts.map +1 -1
  175. package/build/types/ai/mastra/types.d.ts +2 -0
  176. package/build/types/ai/mastra/types.d.ts.map +1 -1
  177. package/build/types/ai/mastra/utils.d.ts.map +1 -1
  178. package/build/types/ai/mistral/index.d.ts.map +1 -1
  179. package/build/types/ai/mistral/streaming.d.ts +2 -1
  180. package/build/types/ai/mistral/streaming.d.ts.map +1 -1
  181. package/build/types/ai/mistral/types.d.ts +14 -3
  182. package/build/types/ai/mistral/types.d.ts.map +1 -1
  183. package/build/types/ai/openai/index.d.ts.map +1 -1
  184. package/build/types/ai/openai/streaming.d.ts +3 -1
  185. package/build/types/ai/openai/streaming.d.ts.map +1 -1
  186. package/build/types/ai/openai/types.d.ts +14 -3
  187. package/build/types/ai/openai/types.d.ts.map +1 -1
  188. package/build/types/ai/pi-ai/chat.d.ts +7 -1
  189. package/build/types/ai/pi-ai/chat.d.ts.map +1 -1
  190. package/build/types/ai/pi-ai/recording.d.ts +21 -9
  191. package/build/types/ai/pi-ai/recording.d.ts.map +1 -1
  192. package/build/types/ai/pi-ai/types.d.ts +16 -0
  193. package/build/types/ai/pi-ai/types.d.ts.map +1 -1
  194. package/build/types/ai/pi-durable/index.d.ts +12 -3
  195. package/build/types/ai/pi-durable/index.d.ts.map +1 -1
  196. package/build/types/ai/pi-durable/runs.d.ts +2 -0
  197. package/build/types/ai/pi-durable/runs.d.ts.map +1 -1
  198. package/build/types/ai/pi-durable/tools.d.ts +4 -3
  199. package/build/types/ai/pi-durable/tools.d.ts.map +1 -1
  200. package/build/types/ai/pi-durable/types.d.ts +15 -0
  201. package/build/types/ai/pi-durable/types.d.ts.map +1 -1
  202. package/build/types/ai/typesafe/index.d.ts +10 -2
  203. package/build/types/ai/typesafe/index.d.ts.map +1 -1
  204. package/build/types/ai/workers-ai/index.d.ts.map +1 -1
  205. package/build/types/ai/workers-ai/streaming.d.ts +2 -1
  206. package/build/types/ai/workers-ai/streaming.d.ts.map +1 -1
  207. package/build/types/ai/workers-ai/types.d.ts +18 -3
  208. package/build/types/ai/workers-ai/types.d.ts.map +1 -1
  209. package/build/types/cron/common.d.ts +8 -0
  210. package/build/types/cron/common.d.ts.map +1 -0
  211. package/build/types/cron/cron.d.ts +45 -0
  212. package/build/types/cron/cron.d.ts.map +1 -0
  213. package/build/types/cron/index.d.ts +10 -0
  214. package/build/types/cron/index.d.ts.map +1 -0
  215. package/build/types/cron/node-cron.d.ts +33 -0
  216. package/build/types/cron/node-cron.d.ts.map +1 -0
  217. package/build/types/cron/node-schedule.d.ts +19 -0
  218. package/build/types/cron/node-schedule.d.ts.map +1 -0
  219. package/build/types/index.d.ts +5 -2
  220. package/build/types/index.d.ts.map +1 -1
  221. package/build/types/integrations/anthropic.d.ts +2 -1
  222. package/build/types/integrations/anthropic.d.ts.map +1 -1
  223. package/build/types/integrations/aws-sdk/index.d.ts +3 -3
  224. package/build/types/integrations/aws-sdk/index.d.ts.map +1 -1
  225. package/build/types/integrations/aws-sdk/services/ServiceExtension.d.ts +1 -0
  226. package/build/types/integrations/aws-sdk/services/ServiceExtension.d.ts.map +1 -1
  227. package/build/types/integrations/aws-sdk/services/ServicesExtensions.d.ts +3 -2
  228. package/build/types/integrations/aws-sdk/services/ServicesExtensions.d.ts.map +1 -1
  229. package/build/types/integrations/aws-sdk/services/bedrock-runtime.d.ts +25 -4
  230. package/build/types/integrations/aws-sdk/services/bedrock-runtime.d.ts.map +1 -1
  231. package/build/types/integrations/bullmq/contextManager.d.ts +13 -0
  232. package/build/types/integrations/bullmq/contextManager.d.ts.map +1 -0
  233. package/build/types/integrations/bullmq/index.d.ts +43 -0
  234. package/build/types/integrations/bullmq/index.d.ts.map +1 -0
  235. package/build/types/integrations/bullmq/meter.d.ts +7 -0
  236. package/build/types/integrations/bullmq/meter.d.ts.map +1 -0
  237. package/build/types/integrations/bullmq/span.d.ts +35 -0
  238. package/build/types/integrations/bullmq/span.d.ts.map +1 -0
  239. package/build/types/integrations/bullmq/tracer.d.ts +5 -0
  240. package/build/types/integrations/bullmq/tracer.d.ts.map +1 -0
  241. package/build/types/integrations/bullmq/types.d.ts +72 -0
  242. package/build/types/integrations/bullmq/types.d.ts.map +1 -0
  243. package/build/types/integrations/express/types.d.ts +1 -0
  244. package/build/types/integrations/express/types.d.ts.map +1 -1
  245. package/build/types/integrations/flue.d.ts +2 -1
  246. package/build/types/integrations/flue.d.ts.map +1 -1
  247. package/build/types/integrations/google-genai.d.ts +2 -1
  248. package/build/types/integrations/google-genai.d.ts.map +1 -1
  249. package/build/types/integrations/groq.d.ts +1 -1
  250. package/build/types/integrations/langchain.d.ts +2 -1
  251. package/build/types/integrations/langchain.d.ts.map +1 -1
  252. package/build/types/integrations/langgraph.d.ts +2 -1
  253. package/build/types/integrations/langgraph.d.ts.map +1 -1
  254. package/build/types/integrations/mistral.d.ts +2 -1
  255. package/build/types/integrations/mistral.d.ts.map +1 -1
  256. package/build/types/integrations/openai-compatible.d.ts.map +1 -1
  257. package/build/types/integrations/openai.d.ts +2 -1
  258. package/build/types/integrations/openai.d.ts.map +1 -1
  259. package/build/types/integrations/pi-ai.d.ts +6 -3
  260. package/build/types/integrations/pi-ai.d.ts.map +1 -1
  261. package/build/types/integrations/pi-durable.d.ts +2 -1
  262. package/build/types/integrations/pi-durable.d.ts.map +1 -1
  263. package/build/types/integrations/pino.d.ts +61 -0
  264. package/build/types/integrations/pino.d.ts.map +1 -0
  265. package/build/types/integrations/together-ai.d.ts +1 -1
  266. package/build/types/integrations/typesafe.d.ts +2 -2
  267. package/build/types/integrations/typesafe.d.ts.map +1 -1
  268. package/build/types/integrations/vercel-ai/index.d.ts +3 -3
  269. package/build/types/integrations/vercel-ai/index.d.ts.map +1 -1
  270. package/build/types/integrations/vercel-ai/util.d.ts +2 -1
  271. package/build/types/integrations/vercel-ai/util.d.ts.map +1 -1
  272. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts +20 -4
  273. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
  274. package/build/types/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts.map +1 -1
  275. package/build/types/integrations/winston.d.ts +55 -0
  276. package/build/types/integrations/winston.d.ts.map +1 -0
  277. package/package.json +3 -3
@@ -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,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAKrE,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EACL,SAAS,IAAI,2BAA2B,EACxC,cAAc,IAAI,yBAAyB,GAC5C,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EACL,kBAAkB,EAElB,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,eAAO,MAAM,sBAAsB,gCAA0B,CAAC;AAG9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC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,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,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;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,CAAC,2BAA2B;IA4CnC,OAAO,CAAC,8BAA8B;IAkItC,OAAO,CAAC,qBAAqB;IAoB7B,OAAO,CAAC,2BAA2B;IAiBnC,OAAO,CAAC,wBAAwB;IAqEhC,OAAO,CAAC,0CAA0C;CA8BnD"}
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,OA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BnC,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,EAAE,cAAc,CAAC,GAAG,IAAI,CAAC;IAC1E,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,CAAC;IACtG,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5C,GAAG,IAAI,IAAI,CAAC;CACb;AAED,MAAM,WAAW,MA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AC,EAAE,aAAa,GAAG,SAAS,CAAC;IAClE,WAAW,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,KAAK,CAAC;CAC5D;AAED,MAAM,WAAW,SAAS,CAAC,OAAO;IAChC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACxB,cAAc,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC;IACb,mBAAmB,CAAC,EAAE;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH"}
@@ -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;AA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AqB,SAAQ,yBAAyB;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,3 +1,4 @@
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`
@@ -5,7 +6,7 @@
5
6
  * (`sendMessage`/`sendMessageStream`) and decisions (`create`) methods, so it requires the Sentry
6
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":"AA6KA;;;;;;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"}
@@ -1,9 +1,10 @@
1
+ import type { LangGraphOptions } from '../ai/langgraph/types';
1
2
  /**
2
3
  * Diagnostics-channel-based LangGraph integration. Subscribes to the diagnostics_channels
3
4
  * injected into `@langchain/langgraph`'s `StateGraph.compile` and `createReactAgent`, so it requires
4
5
  * the Sentry runtime hook or bundler plugin.
5
6
  */
6
- export declare const langGraphIntegration: (options?: import("../ai/core/utils").GenAiOptions | undefined) => import("@sentry/core").Integration & {
7
+ export declare const langGraphIntegration: (options?: LangGraphOptions | undefined) => import("@sentry/core").Integration & {
7
8
  name: "LangGraph";
8
9
  };
9
10
  //# sourceMappingURL=langgraph.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"langgraph.d.ts","sourceRoot":"","sources":["../../../src/integrations/langgraph.ts"],"names":[],"mappings":"AA8FA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;CAA2C,CAAC"}
1
+ {"version":3,"file":"langgraph.d.ts","sourceRoot":"","sources":["../../../src/integrations/langgraph.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AA2F9D;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;CAA2C,CAAC"}
@@ -1,7 +1,8 @@
1
+ import type { MistralOptions } from '../ai/mistral/types';
1
2
  /**
2
3
  * An integration to instrument @mistralai/mistrailai.
3
4
  */
4
- export declare const mistralAIIntegration: (options?: import("../ai/core/utils").GenAiOptions | undefined) => import("@sentry/core").Integration & {
5
+ export declare const mistralAIIntegration: (options?: MistralOptions | undefined) => import("@sentry/core").Integration & {
5
6
  name: "Mistral";
6
7
  };
7
8
  //# sourceMappingURL=mistral.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mistral.d.ts","sourceRoot":"","sources":["../../../src/integrations/mistral.ts"],"names":[],"mappings":"AAmGA;;GAEG;AACH,eAAO,MAAM,oBAAoB;;CAA2C,CAAC"}
1
+ {"version":3,"file":"mistral.d.ts","sourceRoot":"","sources":["../../../src/integrations/mistral.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAmB,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAwG3E;;GAEG;AACH,eAAO,MAAM,oBAAoB;;CAA2C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"openai-compatible.d.ts","sourceRoot":"","sources":["../../../src/integrations/openai-compatible.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAA2C,MAAM,cAAc,CAAC;AAYzF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAMxD;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,wGAAwG;IACxG,eAAe,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,YAAY,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,wFAAwF;IACxF,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,2EAA2E;IAC3E,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;CAChD;AAED;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAAC,CAAC,SAAS,wBAAwB,EAClF,QAAQ,EAAE,CAAC,GACV,CAAC,OAAO,CAAC,EAAE,aAAa,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,CAAC,CAAC,iBAAiB,CAAC,CAAA;CAAE,CA0C3E"}
1
+ {"version":3,"file":"openai-compatible.d.ts","sourceRoot":"","sources":["../../../src/integrations/openai-compatible.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAA2C,MAAM,cAAc,CAAC;AAazF,OAAO,KAAK,EAAkB,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAYxE;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,wGAAwG;IACxG,eAAe,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,YAAY,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,wFAAwF;IACxF,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,2EAA2E;IAC3E,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;CAChD;AAED;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAAC,CAAC,SAAS,wBAAwB,EAClF,QAAQ,EAAE,CAAC,GACV,CAAC,OAAO,CAAC,EAAE,aAAa,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,CAAC,CAAC,iBAAiB,CAAC,CAAA;CAAE,CA2C3E"}
@@ -1,9 +1,10 @@
1
+ import type { OpenAiOptions } from '../ai/openai/types';
1
2
  /**
2
3
  * Diagnostics-channel-based OpenAI integration. Subscribes to the `orchestrion:openai:*`
3
4
  * diagnostics_channels injected into `openai`'s `create` methods (chat completions, responses, embeddings,
4
5
  * conversations, decisions), so it requires the Sentry runtime hook or bundler plugin.
5
6
  */
6
- export declare const openAIIntegration: (options?: import("../ai/core/utils").GenAiOptions | undefined) => import("@sentry/core").Integration & {
7
+ export declare const openAIIntegration: (options?: OpenAiOptions | undefined) => import("@sentry/core").Integration & {
7
8
  name: "OpenAI";
8
9
  };
9
10
  //# sourceMappingURL=openai.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../src/integrations/openai.ts"],"names":[],"mappings":"AAkIA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;CAAwC,CAAC"}
1
+ {"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../src/integrations/openai.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAkB,aAAa,EAAE,MAAM,oBAAoB,CAAC;AA0IxE;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;CAAwC,CAAC"}
@@ -1,5 +1,8 @@
1
- import type { GenAiOptions } from '../ai/core/utils';
2
- export type PiAiOptions = GenAiOptions;
1
+ import type { GenAiSpanHooks } from '../ai/core/span-hooks';
2
+ import type { GenAiCallOptions } from '../ai/core/utils';
3
+ import type { PiAiCallInfo, PiAssistantMessage } from '../ai/pi-ai/types';
4
+ /** `onSpanEnd` gets the `AssistantMessage` the request settled with, for `stream` and `complete` alike. */
5
+ export type PiAiOptions = GenAiCallOptions<PiAiCallInfo> & GenAiSpanHooks<PiAiCallInfo, PiAssistantMessage>;
3
6
  /**
4
7
  * Traces the requests sent with pi-ai (`@earendil-works/pi-ai` >= 0.80.0 < 2) as `gen_ai.chat` spans,
5
8
  * through `createModels()` or the standalone `stream` and `complete` functions. Needs the Sentry
@@ -13,7 +16,7 @@ export type PiAiOptions = GenAiOptions;
13
16
  * });
14
17
  * ```
15
18
  */
16
- export declare const piAiIntegration: (options?: GenAiOptions | undefined) => import("@sentry/core").Integration & {
19
+ export declare const piAiIntegration: (options?: PiAiOptions | undefined) => import("@sentry/core").Integration & {
17
20
  name: "PiAi";
18
21
  };
19
22
  //# sourceMappingURL=pi-ai.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pi-ai.d.ts","sourceRoot":"","sources":["../../../src/integrations/pi-ai.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAarD,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC;AAqEvC;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
1
+ {"version":3,"file":"pi-ai.d.ts","sourceRoot":"","sources":["../../../src/integrations/pi-ai.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAmB,MAAM,uBAAuB,CAAC;AAE7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAMzD,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAA2C,MAAM,mBAAmB,CAAC;AAOnH,2GAA2G;AAC3G,MAAM,MAAM,WAAW,GAAG,gBAAgB,CAAC,YAAY,CAAC,GAAG,cAAc,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAAC;AA2F5G;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { PiDurableOptions } from '../ai/pi-durable';
1
2
  /**
2
3
  * Diagnostics-channel-based integration for pi-durable (`@earendil-works/pi-durable` >= 1.0.0 < 2,
3
4
  * whose API is experimental). Subscribes to the `orchestrion:@earendil-works/pi-durable:harnessOpen`
@@ -8,7 +9,7 @@
8
9
  * children. Its model requests become `gen_ai.chat` children through `piAiIntegration`, since
9
10
  * pi-durable sends them through pi-ai.
10
11
  */
11
- export declare const piDurableIntegration: (options?: import("../ai/core/utils").GenAiOptions | undefined) => import("@sentry/core").Integration & {
12
+ export declare const piDurableIntegration: (options?: PiDurableOptions | undefined) => import("@sentry/core").Integration & {
12
13
  name: "PiDurable";
13
14
  };
14
15
  //# sourceMappingURL=pi-durable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pi-durable.d.ts","sourceRoot":"","sources":["../../../src/integrations/pi-durable.ts"],"names":[],"mappings":"AAwDA;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB;;CAA2C,CAAC"}
1
+ {"version":3,"file":"pi-durable.d.ts","sourceRoot":"","sources":["../../../src/integrations/pi-durable.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAqDzD;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB;;CAA2C,CAAC"}
@@ -0,0 +1,61 @@
1
+ import type { LogSeverityLevel } from '@sentry/core';
2
+ type PinoOptions = {
3
+ /**
4
+ * Automatically instrument all Pino loggers.
5
+ *
6
+ * When set to `false`, only loggers marked with `pinoIntegration.trackLogger(logger)` will be captured.
7
+ *
8
+ * @default true
9
+ */
10
+ autoInstrument: boolean;
11
+ /**
12
+ * Options to enable capturing of error events.
13
+ */
14
+ error: {
15
+ /**
16
+ * Levels that trigger capturing of events.
17
+ *
18
+ * @default []
19
+ */
20
+ levels: LogSeverityLevel[];
21
+ /**
22
+ * By default, Sentry will mark captured errors as handled.
23
+ * Set this to `false` if you want to mark them as unhandled instead.
24
+ *
25
+ * @default true
26
+ */
27
+ handled: boolean;
28
+ };
29
+ /**
30
+ * Options to enable capturing of logs.
31
+ */
32
+ log: {
33
+ /**
34
+ * Levels that trigger capturing of logs.
35
+ *
36
+ * @default ["trace", "debug", "info", "warn", "error", "fatal"]
37
+ */
38
+ levels: LogSeverityLevel[];
39
+ };
40
+ };
41
+ type DeepPartial<T> = {
42
+ [P in keyof T]?: T[P] extends object ? Partial<T[P]> : T[P];
43
+ };
44
+ /**
45
+ * Integration for Pino logging library.
46
+ * Captures Pino logs as Sentry logs and optionally captures some log levels as events.
47
+ *
48
+ * By default, all Pino loggers will be captured. To ignore a specific logger, use `pinoIntegration.untrackLogger(logger)`.
49
+ *
50
+ * If you disable automatic instrumentation with `autoInstrument: false`, you can mark specific loggers to be tracked with `pinoIntegration.trackLogger(logger)`.
51
+ *
52
+ * Requires Pino >=v8.0.0
53
+ */
54
+ export declare const pinoIntegration: ((userOptions?: DeepPartial<PinoOptions> | undefined) => import("@sentry/core").Integration & {
55
+ name: string;
56
+ }) & {
57
+ trackLogger(logger: unknown): void;
58
+ untrackLogger(logger: unknown): void;
59
+ };
60
+ export {};
61
+ //# sourceMappingURL=pino.d.ts.map