@sentry/server-utils 11.0.0 → 11.2.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 (411) hide show
  1. package/README.md +7 -5
  2. package/build/THIRD-PARTY-LICENSES.txt +32 -32
  3. package/build/cjs/ai/anthropic-ai/index.js +10 -10
  4. package/build/cjs/ai/anthropic-ai/index.js.map +1 -1
  5. package/build/cjs/ai/core/apiPromise.js +54 -0
  6. package/build/cjs/ai/core/apiPromise.js.map +1 -0
  7. package/build/cjs/ai/google-genai/streaming.js +0 -8
  8. package/build/cjs/ai/google-genai/streaming.js.map +1 -1
  9. package/build/cjs/ai/typesafe/constants.js +10 -0
  10. package/build/cjs/ai/typesafe/constants.js.map +1 -0
  11. package/build/cjs/ai/typesafe/index.js +113 -0
  12. package/build/cjs/ai/typesafe/index.js.map +1 -0
  13. package/build/cjs/index.js +35 -18
  14. package/build/cjs/index.js.map +1 -1
  15. package/build/cjs/index.no-diagnostic-channels.js +9 -2
  16. package/build/cjs/index.no-diagnostic-channels.js.map +1 -1
  17. package/build/cjs/integrations/amqplib.js +11 -24
  18. package/build/cjs/integrations/amqplib.js.map +1 -1
  19. package/build/cjs/integrations/anthropic.js +13 -16
  20. package/build/cjs/integrations/anthropic.js.map +1 -1
  21. package/build/cjs/integrations/aws-sdk/index.js +2 -15
  22. package/build/cjs/integrations/aws-sdk/index.js.map +1 -1
  23. package/build/cjs/integrations/dataloader.js +5 -18
  24. package/build/cjs/integrations/dataloader.js.map +1 -1
  25. package/build/cjs/integrations/express/index.js +2 -15
  26. package/build/cjs/integrations/express/index.js.map +1 -1
  27. package/build/cjs/integrations/express/instrumentation.js +12 -1
  28. package/build/cjs/integrations/express/instrumentation.js.map +1 -1
  29. package/build/cjs/integrations/fastify/errors.js +2 -15
  30. package/build/cjs/integrations/fastify/errors.js.map +1 -1
  31. package/build/cjs/integrations/fastify/instrumentation.js +2 -15
  32. package/build/cjs/integrations/fastify/instrumentation.js.map +1 -1
  33. package/build/cjs/integrations/firebase/instrumentation.js +3 -16
  34. package/build/cjs/integrations/firebase/instrumentation.js.map +1 -1
  35. package/build/cjs/integrations/generic-pool.js +2 -15
  36. package/build/cjs/integrations/generic-pool.js.map +1 -1
  37. package/build/cjs/integrations/google-genai.js +2 -15
  38. package/build/cjs/integrations/google-genai.js.map +1 -1
  39. package/build/cjs/integrations/graphql/index.js +6 -19
  40. package/build/cjs/integrations/graphql/index.js.map +1 -1
  41. package/build/cjs/integrations/hapi/index.js +5 -18
  42. package/build/cjs/integrations/hapi/index.js.map +1 -1
  43. package/build/cjs/integrations/hono/applyPatches.js +38 -0
  44. package/build/cjs/integrations/hono/applyPatches.js.map +1 -0
  45. package/build/cjs/integrations/hono/constants.js +6 -0
  46. package/build/cjs/integrations/hono/constants.js.map +1 -0
  47. package/build/cjs/integrations/hono/createHonoMiddleware.js +44 -0
  48. package/build/cjs/integrations/hono/createHonoMiddleware.js.map +1 -0
  49. package/build/cjs/integrations/hono/defaultShouldHandleError.js +12 -0
  50. package/build/cjs/integrations/hono/defaultShouldHandleError.js.map +1 -0
  51. package/build/cjs/integrations/hono/hono-context.js +14 -0
  52. package/build/cjs/integrations/hono/hono-context.js.map +1 -0
  53. package/build/cjs/integrations/hono/honoIntegration.js +126 -0
  54. package/build/cjs/integrations/hono/honoIntegration.js.map +1 -0
  55. package/build/cjs/integrations/hono/isMiddleware.js +14 -0
  56. package/build/cjs/integrations/hono/isMiddleware.js.map +1 -0
  57. package/build/cjs/integrations/hono/middlewareHandlers.js +79 -0
  58. package/build/cjs/integrations/hono/middlewareHandlers.js.map +1 -0
  59. package/build/cjs/integrations/hono/patchAppRequest.js +82 -0
  60. package/build/cjs/integrations/hono/patchAppRequest.js.map +1 -0
  61. package/build/cjs/integrations/hono/patchAppUse.js +70 -0
  62. package/build/cjs/integrations/hono/patchAppUse.js.map +1 -0
  63. package/build/cjs/integrations/hono/patchRoute.js +81 -0
  64. package/build/cjs/integrations/hono/patchRoute.js.map +1 -0
  65. package/build/cjs/integrations/hono/resolveRouteName.js +31 -0
  66. package/build/cjs/integrations/hono/resolveRouteName.js.map +1 -0
  67. package/build/cjs/integrations/hono/wrapMiddlewareSpan.js +52 -0
  68. package/build/cjs/integrations/hono/wrapMiddlewareSpan.js.map +1 -0
  69. package/build/cjs/integrations/index.js +7 -2
  70. package/build/cjs/integrations/index.js.map +1 -1
  71. package/build/cjs/integrations/kafkajs/index.js +3 -16
  72. package/build/cjs/integrations/kafkajs/index.js.map +1 -1
  73. package/build/cjs/integrations/knex.js +4 -17
  74. package/build/cjs/integrations/knex.js.map +1 -1
  75. package/build/cjs/integrations/koa/index.js +3 -16
  76. package/build/cjs/integrations/koa/index.js.map +1 -1
  77. package/build/cjs/integrations/langchain.js +3 -16
  78. package/build/cjs/integrations/langchain.js.map +1 -1
  79. package/build/cjs/integrations/langgraph.js +3 -16
  80. package/build/cjs/integrations/langgraph.js.map +1 -1
  81. package/build/cjs/integrations/lru-memoizer.js +2 -15
  82. package/build/cjs/integrations/lru-memoizer.js.map +1 -1
  83. package/build/cjs/integrations/mastra.js +4 -17
  84. package/build/cjs/integrations/mastra.js.map +1 -1
  85. package/build/cjs/integrations/mcp-server.js +37 -0
  86. package/build/cjs/integrations/mcp-server.js.map +1 -0
  87. package/build/cjs/integrations/mistral.js +2 -15
  88. package/build/cjs/integrations/mistral.js.map +1 -1
  89. package/build/cjs/integrations/mongodb/index.js +4 -17
  90. package/build/cjs/integrations/mongodb/index.js.map +1 -1
  91. package/build/cjs/integrations/mongoose/index.js +5 -18
  92. package/build/cjs/integrations/mongoose/index.js.map +1 -1
  93. package/build/cjs/integrations/mysql.js +2 -15
  94. package/build/cjs/integrations/mysql.js.map +1 -1
  95. package/build/cjs/integrations/mysql2/index.js +4 -17
  96. package/build/cjs/integrations/mysql2/index.js.map +1 -1
  97. package/build/cjs/integrations/openai-compatible.js +13 -17
  98. package/build/cjs/integrations/openai-compatible.js.map +1 -1
  99. package/build/cjs/integrations/openai.js +13 -17
  100. package/build/cjs/integrations/openai.js.map +1 -1
  101. package/build/cjs/integrations/postgres-js.js +5 -18
  102. package/build/cjs/integrations/postgres-js.js.map +1 -1
  103. package/build/cjs/integrations/postgres.js +2 -15
  104. package/build/cjs/integrations/postgres.js.map +1 -1
  105. package/build/cjs/integrations/prisma/index.js +9 -0
  106. package/build/cjs/integrations/prisma/index.js.map +1 -1
  107. package/build/cjs/integrations/prisma/orchestrion.js +140 -0
  108. package/build/cjs/integrations/prisma/orchestrion.js.map +1 -0
  109. package/build/cjs/integrations/prisma/tracing-helper.js +1 -0
  110. package/build/cjs/integrations/prisma/tracing-helper.js.map +1 -1
  111. package/build/cjs/integrations/redis/index.js +7 -20
  112. package/build/cjs/integrations/redis/index.js.map +1 -1
  113. package/build/cjs/integrations/redis/ioredis-channel-subscriber.js +3 -16
  114. package/build/cjs/integrations/redis/ioredis-channel-subscriber.js.map +1 -1
  115. package/build/cjs/integrations/tedious.js +3 -16
  116. package/build/cjs/integrations/tedious.js.map +1 -1
  117. package/build/cjs/integrations/typesafe.js +45 -0
  118. package/build/cjs/integrations/typesafe.js.map +1 -0
  119. package/build/cjs/integrations/vercel-ai/index.js +4 -17
  120. package/build/cjs/integrations/vercel-ai/index.js.map +1 -1
  121. package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js +33 -2
  122. package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  123. package/build/cjs/orchestrion/bundler/bun.js.map +1 -1
  124. package/build/cjs/orchestrion/bundler/moduleInjectedTransform.js +1 -1
  125. package/build/cjs/orchestrion/bundler/moduleInjectedTransform.js.map +1 -1
  126. package/build/cjs/orchestrion/bundler/rollup.js +23 -0
  127. package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
  128. package/build/cjs/orchestrion/channels.js +8 -0
  129. package/build/cjs/orchestrion/channels.js.map +1 -1
  130. package/build/cjs/orchestrion/config/amqplib.js +1 -1
  131. package/build/cjs/orchestrion/config/amqplib.js.map +1 -1
  132. package/build/cjs/orchestrion/config/anthropic-ai.js +3 -3
  133. package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -1
  134. package/build/cjs/orchestrion/config/channel-integration-definitions.js +4 -0
  135. package/build/cjs/orchestrion/config/channel-integration-definitions.js.map +1 -1
  136. package/build/cjs/orchestrion/config/hono.js +32 -0
  137. package/build/cjs/orchestrion/config/hono.js.map +1 -0
  138. package/build/cjs/orchestrion/config/index.js +11 -0
  139. package/build/cjs/orchestrion/config/index.js.map +1 -1
  140. package/build/cjs/orchestrion/config/mcp-server.js +41 -0
  141. package/build/cjs/orchestrion/config/mcp-server.js.map +1 -0
  142. package/build/cjs/orchestrion/config/openai-compatible.js +2 -2
  143. package/build/cjs/orchestrion/config/openai-compatible.js.map +1 -1
  144. package/build/cjs/orchestrion/config/openai.js +5 -7
  145. package/build/cjs/orchestrion/config/openai.js.map +1 -1
  146. package/build/cjs/orchestrion/config/prisma.js +53 -0
  147. package/build/cjs/orchestrion/config/prisma.js.map +1 -0
  148. package/build/cjs/orchestrion/config/remix-v3.js +23 -0
  149. package/build/cjs/orchestrion/config/remix-v3.js.map +1 -0
  150. package/build/cjs/orchestrion/config/tedious.js +1 -1
  151. package/build/cjs/orchestrion/config/tedious.js.map +1 -1
  152. package/build/cjs/orchestrion/config/typesafe.js +18 -0
  153. package/build/cjs/orchestrion/config/typesafe.js.map +1 -0
  154. package/build/cjs/orchestrion/instrumentation.js +2 -15
  155. package/build/cjs/orchestrion/instrumentation.js.map +1 -1
  156. package/build/cjs/utils/diagnosticsChannel.js +47 -0
  157. package/build/cjs/utils/diagnosticsChannel.js.map +1 -0
  158. package/build/cjs/utils/sql.js +12 -9
  159. package/build/cjs/utils/sql.js.map +1 -1
  160. package/build/esm/ai/anthropic-ai/index.js +4 -4
  161. package/build/esm/ai/anthropic-ai/utils.js +1 -1
  162. package/build/esm/ai/core/apiPromise.js +52 -0
  163. package/build/esm/ai/core/apiPromise.js.map +1 -0
  164. package/build/esm/ai/core/utils.js +1 -1
  165. package/build/esm/ai/google-genai/streaming.js +0 -8
  166. package/build/esm/ai/google-genai/streaming.js.map +1 -1
  167. package/build/esm/ai/typesafe/constants.js +6 -0
  168. package/build/esm/ai/typesafe/constants.js.map +1 -0
  169. package/build/esm/ai/typesafe/index.js +108 -0
  170. package/build/esm/ai/typesafe/index.js.map +1 -0
  171. package/build/esm/index.js +7 -0
  172. package/build/esm/index.js.map +1 -1
  173. package/build/esm/index.no-diagnostic-channels.js +3 -0
  174. package/build/esm/index.no-diagnostic-channels.js.map +1 -1
  175. package/build/esm/integrations/amqplib.js +13 -13
  176. package/build/esm/integrations/amqplib.js.map +1 -1
  177. package/build/esm/integrations/anthropic.js +13 -3
  178. package/build/esm/integrations/anthropic.js.map +1 -1
  179. package/build/esm/integrations/aws-sdk/index.js +2 -2
  180. package/build/esm/integrations/aws-sdk/index.js.map +1 -1
  181. package/build/esm/integrations/dataloader.js +5 -5
  182. package/build/esm/integrations/dataloader.js.map +1 -1
  183. package/build/esm/integrations/express/index.js +2 -2
  184. package/build/esm/integrations/express/index.js.map +1 -1
  185. package/build/esm/integrations/express/instrumentation.js +12 -1
  186. package/build/esm/integrations/express/instrumentation.js.map +1 -1
  187. package/build/esm/integrations/fastify/errors.js +2 -2
  188. package/build/esm/integrations/fastify/errors.js.map +1 -1
  189. package/build/esm/integrations/fastify/instrumentation.js +2 -2
  190. package/build/esm/integrations/fastify/instrumentation.js.map +1 -1
  191. package/build/esm/integrations/firebase/instrumentation.js +3 -3
  192. package/build/esm/integrations/firebase/instrumentation.js.map +1 -1
  193. package/build/esm/integrations/generic-pool.js +2 -2
  194. package/build/esm/integrations/generic-pool.js.map +1 -1
  195. package/build/esm/integrations/google-genai.js +2 -2
  196. package/build/esm/integrations/google-genai.js.map +1 -1
  197. package/build/esm/integrations/graphql/index.js +6 -6
  198. package/build/esm/integrations/graphql/index.js.map +1 -1
  199. package/build/esm/integrations/hapi/index.js +5 -5
  200. package/build/esm/integrations/hapi/index.js.map +1 -1
  201. package/build/esm/integrations/hono/applyPatches.js +34 -0
  202. package/build/esm/integrations/hono/applyPatches.js.map +1 -0
  203. package/build/esm/integrations/hono/constants.js +4 -0
  204. package/build/esm/integrations/hono/constants.js.map +1 -0
  205. package/build/esm/integrations/hono/createHonoMiddleware.js +41 -0
  206. package/build/esm/integrations/hono/createHonoMiddleware.js.map +1 -0
  207. package/build/esm/integrations/hono/defaultShouldHandleError.js +10 -0
  208. package/build/esm/integrations/hono/defaultShouldHandleError.js.map +1 -0
  209. package/build/esm/integrations/hono/hono-context.js +12 -0
  210. package/build/esm/integrations/hono/hono-context.js.map +1 -0
  211. package/build/esm/integrations/hono/honoIntegration.js +123 -0
  212. package/build/esm/integrations/hono/honoIntegration.js.map +1 -0
  213. package/build/esm/integrations/hono/isMiddleware.js +12 -0
  214. package/build/esm/integrations/hono/isMiddleware.js.map +1 -0
  215. package/build/esm/integrations/hono/middlewareHandlers.js +75 -0
  216. package/build/esm/integrations/hono/middlewareHandlers.js.map +1 -0
  217. package/build/esm/integrations/hono/patchAppRequest.js +78 -0
  218. package/build/esm/integrations/hono/patchAppRequest.js.map +1 -0
  219. package/build/esm/integrations/hono/patchAppUse.js +67 -0
  220. package/build/esm/integrations/hono/patchAppUse.js.map +1 -0
  221. package/build/esm/integrations/hono/patchRoute.js +78 -0
  222. package/build/esm/integrations/hono/patchRoute.js.map +1 -0
  223. package/build/esm/integrations/hono/resolveRouteName.js +29 -0
  224. package/build/esm/integrations/hono/resolveRouteName.js.map +1 -0
  225. package/build/esm/integrations/hono/wrapMiddlewareSpan.js +50 -0
  226. package/build/esm/integrations/hono/wrapMiddlewareSpan.js.map +1 -0
  227. package/build/esm/integrations/index.js +7 -2
  228. package/build/esm/integrations/index.js.map +1 -1
  229. package/build/esm/integrations/kafkajs/index.js +3 -3
  230. package/build/esm/integrations/kafkajs/index.js.map +1 -1
  231. package/build/esm/integrations/knex.js +4 -4
  232. package/build/esm/integrations/knex.js.map +1 -1
  233. package/build/esm/integrations/koa/index.js +3 -3
  234. package/build/esm/integrations/koa/index.js.map +1 -1
  235. package/build/esm/integrations/langchain.js +3 -3
  236. package/build/esm/integrations/langchain.js.map +1 -1
  237. package/build/esm/integrations/langgraph.js +3 -3
  238. package/build/esm/integrations/langgraph.js.map +1 -1
  239. package/build/esm/integrations/lru-memoizer.js +2 -2
  240. package/build/esm/integrations/lru-memoizer.js.map +1 -1
  241. package/build/esm/integrations/mastra.js +4 -4
  242. package/build/esm/integrations/mastra.js.map +1 -1
  243. package/build/esm/integrations/mcp-server.js +35 -0
  244. package/build/esm/integrations/mcp-server.js.map +1 -0
  245. package/build/esm/integrations/mistral.js +2 -2
  246. package/build/esm/integrations/mistral.js.map +1 -1
  247. package/build/esm/integrations/mongodb/index.js +4 -4
  248. package/build/esm/integrations/mongodb/index.js.map +1 -1
  249. package/build/esm/integrations/mongoose/index.js +5 -5
  250. package/build/esm/integrations/mongoose/index.js.map +1 -1
  251. package/build/esm/integrations/mysql.js +2 -2
  252. package/build/esm/integrations/mysql.js.map +1 -1
  253. package/build/esm/integrations/mysql2/index.js +4 -4
  254. package/build/esm/integrations/mysql2/index.js.map +1 -1
  255. package/build/esm/integrations/openai-compatible.js +13 -4
  256. package/build/esm/integrations/openai-compatible.js.map +1 -1
  257. package/build/esm/integrations/openai.js +13 -4
  258. package/build/esm/integrations/openai.js.map +1 -1
  259. package/build/esm/integrations/postgres-js.js +5 -5
  260. package/build/esm/integrations/postgres-js.js.map +1 -1
  261. package/build/esm/integrations/postgres.js +2 -2
  262. package/build/esm/integrations/postgres.js.map +1 -1
  263. package/build/esm/integrations/prisma/index.js +9 -0
  264. package/build/esm/integrations/prisma/index.js.map +1 -1
  265. package/build/esm/integrations/prisma/orchestrion.js +138 -0
  266. package/build/esm/integrations/prisma/orchestrion.js.map +1 -0
  267. package/build/esm/integrations/prisma/tracing-helper.js +1 -1
  268. package/build/esm/integrations/prisma/tracing-helper.js.map +1 -1
  269. package/build/esm/integrations/redis/index.js +7 -7
  270. package/build/esm/integrations/redis/index.js.map +1 -1
  271. package/build/esm/integrations/redis/ioredis-channel-subscriber.js +3 -3
  272. package/build/esm/integrations/redis/ioredis-channel-subscriber.js.map +1 -1
  273. package/build/esm/integrations/tedious.js +3 -3
  274. package/build/esm/integrations/tedious.js.map +1 -1
  275. package/build/esm/integrations/typesafe.js +43 -0
  276. package/build/esm/integrations/typesafe.js.map +1 -0
  277. package/build/esm/integrations/vercel-ai/index.js +4 -4
  278. package/build/esm/integrations/vercel-ai/index.js.map +1 -1
  279. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +34 -3
  280. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  281. package/build/esm/orchestrion/bundler/bun.js.map +1 -1
  282. package/build/esm/orchestrion/bundler/moduleInjectedTransform.js +1 -1
  283. package/build/esm/orchestrion/bundler/moduleInjectedTransform.js.map +1 -1
  284. package/build/esm/orchestrion/bundler/rollup.js +22 -1
  285. package/build/esm/orchestrion/bundler/rollup.js.map +1 -1
  286. package/build/esm/orchestrion/channels.js +8 -0
  287. package/build/esm/orchestrion/channels.js.map +1 -1
  288. package/build/esm/orchestrion/config/amqplib.js +1 -1
  289. package/build/esm/orchestrion/config/amqplib.js.map +1 -1
  290. package/build/esm/orchestrion/config/anthropic-ai.js +3 -3
  291. package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
  292. package/build/esm/orchestrion/config/channel-integration-definitions.js +4 -0
  293. package/build/esm/orchestrion/config/channel-integration-definitions.js.map +1 -1
  294. package/build/esm/orchestrion/config/hono.js +28 -0
  295. package/build/esm/orchestrion/config/hono.js.map +1 -0
  296. package/build/esm/orchestrion/config/index.js +11 -0
  297. package/build/esm/orchestrion/config/index.js.map +1 -1
  298. package/build/esm/orchestrion/config/mcp-server.js +37 -0
  299. package/build/esm/orchestrion/config/mcp-server.js.map +1 -0
  300. package/build/esm/orchestrion/config/openai-compatible.js +2 -2
  301. package/build/esm/orchestrion/config/openai-compatible.js.map +1 -1
  302. package/build/esm/orchestrion/config/openai.js +5 -7
  303. package/build/esm/orchestrion/config/openai.js.map +1 -1
  304. package/build/esm/orchestrion/config/prisma.js +47 -0
  305. package/build/esm/orchestrion/config/prisma.js.map +1 -0
  306. package/build/esm/orchestrion/config/remix-v3.js +20 -0
  307. package/build/esm/orchestrion/config/remix-v3.js.map +1 -0
  308. package/build/esm/orchestrion/config/tedious.js +1 -1
  309. package/build/esm/orchestrion/config/tedious.js.map +1 -1
  310. package/build/esm/orchestrion/config/typesafe.js +14 -0
  311. package/build/esm/orchestrion/config/typesafe.js.map +1 -0
  312. package/build/esm/orchestrion/instrumentation.js +2 -2
  313. package/build/esm/orchestrion/instrumentation.js.map +1 -1
  314. package/build/esm/package.json +1 -1
  315. package/build/esm/utils/diagnosticsChannel.js +30 -0
  316. package/build/esm/utils/diagnosticsChannel.js.map +1 -0
  317. package/build/esm/utils/sql.js +12 -9
  318. package/build/esm/utils/sql.js.map +1 -1
  319. package/build/types/ai/core/apiPromise.d.ts +2 -0
  320. package/build/types/ai/core/apiPromise.d.ts.map +1 -0
  321. package/build/types/ai/google-genai/streaming.d.ts.map +1 -1
  322. package/build/types/ai/index.d.ts +1 -0
  323. package/build/types/ai/index.d.ts.map +1 -1
  324. package/build/types/ai/typesafe/constants.d.ts +4 -0
  325. package/build/types/ai/typesafe/constants.d.ts.map +1 -0
  326. package/build/types/ai/typesafe/index.d.ts +21 -0
  327. package/build/types/ai/typesafe/index.d.ts.map +1 -0
  328. package/build/types/exports.d.ts +4 -0
  329. package/build/types/exports.d.ts.map +1 -1
  330. package/build/types/index.d.ts +5 -0
  331. package/build/types/index.d.ts.map +1 -1
  332. package/build/types/integrations/anthropic.d.ts.map +1 -1
  333. package/build/types/integrations/express/instrumentation.d.ts.map +1 -1
  334. package/build/types/integrations/hono/applyPatches.d.ts +28 -0
  335. package/build/types/integrations/hono/applyPatches.d.ts.map +1 -0
  336. package/build/types/integrations/hono/constants.d.ts +2 -0
  337. package/build/types/integrations/hono/constants.d.ts.map +1 -0
  338. package/build/types/integrations/hono/createHonoMiddleware.d.ts +33 -0
  339. package/build/types/integrations/hono/createHonoMiddleware.d.ts.map +1 -0
  340. package/build/types/integrations/hono/defaultShouldHandleError.d.ts +12 -0
  341. package/build/types/integrations/hono/defaultShouldHandleError.d.ts.map +1 -0
  342. package/build/types/integrations/hono/hono-context.d.ts +6 -0
  343. package/build/types/integrations/hono/hono-context.d.ts.map +1 -0
  344. package/build/types/integrations/hono/honoIntegration.d.ts +29 -0
  345. package/build/types/integrations/hono/honoIntegration.d.ts.map +1 -0
  346. package/build/types/integrations/hono/honoTypes.d.ts +57 -0
  347. package/build/types/integrations/hono/honoTypes.d.ts.map +1 -0
  348. package/build/types/integrations/hono/index.d.ts +8 -0
  349. package/build/types/integrations/hono/index.d.ts.map +1 -0
  350. package/build/types/integrations/hono/isMiddleware.d.ts +13 -0
  351. package/build/types/integrations/hono/isMiddleware.d.ts.map +1 -0
  352. package/build/types/integrations/hono/middlewareHandlers.d.ts +20 -0
  353. package/build/types/integrations/hono/middlewareHandlers.d.ts.map +1 -0
  354. package/build/types/integrations/hono/patchAppRequest.d.ts +26 -0
  355. package/build/types/integrations/hono/patchAppRequest.d.ts.map +1 -0
  356. package/build/types/integrations/hono/patchAppUse.d.ts +16 -0
  357. package/build/types/integrations/hono/patchAppUse.d.ts.map +1 -0
  358. package/build/types/integrations/hono/patchRoute.d.ts +35 -0
  359. package/build/types/integrations/hono/patchRoute.d.ts.map +1 -0
  360. package/build/types/integrations/hono/resolveRouteName.d.ts +10 -0
  361. package/build/types/integrations/hono/resolveRouteName.d.ts.map +1 -0
  362. package/build/types/integrations/hono/types.d.ts +25 -0
  363. package/build/types/integrations/hono/types.d.ts.map +1 -0
  364. package/build/types/integrations/hono/wrapMiddlewareSpan.d.ts +9 -0
  365. package/build/types/integrations/hono/wrapMiddlewareSpan.d.ts.map +1 -0
  366. package/build/types/integrations/index.d.ts.map +1 -1
  367. package/build/types/integrations/mcp-server.d.ts +10 -0
  368. package/build/types/integrations/mcp-server.d.ts.map +1 -0
  369. package/build/types/integrations/openai-compatible.d.ts.map +1 -1
  370. package/build/types/integrations/openai.d.ts.map +1 -1
  371. package/build/types/integrations/prisma/index.d.ts +3 -1
  372. package/build/types/integrations/prisma/index.d.ts.map +1 -1
  373. package/build/types/integrations/prisma/orchestrion.d.ts +10 -0
  374. package/build/types/integrations/prisma/orchestrion.d.ts.map +1 -0
  375. package/build/types/integrations/prisma/tracing-helper.d.ts +2 -0
  376. package/build/types/integrations/prisma/tracing-helper.d.ts.map +1 -1
  377. package/build/types/integrations/typesafe.d.ts +10 -0
  378. package/build/types/integrations/typesafe.d.ts.map +1 -0
  379. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts +1 -1
  380. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
  381. package/build/types/orchestrion/bundler/bun.d.ts.map +1 -1
  382. package/build/types/orchestrion/bundler/moduleInjectedTransform.d.ts.map +1 -1
  383. package/build/types/orchestrion/bundler/rollup.d.ts +21 -0
  384. package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -1
  385. package/build/types/orchestrion/channels.d.ts +18 -0
  386. package/build/types/orchestrion/channels.d.ts.map +1 -1
  387. package/build/types/orchestrion/config/amqplib.d.ts +4 -4
  388. package/build/types/orchestrion/config/anthropic-ai.d.ts +2 -14
  389. package/build/types/orchestrion/config/anthropic-ai.d.ts.map +1 -1
  390. package/build/types/orchestrion/config/channel-integration-definitions.d.ts +12 -0
  391. package/build/types/orchestrion/config/channel-integration-definitions.d.ts.map +1 -1
  392. package/build/types/orchestrion/config/hono.d.ts +8 -0
  393. package/build/types/orchestrion/config/hono.d.ts.map +1 -0
  394. package/build/types/orchestrion/config/index.d.ts +1 -0
  395. package/build/types/orchestrion/config/index.d.ts.map +1 -1
  396. package/build/types/orchestrion/config/mcp-server.d.ts +8 -0
  397. package/build/types/orchestrion/config/mcp-server.d.ts.map +1 -0
  398. package/build/types/orchestrion/config/openai-compatible.d.ts +2 -2
  399. package/build/types/orchestrion/config/openai.d.ts +1 -1
  400. package/build/types/orchestrion/config/openai.d.ts.map +1 -1
  401. package/build/types/orchestrion/config/pg.d.ts +1 -1
  402. package/build/types/orchestrion/config/prisma.d.ts +21 -0
  403. package/build/types/orchestrion/config/prisma.d.ts.map +1 -0
  404. package/build/types/orchestrion/config/remix-v3.d.ts +6 -0
  405. package/build/types/orchestrion/config/remix-v3.d.ts.map +1 -0
  406. package/build/types/orchestrion/config/typesafe.d.ts +18 -0
  407. package/build/types/orchestrion/config/typesafe.d.ts.map +1 -0
  408. package/build/types/utils/diagnosticsChannel.d.ts +12 -0
  409. package/build/types/utils/diagnosticsChannel.d.ts.map +1 -0
  410. package/build/types/utils/sql.d.ts.map +1 -1
  411. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../src/exports.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,wCAAwC,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAClF,cAAc,MAAM,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAChG,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,YAAY,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../src/exports.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,wCAAwC,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAClF,cAAc,MAAM,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAChG,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,YAAY,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAM3E,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AACvF,YAAY,EAAE,kCAAkC,EAAE,MAAM,0CAA0C,CAAC;AACnG,YAAY,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC"}
@@ -6,6 +6,7 @@ export { bindTracingChannelToSpan } from './tracing-channel';
6
6
  export type { TracingChannelPayloadWithSpan } from './tracing-channel';
7
7
  export type { InstrumentationConfig } from './orchestrion/apmTypes';
8
8
  export { orchestrionModuleInjected } from './utils/moduleInjected';
9
+ export { subscribe as subscribeDiagnosticsChannel, tracingChannel as diagnosticsTracingChannel, } from './utils/diagnosticsChannel';
9
10
  export { eveConversationHook, eveIntegration } from './eve';
10
11
  export { getInstrumentedModuleNames } from './orchestrion/config';
11
12
  export { fastifyIntegration, setupFastifyErrorHandler, } from './integrations/fastify';
@@ -22,6 +23,8 @@ export { genericPoolIntegration } from './integrations/generic-pool';
22
23
  export { googleGenAIIntegration } from './integrations/google-genai';
23
24
  export { graphqlIntegration } from './integrations/graphql';
24
25
  export { hapiIntegration } from './integrations/hapi';
26
+ export { honoIntegration, honoMiddleware } from './integrations/hono';
27
+ export type { HonoIntegrationOptions } from './integrations/hono';
25
28
  export { koaIntegration } from './integrations/koa';
26
29
  export { redisIntegration } from './integrations/redis';
27
30
  export { kafkaIntegration } from './integrations/kafkajs';
@@ -32,6 +35,7 @@ export { createFlueInstrumentation } from './ai/flue';
32
35
  export { flueIntegration } from './integrations/flue';
33
36
  export type { FlueOptions } from './ai/flue';
34
37
  export { mastraIntegration } from './integrations/mastra';
38
+ export { mcpServerIntegration } from './integrations/mcp-server';
35
39
  export { SentryMastraExporter } from './ai/mastra';
36
40
  export { lruMemoizerIntegration } from './integrations/lru-memoizer';
37
41
  export { mongoIntegration } from './integrations/mongodb';
@@ -39,6 +43,7 @@ export { mongooseIntegration } from './integrations/mongoose';
39
43
  export { mistralAIIntegration } from './integrations/mistral';
40
44
  export { groqIntegration } from './integrations/groq';
41
45
  export { togetherAIIntegration } from './integrations/together-ai';
46
+ export { typesafeIntegration } from './integrations/typesafe';
42
47
  export { mysqlIntegration } from './integrations/mysql';
43
48
  export { mysql2Integration } from './integrations/mysql2';
44
49
  export { openAIIntegration } from './integrations/openai';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAG1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,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;AAKpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EACL,kBAAkB,EAElB,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAEhC;;GAE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,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAErG,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../../src/integrations/anthropic.ts"],"names":[],"mappings":"AAkKA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;CAA6C,CAAC"}
1
+ {"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../../src/integrations/anthropic.ts"],"names":[],"mappings":"AA6KA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;CAA6C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../src/integrations/express/instrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,kBAAkB,MAAM,0BAA0B,CAAC;AA+BpE,OAAO,KAAK,EACV,yBAAyB,EAKzB,wBAAwB,EACxB,oBAAoB,EAGrB,MAAM,SAAS,CAAC;AAuBjB,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,yBAAyB,EAClC,cAAc,EAAE,OAAO,kBAAkB,CAAC,cAAc,GACvD,IAAI,CA0CN;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,oBAAoB,EAC1B,iBAAiB,EAAE,wBAAwB,GAAG,SAAS,GACtD,IAAI,CA4CN"}
1
+ {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../src/integrations/express/instrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,kBAAkB,MAAM,0BAA0B,CAAC;AA+BpE,OAAO,KAAK,EACV,yBAAyB,EAKzB,wBAAwB,EACxB,oBAAoB,EAGrB,MAAM,SAAS,CAAC;AAuBjB,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,yBAAyB,EAClC,cAAc,EAAE,OAAO,kBAAkB,CAAC,cAAc,GACvD,IAAI,CA8CN;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,oBAAoB,EAC1B,iBAAiB,EAAE,wBAAwB,GAAG,SAAS,GACtD,IAAI,CA4CN"}
@@ -0,0 +1,28 @@
1
+ import type { Env, Hono } from './honoTypes';
2
+ /**
3
+ * Hooks `HonoBase.prototype.route` at import time, before `sentry()` runs.
4
+ *
5
+ * Collecting sub-app references early ensures nothing is missed if sub-apps are mounted synchronously
6
+ * before the `sentry()` middleware is registered. The `Hono` class is passed in by the caller (the
7
+ * `@sentry/hono` SDK, where `hono` is a peer dependency) so this module never imports `hono` itself;
8
+ * `HonoBase.prototype` is one level above the class prototype.
9
+ */
10
+ export declare function earlyPatchHono(honoClass: {
11
+ prototype: object;
12
+ }): void;
13
+ /**
14
+ * Instruments a Hono app instance for Sentry tracing in middleware and route handlers.
15
+ *
16
+ * - `use` and `request` are per-instance class fields → must be patched on the instance.
17
+ * - `route` is a prototype method → hooked once globally, covers all instances.
18
+ * - Retroactively instruments sub-apps mounted before `sentry()` was called.
19
+ */
20
+ export declare function applyPatches<E extends Env>(app: Hono<E>): void;
21
+ /**
22
+ * Applies Sentry's Hono span patches to an app instance.
23
+ *
24
+ * Typed loosely (`object`) so the real `hono` `Hono<E, S, P>` type used by the `@sentry/hono` SDK is
25
+ * accepted without a cast; internally it is treated as the vendored {@link Hono} shape.
26
+ */
27
+ export declare function applyHonoPatches(app: object): void;
28
+ //# sourceMappingURL=applyPatches.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applyPatches.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/applyPatches.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAErE;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CA+B9D;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAElD"}
@@ -0,0 +1,2 @@
1
+ export declare const INTERNAL_REQUEST_ORIGIN = "auto.http.hono.internal_request";
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,oCAAoC,CAAC"}
@@ -0,0 +1,33 @@
1
+ import type { Context, GetConnInfo, MiddlewareHandler } from './honoTypes';
2
+ import type { SentryHonoMiddlewareOptions } from './types';
3
+ export declare const SENTRY_HONO_MIDDLEWARE = "__SENTRY_HONO_MIDDLEWARE__";
4
+ export interface CreateHonoRequestMiddlewareOptions {
5
+ /**
6
+ * Runtime-specific `getConnInfo` helper (e.g. `@hono/node-server/conninfo`, `hono/bun`).
7
+ * Optional — connection-info attributes are simply skipped when it is not provided.
8
+ */
9
+ getConnInfo?: GetConnInfo;
10
+ /** Static `shouldHandleError` callback (Node/Bun/Deno). */
11
+ shouldHandleError?: SentryHonoMiddlewareOptions['shouldHandleError'];
12
+ /**
13
+ * Resolves `shouldHandleError` per request from the context. Cloudflare accepts
14
+ * middleware options as a function of `env`, so the callback is only known once a
15
+ * request comes in. When provided, this wins over the static `shouldHandleError`.
16
+ */
17
+ resolveShouldHandleError?: (context: Context) => SentryHonoMiddlewareOptions['shouldHandleError'];
18
+ }
19
+ /**
20
+ * Builds the core Sentry request/response Hono middleware: it names the transaction, records the
21
+ * request, and captures unhandled context errors around `next()`.
22
+ *
23
+ * Idempotent per request (see {@link getRequestScope}), so duplicate registrations — a manual
24
+ * `sentry()` alongside the auto-instrumentation, mounted sub-apps, internal `.request()` dispatches —
25
+ * are all safe and run the handling exactly once.
26
+ *
27
+ * A user-provided `shouldHandleError` still takes effect even when the middleware carrying it is
28
+ * deduplicated behind the auto-instrumentation (which is prepended first, per request, from the
29
+ * `Context` constructor hook): the deduplicated middleware records its callback on the request scope, and the
30
+ * middleware that actually runs `responseHandler` uses it in preference to its own default.
31
+ */
32
+ export declare function createHonoRequestMiddleware(options?: CreateHonoRequestMiddlewareOptions): MiddlewareHandler;
33
+ //# sourceMappingURL=createHonoMiddleware.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createHonoMiddleware.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/createHonoMiddleware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE3E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAK3D,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AASnE,MAAM,WAAW,kCAAkC;IACjD;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B,2DAA2D;IAC3D,iBAAiB,CAAC,EAAE,2BAA2B,CAAC,mBAAmB,CAAC,CAAC;IAErE;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,2BAA2B,CAAC,mBAAmB,CAAC,CAAC;CACnG;AAqBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,GAAE,kCAAuC,GAAG,iBAAiB,CA4C/G"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Default implementation of the `shouldHandleError` callback.
3
+ *
4
+ * Returns `true` (capture) for 5xx errors and any error without a `status` property
5
+ *
6
+ * Returns `false` (skip) for 3xx and 4xx errors (they still generate spans and transactions for tracing)
7
+ *
8
+ * Checks any error-like value that carries a numeric `status` property. This covers
9
+ * Hono's `HTTPException`, third-party middleware errors, and custom error subclasses.
10
+ */
11
+ export declare function defaultShouldHandleError(error: unknown): boolean;
12
+ //# sourceMappingURL=defaultShouldHandleError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultShouldHandleError.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/defaultShouldHandleError.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAQhE"}
@@ -0,0 +1,6 @@
1
+ import type { Context } from './honoTypes';
2
+ /**
3
+ * Checks whether the given Hono context has a fetch event.
4
+ */
5
+ export declare function hasFetchEvent(c: Context): boolean;
6
+ //# sourceMappingURL=hono-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hono-context.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/hono-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,GAAG,OAAO,CASjD"}
@@ -0,0 +1,29 @@
1
+ import type { Env, Hono, MiddlewareHandler } from './honoTypes';
2
+ import type { SentryHonoMiddlewareOptions } from './types';
3
+ export interface HonoIntegrationOptions extends SentryHonoMiddlewareOptions {
4
+ }
5
+ /**
6
+ * Manually instruments a Hono app and returns the Sentry request/response middleware to register
7
+ * first: `app.use(honoMiddleware(app))`.
8
+ *
9
+ * Only needed when neither the Sentry runtime hook nor the bundler plugin is active — otherwise
10
+ * {@link honoIntegration} does this automatically. Safe to combine with the automatic instrumentation
11
+ * (request handling is deduplicated per request, `applyPatches` is idempotent). `Sentry.init(...)`
12
+ * must still be called separately.
13
+ */
14
+ export declare function honoMiddleware<E extends Env>(app: Hono<E>, options?: HonoIntegrationOptions): MiddlewareHandler;
15
+ /**
16
+ * Automatically instruments Hono applications for Sentry tracing.
17
+ *
18
+ * Hooks Hono's per-request internals (the `Context` constructor and `app.request`) via the
19
+ * orchestrion diagnostics channel — so instrumentation happens per request, never at module scope,
20
+ * which is what lets it work on Cloudflare Workers with no manual middleware. Enabled by default in
21
+ * the Node, Bun, Deno and Cloudflare SDKs; requires the Sentry runtime hook or bundler plugin.
22
+ *
23
+ * Registering `@sentry/hono`'s `sentry()` middleware manually alongside it is safe — request handling
24
+ * is deduplicated per request.
25
+ */
26
+ export declare const honoIntegration: (options?: HonoIntegrationOptions | undefined) => import("@sentry/core").Integration & {
27
+ name: "Hono";
28
+ };
29
+ //# sourceMappingURL=honoIntegration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"honoIntegration.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/honoIntegration.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,GAAG,EAAe,IAAI,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAW7E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAM3D,MAAM,WAAW,sBAAuB,SAAQ,2BAA2B;CAAG;AA0C9E;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,GAAE,sBAA2B,GAAG,iBAAiB,CAOnH;AA4ID;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Vendored subset of `hono`'s public types used by the Sentry Hono instrumentation.
3
+ *
4
+ * The instrumentation lives in `@sentry/server-utils`, a dependency of every server SDK — including
5
+ * apps that do not use Hono. We therefore declare no dependency on `hono` at all: not at runtime
6
+ * (the instrumentation never statically imports it; the `Hono` prototype is derived from a live app
7
+ * instance and matched routes are read from the request's own getters), and not at build/type time
8
+ * (these minimal structural types stand in for `hono`'s).
9
+ *
10
+ * ATTENTION: keep these permissive. Values cross the boundary to the `@sentry/hono` SDK, which uses
11
+ * the real `hono` types, so these must stay assignable from them at those call sites.
12
+ */
13
+ export interface Env {
14
+ Bindings?: any;
15
+ Variables?: any;
16
+ }
17
+ export type Next = () => Promise<void>;
18
+ export interface HonoRoute {
19
+ method: string;
20
+ path: string;
21
+ handler: (...args: any[]) => any;
22
+ }
23
+ export interface HonoRequest {
24
+ raw: Request;
25
+ method: string;
26
+ path: string;
27
+ routeIndex: number;
28
+ matchedRoutes: HonoRoute[];
29
+ routePath: string;
30
+ [key: string]: any;
31
+ }
32
+ export interface Context {
33
+ req: HonoRequest;
34
+ env: unknown;
35
+ error?: Error;
36
+ event: {
37
+ request: Request;
38
+ };
39
+ [key: string]: any;
40
+ }
41
+ export type MiddlewareHandler = (context: Context, next: Next) => Promise<Response | void>;
42
+ export interface Hono<E extends Env = Env> {
43
+ use: (...args: any[]) => Hono<E>;
44
+ request: (...args: any[]) => Response | Promise<Response>;
45
+ routes: HonoRoute[];
46
+ [key: string]: any;
47
+ }
48
+ export interface ConnInfoRemote {
49
+ address?: string;
50
+ port?: number;
51
+ transport?: string;
52
+ addressType?: string;
53
+ }
54
+ export type GetConnInfo = (context: any) => {
55
+ remote?: ConnInfoRemote;
56
+ };
57
+ //# sourceMappingURL=honoTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"honoTypes.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/honoTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,MAAM,WAAW,GAAG;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,SAAS,CAAC,EAAE,GAAG,CAAC;CACjB;AAED,MAAM,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;AAEvC,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CA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,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,GAAG,KAAK;IAAE,MAAM,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ export { honoIntegration } from './honoIntegration';
2
+ export type { HonoIntegrationOptions } from './honoIntegration';
3
+ export { honoMiddleware } from './honoIntegration';
4
+ export { applyHonoPatches, earlyPatchHono } from './applyPatches';
5
+ export { createHonoRequestMiddleware } from './createHonoMiddleware';
6
+ export type { CreateHonoRequestMiddlewareOptions } from './createHonoMiddleware';
7
+ export type { SentryHonoMiddlewareOptions } from './types';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAKhE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAKnD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,YAAY,EAAE,kCAAkC,EAAE,MAAM,wBAAwB,CAAC;AACjF,YAAY,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Infers whether a Hono route entry is a middleware (rather than a route handler).
3
+ *
4
+ * Hono has no "isMiddleware" flag, so we rely on arity: middleware is `(context, next)` (arity >= 2)
5
+ * while route handlers are `(context)` (arity < 2). `onError`-wrapped sub-app handlers are unwrapped
6
+ * first so we check the original handler's arity, not the wrapper's `(c, next)` signature.
7
+ * https://github.com/honojs/hono/blob/97c6fe1f12298c715eb7b2da65b4b6e0d81682bb/src/utils/handler.ts#L8
8
+ *
9
+ * This is only one signal — callers that must classify inline middleware sharing a method+path with
10
+ * their handler (e.g. `wrapSubAppMiddleware`) additionally need positional information.
11
+ */
12
+ export declare function isMiddleware(handler: unknown): boolean;
13
+ //# sourceMappingURL=isMiddleware.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isMiddleware.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/isMiddleware.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAStD"}
@@ -0,0 +1,20 @@
1
+ import type { Context, GetConnInfo } from './honoTypes';
2
+ import { type SentryHonoMiddlewareOptions } from './types';
3
+ /**
4
+ * Request handler for Hono framework
5
+ */
6
+ export declare function requestHandler(context: Context, getConnInfo?: GetConnInfo): void;
7
+ /**
8
+ * Response handler for Hono framework
9
+ */
10
+ export declare function responseHandler(context: Context, shouldHandleError?: SentryHonoMiddlewareOptions['shouldHandleError']): void;
11
+ /**
12
+ * Captures an unhandled context error, gated by the user's `shouldHandleError` (or the default).
13
+ *
14
+ * Split out from {@link responseHandler} so a deduplicated middleware can still report its own
15
+ * context's error without re-resolving the route name or overwriting request data — e.g. the inner
16
+ * context of an internal `.request()` whose route threw but whose failed response the outer handler
17
+ * swallowed.
18
+ */
19
+ export declare function captureContextError(context: Context, shouldHandleError?: SentryHonoMiddlewareOptions['shouldHandleError']): void;
20
+ //# sourceMappingURL=middlewareHandlers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"middlewareHandlers.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/middlewareHandlers.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAIxD,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAG3D;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,IAAI,CAchF;AA8CD;;GAEG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,EAChB,iBAAiB,CAAC,EAAE,2BAA2B,CAAC,mBAAmB,CAAC,GACnE,IAAI,CAKN;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,OAAO,EAChB,iBAAiB,CAAC,EAAE,2BAA2B,CAAC,mBAAmB,CAAC,GACnE,IAAI,CAQN"}
@@ -0,0 +1,26 @@
1
+ import type { Env, Hono } from './honoTypes';
2
+ /** Whether the instance `app.request` Proxy is currently opening an internal-request span. */
3
+ export declare function isInternalRequestSpanActive(): boolean;
4
+ /**
5
+ * Derive the span-name path from an `app.request()` argument, mirroring Hono's own handling so the
6
+ * name matches the path actually dispatched, with the query/hash stripped so they can't leak into
7
+ * span names or inflate cardinality.
8
+ *
9
+ * Hono treats an absolute `http(s)://` input as a full URL and everything else as a path under
10
+ * `http://localhost` (see `hono-base`'s `request`). We prepend that same fixed host rather than
11
+ * resolving the string as a URL reference: resolution rewrites protocol-relative inputs
12
+ * (`//example.com/foo` → host `example.com`, dropping the segment Hono keeps in the path) and throws
13
+ * on inputs Hono accepts (`//`, `http:`). This runs before the underlying dispatch, so it must never
14
+ * throw — the `catch` is a final guard against any remaining malformed input.
15
+ */
16
+ export declare function extractPathname(input: unknown): string;
17
+ /**
18
+ * Patches `app.request()` on a Hono instance so that each internal dispatch
19
+ * is traced as an `http.server` span — child of whatever span is active at
20
+ * the call site.
21
+ *
22
+ * `.request()` is a class field (arrow function), so this must run per-instance.
23
+ * Idempotent: safe to call multiple times on the same instance.
24
+ */
25
+ export declare function patchAppRequest<E extends Env>(app: Hono<E>): void;
26
+ //# sourceMappingURL=patchAppRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patchAppRequest.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/patchAppRequest.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAe7C,8FAA8F;AAC9F,wBAAgB,2BAA2B,IAAI,OAAO,CAErD;AAWD;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAiBtD;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAoDjE"}
@@ -0,0 +1,16 @@
1
+ import type { Env, Hono } from './honoTypes';
2
+ /**
3
+ * Patches `app.use` (instance own property) on a Hono instance to instrument middleware at registration time.
4
+ *
5
+ * Must be per-instance because `use` is a class field, not a prototype method.
6
+ * Idempotent.
7
+ */
8
+ export declare function patchAppUse<E extends Env>(app: Hono<E>): void;
9
+ /**
10
+ * Patches HTTP method class fields to instrument inline middleware at registration time.
11
+ *
12
+ * For `app.get('/path', mw1, mw2, handler)`, all handlers except the last are middleware and get wrapped with spans.
13
+ * The final handler (the route handler) is already covered by the root http.server transaction.
14
+ */
15
+ export declare function patchHttpMethodHandlers<E extends Env>(app: Hono<E>): void;
16
+ //# sourceMappingURL=patchAppUse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patchAppUse.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/patchAppUse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,EAAqB,MAAM,aAAa,CAAC;AAWhE;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAqB7D;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAiBzE"}
@@ -0,0 +1,35 @@
1
+ import type { Hono, HonoRoute } from './honoTypes';
2
+ export type { HonoRoute };
3
+ type HonoAny = Hono<any>;
4
+ export type RouteHookHandle = {
5
+ activate: () => void;
6
+ getPendingSubApps: () => Set<HonoAny>;
7
+ };
8
+ type HonoBaseProto = {
9
+ route?: (path: string, app: HonoAny) => HonoAny;
10
+ __sentryRouteHook__?: RouteHookHandle;
11
+ };
12
+ /**
13
+ * Installs a hook on `HonoBase.prototype.route` to intercept sub-app mounting.
14
+ *
15
+ * `honoBaseProto` is `HonoBase.prototype`, where `route` is defined — one level above the concrete
16
+ * subclass. Callers derive it from a live app instance (`Object.getPrototypeOf(Object.getPrototypeOf(app))`)
17
+ * or from the `Hono` class (`Object.getPrototypeOf(Hono.prototype)`), so the instrumentation never
18
+ * imports `hono` itself.
19
+ *
20
+ * Returns a handle with `activate()` and `getPendingSubApps()`.
21
+ * Idempotent: subsequent calls return the same handle
22
+ */
23
+ export declare function installRouteHookOnPrototype(honoBaseProto: HonoBaseProto): RouteHookHandle;
24
+ /**
25
+ * Identifies middleware handlers in a sub-app's flat routes array and wraps them in spans.
26
+ *
27
+ * Heuristics (since Hono has no "isMiddleware" flag):
28
+ * 1. Position: `app.get('/path', mw, handler)` produces entries with the same method+path.
29
+ * All but the LAST are middleware (they call `next()`).
30
+ * 2. Arity (# of params) for method 'ALL': `.use()` handlers always have 2+ params (context, next),
31
+ * while `.all()` route handlers typically have 1 (`context` only).
32
+ * See: https://github.com/honojs/hono/blob/18fe604c8cefc2628240651b1af219692e1918c1/src/hono-base.ts#L156-L168
33
+ */
34
+ export declare function wrapSubAppMiddleware(routes: HonoRoute[]): void;
35
+ //# sourceMappingURL=patchRoute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patchRoute.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/patchRoute.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKnD,YAAY,EAAE,SAAS,EAAE,CAAC;AAG1B,KAAK,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;AAEzB,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,iBAAiB,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC,CAAC;CACvC,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC;IAChD,mBAAmB,CAAC,EAAE,eAAe,CAAC;CACvC,CAAC;AAiCF;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CAAC,aAAa,EAAE,aAAa,GAAG,eAAe,CAqCzF;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAmB9D"}
@@ -0,0 +1,10 @@
1
+ import type { Context } from './honoTypes';
2
+ /**
3
+ * Resolves the route path of the matched handler for the transaction name.
4
+ *
5
+ * Picking the handler (not just `routePath`) avoids two failure modes: a catch-all middleware
6
+ * registered after the handlers (`routePath(c, -1)` would return just `/*`), and a middleware that
7
+ * short-circuits before the handler runs (`routePath(c)` would return the middleware's path).
8
+ */
9
+ export declare function resolveRouteName(context: Context): string;
10
+ //# sourceMappingURL=resolveRouteName.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveRouteName.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/resolveRouteName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAa,MAAM,aAAa,CAAC;AAsBtD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAoBzD"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Middleware-specific options shared across all Hono runtime adapters.
3
+ * These options are distinct from the SDK initialization options (DSN, sample rates, etc.).
4
+ */
5
+ export interface SentryHonoMiddlewareOptions {
6
+ /**
7
+ * Determines whether a given Hono error thrown in the response should be captured and sent to Sentry.
8
+ *
9
+ * When not provided, the default behavior applies: 3xx and 4xx HTTP errors are
10
+ * considered expected and are not captured. All other errors are captured.
11
+ *
12
+ * @example
13
+ * // Capture everything, including 4xx errors:
14
+ * shouldHandleError: () => true
15
+ *
16
+ * @example
17
+ * // Capture only 5xx errors and suppress everything else:
18
+ * shouldHandleError: (err) => {
19
+ * const status = (err as { status?: number })?.status;
20
+ * return typeof status === 'number' ? status >= 500 : true;
21
+ * }
22
+ */
23
+ shouldHandleError?: (error: unknown) => boolean;
24
+ }
25
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;;;;;;;;;;;;;;;OAgBG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;CACjD"}
@@ -0,0 +1,9 @@
1
+ import { type MiddlewareHandler } from './honoTypes';
2
+ /**
3
+ * Wraps a Hono middleware handler so that its execution is traced as a Sentry span.
4
+ * Explicitly parents each span under the root (transaction) span so that all middleware
5
+ * spans are siblings — even when OTel instrumentation introduces nested active contexts
6
+ * (onion order: A → B → handler → B → A would otherwise nest B under A).
7
+ */
8
+ export declare function wrapMiddlewareWithSpan(handler: MiddlewareHandler): MiddlewareHandler;
9
+ //# sourceMappingURL=wrapMiddlewareSpan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrapMiddlewareSpan.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/wrapMiddlewareSpan.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAMrD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,iBAAiB,GAAG,iBAAiB,CA8CpF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/index.ts"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,iEAAiE;AACjE,wBAAgB,sBAAsB,IAAI,WAAW,EAAE,CAiCtD;AAED,+EAA+E;AAC/E,wBAAgB,oBAAoB,IAAI,WAAW,EAAE,CAEpD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/index.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,iEAAiE;AACjE,wBAAgB,sBAAsB,IAAI,WAAW,EAAE,CAmCtD;AAED,+EAA+E;AAC/E,wBAAgB,oBAAoB,IAAI,WAAW,EAAE,CAEpD"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Auto-instruments `@modelcontextprotocol/server` (v2) and `@modelcontextprotocol/sdk` (v1)
3
+ * `McpServer` instances, so users no longer have to wrap them with `wrapMcpServerWithSentry`
4
+ * by hand. Enabled by default. Requires the runtime hook or a bundler plugin (orchestrion) to
5
+ * inject the constructor channel.
6
+ */
7
+ export declare const mcpServerIntegration: () => import("@sentry/core").Integration & {
8
+ name: string;
9
+ };
10
+ //# sourceMappingURL=mcp-server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../../../src/integrations/mcp-server.ts"],"names":[],"mappings":"AA+CA;;;;;GAKG;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;AAKxD;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,wGAAwG;IACxG,eAAe,EAAE,M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1
- {"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../src/integrations/openai.ts"],"names":[],"mappings":"AAmIA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;CAAwC,CAAC"}
1
+ {"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../src/integrations/openai.ts"],"names":[],"mappings":"AA8IA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;CAAwC,CAAC"}
@@ -25,7 +25,9 @@ export declare function instrumentPrisma(options?: PrismaOptions): void;
25
25
  * Adds Sentry tracing instrumentation for the [prisma](https://www.npmjs.com/package/prisma) library.
26
26
  * For more information, see the [`prismaIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/prisma/).
27
27
  *
28
- * NOTE: This integration works out of the box with Prisma v6, and v7.
28
+ * NOTE: This integration works out of the box with Prisma v6, v7 and v8. Prisma v8 ("Prisma Next")
29
+ * has no tracing surface of its own, so its ORM calls are instrumented through Sentry's runtime hook
30
+ * or bundler plugin, like the other channel-based integrations.
29
31
  * On Prisma versions prior to v6, add `previewFeatures = ["tracing"]` to the client generator block of your Prisma schema:
30
32
  *
31
33
  * ```
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/prisma/index.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CACvC;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,qBAAqB,CAAC,EAAE,2BAA2B,CAAC;CACrD;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAM9D;AAWD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB;;CAAwC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/prisma/index.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CACvC;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,qBAAqB,CAAC,EAAE,2BAA2B,CAAC;CACrD;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAM9D;AAiBD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,iBAAiB;;CAAwC,CAAC"}
@@ -0,0 +1,10 @@
1
+ interface PrismaV8InstrumentationOptions {
2
+ ignoreSpanTypes: (string | RegExp)[];
3
+ }
4
+ /**
5
+ * Opens a `prisma:client:operation` span per ORM call, kept active while the terminal runs so the `pg`
6
+ * query spans nest under it like the `db_query` spans did on v5–v7.
7
+ */
8
+ export declare function instrumentPrismaV8(options: PrismaV8InstrumentationOptions): void;
9
+ export {};
10
+ //# sourceMappingURL=orchestrion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orchestrion.d.ts","sourceRoot":"","sources":["../../../../src/integrations/prisma/orchestrion.ts"],"names":[],"mappings":"AA4CA,UAAU,8BAA8B;IACtC,eAAe,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CACtC;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,8BAA8B,GAAG,IAAI,CAmBhF"}
@@ -42,5 +42,7 @@ export declare class ActiveTracingHelper implements TracingHelper {
42
42
  getActiveContext(): Span | undefined;
43
43
  runInChildSpan<R>(nameOrOptions: string | ExtendedSpanOptions, callback: SpanCallback<R>): R;
44
44
  }
45
+ /** Whether `spanName` matches one of the configured `ignoreSpanTypes` patterns. */
46
+ export declare function shouldIgnoreSpan(spanName: string, ignoreSpanTypes: (string | RegExp)[]): boolean;
45
47
  export {};
46
48
  //# sourceMappingURL=tracing-helper.d.ts.map
@@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,CAAA;KAAE,EAAE,CAAC;IAChD,IAAI,EAAE,gBAAgB,CAAC;CACxB,CAAC;AAiJF;;GAEG;AACH,qBAAa,mBAAoB,YAAW,aAAa;IACvD,OAAO,CAAC,eAAe,CAAsB;IAE7C,YAAmB,EAAE,eAAe,EAAE,EAAE,OAAO,EAE9C;IAEM,SAAS,IAAI,OAAO,CAE1B;IAEM,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAMzC;IAEM,mBAAmB,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,IAAI,CAOpD;IAED;;;;;OAKG;IACI,gBAAgB,CAAC,eAAe,EAAE,iBAAiB,GAAG,IAAI,CAehE;IAEM,gBAAgB,IAAI,IAAI,GAAG,SAAS,CAE1C;IAEM,cAAc,CAAC,CAAC,EAAE,aAAa,EAAE,MAAM,GAAG,mBAAmB,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAqClG;CACF;AAmFD,mFAAmF;AACnF,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,OAAO,CAEhG"}
@@ -0,0 +1,10 @@
1
+ import type { GenAiOptions } from '../ai/core/utils';
2
+ /**
3
+ * Diagnostics-channel-based integration for the TypeSafe SDK (`@typesafe-ai/sdk` >= 0.5.0 < 1).
4
+ * Subscribes to the `orchestrion:@typesafe-ai/sdk:system-one` channel injected into
5
+ * `TypeSafeClient.systemOne`, so it requires the Sentry runtime hook or bundler plugin.
6
+ */
7
+ export declare const typesafeIntegration: (options?: GenAiOptions | undefined) => import("@sentry/core").Integration & {
8
+ name: "TypeSafe";
9
+ };
10
+ //# sourceMappingURL=typesafe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typesafe.d.ts","sourceRoot":"","sources":["../../../src/integrations/typesafe.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAqDrD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;CAA0C,CAAC"}
@@ -12,7 +12,7 @@ export declare function clearOperationId(data: VercelAiChannelMessage): void;
12
12
  */
13
13
  export declare function clearOperationCallId(callId: string): void;
14
14
  /** The lifecycle event types the `ai:telemetry` channel can carry. */
15
- export type ChannelEventType = 'generateText' | 'streamText' | 'generateObject' | 'step' | 'languageModelCall' | 'executeTool' | 'embed' | 'embedMany' | 'rerank';
15
+ export type ChannelEventType = 'generateText' | 'streamText' | 'generateObject' | 'step' | 'languageModelCall' | 'executeTool' | 'embed' | 'embedMany' | 'rerank' | 'experimental_evaluate';
16
16
  /**
17
17
  * The context object the AI SDK passes through one tracing-channel call. It is the same object
18
18
  * identity across `start`/`end`/`asyncEnd`/`error`, and Node's `tracingChannel` attaches