@sentry/server-utils 11.9.0 → 11.11.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 (561) hide show
  1. package/README.md +5 -1
  2. package/build/THIRD-PARTY-LICENSES.txt +72 -72
  3. package/build/cjs/ai/anthropic-ai/index.js +6 -3
  4. package/build/cjs/ai/anthropic-ai/index.js.map +1 -1
  5. package/build/cjs/ai/anthropic-ai/streaming.js +17 -9
  6. package/build/cjs/ai/anthropic-ai/streaming.js.map +1 -1
  7. package/build/cjs/ai/anthropic-ai/tool-runner.js +11 -4
  8. package/build/cjs/ai/anthropic-ai/tool-runner.js.map +1 -1
  9. package/build/cjs/ai/flue/index.js +38 -3
  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 +18 -3
  14. package/build/cjs/ai/google-genai/index.js.map +1 -1
  15. package/build/cjs/ai/langchain/constants.js +2 -0
  16. package/build/cjs/ai/langchain/constants.js.map +1 -1
  17. package/build/cjs/ai/langchain/index.js +35 -8
  18. package/build/cjs/ai/langchain/index.js.map +1 -1
  19. package/build/cjs/ai/openai/index.js +18 -4
  20. package/build/cjs/ai/openai/index.js.map +1 -1
  21. package/build/cjs/ai/openai/streaming.js +40 -9
  22. package/build/cjs/ai/openai/streaming.js.map +1 -1
  23. package/build/cjs/ai/pi-durable/constants.js +2 -0
  24. package/build/cjs/ai/pi-durable/constants.js.map +1 -1
  25. package/build/cjs/ai/pi-durable/index.js +12 -2
  26. package/build/cjs/ai/pi-durable/index.js.map +1 -1
  27. package/build/cjs/ai/pi-durable/models.js +6 -6
  28. package/build/cjs/ai/pi-durable/models.js.map +1 -1
  29. package/build/cjs/ai/pi-durable/runs.js +14 -1
  30. package/build/cjs/ai/pi-durable/runs.js.map +1 -1
  31. package/build/cjs/ai/pi-durable/tools.js +2 -2
  32. package/build/cjs/ai/pi-durable/tools.js.map +1 -1
  33. package/build/cjs/ai/typesafe/index.js +1 -1
  34. package/build/cjs/ai/typesafe/index.js.map +1 -1
  35. package/build/cjs/ai/workers-ai/utils.js +39 -1
  36. package/build/cjs/ai/workers-ai/utils.js.map +1 -1
  37. package/build/cjs/index.js +20 -13
  38. package/build/cjs/index.js.map +1 -1
  39. package/build/cjs/index.no-diagnostic-channels.js +4 -3
  40. package/build/cjs/index.no-diagnostic-channels.js.map +1 -1
  41. package/build/cjs/index.request-handler.js +8 -0
  42. package/build/cjs/index.request-handler.js.map +1 -0
  43. package/build/cjs/integrations/amqplib.js +6 -8
  44. package/build/cjs/integrations/amqplib.js.map +1 -1
  45. package/build/cjs/integrations/anthropic.js +11 -0
  46. package/build/cjs/integrations/anthropic.js.map +1 -1
  47. package/build/cjs/integrations/aws-sdk/constants.js +2 -2
  48. package/build/cjs/integrations/aws-sdk/constants.js.map +1 -1
  49. package/build/cjs/integrations/aws-sdk/index.js +8 -4
  50. package/build/cjs/integrations/aws-sdk/index.js.map +1 -1
  51. package/build/cjs/integrations/cron.js +49 -0
  52. package/build/cjs/integrations/cron.js.map +1 -0
  53. package/build/cjs/integrations/dataloader.js +2 -5
  54. package/build/cjs/integrations/dataloader.js.map +1 -1
  55. package/build/cjs/integrations/express/instrumentation.js +1 -1
  56. package/build/cjs/integrations/express/instrumentation.js.map +1 -1
  57. package/build/cjs/integrations/firebase/firestore.js +2 -1
  58. package/build/cjs/integrations/firebase/firestore.js.map +1 -1
  59. package/build/cjs/integrations/firebase/functions.js +1 -1
  60. package/build/cjs/integrations/firebase/functions.js.map +1 -1
  61. package/build/cjs/integrations/graphql/constants.js +0 -2
  62. package/build/cjs/integrations/graphql/constants.js.map +1 -1
  63. package/build/cjs/integrations/graphql/graphql-dc-subscriber.js +4 -4
  64. package/build/cjs/integrations/graphql/graphql-dc-subscriber.js.map +1 -1
  65. package/build/cjs/integrations/graphql/resolvers.js +1 -1
  66. package/build/cjs/integrations/graphql/resolvers.js.map +1 -1
  67. package/build/cjs/integrations/graphql/spans.js +3 -3
  68. package/build/cjs/integrations/graphql/spans.js.map +1 -1
  69. package/build/cjs/integrations/hapi/hapi-error-handler.js +1 -1
  70. package/build/cjs/integrations/hapi/hapi-error-handler.js.map +1 -1
  71. package/build/cjs/integrations/hapi/hapi-types.js +0 -7
  72. package/build/cjs/integrations/hapi/hapi-types.js.map +1 -1
  73. package/build/cjs/integrations/hapi/hapi-utils.js +26 -21
  74. package/build/cjs/integrations/hapi/hapi-utils.js.map +1 -1
  75. package/build/cjs/integrations/hono/honoIntegration.js +13 -20
  76. package/build/cjs/integrations/hono/honoIntegration.js.map +1 -1
  77. package/build/cjs/integrations/hono/isMiddleware.js +8 -0
  78. package/build/cjs/integrations/hono/isMiddleware.js.map +1 -1
  79. package/build/cjs/integrations/hono/matchResult.js +18 -0
  80. package/build/cjs/integrations/hono/matchResult.js.map +1 -0
  81. package/build/cjs/integrations/hono/patchRoute.js +2 -10
  82. package/build/cjs/integrations/hono/patchRoute.js.map +1 -1
  83. package/build/cjs/integrations/index.js +6 -6
  84. package/build/cjs/integrations/index.js.map +1 -1
  85. package/build/cjs/integrations/kafkajs/consumer.js +3 -3
  86. package/build/cjs/integrations/kafkajs/consumer.js.map +1 -1
  87. package/build/cjs/integrations/kafkajs/semconv.js +0 -8
  88. package/build/cjs/integrations/kafkajs/semconv.js.map +1 -1
  89. package/build/cjs/integrations/kafkajs/spans.js +8 -8
  90. package/build/cjs/integrations/kafkajs/spans.js.map +1 -1
  91. package/build/cjs/integrations/knex.js +3 -33
  92. package/build/cjs/integrations/knex.js.map +1 -1
  93. package/build/cjs/integrations/mongodb/index.js +21 -31
  94. package/build/cjs/integrations/mongodb/index.js.map +1 -1
  95. package/build/cjs/integrations/mongodb/mongodb-span.js +3 -2
  96. package/build/cjs/integrations/mongodb/mongodb-span.js.map +1 -1
  97. package/build/cjs/integrations/mysql.js +14 -20
  98. package/build/cjs/integrations/mysql.js.map +1 -1
  99. package/build/cjs/integrations/mysql2/index.js +12 -23
  100. package/build/cjs/integrations/mysql2/index.js.map +1 -1
  101. package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js +26 -42
  102. package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
  103. package/build/cjs/integrations/neon.js +27 -27
  104. package/build/cjs/integrations/neon.js.map +1 -1
  105. package/build/cjs/integrations/nitro/captureStorageEvents.js +3 -3
  106. package/build/cjs/integrations/nitro/captureStorageEvents.js.map +1 -1
  107. package/build/cjs/integrations/nitro/captureTracingEvents.js +1 -1
  108. package/build/cjs/integrations/nitro/captureTracingEvents.js.map +1 -1
  109. package/build/cjs/integrations/node-cron.js +68 -0
  110. package/build/cjs/integrations/node-cron.js.map +1 -0
  111. package/build/cjs/integrations/node-schedule.js +76 -0
  112. package/build/cjs/integrations/node-schedule.js.map +1 -0
  113. package/build/cjs/integrations/{postgres.js → pg.js} +13 -21
  114. package/build/cjs/integrations/pg.js.map +1 -0
  115. package/build/cjs/integrations/postgresjs/index.js +147 -0
  116. package/build/cjs/integrations/postgresjs/index.js.map +1 -0
  117. package/build/cjs/integrations/postgresjs/postgresjs-dc-subscriber.js +81 -0
  118. package/build/cjs/integrations/postgresjs/postgresjs-dc-subscriber.js.map +1 -0
  119. package/build/cjs/integrations/{postgresjs.js → postgresjs-wrapper.js} +66 -73
  120. package/build/cjs/integrations/postgresjs-wrapper.js.map +1 -0
  121. package/build/cjs/integrations/prisma/orchestrion.js +2 -5
  122. package/build/cjs/integrations/prisma/orchestrion.js.map +1 -1
  123. package/build/cjs/integrations/prisma/tracing-helper.js +15 -13
  124. package/build/cjs/integrations/prisma/tracing-helper.js.map +1 -1
  125. package/build/cjs/integrations/redis/ioredis-channel-subscriber.js +13 -17
  126. package/build/cjs/integrations/redis/ioredis-channel-subscriber.js.map +1 -1
  127. package/build/cjs/integrations/tedious.js +9 -6
  128. package/build/cjs/integrations/tedious.js.map +1 -1
  129. package/build/cjs/integrations/vercel-ai/index.js +2 -0
  130. package/build/cjs/integrations/vercel-ai/index.js.map +1 -1
  131. package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js +61 -23
  132. package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  133. package/build/cjs/integrations/vercel-ai/vercel-ai-tool-telemetry.js +40 -0
  134. package/build/cjs/integrations/vercel-ai/vercel-ai-tool-telemetry.js.map +1 -0
  135. package/build/cjs/orchestrion/bundler/load-hook.js +2 -2
  136. package/build/cjs/orchestrion/bundler/load-hook.js.map +1 -1
  137. package/build/cjs/orchestrion/bundler/options.js.map +1 -1
  138. package/build/cjs/orchestrion/bundler/rollup.js +2 -2
  139. package/build/cjs/orchestrion/bundler/vite.js +86 -27
  140. package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
  141. package/build/cjs/orchestrion/bundler/webpack.js +1 -1
  142. package/build/cjs/orchestrion/bundler/webpack.js.map +1 -1
  143. package/build/cjs/orchestrion/channels.js +6 -0
  144. package/build/cjs/orchestrion/channels.js.map +1 -1
  145. package/build/cjs/orchestrion/config/anthropic-ai.js +13 -5
  146. package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -1
  147. package/build/cjs/orchestrion/config/cron.js +26 -0
  148. package/build/cjs/orchestrion/config/cron.js.map +1 -0
  149. package/build/cjs/orchestrion/config/hono.js +2 -0
  150. package/build/cjs/orchestrion/config/hono.js.map +1 -1
  151. package/build/cjs/orchestrion/config/index.js +6 -0
  152. package/build/cjs/orchestrion/config/index.js.map +1 -1
  153. package/build/cjs/orchestrion/config/mistral.js +1 -1
  154. package/build/cjs/orchestrion/config/mistral.js.map +1 -1
  155. package/build/cjs/orchestrion/config/nestjs.js +8 -0
  156. package/build/cjs/orchestrion/config/nestjs.js.map +1 -1
  157. package/build/cjs/orchestrion/config/node-cron.js +53 -0
  158. package/build/cjs/orchestrion/config/node-cron.js.map +1 -0
  159. package/build/cjs/orchestrion/config/node-schedule.js +29 -0
  160. package/build/cjs/orchestrion/config/node-schedule.js.map +1 -0
  161. package/build/cjs/orchestrion/config/openai-compatible.js +3 -3
  162. package/build/cjs/orchestrion/config/openai-compatible.js.map +1 -1
  163. package/build/cjs/orchestrion/config/postgres.js +5 -1
  164. package/build/cjs/orchestrion/config/postgres.js.map +1 -1
  165. package/build/cjs/orchestrion/config/together-ai.js +8 -4
  166. package/build/cjs/orchestrion/config/together-ai.js.map +1 -1
  167. package/build/cjs/orchestrion/instrumentation.js +7 -0
  168. package/build/cjs/orchestrion/instrumentation.js.map +1 -1
  169. package/build/cjs/tracing-channel.js +3 -4
  170. package/build/cjs/tracing-channel.js.map +1 -1
  171. package/build/cjs/utils/cronMonitoring.js +160 -0
  172. package/build/cjs/utils/cronMonitoring.js.map +1 -0
  173. package/build/cjs/utils/monitorStream.js +63 -0
  174. package/build/cjs/utils/monitorStream.js.map +1 -0
  175. package/build/cjs/utils/sql.js +51 -5
  176. package/build/cjs/utils/sql.js.map +1 -1
  177. package/build/cjs/utils/wrapServerRequestHandler.js +209 -0
  178. package/build/cjs/utils/wrapServerRequestHandler.js.map +1 -0
  179. package/build/cjs/vendored/@apm-js-collab/code-transformer/index.js.map +1 -1
  180. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -1
  181. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -1
  182. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js +15 -15
  183. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -1
  184. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js +35 -7
  185. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -1
  186. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js +4 -4
  187. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js.map +1 -1
  188. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{core-dC9TN3Ev.js → core-Bd0h-mo3.js} +2 -2
  189. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{core-dC9TN3Ev.js.map → core-Bd0h-mo3.js.map} +1 -1
  190. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js +3 -3
  191. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -1
  192. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -1
  193. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{rollup-OTS4ktWb.js → rollup-DCG8HLmh.js} +7 -13
  194. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-DCG8HLmh.js.map +1 -0
  195. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js +2 -2
  196. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -1
  197. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js +1 -1
  198. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +1 -1
  199. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -1
  200. package/build/cjs/vendored/astring/dist/astring.js.map +1 -1
  201. package/build/cjs/vendored/esquery/dist/esquery.esm.min.js.map +1 -1
  202. package/build/cjs/vendored/meriyah/dist/meriyah.js.map +1 -1
  203. package/build/cjs/vendored/meriyah/dist/meriyah2.js.map +1 -1
  204. package/build/cjs/vendored/module-details-from-path/index.js.map +1 -1
  205. package/build/cjs/vendored/semifies/index.js.map +1 -1
  206. package/build/cjs/vendored/source-map/lib/array-set.js.map +1 -1
  207. package/build/cjs/vendored/source-map/lib/base64-vlq.js.map +1 -1
  208. package/build/cjs/vendored/source-map/lib/base64.js.map +1 -1
  209. package/build/cjs/vendored/source-map/lib/binary-search.js.map +1 -1
  210. package/build/cjs/vendored/source-map/lib/mapping-list.js.map +1 -1
  211. package/build/cjs/vendored/source-map/lib/quick-sort.js.map +1 -1
  212. package/build/cjs/vendored/source-map/lib/source-map-consumer.js.map +1 -1
  213. package/build/cjs/vendored/source-map/lib/source-map-generator.js.map +1 -1
  214. package/build/cjs/vendored/source-map/lib/source-node.js.map +1 -1
  215. package/build/cjs/vendored/source-map/lib/util.js.map +1 -1
  216. package/build/cjs/vendored/source-map/source-map.js.map +1 -1
  217. package/build/esm/ai/anthropic-ai/index.js +7 -4
  218. package/build/esm/ai/anthropic-ai/index.js.map +1 -1
  219. package/build/esm/ai/anthropic-ai/streaming.js +17 -9
  220. package/build/esm/ai/anthropic-ai/streaming.js.map +1 -1
  221. package/build/esm/ai/anthropic-ai/tool-runner.js +10 -4
  222. package/build/esm/ai/anthropic-ai/tool-runner.js.map +1 -1
  223. package/build/esm/ai/flue/index.js +39 -4
  224. package/build/esm/ai/flue/index.js.map +1 -1
  225. package/build/esm/ai/flue/utils.js +4 -4
  226. package/build/esm/ai/flue/utils.js.map +1 -1
  227. package/build/esm/ai/google-genai/index.js +18 -3
  228. package/build/esm/ai/google-genai/index.js.map +1 -1
  229. package/build/esm/ai/langchain/constants.js +2 -1
  230. package/build/esm/ai/langchain/constants.js.map +1 -1
  231. package/build/esm/ai/langchain/index.js +37 -10
  232. package/build/esm/ai/langchain/index.js.map +1 -1
  233. package/build/esm/ai/openai/index.js +19 -5
  234. package/build/esm/ai/openai/index.js.map +1 -1
  235. package/build/esm/ai/openai/streaming.js +40 -9
  236. package/build/esm/ai/openai/streaming.js.map +1 -1
  237. package/build/esm/ai/pi-durable/constants.js +2 -1
  238. package/build/esm/ai/pi-durable/constants.js.map +1 -1
  239. package/build/esm/ai/pi-durable/index.js +14 -4
  240. package/build/esm/ai/pi-durable/index.js.map +1 -1
  241. package/build/esm/ai/pi-durable/models.js +6 -6
  242. package/build/esm/ai/pi-durable/models.js.map +1 -1
  243. package/build/esm/ai/pi-durable/runs.js +15 -3
  244. package/build/esm/ai/pi-durable/runs.js.map +1 -1
  245. package/build/esm/ai/pi-durable/tools.js +2 -2
  246. package/build/esm/ai/pi-durable/tools.js.map +1 -1
  247. package/build/esm/ai/typesafe/index.js +1 -1
  248. package/build/esm/ai/typesafe/index.js.map +1 -1
  249. package/build/esm/ai/workers-ai/utils.js +41 -3
  250. package/build/esm/ai/workers-ai/utils.js.map +1 -1
  251. package/build/esm/index.js +7 -4
  252. package/build/esm/index.js.map +1 -1
  253. package/build/esm/index.no-diagnostic-channels.js +2 -2
  254. package/build/esm/index.request-handler.js +2 -0
  255. package/build/esm/index.request-handler.js.map +1 -0
  256. package/build/esm/integrations/amqplib.js +7 -9
  257. package/build/esm/integrations/amqplib.js.map +1 -1
  258. package/build/esm/integrations/anthropic.js +12 -1
  259. package/build/esm/integrations/anthropic.js.map +1 -1
  260. package/build/esm/integrations/aws-sdk/constants.js +2 -2
  261. package/build/esm/integrations/aws-sdk/constants.js.map +1 -1
  262. package/build/esm/integrations/aws-sdk/index.js +9 -5
  263. package/build/esm/integrations/aws-sdk/index.js.map +1 -1
  264. package/build/esm/integrations/cron.js +46 -0
  265. package/build/esm/integrations/cron.js.map +1 -0
  266. package/build/esm/integrations/dataloader.js +2 -5
  267. package/build/esm/integrations/dataloader.js.map +1 -1
  268. package/build/esm/integrations/express/instrumentation.js +1 -1
  269. package/build/esm/integrations/express/instrumentation.js.map +1 -1
  270. package/build/esm/integrations/firebase/firestore.js +2 -1
  271. package/build/esm/integrations/firebase/firestore.js.map +1 -1
  272. package/build/esm/integrations/firebase/functions.js +1 -1
  273. package/build/esm/integrations/firebase/functions.js.map +1 -1
  274. package/build/esm/integrations/graphql/constants.js +1 -2
  275. package/build/esm/integrations/graphql/constants.js.map +1 -1
  276. package/build/esm/integrations/graphql/graphql-dc-subscriber.js +2 -2
  277. package/build/esm/integrations/graphql/resolvers.js +2 -2
  278. package/build/esm/integrations/graphql/spans.js +2 -2
  279. package/build/esm/integrations/hapi/hapi-error-handler.js +1 -1
  280. package/build/esm/integrations/hapi/hapi-error-handler.js.map +1 -1
  281. package/build/esm/integrations/hapi/hapi-types.js +1 -7
  282. package/build/esm/integrations/hapi/hapi-types.js.map +1 -1
  283. package/build/esm/integrations/hapi/hapi-utils.js +29 -24
  284. package/build/esm/integrations/hapi/hapi-utils.js.map +1 -1
  285. package/build/esm/integrations/hono/honoIntegration.js +14 -21
  286. package/build/esm/integrations/hono/honoIntegration.js.map +1 -1
  287. package/build/esm/integrations/hono/isMiddleware.js +8 -1
  288. package/build/esm/integrations/hono/isMiddleware.js.map +1 -1
  289. package/build/esm/integrations/hono/matchResult.js +16 -0
  290. package/build/esm/integrations/hono/matchResult.js.map +1 -0
  291. package/build/esm/integrations/hono/patchRoute.js +3 -11
  292. package/build/esm/integrations/hono/patchRoute.js.map +1 -1
  293. package/build/esm/integrations/index.js +2 -2
  294. package/build/esm/integrations/index.js.map +1 -1
  295. package/build/esm/integrations/kafkajs/consumer.js +5 -5
  296. package/build/esm/integrations/kafkajs/consumer.js.map +1 -1
  297. package/build/esm/integrations/kafkajs/semconv.js +1 -5
  298. package/build/esm/integrations/kafkajs/semconv.js.map +1 -1
  299. package/build/esm/integrations/kafkajs/spans.js +10 -10
  300. package/build/esm/integrations/kafkajs/spans.js.map +1 -1
  301. package/build/esm/integrations/knex.js +6 -36
  302. package/build/esm/integrations/knex.js.map +1 -1
  303. package/build/esm/integrations/mongodb/index.js +21 -31
  304. package/build/esm/integrations/mongodb/index.js.map +1 -1
  305. package/build/esm/integrations/mongodb/mongodb-span.js +4 -3
  306. package/build/esm/integrations/mongodb/mongodb-span.js.map +1 -1
  307. package/build/esm/integrations/mysql.js +17 -23
  308. package/build/esm/integrations/mysql.js.map +1 -1
  309. package/build/esm/integrations/mysql2/index.js +15 -26
  310. package/build/esm/integrations/mysql2/index.js.map +1 -1
  311. package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js +29 -45
  312. package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
  313. package/build/esm/integrations/neon.js +27 -27
  314. package/build/esm/integrations/neon.js.map +1 -1
  315. package/build/esm/integrations/nitro/captureStorageEvents.js +4 -4
  316. package/build/esm/integrations/nitro/captureStorageEvents.js.map +1 -1
  317. package/build/esm/integrations/nitro/captureTracingEvents.js +2 -2
  318. package/build/esm/integrations/nitro/captureTracingEvents.js.map +1 -1
  319. package/build/esm/integrations/node-cron.js +63 -0
  320. package/build/esm/integrations/node-cron.js.map +1 -0
  321. package/build/esm/integrations/node-schedule.js +70 -0
  322. package/build/esm/integrations/node-schedule.js.map +1 -0
  323. package/build/esm/integrations/{postgres.js → pg.js} +16 -24
  324. package/build/esm/integrations/pg.js.map +1 -0
  325. package/build/esm/integrations/postgresjs/index.js +145 -0
  326. package/build/esm/integrations/postgresjs/index.js.map +1 -0
  327. package/build/esm/integrations/postgresjs/postgresjs-dc-subscriber.js +76 -0
  328. package/build/esm/integrations/postgresjs/postgresjs-dc-subscriber.js.map +1 -0
  329. package/build/esm/integrations/{postgresjs.js → postgresjs-wrapper.js} +68 -76
  330. package/build/esm/integrations/postgresjs-wrapper.js.map +1 -0
  331. package/build/esm/integrations/prisma/orchestrion.js +2 -5
  332. package/build/esm/integrations/prisma/orchestrion.js.map +1 -1
  333. package/build/esm/integrations/prisma/tracing-helper.js +17 -15
  334. package/build/esm/integrations/prisma/tracing-helper.js.map +1 -1
  335. package/build/esm/integrations/redis/ioredis-channel-subscriber.js +13 -17
  336. package/build/esm/integrations/redis/ioredis-channel-subscriber.js.map +1 -1
  337. package/build/esm/integrations/tedious.js +11 -8
  338. package/build/esm/integrations/tedious.js.map +1 -1
  339. package/build/esm/integrations/vercel-ai/index.js +2 -0
  340. package/build/esm/integrations/vercel-ai/index.js.map +1 -1
  341. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +61 -24
  342. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  343. package/build/esm/integrations/vercel-ai/vercel-ai-tool-telemetry.js +38 -0
  344. package/build/esm/integrations/vercel-ai/vercel-ai-tool-telemetry.js.map +1 -0
  345. package/build/esm/orchestrion/bundler/load-hook.js +1 -1
  346. package/build/esm/orchestrion/bundler/options.js.map +1 -1
  347. package/build/esm/orchestrion/bundler/rollup.js +1 -1
  348. package/build/esm/orchestrion/bundler/vite.js +87 -28
  349. package/build/esm/orchestrion/bundler/vite.js.map +1 -1
  350. package/build/esm/orchestrion/bundler/webpack.js +1 -1
  351. package/build/esm/orchestrion/bundler/webpack.js.map +1 -1
  352. package/build/esm/orchestrion/channels.js +6 -0
  353. package/build/esm/orchestrion/channels.js.map +1 -1
  354. package/build/esm/orchestrion/config/anthropic-ai.js +13 -5
  355. package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
  356. package/build/esm/orchestrion/config/cron.js +22 -0
  357. package/build/esm/orchestrion/config/cron.js.map +1 -0
  358. package/build/esm/orchestrion/config/hono.js +2 -0
  359. package/build/esm/orchestrion/config/hono.js.map +1 -1
  360. package/build/esm/orchestrion/config/index.js +6 -0
  361. package/build/esm/orchestrion/config/index.js.map +1 -1
  362. package/build/esm/orchestrion/config/mistral.js +1 -1
  363. package/build/esm/orchestrion/config/mistral.js.map +1 -1
  364. package/build/esm/orchestrion/config/nestjs.js +8 -0
  365. package/build/esm/orchestrion/config/nestjs.js.map +1 -1
  366. package/build/esm/orchestrion/config/node-cron.js +49 -0
  367. package/build/esm/orchestrion/config/node-cron.js.map +1 -0
  368. package/build/esm/orchestrion/config/node-schedule.js +25 -0
  369. package/build/esm/orchestrion/config/node-schedule.js.map +1 -0
  370. package/build/esm/orchestrion/config/openai-compatible.js +3 -3
  371. package/build/esm/orchestrion/config/openai-compatible.js.map +1 -1
  372. package/build/esm/orchestrion/config/postgres.js +5 -1
  373. package/build/esm/orchestrion/config/postgres.js.map +1 -1
  374. package/build/esm/orchestrion/config/together-ai.js +8 -4
  375. package/build/esm/orchestrion/config/together-ai.js.map +1 -1
  376. package/build/esm/orchestrion/instrumentation.js +8 -1
  377. package/build/esm/orchestrion/instrumentation.js.map +1 -1
  378. package/build/esm/package.json +1 -1
  379. package/build/esm/tracing-channel.js +4 -5
  380. package/build/esm/tracing-channel.js.map +1 -1
  381. package/build/esm/utils/cronMonitoring.js +153 -0
  382. package/build/esm/utils/cronMonitoring.js.map +1 -0
  383. package/build/esm/utils/monitorStream.js +61 -0
  384. package/build/esm/utils/monitorStream.js.map +1 -0
  385. package/build/esm/utils/sql.js +48 -5
  386. package/build/esm/utils/sql.js.map +1 -1
  387. package/build/esm/utils/wrapServerRequestHandler.js +207 -0
  388. package/build/esm/utils/wrapServerRequestHandler.js.map +1 -0
  389. package/build/esm/vendored/@apm-js-collab/code-transformer/index.js.map +1 -1
  390. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -1
  391. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -1
  392. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js +15 -15
  393. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -1
  394. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js +35 -7
  395. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -1
  396. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js +1 -1
  397. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js.map +1 -1
  398. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{core-dC9TN3Ev.js → core-Bd0h-mo3.js} +2 -2
  399. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{core-dC9TN3Ev.js.map → core-Bd0h-mo3.js.map} +1 -1
  400. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js +1 -1
  401. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -1
  402. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -1
  403. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{rollup-OTS4ktWb.js → rollup-DCG8HLmh.js} +3 -9
  404. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-DCG8HLmh.js.map +1 -0
  405. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js +1 -1
  406. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -1
  407. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js +1 -1
  408. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +1 -1
  409. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -1
  410. package/build/esm/vendored/astring/dist/astring.js.map +1 -1
  411. package/build/esm/vendored/esquery/dist/esquery.esm.min.js.map +1 -1
  412. package/build/esm/vendored/meriyah/dist/meriyah.js.map +1 -1
  413. package/build/esm/vendored/meriyah/dist/meriyah2.js.map +1 -1
  414. package/build/esm/vendored/module-details-from-path/index.js.map +1 -1
  415. package/build/esm/vendored/semifies/index.js.map +1 -1
  416. package/build/esm/vendored/source-map/lib/array-set.js.map +1 -1
  417. package/build/esm/vendored/source-map/lib/base64-vlq.js.map +1 -1
  418. package/build/esm/vendored/source-map/lib/base64.js.map +1 -1
  419. package/build/esm/vendored/source-map/lib/binary-search.js.map +1 -1
  420. package/build/esm/vendored/source-map/lib/mapping-list.js.map +1 -1
  421. package/build/esm/vendored/source-map/lib/quick-sort.js.map +1 -1
  422. package/build/esm/vendored/source-map/lib/source-map-consumer.js.map +1 -1
  423. package/build/esm/vendored/source-map/lib/source-map-generator.js.map +1 -1
  424. package/build/esm/vendored/source-map/lib/source-node.js.map +1 -1
  425. package/build/esm/vendored/source-map/lib/util.js.map +1 -1
  426. package/build/esm/vendored/source-map/source-map.js.map +1 -1
  427. package/build/types/ai/anthropic-ai/index.d.ts.map +1 -1
  428. package/build/types/ai/anthropic-ai/streaming.d.ts.map +1 -1
  429. package/build/types/ai/anthropic-ai/tool-runner.d.ts +4 -2
  430. package/build/types/ai/anthropic-ai/tool-runner.d.ts.map +1 -1
  431. package/build/types/ai/anthropic-ai/types.d.ts +3 -0
  432. package/build/types/ai/anthropic-ai/types.d.ts.map +1 -1
  433. package/build/types/ai/flue/index.d.ts.map +1 -1
  434. package/build/types/ai/google-genai/index.d.ts.map +1 -1
  435. package/build/types/ai/langchain/constants.d.ts +1 -0
  436. package/build/types/ai/langchain/constants.d.ts.map +1 -1
  437. package/build/types/ai/langchain/index.d.ts.map +1 -1
  438. package/build/types/ai/openai/index.d.ts.map +1 -1
  439. package/build/types/ai/openai/streaming.d.ts.map +1 -1
  440. package/build/types/ai/openai/types.d.ts +1 -1
  441. package/build/types/ai/openai/types.d.ts.map +1 -1
  442. package/build/types/ai/pi-durable/constants.d.ts +2 -0
  443. package/build/types/ai/pi-durable/constants.d.ts.map +1 -1
  444. package/build/types/ai/pi-durable/index.d.ts.map +1 -1
  445. package/build/types/ai/pi-durable/runs.d.ts +13 -3
  446. package/build/types/ai/pi-durable/runs.d.ts.map +1 -1
  447. package/build/types/ai/pi-durable/types.d.ts +5 -0
  448. package/build/types/ai/pi-durable/types.d.ts.map +1 -1
  449. package/build/types/ai/workers-ai/utils.d.ts +1 -1
  450. package/build/types/ai/workers-ai/utils.d.ts.map +1 -1
  451. package/build/types/exports.d.ts +3 -3
  452. package/build/types/exports.d.ts.map +1 -1
  453. package/build/types/index.d.ts +8 -2
  454. package/build/types/index.d.ts.map +1 -1
  455. package/build/types/index.request-handler.d.ts +3 -0
  456. package/build/types/index.request-handler.d.ts.map +1 -0
  457. package/build/types/integrations/amqplib.d.ts.map +1 -1
  458. package/build/types/integrations/anthropic.d.ts.map +1 -1
  459. package/build/types/integrations/aws-sdk/constants.d.ts +2 -2
  460. package/build/types/integrations/aws-sdk/constants.d.ts.map +1 -1
  461. package/build/types/integrations/aws-sdk/index.d.ts.map +1 -1
  462. package/build/types/integrations/cron.d.ts +16 -0
  463. package/build/types/integrations/cron.d.ts.map +1 -0
  464. package/build/types/integrations/dataloader.d.ts.map +1 -1
  465. package/build/types/integrations/firebase/firestore.d.ts.map +1 -1
  466. package/build/types/integrations/graphql/constants.d.ts +1 -1
  467. package/build/types/integrations/graphql/constants.d.ts.map +1 -1
  468. package/build/types/integrations/hapi/hapi-types.d.ts +2 -6
  469. package/build/types/integrations/hapi/hapi-types.d.ts.map +1 -1
  470. package/build/types/integrations/hapi/hapi-utils.d.ts +6 -2
  471. package/build/types/integrations/hapi/hapi-utils.d.ts.map +1 -1
  472. package/build/types/integrations/hono/honoIntegration.d.ts.map +1 -1
  473. package/build/types/integrations/hono/honoTypes.d.ts +2 -2
  474. package/build/types/integrations/hono/honoTypes.d.ts.map +1 -1
  475. package/build/types/integrations/hono/isMiddleware.d.ts +9 -1
  476. package/build/types/integrations/hono/isMiddleware.d.ts.map +1 -1
  477. package/build/types/integrations/hono/matchResult.d.ts +7 -0
  478. package/build/types/integrations/hono/matchResult.d.ts.map +1 -0
  479. package/build/types/integrations/hono/patchRoute.d.ts +1 -8
  480. package/build/types/integrations/hono/patchRoute.d.ts.map +1 -1
  481. package/build/types/integrations/kafkajs/semconv.d.ts +1 -4
  482. package/build/types/integrations/kafkajs/semconv.d.ts.map +1 -1
  483. package/build/types/integrations/knex.d.ts.map +1 -1
  484. package/build/types/integrations/mongodb/index.d.ts.map +1 -1
  485. package/build/types/integrations/mongodb/mongodb-span.d.ts.map +1 -1
  486. package/build/types/integrations/mysql.d.ts.map +1 -1
  487. package/build/types/integrations/mysql2/index.d.ts.map +1 -1
  488. package/build/types/integrations/mysql2/mysql2-dc-subscriber.d.ts.map +1 -1
  489. package/build/types/integrations/neon.d.ts.map +1 -1
  490. package/build/types/integrations/nitro/captureStorageEvents.d.ts.map +1 -1
  491. package/build/types/integrations/node-cron.d.ts +26 -0
  492. package/build/types/integrations/node-cron.d.ts.map +1 -0
  493. package/build/types/integrations/node-schedule.d.ts +25 -0
  494. package/build/types/integrations/node-schedule.d.ts.map +1 -0
  495. package/build/types/integrations/{postgres.d.ts → pg.d.ts} +1 -1
  496. package/build/types/integrations/pg.d.ts.map +1 -0
  497. package/build/types/integrations/{postgres-js.d.ts → postgresjs/index.d.ts} +11 -8
  498. package/build/types/integrations/postgresjs/index.d.ts.map +1 -0
  499. package/build/types/integrations/postgresjs/postgresjs-dc-subscriber.d.ts +48 -0
  500. package/build/types/integrations/postgresjs/postgresjs-dc-subscriber.d.ts.map +1 -0
  501. package/build/types/integrations/{postgresjs.d.ts → postgresjs-wrapper.d.ts} +23 -9
  502. package/build/types/integrations/postgresjs-wrapper.d.ts.map +1 -0
  503. package/build/types/integrations/prisma/orchestrion.d.ts.map +1 -1
  504. package/build/types/integrations/prisma/tracing-helper.d.ts.map +1 -1
  505. package/build/types/integrations/redis/ioredis-channel-subscriber.d.ts.map +1 -1
  506. package/build/types/integrations/tedious.d.ts.map +1 -1
  507. package/build/types/integrations/vercel-ai/index.d.ts.map +1 -1
  508. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts +7 -1
  509. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
  510. package/build/types/integrations/vercel-ai/vercel-ai-tool-telemetry.d.ts +8 -0
  511. package/build/types/integrations/vercel-ai/vercel-ai-tool-telemetry.d.ts.map +1 -0
  512. package/build/types/orchestrion/bundler/options.d.ts +7 -0
  513. package/build/types/orchestrion/bundler/options.d.ts.map +1 -1
  514. package/build/types/orchestrion/bundler/vite.d.ts.map +1 -1
  515. package/build/types/orchestrion/bundler/webpack.d.ts.map +1 -1
  516. package/build/types/orchestrion/channels.d.ts +8 -0
  517. package/build/types/orchestrion/channels.d.ts.map +1 -1
  518. package/build/types/orchestrion/config/anthropic-ai.d.ts +1 -2
  519. package/build/types/orchestrion/config/anthropic-ai.d.ts.map +1 -1
  520. package/build/types/orchestrion/config/cron.d.ts +31 -0
  521. package/build/types/orchestrion/config/cron.d.ts.map +1 -0
  522. package/build/types/orchestrion/config/generic-pool.d.ts +1 -1
  523. package/build/types/orchestrion/config/hono.d.ts.map +1 -1
  524. package/build/types/orchestrion/config/index.d.ts.map +1 -1
  525. package/build/types/orchestrion/config/mistral.d.ts +3 -3
  526. package/build/types/orchestrion/config/nestjs.d.ts +1 -0
  527. package/build/types/orchestrion/config/nestjs.d.ts.map +1 -1
  528. package/build/types/orchestrion/config/node-cron.d.ts +19 -0
  529. package/build/types/orchestrion/config/node-cron.d.ts.map +1 -0
  530. package/build/types/orchestrion/config/node-schedule.d.ts +18 -0
  531. package/build/types/orchestrion/config/node-schedule.d.ts.map +1 -0
  532. package/build/types/orchestrion/config/openai-compatible.d.ts +4 -0
  533. package/build/types/orchestrion/config/openai-compatible.d.ts.map +1 -1
  534. package/build/types/orchestrion/config/pg.d.ts +1 -1
  535. package/build/types/orchestrion/config/postgres.d.ts.map +1 -1
  536. package/build/types/orchestrion/config/together-ai.d.ts.map +1 -1
  537. package/build/types/orchestrion/instrumentation.d.ts.map +1 -1
  538. package/build/types/tracing-channel.d.ts +1 -6
  539. package/build/types/tracing-channel.d.ts.map +1 -1
  540. package/build/types/utils/cronMonitoring.d.ts +39 -0
  541. package/build/types/utils/cronMonitoring.d.ts.map +1 -0
  542. package/build/types/utils/monitorStream.d.ts +9 -0
  543. package/build/types/utils/monitorStream.d.ts.map +1 -0
  544. package/build/types/utils/sql.d.ts +31 -7
  545. package/build/types/utils/sql.d.ts.map +1 -1
  546. package/build/types/utils/wrapServerRequestHandler.d.ts +45 -0
  547. package/build/types/utils/wrapServerRequestHandler.d.ts.map +1 -0
  548. package/package.json +12 -8
  549. package/build/cjs/integrations/postgres-js.js +0 -200
  550. package/build/cjs/integrations/postgres-js.js.map +0 -1
  551. package/build/cjs/integrations/postgres.js.map +0 -1
  552. package/build/cjs/integrations/postgresjs.js.map +0 -1
  553. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js.map +0 -1
  554. package/build/esm/integrations/postgres-js.js +0 -198
  555. package/build/esm/integrations/postgres-js.js.map +0 -1
  556. package/build/esm/integrations/postgres.js.map +0 -1
  557. package/build/esm/integrations/postgresjs.js.map +0 -1
  558. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js.map +0 -1
  559. package/build/types/integrations/postgres-js.d.ts.map +0 -1
  560. package/build/types/integrations/postgres.d.ts.map +0 -1
  561. package/build/types/integrations/postgresjs.d.ts.map +0 -1
@@ -3,8 +3,8 @@
3
3
  * `@sentry/conventions/attributes` (attribute names that exist there are imported from there
4
4
  * directly). These are either Sentry-specific (the span origin) or attribute *values* (not keys).
5
5
  */
6
- /** The span origin every aws-sdk channel span carries. */
7
- export declare const AWS_SDK_ORIGIN = "auto.aws.aws_sdk";
6
+ /** The integration name part of every aws-sdk channel span origin (`auto.<category>.aws_sdk`). */
7
+ export declare const AWS_SDK_ORIGIN_INTEGRATION_NAME = "aws_sdk";
8
8
  /** DynamoDB `db.system.name` value (an attribute value, not a key, so not covered by conventions). */
9
9
  export declare const DB_SYSTEM_VALUE_DYNAMODB = "dynamodb";
10
10
  /** SNS `messaging.destination_kind` value (an attribute value, not a key, so not covered by conventions). */
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/integrations/aws-sdk/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,0DAA0D;AAC1D,eAAO,MAAM,cAAc,qBAAqB,CAAC;AAEjD,sGAAsG;AACtG,eAAO,MAAM,wBAAwB,aAAa,CAAC;AAEnD,6GAA6G;AAC7G,eAAO,MAAM,sCAAsC,UAAU,CAAC;AAG9D,eAAO,MAAM,gCAAgC,SAAS,CAAC;AACvD,eAAO,MAAM,4CAA4C,qBAAqB,CAAC;AAC/E,eAAO,MAAM,+BAA+B,gBAAgB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/integrations/aws-sdk/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,kGAAkG;AAClG,eAAO,MAAM,+BAA+B,YAAY,CAAC;AAEzD,sGAAsG;AACtG,eAAO,MAAM,wBAAwB,aAAa,CAAC;AAEnD,6GAA6G;AAC7G,eAAO,MAAM,sCAAsC,UAAU,CAAC;AAG9D,eAAO,MAAM,gCAAgC,SAAS,CAAC;AACvD,eAAO,MAAM,4CAA4C,qBAAqB,CAAC;AAC/E,eAAO,MAAM,+BAA+B,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/aws-sdk/index.ts"],"names":[],"mappings":"AA2OA;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;CAAqC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/aws-sdk/index.ts"],"names":[],"mappings":"AAmPA;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;CAAqC,CAAC"}
@@ -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"}
@@ -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,qBA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,CAAC;AACvD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAKzD,eAAO,MAAM,mBAAmB,eAA2C,CAAC;AAC5E,eAAO,MAAM,sBAAsB,eAAsC,CAAC"}
@@ -7,7 +7,7 @@ export interface ServerRouteOptions {
7
7
  }
8
8
  export interface ServerRoute {
9
9
  path: string;
10
- method: string;
10
+ method: string | string[];
11
11
  handler?: LifecycleMethod | unknown;
12
12
  options?: ((server: unknown) => ServerRouteOptions) | ServerRouteOptions;
13
13
  [key: string]: unknown;
@@ -64,6 +64,7 @@ export interface HapiResponse {
64
64
  }
65
65
  /** The subset of a hapi request the error listener reads. */
66
66
  export interface HapiRequest {
67
+ method: string;
67
68
  route: {
68
69
  path?: string;
69
70
  method: string;
@@ -90,10 +91,5 @@ export interface HapiServer {
90
91
  events: HapiServerEvents;
91
92
  [key: string]: unknown;
92
93
  }
93
- export declare enum AttributeNames {
94
- HAPI_TYPE = "hapi.type",
95
- PLUGIN_NAME = "hapi.plugin.name",
96
- EXT_TYPE = "server.ext.type"
97
- }
98
94
  export {};
99
95
  //# sourceMappingURL=hapi-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hapi-types.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hapi/hapi-types.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,oBAAoB,YACxB,WAAW,EACX,eAAe,EACf,YAAY,EACZ,cAAc,EACd,eAAe,EACf,eAAe,EACf,WAAW,CACH,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzE,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,KAAK,KAAK,OAAO,CAAC;AAErF,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC;IACpC,CAAC,GAAG,EAAE,MAAM,GAAG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AAE,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,gBAAgB,KAAK,IAAI,GAChE,IAAI,CAAC;IACR,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,2DAA2D;AAC3D,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,gBAAgB,CAAC;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
@@ -1,4 +1,4 @@
1
- import type { HapiRequest, ServerRequestExtType, ServerRoute } from './hapi-types';
1
+ import type { HapiRequest, ServerRequestExtType } from './hapi-types';
2
2
  /**
3
3
  * Default function deciding whether an error should be sent to Sentry.
4
4
  *
@@ -14,7 +14,11 @@ interface SpanMetadata {
14
14
  name: string;
15
15
  }
16
16
  /** Build the span name and attributes for a Hapi route. */
17
- export declare const getRouteMetadata: (route: ServerRoute, pluginName?: string) => SpanMetadata;
17
+ export declare const getRouteMetadata: ({ path, method, pluginName, }: {
18
+ path: string;
19
+ method?: string;
20
+ pluginName?: string;
21
+ }) => SpanMetadata;
18
22
  /** Build the span name and attributes for a Hapi server extension. */
19
23
  export declare const getExtMetadata: (extPoint: ServerRequestExtType, pluginName?: string, methodName?: string) => SpanMetadata;
20
24
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"hapi-utils.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hapi/hapi-utils.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EACV,WAAW,EAOX,oBAAoB,EACpB,WAAW,EAEZ,MAAM,cAAc,CAAC;AAKtB;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAOtF;AAyBD,KAAK,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAEzD,UAAU,YAAY;IACpB,UAAU,EAAE,cAAc,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;CACd;AA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AS7E;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAwB3E"}
@@ -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,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAYhE,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;AA0ID;;;;;;;;;;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;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"}
@@ -20,13 +20,13 @@ export interface HonoRoute {
20
20
  path: string;
21
21
  handler: (...args: any[]) => any;
22
22
  }
23
+ export type MatchedHandler = [pair: [handler: HonoRoute['handler'], route: HonoRoute], paramIndexMap: unknown];
23
24
  export interface HonoRequest {
24
25
  raw: Request;
25
26
  method: string;
26
27
  path: string;
27
28
  routeIndex: number;
28
- matchedRoutes: HonoRoute[];
29
- routePath: string;
29
+ matchedRoutes?: HonoRoute[];
30
30
  [key: string]: any;
31
31
  }
32
32
  export interface Context {
@@ -1 +1 @@
1
- {"version":3,"file":"honoTypes.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/honoTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,MAAM,WAAW,GAAG;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,SAAS,CAAC,EAAE,GAAG,CAAC;CACjB;AAED,MAAM,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;AAEvC,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IAIb,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;CAClC;AAED,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,OAAO,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IAGnB,aAAa,EAAE,SAAS,EAAE,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,WAAW,CAAC;IACjB,GAAG,EAAE,OAAO,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,KAAK,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAID,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,IA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AAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,WAAW,CAAC;IACjB,GAAG,EAAE,OAAO,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,KAAK,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAID,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;AAE3F,MAAM,WAAW,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG,GAAG;IAEvC,GAAG,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC;IACjC,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC1D,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB"}
@@ -1,3 +1,4 @@
1
+ import type { HonoRoute } from './honoTypes';
1
2
  /**
2
3
  * Infers whether a Hono route entry is a middleware (rather than a route handler).
3
4
  *
@@ -7,7 +8,14 @@
7
8
  * https://github.com/honojs/hono/blob/97c6fe1f12298c715eb7b2da65b4b6e0d81682bb/src/utils/handler.ts#L8
8
9
  *
9
10
  * This is only one signal — callers that must classify inline middleware sharing a method+path with
10
- * their handler (e.g. `wrapSubAppMiddleware`) additionally need positional information.
11
+ * their handler additionally need positional information (`getMiddlewareFlags`).
11
12
  */
12
13
  export declare function isMiddleware(handler: unknown): boolean;
14
+ /**
15
+ * Tells for each route if it is a middleware. Hono has no flag for this. In a method+path group, the
16
+ * last handler is the route handler (`app.get('/path', mw, handler)`). `.use()` adds middleware with
17
+ * method `ALL` and no route handler, so for `ALL` routes the arity also counts. Arity alone is not
18
+ * enough, because a route handler can declare an unused `next`.
19
+ */
20
+ export declare function getMiddlewareFlags(routes: HonoRoute[]): boolean[];
13
21
  //# sourceMappingURL=isMiddleware.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isMiddleware.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/isMiddleware.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAStD"}
1
+ {"version":3,"file":"isMiddleware.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/isMiddleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAStD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,EAAE,CAQjE"}
@@ -0,0 +1,7 @@
1
+ import type { MatchedHandler } from './honoTypes';
2
+ /**
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
+ */
6
+ export declare function isMatchedHandlerList(handlers: unknown): handlers is MatchedHandler[];
7
+ //# sourceMappingURL=matchResult.d.ts.map
@@ -0,0 +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"}
@@ -22,14 +22,7 @@ type HonoBaseProto = {
22
22
  */
23
23
  export declare function installRouteHookOnPrototype(honoBaseProto: HonoBaseProto): RouteHookHandle;
24
24
  /**
25
- * Identifies middleware handlers in a sub-app's flat routes array and wraps them in spans.
26
- *
27
- * Heuristics (since Hono has no "isMiddleware" flag):
28
- * 1. Position: `app.get('/path', mw, handler)` produces entries with the same method+path.
29
- * All but the LAST are middleware (they call `next()`).
30
- * 2. Arity (# of params) for method 'ALL': `.use()` handlers always have 2+ params (context, next),
31
- * while `.all()` route handlers typically have 1 (`context` only).
32
- * See: https://github.com/honojs/hono/blob/18fe604c8cefc2628240651b1af219692e1918c1/src/hono-base.ts#L156-L168
25
+ * Wraps the middleware handlers of a sub-app's routes in spans.
33
26
  */
34
27
  export declare function wrapSubAppMiddleware(routes: HonoRoute[]): void;
35
28
  //# sourceMappingURL=patchRoute.d.ts.map
@@ -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;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAmB9D"}
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,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":"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,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAEhF;AAmCD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,EAC/C,EAAE,EAAE,gBAAgB,EACpB,OAAO,EAAE,SAAS,GAAG,SAAS,EAC9B,SAAS,EAAE,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I,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,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,SAAS,MAAM,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
+ {"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;AAkB/D,eAAO,MAAM,uBAAuB,iBAAiB,CAAC;AACtD,eAAO,MAAM,yBAAyB,mBAAmB,CAAC;AAC1D,eAAO,MAAM,yBAAyB,mBAAmB,CAAC;AAC1D,eAAO,MAAM,8BAA8B,wBAAwB,CAAC;AAKpE;;;;;;;;;;;;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,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,SAAS,MAAM,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;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,yBAAyB,CAAC,EAAE,yBAAyB,KAAK,IAAI,CAAC;CACtH;AAeD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,mCAAmC,GAAG,CAAC,CAOnG;AA8MD;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,OAAO,CAExE;AAYD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CASnF;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,iBAAiB,EAAE,yBAAyB,GAAG,cAAc,CAkBrG;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAC/C,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,yBAAyB,CAQ5B;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,uBAAuB,EAC9B,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,QAAQ,CAAC,EAAE,MAAM,IAAI,GACpB,IAAI,CAiCN"}
@@ -1 +1 @@
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,CAmBhF"}
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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B,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"}
@@ -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":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/vercel-ai/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAOxD,6CAA6C;AAC7C,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC;AAuB3C;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;CAA0C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/vercel-ai/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAQxD,6CAA6C;AAC7C,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC;AAwB3C;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;CAA0C,CAAC"}
@@ -1,7 +1,13 @@
1
1
  import type { Span } from '@sentry/core';
2
2
  import type { TracingChannel } from 'node:diagnostics_channel';
3
- import type { GenAiOptions } from '../../ai/core/utils';
3
+ import { type GenAiOptions } from '../../ai/core/utils';
4
4
  import { type StreamedModelCallResult } from './util';
5
+ /**
6
+ * The single tracing channel the `ai` package (>= 7) publishes all telemetry lifecycle events to
7
+ * via `node:diagnostics_channel`. Events are discriminated by their `type` field.
8
+ * @see https://github.com/vercel/ai/pull/15660
9
+ */
10
+ export declare const AI_SDK_TELEMETRY_TRACING_CHANNEL = "ai:telemetry";
5
11
  /** Drop the per-operation `callId` maps once the owning top-level operation settles (success or error). */
6
12
  export declare function clearOperationId(data: VercelAiChannelMessage): void;
7
13
  /**