@sentry/server-utils 11.0.0-beta.2 → 11.0.0-rc.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 (278) hide show
  1. package/build/THIRD-PARTY-LICENSES.txt +32 -32
  2. package/build/cjs/ai/core/utils.js +41 -0
  3. package/build/cjs/ai/core/utils.js.map +1 -1
  4. package/build/cjs/ai/flue/constants.js +16 -0
  5. package/build/cjs/ai/flue/constants.js.map +1 -0
  6. package/build/cjs/ai/flue/index.js +115 -0
  7. package/build/cjs/ai/flue/index.js.map +1 -0
  8. package/build/cjs/ai/flue/utils.js +202 -0
  9. package/build/cjs/ai/flue/utils.js.map +1 -0
  10. package/build/cjs/ai/google-genai/index.js +10 -8
  11. package/build/cjs/ai/google-genai/index.js.map +1 -1
  12. package/build/cjs/ai/google-genai/streaming.js +11 -3
  13. package/build/cjs/ai/google-genai/streaming.js.map +1 -1
  14. package/build/cjs/ai/google-genai/utils.js +120 -10
  15. package/build/cjs/ai/google-genai/utils.js.map +1 -1
  16. package/build/cjs/ai/mastra/constants.js +2 -0
  17. package/build/cjs/ai/mastra/constants.js.map +1 -1
  18. package/build/cjs/ai/mastra/index.js +16 -7
  19. package/build/cjs/ai/mastra/index.js.map +1 -1
  20. package/build/cjs/ai/mastra/span-registry.js +20 -0
  21. package/build/cjs/ai/mastra/span-registry.js.map +1 -0
  22. package/build/cjs/ai/mistral/constants.js +20 -0
  23. package/build/cjs/ai/mistral/constants.js.map +1 -0
  24. package/build/cjs/ai/mistral/index.js +130 -0
  25. package/build/cjs/ai/mistral/index.js.map +1 -0
  26. package/build/cjs/ai/mistral/streaming.js +208 -0
  27. package/build/cjs/ai/mistral/streaming.js.map +1 -0
  28. package/build/cjs/ai/mistral/utils.js +87 -0
  29. package/build/cjs/ai/mistral/utils.js.map +1 -0
  30. package/build/cjs/ai/vercel-ai/index.js +6 -1
  31. package/build/cjs/ai/vercel-ai/index.js.map +1 -1
  32. package/build/cjs/ai/workers-ai/index.js +1 -4
  33. package/build/cjs/ai/workers-ai/index.js.map +1 -1
  34. package/build/cjs/ai/workers-ai/streaming.js +2 -3
  35. package/build/cjs/ai/workers-ai/streaming.js.map +1 -1
  36. package/build/cjs/ai/workers-ai/utils.js +2 -27
  37. package/build/cjs/ai/workers-ai/utils.js.map +1 -1
  38. package/build/cjs/eve.js +20 -0
  39. package/build/cjs/eve.js.map +1 -0
  40. package/build/cjs/index.js +55 -44
  41. package/build/cjs/index.js.map +1 -1
  42. package/build/cjs/index.no-diagnostic-channels.js +19 -14
  43. package/build/cjs/index.no-diagnostic-channels.js.map +1 -1
  44. package/build/cjs/integrations/aws-sdk/constants.js +0 -2
  45. package/build/cjs/integrations/aws-sdk/constants.js.map +1 -1
  46. package/build/cjs/integrations/aws-sdk/services/lambda.js +1 -1
  47. package/build/cjs/integrations/aws-sdk/services/lambda.js.map +1 -1
  48. package/build/cjs/integrations/aws-sdk/services/sns.js +1 -1
  49. package/build/cjs/integrations/aws-sdk/services/sns.js.map +1 -1
  50. package/build/cjs/integrations/fastify/index.js.map +1 -1
  51. package/build/cjs/integrations/fastify/instrumentation.js.map +1 -1
  52. package/build/cjs/integrations/index.js +6 -0
  53. package/build/cjs/integrations/index.js.map +1 -1
  54. package/build/cjs/integrations/knex.js +5 -3
  55. package/build/cjs/integrations/knex.js.map +1 -1
  56. package/build/cjs/integrations/koa/index.js +2 -8
  57. package/build/cjs/integrations/koa/index.js.map +1 -1
  58. package/build/cjs/integrations/langchain.js +7 -1
  59. package/build/cjs/integrations/langchain.js.map +1 -1
  60. package/build/cjs/integrations/mastra.js +65 -2
  61. package/build/cjs/integrations/mastra.js.map +1 -1
  62. package/build/cjs/integrations/mistral.js +81 -0
  63. package/build/cjs/integrations/mistral.js.map +1 -0
  64. package/build/cjs/integrations/mysql.js +3 -3
  65. package/build/cjs/integrations/mysql.js.map +1 -1
  66. package/build/cjs/integrations/mysql2/index.js +3 -3
  67. package/build/cjs/integrations/mysql2/index.js.map +1 -1
  68. package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js +1 -2
  69. package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
  70. package/build/cjs/integrations/postgres.js +3 -3
  71. package/build/cjs/integrations/postgres.js.map +1 -1
  72. package/build/cjs/integrations/prisma/tracing-helper.js +1 -1
  73. package/build/cjs/integrations/prisma/tracing-helper.js.map +1 -1
  74. package/build/cjs/integrations/tedious.js +4 -3
  75. package/build/cjs/integrations/tedious.js.map +1 -1
  76. package/build/cjs/integrations/vercel-ai/util.js +0 -4
  77. package/build/cjs/integrations/vercel-ai/util.js.map +1 -1
  78. package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js +23 -1
  79. package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  80. package/build/cjs/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js +2 -1
  81. package/build/cjs/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
  82. package/build/cjs/orchestrion/bundler/options.js +1 -0
  83. package/build/cjs/orchestrion/bundler/options.js.map +1 -1
  84. package/build/cjs/orchestrion/bundler/rollup.js +6 -2
  85. package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
  86. package/build/cjs/orchestrion/channels.js +2 -0
  87. package/build/cjs/orchestrion/channels.js.map +1 -1
  88. package/build/cjs/orchestrion/config/channel-integration-definitions.js +1 -0
  89. package/build/cjs/orchestrion/config/channel-integration-definitions.js.map +1 -1
  90. package/build/cjs/orchestrion/config/index.js +10 -0
  91. package/build/cjs/orchestrion/config/index.js.map +1 -1
  92. package/build/cjs/orchestrion/config/mastra.js +14 -2
  93. package/build/cjs/orchestrion/config/mastra.js.map +1 -1
  94. package/build/cjs/orchestrion/config/mistral.js +57 -0
  95. package/build/cjs/orchestrion/config/mistral.js.map +1 -0
  96. package/build/cjs/tracing-channel.js +1 -0
  97. package/build/cjs/tracing-channel.js.map +1 -1
  98. package/build/cjs/utils/sql.js +68 -15
  99. package/build/cjs/utils/sql.js.map +1 -1
  100. package/build/esm/ai/core/utils.js +42 -3
  101. package/build/esm/ai/core/utils.js.map +1 -1
  102. package/build/esm/ai/flue/constants.js +11 -0
  103. package/build/esm/ai/flue/constants.js.map +1 -0
  104. package/build/esm/ai/flue/index.js +113 -0
  105. package/build/esm/ai/flue/index.js.map +1 -0
  106. package/build/esm/ai/flue/utils.js +193 -0
  107. package/build/esm/ai/flue/utils.js.map +1 -0
  108. package/build/esm/ai/google-genai/index.js +12 -10
  109. package/build/esm/ai/google-genai/index.js.map +1 -1
  110. package/build/esm/ai/google-genai/streaming.js +9 -1
  111. package/build/esm/ai/google-genai/streaming.js.map +1 -1
  112. package/build/esm/ai/google-genai/utils.js +117 -11
  113. package/build/esm/ai/google-genai/utils.js.map +1 -1
  114. package/build/esm/ai/mastra/constants.js +2 -1
  115. package/build/esm/ai/mastra/constants.js.map +1 -1
  116. package/build/esm/ai/mastra/index.js +14 -5
  117. package/build/esm/ai/mastra/index.js.map +1 -1
  118. package/build/esm/ai/mastra/span-registry.js +16 -0
  119. package/build/esm/ai/mastra/span-registry.js.map +1 -0
  120. package/build/esm/ai/mistral/constants.js +15 -0
  121. package/build/esm/ai/mistral/constants.js.map +1 -0
  122. package/build/esm/ai/mistral/index.js +126 -0
  123. package/build/esm/ai/mistral/index.js.map +1 -0
  124. package/build/esm/ai/mistral/streaming.js +205 -0
  125. package/build/esm/ai/mistral/streaming.js.map +1 -0
  126. package/build/esm/ai/mistral/utils.js +82 -0
  127. package/build/esm/ai/mistral/utils.js.map +1 -0
  128. package/build/esm/ai/vercel-ai/index.js +6 -1
  129. package/build/esm/ai/vercel-ai/index.js.map +1 -1
  130. package/build/esm/ai/workers-ai/index.js +2 -5
  131. package/build/esm/ai/workers-ai/index.js.map +1 -1
  132. package/build/esm/ai/workers-ai/streaming.js +1 -2
  133. package/build/esm/ai/workers-ai/streaming.js.map +1 -1
  134. package/build/esm/ai/workers-ai/utils.js +2 -27
  135. package/build/esm/ai/workers-ai/utils.js.map +1 -1
  136. package/build/esm/eve.js +18 -0
  137. package/build/esm/eve.js.map +1 -0
  138. package/build/esm/index.js +6 -1
  139. package/build/esm/index.js.map +1 -1
  140. package/build/esm/index.no-diagnostic-channels.js +3 -1
  141. package/build/esm/index.no-diagnostic-channels.js.map +1 -1
  142. package/build/esm/integrations/aws-sdk/constants.js +1 -2
  143. package/build/esm/integrations/aws-sdk/constants.js.map +1 -1
  144. package/build/esm/integrations/aws-sdk/services/lambda.js +2 -2
  145. package/build/esm/integrations/aws-sdk/services/lambda.js.map +1 -1
  146. package/build/esm/integrations/aws-sdk/services/sns.js +3 -3
  147. package/build/esm/integrations/aws-sdk/services/sns.js.map +1 -1
  148. package/build/esm/integrations/fastify/index.js.map +1 -1
  149. package/build/esm/integrations/fastify/instrumentation.js.map +1 -1
  150. package/build/esm/integrations/index.js +6 -0
  151. package/build/esm/integrations/index.js.map +1 -1
  152. package/build/esm/integrations/knex.js +6 -4
  153. package/build/esm/integrations/knex.js.map +1 -1
  154. package/build/esm/integrations/koa/index.js +3 -9
  155. package/build/esm/integrations/koa/index.js.map +1 -1
  156. package/build/esm/integrations/langchain.js +7 -1
  157. package/build/esm/integrations/langchain.js.map +1 -1
  158. package/build/esm/integrations/mastra.js +67 -4
  159. package/build/esm/integrations/mastra.js.map +1 -1
  160. package/build/esm/integrations/mistral.js +66 -0
  161. package/build/esm/integrations/mistral.js.map +1 -0
  162. package/build/esm/integrations/mysql.js +4 -4
  163. package/build/esm/integrations/mysql.js.map +1 -1
  164. package/build/esm/integrations/mysql2/index.js +4 -4
  165. package/build/esm/integrations/mysql2/index.js.map +1 -1
  166. package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js +2 -3
  167. package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
  168. package/build/esm/integrations/postgres.js +4 -4
  169. package/build/esm/integrations/postgres.js.map +1 -1
  170. package/build/esm/integrations/prisma/tracing-helper.js +2 -2
  171. package/build/esm/integrations/prisma/tracing-helper.js.map +1 -1
  172. package/build/esm/integrations/tedious.js +5 -4
  173. package/build/esm/integrations/tedious.js.map +1 -1
  174. package/build/esm/integrations/vercel-ai/util.js +1 -4
  175. package/build/esm/integrations/vercel-ai/util.js.map +1 -1
  176. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +24 -2
  177. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  178. package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js +2 -1
  179. package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
  180. package/build/esm/orchestrion/bundler/options.js +1 -0
  181. package/build/esm/orchestrion/bundler/options.js.map +1 -1
  182. package/build/esm/orchestrion/bundler/rollup.js +6 -2
  183. package/build/esm/orchestrion/bundler/rollup.js.map +1 -1
  184. package/build/esm/orchestrion/channels.js +2 -0
  185. package/build/esm/orchestrion/channels.js.map +1 -1
  186. package/build/esm/orchestrion/config/channel-integration-definitions.js +1 -0
  187. package/build/esm/orchestrion/config/channel-integration-definitions.js.map +1 -1
  188. package/build/esm/orchestrion/config/index.js +9 -1
  189. package/build/esm/orchestrion/config/index.js.map +1 -1
  190. package/build/esm/orchestrion/config/mastra.js +14 -2
  191. package/build/esm/orchestrion/config/mastra.js.map +1 -1
  192. package/build/esm/orchestrion/config/mistral.js +53 -0
  193. package/build/esm/orchestrion/config/mistral.js.map +1 -0
  194. package/build/esm/package.json +1 -1
  195. package/build/esm/tracing-channel.js +1 -1
  196. package/build/esm/tracing-channel.js.map +1 -1
  197. package/build/esm/utils/sql.js +67 -16
  198. package/build/esm/utils/sql.js.map +1 -1
  199. package/build/types/ai/core/utils.d.ts +28 -0
  200. package/build/types/ai/core/utils.d.ts.map +1 -1
  201. package/build/types/ai/flue/constants.d.ts +35 -0
  202. package/build/types/ai/flue/constants.d.ts.map +1 -0
  203. package/build/types/ai/flue/index.d.ts +18 -0
  204. package/build/types/ai/flue/index.d.ts.map +1 -0
  205. package/build/types/ai/flue/types.d.ts +118 -0
  206. package/build/types/ai/flue/types.d.ts.map +1 -0
  207. package/build/types/ai/flue/utils.d.ts +38 -0
  208. package/build/types/ai/flue/utils.d.ts.map +1 -0
  209. package/build/types/ai/google-genai/index.d.ts.map +1 -1
  210. package/build/types/ai/google-genai/streaming.d.ts.map +1 -1
  211. package/build/types/ai/google-genai/utils.d.ts +28 -4
  212. package/build/types/ai/google-genai/utils.d.ts.map +1 -1
  213. package/build/types/ai/index.d.ts +3 -0
  214. package/build/types/ai/index.d.ts.map +1 -1
  215. package/build/types/ai/mastra/constants.d.ts +2 -0
  216. package/build/types/ai/mastra/constants.d.ts.map +1 -1
  217. package/build/types/ai/mastra/index.d.ts +2 -0
  218. package/build/types/ai/mastra/index.d.ts.map +1 -1
  219. package/build/types/ai/mastra/span-registry.d.ts +5 -0
  220. package/build/types/ai/mastra/span-registry.d.ts.map +1 -0
  221. package/build/types/ai/mistral/constants.d.ts +30 -0
  222. package/build/types/ai/mistral/constants.d.ts.map +1 -0
  223. package/build/types/ai/mistral/index.d.ts +20 -0
  224. package/build/types/ai/mistral/index.d.ts.map +1 -0
  225. package/build/types/ai/mistral/streaming.d.ts +24 -0
  226. package/build/types/ai/mistral/streaming.d.ts.map +1 -0
  227. package/build/types/ai/mistral/types.d.ts +39 -0
  228. package/build/types/ai/mistral/types.d.ts.map +1 -0
  229. package/build/types/ai/mistral/utils.d.ts +20 -0
  230. package/build/types/ai/mistral/utils.d.ts.map +1 -0
  231. package/build/types/ai/vercel-ai/index.d.ts.map +1 -1
  232. package/build/types/ai/workers-ai/index.d.ts.map +1 -1
  233. package/build/types/ai/workers-ai/utils.d.ts +2 -14
  234. package/build/types/ai/workers-ai/utils.d.ts.map +1 -1
  235. package/build/types/eve.d.ts +47 -0
  236. package/build/types/eve.d.ts.map +1 -0
  237. package/build/types/exports.d.ts +1 -1
  238. package/build/types/exports.d.ts.map +1 -1
  239. package/build/types/index.d.ts +5 -0
  240. package/build/types/index.d.ts.map +1 -1
  241. package/build/types/integrations/aws-sdk/constants.d.ts +2 -3
  242. package/build/types/integrations/aws-sdk/constants.d.ts.map +1 -1
  243. package/build/types/integrations/aws-sdk/services/lambda.d.ts.map +1 -1
  244. package/build/types/integrations/aws-sdk/services/sns.d.ts.map +1 -1
  245. package/build/types/integrations/fastify/index.d.ts +1 -1
  246. package/build/types/integrations/fastify/instrumentation.d.ts +1 -1
  247. package/build/types/integrations/index.d.ts.map +1 -1
  248. package/build/types/integrations/knex.d.ts.map +1 -1
  249. package/build/types/integrations/koa/index.d.ts.map +1 -1
  250. package/build/types/integrations/langchain.d.ts.map +1 -1
  251. package/build/types/integrations/mastra.d.ts.map +1 -1
  252. package/build/types/integrations/mistral.d.ts +7 -0
  253. package/build/types/integrations/mistral.d.ts.map +1 -0
  254. package/build/types/integrations/postgres.d.ts.map +1 -1
  255. package/build/types/integrations/tedious.d.ts.map +1 -1
  256. package/build/types/integrations/vercel-ai/util.d.ts +2 -2
  257. package/build/types/integrations/vercel-ai/util.d.ts.map +1 -1
  258. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
  259. package/build/types/orchestrion/bundler/options.d.ts +9 -0
  260. package/build/types/orchestrion/bundler/options.d.ts.map +1 -1
  261. package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -1
  262. package/build/types/orchestrion/channels.d.ts +9 -3
  263. package/build/types/orchestrion/channels.d.ts.map +1 -1
  264. package/build/types/orchestrion/config/channel-integration-definitions.d.ts +3 -0
  265. package/build/types/orchestrion/config/channel-integration-definitions.d.ts.map +1 -1
  266. package/build/types/orchestrion/config/index.d.ts +41 -0
  267. package/build/types/orchestrion/config/index.d.ts.map +1 -1
  268. package/build/types/orchestrion/config/mastra.d.ts +1 -0
  269. package/build/types/orchestrion/config/mastra.d.ts.map +1 -1
  270. package/build/types/orchestrion/config/mistral.d.ts +46 -0
  271. package/build/types/orchestrion/config/mistral.d.ts.map +1 -0
  272. package/build/types/orchestrion/config/mongodb.d.ts +2 -2
  273. package/build/types/orchestrion/config/pg.d.ts +1 -1
  274. package/build/types/tracing-channel.d.ts +8 -0
  275. package/build/types/tracing-channel.d.ts.map +1 -1
  276. package/build/types/utils/sql.d.ts +23 -4
  277. package/build/types/utils/sql.d.ts.map +1 -1
  278. package/package.json +3 -3
@@ -24,6 +24,15 @@ export type PluginOptions = {
24
24
  * run.
25
25
  */
26
26
  customTransforms?: Record<string, CustomTransform>;
27
+ /**
28
+ * Module specifier the transformed code imports its `tracingChannel` from, in
29
+ * place of `node:diagnostics_channel`. The Cloudflare build points this at a
30
+ * workerd-safe façade so channels wrapped at module scope don't throw. This is
31
+ * global — `code-transformer` ignores per-config `dcModule` (the matcher's value
32
+ * overwrites it) — but the façade delegates transparently in a request, so
33
+ * routing every channel through it is harmless.
34
+ */
35
+ dcModule?: string;
27
36
  };
28
37
  /**
29
38
  * Whether an "external" config entry covers an instrumented module: an exact
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/options.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,iCAAiC,EAAE,MAAM,2BAA2B,CAAC;AACxG,OAAO,KAAK,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAExG,OAAO,EAAE,iCAAiC,EAAE,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC3C;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;CACpD,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAErF;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,mBAAmB,EAAE,MAAM,EAAE,GAAG,MAAM,CAMhF;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,aAAa,EACtB,EAAE,iBAAwB,EAAE,GAAE;IAAE,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAAO,GACjE,4BAA4B,CAM9B"}
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/options.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,iCAAiC,EAAE,MAAM,2BAA2B,CAAC;AACxG,OAAO,KAAK,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAExG,OAAO,EAAE,iCAAiC,EAAE,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC3C;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACnD;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAErF;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,mBAAmB,EAAE,MAAM,EAAE,GAAG,MAAM,CAMhF;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,aAAa,EACtB,EAAE,iBAAwB,EAAE,GAAE;IAAE,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAAO,GACjE,4BAA4B,CAO9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"rollup.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/rollup.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAwD,MAAM,EAAiB,MAAM,QAAQ,CAAC;AAE1G,YAAY,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,QAAQ,CAAC;AAErD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAoB/C;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,aAAkB,GAAG,MAAM,CAkD3E"}
1
+ {"version":3,"file":"rollup.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/rollup.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAIV,MAAM,EAGP,MAAM,QAAQ,CAAC;AAEhB,YAAY,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,QAAQ,CAAC;AAErD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAoB/C;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,aAAkB,GAAG,MAAM,CA2D3E"}
@@ -15,6 +15,9 @@
15
15
  * points rather than all appending to the end (fewer merge conflicts).
16
16
  */
17
17
  export declare const CHANNELS: {
18
+ readonly AWS_SMITHY_CORE_SEND: 'orchestrion:@smithy/core:send';
19
+ readonly AWS_SMITHY_CLIENT_SEND: 'orchestrion:@smithy/smithy-client:send';
20
+ readonly AWS_SDK_SMITHY_CLIENT_SEND: 'orchestrion:@aws-sdk/smithy-client:send';
18
21
  readonly AMQPLIB_PUBLISH: 'orchestrion:amqplib:publish';
19
22
  readonly AMQPLIB_CONFIRM_PUBLISH: 'orchestrion:amqplib:confirmPublish';
20
23
  readonly AMQPLIB_CONSUME: 'orchestrion:amqplib:consume';
@@ -27,9 +30,6 @@ export declare const CHANNELS: {
27
30
  readonly AMQPLIB_CONNECT: 'orchestrion:amqplib:connect';
28
31
  readonly ANTHROPIC_CHAT: 'orchestrion:@anthropic-ai/sdk:chat';
29
32
  readonly ANTHROPIC_MESSAGES_STREAM: 'orchestrion:@anthropic-ai/sdk:messages-stream';
30
- readonly AWS_SMITHY_CORE_SEND: 'orchestrion:@smithy/core:send';
31
- readonly AWS_SMITHY_CLIENT_SEND: 'orchestrion:@smithy/smithy-client:send';
32
- readonly AWS_SDK_SMITHY_CLIENT_SEND: 'orchestrion:@aws-sdk/smithy-client:send';
33
33
  readonly DATALOADER_CONSTRUCT: 'orchestrion:dataloader:construct';
34
34
  readonly DATALOADER_LOAD: 'orchestrion:dataloader:load';
35
35
  readonly DATALOADER_LOAD_MANY: 'orchestrion:dataloader:loadMany';
@@ -82,6 +82,12 @@ export declare const CHANNELS: {
82
82
  readonly LANGGRAPH_CREATE_REACT_AGENT: 'orchestrion:@langchain/langgraph:createReactAgent';
83
83
  readonly LRU_MEMOIZER_LOAD: 'orchestrion:lru-memoizer:load';
84
84
  readonly MASTRA_CONSTRUCTOR: 'orchestrion:@mastra/core:mastraConstructor';
85
+ readonly MASTRA_EXECUTE_WITH_CONTEXT: 'orchestrion:@mastra/core:mastraExecuteWithContext';
86
+ readonly MISTRAL_CHAT: 'orchestrion:@mistralai/mistralai:chat';
87
+ readonly MISTRAL_CHAT_STREAM: 'orchestrion:@mistralai/mistralai:chat-stream';
88
+ readonly MISTRAL_EMBEDDINGS: 'orchestrion:@mistralai/mistralai:embeddings';
89
+ readonly MISTRAL_AGENTS: 'orchestrion:@mistralai/mistralai:agents';
90
+ readonly MISTRAL_AGENTS_STREAM: 'orchestrion:@mistralai/mistralai:agents-stream';
85
91
  readonly MONGODB_COMMAND: 'orchestrion:mongodb:command';
86
92
  readonly MONGODB_CHECKOUT: 'orchestrion:mongodb:checkout';
87
93
  readonly MONGODB_V3_INSERT: 'orchestrion:mongodb:v3_insert';
@@ -1 +1 @@
1
- {"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/channels.ts"],"names":[],"mappings":"AA+BA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BX,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/channels.ts"],"names":[],"mappings":"AAgCA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCX,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC"}
@@ -54,6 +54,9 @@ export declare const CHANNEL_INTEGRATION_DEFINITIONS: readonly [{
54
54
  }, {
55
55
  readonly exportName: 'googleGenAIIntegration';
56
56
  readonly modules: readonly ["@google/genai"];
57
+ }, {
58
+ readonly exportName: 'mistralAIIntegration';
59
+ readonly modules: readonly ["@mistralai/mistralai"];
57
60
  }, {
58
61
  readonly exportName: 'vercelAIIntegration';
59
62
  readonly modules: readonly ["ai"];
@@ -1 +1 @@
1
- {"version":3,"file":"channel-integration-definitions.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/channel-integration-definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,+BAA+B;yBAC5B,qBAAqB;;;yBACrB,uBAAuB;;;yBACvB,kBAAkB;;;yBAClB,mBAAmB;;;yBACnB,kBAAkB;;;yBAClB,qBAAqB;;;yBACrB,iBAAiB;;;yBACjB,oBAAoB;;;yBACpB,wBAAwB;;;yBACxB,wBAAwB;;;yBACxB,mBAAmB;;;yBACnB,wBAAwB;;;yBACxB,wBAAwB;;;yBACxB,qBAAqB;;;yBAErB,sBAAsB;;;yBAStB,sBAAsB;;;yBACtB,mBAAmB;;;yBACnB,gBAAgB;;;yBAChB,qBAAqB;;;yBACrB,oBAAoB;;;yBACpB,iBAAiB;;;yBACjB,gBAAgB;;;yBAChB,oBAAoB;;;yBACpB,oBAAoB;;;yBACpB,kBAAkB;;;yBAClB,kBAAkB;;;yBAClB,uBAAuB;;EAC+C,CAAC;AAEvF,8EAA8E;AAC9E,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEhF"}
1
+ {"version":3,"file":"channel-integration-definitions.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/channel-integration-definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,+BAA+B;yBAC5B,qBAAqB;;;yBACrB,uBAAuB;;;yBACvB,kBAAkB;;;yBAClB,mBAAmB;;;yBACnB,kBAAkB;;;yBAClB,qBAAqB;;;yBACrB,iBAAiB;;;yBACjB,oBAAoB;;;yBACpB,wBAAwB;;;yBACxB,wBAAwB;;;yBACxB,mBAAmB;;;yBACnB,wBAAwB;;;yBACxB,wBAAwB;;;yBACxB,sBAAsB;;;yBACtB,qBAAqB;;;yBAErB,sBAAsB;;;yBAStB,sBAAsB;;;yBACtB,mBAAmB;;;yBACnB,gBAAgB;;;yBAChB,qBAAqB;;;yBACrB,oBAAoB;;;yBACpB,iBAAiB;;;yBACjB,gBAAgB;;;yBAChB,oBAAoB;;;yBACpB,oBAAoB;;;yBACpB,kBAAkB;;;yBAClB,kBAAkB;;;yBAClB,uBAAuB;;EAC+C,CAAC;AAEvF,8EAA8E;AAC9E,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEhF"}
@@ -13,6 +13,35 @@ import type { InstrumentationConfig } from '../apmTypes';
13
13
  * any module-level mutable state here would silently diverge between those copies.
14
14
  */
15
15
  export declare const SENTRY_INSTRUMENTATIONS: InstrumentationConfig[];
16
+ /**
17
+ * The subset of {@link SENTRY_INSTRUMENTATIONS} the RUNTIME loader
18
+ * (`@sentry/server-runtime-injection`'s `register`, reached via `--import` or
19
+ * `Sentry.init()`) can actually apply.
20
+ *
21
+ * Registration-only configs (native-channel libraries such as `ai` v7,
22
+ * `ioredis`, `@redis/client`, `mysql2`, `mongoose`) carry the custom
23
+ * `MODULE_REGISTRATION_TRANSFORM` operator. That operator is wired into the
24
+ * BUNDLER plugins only (see `orchestrion/bundler/moduleInjectedTransform.ts`,
25
+ * applied via `bundler/options.ts`'s `customTransforms`); the runtime loader's
26
+ * `initialize()` receives no custom transforms. Attempting one of these at
27
+ * runtime therefore throws `TypeError: transform is not a function`, which the
28
+ * loader misreports as the always-on "`@sentry/server-runtime-injection` was
29
+ * bundled ... loads uninstrumented" warning even though nothing is wrong.
30
+ *
31
+ * Excluding them at runtime is correct, not just a way to silence the warning:
32
+ * these libraries publish their own tracing channels, and their integrations
33
+ * subscribe through `setupOnce()` / `waitForTracingChannelBinding`,
34
+ * independently of the module-injected snippet. That snippet only fires
35
+ * `orchestrion.module-injected`, which drives the `setup()` /
36
+ * `invokeOrchestrionInstrumentation` path; for a native-channel version that
37
+ * path subscribes to the injected `orchestrion:*` channels the library never
38
+ * publishes — a no-op. So running these at runtime would add no spans. The
39
+ * snippet earns its keep only on the BUNDLER path — notably bundler-only SDKs
40
+ * (e.g. `@sentry/cloudflare`) that discover a loaded module via that event to
41
+ * instantiate its integration factory. `@sentry/node` registers its
42
+ * integrations statically, so it does not need it.
43
+ */
44
+ export declare const SENTRY_RUNTIME_INSTRUMENTATIONS: InstrumentationConfig[];
16
45
  /**
17
46
  * The unique set of package names instrumented by `SENTRY_INSTRUMENTATIONS`
18
47
  * merged with any caller-provided `instrumentations` (e.g. `['mysql']`).
@@ -27,6 +56,18 @@ export declare const SENTRY_INSTRUMENTATIONS: InstrumentationConfig[];
27
56
  export declare function instrumentedModuleNames(instrumentations?: InstrumentationConfig[]): string[];
28
57
  /** The instrumented module names from the default Sentry config, with no custom additions. */
29
58
  export declare const INSTRUMENTED_MODULE_NAMES: string[];
59
+ /**
60
+ * The package names the SDK instruments through the orchestrion module transform (its
61
+ * diagnostics-channel injection). Pass these to a server bundler's "keep external" option so the
62
+ * packages load through Node's module loader — the only path the transform can hook — instead of
63
+ * being inlined into the server bundle. A framework that has no Sentry bundler plugin (e.g. eve, via
64
+ * `build.externalDependencies`) is the main caller; a listed package the app doesn't use is simply
65
+ * ignored by the bundler.
66
+ *
67
+ * Unlike {@link INSTRUMENTED_MODULE_NAMES}, this is the plain instrumented set with no bundler-only
68
+ * additions — those force a helper package to be *bundled*, the opposite of keeping it external.
69
+ */
70
+ export declare function getInstrumentedModuleNames(): string[];
30
71
  /**
31
72
  * Returns `external` with any instrumented packages removed, so a bundler that
32
73
  * uses an "external" denylist (esbuild, Bun, Rollup) still bundles — and thus
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAqCzD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,EA+B1D,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,gBAAgB,GAAE,qBAAqB,EAAO,GAAG,MAAM,EAAE,CAOhG;AAED,8FAA8F;AAC9F,eAAO,MAAM,yBAAyB,EAAE,MAAM,EAA8B,CAAC;AAE7E;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EACvC,WAAW,GAAE,MAAM,EAA8B,GAChD,MAAM,EAAE,GAAG,SAAS,CAKtB;AAGD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAsCzD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,EAgC1D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,+BAA+B,EAAE,qBAAqB,EAElE,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,gBAAgB,GAAE,qBAAqB,EAAO,GAAG,MAAM,EAAE,CAOhG;AAED,8FAA8F;AAC9F,eAAO,MAAM,yBAAyB,EAAE,MAAM,EAA8B,CAAC;AAE7E;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,IAAI,MAAM,EAAE,CAErD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EACvC,WAAW,GAAE,MAAM,EAA8B,GAChD,MAAM,EAAE,GAAG,SAAS,CAKtB;AAGD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
@@ -3,5 +3,6 @@ export declare const mastraConfig: InstrumentationConfig[];
3
3
  export declare const mastraModuleNames: string[];
4
4
  export declare const mastraChannels: {
5
5
  readonly MASTRA_CONSTRUCTOR: 'orchestrion:@mastra/core:mastraConstructor';
6
+ readonly MASTRA_EXECUTE_WITH_CONTEXT: 'orchestrion:@mastra/core:mastraExecuteWithContext';
6
7
  };
7
8
  //# sourceMappingURL=mastra.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mastra.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/mastra.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAwBzD,eAAO,MAAM,YAAY,yBAA4D,CAAC;AAEtF,eAAO,MAAM,iBAAiB,UAA+B,CAAC;AAE9D,eAAO,MAAM,cAAc;aACzB,kBAAkB,EAAE,4CAA4C;CACxD,CAAC"}
1
+ {"version":3,"file":"mastra.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/mastra.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AA2CzD,eAAO,MAAM,YAAY,yBAAyF,CAAC;AAEnH,eAAO,MAAM,iBAAiB,UAA+B,CAAC;AAE9D,eAAO,MAAM,cAAc;aACzB,kBAAkB,EAAE,4CAA4C;aAChE,2BAA2B,EAAE,mDAAmD;CACxE,CAAC"}
@@ -0,0 +1,46 @@
1
+ export declare const mistralConfig: ({
2
+ channelName: string;
3
+ module: {
4
+ readonly name: '@mistralai/mistralai';
5
+ readonly versionRange: '>=2.0.0 <3';
6
+ readonly filePath: 'esm/sdk/chat.js';
7
+ };
8
+ functionQuery: {
9
+ className: string;
10
+ methodName: string;
11
+ kind: 'Auto';
12
+ };
13
+ } | {
14
+ channelName: string;
15
+ module: {
16
+ name: '@mistralai/mistralai';
17
+ versionRange: '>=2.0.0 <3';
18
+ filePath: string;
19
+ };
20
+ functionQuery: {
21
+ className: string;
22
+ methodName: string;
23
+ kind: 'Auto';
24
+ };
25
+ } | {
26
+ channelName: string;
27
+ module: {
28
+ readonly name: '@mistralai/mistralai';
29
+ readonly versionRange: '>=2.0.0 <3';
30
+ readonly filePath: 'esm/sdk/agents.js';
31
+ };
32
+ functionQuery: {
33
+ className: string;
34
+ methodName: string;
35
+ kind: 'Auto';
36
+ };
37
+ })[];
38
+ export declare const mistralModuleNames: string[];
39
+ export declare const mistralChannels: {
40
+ readonly MISTRAL_CHAT: 'orchestrion:@mistralai/mistralai:chat';
41
+ readonly MISTRAL_CHAT_STREAM: 'orchestrion:@mistralai/mistralai:chat-stream';
42
+ readonly MISTRAL_EMBEDDINGS: 'orchestrion:@mistralai/mistralai:embeddings';
43
+ readonly MISTRAL_AGENTS: 'orchestrion:@mistralai/mistralai:agents';
44
+ readonly MISTRAL_AGENTS_STREAM: 'orchestrion:@mistralai/mistralai:agents-stream';
45
+ };
46
+ //# sourceMappingURL=mistral.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mistral.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/mistral.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,aAAa;;;uBAPH,sBAAsB;+BAAgB,YAAY;2BAEhC,iBAAiB;;;QASrC,SAAS;QAAU,UAAU;QAAc,IAAI,EAAE,MAAM;;;;;cAXrD,sBAAsB;sBAAgB,YAAY;;;;QA+BpD,SAAS;QAAgB,UAAU;QAAY,IAAI,EAAE,MAAM;;;;;uBA/BzD,sBAAsB;+BAAgB,YAAY;2BAG9B,mBAAmB;;;QAiCzC,SAAS;QAAY,UAAU;QAAc,IAAI,EAAE,MAAM;;IAO3C,CAAC;AAEpC,eAAO,MAAM,kBAAkB,UAAgC,CAAC;AAEhE,eAAO,MAAM,eAAe;aAC1B,YAAY,EAAE,uCAAuC;aACrD,mBAAmB,EAAE,8CAA8C;aACnE,kBAAkB,EAAE,6CAA6C;aACjE,cAAc,EAAE,yCAAyC;aACzD,qBAAqB,EAAE,gDAAgD;CAC/D,CAAC"}
@@ -6,9 +6,9 @@ export declare const mongodbConfig: ({
6
6
  filePath: string;
7
7
  };
8
8
  functionQuery: {
9
- functionName?: undefined;
10
9
  methodName: string;
11
10
  kind: "Async";
11
+ functionName?: undefined;
12
12
  };
13
13
  } | {
14
14
  channelName: string;
@@ -18,9 +18,9 @@ export declare const mongodbConfig: ({
18
18
  filePath: string;
19
19
  };
20
20
  functionQuery: {
21
- functionName?: undefined;
22
21
  methodName: string;
23
22
  kind: "Callback";
23
+ functionName?: undefined;
24
24
  };
25
25
  } | {
26
26
  channelName: string;
@@ -6,10 +6,10 @@ export declare const pgConfig: ({
6
6
  filePath: string;
7
7
  };
8
8
  functionQuery: {
9
+ expressionName?: undefined;
9
10
  className: string;
10
11
  methodName: string;
11
12
  kind: "Auto";
12
- expressionName?: undefined;
13
13
  };
14
14
  } | {
15
15
  channelName: string;
@@ -72,4 +72,12 @@ export declare function safeChannelCallback<T>(fn: () => T): T | undefined;
72
72
  * loop's per-step events, where ending a freshly opened span would close the parent prematurely.
73
73
  */
74
74
  export declare function bindTracingChannelToSpan<TData extends object>(channel: TracingChannel<TData, TData>, getSpan: (data: TracingChannelPayloadWithSpan<TData>) => Span | undefined, opts?: TracingChannelLifeCycleOptions<TData>): TracingChannelBindingHandle<TData>;
75
+ /**
76
+ * Bind a span into the channel's async context so it becomes active for the traced operation,
77
+ * without managing its lifecycle. The primitive behind {@link bindTracingChannelToSpan}, which
78
+ * layers span-ending and error handling on top.
79
+ *
80
+ * `getSpan` may return `undefined` to leave the active context untouched for that payload.
81
+ */
82
+ export declare function bindSpanToChannelStore<TData extends object>(channel: TracingChannel<TData, TData>, getSpan: (data: TracingChannelPayloadWithSpan<TData>) => Span | undefined, opts?: Pick<TracingChannelLifeCycleOptions, 'requiresParentSpan'>): TracingChannelBindingHandle<TData>;
75
83
  //# sourceMappingURL=tracing-channel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tracing-channel.d.ts","sourceRoot":"","sources":["../../src/tracing-channel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAE1F,OAAO,KAAK,EAAE,kCAAkC,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAgB7E,MAAM,MAAM,6BAA6B,CAAC,KAAK,SAAS,MAAM,IAAI,KAAK,GAAG;IACxE;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CA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CAAC,CA0FpC;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,SAAS,MAAM,EACzD,OAAO,EAAE,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,EACrC,OAAO,EAAE,CAAC,IAAI,EAAE,6BAA6B,CAAC,KAAK,CAAC,KAAK,IAAI,GAAG,SAAS,EACzE,IAAI,CAAC,EAAE,IAAI,CAAC,8BAA8B,EAAE,oBAAoB,CAAC,GAChE,2BAA2B,CAAC,KAAK,CAAC,CAsDpC"}
@@ -14,21 +14,40 @@
14
14
  export declare function getSqlQuerySummary(query: string | undefined): string | undefined;
15
15
  /**
16
16
  * SQL dialect variants that matter for finding the end of a string literal:
17
- * - `standard` (PostgreSQL, SQLite): `"` quotes identifiers and `''` is the only in-string escape.
17
+ * - `standard` (PostgreSQL, SQLite): `"` quotes identifiers, `''` is the only in-string escape,
18
+ * and PostgreSQL's `$$…$$` dollar quoting opens a literal.
18
19
  * - `mysql`: `"` quotes a string literal unless `ANSI_QUOTES` is set, and `\` escapes the next
19
20
  * character unless `NO_BACKSLASH_ESCAPES` is set. Both default to off, and mysql/mysql2 escape
20
21
  * inlined values with backslashes, so this is the mode their statements arrive in.
22
+ * - `mssql`: `[...]` quotes an identifier, so a `'` inside one is part of the name. `"` quotes
23
+ * one too, unless the connection sets `QUOTED_IDENTIFIER OFF`, which tedious leaves on.
21
24
  */
22
- export type SqlDialect = 'standard' | 'mysql';
25
+ export type SqlDialect = 'standard' | 'mysql' | 'mssql';
26
+ /**
27
+ * Maps a driver or `db.system.name` value to the dialect its statements are written in. Callers
28
+ * report different spellings for one engine: knex uses the driver name, Prisma the provider name,
29
+ * and OTel the semantic-convention name. An engine we do not know about is lexed as `standard`.
30
+ */
31
+ export declare function toSqlDialect(system: unknown): SqlDialect;
23
32
  /**
24
33
  * Sanitize SQL query as per the OTEL semantic conventions
25
34
  * https://opentelemetry.io/docs/specs/semconv/database/database-spans/#sanitization-of-dbquerytext
26
35
  *
27
- * PostgreSQL $n placeholders are preserved per OTEL spec - they're parameterized queries,
28
- * not sensitive literals. Only actual values (strings, numbers, booleans) are sanitized.
36
+ * Parameter placeholders survive: PostgreSQL `$n`, SQLite `?n`, and named forms like `:name` and
37
+ * `@name`. Per the OTEL spec they mark a parameterized query, so only values (strings, numbers,
38
+ * booleans) are sanitized.
29
39
  *
30
40
  * Pass `dialect` when the statement comes from a driver whose literals are not standard-quoted;
31
41
  * see {@link SqlDialect}.
32
42
  */
33
43
  export declare function sanitizeSqlQuery(sqlQuery: string | undefined, dialect?: SqlDialect): string;
44
+ /**
45
+ * Sanitizes a collected SQL statement and derives the matching `db.query.summary`, the pair the SQL
46
+ * integrations attach to their spans. Both come back `undefined` when there is no statement, so an
47
+ * empty query omits the attributes instead of reporting the sanitizer's fallback text.
48
+ */
49
+ export declare function sanitizeSqlQueryWithSummary(sqlQuery: string | undefined, dialect?: SqlDialect): {
50
+ queryText: string | undefined;
51
+ querySummary: string | undefined;
52
+ };
34
53
  //# sourceMappingURL=sql.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sql.d.ts","sourceRoot":"","sources":["../../../src/utils/sql.ts"],"names":[],"mappings":"AAuCA;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAmDhF;AAiDD;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC;AAkG9C;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,GAAE,UAAuB,GAAG,MAAM,CAiCvG"}
1
+ {"version":3,"file":"sql.d.ts","sourceRoot":"","sources":["../../../src/utils/sql.ts"],"names":[],"mappings":"AAuCA;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAmDhF;AAsED;;;;;;;;;GASG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC;AAExD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAQxD;AAkJD;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,GAAE,UAAuB,GAAG,MAAM,CA0BvG;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,OAAO,CAAC,EAAE,UAAU,GACnB;IAAE,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAGrE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/server-utils",
3
- "version": "11.0.0-beta.2",
3
+ "version": "11.0.0-rc.0",
4
4
  "description": "Server Utilities for all Sentry JavaScript SDKs",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/server-utils",
@@ -89,8 +89,8 @@
89
89
  },
90
90
  "dependencies": {
91
91
  "@opentelemetry/api": "^1.9.1",
92
- "@sentry/conventions": "^0.20.0",
93
- "@sentry/core": "11.0.0-beta.2"
92
+ "@sentry/conventions": "^0.23.0",
93
+ "@sentry/core": "11.0.0-rc.0"
94
94
  },
95
95
  "devDependencies": {
96
96
  "@apm-js-collab/code-transformer-bundler-plugins": "^0.7.4",