@sentry/server-utils 10.66.0 → 10.67.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 (386) hide show
  1. package/build/cjs/index.js +7 -0
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/integrations/tracing-channel/aws-sdk/constants.js +16 -0
  4. package/build/cjs/integrations/tracing-channel/aws-sdk/constants.js.map +1 -0
  5. package/build/cjs/integrations/tracing-channel/aws-sdk/index.js +154 -0
  6. package/build/cjs/integrations/tracing-channel/aws-sdk/index.js.map +1 -0
  7. package/build/cjs/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js +46 -0
  8. package/build/cjs/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js.map +1 -0
  9. package/build/cjs/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js +47 -0
  10. package/build/cjs/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js.map +1 -0
  11. package/build/cjs/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js +419 -0
  12. package/build/cjs/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js.map +1 -0
  13. package/build/cjs/integrations/tracing-channel/aws-sdk/services/dynamodb.js +131 -0
  14. package/build/cjs/integrations/tracing-channel/aws-sdk/services/dynamodb.js.map +1 -0
  15. package/build/cjs/integrations/tracing-channel/aws-sdk/services/kinesis.js +21 -0
  16. package/build/cjs/integrations/tracing-channel/aws-sdk/services/kinesis.js.map +1 -0
  17. package/build/cjs/integrations/tracing-channel/aws-sdk/services/lambda.js +64 -0
  18. package/build/cjs/integrations/tracing-channel/aws-sdk/services/lambda.js.map +1 -0
  19. package/build/cjs/integrations/tracing-channel/aws-sdk/services/s3.js +21 -0
  20. package/build/cjs/integrations/tracing-channel/aws-sdk/services/s3.js.map +1 -0
  21. package/build/cjs/integrations/tracing-channel/aws-sdk/services/secretsmanager.js +27 -0
  22. package/build/cjs/integrations/tracing-channel/aws-sdk/services/secretsmanager.js.map +1 -0
  23. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sns.js +63 -0
  24. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sns.js.map +1 -0
  25. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sqs.js +116 -0
  26. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sqs.js.map +1 -0
  27. package/build/cjs/integrations/tracing-channel/aws-sdk/services/stepfunctions.js +25 -0
  28. package/build/cjs/integrations/tracing-channel/aws-sdk/services/stepfunctions.js.map +1 -0
  29. package/build/cjs/integrations/tracing-channel/aws-sdk/utils.js +30 -0
  30. package/build/cjs/integrations/tracing-channel/aws-sdk/utils.js.map +1 -0
  31. package/build/cjs/integrations/tracing-channel/express/instrumentation.js +1 -6
  32. package/build/cjs/integrations/tracing-channel/express/instrumentation.js.map +1 -1
  33. package/build/cjs/integrations/tracing-channel/koa.js +146 -0
  34. package/build/cjs/integrations/tracing-channel/koa.js.map +1 -0
  35. package/build/cjs/integrations/tracing-channel/langchain.js +63 -0
  36. package/build/cjs/integrations/tracing-channel/langchain.js.map +1 -0
  37. package/build/cjs/integrations/tracing-channel/langgraph.js +100 -0
  38. package/build/cjs/integrations/tracing-channel/langgraph.js.map +1 -0
  39. package/build/cjs/integrations/tracing-channel/mongodb.js +104 -0
  40. package/build/cjs/integrations/tracing-channel/mongodb.js.map +1 -0
  41. package/build/cjs/integrations/tracing-channel/mongoose.js +110 -0
  42. package/build/cjs/integrations/tracing-channel/mongoose.js.map +1 -0
  43. package/build/cjs/integrations/tracing-channel/openai.js +1 -3
  44. package/build/cjs/integrations/tracing-channel/openai.js.map +1 -1
  45. package/build/cjs/integrations/tracing-channel/redis.js +25 -34
  46. package/build/cjs/integrations/tracing-channel/redis.js.map +1 -1
  47. package/build/cjs/integrations/tracing-channel/tedious.js +145 -0
  48. package/build/cjs/integrations/tracing-channel/tedious.js.map +1 -0
  49. package/build/cjs/mongodb/mongodb-span.js +133 -0
  50. package/build/cjs/mongodb/mongodb-span.js.map +1 -0
  51. package/build/cjs/mongoose/index.js.map +1 -1
  52. package/build/cjs/mongoose/mongoose-legacy-span.js +40 -0
  53. package/build/cjs/mongoose/mongoose-legacy-span.js.map +1 -0
  54. package/build/cjs/orchestrion/bundler/esbuild.js +5 -1
  55. package/build/cjs/orchestrion/bundler/esbuild.js.map +1 -1
  56. package/build/cjs/orchestrion/bundler/options.js +10 -1
  57. package/build/cjs/orchestrion/bundler/options.js.map +1 -1
  58. package/build/cjs/orchestrion/bundler/rollup.js +5 -1
  59. package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
  60. package/build/cjs/orchestrion/bundler/vite.js +5 -1
  61. package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
  62. package/build/cjs/orchestrion/bundler/webpack.js +8 -4
  63. package/build/cjs/orchestrion/bundler/webpack.js.map +1 -1
  64. package/build/cjs/orchestrion/channels.js +4 -0
  65. package/build/cjs/orchestrion/channels.js.map +1 -1
  66. package/build/cjs/orchestrion/config/amqplib.js.map +1 -1
  67. package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -1
  68. package/build/cjs/orchestrion/config/aws-sdk.js +28 -0
  69. package/build/cjs/orchestrion/config/aws-sdk.js.map +1 -0
  70. package/build/cjs/orchestrion/config/dataloader.js.map +1 -1
  71. package/build/cjs/orchestrion/config/express.js +9 -8
  72. package/build/cjs/orchestrion/config/express.js.map +1 -1
  73. package/build/cjs/orchestrion/config/firebase.js.map +1 -1
  74. package/build/cjs/orchestrion/config/generic-pool.js.map +1 -1
  75. package/build/cjs/orchestrion/config/google-genai.js.map +1 -1
  76. package/build/cjs/orchestrion/config/graphql.js.map +1 -1
  77. package/build/cjs/orchestrion/config/hapi.js.map +1 -1
  78. package/build/cjs/orchestrion/config/index.js +10 -1
  79. package/build/cjs/orchestrion/config/index.js.map +1 -1
  80. package/build/cjs/orchestrion/config/ioredis.js.map +1 -1
  81. package/build/cjs/orchestrion/config/kafkajs.js.map +1 -1
  82. package/build/cjs/orchestrion/config/knex.js.map +1 -1
  83. package/build/cjs/orchestrion/config/koa.js +16 -0
  84. package/build/cjs/orchestrion/config/koa.js.map +1 -0
  85. package/build/cjs/orchestrion/config/langchain.js +46 -2
  86. package/build/cjs/orchestrion/config/langchain.js.map +1 -1
  87. package/build/cjs/orchestrion/config/langgraph.js +22 -2
  88. package/build/cjs/orchestrion/config/langgraph.js.map +1 -1
  89. package/build/cjs/orchestrion/config/lru-memoizer.js.map +1 -1
  90. package/build/cjs/orchestrion/config/mongodb.js +61 -2
  91. package/build/cjs/orchestrion/config/mongodb.js.map +1 -1
  92. package/build/cjs/orchestrion/config/mongoose.js +101 -2
  93. package/build/cjs/orchestrion/config/mongoose.js.map +1 -1
  94. package/build/cjs/orchestrion/config/mysql.js.map +1 -1
  95. package/build/cjs/orchestrion/config/mysql2.js.map +1 -1
  96. package/build/cjs/orchestrion/config/nestjs.js.map +1 -1
  97. package/build/cjs/orchestrion/config/openai.js +5 -5
  98. package/build/cjs/orchestrion/config/openai.js.map +1 -1
  99. package/build/cjs/orchestrion/config/pg.js.map +1 -1
  100. package/build/cjs/orchestrion/config/postgres.js.map +1 -1
  101. package/build/cjs/orchestrion/config/prisma.js.map +1 -1
  102. package/build/cjs/orchestrion/config/react-router.js.map +1 -1
  103. package/build/cjs/orchestrion/config/redis.js.map +1 -1
  104. package/build/cjs/orchestrion/config/remix.js +48 -2
  105. package/build/cjs/orchestrion/config/remix.js.map +1 -1
  106. package/build/cjs/orchestrion/config/tedious.js +18 -2
  107. package/build/cjs/orchestrion/config/tedious.js.map +1 -1
  108. package/build/cjs/orchestrion/config/vercel-ai.js.map +1 -1
  109. package/build/cjs/orchestrion/index.js +32 -9
  110. package/build/cjs/orchestrion/index.js.map +1 -1
  111. package/build/cjs/orchestrion/runtime/register.js +25 -12
  112. package/build/cjs/orchestrion/runtime/register.js.map +1 -1
  113. package/build/cjs/redis/redis-dc-subscriber.js +27 -38
  114. package/build/cjs/redis/redis-dc-subscriber.js.map +1 -1
  115. package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js +16 -3
  116. package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
  117. package/build/esm/index.js +2 -0
  118. package/build/esm/index.js.map +1 -1
  119. package/build/esm/integrations/tracing-channel/aws-sdk/constants.js +9 -0
  120. package/build/esm/integrations/tracing-channel/aws-sdk/constants.js.map +1 -0
  121. package/build/esm/integrations/tracing-channel/aws-sdk/index.js +152 -0
  122. package/build/esm/integrations/tracing-channel/aws-sdk/index.js.map +1 -0
  123. package/build/esm/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js +41 -0
  124. package/build/esm/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js.map +1 -0
  125. package/build/esm/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js +45 -0
  126. package/build/esm/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js.map +1 -0
  127. package/build/esm/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js +417 -0
  128. package/build/esm/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js.map +1 -0
  129. package/build/esm/integrations/tracing-channel/aws-sdk/services/dynamodb.js +129 -0
  130. package/build/esm/integrations/tracing-channel/aws-sdk/services/dynamodb.js.map +1 -0
  131. package/build/esm/integrations/tracing-channel/aws-sdk/services/kinesis.js +19 -0
  132. package/build/esm/integrations/tracing-channel/aws-sdk/services/kinesis.js.map +1 -0
  133. package/build/esm/integrations/tracing-channel/aws-sdk/services/lambda.js +62 -0
  134. package/build/esm/integrations/tracing-channel/aws-sdk/services/lambda.js.map +1 -0
  135. package/build/esm/integrations/tracing-channel/aws-sdk/services/s3.js +19 -0
  136. package/build/esm/integrations/tracing-channel/aws-sdk/services/s3.js.map +1 -0
  137. package/build/esm/integrations/tracing-channel/aws-sdk/services/secretsmanager.js +25 -0
  138. package/build/esm/integrations/tracing-channel/aws-sdk/services/secretsmanager.js.map +1 -0
  139. package/build/esm/integrations/tracing-channel/aws-sdk/services/sns.js +61 -0
  140. package/build/esm/integrations/tracing-channel/aws-sdk/services/sns.js.map +1 -0
  141. package/build/esm/integrations/tracing-channel/aws-sdk/services/sqs.js +114 -0
  142. package/build/esm/integrations/tracing-channel/aws-sdk/services/sqs.js.map +1 -0
  143. package/build/esm/integrations/tracing-channel/aws-sdk/services/stepfunctions.js +23 -0
  144. package/build/esm/integrations/tracing-channel/aws-sdk/services/stepfunctions.js.map +1 -0
  145. package/build/esm/integrations/tracing-channel/aws-sdk/utils.js +26 -0
  146. package/build/esm/integrations/tracing-channel/aws-sdk/utils.js.map +1 -0
  147. package/build/esm/integrations/tracing-channel/express/instrumentation.js +1 -6
  148. package/build/esm/integrations/tracing-channel/express/instrumentation.js.map +1 -1
  149. package/build/esm/integrations/tracing-channel/koa.js +144 -0
  150. package/build/esm/integrations/tracing-channel/koa.js.map +1 -0
  151. package/build/esm/integrations/tracing-channel/langchain.js +61 -0
  152. package/build/esm/integrations/tracing-channel/langchain.js.map +1 -0
  153. package/build/esm/integrations/tracing-channel/langgraph.js +98 -0
  154. package/build/esm/integrations/tracing-channel/langgraph.js.map +1 -0
  155. package/build/esm/integrations/tracing-channel/mongodb.js +102 -0
  156. package/build/esm/integrations/tracing-channel/mongodb.js.map +1 -0
  157. package/build/esm/integrations/tracing-channel/mongoose.js +108 -0
  158. package/build/esm/integrations/tracing-channel/mongoose.js.map +1 -0
  159. package/build/esm/integrations/tracing-channel/openai.js +1 -3
  160. package/build/esm/integrations/tracing-channel/openai.js.map +1 -1
  161. package/build/esm/integrations/tracing-channel/redis.js +25 -34
  162. package/build/esm/integrations/tracing-channel/redis.js.map +1 -1
  163. package/build/esm/integrations/tracing-channel/tedious.js +143 -0
  164. package/build/esm/integrations/tracing-channel/tedious.js.map +1 -0
  165. package/build/esm/mongodb/mongodb-span.js +126 -0
  166. package/build/esm/mongodb/mongodb-span.js.map +1 -0
  167. package/build/esm/mongoose/index.js.map +1 -1
  168. package/build/esm/mongoose/mongoose-legacy-span.js +38 -0
  169. package/build/esm/mongoose/mongoose-legacy-span.js.map +1 -0
  170. package/build/esm/orchestrion/bundler/options.js +10 -1
  171. package/build/esm/orchestrion/bundler/options.js.map +1 -1
  172. package/build/esm/orchestrion/bundler/webpack.js +4 -4
  173. package/build/esm/orchestrion/bundler/webpack.js.map +1 -1
  174. package/build/esm/orchestrion/channels.js +4 -0
  175. package/build/esm/orchestrion/channels.js.map +1 -1
  176. package/build/esm/orchestrion/config/amqplib.js.map +1 -1
  177. package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
  178. package/build/esm/orchestrion/config/aws-sdk.js +25 -0
  179. package/build/esm/orchestrion/config/aws-sdk.js.map +1 -0
  180. package/build/esm/orchestrion/config/dataloader.js.map +1 -1
  181. package/build/esm/orchestrion/config/express.js +9 -8
  182. package/build/esm/orchestrion/config/express.js.map +1 -1
  183. package/build/esm/orchestrion/config/firebase.js.map +1 -1
  184. package/build/esm/orchestrion/config/generic-pool.js.map +1 -1
  185. package/build/esm/orchestrion/config/google-genai.js.map +1 -1
  186. package/build/esm/orchestrion/config/graphql.js.map +1 -1
  187. package/build/esm/orchestrion/config/hapi.js.map +1 -1
  188. package/build/esm/orchestrion/config/index.js +10 -1
  189. package/build/esm/orchestrion/config/index.js.map +1 -1
  190. package/build/esm/orchestrion/config/ioredis.js.map +1 -1
  191. package/build/esm/orchestrion/config/kafkajs.js.map +1 -1
  192. package/build/esm/orchestrion/config/knex.js.map +1 -1
  193. package/build/esm/orchestrion/config/koa.js +13 -0
  194. package/build/esm/orchestrion/config/koa.js.map +1 -0
  195. package/build/esm/orchestrion/config/langchain.js +46 -3
  196. package/build/esm/orchestrion/config/langchain.js.map +1 -1
  197. package/build/esm/orchestrion/config/langgraph.js +22 -2
  198. package/build/esm/orchestrion/config/langgraph.js.map +1 -1
  199. package/build/esm/orchestrion/config/lru-memoizer.js.map +1 -1
  200. package/build/esm/orchestrion/config/mongodb.js +61 -2
  201. package/build/esm/orchestrion/config/mongodb.js.map +1 -1
  202. package/build/esm/orchestrion/config/mongoose.js +101 -3
  203. package/build/esm/orchestrion/config/mongoose.js.map +1 -1
  204. package/build/esm/orchestrion/config/mysql.js.map +1 -1
  205. package/build/esm/orchestrion/config/mysql2.js.map +1 -1
  206. package/build/esm/orchestrion/config/nestjs.js.map +1 -1
  207. package/build/esm/orchestrion/config/openai.js +5 -5
  208. package/build/esm/orchestrion/config/openai.js.map +1 -1
  209. package/build/esm/orchestrion/config/pg.js.map +1 -1
  210. package/build/esm/orchestrion/config/postgres.js.map +1 -1
  211. package/build/esm/orchestrion/config/prisma.js.map +1 -1
  212. package/build/esm/orchestrion/config/react-router.js.map +1 -1
  213. package/build/esm/orchestrion/config/redis.js.map +1 -1
  214. package/build/esm/orchestrion/config/remix.js +48 -2
  215. package/build/esm/orchestrion/config/remix.js.map +1 -1
  216. package/build/esm/orchestrion/config/tedious.js +18 -2
  217. package/build/esm/orchestrion/config/tedious.js.map +1 -1
  218. package/build/esm/orchestrion/config/vercel-ai.js.map +1 -1
  219. package/build/esm/orchestrion/index.js +17 -2
  220. package/build/esm/orchestrion/index.js.map +1 -1
  221. package/build/esm/orchestrion/runtime/register.js +25 -12
  222. package/build/esm/orchestrion/runtime/register.js.map +1 -1
  223. package/build/esm/package.json +1 -1
  224. package/build/esm/redis/redis-dc-subscriber.js +27 -38
  225. package/build/esm/redis/redis-dc-subscriber.js.map +1 -1
  226. package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js +17 -4
  227. package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
  228. package/build/types/index.d.ts +5 -1
  229. package/build/types/index.d.ts.map +1 -1
  230. package/build/types/integrations/tracing-channel/aws-sdk/aws-sdk.types.d.ts +43 -0
  231. package/build/types/integrations/tracing-channel/aws-sdk/aws-sdk.types.d.ts.map +1 -0
  232. package/build/types/integrations/tracing-channel/aws-sdk/constants.d.ts +15 -0
  233. package/build/types/integrations/tracing-channel/aws-sdk/constants.d.ts.map +1 -0
  234. package/build/types/integrations/tracing-channel/aws-sdk/index.d.ts +15 -0
  235. package/build/types/integrations/tracing-channel/aws-sdk/index.d.ts.map +1 -0
  236. package/build/types/integrations/tracing-channel/aws-sdk/services/MessageAttributes.d.ts +23 -0
  237. package/build/types/integrations/tracing-channel/aws-sdk/services/MessageAttributes.d.ts.map +1 -0
  238. package/build/types/integrations/tracing-channel/aws-sdk/services/ServiceExtension.d.ts +9 -0
  239. package/build/types/integrations/tracing-channel/aws-sdk/services/ServiceExtension.d.ts.map +1 -0
  240. package/build/types/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.d.ts +10 -0
  241. package/build/types/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.d.ts.map +1 -0
  242. package/build/types/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.d.ts +14 -0
  243. package/build/types/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.d.ts.map +1 -0
  244. package/build/types/integrations/tracing-channel/aws-sdk/services/dynamodb.d.ts +8 -0
  245. package/build/types/integrations/tracing-channel/aws-sdk/services/dynamodb.d.ts.map +1 -0
  246. package/build/types/integrations/tracing-channel/aws-sdk/services/index.d.ts +2 -0
  247. package/build/types/integrations/tracing-channel/aws-sdk/services/index.d.ts.map +1 -0
  248. package/build/types/integrations/tracing-channel/aws-sdk/services/kinesis.d.ts +6 -0
  249. package/build/types/integrations/tracing-channel/aws-sdk/services/kinesis.d.ts.map +1 -0
  250. package/build/types/integrations/tracing-channel/aws-sdk/services/lambda.d.ts +9 -0
  251. package/build/types/integrations/tracing-channel/aws-sdk/services/lambda.d.ts.map +1 -0
  252. package/build/types/integrations/tracing-channel/aws-sdk/services/s3.d.ts +6 -0
  253. package/build/types/integrations/tracing-channel/aws-sdk/services/s3.d.ts.map +1 -0
  254. package/build/types/integrations/tracing-channel/aws-sdk/services/secretsmanager.d.ts +8 -0
  255. package/build/types/integrations/tracing-channel/aws-sdk/services/secretsmanager.d.ts.map +1 -0
  256. package/build/types/integrations/tracing-channel/aws-sdk/services/sns.d.ts +9 -0
  257. package/build/types/integrations/tracing-channel/aws-sdk/services/sns.d.ts.map +1 -0
  258. package/build/types/integrations/tracing-channel/aws-sdk/services/sqs.d.ts +9 -0
  259. package/build/types/integrations/tracing-channel/aws-sdk/services/sqs.d.ts.map +1 -0
  260. package/build/types/integrations/tracing-channel/aws-sdk/services/stepfunctions.d.ts +6 -0
  261. package/build/types/integrations/tracing-channel/aws-sdk/services/stepfunctions.d.ts.map +1 -0
  262. package/build/types/integrations/tracing-channel/aws-sdk/types.d.ts +26 -0
  263. package/build/types/integrations/tracing-channel/aws-sdk/types.d.ts.map +1 -0
  264. package/build/types/integrations/tracing-channel/aws-sdk/utils.d.ts +5 -0
  265. package/build/types/integrations/tracing-channel/aws-sdk/utils.d.ts.map +1 -0
  266. package/build/types/integrations/tracing-channel/express/instrumentation.d.ts.map +1 -1
  267. package/build/types/integrations/tracing-channel/koa.d.ts +14 -0
  268. package/build/types/integrations/tracing-channel/koa.d.ts.map +1 -0
  269. package/build/types/integrations/tracing-channel/langchain.d.ts +10 -0
  270. package/build/types/integrations/tracing-channel/langchain.d.ts.map +1 -0
  271. package/build/types/integrations/tracing-channel/langgraph.d.ts +10 -0
  272. package/build/types/integrations/tracing-channel/langgraph.d.ts.map +1 -0
  273. package/build/types/integrations/tracing-channel/mongodb.d.ts +12 -0
  274. package/build/types/integrations/tracing-channel/mongodb.d.ts.map +1 -0
  275. package/build/types/integrations/tracing-channel/mongoose.d.ts +15 -0
  276. package/build/types/integrations/tracing-channel/mongoose.d.ts.map +1 -0
  277. package/build/types/integrations/tracing-channel/openai.d.ts.map +1 -1
  278. package/build/types/integrations/tracing-channel/redis.d.ts.map +1 -1
  279. package/build/types/integrations/tracing-channel/tedious.d.ts +11 -0
  280. package/build/types/integrations/tracing-channel/tedious.d.ts.map +1 -0
  281. package/build/types/mongodb/mongodb-span.d.ts +66 -0
  282. package/build/types/mongodb/mongodb-span.d.ts.map +1 -0
  283. package/build/types/mongoose/index.d.ts +2 -0
  284. package/build/types/mongoose/index.d.ts.map +1 -1
  285. package/build/types/mongoose/mongoose-legacy-span.d.ts +29 -0
  286. package/build/types/mongoose/mongoose-legacy-span.d.ts.map +1 -0
  287. package/build/types/orchestrion/bundler/options.d.ts +13 -3
  288. package/build/types/orchestrion/bundler/options.d.ts.map +1 -1
  289. package/build/types/orchestrion/bundler/webpack.d.ts +5 -5
  290. package/build/types/orchestrion/bundler/webpack.d.ts.map +1 -1
  291. package/build/types/orchestrion/channels.d.ts +36 -6
  292. package/build/types/orchestrion/channels.d.ts.map +1 -1
  293. package/build/types/orchestrion/config/aws-sdk.d.ts +19 -0
  294. package/build/types/orchestrion/config/aws-sdk.d.ts.map +1 -0
  295. package/build/types/orchestrion/config/express.d.ts +2 -4
  296. package/build/types/orchestrion/config/express.d.ts.map +1 -1
  297. package/build/types/orchestrion/config/firebase.d.ts +1 -1
  298. package/build/types/orchestrion/config/firebase.d.ts.map +1 -1
  299. package/build/types/orchestrion/config/index.d.ts +1 -1
  300. package/build/types/orchestrion/config/index.d.ts.map +1 -1
  301. package/build/types/orchestrion/config/ioredis.d.ts +1 -1
  302. package/build/types/orchestrion/config/ioredis.d.ts.map +1 -1
  303. package/build/types/orchestrion/config/knex.d.ts +1 -1
  304. package/build/types/orchestrion/config/knex.d.ts.map +1 -1
  305. package/build/types/orchestrion/config/koa.d.ts +17 -0
  306. package/build/types/orchestrion/config/koa.d.ts.map +1 -0
  307. package/build/types/orchestrion/config/langchain.d.ts +17 -3
  308. package/build/types/orchestrion/config/langchain.d.ts.map +1 -1
  309. package/build/types/orchestrion/config/langgraph.d.ts +20 -3
  310. package/build/types/orchestrion/config/langgraph.d.ts.map +1 -1
  311. package/build/types/orchestrion/config/mongodb.d.ts +58 -3
  312. package/build/types/orchestrion/config/mongodb.d.ts.map +1 -1
  313. package/build/types/orchestrion/config/mongoose.d.ts +39 -3
  314. package/build/types/orchestrion/config/mongoose.d.ts.map +1 -1
  315. package/build/types/orchestrion/config/nestjs.d.ts +1 -1
  316. package/build/types/orchestrion/config/nestjs.d.ts.map +1 -1
  317. package/build/types/orchestrion/config/openai.d.ts +0 -2
  318. package/build/types/orchestrion/config/openai.d.ts.map +1 -1
  319. package/build/types/orchestrion/config/postgres.d.ts +1 -1
  320. package/build/types/orchestrion/config/postgres.d.ts.map +1 -1
  321. package/build/types/orchestrion/config/prisma.d.ts +1 -1
  322. package/build/types/orchestrion/config/prisma.d.ts.map +1 -1
  323. package/build/types/orchestrion/config/react-router.d.ts +1 -1
  324. package/build/types/orchestrion/config/react-router.d.ts.map +1 -1
  325. package/build/types/orchestrion/config/remix.d.ts +7 -2
  326. package/build/types/orchestrion/config/remix.d.ts.map +1 -1
  327. package/build/types/orchestrion/config/tedious.d.ts +10 -2
  328. package/build/types/orchestrion/config/tedious.d.ts.map +1 -1
  329. package/build/types/orchestrion/config/vercel-ai.d.ts +1 -1
  330. package/build/types/orchestrion/config/vercel-ai.d.ts.map +1 -1
  331. package/build/types/orchestrion/index.d.ts +32 -1
  332. package/build/types/orchestrion/index.d.ts.map +1 -1
  333. package/build/types/orchestrion/runtime/register.d.ts.map +1 -1
  334. package/build/types/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts.map +1 -1
  335. package/build/types-ts3.8/index.d.ts +5 -1
  336. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/aws-sdk.types.d.ts +43 -0
  337. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/constants.d.ts +15 -0
  338. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/index.d.ts +15 -0
  339. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/MessageAttributes.d.ts +23 -0
  340. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/ServiceExtension.d.ts +9 -0
  341. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.d.ts +10 -0
  342. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.d.ts +14 -0
  343. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/dynamodb.d.ts +8 -0
  344. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/index.d.ts +2 -0
  345. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/kinesis.d.ts +6 -0
  346. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/lambda.d.ts +9 -0
  347. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/s3.d.ts +6 -0
  348. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/secretsmanager.d.ts +8 -0
  349. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/sns.d.ts +9 -0
  350. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/sqs.d.ts +9 -0
  351. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/stepfunctions.d.ts +6 -0
  352. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/types.d.ts +26 -0
  353. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/utils.d.ts +5 -0
  354. package/build/types-ts3.8/integrations/tracing-channel/koa.d.ts +14 -0
  355. package/build/types-ts3.8/integrations/tracing-channel/langchain.d.ts +10 -0
  356. package/build/types-ts3.8/integrations/tracing-channel/langgraph.d.ts +10 -0
  357. package/build/types-ts3.8/integrations/tracing-channel/mongodb.d.ts +12 -0
  358. package/build/types-ts3.8/integrations/tracing-channel/mongoose.d.ts +15 -0
  359. package/build/types-ts3.8/integrations/tracing-channel/tedious.d.ts +11 -0
  360. package/build/types-ts3.8/mongodb/mongodb-span.d.ts +66 -0
  361. package/build/types-ts3.8/mongoose/index.d.ts +2 -0
  362. package/build/types-ts3.8/mongoose/mongoose-legacy-span.d.ts +29 -0
  363. package/build/types-ts3.8/orchestrion/bundler/options.d.ts +13 -3
  364. package/build/types-ts3.8/orchestrion/bundler/webpack.d.ts +5 -5
  365. package/build/types-ts3.8/orchestrion/channels.d.ts +36 -6
  366. package/build/types-ts3.8/orchestrion/config/aws-sdk.d.ts +19 -0
  367. package/build/types-ts3.8/orchestrion/config/express.d.ts +2 -4
  368. package/build/types-ts3.8/orchestrion/config/firebase.d.ts +1 -1
  369. package/build/types-ts3.8/orchestrion/config/index.d.ts +1 -1
  370. package/build/types-ts3.8/orchestrion/config/ioredis.d.ts +1 -1
  371. package/build/types-ts3.8/orchestrion/config/knex.d.ts +1 -1
  372. package/build/types-ts3.8/orchestrion/config/koa.d.ts +17 -0
  373. package/build/types-ts3.8/orchestrion/config/langchain.d.ts +17 -3
  374. package/build/types-ts3.8/orchestrion/config/langgraph.d.ts +20 -3
  375. package/build/types-ts3.8/orchestrion/config/mongodb.d.ts +58 -3
  376. package/build/types-ts3.8/orchestrion/config/mongoose.d.ts +39 -3
  377. package/build/types-ts3.8/orchestrion/config/nestjs.d.ts +1 -1
  378. package/build/types-ts3.8/orchestrion/config/openai.d.ts +0 -2
  379. package/build/types-ts3.8/orchestrion/config/postgres.d.ts +1 -1
  380. package/build/types-ts3.8/orchestrion/config/prisma.d.ts +1 -1
  381. package/build/types-ts3.8/orchestrion/config/react-router.d.ts +1 -1
  382. package/build/types-ts3.8/orchestrion/config/remix.d.ts +7 -2
  383. package/build/types-ts3.8/orchestrion/config/tedious.d.ts +10 -2
  384. package/build/types-ts3.8/orchestrion/config/vercel-ai.d.ts +1 -1
  385. package/build/types-ts3.8/orchestrion/index.d.ts +32 -1
  386. package/package.json +3 -4
@@ -0,0 +1,23 @@
1
+ import { SerializedTraceData } from '@sentry/core';
2
+ import { SNS, SQS } from '../aws-sdk.types';
3
+ export declare const MAX_MESSAGE_ATTRIBUTES = 10;
4
+ export interface AwsSdkContextObject {
5
+ [key: string]: {
6
+ StringValue?: string;
7
+ Value?: string;
8
+ };
9
+ }
10
+ /**
11
+ * Inject trace-propagation headers (from `getTraceData({ span })`) into an SQS/SNS message-attribute
12
+ * map, so the consumer can continue the trace. Respects the SQS 10-attribute quota. Mirrors the OTel
13
+ * integration's `injectPropagationContext`, but writes Sentry's `sentry-trace`/`baggage` instead of
14
+ * W3C headers. Callers pass the precomputed headers so batch sends serialize them only once.
15
+ */
16
+ export declare function injectPropagationContext(attributesMap: SQS.MessageBodyAttributeMap | SNS.MessageAttributeMap | undefined, traceData: SerializedTraceData): SQS.MessageBodyAttributeMap | SNS.MessageAttributeMap;
17
+ /** Read the propagation headers back off a received SQS message, if present. */
18
+ export declare function extractPropagationHeaders(message: SQS.Message): {
19
+ sentryTrace?: string;
20
+ baggage?: string;
21
+ } | undefined;
22
+ export declare function addPropagationFieldsToAttributeNames(messageAttributeNames?: string[]): string[];
23
+ //# sourceMappingURL=MessageAttributes.d.ts.map
@@ -0,0 +1,9 @@
1
+ import { Span } from '@sentry/core';
2
+ import { NormalizedRequest, NormalizedResponse, RequestMetadata } from '../types';
3
+ export { RequestMetadata };
4
+ export interface ServiceExtension {
5
+ requestPreSpanHook: (request: NormalizedRequest) => RequestMetadata;
6
+ requestPostSpanHook?: (request: NormalizedRequest, span: Span) => void;
7
+ responseHook?: (response: NormalizedResponse, span: Span) => void;
8
+ }
9
+ //# sourceMappingURL=ServiceExtension.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { Span } from '@sentry/core';
2
+ import { NormalizedRequest, NormalizedResponse, RequestMetadata } from '../types';
3
+ import { ServiceExtension } from './ServiceExtension';
4
+ export declare class ServicesExtensions implements ServiceExtension {
5
+ private _services;
6
+ requestPreSpanHook(request: NormalizedRequest): RequestMetadata;
7
+ requestPostSpanHook(request: NormalizedRequest, span: Span): void;
8
+ responseHook(response: NormalizedResponse, span: Span): void;
9
+ }
10
+ //# sourceMappingURL=ServicesExtensions.d.ts.map
@@ -0,0 +1,14 @@
1
+ import { Span } from '@sentry/core';
2
+ import { NormalizedRequest, NormalizedResponse } from '../types';
3
+ import { RequestMetadata, ServiceExtension } from './ServiceExtension';
4
+ export declare class BedrockRuntimeServiceExtension implements ServiceExtension {
5
+ requestPreSpanHook(request: NormalizedRequest): RequestMetadata;
6
+ responseHook(response: NormalizedResponse, span: Span): void;
7
+ private _requestPreSpanHookConverse;
8
+ private _requestPreSpanHookInvokeModel;
9
+ private _responseHookConverse;
10
+ private _responseHookConverseStream;
11
+ private _responseHookInvokeModel;
12
+ private _responseHookInvokeModelWithResponseStream;
13
+ }
14
+ //# sourceMappingURL=bedrock-runtime.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { Span } from '@sentry/core';
2
+ import { NormalizedRequest, NormalizedResponse } from '../types';
3
+ import { RequestMetadata, ServiceExtension } from './ServiceExtension';
4
+ export declare class DynamodbServiceExtension implements ServiceExtension {
5
+ requestPreSpanHook(normalizedRequest: NormalizedRequest): RequestMetadata;
6
+ responseHook(response: NormalizedResponse, span: Span): void;
7
+ }
8
+ //# sourceMappingURL=dynamodb.d.ts.map
@@ -0,0 +1,2 @@
1
+ export { ServicesExtensions } from './ServicesExtensions';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { NormalizedRequest } from '../types';
2
+ import { RequestMetadata, ServiceExtension } from './ServiceExtension';
3
+ export declare class KinesisServiceExtension implements ServiceExtension {
4
+ requestPreSpanHook(request: NormalizedRequest): RequestMetadata;
5
+ }
6
+ //# sourceMappingURL=kinesis.d.ts.map
@@ -0,0 +1,9 @@
1
+ import { Span } from '@sentry/core';
2
+ import { NormalizedRequest, NormalizedResponse } from '../types';
3
+ import { RequestMetadata, ServiceExtension } from './ServiceExtension';
4
+ export declare class LambdaServiceExtension implements ServiceExtension {
5
+ requestPreSpanHook(request: NormalizedRequest): RequestMetadata;
6
+ requestPostSpanHook(request: NormalizedRequest, span: Span): void;
7
+ responseHook(response: NormalizedResponse, span: Span): void;
8
+ }
9
+ //# sourceMappingURL=lambda.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { NormalizedRequest } from '../types';
2
+ import { RequestMetadata, ServiceExtension } from './ServiceExtension';
3
+ export declare class S3ServiceExtension implements ServiceExtension {
4
+ requestPreSpanHook(request: NormalizedRequest): RequestMetadata;
5
+ }
6
+ //# sourceMappingURL=s3.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { Span } from '@sentry/core';
2
+ import { NormalizedRequest, NormalizedResponse } from '../types';
3
+ import { RequestMetadata, ServiceExtension } from './ServiceExtension';
4
+ export declare class SecretsManagerServiceExtension implements ServiceExtension {
5
+ requestPreSpanHook(request: NormalizedRequest): RequestMetadata;
6
+ responseHook(response: NormalizedResponse, span: Span): void;
7
+ }
8
+ //# sourceMappingURL=secretsmanager.d.ts.map
@@ -0,0 +1,9 @@
1
+ import { Span } from '@sentry/core';
2
+ import { NormalizedRequest, NormalizedResponse } from '../types';
3
+ import { RequestMetadata, ServiceExtension } from './ServiceExtension';
4
+ export declare class SnsServiceExtension implements ServiceExtension {
5
+ requestPreSpanHook(request: NormalizedRequest): RequestMetadata;
6
+ requestPostSpanHook(request: NormalizedRequest, span: Span): void;
7
+ responseHook(response: NormalizedResponse, span: Span): void;
8
+ }
9
+ //# sourceMappingURL=sns.d.ts.map
@@ -0,0 +1,9 @@
1
+ import { Span } from '@sentry/core';
2
+ import { NormalizedRequest, NormalizedResponse } from '../types';
3
+ import { RequestMetadata, ServiceExtension } from './ServiceExtension';
4
+ export declare class SqsServiceExtension implements ServiceExtension {
5
+ requestPreSpanHook(request: NormalizedRequest): RequestMetadata;
6
+ requestPostSpanHook(request: NormalizedRequest, span: Span): void;
7
+ responseHook(response: NormalizedResponse, span: Span): void;
8
+ }
9
+ //# sourceMappingURL=sqs.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { NormalizedRequest } from '../types';
2
+ import { RequestMetadata, ServiceExtension } from './ServiceExtension';
3
+ export declare class StepFunctionsServiceExtension implements ServiceExtension {
4
+ requestPreSpanHook(request: NormalizedRequest): RequestMetadata;
5
+ }
6
+ //# sourceMappingURL=stepfunctions.d.ts.map
@@ -0,0 +1,26 @@
1
+ import { SpanKindValue } from '@sentry/core';
2
+ export type CommandInput = Record<string, any>;
3
+ /**
4
+ * These are normalized request and response. They organize the relevant data in one interface which
5
+ * can be processed in a uniform manner in the per-service hooks.
6
+ */
7
+ export interface NormalizedRequest {
8
+ serviceName: string;
9
+ commandName: string;
10
+ commandInput: CommandInput;
11
+ region?: string;
12
+ }
13
+ export interface NormalizedResponse {
14
+ data: any;
15
+ request: NormalizedRequest;
16
+ requestId?: string;
17
+ }
18
+ /** Span metadata a per-service extension returns for the subscriber to build the span from. */
19
+ export interface RequestMetadata {
20
+ isStream?: boolean;
21
+ spanAttributes?: Record<string, unknown>;
22
+ spanKind?: SpanKindValue;
23
+ spanName?: string;
24
+ spanOp?: string;
25
+ }
26
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { CommandInput, NormalizedRequest } from './types';
2
+ export declare function removeSuffixFromStringIfExists(str: string, suffixToRemove: string): string;
3
+ export declare function normalizeV3Request(serviceName: string, commandNameWithSuffix: string, commandInput: CommandInput, region: string | undefined): NormalizedRequest;
4
+ export declare function extractAttributesFromNormalizedRequest(normalizedRequest: NormalizedRequest): Record<string, unknown>;
5
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1,14 @@
1
+ export interface KoaChannelIntegrationOptions {
2
+ /** Ignore layers of the specified types (`'middleware'` and/or `'router'`). */
3
+ ignoreLayersType?: Array<'middleware' | 'router'>;
4
+ }
5
+ /**
6
+ * EXPERIMENTAL — orchestrion-driven koa integration. Subscribes to the
7
+ * `orchestrion:koa:use` channel injected into `Application.prototype.use` and
8
+ * wraps each registered middleware/router layer in a span-creating proxy.
9
+ * Requires the orchestrion runtime hook or bundler plugin.
10
+ */
11
+ export declare const koaChannelIntegration: (options?: KoaChannelIntegrationOptions | undefined) => import("@sentry/core").Integration & {
12
+ name: "Koa";
13
+ };
14
+ //# sourceMappingURL=koa.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { LangChainOptions } from '@sentry/core';
2
+ /**
3
+ * EXPERIMENTAL — orchestrion-driven LangChain integration. Subscribes to the diagnostics_channels
4
+ * injected into `@langchain/core`'s `BaseChatModel` (to inject the Sentry callback handler) and into
5
+ * `@langchain/openai`'s embedding methods, so it requires the orchestrion runtime hook or bundler plugin.
6
+ */
7
+ export declare const langChainChannelIntegration: (options?: LangChainOptions | undefined) => import("@sentry/core").Integration & {
8
+ name: "LangChain";
9
+ };
10
+ //# sourceMappingURL=langchain.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { LangGraphOptions } from '@sentry/core';
2
+ /**
3
+ * EXPERIMENTAL — orchestrion-driven LangGraph integration. Subscribes to the diagnostics_channels
4
+ * injected into `@langchain/langgraph`'s `StateGraph.compile` and `createReactAgent`, so it requires
5
+ * the orchestrion runtime hook or bundler plugin.
6
+ */
7
+ export declare const langGraphChannelIntegration: (options?: LangGraphOptions | undefined) => import("@sentry/core").Integration & {
8
+ name: "LangGraph";
9
+ };
10
+ //# sourceMappingURL=langgraph.d.ts.map
@@ -0,0 +1,12 @@
1
+ /**
2
+ * EXPERIMENTAL: orchestrion-driven mongodb integration.
3
+ *
4
+ * Reproduces the vendored `@opentelemetry/instrumentation-mongodb` span shape
5
+ * (legacy db/net semantic conventions, `mongodb.<op>` names, scrubbed
6
+ * `db.statement`) via the `orchestrion:mongodb:*` diagnostics_channels
7
+ * injected by the orchestrion code transform.
8
+ */
9
+ export declare const mongodbChannelIntegration: () => import("@sentry/core").Integration & {
10
+ name: "Mongo";
11
+ };
12
+ //# sourceMappingURL=mongodb.d.ts.map
@@ -0,0 +1,15 @@
1
+ /**
2
+ * EXPERIMENTAL: orchestrion-driven mongoose integration.
3
+ *
4
+ * Reproduces the vendored `@opentelemetry/instrumentation-mongoose` span
5
+ * shape (legacy db/net semantic conventions, `mongoose.<Model>.<op>` names,
6
+ * build-time span parenting) via the `orchestrion:mongoose:*`
7
+ * diagnostics_channels injected into mongoose `< 9.7` by the orchestrion
8
+ * code transform. For mongoose `>= 9.7` it also drives the native
9
+ * diagnostics_channel subscription, so this single integration covers every
10
+ * supported version once it replaces the OTel one.
11
+ */
12
+ export declare const mongooseChannelIntegration: () => import("@sentry/core").Integration & {
13
+ name: "Mongoose";
14
+ };
15
+ //# sourceMappingURL=mongoose.d.ts.map
@@ -0,0 +1,11 @@
1
+ /**
2
+ * EXPERIMENTAL - orchestrion-driven tedious integration.
3
+ *
4
+ * Subscribes to the `orchestrion:tedious:*` diagnostics_channels that the orchestrion code transform
5
+ * injects into tedious's `Connection` request methods (each traced as one db span) and `Connection.connect`
6
+ * (active-database bookkeeping). Requires the orchestrion runtime hook or bundler plugin to be active.
7
+ */
8
+ export declare const tediousChannelIntegration: () => import("@sentry/core").Integration & {
9
+ name: "Tedious";
10
+ };
11
+ //# sourceMappingURL=tedious.d.ts.map
@@ -0,0 +1,66 @@
1
+ import { Span, SpanAttributes } from '@sentry/core';
2
+ /**
3
+ * The db/collection namespace mongodb (v4+) passes to `Connection.command`
4
+ */
5
+ export interface MongodbNamespace {
6
+ db: string;
7
+ collection?: string;
8
+ }
9
+ interface V4Command {
10
+ documents?: unknown[];
11
+ cursors?: unknown;
12
+ [key: string]: unknown;
13
+ }
14
+ /**
15
+ * Replaces every leaf value in the command object with '?', keeping keys
16
+ * and Mongo operators. hides PII and improves grouping. Reproduced from
17
+ * the OTel instrumentation.
18
+ */
19
+ export declare function serializeDbStatement(commandObj: Record<string, unknown>): string;
20
+ /**
21
+ * Build span attributes for a mongodb v4+ command from the connection
22
+ * context, namespace and command.
23
+ */
24
+ export declare function getV4SpanAttributes(connectionCtx: {
25
+ address?: string;
26
+ } | undefined, ns: MongodbNamespace, command: V4Command | undefined, operation: string | undefined, origin: string): SpanAttributes;
27
+ /**
28
+ * Shared attribute builder used by both the v3 topology path and the v4+
29
+ * connection path.
30
+ */
31
+ export declare function getSpanAttributes(dbName: string | undefined, dbCollection: string | undefined, host: string | undefined, port: string | undefined, commandObj: Record<string, unknown> | undefined, operation: string | undefined, origin: string): SpanAttributes;
32
+ /** The v3 driver topology, from which host/port are read (mongodb 3.x). */
33
+ export interface MongoV3Topology {
34
+ s?: {
35
+ options?: {
36
+ host?: string;
37
+ port?: number;
38
+ };
39
+ host?: string;
40
+ port?: number;
41
+ };
42
+ description?: {
43
+ address?: string;
44
+ };
45
+ }
46
+ /**
47
+ * Determine the operation name for a mongodb v3 `command` from the command
48
+ * document, mirroring the vendored instrumentation. Returns `undefined` for
49
+ * commands it doesn't classify (e.g. `endSessions`).
50
+ */
51
+ export declare function getV3CommandOperation(command: Record<string, unknown>): string | undefined;
52
+ /**
53
+ * Build span attributes for a mongodb v3 operation from the topology,
54
+ * namespace string and command.
55
+ */
56
+ export declare function getV3SpanAttributes(ns: string, topology: MongoV3Topology | undefined, command: Record<string, unknown> | undefined, operation: string | undefined, origin: string): SpanAttributes;
57
+ /**
58
+ * Start a mongodb client span with the legacy (pre-stable) db/net semantic
59
+ * conventions.
60
+ *
61
+ * `op: 'db'` is set explicitly rather than relying on `inferDbSpanData`,
62
+ * to support platforms that lack it (ie, Deno).
63
+ */
64
+ export declare function startMongoSpan(attributes: SpanAttributes): Span;
65
+ export {};
66
+ //# sourceMappingURL=mongodb-span.d.ts.map
@@ -1,3 +1,5 @@
1
+ export { MongooseLegacyCollection, StartMongooseLegacySpanOptions } from './mongoose-legacy-span';
2
+ export { startMongooseLegacySpan } from './mongoose-legacy-span';
1
3
  /**
2
4
  * Auto-instrument the [mongoose](https://www.npmjs.com/package/mongoose) library via its native
3
5
  * `node:diagnostics_channel` tracing channels (mongoose >= 9.7).
@@ -0,0 +1,29 @@
1
+ import { Span } from '@sentry/core';
2
+ /** The subset of mongoose's `Collection` that the legacy span shape reads. */
3
+ export interface MongooseLegacyCollection {
4
+ name?: string;
5
+ conn?: {
6
+ name?: string;
7
+ user?: string;
8
+ host?: string;
9
+ port?: number;
10
+ };
11
+ }
12
+ export interface StartMongooseLegacySpanOptions {
13
+ collection: MongooseLegacyCollection | undefined;
14
+ modelName: string | undefined;
15
+ operation: string;
16
+ /** Span origin: distinguishes the OTel/IITM caller from orchestrion */
17
+ origin: string;
18
+ parentSpan?: Span;
19
+ }
20
+ /**
21
+ * Start a mongoose client span with the legacy (pre-stable) db/net semantic
22
+ * conventions.
23
+ *
24
+ * Shared by the vendored OTel/IITM instrumentation (`@sentry/node`) and the
25
+ * orchestrion channel subscriber so the two emit an identical span shape,
26
+ * differing only by `origin`.
27
+ */
28
+ export declare function startMongooseLegacySpan({ collection, modelName, operation, origin, parentSpan, }: StartMongooseLegacySpanOptions): Span;
29
+ //# sourceMappingURL=mongoose-legacy-span.d.ts.map
@@ -1,10 +1,20 @@
1
- import { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
- import codeTransformer from '@apm-js-collab/code-transformer-bundler-plugins/rollup';
1
+ import { InstrumentationConfig, CustomTransform } from '..';
2
+ import { CodeTransformerPluginOptions } from '@apm-js-collab/code-transformer-bundler-plugins/core';
3
3
  export type PluginOptions = {
4
4
  /**
5
5
  * Additional instrumentations to include with the default instrumentation.
6
6
  */
7
7
  instrumentations?: InstrumentationConfig[];
8
+ /**
9
+ * Custom transforms that can be applied using the `transform` option in each `InstrumentationConfig`.
10
+ */
11
+ customTransforms?: Record<string, CustomTransform>;
12
+ /**
13
+ * Whether to inject the global diagnostics.
14
+ *
15
+ * Defaults to `true`.
16
+ */
17
+ shouldInjectDiagnostics?: boolean;
8
18
  };
9
19
  /**
10
20
  * The `@apm-js-collab/code-transformer-bundler-plugins` options shared by every
@@ -15,5 +25,5 @@ export type PluginOptions = {
15
25
  * bundler path ran (rather than relying on a build-time flag that wouldn't be
16
26
  * visible to the runtime).
17
27
  */
18
- export declare function orchestrionTransformOptions(options: PluginOptions): Parameters<typeof codeTransformer>[0];
28
+ export declare function orchestrionTransformOptions(options: PluginOptions): CodeTransformerPluginOptions;
19
29
  //# sourceMappingURL=options.d.ts.map
@@ -1,4 +1,6 @@
1
- import { InstrumentationConfig } from '@apm-js-collab/code-transformer';
1
+ import { InstrumentationConfig } from '..';
2
+ import codeTransformerWebpack from '@apm-js-collab/code-transformer-bundler-plugins/webpack';
3
+ import { PluginOptions } from './options';
2
4
  /** Absolute path to the code-transform loader (a webpack loader; also usable as a Turbopack loader). */
3
5
  export declare function getOrchestrionLoaderPath(): string;
4
6
  /**
@@ -11,9 +13,7 @@ export declare function getTracingHooksDirectory(): string;
11
13
  /** The central instrumentation config, to pass as the loader's `instrumentations` option. */
12
14
  export declare function getSentryInstrumentations(): InstrumentationConfig[];
13
15
  /**
14
- * The code-transform webpack plugin, pre-fed the instrumentation config. Unlike the Vite plugin it
15
- * does NOT inject the `__SENTRY_ORCHESTRION__.bundler` marker — that would disable the runtime
16
- * module hook, which externalized packages still need (hybrid setup).
16
+ * The code-transform webpack plugin, pre-fed the instrumentation config
17
17
  */
18
- export declare function sentryOrchestrionWebpackPlugin(): unknown;
18
+ export declare function sentryOrchestrionWebpackPlugin(options?: PluginOptions): ReturnType<typeof codeTransformerWebpack>;
19
19
  //# sourceMappingURL=webpack.d.ts.map
@@ -22,6 +22,17 @@ export declare const CHANNELS: {
22
22
  readonly VERCEL_AI_EMBED_MANY: "orchestrion:ai:embedMany";
23
23
  readonly VERCEL_AI_EXECUTE_TOOL_CALL: "orchestrion:ai:executeToolCall";
24
24
  readonly VERCEL_AI_RESOLVE_LANGUAGE_MODEL: "orchestrion:ai:resolveLanguageModel";
25
+ readonly TEDIOUS_CONNECT: "orchestrion:tedious:connect";
26
+ readonly TEDIOUS_EXEC_SQL: "orchestrion:tedious:execSql";
27
+ readonly TEDIOUS_EXEC_SQL_BATCH: "orchestrion:tedious:execSqlBatch";
28
+ readonly TEDIOUS_CALL_PROCEDURE: "orchestrion:tedious:callProcedure";
29
+ readonly TEDIOUS_EXEC_BULK_LOAD: "orchestrion:tedious:execBulkLoad";
30
+ readonly TEDIOUS_PREPARE: "orchestrion:tedious:prepare";
31
+ readonly TEDIOUS_EXECUTE: "orchestrion:tedious:execute";
32
+ readonly REMIX_REQUEST_HANDLER: "orchestrion:@remix-run/server-runtime:requestHandler";
33
+ readonly REMIX_MATCH_SERVER_ROUTES: "orchestrion:@remix-run/server-runtime:matchServerRoutes";
34
+ readonly REMIX_CALL_ROUTE_LOADER: "orchestrion:@remix-run/server-runtime:callRouteLoader";
35
+ readonly REMIX_CALL_ROUTE_ACTION: "orchestrion:@remix-run/server-runtime:callRouteAction";
25
36
  readonly REDIS_COMMAND: "orchestrion:redis:command";
26
37
  readonly NODE_REDIS_COMMAND: "orchestrion:@redis/client:command";
27
38
  readonly NODE_REDIS_EXECUTOR: "orchestrion:@redis/client:executor";
@@ -37,9 +48,7 @@ export declare const CHANNELS: {
37
48
  readonly PG_CONNECT: "orchestrion:pg:connect";
38
49
  readonly PGPOOL_CONNECT: "orchestrion:pg-pool:connect";
39
50
  readonly OPENAI_CHAT: "orchestrion:openai:chat";
40
- readonly OPENAI_RESPONSES: "orchestrion:openai:responses";
41
51
  readonly OPENAI_EMBEDDINGS: "orchestrion:openai:embeddings";
42
- readonly OPENAI_CONVERSATIONS: "orchestrion:openai:conversations";
43
52
  readonly NESTJS_APP_CREATION: "orchestrion:@nestjs/core:nestFactoryCreate";
44
53
  readonly NESTJS_ROUTER_CONTEXT: "orchestrion:@nestjs/core:routerExecutionContextCreate";
45
54
  readonly NESTJS_INJECTABLE: "orchestrion:@nestjs/common:injectableDecorator";
@@ -52,7 +61,27 @@ export declare const CHANNELS: {
52
61
  readonly MYSQL_QUERY: "orchestrion:mysql:query";
53
62
  readonly MYSQL2_QUERY: "orchestrion:mysql2:query";
54
63
  readonly MYSQL2_EXECUTE: "orchestrion:mysql2:execute";
64
+ readonly MONGOOSE_QUERY_EXEC: "orchestrion:mongoose:query_exec";
65
+ readonly MONGOOSE_AGGREGATE_EXEC: "orchestrion:mongoose:aggregate_exec";
66
+ readonly MONGOOSE_MODEL_SAVE: "orchestrion:mongoose:model_save";
67
+ readonly MONGOOSE_MODEL_INSERT_MANY: "orchestrion:mongoose:model_insert_many";
68
+ readonly MONGOOSE_MODEL_BULK_WRITE: "orchestrion:mongoose:model_bulk_write";
69
+ readonly MONGOOSE_MODEL_REMOVE: "orchestrion:mongoose:model_remove";
70
+ readonly MONGOOSE_MODEL_AGGREGATE: "orchestrion:mongoose:model_aggregate";
71
+ readonly MONGODB_COMMAND: "orchestrion:mongodb:command";
72
+ readonly MONGODB_CHECKOUT: "orchestrion:mongodb:checkout";
73
+ readonly MONGODB_V3_INSERT: "orchestrion:mongodb:v3_insert";
74
+ readonly MONGODB_V3_UPDATE: "orchestrion:mongodb:v3_update";
75
+ readonly MONGODB_V3_REMOVE: "orchestrion:mongodb:v3_remove";
76
+ readonly MONGODB_V3_COMMAND: "orchestrion:mongodb:v3_command";
77
+ readonly MONGODB_V3_QUERY: "orchestrion:mongodb:v3_query";
78
+ readonly MONGODB_V3_GET_MORE: "orchestrion:mongodb:v3_get_more";
55
79
  readonly LRU_MEMOIZER_LOAD: "orchestrion:lru-memoizer:load";
80
+ readonly LANGGRAPH_STATE_GRAPH_COMPILE: "orchestrion:@langchain/langgraph:stateGraphCompile";
81
+ readonly LANGGRAPH_CREATE_REACT_AGENT: "orchestrion:@langchain/langgraph:createReactAgent";
82
+ readonly LANGCHAIN_CHAT_MODEL_INVOKE: "orchestrion:@langchain/core:chatModelInvoke";
83
+ readonly LANGCHAIN_CHAT_MODEL_STREAM: "orchestrion:@langchain/core:chatModelStream";
84
+ readonly KOA_USE: "orchestrion:koa:use";
56
85
  readonly KNEX_QUERY: "orchestrion:knex:query";
57
86
  readonly KNEX_QUERY_BUILDER: "orchestrion:knex:queryBuilder";
58
87
  readonly KNEX_SCHEMA_BUILDER: "orchestrion:knex:schemaBuilder";
@@ -72,16 +101,17 @@ export declare const CHANNELS: {
72
101
  readonly GENERIC_POOL_ACQUIRE: "orchestrion:generic-pool:acquire";
73
102
  readonly EXPRESS_HANDLE: "orchestrion:express:handle";
74
103
  readonly ROUTER_HANDLE: "orchestrion:router:handle";
75
- readonly EXPRESS_ROUTE: "orchestrion:express:route";
76
- readonly EXPRESS_USE: "orchestrion:express:use";
77
- readonly ROUTER_ROUTE: "orchestrion:router:route";
78
- readonly ROUTER_USE: "orchestrion:router:use";
104
+ readonly EXPRESS_REGISTER: "orchestrion:express:register";
105
+ readonly ROUTER_REGISTER: "orchestrion:router:register";
79
106
  readonly DATALOADER_CONSTRUCT: "orchestrion:dataloader:construct";
80
107
  readonly DATALOADER_LOAD: "orchestrion:dataloader:load";
81
108
  readonly DATALOADER_LOAD_MANY: "orchestrion:dataloader:loadMany";
82
109
  readonly DATALOADER_PRIME: "orchestrion:dataloader:prime";
83
110
  readonly DATALOADER_CLEAR: "orchestrion:dataloader:clear";
84
111
  readonly DATALOADER_CLEAR_ALL: "orchestrion:dataloader:clearAll";
112
+ readonly AWS_SMITHY_CORE_SEND: "orchestrion:@smithy/core:send";
113
+ readonly AWS_SMITHY_CLIENT_SEND: "orchestrion:@smithy/smithy-client:send";
114
+ readonly AWS_SDK_SMITHY_CLIENT_SEND: "orchestrion:@aws-sdk/smithy-client:send";
85
115
  readonly ANTHROPIC_CHAT: "orchestrion:@anthropic-ai/sdk:chat";
86
116
  readonly ANTHROPIC_MODELS: "orchestrion:@anthropic-ai/sdk:models";
87
117
  readonly ANTHROPIC_MESSAGES_STREAM: "orchestrion:@anthropic-ai/sdk:messages-stream";
@@ -0,0 +1,19 @@
1
+ export declare const awsSdkConfig: {
2
+ channelName: string;
3
+ module: {
4
+ name: string;
5
+ versionRange: string;
6
+ filePath: string;
7
+ };
8
+ functionQuery: {
9
+ className: string;
10
+ methodName: string;
11
+ kind: "Async";
12
+ };
13
+ }[];
14
+ export declare const awsSdkChannels: {
15
+ readonly AWS_SMITHY_CORE_SEND: "orchestrion:@smithy/core:send";
16
+ readonly AWS_SMITHY_CLIENT_SEND: "orchestrion:@smithy/smithy-client:send";
17
+ readonly AWS_SDK_SMITHY_CLIENT_SEND: "orchestrion:@aws-sdk/smithy-client:send";
18
+ };
19
+ //# sourceMappingURL=aws-sdk.d.ts.map
@@ -24,9 +24,7 @@ export declare const expressConfig: ({
24
24
  export declare const expressChannels: {
25
25
  readonly EXPRESS_HANDLE: "orchestrion:express:handle";
26
26
  readonly ROUTER_HANDLE: "orchestrion:router:handle";
27
- readonly EXPRESS_ROUTE: "orchestrion:express:route";
28
- readonly EXPRESS_USE: "orchestrion:express:use";
29
- readonly ROUTER_ROUTE: "orchestrion:router:route";
30
- readonly ROUTER_USE: "orchestrion:router:use";
27
+ readonly EXPRESS_REGISTER: "orchestrion:express:register";
28
+ readonly ROUTER_REGISTER: "orchestrion:router:register";
31
29
  };
32
30
  //# sourceMappingURL=express.d.ts.map
@@ -1,4 +1,4 @@
1
- import { InstrumentationConfig } from '@apm-js-collab/code-transformer';
1
+ import { InstrumentationConfig } from '..';
2
2
  export declare const firebaseConfig: InstrumentationConfig[];
3
3
  export declare const firebaseChannels: {};
4
4
  //# sourceMappingURL=firebase.d.ts.map
@@ -1,4 +1,4 @@
1
- import { InstrumentationConfig } from '@apm-js-collab/code-transformer';
1
+ import { InstrumentationConfig } from '..';
2
2
  /**
3
3
  * The orchestrion code-transform configs. Every instrumentable library is here
4
4
  * so the transform is all-or-nothing: whenever orchestrion is enabled, all of
@@ -1,4 +1,4 @@
1
- import { InstrumentationConfig } from '@apm-js-collab/code-transformer';
1
+ import { InstrumentationConfig } from '..';
2
2
  export declare const ioredisConfig: InstrumentationConfig[];
3
3
  export declare const ioredisChannels: {
4
4
  readonly IOREDIS_COMMAND: "orchestrion:ioredis:command";
@@ -1,4 +1,4 @@
1
- import { InstrumentationConfig } from '@apm-js-collab/code-transformer';
1
+ import { InstrumentationConfig } from '..';
2
2
  export declare const knexConfig: InstrumentationConfig[];
3
3
  export declare const knexChannels: {
4
4
  readonly KNEX_QUERY: "orchestrion:knex:query";
@@ -0,0 +1,17 @@
1
+ export declare const koaConfig: {
2
+ channelName: string;
3
+ module: {
4
+ name: string;
5
+ versionRange: string;
6
+ filePath: string;
7
+ };
8
+ functionQuery: {
9
+ className: string;
10
+ methodName: string;
11
+ kind: "Sync";
12
+ };
13
+ }[];
14
+ export declare const koaChannels: {
15
+ readonly KOA_USE: "orchestrion:koa:use";
16
+ };
17
+ //# sourceMappingURL=koa.d.ts.map
@@ -1,4 +1,18 @@
1
- import { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
- export declare const langchainConfig: InstrumentationConfig[];
3
- export declare const langchainChannels: {};
1
+ export declare const langchainConfig: {
2
+ channelName: string;
3
+ module: {
4
+ name: string;
5
+ versionRange: string;
6
+ filePath: string;
7
+ };
8
+ functionQuery: {
9
+ methodName: string;
10
+ kind: "Async";
11
+ };
12
+ }[];
13
+ export declare const langchainEmbeddingsChannels: string[];
14
+ export declare const langchainChannels: {
15
+ readonly LANGCHAIN_CHAT_MODEL_INVOKE: "orchestrion:@langchain/core:chatModelInvoke";
16
+ readonly LANGCHAIN_CHAT_MODEL_STREAM: "orchestrion:@langchain/core:chatModelStream";
17
+ };
4
18
  //# sourceMappingURL=langchain.d.ts.map
@@ -1,4 +1,21 @@
1
- import { InstrumentationConfig } from '@apm-js-collab/code-transformer';
2
- export declare const langgraphConfig: InstrumentationConfig[];
3
- export declare const langgraphChannels: {};
1
+ export declare const langgraphConfig: ({
2
+ channelName: string;
3
+ module: import("@apm-js-collab/code-transformer").ModuleMatcher;
4
+ functionQuery: {
5
+ className: string;
6
+ methodName: string;
7
+ kind: "Sync";
8
+ };
9
+ } | {
10
+ channelName: string;
11
+ module: import("@apm-js-collab/code-transformer").ModuleMatcher;
12
+ functionQuery: {
13
+ functionName: string;
14
+ kind: "Sync";
15
+ };
16
+ })[];
17
+ export declare const langgraphChannels: {
18
+ readonly LANGGRAPH_STATE_GRAPH_COMPILE: "orchestrion:@langchain/langgraph:stateGraphCompile";
19
+ readonly LANGGRAPH_CREATE_REACT_AGENT: "orchestrion:@langchain/langgraph:createReactAgent";
20
+ };
4
21
  //# sourceMappingURL=langgraph.d.ts.map