@sentry/server-utils 11.10.0 → 11.12.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 (550) hide show
  1. package/LICENSE +31 -0
  2. package/build/THIRD-PARTY-LICENSES.txt +34 -34
  3. package/build/cjs/ai/anthropic-ai/streaming.js +4 -1
  4. package/build/cjs/ai/anthropic-ai/streaming.js.map +1 -1
  5. package/build/cjs/ai/anthropic-ai/tool-runner.js +49 -1
  6. package/build/cjs/ai/anthropic-ai/tool-runner.js.map +1 -1
  7. package/build/cjs/ai/anthropic-ai/utils.js +8 -1
  8. package/build/cjs/ai/anthropic-ai/utils.js.map +1 -1
  9. package/build/cjs/ai/flue/index.js +5 -7
  10. package/build/cjs/ai/flue/index.js.map +1 -1
  11. package/build/cjs/ai/flue/utils.js +4 -4
  12. package/build/cjs/ai/flue/utils.js.map +1 -1
  13. package/build/cjs/ai/google-genai/index.js +6 -1
  14. package/build/cjs/ai/google-genai/index.js.map +1 -1
  15. package/build/cjs/ai/google-genai/streaming.js +4 -1
  16. package/build/cjs/ai/google-genai/streaming.js.map +1 -1
  17. package/build/cjs/ai/langchain/utils.js +11 -10
  18. package/build/cjs/ai/langchain/utils.js.map +1 -1
  19. package/build/cjs/ai/langgraph/agent-span.js +94 -0
  20. package/build/cjs/ai/langgraph/agent-span.js.map +1 -0
  21. package/build/cjs/ai/langgraph/index.js +79 -119
  22. package/build/cjs/ai/langgraph/index.js.map +1 -1
  23. package/build/cjs/ai/langgraph/stream.js +117 -0
  24. package/build/cjs/ai/langgraph/stream.js.map +1 -0
  25. package/build/cjs/ai/langgraph/utils.js +1 -1
  26. package/build/cjs/ai/langgraph/utils.js.map +1 -1
  27. package/build/cjs/ai/mastra/utils.js.map +1 -1
  28. package/build/cjs/ai/openai/streaming.js +3 -0
  29. package/build/cjs/ai/openai/streaming.js.map +1 -1
  30. package/build/cjs/ai/pi-durable/index.js +1 -1
  31. package/build/cjs/ai/pi-durable/index.js.map +1 -1
  32. package/build/cjs/ai/pi-durable/models.js +6 -6
  33. package/build/cjs/ai/pi-durable/models.js.map +1 -1
  34. package/build/cjs/ai/pi-durable/tools.js +2 -2
  35. package/build/cjs/ai/pi-durable/tools.js.map +1 -1
  36. package/build/cjs/ai/typesafe/index.js +1 -1
  37. package/build/cjs/ai/typesafe/index.js.map +1 -1
  38. package/build/cjs/index.js +29 -15
  39. package/build/cjs/index.js.map +1 -1
  40. package/build/cjs/index.no-diagnostic-channels.js +8 -5
  41. package/build/cjs/index.no-diagnostic-channels.js.map +1 -1
  42. package/build/cjs/index.request-handler.js +8 -0
  43. package/build/cjs/index.request-handler.js.map +1 -0
  44. package/build/cjs/integrations/amqplib.js +4 -6
  45. package/build/cjs/integrations/amqplib.js.map +1 -1
  46. package/build/cjs/integrations/anthropic.js +8 -0
  47. package/build/cjs/integrations/anthropic.js.map +1 -1
  48. package/build/cjs/integrations/aws-sdk/index.js +1 -0
  49. package/build/cjs/integrations/aws-sdk/index.js.map +1 -1
  50. package/build/cjs/integrations/aws-sdk/services/bedrock-runtime.js +105 -52
  51. package/build/cjs/integrations/aws-sdk/services/bedrock-runtime.js.map +1 -1
  52. package/build/cjs/integrations/cron.js +49 -0
  53. package/build/cjs/integrations/cron.js.map +1 -0
  54. package/build/cjs/integrations/dataloader.js +2 -5
  55. package/build/cjs/integrations/dataloader.js.map +1 -1
  56. package/build/cjs/integrations/express/instrumentation.js +1 -1
  57. package/build/cjs/integrations/express/instrumentation.js.map +1 -1
  58. package/build/cjs/integrations/firebase/firestore.js +1 -0
  59. package/build/cjs/integrations/firebase/firestore.js.map +1 -1
  60. package/build/cjs/integrations/google-genai.js +9 -3
  61. package/build/cjs/integrations/google-genai.js.map +1 -1
  62. package/build/cjs/integrations/graphql/constants.js +0 -2
  63. package/build/cjs/integrations/graphql/constants.js.map +1 -1
  64. package/build/cjs/integrations/graphql/graphql-dc-subscriber.js +4 -4
  65. package/build/cjs/integrations/graphql/graphql-dc-subscriber.js.map +1 -1
  66. package/build/cjs/integrations/graphql/resolvers.js +1 -1
  67. package/build/cjs/integrations/graphql/resolvers.js.map +1 -1
  68. package/build/cjs/integrations/graphql/spans.js +3 -3
  69. package/build/cjs/integrations/graphql/spans.js.map +1 -1
  70. package/build/cjs/integrations/hono/constants.js +2 -0
  71. package/build/cjs/integrations/hono/constants.js.map +1 -1
  72. package/build/cjs/integrations/hono/createHonoMiddleware.js +2 -3
  73. package/build/cjs/integrations/hono/createHonoMiddleware.js.map +1 -1
  74. package/build/cjs/integrations/hono/honoIntegration.js +12 -12
  75. package/build/cjs/integrations/hono/honoIntegration.js.map +1 -1
  76. package/build/cjs/integrations/hono/matchResult.js +67 -0
  77. package/build/cjs/integrations/hono/matchResult.js.map +1 -1
  78. package/build/cjs/integrations/hono/middlewareHandlers.js +15 -5
  79. package/build/cjs/integrations/hono/middlewareHandlers.js.map +1 -1
  80. package/build/cjs/integrations/hono/patchAppRequest.js +2 -6
  81. package/build/cjs/integrations/hono/patchAppRequest.js.map +1 -1
  82. package/build/cjs/integrations/hono/patchRoute.js +2 -6
  83. package/build/cjs/integrations/hono/patchRoute.js.map +1 -1
  84. package/build/cjs/integrations/hono/resolveRouteName.js +16 -18
  85. package/build/cjs/integrations/hono/resolveRouteName.js.map +1 -1
  86. package/build/cjs/integrations/hono/sentryOriginalTraps.js +21 -0
  87. package/build/cjs/integrations/hono/sentryOriginalTraps.js.map +1 -0
  88. package/build/cjs/integrations/hono/wrapMiddlewareSpan.js +4 -8
  89. package/build/cjs/integrations/hono/wrapMiddlewareSpan.js.map +1 -1
  90. package/build/cjs/integrations/index.js +6 -6
  91. package/build/cjs/integrations/index.js.map +1 -1
  92. package/build/cjs/integrations/kafkajs/consumer.js +3 -3
  93. package/build/cjs/integrations/kafkajs/consumer.js.map +1 -1
  94. package/build/cjs/integrations/kafkajs/semconv.js +0 -8
  95. package/build/cjs/integrations/kafkajs/semconv.js.map +1 -1
  96. package/build/cjs/integrations/kafkajs/spans.js +6 -6
  97. package/build/cjs/integrations/kafkajs/spans.js.map +1 -1
  98. package/build/cjs/integrations/knex.js +3 -33
  99. package/build/cjs/integrations/knex.js.map +1 -1
  100. package/build/cjs/integrations/langgraph.js +6 -20
  101. package/build/cjs/integrations/langgraph.js.map +1 -1
  102. package/build/cjs/integrations/mongodb/index.js +21 -31
  103. package/build/cjs/integrations/mongodb/index.js.map +1 -1
  104. package/build/cjs/integrations/mongodb/mongodb-span.js +3 -2
  105. package/build/cjs/integrations/mongodb/mongodb-span.js.map +1 -1
  106. package/build/cjs/integrations/mysql.js +14 -20
  107. package/build/cjs/integrations/mysql.js.map +1 -1
  108. package/build/cjs/integrations/mysql2/index.js +12 -23
  109. package/build/cjs/integrations/mysql2/index.js.map +1 -1
  110. package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js +26 -42
  111. package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
  112. package/build/cjs/integrations/neon.js +27 -27
  113. package/build/cjs/integrations/neon.js.map +1 -1
  114. package/build/cjs/integrations/nitro/captureStorageEvents.js +3 -3
  115. package/build/cjs/integrations/nitro/captureStorageEvents.js.map +1 -1
  116. package/build/cjs/integrations/nitro/captureTracingEvents.js +1 -1
  117. package/build/cjs/integrations/nitro/captureTracingEvents.js.map +1 -1
  118. package/build/cjs/integrations/node-cron.js +68 -0
  119. package/build/cjs/integrations/node-cron.js.map +1 -0
  120. package/build/cjs/integrations/node-schedule.js +76 -0
  121. package/build/cjs/integrations/node-schedule.js.map +1 -0
  122. package/build/cjs/integrations/{postgres.js → pg.js} +13 -21
  123. package/build/cjs/integrations/pg.js.map +1 -0
  124. package/build/cjs/integrations/postgresjs/index.js +147 -0
  125. package/build/cjs/integrations/postgresjs/index.js.map +1 -0
  126. package/build/cjs/integrations/postgresjs/postgresjs-dc-subscriber.js +81 -0
  127. package/build/cjs/integrations/postgresjs/postgresjs-dc-subscriber.js.map +1 -0
  128. package/build/cjs/integrations/{postgresjs.js → postgresjs-wrapper.js} +66 -73
  129. package/build/cjs/integrations/postgresjs-wrapper.js.map +1 -0
  130. package/build/cjs/integrations/prisma/orchestrion.js +2 -5
  131. package/build/cjs/integrations/prisma/orchestrion.js.map +1 -1
  132. package/build/cjs/integrations/prisma/tracing-helper.js +15 -13
  133. package/build/cjs/integrations/prisma/tracing-helper.js.map +1 -1
  134. package/build/cjs/integrations/redis/ioredis-channel-subscriber.js +13 -17
  135. package/build/cjs/integrations/redis/ioredis-channel-subscriber.js.map +1 -1
  136. package/build/cjs/integrations/serveTunnel.js +33 -0
  137. package/build/cjs/integrations/serveTunnel.js.map +1 -0
  138. package/build/cjs/integrations/tedious.js +9 -6
  139. package/build/cjs/integrations/tedious.js.map +1 -1
  140. package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js +47 -14
  141. package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  142. package/build/cjs/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js +1 -1
  143. package/build/cjs/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
  144. package/build/cjs/orchestrion/bundler/load-hook.js +2 -2
  145. package/build/cjs/orchestrion/bundler/load-hook.js.map +1 -1
  146. package/build/cjs/orchestrion/bundler/options.js.map +1 -1
  147. package/build/cjs/orchestrion/bundler/rollup.js +2 -2
  148. package/build/cjs/orchestrion/bundler/vite.js +86 -27
  149. package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
  150. package/build/cjs/orchestrion/bundler/webpack.js +1 -1
  151. package/build/cjs/orchestrion/bundler/webpack.js.map +1 -1
  152. package/build/cjs/orchestrion/channels.js +6 -0
  153. package/build/cjs/orchestrion/channels.js.map +1 -1
  154. package/build/cjs/orchestrion/config/anthropic-ai.js +6 -5
  155. package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -1
  156. package/build/cjs/orchestrion/config/cron.js +26 -0
  157. package/build/cjs/orchestrion/config/cron.js.map +1 -0
  158. package/build/cjs/orchestrion/config/index.js +6 -0
  159. package/build/cjs/orchestrion/config/index.js.map +1 -1
  160. package/build/cjs/orchestrion/config/mistral.js +1 -1
  161. package/build/cjs/orchestrion/config/mistral.js.map +1 -1
  162. package/build/cjs/orchestrion/config/nestjs.js +8 -0
  163. package/build/cjs/orchestrion/config/nestjs.js.map +1 -1
  164. package/build/cjs/orchestrion/config/node-cron.js +53 -0
  165. package/build/cjs/orchestrion/config/node-cron.js.map +1 -0
  166. package/build/cjs/orchestrion/config/node-schedule.js +29 -0
  167. package/build/cjs/orchestrion/config/node-schedule.js.map +1 -0
  168. package/build/cjs/orchestrion/config/postgres.js +5 -1
  169. package/build/cjs/orchestrion/config/postgres.js.map +1 -1
  170. package/build/cjs/orchestrion/detect.js +16 -3
  171. package/build/cjs/orchestrion/detect.js.map +1 -1
  172. package/build/cjs/orchestrion/instrumentation.js +5 -5
  173. package/build/cjs/orchestrion/instrumentation.js.map +1 -1
  174. package/build/cjs/tracing-channel.js +3 -4
  175. package/build/cjs/tracing-channel.js.map +1 -1
  176. package/build/cjs/utils/cronMonitoring.js +160 -0
  177. package/build/cjs/utils/cronMonitoring.js.map +1 -0
  178. package/build/cjs/utils/diagnosticsChannel.js +2 -1
  179. package/build/cjs/utils/diagnosticsChannel.js.map +1 -1
  180. package/build/cjs/utils/monitorStream.js +27 -6
  181. package/build/cjs/utils/monitorStream.js.map +1 -1
  182. package/build/cjs/utils/runtime.js +19 -0
  183. package/build/cjs/utils/runtime.js.map +1 -0
  184. package/build/cjs/utils/sql.js +51 -5
  185. package/build/cjs/utils/sql.js.map +1 -1
  186. package/build/cjs/utils/tunnelServer.js +29 -0
  187. package/build/cjs/utils/tunnelServer.js.map +1 -0
  188. package/build/cjs/utils/wrapServerRequestHandler.js +66 -25
  189. package/build/cjs/utils/wrapServerRequestHandler.js.map +1 -1
  190. package/build/cjs/vendored/@apm-js-collab/code-transformer/index.js.map +1 -1
  191. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -1
  192. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -1
  193. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js +15 -15
  194. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -1
  195. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js +35 -7
  196. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -1
  197. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js +4 -4
  198. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js.map +1 -1
  199. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{core-dC9TN3Ev.js → core-Bd0h-mo3.js} +2 -2
  200. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{core-dC9TN3Ev.js.map → core-Bd0h-mo3.js.map} +1 -1
  201. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js +3 -3
  202. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -1
  203. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -1
  204. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{rollup-OTS4ktWb.js → rollup-DCG8HLmh.js} +7 -13
  205. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-DCG8HLmh.js.map +1 -0
  206. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js +2 -2
  207. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -1
  208. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js +1 -1
  209. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +1 -1
  210. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -1
  211. package/build/esm/ai/anthropic-ai/streaming.js +5 -2
  212. package/build/esm/ai/anthropic-ai/streaming.js.map +1 -1
  213. package/build/esm/ai/anthropic-ai/tool-runner.js +52 -4
  214. package/build/esm/ai/anthropic-ai/tool-runner.js.map +1 -1
  215. package/build/esm/ai/anthropic-ai/utils.js +9 -2
  216. package/build/esm/ai/anthropic-ai/utils.js.map +1 -1
  217. package/build/esm/ai/flue/index.js +4 -6
  218. package/build/esm/ai/flue/index.js.map +1 -1
  219. package/build/esm/ai/flue/utils.js +4 -4
  220. package/build/esm/ai/flue/utils.js.map +1 -1
  221. package/build/esm/ai/google-genai/index.js +6 -1
  222. package/build/esm/ai/google-genai/index.js.map +1 -1
  223. package/build/esm/ai/google-genai/streaming.js +4 -1
  224. package/build/esm/ai/google-genai/streaming.js.map +1 -1
  225. package/build/esm/ai/langchain/utils.js +11 -11
  226. package/build/esm/ai/langchain/utils.js.map +1 -1
  227. package/build/esm/ai/langgraph/agent-span.js +89 -0
  228. package/build/esm/ai/langgraph/agent-span.js.map +1 -0
  229. package/build/esm/ai/langgraph/index.js +73 -115
  230. package/build/esm/ai/langgraph/index.js.map +1 -1
  231. package/build/esm/ai/langgraph/stream.js +115 -0
  232. package/build/esm/ai/langgraph/stream.js.map +1 -0
  233. package/build/esm/ai/langgraph/utils.js +1 -1
  234. package/build/esm/ai/langgraph/utils.js.map +1 -1
  235. package/build/esm/ai/mastra/utils.js.map +1 -1
  236. package/build/esm/ai/openai/streaming.js +3 -0
  237. package/build/esm/ai/openai/streaming.js.map +1 -1
  238. package/build/esm/ai/pi-durable/index.js +1 -1
  239. package/build/esm/ai/pi-durable/index.js.map +1 -1
  240. package/build/esm/ai/pi-durable/models.js +6 -6
  241. package/build/esm/ai/pi-durable/models.js.map +1 -1
  242. package/build/esm/ai/pi-durable/tools.js +2 -2
  243. package/build/esm/ai/pi-durable/tools.js.map +1 -1
  244. package/build/esm/ai/typesafe/index.js +1 -1
  245. package/build/esm/ai/typesafe/index.js.map +1 -1
  246. package/build/esm/index.js +10 -5
  247. package/build/esm/index.js.map +1 -1
  248. package/build/esm/index.no-diagnostic-channels.js +3 -3
  249. package/build/esm/index.request-handler.js +2 -0
  250. package/build/esm/index.request-handler.js.map +1 -0
  251. package/build/esm/integrations/amqplib.js +5 -7
  252. package/build/esm/integrations/amqplib.js.map +1 -1
  253. package/build/esm/integrations/anthropic.js +8 -0
  254. package/build/esm/integrations/anthropic.js.map +1 -1
  255. package/build/esm/integrations/aws-sdk/index.js +1 -0
  256. package/build/esm/integrations/aws-sdk/index.js.map +1 -1
  257. package/build/esm/integrations/aws-sdk/services/bedrock-runtime.js +107 -54
  258. package/build/esm/integrations/aws-sdk/services/bedrock-runtime.js.map +1 -1
  259. package/build/esm/integrations/cron.js +46 -0
  260. package/build/esm/integrations/cron.js.map +1 -0
  261. package/build/esm/integrations/dataloader.js +2 -5
  262. package/build/esm/integrations/dataloader.js.map +1 -1
  263. package/build/esm/integrations/express/instrumentation.js +1 -1
  264. package/build/esm/integrations/express/instrumentation.js.map +1 -1
  265. package/build/esm/integrations/firebase/firestore.js +1 -0
  266. package/build/esm/integrations/firebase/firestore.js.map +1 -1
  267. package/build/esm/integrations/google-genai.js +9 -3
  268. package/build/esm/integrations/google-genai.js.map +1 -1
  269. package/build/esm/integrations/graphql/constants.js +1 -2
  270. package/build/esm/integrations/graphql/constants.js.map +1 -1
  271. package/build/esm/integrations/graphql/graphql-dc-subscriber.js +2 -2
  272. package/build/esm/integrations/graphql/resolvers.js +2 -2
  273. package/build/esm/integrations/graphql/spans.js +2 -2
  274. package/build/esm/integrations/hono/constants.js +2 -1
  275. package/build/esm/integrations/hono/constants.js.map +1 -1
  276. package/build/esm/integrations/hono/createHonoMiddleware.js +2 -2
  277. package/build/esm/integrations/hono/createHonoMiddleware.js.map +1 -1
  278. package/build/esm/integrations/hono/honoIntegration.js +13 -13
  279. package/build/esm/integrations/hono/honoIntegration.js.map +1 -1
  280. package/build/esm/integrations/hono/matchResult.js +65 -2
  281. package/build/esm/integrations/hono/matchResult.js.map +1 -1
  282. package/build/esm/integrations/hono/middlewareHandlers.js +17 -7
  283. package/build/esm/integrations/hono/middlewareHandlers.js.map +1 -1
  284. package/build/esm/integrations/hono/patchAppRequest.js +2 -6
  285. package/build/esm/integrations/hono/patchAppRequest.js.map +1 -1
  286. package/build/esm/integrations/hono/patchRoute.js +2 -6
  287. package/build/esm/integrations/hono/patchRoute.js.map +1 -1
  288. package/build/esm/integrations/hono/resolveRouteName.js +16 -18
  289. package/build/esm/integrations/hono/resolveRouteName.js.map +1 -1
  290. package/build/esm/integrations/hono/sentryOriginalTraps.js +19 -0
  291. package/build/esm/integrations/hono/sentryOriginalTraps.js.map +1 -0
  292. package/build/esm/integrations/hono/wrapMiddlewareSpan.js +3 -7
  293. package/build/esm/integrations/hono/wrapMiddlewareSpan.js.map +1 -1
  294. package/build/esm/integrations/index.js +2 -2
  295. package/build/esm/integrations/index.js.map +1 -1
  296. package/build/esm/integrations/kafkajs/consumer.js +5 -5
  297. package/build/esm/integrations/kafkajs/consumer.js.map +1 -1
  298. package/build/esm/integrations/kafkajs/semconv.js +1 -5
  299. package/build/esm/integrations/kafkajs/semconv.js.map +1 -1
  300. package/build/esm/integrations/kafkajs/spans.js +8 -8
  301. package/build/esm/integrations/kafkajs/spans.js.map +1 -1
  302. package/build/esm/integrations/knex.js +6 -36
  303. package/build/esm/integrations/knex.js.map +1 -1
  304. package/build/esm/integrations/langgraph.js +7 -21
  305. package/build/esm/integrations/langgraph.js.map +1 -1
  306. package/build/esm/integrations/mongodb/index.js +21 -31
  307. package/build/esm/integrations/mongodb/index.js.map +1 -1
  308. package/build/esm/integrations/mongodb/mongodb-span.js +4 -3
  309. package/build/esm/integrations/mongodb/mongodb-span.js.map +1 -1
  310. package/build/esm/integrations/mysql.js +17 -23
  311. package/build/esm/integrations/mysql.js.map +1 -1
  312. package/build/esm/integrations/mysql2/index.js +15 -26
  313. package/build/esm/integrations/mysql2/index.js.map +1 -1
  314. package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js +29 -45
  315. package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
  316. package/build/esm/integrations/neon.js +27 -27
  317. package/build/esm/integrations/neon.js.map +1 -1
  318. package/build/esm/integrations/nitro/captureStorageEvents.js +4 -4
  319. package/build/esm/integrations/nitro/captureStorageEvents.js.map +1 -1
  320. package/build/esm/integrations/nitro/captureTracingEvents.js +2 -2
  321. package/build/esm/integrations/nitro/captureTracingEvents.js.map +1 -1
  322. package/build/esm/integrations/node-cron.js +63 -0
  323. package/build/esm/integrations/node-cron.js.map +1 -0
  324. package/build/esm/integrations/node-schedule.js +70 -0
  325. package/build/esm/integrations/node-schedule.js.map +1 -0
  326. package/build/esm/integrations/{postgres.js → pg.js} +16 -24
  327. package/build/esm/integrations/pg.js.map +1 -0
  328. package/build/esm/integrations/postgresjs/index.js +145 -0
  329. package/build/esm/integrations/postgresjs/index.js.map +1 -0
  330. package/build/esm/integrations/postgresjs/postgresjs-dc-subscriber.js +76 -0
  331. package/build/esm/integrations/postgresjs/postgresjs-dc-subscriber.js.map +1 -0
  332. package/build/esm/integrations/{postgresjs.js → postgresjs-wrapper.js} +68 -76
  333. package/build/esm/integrations/postgresjs-wrapper.js.map +1 -0
  334. package/build/esm/integrations/prisma/orchestrion.js +2 -5
  335. package/build/esm/integrations/prisma/orchestrion.js.map +1 -1
  336. package/build/esm/integrations/prisma/tracing-helper.js +17 -15
  337. package/build/esm/integrations/prisma/tracing-helper.js.map +1 -1
  338. package/build/esm/integrations/redis/ioredis-channel-subscriber.js +13 -17
  339. package/build/esm/integrations/redis/ioredis-channel-subscriber.js.map +1 -1
  340. package/build/esm/integrations/serveTunnel.js +30 -0
  341. package/build/esm/integrations/serveTunnel.js.map +1 -0
  342. package/build/esm/integrations/tedious.js +11 -8
  343. package/build/esm/integrations/tedious.js.map +1 -1
  344. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +48 -15
  345. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  346. package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js +1 -1
  347. package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
  348. package/build/esm/orchestrion/bundler/load-hook.js +1 -1
  349. package/build/esm/orchestrion/bundler/options.js.map +1 -1
  350. package/build/esm/orchestrion/bundler/rollup.js +1 -1
  351. package/build/esm/orchestrion/bundler/vite.js +87 -28
  352. package/build/esm/orchestrion/bundler/vite.js.map +1 -1
  353. package/build/esm/orchestrion/bundler/webpack.js +1 -1
  354. package/build/esm/orchestrion/bundler/webpack.js.map +1 -1
  355. package/build/esm/orchestrion/channels.js +6 -0
  356. package/build/esm/orchestrion/channels.js.map +1 -1
  357. package/build/esm/orchestrion/config/anthropic-ai.js +6 -5
  358. package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
  359. package/build/esm/orchestrion/config/cron.js +22 -0
  360. package/build/esm/orchestrion/config/cron.js.map +1 -0
  361. package/build/esm/orchestrion/config/index.js +6 -0
  362. package/build/esm/orchestrion/config/index.js.map +1 -1
  363. package/build/esm/orchestrion/config/mistral.js +1 -1
  364. package/build/esm/orchestrion/config/mistral.js.map +1 -1
  365. package/build/esm/orchestrion/config/nestjs.js +8 -0
  366. package/build/esm/orchestrion/config/nestjs.js.map +1 -1
  367. package/build/esm/orchestrion/config/node-cron.js +49 -0
  368. package/build/esm/orchestrion/config/node-cron.js.map +1 -0
  369. package/build/esm/orchestrion/config/node-schedule.js +25 -0
  370. package/build/esm/orchestrion/config/node-schedule.js.map +1 -0
  371. package/build/esm/orchestrion/config/postgres.js +5 -1
  372. package/build/esm/orchestrion/config/postgres.js.map +1 -1
  373. package/build/esm/orchestrion/detect.js +15 -2
  374. package/build/esm/orchestrion/detect.js.map +1 -1
  375. package/build/esm/orchestrion/instrumentation.js +6 -6
  376. package/build/esm/orchestrion/instrumentation.js.map +1 -1
  377. package/build/esm/package.json +1 -1
  378. package/build/esm/tracing-channel.js +4 -5
  379. package/build/esm/tracing-channel.js.map +1 -1
  380. package/build/esm/utils/cronMonitoring.js +153 -0
  381. package/build/esm/utils/cronMonitoring.js.map +1 -0
  382. package/build/esm/utils/diagnosticsChannel.js +2 -1
  383. package/build/esm/utils/diagnosticsChannel.js.map +1 -1
  384. package/build/esm/utils/monitorStream.js +28 -7
  385. package/build/esm/utils/monitorStream.js.map +1 -1
  386. package/build/esm/utils/runtime.js +15 -0
  387. package/build/esm/utils/runtime.js.map +1 -0
  388. package/build/esm/utils/sql.js +48 -5
  389. package/build/esm/utils/sql.js.map +1 -1
  390. package/build/esm/utils/tunnelServer.js +27 -0
  391. package/build/esm/utils/tunnelServer.js.map +1 -0
  392. package/build/esm/utils/wrapServerRequestHandler.js +68 -27
  393. package/build/esm/utils/wrapServerRequestHandler.js.map +1 -1
  394. package/build/esm/vendored/@apm-js-collab/code-transformer/index.js.map +1 -1
  395. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -1
  396. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -1
  397. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js +15 -15
  398. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -1
  399. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js +35 -7
  400. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -1
  401. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js +1 -1
  402. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js.map +1 -1
  403. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{core-dC9TN3Ev.js → core-Bd0h-mo3.js} +2 -2
  404. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{core-dC9TN3Ev.js.map → core-Bd0h-mo3.js.map} +1 -1
  405. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js +1 -1
  406. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -1
  407. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -1
  408. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{rollup-OTS4ktWb.js → rollup-DCG8HLmh.js} +3 -9
  409. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-DCG8HLmh.js.map +1 -0
  410. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js +1 -1
  411. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -1
  412. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js +1 -1
  413. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +1 -1
  414. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -1
  415. package/build/types/ai/anthropic-ai/streaming.d.ts.map +1 -1
  416. package/build/types/ai/anthropic-ai/tool-runner.d.ts +1 -1
  417. package/build/types/ai/anthropic-ai/tool-runner.d.ts.map +1 -1
  418. package/build/types/ai/anthropic-ai/utils.d.ts.map +1 -1
  419. package/build/types/ai/flue/index.d.ts.map +1 -1
  420. package/build/types/ai/google-genai/index.d.ts.map +1 -1
  421. package/build/types/ai/google-genai/streaming.d.ts +1 -1
  422. package/build/types/ai/google-genai/streaming.d.ts.map +1 -1
  423. package/build/types/ai/langchain/utils.d.ts +6 -0
  424. package/build/types/ai/langchain/utils.d.ts.map +1 -1
  425. package/build/types/ai/langgraph/agent-span.d.ts +15 -0
  426. package/build/types/ai/langgraph/agent-span.d.ts.map +1 -0
  427. package/build/types/ai/langgraph/index.d.ts +7 -1
  428. package/build/types/ai/langgraph/index.d.ts.map +1 -1
  429. package/build/types/ai/langgraph/stream.d.ts +10 -0
  430. package/build/types/ai/langgraph/stream.d.ts.map +1 -0
  431. package/build/types/ai/langgraph/types.d.ts +1 -0
  432. package/build/types/ai/langgraph/types.d.ts.map +1 -1
  433. package/build/types/ai/mastra/utils.d.ts +1 -1
  434. package/build/types/ai/openai/streaming.d.ts.map +1 -1
  435. package/build/types/exports.d.ts +4 -5
  436. package/build/types/exports.d.ts.map +1 -1
  437. package/build/types/index.d.ts +10 -2
  438. package/build/types/index.d.ts.map +1 -1
  439. package/build/types/index.request-handler.d.ts +3 -0
  440. package/build/types/index.request-handler.d.ts.map +1 -0
  441. package/build/types/integrations/amqplib.d.ts.map +1 -1
  442. package/build/types/integrations/anthropic.d.ts.map +1 -1
  443. package/build/types/integrations/aws-sdk/index.d.ts.map +1 -1
  444. package/build/types/integrations/aws-sdk/services/bedrock-runtime.d.ts.map +1 -1
  445. package/build/types/integrations/aws-sdk/types.d.ts +2 -0
  446. package/build/types/integrations/aws-sdk/types.d.ts.map +1 -1
  447. package/build/types/integrations/cron.d.ts +16 -0
  448. package/build/types/integrations/cron.d.ts.map +1 -0
  449. package/build/types/integrations/dataloader.d.ts.map +1 -1
  450. package/build/types/integrations/firebase/firestore.d.ts.map +1 -1
  451. package/build/types/integrations/google-genai.d.ts.map +1 -1
  452. package/build/types/integrations/graphql/constants.d.ts +1 -1
  453. package/build/types/integrations/graphql/constants.d.ts.map +1 -1
  454. package/build/types/integrations/hono/constants.d.ts +1 -0
  455. package/build/types/integrations/hono/constants.d.ts.map +1 -1
  456. package/build/types/integrations/hono/createHonoMiddleware.d.ts +0 -1
  457. package/build/types/integrations/hono/createHonoMiddleware.d.ts.map +1 -1
  458. package/build/types/integrations/hono/honoIntegration.d.ts.map +1 -1
  459. package/build/types/integrations/hono/matchResult.d.ts +21 -4
  460. package/build/types/integrations/hono/matchResult.d.ts.map +1 -1
  461. package/build/types/integrations/hono/middlewareHandlers.d.ts +1 -2
  462. package/build/types/integrations/hono/middlewareHandlers.d.ts.map +1 -1
  463. package/build/types/integrations/hono/patchAppRequest.d.ts.map +1 -1
  464. package/build/types/integrations/hono/patchRoute.d.ts.map +1 -1
  465. package/build/types/integrations/hono/resolveRouteName.d.ts +4 -7
  466. package/build/types/integrations/hono/resolveRouteName.d.ts.map +1 -1
  467. package/build/types/integrations/hono/sentryOriginalTraps.d.ts +9 -0
  468. package/build/types/integrations/hono/sentryOriginalTraps.d.ts.map +1 -0
  469. package/build/types/integrations/hono/wrapMiddlewareSpan.d.ts.map +1 -1
  470. package/build/types/integrations/kafkajs/semconv.d.ts +1 -4
  471. package/build/types/integrations/kafkajs/semconv.d.ts.map +1 -1
  472. package/build/types/integrations/knex.d.ts.map +1 -1
  473. package/build/types/integrations/langgraph.d.ts.map +1 -1
  474. package/build/types/integrations/mongodb/index.d.ts.map +1 -1
  475. package/build/types/integrations/mongodb/mongodb-span.d.ts.map +1 -1
  476. package/build/types/integrations/mysql.d.ts.map +1 -1
  477. package/build/types/integrations/mysql2/index.d.ts.map +1 -1
  478. package/build/types/integrations/mysql2/mysql2-dc-subscriber.d.ts.map +1 -1
  479. package/build/types/integrations/neon.d.ts.map +1 -1
  480. package/build/types/integrations/nitro/captureStorageEvents.d.ts.map +1 -1
  481. package/build/types/integrations/node-cron.d.ts +26 -0
  482. package/build/types/integrations/node-cron.d.ts.map +1 -0
  483. package/build/types/integrations/node-schedule.d.ts +25 -0
  484. package/build/types/integrations/node-schedule.d.ts.map +1 -0
  485. package/build/types/integrations/{postgres.d.ts → pg.d.ts} +1 -1
  486. package/build/types/integrations/pg.d.ts.map +1 -0
  487. package/build/types/integrations/{postgres-js.d.ts → postgresjs/index.d.ts} +11 -8
  488. package/build/types/integrations/postgresjs/index.d.ts.map +1 -0
  489. package/build/types/integrations/postgresjs/postgresjs-dc-subscriber.d.ts +48 -0
  490. package/build/types/integrations/postgresjs/postgresjs-dc-subscriber.d.ts.map +1 -0
  491. package/build/types/integrations/{postgresjs.d.ts → postgresjs-wrapper.d.ts} +23 -9
  492. package/build/types/integrations/postgresjs-wrapper.d.ts.map +1 -0
  493. package/build/types/integrations/prisma/orchestrion.d.ts.map +1 -1
  494. package/build/types/integrations/prisma/tracing-helper.d.ts.map +1 -1
  495. package/build/types/integrations/redis/ioredis-channel-subscriber.d.ts.map +1 -1
  496. package/build/types/integrations/serveTunnel.d.ts +14 -0
  497. package/build/types/integrations/serveTunnel.d.ts.map +1 -0
  498. package/build/types/integrations/tedious.d.ts.map +1 -1
  499. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
  500. package/build/types/orchestrion/bundler/options.d.ts +7 -0
  501. package/build/types/orchestrion/bundler/options.d.ts.map +1 -1
  502. package/build/types/orchestrion/bundler/vite.d.ts.map +1 -1
  503. package/build/types/orchestrion/bundler/webpack.d.ts.map +1 -1
  504. package/build/types/orchestrion/channels.d.ts +7 -0
  505. package/build/types/orchestrion/channels.d.ts.map +1 -1
  506. package/build/types/orchestrion/config/anthropic-ai.d.ts.map +1 -1
  507. package/build/types/orchestrion/config/cron.d.ts +31 -0
  508. package/build/types/orchestrion/config/cron.d.ts.map +1 -0
  509. package/build/types/orchestrion/config/generic-pool.d.ts +1 -1
  510. package/build/types/orchestrion/config/index.d.ts.map +1 -1
  511. package/build/types/orchestrion/config/mistral.d.ts +3 -3
  512. package/build/types/orchestrion/config/nestjs.d.ts +1 -0
  513. package/build/types/orchestrion/config/nestjs.d.ts.map +1 -1
  514. package/build/types/orchestrion/config/node-cron.d.ts +19 -0
  515. package/build/types/orchestrion/config/node-cron.d.ts.map +1 -0
  516. package/build/types/orchestrion/config/node-schedule.d.ts +18 -0
  517. package/build/types/orchestrion/config/node-schedule.d.ts.map +1 -0
  518. package/build/types/orchestrion/config/pg.d.ts +1 -1
  519. package/build/types/orchestrion/config/postgres.d.ts.map +1 -1
  520. package/build/types/orchestrion/detect.d.ts.map +1 -1
  521. package/build/types/orchestrion/instrumentation.d.ts.map +1 -1
  522. package/build/types/tracing-channel.d.ts +1 -6
  523. package/build/types/tracing-channel.d.ts.map +1 -1
  524. package/build/types/utils/cronMonitoring.d.ts +39 -0
  525. package/build/types/utils/cronMonitoring.d.ts.map +1 -0
  526. package/build/types/utils/diagnosticsChannel.d.ts.map +1 -1
  527. package/build/types/utils/monitorStream.d.ts +7 -1
  528. package/build/types/utils/monitorStream.d.ts.map +1 -1
  529. package/build/types/utils/runtime.d.ts +7 -0
  530. package/build/types/utils/runtime.d.ts.map +1 -0
  531. package/build/types/utils/sql.d.ts +31 -7
  532. package/build/types/utils/sql.d.ts.map +1 -1
  533. package/build/types/utils/tunnelServer.d.ts +10 -0
  534. package/build/types/utils/tunnelServer.d.ts.map +1 -0
  535. package/build/types/utils/wrapServerRequestHandler.d.ts +9 -2
  536. package/build/types/utils/wrapServerRequestHandler.d.ts.map +1 -1
  537. package/package.json +33 -25
  538. package/build/cjs/integrations/postgres-js.js +0 -200
  539. package/build/cjs/integrations/postgres-js.js.map +0 -1
  540. package/build/cjs/integrations/postgres.js.map +0 -1
  541. package/build/cjs/integrations/postgresjs.js.map +0 -1
  542. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js.map +0 -1
  543. package/build/esm/integrations/postgres-js.js +0 -198
  544. package/build/esm/integrations/postgres-js.js.map +0 -1
  545. package/build/esm/integrations/postgres.js.map +0 -1
  546. package/build/esm/integrations/postgresjs.js.map +0 -1
  547. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js.map +0 -1
  548. package/build/types/integrations/postgres-js.d.ts.map +0 -1
  549. package/build/types/integrations/postgres.d.ts.map +0 -1
  550. package/build/types/integrations/postgresjs.d.ts.map +0 -1
@@ -0,0 +1,16 @@
1
+ import type { ScheduleChange } from '../utils/cronMonitoring';
2
+ export interface CronJobIntegrationOptions {
3
+ /** Job names not to monitor. Strings must match the name exactly. */
4
+ excludeJobs?: Array<string | RegExp>;
5
+ }
6
+ /**
7
+ * Sends Crons check-ins for every `CronJob` of the `cron` package (4.3+) that has a `name`.
8
+ * The monitor slug is the job name. Jobs without a name, one-off jobs, and jobs with a schedule Crons can't express
9
+ * are not monitored.
10
+ */
11
+ export declare const cronJobIntegration: (options?: CronJobIntegrationOptions | undefined) => import("@sentry/core").Integration & {
12
+ name: "CronJob";
13
+ };
14
+ /** Sets the new time's config after `job.setTime(cronTime)`. Without one, the job doesn't check in. */
15
+ export declare function onSetTime({ arguments: [cronTime], self }: ScheduleChange): void;
16
+ //# sourceMappingURL=cron.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cron.d.ts","sourceRoot":"","sources":["../../../src/integrations/cron.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAS,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAYrE,MAAM,WAAW,yBAAyB;IACxC,qEAAqE;IACrE,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CACtC;AAaD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;CAAyC,CAAC;AAOzE,uGAAuG;AACvG,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,cAAc,GAAG,IAAI,CAY/E"}
@@ -1 +1 @@
1
- {"version":3,"file":"dataloader.d.ts","sourceRoot":"","sources":["../../../src/integrations/dataloader.ts"],"names":[],"mappings":"AA+MA;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;CAA4C,CAAC"}
1
+ {"version":3,"file":"dataloader.d.ts","sourceRoot":"","sources":["../../../src/integrations/dataloader.ts"],"names":[],"mappings":"AA2MA;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;CAA4C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"firestore.d.ts","sourceRoot":"","sources":["../../../../src/integrations/firebase/firestore.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAgC,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE7G;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,GAAG,IAAI,CAWxF;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,iBAAiB,GAAG;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAwCA"}
1
+ {"version":3,"file":"firestore.d.ts","sourceRoot":"","sources":["../../../../src/integrations/firebase/firestore.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAgC,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE7G;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,GAAG,IAAI,CAYxF;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,iBAAiB,GAAG;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAwCA"}
@@ -1 +1 @@
1
- {"version":3,"file":"google-genai.d.ts","sourceRoot":"","sources":["../../../src/integrations/google-genai.ts"],"names":[],"mappings":"AAwJA;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;;CAA6C,CAAC"}
1
+ {"version":3,"file":"google-genai.d.ts","sourceRoot":"","sources":["../../../src/integrations/google-genai.ts"],"names":[],"mappings":"AAmKA;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;;CAA6C,CAAC"}
@@ -4,7 +4,7 @@ export declare const SPAN_NAME_VALIDATE = "graphql.validate";
4
4
  export declare const SPAN_NAME_EXECUTE = "graphql.execute";
5
5
  export declare const SPAN_NAME_SUBSCRIBE = "graphql.subscribe";
6
6
  export declare const SPAN_NAME_RESOLVE = "graphql.resolve";
7
- export declare const GRAPHQL_PROCESSING_TYPE = "graphql.processing.type";
7
+ export { GRAPHQL_PROCESSING_TYPE } from '@sentry/conventions/attributes';
8
8
  export declare const PROCESSING_TYPE_PARSE = "parse";
9
9
  export declare const PROCESSING_TYPE_VALIDATE = "validate";
10
10
  export declare const PROCESSING_TYPE_EXECUTE = "execute";
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/integrations/graphql/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,yBAAyB,CAAC;AAE7C,eAAO,MAAM,eAAe,kBAAkB,CAAC;AAC/C,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AACrD,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AACnD,eAAO,MAAM,mBAAmB,sBAAsB,CAAC;AACvD,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AAGnD,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AAEjE,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAC7C,eAAO,MAAM,wBAAwB,aAAa,CAAC;AACnD,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,uBAAuB,YAAY,CAAC;AAGjD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAKzD,eAAO,MAAM,mBAAmB,eAA2C,CAAC;AAC5E,eAAO,MAAM,sBAAsB,eAAsC,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/integrations/graphql/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,yBAAyB,CAAC;AAE7C,eAAO,MAAM,eAAe,kBAAkB,CAAC;AAC/C,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AACrD,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AACnD,eAAO,MAAM,mBAAmB,sBAAsB,CAAC;AACvD,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AAEnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAC7C,eAAO,MAAM,wBAAwB,aAAa,CAAC;AACnD,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,uBAAuB,YAAY,CAAC;AAGjD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAKzD,eAAO,MAAM,mBAAmB,eAA2C,CAAC;AAC5E,eAAO,MAAM,sBAAsB,eAAsC,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export declare const INTERNAL_REQUEST_ORIGIN = "auto.http.hono.internal_request";
2
+ export declare const SENTRY_HONO_MIDDLEWARE = "__SENTRY_HONO_MIDDLEWARE__";
2
3
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,oCAAoC,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,oCAAoC,CAAC;AAMzE,eAAO,MAAM,sBAAsB,+BAA+B,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import type { HonoRuntime } from './connInfo';
2
2
  import type { Context, MiddlewareHandler } from './honoTypes';
3
3
  import type { SentryHonoMiddlewareOptions } from './types';
4
- export declare const SENTRY_HONO_MIDDLEWARE = "__SENTRY_HONO_MIDDLEWARE__";
5
4
  export interface CreateHonoRequestMiddlewareOptions {
6
5
  /** Selects where the connection info is read from. */
7
6
  runtime: HonoRuntime;
@@ -1 +1 @@
1
- {"version":3,"file":"createHonoMiddleware.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/createHonoMiddleware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAK3D,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AASnE,MAAM,WAAW,kCAAkC;IACjD,sDAAsD;IACtD,OAAO,EAAE,WAAW,CAAC;IAErB,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,EAAE,kCAAkC,GAAG,iBAAiB,CA4C1G"}
1
+ {"version":3,"file":"createHonoMiddleware.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/createHonoMiddleware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAS3D,MAAM,WAAW,kCAAkC;IACjD,sDAAsD;IACtD,OAAO,EAAE,WAAW,CAAC;IAErB,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,EAAE,kCAAkC,GAAG,iBAAiB,CA4C1G"}
@@ -1 +1 @@
1
- {"version":3,"file":"honoIntegration.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/honoIntegration.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,EAAkB,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAahF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAM3D,MAAM,WAAW,sBAAuB,SAAQ,2BAA2B;CAAG;AAS9E;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,GAAE,sBAA2B,GAAG,iBAAiB,CAOnH;AAkHD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
1
+ {"version":3,"file":"honoIntegration.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/honoIntegration.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,EAAkB,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAchF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAM3D,MAAM,WAAW,sBAAuB,SAAQ,2BAA2B;CAAG;AAM9E;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,GAAE,sBAA2B,GAAG,iBAAiB,CAOnH;AAqHD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
@@ -1,7 +1,24 @@
1
- import type { MatchedHandler } from './honoTypes';
1
+ import type { Context, MatchedHandler } from './honoTypes';
2
+ /** The match result is internal to Hono. The SDK uses it only in the shape that `compose` reads. */
3
+ export declare function isMatchedHandlerList(handlers: unknown): handlers is MatchedHandler[];
2
4
  /**
3
- * Checks the entry shape that `compose` and `hono/route` read. The match result is a Hono internal, so
4
- * the SDK leaves other shapes alone.
5
+ * Reads the match result like `hono/route` does (Hono 4.8+). Hono does not export the getter's symbol,
6
+ * so this looks for a symbol getter that returns a match result.
7
+ * https://github.com/honojs/hono/blob/v5.0.0-rc.1/src/helper/route/index.ts#L32-L34
5
8
  */
6
- export declare function isMatchedHandlerList(handlers: unknown): handlers is MatchedHandler[];
9
+ export declare function getMatchedHandlers(context: Context): MatchedHandler[] | undefined;
10
+ /** Runs `callback` each time a route handler of this request starts. */
11
+ export declare function onRouteHandlerStart(context: Context, callback: () => void): void;
12
+ /**
13
+ * Wraps the route handlers so that each stores `c.req.routeIndex` when it starts. Hono 5 resets the
14
+ * index after `next()` (https://github.com/honojs/hono/pull/4424).
15
+ *
16
+ * Wraps only if more than one route handler matched. A single one is the handler that responds. Arity
17
+ * cannot tell if a handler calls `next()`: it does not count rest parameters or a default `next`.
18
+ * Returns `true` if it wrapped.
19
+ *
20
+ * Safe to call during the request: `compose` reads each handler only when it calls it.
21
+ */
22
+ export declare function wrapRouteHandlers(handlers: MatchedHandler[], middlewareFlags: boolean[]): boolean;
23
+ export declare function getRecordedRouteHandlerIndex(context: Context): number | undefined;
7
24
  //# sourceMappingURL=matchResult.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"matchResult.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/matchResult.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAkBlD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,OAAO,GAAG,QAAQ,IAAI,cAAc,EAAE,CAEpF"}
1
+ {"version":3,"file":"matchResult.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/matchResult.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAa,cAAc,EAAE,MAAM,aAAa,CAAC;AA6BtE,oGAAoG;AACpG,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,OAAO,GAAG,QAAQ,IAAI,cAAc,EAAE,CAEpF;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,EAAE,GAAG,SAAS,CAgBjF;AAED,wEAAwE;AACxE,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAEhF;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,cAAc,EAAE,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,OAAO,CAYjG;AA4BD,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAGjF"}
@@ -12,8 +12,7 @@ export declare function responseHandler(context: Context, shouldHandleError?: Se
12
12
  /**
13
13
  * Captures an unhandled context error, gated by the user's `shouldHandleError` (or the default).
14
14
  *
15
- * Split out from {@link responseHandler} so a deduplicated middleware can still report its own
16
- * context's error without re-resolving the route name or overwriting request data — e.g. the inner
15
+ * A deduplicated middleware calls it directly to report the error of its own context — e.g. the inner
17
16
  * context of an internal `.request()` whose route threw but whose failed response the outer handler
18
17
  * swallowed.
19
18
  */
@@ -1 +1 @@
1
- {"version":3,"file":"middlewareHandlers.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/middlewareHandlers.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,KAAK,WAAW,EAAgB,MAAM,YAAY,CAAC;AAI5D,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAW3D;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,GAAG,IAAI,CAY3E;AAgED;;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"}
1
+ {"version":3,"file":"middlewareHandlers.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/middlewareHandlers.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,KAAK,WAAW,EAAgB,MAAM,YAAY,CAAC;AAM5D,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAW3D;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,GAAG,IAAI,CA0B3E;AAgED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,EAChB,iBAAiB,CAAC,EAAE,2BAA2B,CAAC,mBAAmB,CAAC,GACnE,IAAI,CAEN;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,OAAO,EAChB,iBAAiB,CAAC,EAAE,2BAA2B,CAAC,mBAAmB,CAAC,GACnE,IAAI,CAQN"}
@@ -1 +1 @@
1
- {"version":3,"file":"patchAppRequest.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/patchAppRequest.ts"],"names":[],"mappings":"AAIA,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"}
1
+ {"version":3,"file":"patchAppRequest.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/patchAppRequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAgB7C,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,CA+CjE"}
@@ -1 +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;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAO9D"}
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;AAMnD,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,CAgCzF;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAO9D"}
@@ -1,10 +1,7 @@
1
- import type { Context } from './honoTypes';
1
+ import type { Context, HonoRoute } from './honoTypes';
2
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).
3
+ * Returns the path of the route that handles the request, or `undefined` if the request has no route.
4
+ * Not the last matched route: a catch-all registered later also matches.
8
5
  */
9
- export declare function resolveRouteName(context: Context): string;
6
+ export declare function resolveRouteName(context: Context, routes: HonoRoute[], middlewareFlags: boolean[]): string | undefined;
10
7
  //# sourceMappingURL=resolveRouteName.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"resolveRouteName.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/resolveRouteName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAItD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,EAAE,EACnB,eAAe,EAAE,OAAO,EAAE,GACzB,MAAM,GAAG,SAAS,CAuBpB"}
@@ -0,0 +1,9 @@
1
+ type AnyFunction = Function;
2
+ /**
3
+ * Proxy traps that expose `original` as `__sentry_original__` on a wrapping Proxy without defining it on the target,
4
+ * which is the original itself. `functionToStringIntegration` only unwraps own properties, so the property has to
5
+ * look like an own one too.
6
+ */
7
+ export declare function sentryOriginalTraps<T extends AnyFunction>(original: AnyFunction): Pick<ProxyHandler<T>, 'get' | 'getOwnPropertyDescriptor'>;
8
+ export {};
9
+ //# sourceMappingURL=sentryOriginalTraps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sentryOriginalTraps.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/sentryOriginalTraps.ts"],"names":[],"mappings":"AACA,KAAK,WAAW,GAAG,QAAQ,CAAC;AAE5B;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,WAAW,EACvD,QAAQ,EAAE,WAAW,GACpB,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,0BAA0B,CAAC,CAe3D"}
@@ -1 +1 @@
1
- {"version":3,"file":"wrapMiddlewareSpan.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/wrapMiddlewareSpan.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAMrD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,iBAAiB,GAAG,iBAAiB,CA8CpF"}
1
+ {"version":3,"file":"wrapMiddlewareSpan.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/wrapMiddlewareSpan.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAOrD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,iBAAiB,GAAG,iBAAiB,CAyCpF"}
@@ -1,7 +1,4 @@
1
- export declare const ATTR_MESSAGING_DESTINATION_PARTITION_ID: 'messaging.destination.partition.id';
2
- export declare const ATTR_MESSAGING_KAFKA_MESSAGE_KEY: 'messaging.kafka.message.key';
3
- export declare const ATTR_MESSAGING_KAFKA_MESSAGE_TOMBSTONE: 'messaging.kafka.message.tombstone';
4
- export declare const ATTR_MESSAGING_KAFKA_OFFSET: 'messaging.kafka.offset';
1
+ export { MESSAGING_DESTINATION_PARTITION_ID as ATTR_MESSAGING_DESTINATION_PARTITION_ID, MESSAGING_KAFKA_MESSAGE_KEY as ATTR_MESSAGING_KAFKA_MESSAGE_KEY, MESSAGING_KAFKA_MESSAGE_TOMBSTONE as ATTR_MESSAGING_KAFKA_MESSAGE_TOMBSTONE, MESSAGING_KAFKA_OFFSET as ATTR_MESSAGING_KAFKA_OFFSET, } from '@sentry/conventions/attributes';
5
2
  export declare const MESSAGING_OPERATION_TYPE_VALUE_PROCESS: 'process';
6
3
  export declare const MESSAGING_OPERATION_TYPE_VALUE_RECEIVE: 'receive';
7
4
  export declare const MESSAGING_OPERATION_TYPE_VALUE_SEND: 'send';
@@ -1 +1 @@
1
- {"version":3,"file":"semconv.d.ts","sourceRoot":"","sources":["../../../../src/integrations/kafkajs/semconv.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,uCAAuC,EAAG,oCAA6C,CAAC;AACrG,eAAO,MAAM,gCAAgC,EAAG,6BAAsC,CAAC;AACvF,eAAO,MAAM,sCAAsC,EAAG,mCAA4C,CAAC;AACnG,eAAO,MAAM,2BAA2B,EAAG,wBAAiC,CAAC;AAC7E,eAAO,MAAM,sCAAsC,EAAG,SAAkB,CAAC;AACzE,eAAO,MAAM,sCAAsC,EAAG,SAAkB,CAAC;AACzE,eAAO,MAAM,mCAAmC,EAAG,MAAe,CAAC;AACnE,eAAO,MAAM,4BAA4B,EAAG,OAAgB,CAAC;AAG7D,eAAO,MAAM,sBAAsB,EAAG,QAAiB,CAAC"}
1
+ {"version":3,"file":"semconv.d.ts","sourceRoot":"","sources":["../../../../src/integrations/kafkajs/semconv.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,IAAI,uCAAuC,EAC7E,2BAA2B,IAAI,gCAAgC,EAC/D,iCAAiC,IAAI,sCAAsC,EAC3E,sBAAsB,IAAI,2BAA2B,GACtD,MAAM,gCAAgC,CAAC;AAExC,eAAO,MAAM,sCAAsC,EAAG,SAAkB,CAAC;AACzE,eAAO,MAAM,sCAAsC,EAAG,SAAkB,CAAC;AACzE,eAAO,MAAM,mCAAmC,EAAG,MAAe,CAAC;AACnE,eAAO,MAAM,4BAA4B,EAAG,OAAgB,CAAC;AAG7D,eAAO,MAAM,sBAAsB,EAAG,QAAiB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"knex.d.ts","sourceRoot":"","sources":["../../../src/integrations/knex.ts"],"names":[],"mappings":"AAqVA;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
1
+ {"version":3,"file":"knex.d.ts","sourceRoot":"","sources":["../../../src/integrations/knex.ts"],"names":[],"mappings":"AAoSA;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"langgraph.d.ts","sourceRoot":"","sources":["../../../src/integrations/langgraph.ts"],"names":[],"mappings":"AAwHA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;CAA2C,CAAC"}
1
+ {"version":3,"file":"langgraph.d.ts","sourceRoot":"","sources":["../../../src/integrations/langgraph.ts"],"names":[],"mappings":"AA8FA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;CAA2C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/mongodb/index.ts"],"names":[],"mappings":"AAyKA;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB;;CAAuC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/mongodb/index.ts"],"names":[],"mappings":"AA+JA;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB;;CAAuC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"mongodb-span.d.ts","sourceRoot":"","sources":["../../../../src/integrations/mongodb/mongodb-span.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAQzD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,SAAS;IACjB,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB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AE,MAAM,GAAG,SAAS,EACxB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAC/C,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,MAAM,EAAE,MAAM,GACb,cAAc,CA4BhB;AAED,2EAA2E;AAC3E,MAAM,WAAW,eAAe;IAC9B,CAAC,CAAC,EAAE;QACF,OAAO,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF,WAAW,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACpC;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,SAAS,CAa1F;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,eAAe,GAAG,SAAS,EACrC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAC5C,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,MAAM,EAAE,MAAM,GACb,cAAc,CAyBhB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,cAAc,GAAG,IAAI,CAqB/D"}
@@ -1 +1 @@
1
- {"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../../src/integrations/mysql.ts"],"names":[],"mappings":"AAkLA;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB;;CAAuC,CAAC"}
1
+ {"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../../src/integrations/mysql.ts"],"names":[],"mappings":"AA4JA;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB;;CAAuC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/mysql2/index.ts"],"names":[],"mappings":"AAiKA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB;;CAAwC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/mysql2/index.ts"],"names":[],"mappings":"AAyIA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB;;CAAwC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"mysql2-dc-subscriber.d.ts","sourceRoot":"","sources":["../../../../src/integrations/mysql2/mysql2-dc-subscriber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAoB/D,eAAO,MAAM,uBAAuB,iBAAiB,CAAC;AACtD,eAAO,MAAM,yBAAyB,mBAAmB,CAAC;AAC1D,eAAO,MAAM,yBAAyB,mBAAmB,CAAC;AAC1D,eAAO,MAAM,8BAA8B,wBAAwB,CAAC;AAQpE;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oFAAoF;IACpF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,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EAAE,IAAI,EAAE,MAAM,KAAK,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAEnG;;;;;;;;GAQG;AACH,wBAAgB,iCAAiC,CAAC,cAAc,EAAE,2BAA2B,GAAG,IAAI,CAKnG"}
@@ -1 +1 @@
1
- {"version":3,"file":"neon.d.ts","sourceRoot":"","sources":["../../../src/integrations/neon.ts"],"names":[],"mappings":"AAqJA;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
1
+ {"version":3,"file":"neon.d.ts","sourceRoot":"","sources":["../../../src/integrations/neon.ts"],"names":[],"mappings":"AAyJA;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"captureStorageEvents.d.ts","sourceRoot":"","sources":["../../../../src/integrations/nitro/captureStorageEvents.ts"],"names":[],"mappings":"AA2DA;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAU3C"}
1
+ {"version":3,"file":"captureStorageEvents.d.ts","sourceRoot":"","sources":["../../../../src/integrations/nitro/captureStorageEvents.ts"],"names":[],"mappings":"AAoEA;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAU3C"}
@@ -0,0 +1,26 @@
1
+ import type { MonitorConfig } from '@sentry/core';
2
+ export interface NodeCronIntegrationOptions {
3
+ /** Task names not to monitor. Strings must match the name exactly. */
4
+ excludeJobs?: Array<string | RegExp>;
5
+ }
6
+ /**
7
+ * Sends Crons check-ins for every named `node-cron` task, with its schedule as the monitor config.
8
+ * The monitor slug is the task's `name` option. Tasks without a name, or with a schedule Sentry can't express, are not
9
+ * monitored.
10
+ */
11
+ export declare const nodeCronIntegration: (options?: NodeCronIntegrationOptions | undefined) => import("@sentry/core").Integration & {
12
+ name: "NodeCron";
13
+ };
14
+ /** The monitor config for a task, or `undefined` if `isReadAlike` says this node-cron version reads it differently. */
15
+ export declare function getMonitorConfig(expression: string, timezone: unknown, isReadAlike?: (expression: string) => boolean): MonitorConfig | undefined;
16
+ /**
17
+ * node-cron before 4.6 reads `7` as `0` and swaps reversed ranges, so it runs `sat-sun`, `6-0` and `6-7` every day.
18
+ * Returns `false` for weekday ranges that could hit that.
19
+ */
20
+ export declare function isReadAlikeByNodeCron4(expression: string): boolean;
21
+ /**
22
+ * node-cron 3 keeps the values of a stepped field that are multiples of the step (`*\/2` days are 2, 4, ...)
23
+ * and reads weekday ranges like node-cron 4 before 4.6. Returns `false` where that differs from standard cron.
24
+ */
25
+ export declare function isReadAlikeByNodeCron3(expression: string): boolean;
26
+ //# sourceMappingURL=node-cron.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-cron.d.ts","sourceRoot":"","sources":["../../../src/integrations/node-cron.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,aAAa,EAAE,MAAM,cAAc,CAAC;AAejE,MAAM,WAAW,0BAA0B;IACzC,sEAAsE;IACtE,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CACtC;AAcD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;CAA0C,CAAC;AA2B3E,uHAAuH;AACvH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,OAAO,EACjB,WAAW,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,GAC5C,aAAa,GAAG,SAAS,CAI3B;AAID;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGlE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAalE"}
@@ -0,0 +1,25 @@
1
+ import type { MonitorConfig } from '@sentry/core';
2
+ import type { ScheduleChange } from '../utils/cronMonitoring';
3
+ export interface NodeScheduleIntegrationOptions {
4
+ /** Job names not to monitor. Strings must match the name exactly. */
5
+ excludeJobs?: Array<string | RegExp>;
6
+ }
7
+ /**
8
+ * Sends Crons check-ins for every named `node-schedule` job, whether it's created with `scheduleJob` or `new Job()`.
9
+ * The monitor slug is the job name. Jobs without a name, one-off jobs, and jobs with a schedule Crons can't express
10
+ * are not monitored.
11
+ */
12
+ export declare const nodeScheduleIntegration: (options?: NodeScheduleIntegrationOptions | undefined) => import("@sentry/core").Integration & {
13
+ name: "NodeSchedule";
14
+ };
15
+ /** Wraps a named job's method before `job.schedule(spec)` with a recurring spec, unless it's already wrapped. */
16
+ export declare function beforeSchedule(change: ScheduleChange, options: NodeScheduleIntegrationOptions): void;
17
+ /**
18
+ * Sets the spec's config after `job.schedule(spec)`. Without one, from a spec Crons can't express or a job that also
19
+ * keeps runs from an earlier spec, the job doesn't check in.
20
+ */
21
+ export declare function onSchedule(change: ScheduleChange): void;
22
+ /** Whether node-schedule runs a job with this spec once: a `Date`, a timestamp, or a date string. */
23
+ export declare function isOneOffSpec(spec: unknown): boolean;
24
+ export declare function getMonitorConfig(spec: unknown): MonitorConfig | undefined;
25
+ //# sourceMappingURL=node-schedule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-schedule.d.ts","sourceRoot":"","sources":["../../../src/integrations/node-schedule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,aAAa,EAAE,MAAM,cAAc,CAAC;AAKjE,OAAO,KAAK,EAAS,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAWrE,MAAM,WAAW,8BAA8B;IAC7C,qEAAqE;IACrE,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CACtC;AAaD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;CAA8C,CAAC;AAoBnF,iHAAiH;AACjH,wBAAgB,cAAc,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,8BAA8B,GAAG,IAAI,CAapG;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,CAMvD;AAED,qGAAqG;AACrG,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAQnD;AAWD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,aAAa,GAAG,SAAS,CAMzE"}
@@ -32,4 +32,4 @@ export declare const postgresIntegration: (options?: {
32
32
  } | undefined) => import("@sentry/core").Integration & {
33
33
  name: "Postgres";
34
34
  };
35
- //# sourceMappingURL=postgres.d.ts.map
35
+ //# sourceMappingURL=pg.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pg.d.ts","sourceRoot":"","sources":["../../../src/integrations/pg.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAwB,cAAc,EAAE,MAAM,cAAc,CAAC;AA0CzE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAgCD,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IAGf,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAEzF;AAkHD,oFAAoF;AACpF,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,kBAAkB,GAAG,cAAc,CAQlF;AAsDD;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB;yBA7N+B,OAAO;;;CA6NI,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { Span } from '@sentry/core';
2
- import { type PostgresConnectionContext } from './postgresjs';
2
+ import { type PostgresConnectionContext } from '../postgresjs-wrapper';
3
3
  export interface PostgresJsIntegrationOptions {
4
4
  /**
5
5
  * Only create spans when there's already an active parent span. Defaults to
@@ -13,15 +13,18 @@ export interface PostgresJsIntegrationOptions {
13
13
  requestHook?: (span: Span, sanitizedSqlQuery: string, postgresConnectionContext?: PostgresConnectionContext) => void;
14
14
  }
15
15
  /**
16
- * Diagnostics-channel-based postgres.js (`postgres` v3.x) integration.
16
+ * Diagnostics-channel-based postgres.js integration.
17
17
  *
18
- * Subscribes to the `orchestrion:postgres:handle` / `:connection` / `:execute` /
19
- * `:connect` diagnostics channels injected into postgres.js' `Query.prototype.handle`
20
- * and `Connection`/`execute`/`connect` (in `src/*` and `cjs/src/*`) and creates db
21
- * spans matching the OTel `postgresJsIntegration`. Requires the Sentry runtime
22
- * hook or bundler plugin.
18
+ * - `postgres` 3.x: subscribes to the `orchestrion:postgres:handle` / `:connection` /
19
+ * `:execute` / `:connect` channels injected into postgres.js' `Query.prototype.handle`
20
+ * and `Connection`/`execute`/`connect` (in `src/*` and `cjs/src/*`). Requires the
21
+ * Sentry runtime hook or bundler plugin.
22
+ * - `postgres` >= 4.0.0: subscribes to the `postgres:query` tracing channel the library
23
+ * publishes natively.
24
+ *
25
+ * Both paths create the same db spans.
23
26
  */
24
27
  export declare const postgresJsIntegration: (options?: PostgresJsIntegrationOptions | undefined) => import("@sentry/core").Integration & {
25
28
  name: "PostgresJs";
26
29
  };
27
- //# sourceMappingURL=postgres-js.d.ts.map
30
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/postgresjs/index.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAiB,IAAI,EAAkB,MAAM,cAAc,CAAC;AAIxE,OAAO,EAKL,KAAK,yBAAyB,EAE/B,MAAM,uBAAuB,CAAC;AA4B/B,MAAM,WAAW,4BAA4B;IAC3C;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,yBAAyB,CAAC,EAAE,yBAAyB,KAAK,IAAI,CAAC;CACtH;AAwMD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB;;CAA4C,CAAC"}
@@ -0,0 +1,48 @@
1
+ import type { TracingChannel } from 'node:diagnostics_channel';
2
+ import type { SpanAttributes } from '@sentry/core';
3
+ import { type PostgresConnectionContext, type PostgresJsSqlInstrumentationOptions } from '../postgresjs-wrapper';
4
+ /**
5
+ * Tracing channel published by `postgres` >= 4.0.0 for every query (see postgres `src/diagnostics.js`).
6
+ */
7
+ export declare const POSTGRESJS_DC_CHANNEL_QUERY = "postgres:query";
8
+ /**
9
+ * The context `postgres` >= 4.0.0 publishes on `postgres:query`. `host`, `port` and `connection`
10
+ * stay `null` until the query is written to a connection, and `command`/`count` until it completes,
11
+ * so they can only be read once the span ends.
12
+ */
13
+ export interface PostgresJsQueryData {
14
+ query?: string | null;
15
+ database?: string;
16
+ user?: string | null;
17
+ host?: string | null;
18
+ port?: number | null;
19
+ command?: string | null;
20
+ result?: unknown;
21
+ error?: unknown;
22
+ }
23
+ /**
24
+ * Platform-provided factory for a native tracing channel. Node passes `node:diagnostics_channel`'s
25
+ * `tracingChannel` directly.
26
+ */
27
+ export type PostgresJsTracingChannelFactory = <T extends object>(name: string) => TracingChannel<T, T>;
28
+ /**
29
+ * Subscribe Sentry span handlers to the `postgres:query` tracing channel published natively by
30
+ * `postgres` >= 4.0.0. Older versions never publish it, and the orchestrion transform is gated to
31
+ * `< 4`, so no query gets two spans.
32
+ */
33
+ export declare function subscribePostgresJsDiagnosticChannels(tracingChannel: PostgresJsTracingChannelFactory, options?: PostgresJsSqlInstrumentationOptions): void;
34
+ /**
35
+ * Maps a `postgres:query` context to a {@link PostgresConnectionContext}. At `start` only the
36
+ * database is known; `host`/`port` are filled in once the query is sent.
37
+ *
38
+ * @internal Exported for testing only
39
+ */
40
+ export declare function getPostgresJsConnectionContext(data: PostgresJsQueryData): PostgresConnectionContext;
41
+ /**
42
+ * Attributes only known once the query settled: the connection it ran on, the server-reported
43
+ * command and, on failure, the Postgres error code.
44
+ *
45
+ * @internal Exported for testing only
46
+ */
47
+ export declare function getPostgresJsQueryEndAttributes(data: PostgresJsQueryData): SpanAttributes;
48
+ //# sourceMappingURL=postgresjs-dc-subscriber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postgresjs-dc-subscriber.d.ts","sourceRoot":"","sources":["../../../../src/integrations/postgresjs/postgresjs-dc-subscriber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAW/D,OAAO,KAAK,EAAQ,cAAc,EAAE,MAAM,cAAc,CAAC;AAKzD,OAAO,EAGL,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACzC,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,eAAO,MAAM,2BAA2B,mBAAmB,CAAC;AAK5D;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAEvG;;;;GAIG;AACH,wBAAgB,qCAAqC,CACnD,cAAc,EAAE,+BAA+B,EAC/C,OAAO,GAAE,mCAAwC,GAChD,IAAI,CAyCN;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,mBAAmB,GAAG,yBAAyB,CAMnG;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,mBAAmB,GAAG,cAAc,CAazF"}
@@ -1,10 +1,15 @@
1
1
  import { type Span, type SpanAttributes } from '@sentry/core';
2
+ /** The callbacks postgres.js calls on a `Query` when it settles. */
3
+ export interface PostgresQuerySettlement {
4
+ resolve?: (...args: unknown[]) => unknown;
5
+ reject?: (...args: unknown[]) => unknown;
6
+ }
2
7
  export type PostgresConnectionContext = {
3
8
  ATTR_DB_NAMESPACE?: string;
4
9
  ATTR_SERVER_ADDRESS?: string;
5
10
  ATTR_SERVER_PORT?: string;
6
11
  };
7
- interface PostgresJsSqlInstrumentationOptions {
12
+ export interface PostgresJsSqlInstrumentationOptions {
8
13
  /**
9
14
  * Whether to require a parent span for the instrumentation.
10
15
  * If set to true, the instrumentation will only create spans if there is a parent span
@@ -38,6 +43,12 @@ interface PostgresJsSqlInstrumentationOptions {
38
43
  * ```
39
44
  */
40
45
  export declare function instrumentPostgresJsSql<T>(sql: T, options?: PostgresJsSqlInstrumentationOptions): T;
46
+ /**
47
+ * Whether `span` was started by {@link instrumentPostgresJsSql}.
48
+ *
49
+ * @internal Exported for the diagnostics-channel integration.
50
+ */
51
+ export declare function _isPostgresJsWrapperSpan(span: Span | undefined): boolean;
41
52
  /**
42
53
  * Reconstructs the full SQL query from template strings with PostgreSQL placeholders.
43
54
  *
@@ -54,12 +65,6 @@ export declare function _reconstructQuery(strings: string[] | undefined): string
54
65
  * @internal Exported for the diagnostics-channel integration.
55
66
  */
56
67
  export declare function _getConnectionAttributes(connectionContext: PostgresConnectionContext): SpanAttributes;
57
- /**
58
- * Extracts the DB operation name from a SQL query, preferring the server-reported `command`.
59
- *
60
- * @internal Exported for the diagnostics-channel integration.
61
- */
62
- export declare function _getOperationName(sanitizedQuery: string | undefined, command?: string): string | undefined;
63
68
  /**
64
69
  * Builds a {@link PostgresConnectionContext} from postgres.js' parsed options
65
70
  * (which store `host`/`port` as arrays). Defaults to 'localhost'/5432.
@@ -71,5 +76,14 @@ export declare function _buildConnectionContext(options: {
71
76
  port?: number[];
72
77
  database?: string;
73
78
  }): PostgresConnectionContext;
74
- export {};
75
- //# sourceMappingURL=postgresjs.d.ts.map
79
+ /**
80
+ * Wrap `query.resolve`/`query.reject` so the span ends when the query settles.
81
+ *
82
+ * `Query extends Promise` and `async handle()` only dispatches — its promise
83
+ * resolves immediately, long before the query completes. postgres.js signals
84
+ * completion by calling `this.resolve`/`this.reject`, so we own the span end
85
+ * there. Wrapping happens at handle-start because `reject` can fire
86
+ * synchronously during dispatch and `cursor()` reassigns both before executing.
87
+ */
88
+ export declare function _wrapQuerySettlement(query: PostgresQuerySettlement, span: Span, operationName: string | undefined, onSettle?: () => void): void;
89
+ //# sourceMappingURL=postgresjs-wrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postgresjs-wrapper.d.ts","sourceRoot":"","sources":["../../../src/integrations/postgresjs-wrapper.ts"],"names":[],"mappings":"AAKA,OAAO,EAKL,KAAK,IAAI,EACT,KAAK,cAAc,EAGpB,MAAM,cAAc,CAAC;AAiBtB,oEAAoE;AACpE,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;IAC1C,MAAM,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;CAC1C;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,WAAW,mCAAmC;IAClD;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;I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
1
+ {"version":3,"file":"orchestrion.d.ts","sourceRoot":"","sources":["../../../../src/integrations/prisma/orchestrion.ts"],"names":[],"mappings":"AAkCA,UAAU,8BAA8B;IACtC,eAAe,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CACtC;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,8BAA8B,GAAG,IAAI,CAehF"}
@@ -1 +1 @@
1
- {"version":3,"file":"tracing-helper.d.ts","sourceRoot":"","sources":["../../../../src/integrations/prisma/tracing-helper.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAWzD,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AA2B5F,KAAK,OAAO,GAAG;IACb,eAAe,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CACtC,CAAC;AAGF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB,CAAC;AAEF,KAAK,gBAAgB,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE9C,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,KAAK,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAChD,IAAI,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channel-subscriber.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAGzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAevD,UAAU,eAAe;IACvB,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5C;AAED,UAAU,qBAAsB,SAAQ,yBAAyB;IAC/D,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB;AAoBD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,qBAAqB,EAC3B,YAAY,EAAE,iBAAiB,GAC9B,IAAI,GAAG,SAAS,CA8BlB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAiClE"}
1
+ {"version":3,"file":"ioredis-channel-subscriber.d.ts","sourceRoot":"","sources":["../../../../src/integrations/redis/ioredis-channel-subscriber.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAGzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAevD,UAAU,eAAe;IACvB,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5C;AAED,UAAU,qBAAsB,SAAQ,yBAAyB;IAC/D,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB;AAoBD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,qBAAqB,EAC3B,YAAY,EAAE,iBAAiB,GAC9B,IAAI,GAAG,SAAS,CA+BlB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CA4BlE"}
@@ -0,0 +1,14 @@
1
+ import type { ServerTunnelOptions } from '@sentry/core';
2
+ /**
3
+ * Lets every `node:http` server answer managed tunnel requests before the app sees them, whatever framework runs on
4
+ * it. Nothing is answered unless the tunnel is on, through `serveTunnelIntegration` or a framework SDK.
5
+ */
6
+ export declare function instrumentTunnelServers(): void;
7
+ /**
8
+ * Makes a `serveTunnelIntegration` that, unless `intercept` is off, also runs `instrumentRuntimeServers` to answer
9
+ * tunnel requests on the runtime's own servers, like `Bun.serve` or `Deno.serve`.
10
+ */
11
+ export declare function makeServeTunnelIntegration(instrumentRuntimeServers?: () => void): (options?: ServerTunnelOptions | undefined) => import("@sentry/core").Integration & {
12
+ name: string;
13
+ };
14
+ //# sourceMappingURL=serveTunnel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serveTunnel.d.ts","sourceRoot":"","sources":["../../../src/integrations/serveTunnel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAaxD;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAU9C;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,wBAAwB,CAAC,EAAE,MAAM,IAAI;;EAY/E"}
@@ -1 +1 @@
1
- {"version":3,"file":"tedious.d.ts","sourceRoot":"","sources":["../../../src/integrations/tedious.ts"],"names":[],"mappings":"AA4QA;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;CAAyC,CAAC"}
1
+ {"version":3,"file":"tedious.d.ts","sourceRoot":"","sources":["../../../src/integrations/tedious.ts"],"names":[],"mappings":"AAqRA;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;CAAyC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"vercel-ai-dc-subscriber.d.ts","sourceRoot":"","sources":["../../../../src/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,qBAAqB,CAAC;AAE1B;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAErG,mHAAmH;AACnH,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAC;AAElD;;;;;;;;;;;GAWG;AACH,wBAAgB,+BAA+B,CAC7C,cAAc,EAAE,6BAA6B,EAC7C,OAAO,GAAE,sBAA2B,GACnC,IAAI,CAgBN;AAwCD,yGAAyG;AACzG,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAuBrG;AA+CD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,sBAAsB,EAC5B,cAAc,EAAE,sBAAsB,GACrC,IAAI,GAAG,SAAS,CAwFlB;AAyHD;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,sBAAsB,EAC5B,cAAc,EAAE,sBAAsB,GACrC,IAAI,CAyEN;AAoJD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CA0B/F"}
@@ -33,6 +33,13 @@ export type PluginOptions = {
33
33
  * routing every channel through it is harmless.
34
34
  */
35
35
  dcModule?: string;
36
+ /**
37
+ * When `true`, the Vite plugin also runs the transform in the dependency optimizer of server environments in
38
+ * `vite dev`. Needed for `@cloudflare/vite-plugin`, which pre-bundles the dependencies of a Worker there.
39
+ *
40
+ * @default false
41
+ */
42
+ transformOptimizedDeps?: boolean;
36
43
  };
37
44
  /**
38
45
  * Whether an "external" config entry covers an instrumented module: an exact