@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
@@ -0,0 +1,113 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const attributes = require('@sentry/conventions/attributes');
4
+ const core = require('@sentry/core');
5
+ const utils = require('../core/utils.js');
6
+ const constants = require('./constants.js');
7
+
8
+ function startEvaluateSpan(request, client, recordInputs) {
9
+ const params = core.isObjectLike(request) ? request : {};
10
+ const defaultModel = core.isObjectLike(client) ? client.defaultModel : void 0;
11
+ const model = typeof params.model === "string" ? params.model : typeof defaultModel === "string" ? defaultModel : void 0;
12
+ return core.startInactiveSpan({
13
+ name: model ? `evaluate ${model}` : "evaluate",
14
+ op: utils.getGenAiSpanOp("evaluate"),
15
+ attributes: getRequestAttributes(params, model, recordInputs)
16
+ });
17
+ }
18
+ function getRequestAttributes(request, model, recordInputs) {
19
+ return {
20
+ [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: constants.TYPESAFE_ORIGIN,
21
+ [attributes.GEN_AI_OPERATION_NAME]: "evaluate",
22
+ [attributes.GEN_AI_PROVIDER_NAME]: constants.TYPESAFE_PROVIDER_NAME,
23
+ ...model ? { [attributes.GEN_AI_REQUEST_MODEL]: model } : {},
24
+ ...recordInputs ? {
25
+ [attributes.GEN_AI_INPUT_MESSAGES]: core.stringify([
26
+ { type: "evaluation", state: request.state, questions: request.questions }
27
+ ])
28
+ } : {}
29
+ };
30
+ }
31
+ function addResponseAttributes(span, result, recordOutputs) {
32
+ if (!core.isObjectLike(result)) {
33
+ return;
34
+ }
35
+ if (typeof result.model === "string") {
36
+ span.setAttribute(attributes.GEN_AI_RESPONSE_MODEL, result.model);
37
+ }
38
+ const usage = core.isObjectLike(result.usage) ? result.usage : void 0;
39
+ const inputTokens = typeof usage?.input_tokens === "number" ? usage.input_tokens : void 0;
40
+ const outputTokens = typeof usage?.output_tokens === "number" ? usage.output_tokens : void 0;
41
+ if (inputTokens !== void 0) {
42
+ span.setAttribute(attributes.GEN_AI_USAGE_INPUT_TOKENS, inputTokens);
43
+ }
44
+ if (outputTokens !== void 0) {
45
+ span.setAttribute(attributes.GEN_AI_USAGE_OUTPUT_TOKENS, outputTokens);
46
+ }
47
+ if (inputTokens !== void 0 && outputTokens !== void 0) {
48
+ span.setAttribute(attributes.GEN_AI_USAGE_TOTAL_TOKENS, inputTokens + outputTokens);
49
+ }
50
+ if (recordOutputs && result.answers !== void 0) {
51
+ span.setAttribute(attributes.GEN_AI_OUTPUT_MESSAGES, core.stringify([{ type: "evaluation", answers: result.answers }]));
52
+ }
53
+ }
54
+ function onSystemOneResponse(result, onBody, onError) {
55
+ if (!core.isObjectLike(result) || typeof result.asResponse !== "function") {
56
+ return false;
57
+ }
58
+ result.asResponse().then(
59
+ (response) => response.clone().json().then(
60
+ (body) => onBody(body),
61
+ () => onBody(void 0)
62
+ ),
63
+ (error) => onError(error)
64
+ );
65
+ return true;
66
+ }
67
+ function instrumentTypeSafeClient(client, options) {
68
+ return new Proxy(client, {
69
+ get(target, prop) {
70
+ const value = Reflect.get(target, prop, target);
71
+ if (typeof value !== "function") {
72
+ return value;
73
+ }
74
+ if (prop === "systemOne") {
75
+ return (...args) => instrumentSystemOne(value, target, args, options);
76
+ }
77
+ return value.bind(target);
78
+ }
79
+ });
80
+ }
81
+ function instrumentSystemOne(systemOne, client, args, options) {
82
+ const { recordInputs, recordOutputs } = utils.resolveAIRecordingOptions(options);
83
+ const span = startEvaluateSpan(args[0], client, recordInputs);
84
+ const endWithError = () => {
85
+ span.setStatus({ code: core.SPAN_STATUS_ERROR, message: "internal_error" });
86
+ span.end();
87
+ };
88
+ let result;
89
+ try {
90
+ result = core.withActiveSpan(span, () => systemOne.apply(client, args));
91
+ } catch (error) {
92
+ endWithError();
93
+ throw error;
94
+ }
95
+ const waiting = onSystemOneResponse(
96
+ result,
97
+ (body) => {
98
+ addResponseAttributes(span, body, recordOutputs);
99
+ span.end();
100
+ },
101
+ endWithError
102
+ );
103
+ if (!waiting) {
104
+ span.end();
105
+ }
106
+ return result;
107
+ }
108
+
109
+ exports.addResponseAttributes = addResponseAttributes;
110
+ exports.instrumentTypeSafeClient = instrumentTypeSafeClient;
111
+ exports.onSystemOneResponse = onSystemOneResponse;
112
+ exports.startEvaluateSpan = startEvaluateSpan;
113
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/ai/typesafe/index.ts"],"sourcesContent":["import {\n GEN_AI_INPUT_MESSAGES,\n GEN_AI_OPERATION_NAME,\n GEN_AI_OUTPUT_MESSAGES,\n GEN_AI_PROVIDER_NAME,\n GEN_AI_REQUEST_MODEL,\n GEN_AI_RESPONSE_MODEL,\n GEN_AI_USAGE_INPUT_TOKENS,\n GEN_AI_USAGE_OUTPUT_TOKENS,\n GEN_AI_USAGE_TOTAL_TOKENS,\n} from '@sentry/conventions/attributes';\nimport type { Span, SpanAttributes } from '@sentry/core';\nimport {\n isObjectLike,\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n SPAN_STATUS_ERROR,\n startInactiveSpan,\n stringify,\n withActiveSpan,\n} from '@sentry/core';\nimport type { GenAiOptions } from '../core/utils';\nimport { getGenAiSpanOp, resolveAIRecordingOptions } from '../core/utils';\nimport { TYPESAFE_ORIGIN, TYPESAFE_PROVIDER_NAME } from './constants';\n\n/**\n * Start the span for a `systemOne(request)` call. The request model falls back to the client's\n * `defaultModel`, the same way the SDK resolves it.\n */\nexport function startEvaluateSpan(request: unknown, client: unknown, recordInputs: boolean): Span {\n const params = isObjectLike(request) ? request : {};\n const defaultModel = isObjectLike(client) ? client.defaultModel : undefined;\n const model =\n typeof params.model === 'string' ? params.model : typeof defaultModel === 'string' ? defaultModel : undefined;\n\n return startInactiveSpan({\n name: model ? `evaluate ${model}` : 'evaluate',\n op: getGenAiSpanOp('evaluate'),\n attributes: getRequestAttributes(params, model, recordInputs),\n });\n}\n\nfunction getRequestAttributes(\n request: Record<string, unknown>,\n model: string | undefined,\n recordInputs: boolean,\n): SpanAttributes {\n return {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: TYPESAFE_ORIGIN,\n [GEN_AI_OPERATION_NAME]: 'evaluate',\n [GEN_AI_PROVIDER_NAME]: TYPESAFE_PROVIDER_NAME,\n ...(model ? { [GEN_AI_REQUEST_MODEL]: model } : {}),\n ...(recordInputs\n ? {\n [GEN_AI_INPUT_MESSAGES]: stringify([\n { type: 'evaluation', state: request.state, questions: request.questions },\n ]),\n }\n : {}),\n };\n}\n\n/** Add the response model, token usage and (optionally) the answers of a `systemOne` result. */\nexport function addResponseAttributes(span: Span, result: unknown, recordOutputs: boolean): void {\n if (!isObjectLike(result)) {\n return;\n }\n\n if (typeof result.model === 'string') {\n span.setAttribute(GEN_AI_RESPONSE_MODEL, result.model);\n }\n\n const usage = isObjectLike(result.usage) ? result.usage : undefined;\n const inputTokens = typeof usage?.input_tokens === 'number' ? usage.input_tokens : undefined;\n const outputTokens = typeof usage?.output_tokens === 'number' ? usage.output_tokens : undefined;\n if (inputTokens !== undefined) {\n span.setAttribute(GEN_AI_USAGE_INPUT_TOKENS, inputTokens);\n }\n if (outputTokens !== undefined) {\n span.setAttribute(GEN_AI_USAGE_OUTPUT_TOKENS, outputTokens);\n }\n if (inputTokens !== undefined && outputTokens !== undefined) {\n span.setAttribute(GEN_AI_USAGE_TOTAL_TOKENS, inputTokens + outputTokens);\n }\n\n if (recordOutputs && result.answers !== undefined) {\n span.setAttribute(GEN_AI_OUTPUT_MESSAGES, stringify([{ type: 'evaluation', answers: result.answers }]));\n }\n}\n\n/**\n * `systemOne` returns a lazy `APIPromise` before the request settles, and parses the body on the first\n * `.then()`. Wait on `asResponse()` (the raw fetch, which does not parse the body) and read a clone of\n * the body, so the caller's own parse is unaffected. Call this before the caller can await the result,\n * so the clone is taken first. Returns `false` when `result` is not an `APIPromise`.\n */\nexport function onSystemOneResponse(\n result: unknown,\n onBody: (body: unknown) => void,\n onError: (error: unknown) => void,\n): boolean {\n if (!isObjectLike(result) || typeof result.asResponse !== 'function') {\n return false;\n }\n\n (result.asResponse() as Promise<Response>).then(\n response =>\n response\n .clone()\n .json()\n .then(\n body => onBody(body),\n () => onBody(undefined),\n ),\n error => onError(error),\n );\n\n return true;\n}\n\n/**\n * Instrument a TypeSafe client (`@typesafe-ai/sdk`) with Sentry tracing.\n */\nexport function instrumentTypeSafeClient<T extends object>(client: T, options?: GenAiOptions): T {\n return new Proxy(client, {\n get(target, prop) {\n // Read with the real client as receiver: the SDK keeps its API key in a private class field.\n const value: unknown = Reflect.get(target, prop, target);\n if (typeof value !== 'function') {\n return value;\n }\n if (prop === 'systemOne') {\n return (...args: unknown[]) =>\n instrumentSystemOne(value as (...args: unknown[]) => unknown, target, args, options);\n }\n return value.bind(target);\n },\n });\n}\n\nfunction instrumentSystemOne(\n systemOne: (...args: unknown[]) => unknown,\n client: object,\n args: unknown[],\n options: GenAiOptions | undefined,\n): unknown {\n const { recordInputs, recordOutputs } = resolveAIRecordingOptions(options);\n const span = startEvaluateSpan(args[0], client, recordInputs);\n const endWithError = (): void => {\n span.setStatus({ code: SPAN_STATUS_ERROR, message: 'internal_error' });\n span.end();\n };\n\n let result: unknown;\n try {\n result = withActiveSpan(span, () => systemOne.apply(client, args));\n } catch (error) {\n endWithError();\n throw error;\n }\n\n const waiting = onSystemOneResponse(\n result,\n body => {\n addResponseAttributes(span, body, recordOutputs);\n span.end();\n },\n endWithError,\n );\n if (!waiting) {\n span.end();\n }\n\n return result;\n}\n"],"names":["isObjectLike","startInactiveSpan","getGenAiSpanOp","SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN","TYPESAFE_ORIGIN","GEN_AI_OPERATION_NAME","GEN_AI_PROVIDER_NAME","TYPESAFE_PROVIDER_NAME","GEN_AI_REQUEST_MODEL","GEN_AI_INPUT_MESSAGES","stringify","GEN_AI_RESPONSE_MODEL","GEN_AI_USAGE_INPUT_TOKENS","GEN_AI_USAGE_OUTPUT_TOKENS","GEN_AI_USAGE_TOTAL_TOKENS","GEN_AI_OUTPUT_MESSAGES","resolveAIRecordingOptions","SPAN_STATUS_ERROR","withActiveSpan"],"mappings":";;;;;;;AA4BO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,iBAAA,CAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiB,YAAA,CAAA,CAA6B;AAChG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAASA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA,CAAa,OAAO,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAU,CAAA,CAAC;AAClD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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AAA,CAAA,CAAA,CACd,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACA,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA,CAAQ;AACN,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,qBAAA,CAAsB,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA,CAAA,GAAM,aAAa,CAAA;AAC/C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAI;AAAA,CAAA,CAAA,CAAA,CACX,CAAA;AAAA,CAAA,CAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CACF;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS;AACZ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAI;AAAA,CAAA,CACX;AAEA,CAAA,CAAA,OAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACT;;;;;"}
@@ -7,22 +7,26 @@ const index$f = require('./ai/openai/index.js');
7
7
  const index$b = require('./ai/anthropic-ai/index.js');
8
8
  const index$d = require('./ai/google-genai/index.js');
9
9
  const index$e = require('./ai/mistral/index.js');
10
- const index$g = require('./ai/workers-ai/index.js');
10
+ const index$g = require('./ai/typesafe/index.js');
11
+ const index$h = require('./ai/workers-ai/index.js');
11
12
  const index$3 = require('./ai/langchain/index.js');
12
13
  const index$c = require('./ai/langgraph/index.js');
13
14
  const index = require('./ai/mastra/index.js');
14
15
  const index$2 = require('./ai/flue/index.js');
15
16
  const sql = require('./utils/sql.js');
16
17
  const postgresjs = require('./integrations/postgresjs.js');
18
+ const applyPatches = require('./integrations/hono/applyPatches.js');
19
+ const createHonoMiddleware = require('./integrations/hono/createHonoMiddleware.js');
17
20
  const detect = require('./orchestrion/detect.js');
18
21
  const koaErrorHandler = require('./integrations/koa/koa-error-handler.js');
19
22
  const hapiErrorHandler = require('./integrations/hapi/hapi-error-handler.js');
20
23
  const tracingChannel = require('./tracing-channel.js');
21
24
  const moduleInjected = require('./utils/moduleInjected.js');
25
+ const diagnosticsChannel = require('./utils/diagnosticsChannel.js');
22
26
  const eve = require('./eve.js');
23
27
  const index$8 = require('./orchestrion/config/index.js');
24
28
  const index$5 = require('./integrations/fastify/index.js');
25
- const index$m = require('./integrations/prisma/index.js');
29
+ const index$n = require('./integrations/prisma/index.js');
26
30
  const amqplib = require('./integrations/amqplib.js');
27
31
  const anthropic = require('./integrations/anthropic.js');
28
32
  const index$1 = require('./integrations/aws-sdk/index.js');
@@ -31,27 +35,30 @@ const genericPool = require('./integrations/generic-pool.js');
31
35
  const googleGenai = require('./integrations/google-genai.js');
32
36
  const index$9 = require('./integrations/graphql/index.js');
33
37
  const index$a = require('./integrations/hapi/index.js');
34
- const index$i = require('./integrations/koa/index.js');
35
- const index$n = require('./integrations/redis/index.js');
36
- const index$h = require('./integrations/kafkajs/index.js');
38
+ const honoIntegration = require('./integrations/hono/honoIntegration.js');
39
+ const index$j = require('./integrations/koa/index.js');
40
+ const index$o = require('./integrations/redis/index.js');
41
+ const index$i = require('./integrations/kafkajs/index.js');
37
42
  const knex = require('./integrations/knex.js');
38
43
  const langchain = require('./integrations/langchain.js');
39
44
  const langgraph = require('./integrations/langgraph.js');
40
45
  const flue = require('./integrations/flue.js');
41
46
  const mastra = require('./integrations/mastra.js');
47
+ const mcpServer = require('./integrations/mcp-server.js');
42
48
  const lruMemoizer = require('./integrations/lru-memoizer.js');
43
- const index$j = require('./integrations/mongodb/index.js');
44
- const index$k = require('./integrations/mongoose/index.js');
49
+ const index$k = require('./integrations/mongodb/index.js');
50
+ const index$l = require('./integrations/mongoose/index.js');
45
51
  const mistral = require('./integrations/mistral.js');
46
52
  const groq = require('./integrations/groq.js');
47
53
  const togetherAi = require('./integrations/together-ai.js');
54
+ const typesafe = require('./integrations/typesafe.js');
48
55
  const mysql = require('./integrations/mysql.js');
49
- const index$l = require('./integrations/mysql2/index.js');
56
+ const index$m = require('./integrations/mysql2/index.js');
50
57
  const openai = require('./integrations/openai.js');
51
58
  const postgres = require('./integrations/postgres.js');
52
59
  const postgresJs = require('./integrations/postgres-js.js');
53
60
  const tedious = require('./integrations/tedious.js');
54
- const index$o = require('./integrations/vercel-ai/index.js');
61
+ const index$p = require('./integrations/vercel-ai/index.js');
55
62
  const index$4 = require('./integrations/express/index.js');
56
63
  const errorHandler = require('./integrations/express/error-handler.js');
57
64
  const index$6 = require('./integrations/firebase/index.js');
@@ -68,7 +75,8 @@ exports.instrumentOpenAiClient = index$f.instrumentOpenAiClient;
68
75
  exports.instrumentAnthropicAiClient = index$b.instrumentAnthropicAiClient;
69
76
  exports.instrumentGoogleGenAIClient = index$d.instrumentGoogleGenAIClient;
70
77
  exports.instrumentMistralAiClient = index$e.instrumentMistralAiClient;
71
- exports.instrumentWorkersAiClient = index$g.instrumentWorkersAiClient;
78
+ exports.instrumentTypeSafeClient = index$g.instrumentTypeSafeClient;
79
+ exports.instrumentWorkersAiClient = index$h.instrumentWorkersAiClient;
72
80
  exports.createLangChainCallbackHandler = index$3.createLangChainCallbackHandler;
73
81
  exports.instrumentCreateReactAgent = index$c.instrumentCreateReactAgent;
74
82
  exports.instrumentStateGraph = index$c.instrumentStateGraph;
@@ -79,16 +87,21 @@ exports.getSqlQuerySummary = sql.getSqlQuerySummary;
79
87
  exports.sanitizeSqlQuery = sql.sanitizeSqlQuery;
80
88
  exports.sanitizeSqlQueryWithSummary = sql.sanitizeSqlQueryWithSummary;
81
89
  exports.instrumentPostgresJsSql = postgresjs.instrumentPostgresJsSql;
90
+ exports.applyHonoPatches = applyPatches.applyHonoPatches;
91
+ exports.earlyPatchHono = applyPatches.earlyPatchHono;
92
+ exports.createHonoRequestMiddleware = createHonoMiddleware.createHonoRequestMiddleware;
82
93
  exports.detectOrchestrionSetup = detect.detectOrchestrionSetup;
83
94
  exports.attachKoaErrorHandler = koaErrorHandler.attachKoaErrorHandler;
84
95
  exports.bindTracingChannelToSpan = tracingChannel.bindTracingChannelToSpan;
85
96
  exports.orchestrionModuleInjected = moduleInjected.orchestrionModuleInjected;
97
+ exports.diagnosticsTracingChannel = diagnosticsChannel.tracingChannel;
98
+ exports.subscribeDiagnosticsChannel = diagnosticsChannel.subscribe;
86
99
  exports.eveConversationHook = eve.eveConversationHook;
87
100
  exports.eveIntegration = eve.eveIntegration;
88
101
  exports.getInstrumentedModuleNames = index$8.getInstrumentedModuleNames;
89
102
  exports.fastifyIntegration = index$5.fastifyIntegration;
90
103
  exports.setupFastifyErrorHandler = index$5.setupFastifyErrorHandler;
91
- exports.prismaIntegration = index$m.prismaIntegration;
104
+ exports.prismaIntegration = index$n.prismaIntegration;
92
105
  exports.amqplibIntegration = amqplib.amqplibIntegration;
93
106
  exports.anthropicAIIntegration = anthropic.anthropicAIIntegration;
94
107
  exports.awsIntegration = index$1.awsIntegration;
@@ -97,27 +110,31 @@ exports.genericPoolIntegration = genericPool.genericPoolIntegration;
97
110
  exports.googleGenAIIntegration = googleGenai.googleGenAIIntegration;
98
111
  exports.graphqlIntegration = index$9.graphqlIntegration;
99
112
  exports.hapiIntegration = index$a.hapiIntegration;
100
- exports.koaIntegration = index$i.koaIntegration;
101
- exports.redisIntegration = index$n.redisIntegration;
102
- exports.kafkaIntegration = index$h.kafkaIntegration;
113
+ exports.honoIntegration = honoIntegration.honoIntegration;
114
+ exports.honoMiddleware = honoIntegration.honoMiddleware;
115
+ exports.koaIntegration = index$j.koaIntegration;
116
+ exports.redisIntegration = index$o.redisIntegration;
117
+ exports.kafkaIntegration = index$i.kafkaIntegration;
103
118
  exports.knexIntegration = knex.knexIntegration;
104
119
  exports.langChainIntegration = langchain.langChainIntegration;
105
120
  exports.langGraphIntegration = langgraph.langGraphIntegration;
106
121
  exports.flueIntegration = flue.flueIntegration;
107
122
  exports.mastraIntegration = mastra.mastraIntegration;
123
+ exports.mcpServerIntegration = mcpServer.mcpServerIntegration;
108
124
  exports.lruMemoizerIntegration = lruMemoizer.lruMemoizerIntegration;
109
- exports.mongoIntegration = index$j.mongoIntegration;
110
- exports.mongooseIntegration = index$k.mongooseIntegration;
125
+ exports.mongoIntegration = index$k.mongoIntegration;
126
+ exports.mongooseIntegration = index$l.mongooseIntegration;
111
127
  exports.mistralAIIntegration = mistral.mistralAIIntegration;
112
128
  exports.groqIntegration = groq.groqIntegration;
113
129
  exports.togetherAIIntegration = togetherAi.togetherAIIntegration;
130
+ exports.typesafeIntegration = typesafe.typesafeIntegration;
114
131
  exports.mysqlIntegration = mysql.mysqlIntegration;
115
- exports.mysql2Integration = index$l.mysql2Integration;
132
+ exports.mysql2Integration = index$m.mysql2Integration;
116
133
  exports.openAIIntegration = openai.openAIIntegration;
117
134
  exports.postgresIntegration = postgres.postgresIntegration;
118
135
  exports.postgresJsIntegration = postgresJs.postgresJsIntegration;
119
136
  exports.tediousIntegration = tedious.tediousIntegration;
120
- exports.vercelAIIntegration = index$o.vercelAIIntegration;
137
+ exports.vercelAIIntegration = index$p.vercelAIIntegration;
121
138
  exports.expressIntegration = index$4.expressIntegration;
122
139
  exports.expressErrorHandler = errorHandler.expressErrorHandler;
123
140
  exports.setupExpressErrorHandler = errorHandler.setupExpressErrorHandler;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["export * from './exports';\n\n// Exports using diagnostics channels\nexport { detectOrchestrionSetup } from './orchestrion/detect';\n// oxlint-disable-next-line typescript/no-deprecated -- re-exported so the deprecated `setupKoaErrorHandler` can delegate\nexport { attachKoaErrorHandler } from './integrations/koa/koa-error-handler';\nimport { attachHapiErrorHandler as _attachHapiErrorHandler } from './integrations/hapi/hapi-error-handler';\nexport { bindTracingChannelToSpan } from './tracing-channel';\nexport type { TracingChannelPayloadWithSpan } from './tracing-channel';\nexport type { InstrumentationConfig } from './orchestrion/apmTypes';\n// Runtime target of the bundler-injected module snippet. The snippet imports it\n// from this entry alongside the module's subscriber factory (see\n// `orchestrion/bundler/moduleInjectedTransform.ts`); it is a plain runtime\n// helper with no orchestrion build-time dependency.\nexport { orchestrionModuleInjected } from './utils/moduleInjected';\nexport { eveConversationHook, eveIntegration } from './eve';\nexport { getInstrumentedModuleNames } from './orchestrion/config';\nexport {\n fastifyIntegration,\n // oxlint-disable-next-line typescript/no-deprecated\n setupFastifyErrorHandler,\n} from './integrations/fastify';\n\n/**\n * @deprecated This is a temporary export to avoid breaking changes. It will be removed in the next major version.\n */\nexport const attachHapiErrorHandler = _attachHapiErrorHandler;\n\n// Integrations\nexport { prismaIntegration } from './integrations/prisma';\nexport { amqplibIntegration } from './integrations/amqplib';\nexport { anthropicAIIntegration } from './integrations/anthropic';\nexport { awsIntegration } from './integrations/aws-sdk';\nexport { dataloaderIntegration } from './integrations/dataloader';\nexport { genericPoolIntegration } from './integrations/generic-pool';\nexport { googleGenAIIntegration } from './integrations/google-genai';\nexport { graphqlIntegration } from './integrations/graphql';\nexport { hapiIntegration } from './integrations/hapi';\nexport { koaIntegration } from './integrations/koa';\nexport { redisIntegration } from './integrations/redis';\nexport { kafkaIntegration } from './integrations/kafkajs';\nexport { knexIntegration } from './integrations/knex';\nexport { langChainIntegration } from './integrations/langchain';\nexport { langGraphIntegration } from './integrations/langgraph';\nexport { createFlueInstrumentation } from './ai/flue';\nexport { flueIntegration } from './integrations/flue';\nexport type { FlueOptions } from './ai/flue';\nexport { mastraIntegration } from './integrations/mastra';\nexport { SentryMastraExporter } from './ai/mastra';\nexport { lruMemoizerIntegration } from './integrations/lru-memoizer';\nexport { mongoIntegration } from './integrations/mongodb';\nexport { mongooseIntegration } from './integrations/mongoose';\nexport { mistralAIIntegration } from './integrations/mistral';\nexport { groqIntegration } from './integrations/groq';\nexport { togetherAIIntegration } from './integrations/together-ai';\nexport { mysqlIntegration } from './integrations/mysql';\nexport { mysql2Integration } from './integrations/mysql2';\nexport { openAIIntegration } from './integrations/openai';\nexport { postgresIntegration } from './integrations/postgres';\nexport { postgresJsIntegration } from './integrations/postgres-js';\nexport { tediousIntegration } from './integrations/tedious';\nexport { vercelAIIntegration } from './integrations/vercel-ai';\nexport { expressIntegration } from './integrations/express';\nexport type { ExpressIntegrationOptions } from './integrations/express/types';\n/* oxlint-disable typescript/no-deprecated -- deprecated Express error-handler exports, kept until the next major */\nexport { expressErrorHandler, setupExpressErrorHandler } from './integrations/express/error-handler';\n/* oxlint-enable typescript/no-deprecated */\nexport { firebaseIntegration } from './integrations/firebase';\n\nexport { getTracingIntegrations, getErrorIntegrations } from './integrations';\n"],"names":["_attachHapiErrorHandler"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,sBAAA,CAAA,CAAA,CAAyBA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["export * from './exports';\n\n// Exports using diagnostics channels\nexport { detectOrchestrionSetup } from './orchestrion/detect';\n// oxlint-disable-next-line typescript/no-deprecated -- re-exported so the deprecated `setupKoaErrorHandler` can delegate\nexport { attachKoaErrorHandler } from './integrations/koa/koa-error-handler';\nimport { attachHapiErrorHandler as _attachHapiErrorHandler } from './integrations/hapi/hapi-error-handler';\nexport { bindTracingChannelToSpan } from './tracing-channel';\nexport type { TracingChannelPayloadWithSpan } from './tracing-channel';\nexport type { InstrumentationConfig } from './orchestrion/apmTypes';\n// Runtime target of the bundler-injected module snippet. The snippet imports it\n// from this entry alongside the module's subscriber factory (see\n// `orchestrion/bundler/moduleInjectedTransform.ts`); it is a plain runtime\n// helper with no orchestrion build-time dependency.\nexport { orchestrionModuleInjected } from './utils/moduleInjected';\nexport {\n subscribe as subscribeDiagnosticsChannel,\n tracingChannel as diagnosticsTracingChannel,\n} from './utils/diagnosticsChannel';\nexport { eveConversationHook, eveIntegration } from './eve';\nexport { getInstrumentedModuleNames } from './orchestrion/config';\nexport {\n fastifyIntegration,\n // oxlint-disable-next-line typescript/no-deprecated\n setupFastifyErrorHandler,\n} from './integrations/fastify';\n\n/**\n * @deprecated This is a temporary export to avoid breaking changes. It will be removed in the next major version.\n */\nexport const attachHapiErrorHandler = _attachHapiErrorHandler;\n\n// Integrations\nexport { prismaIntegration } from './integrations/prisma';\nexport { amqplibIntegration } from './integrations/amqplib';\nexport { anthropicAIIntegration } from './integrations/anthropic';\nexport { awsIntegration } from './integrations/aws-sdk';\nexport { dataloaderIntegration } from './integrations/dataloader';\nexport { genericPoolIntegration } from './integrations/generic-pool';\nexport { googleGenAIIntegration } from './integrations/google-genai';\nexport { graphqlIntegration } from './integrations/graphql';\nexport { hapiIntegration } from './integrations/hapi';\nexport { honoIntegration, honoMiddleware } from './integrations/hono';\nexport type { HonoIntegrationOptions } from './integrations/hono';\nexport { koaIntegration } from './integrations/koa';\nexport { redisIntegration } from './integrations/redis';\nexport { kafkaIntegration } from './integrations/kafkajs';\nexport { knexIntegration } from './integrations/knex';\nexport { langChainIntegration } from './integrations/langchain';\nexport { langGraphIntegration } from './integrations/langgraph';\nexport { createFlueInstrumentation } from './ai/flue';\nexport { flueIntegration } from './integrations/flue';\nexport type { FlueOptions } from './ai/flue';\nexport { mastraIntegration } from './integrations/mastra';\nexport { mcpServerIntegration } from './integrations/mcp-server';\nexport { SentryMastraExporter } from './ai/mastra';\nexport { lruMemoizerIntegration } from './integrations/lru-memoizer';\nexport { mongoIntegration } from './integrations/mongodb';\nexport { mongooseIntegration } from './integrations/mongoose';\nexport { mistralAIIntegration } from './integrations/mistral';\nexport { groqIntegration } from './integrations/groq';\nexport { togetherAIIntegration } from './integrations/together-ai';\nexport { typesafeIntegration } from './integrations/typesafe';\nexport { mysqlIntegration } from './integrations/mysql';\nexport { mysql2Integration } from './integrations/mysql2';\nexport { openAIIntegration } from './integrations/openai';\nexport { postgresIntegration } from './integrations/postgres';\nexport { postgresJsIntegration } from './integrations/postgres-js';\nexport { tediousIntegration } from './integrations/tedious';\nexport { vercelAIIntegration } from './integrations/vercel-ai';\nexport { expressIntegration } from './integrations/express';\nexport type { ExpressIntegrationOptions } from './integrations/express/types';\n/* oxlint-disable typescript/no-deprecated -- deprecated Express error-handler exports, kept until the next major */\nexport { expressErrorHandler, setupExpressErrorHandler } from './integrations/express/error-handler';\n/* oxlint-enable typescript/no-deprecated */\nexport { firebaseIntegration } from './integrations/firebase';\n\nexport { getTracingIntegrations, getErrorIntegrations } from './integrations';\n"],"names":["_attachHapiErrorHandler"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,sBAAA,CAAA,CAAA,CAAyBA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -7,13 +7,16 @@ const index$7 = require('./ai/openai/index.js');
7
7
  const index$3 = require('./ai/anthropic-ai/index.js');
8
8
  const index$5 = require('./ai/google-genai/index.js');
9
9
  const index$6 = require('./ai/mistral/index.js');
10
- const index$8 = require('./ai/workers-ai/index.js');
10
+ const index$8 = require('./ai/typesafe/index.js');
11
+ const index$9 = require('./ai/workers-ai/index.js');
11
12
  const index$2 = require('./ai/langchain/index.js');
12
13
  const index$4 = require('./ai/langgraph/index.js');
13
14
  const index = require('./ai/mastra/index.js');
14
15
  const index$1 = require('./ai/flue/index.js');
15
16
  const sql = require('./utils/sql.js');
16
17
  const postgresjs = require('./integrations/postgresjs.js');
18
+ const applyPatches = require('./integrations/hono/applyPatches.js');
19
+ const createHonoMiddleware = require('./integrations/hono/createHonoMiddleware.js');
17
20
  const embeddings = require('./ai/langchain/embeddings.js');
18
21
 
19
22
 
@@ -26,7 +29,8 @@ exports.instrumentOpenAiClient = index$7.instrumentOpenAiClient;
26
29
  exports.instrumentAnthropicAiClient = index$3.instrumentAnthropicAiClient;
27
30
  exports.instrumentGoogleGenAIClient = index$5.instrumentGoogleGenAIClient;
28
31
  exports.instrumentMistralAiClient = index$6.instrumentMistralAiClient;
29
- exports.instrumentWorkersAiClient = index$8.instrumentWorkersAiClient;
32
+ exports.instrumentTypeSafeClient = index$8.instrumentTypeSafeClient;
33
+ exports.instrumentWorkersAiClient = index$9.instrumentWorkersAiClient;
30
34
  exports.createLangChainCallbackHandler = index$2.createLangChainCallbackHandler;
31
35
  exports.instrumentCreateReactAgent = index$4.instrumentCreateReactAgent;
32
36
  exports.instrumentStateGraph = index$4.instrumentStateGraph;
@@ -37,5 +41,8 @@ exports.getSqlQuerySummary = sql.getSqlQuerySummary;
37
41
  exports.sanitizeSqlQuery = sql.sanitizeSqlQuery;
38
42
  exports.sanitizeSqlQueryWithSummary = sql.sanitizeSqlQueryWithSummary;
39
43
  exports.instrumentPostgresJsSql = postgresjs.instrumentPostgresJsSql;
44
+ exports.applyHonoPatches = applyPatches.applyHonoPatches;
45
+ exports.earlyPatchHono = applyPatches.earlyPatchHono;
46
+ exports.createHonoRequestMiddleware = createHonoMiddleware.createHonoRequestMiddleware;
40
47
  exports.instrumentLangChainEmbeddings = embeddings.instrumentLangChainEmbeddings;
41
48
  //# sourceMappingURL=index.no-diagnostic-channels.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.no-diagnostic-channels.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.no-diagnostic-channels.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
 
3
- const diagnosticsChannel = require('node:diagnostics_channel');
3
+ const diagnosticsChannel = require('../utils/diagnosticsChannel.js');
4
4
  const core = require('@sentry/core');
5
5
  const attributes = require('@sentry/conventions/attributes');
6
6
  const op = require('@sentry/conventions/op');
@@ -9,19 +9,6 @@ const instrumentation = require('../orchestrion/instrumentation.js');
9
9
  const channels = require('../orchestrion/channels.js');
10
10
  const tracingChannel = require('../tracing-channel.js');
11
11
 
12
- function _interopNamespaceDefault(e) {
13
- const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
14
- if (e) {
15
- for (const k in e) {
16
- n[k] = e[k];
17
- }
18
- }
19
- n.default = e;
20
- return n;
21
- }
22
-
23
- const diagnosticsChannel__namespace = /*#__PURE__*/_interopNamespaceDefault(diagnosticsChannel);
24
-
25
12
  const INTEGRATION_NAME = "Amqplib";
26
13
  const PUBLISHER_ORIGIN = "auto.amqplib.publisher";
27
14
  const CONSUMER_ORIGIN = "auto.amqplib.consumer";
@@ -65,7 +52,7 @@ function instrumentAmqplib() {
65
52
  subscribeSettle();
66
53
  }
67
54
  function subscribePublish() {
68
- tracingChannel.bindTracingChannelToSpan(diagnosticsChannel__namespace.tracingChannel(channels.CHANNELS.AMQPLIB_PUBLISH), (data) => {
55
+ tracingChannel.bindTracingChannelToSpan(diagnosticsChannel.tracingChannel(channels.CHANNELS.AMQPLIB_PUBLISH), (data) => {
69
56
  if (data.self?.[CHANNEL_IS_CONFIRM_PUBLISHING]) {
70
57
  return void 0;
71
58
  }
@@ -73,7 +60,7 @@ function subscribePublish() {
73
60
  });
74
61
  }
75
62
  function subscribeConfirmPublish() {
76
- const channel = diagnosticsChannel__namespace.tracingChannel(channels.CHANNELS.AMQPLIB_CONFIRM_PUBLISH);
63
+ const channel = diagnosticsChannel.tracingChannel(channels.CHANNELS.AMQPLIB_CONFIRM_PUBLISH);
77
64
  tracingChannel.bindTracingChannelToSpan(channel, (data) => {
78
65
  if (data.self) {
79
66
  data.self[CHANNEL_IS_CONFIRM_PUBLISHING] = true;
@@ -88,7 +75,7 @@ function subscribeConfirmPublish() {
88
75
  });
89
76
  }
90
77
  function subscribeConsume() {
91
- const channel = diagnosticsChannel__namespace.tracingChannel(channels.CHANNELS.AMQPLIB_CONSUME);
78
+ const channel = diagnosticsChannel.tracingChannel(channels.CHANNELS.AMQPLIB_CONSUME);
92
79
  channel.start.subscribe(NOOP);
93
80
  channel.asyncEnd.subscribe((message) => {
94
81
  const data = message;
@@ -107,7 +94,7 @@ function subscribeConsume() {
107
94
  }
108
95
  function subscribeDispatch() {
109
96
  tracingChannel.bindTracingChannelToSpan(
110
- diagnosticsChannel__namespace.tracingChannel(channels.CHANNELS.AMQPLIB_DISPATCH),
97
+ diagnosticsChannel.tracingChannel(channels.CHANNELS.AMQPLIB_DISPATCH),
111
98
  (data) => {
112
99
  const channel = data.self;
113
100
  const fields = data.arguments[0];
@@ -141,16 +128,16 @@ function subscribeDispatch() {
141
128
  );
142
129
  }
143
130
  function subscribeSettle() {
144
- diagnosticsChannel__namespace.tracingChannel(channels.CHANNELS.AMQPLIB_ACK).start.subscribe((message) => handleAck(message, false, END_OP.Ack));
145
- diagnosticsChannel__namespace.tracingChannel(channels.CHANNELS.AMQPLIB_NACK).start.subscribe((message) => handleAck(message, true, END_OP.Nack));
146
- diagnosticsChannel__namespace.tracingChannel(channels.CHANNELS.AMQPLIB_REJECT).start.subscribe((message) => handleAck(message, true, END_OP.Reject));
147
- diagnosticsChannel__namespace.tracingChannel(channels.CHANNELS.AMQPLIB_ACK_ALL).start.subscribe((message) => {
131
+ diagnosticsChannel.tracingChannel(channels.CHANNELS.AMQPLIB_ACK).start.subscribe((message) => handleAck(message, false, END_OP.Ack));
132
+ diagnosticsChannel.tracingChannel(channels.CHANNELS.AMQPLIB_NACK).start.subscribe((message) => handleAck(message, true, END_OP.Nack));
133
+ diagnosticsChannel.tracingChannel(channels.CHANNELS.AMQPLIB_REJECT).start.subscribe((message) => handleAck(message, true, END_OP.Reject));
134
+ diagnosticsChannel.tracingChannel(channels.CHANNELS.AMQPLIB_ACK_ALL).start.subscribe((message) => {
148
135
  const data = message;
149
136
  if (data.self) {
150
137
  endAllSpansOnChannel(data.self, false, END_OP.AckAll, void 0);
151
138
  }
152
139
  });
153
- diagnosticsChannel__namespace.tracingChannel(channels.CHANNELS.AMQPLIB_NACK_ALL).start.subscribe((message) => {
140
+ diagnosticsChannel.tracingChannel(channels.CHANNELS.AMQPLIB_NACK_ALL).start.subscribe((message) => {
154
141
  const data = message;
155
142
  if (data.self) {
156
143
  endAllSpansOnChannel(data.self, true, END_OP.NackAll, data.arguments[0]);
@@ -158,7 +145,7 @@ function subscribeSettle() {
158
145
  });
159
146
  }
160
147
  function subscribeConnect() {
161
- const channel = diagnosticsChannel__namespace.tracingChannel(channels.CHANNELS.AMQPLIB_CONNECT);
148
+ const channel = diagnosticsChannel.tracingChannel(channels.CHANNELS.AMQPLIB_CONNECT);
162
149
  channel.start.subscribe(NOOP);
163
150
  channel.asyncEnd.subscribe((message) => {
164
151
  const data = message;