@sentry/server-utils 10.69.0 → 11.0.0-alpha.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 (1233) hide show
  1. package/README.md +1 -1
  2. package/build/THIRD-PARTY-LICENSES.txt +976 -0
  3. package/build/cjs/_virtual/_commonjsHelpers.js +8 -0
  4. package/build/cjs/_virtual/_commonjsHelpers.js.map +1 -0
  5. package/build/cjs/_virtual/array-set.js +6 -0
  6. package/build/cjs/_virtual/array-set.js.map +1 -0
  7. package/build/cjs/_virtual/astring.js +6 -0
  8. package/build/cjs/_virtual/astring.js.map +1 -0
  9. package/build/cjs/_virtual/base64-vlq.js +6 -0
  10. package/build/cjs/_virtual/base64-vlq.js.map +1 -0
  11. package/build/cjs/_virtual/base64.js +6 -0
  12. package/build/cjs/_virtual/base64.js.map +1 -0
  13. package/build/cjs/_virtual/binary-search.js +6 -0
  14. package/build/cjs/_virtual/binary-search.js.map +1 -0
  15. package/build/cjs/_virtual/mapping-list.js +6 -0
  16. package/build/cjs/_virtual/mapping-list.js.map +1 -0
  17. package/build/cjs/_virtual/meriyah.js +6 -0
  18. package/build/cjs/_virtual/meriyah.js.map +1 -0
  19. package/build/cjs/_virtual/node.js +6 -0
  20. package/build/cjs/_virtual/node.js.map +1 -0
  21. package/build/cjs/_virtual/quick-sort.js +6 -0
  22. package/build/cjs/_virtual/quick-sort.js.map +1 -0
  23. package/build/cjs/_virtual/source-map-consumer.js +6 -0
  24. package/build/cjs/_virtual/source-map-consumer.js.map +1 -0
  25. package/build/cjs/_virtual/source-map-generator.js +6 -0
  26. package/build/cjs/_virtual/source-map-generator.js.map +1 -0
  27. package/build/cjs/_virtual/source-map.js +6 -0
  28. package/build/cjs/_virtual/source-map.js.map +1 -0
  29. package/build/cjs/_virtual/source-node.js +6 -0
  30. package/build/cjs/_virtual/source-node.js.map +1 -0
  31. package/build/cjs/_virtual/util.js +6 -0
  32. package/build/cjs/_virtual/util.js.map +1 -0
  33. package/build/cjs/ai/anthropic-ai/constants.js +16 -0
  34. package/build/cjs/ai/anthropic-ai/constants.js.map +1 -0
  35. package/build/cjs/ai/anthropic-ai/index.js +250 -0
  36. package/build/cjs/ai/anthropic-ai/index.js.map +1 -0
  37. package/build/cjs/ai/anthropic-ai/streaming.js +154 -0
  38. package/build/cjs/ai/anthropic-ai/streaming.js.map +1 -0
  39. package/build/cjs/ai/anthropic-ai/utils.js +61 -0
  40. package/build/cjs/ai/anthropic-ai/utils.js.map +1 -0
  41. package/build/cjs/ai/core/gen-ai-attributes.js +20 -0
  42. package/build/cjs/ai/core/gen-ai-attributes.js.map +1 -0
  43. package/build/cjs/ai/core/utils.js +134 -0
  44. package/build/cjs/ai/core/utils.js.map +1 -0
  45. package/build/cjs/ai/google-genai/constants.js +17 -0
  46. package/build/cjs/ai/google-genai/constants.js.map +1 -0
  47. package/build/cjs/ai/google-genai/index.js +251 -0
  48. package/build/cjs/ai/google-genai/index.js.map +1 -0
  49. package/build/cjs/ai/google-genai/streaming.js +71 -0
  50. package/build/cjs/ai/google-genai/streaming.js.map +1 -0
  51. package/build/cjs/ai/google-genai/utils.js +21 -0
  52. package/build/cjs/ai/google-genai/utils.js.map +1 -0
  53. package/build/cjs/ai/langchain/constants.js +17 -0
  54. package/build/cjs/ai/langchain/constants.js.map +1 -0
  55. package/build/cjs/ai/langchain/embeddings.js +85 -0
  56. package/build/cjs/ai/langchain/embeddings.js.map +1 -0
  57. package/build/cjs/ai/langchain/index.js +257 -0
  58. package/build/cjs/ai/langchain/index.js.map +1 -0
  59. package/build/cjs/ai/langchain/utils.js +272 -0
  60. package/build/cjs/ai/langchain/utils.js.map +1 -0
  61. package/build/cjs/ai/langgraph/constants.js +8 -0
  62. package/build/cjs/ai/langgraph/constants.js.map +1 -0
  63. package/build/cjs/ai/langgraph/index.js +176 -0
  64. package/build/cjs/ai/langgraph/index.js.map +1 -0
  65. package/build/cjs/ai/langgraph/utils.js +231 -0
  66. package/build/cjs/ai/langgraph/utils.js.map +1 -0
  67. package/build/cjs/ai/openai/constants.js +33 -0
  68. package/build/cjs/ai/openai/constants.js.map +1 -0
  69. package/build/cjs/ai/openai/index.js +173 -0
  70. package/build/cjs/ai/openai/index.js.map +1 -0
  71. package/build/cjs/ai/openai/streaming.js +126 -0
  72. package/build/cjs/ai/openai/streaming.js.map +1 -0
  73. package/build/cjs/ai/openai/utils.js +111 -0
  74. package/build/cjs/ai/openai/utils.js.map +1 -0
  75. package/build/cjs/ai/vercel-ai/constants.js +23 -0
  76. package/build/cjs/ai/vercel-ai/constants.js.map +1 -0
  77. package/build/cjs/ai/vercel-ai/index.js +343 -0
  78. package/build/cjs/ai/vercel-ai/index.js.map +1 -0
  79. package/build/cjs/ai/vercel-ai/utils.js +171 -0
  80. package/build/cjs/ai/vercel-ai/utils.js.map +1 -0
  81. package/build/cjs/ai/vercel-ai/vercel-ai-attributes.js +50 -0
  82. package/build/cjs/ai/vercel-ai/vercel-ai-attributes.js.map +1 -0
  83. package/build/cjs/ai/workers-ai/constants.js +10 -0
  84. package/build/cjs/ai/workers-ai/constants.js.map +1 -0
  85. package/build/cjs/ai/workers-ai/index.js +83 -0
  86. package/build/cjs/ai/workers-ai/index.js.map +1 -0
  87. package/build/cjs/ai/workers-ai/streaming.js +150 -0
  88. package/build/cjs/ai/workers-ai/streaming.js.map +1 -0
  89. package/build/cjs/ai/workers-ai/utils.js +132 -0
  90. package/build/cjs/ai/workers-ai/utils.js.map +1 -0
  91. package/build/cjs/async-context.js +64 -0
  92. package/build/cjs/async-context.js.map +1 -0
  93. package/build/cjs/debug-build.js.map +1 -1
  94. package/build/cjs/graphql/graphql-dc-subscriber.js.map +1 -1
  95. package/build/cjs/graphql/index.js +15 -2
  96. package/build/cjs/graphql/index.js.map +1 -1
  97. package/build/cjs/graphql/utils.js +2 -0
  98. package/build/cjs/graphql/utils.js.map +1 -1
  99. package/build/cjs/index.js +42 -17
  100. package/build/cjs/index.js.map +1 -1
  101. package/build/cjs/index.no-diagnostic-channels.js +31 -0
  102. package/build/cjs/index.no-diagnostic-channels.js.map +1 -0
  103. package/build/cjs/integrations/tracing-channel/amqplib.js +46 -35
  104. package/build/cjs/integrations/tracing-channel/amqplib.js.map +1 -1
  105. package/build/cjs/integrations/tracing-channel/anthropic.js +53 -41
  106. package/build/cjs/integrations/tracing-channel/anthropic.js.map +1 -1
  107. package/build/cjs/integrations/tracing-channel/aws-sdk/constants.js +3 -1
  108. package/build/cjs/integrations/tracing-channel/aws-sdk/constants.js.map +1 -1
  109. package/build/cjs/integrations/tracing-channel/aws-sdk/index.js +114 -115
  110. package/build/cjs/integrations/tracing-channel/aws-sdk/index.js.map +1 -1
  111. package/build/cjs/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js.map +1 -1
  112. package/build/cjs/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js.map +1 -1
  113. package/build/cjs/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js +8 -4
  114. package/build/cjs/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js.map +1 -1
  115. package/build/cjs/integrations/tracing-channel/aws-sdk/services/dynamodb.js +0 -2
  116. package/build/cjs/integrations/tracing-channel/aws-sdk/services/dynamodb.js.map +1 -1
  117. package/build/cjs/integrations/tracing-channel/aws-sdk/services/kinesis.js +1 -3
  118. package/build/cjs/integrations/tracing-channel/aws-sdk/services/kinesis.js.map +1 -1
  119. package/build/cjs/integrations/tracing-channel/aws-sdk/services/lambda.js +0 -1
  120. package/build/cjs/integrations/tracing-channel/aws-sdk/services/lambda.js.map +1 -1
  121. package/build/cjs/integrations/tracing-channel/aws-sdk/services/s3.js +1 -3
  122. package/build/cjs/integrations/tracing-channel/aws-sdk/services/s3.js.map +1 -1
  123. package/build/cjs/integrations/tracing-channel/aws-sdk/services/secretsmanager.js +1 -3
  124. package/build/cjs/integrations/tracing-channel/aws-sdk/services/secretsmanager.js.map +1 -1
  125. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sns.js +3 -4
  126. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sns.js.map +1 -1
  127. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sqs.js +4 -5
  128. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sqs.js.map +1 -1
  129. package/build/cjs/integrations/tracing-channel/aws-sdk/services/stepfunctions.js +1 -3
  130. package/build/cjs/integrations/tracing-channel/aws-sdk/services/stepfunctions.js.map +1 -1
  131. package/build/cjs/integrations/tracing-channel/aws-sdk/utils.js.map +1 -1
  132. package/build/cjs/integrations/tracing-channel/dataloader.js +25 -12
  133. package/build/cjs/integrations/tracing-channel/dataloader.js.map +1 -1
  134. package/build/cjs/integrations/tracing-channel/express/index.js +24 -11
  135. package/build/cjs/integrations/tracing-channel/express/index.js.map +1 -1
  136. package/build/cjs/integrations/tracing-channel/express/instrumentation.js +11 -16
  137. package/build/cjs/integrations/tracing-channel/express/instrumentation.js.map +1 -1
  138. package/build/cjs/integrations/tracing-channel/express/route.js.map +1 -1
  139. package/build/cjs/integrations/tracing-channel/fastify/errors.js +14 -1
  140. package/build/cjs/integrations/tracing-channel/fastify/errors.js.map +1 -1
  141. package/build/cjs/integrations/tracing-channel/fastify/index.js.map +1 -1
  142. package/build/cjs/integrations/tracing-channel/fastify/instrumentation.js +25 -10
  143. package/build/cjs/integrations/tracing-channel/fastify/instrumentation.js.map +1 -1
  144. package/build/cjs/integrations/tracing-channel/fastify/utils.js.map +1 -1
  145. package/build/cjs/integrations/tracing-channel/firebase/firestore.js +16 -3
  146. package/build/cjs/integrations/tracing-channel/firebase/firestore.js.map +1 -1
  147. package/build/cjs/integrations/tracing-channel/firebase/functions.js +6 -4
  148. package/build/cjs/integrations/tracing-channel/firebase/functions.js.map +1 -1
  149. package/build/cjs/integrations/tracing-channel/firebase/index.js +8 -12
  150. package/build/cjs/integrations/tracing-channel/firebase/index.js.map +1 -1
  151. package/build/cjs/integrations/tracing-channel/firebase/instrumentation.js +17 -14
  152. package/build/cjs/integrations/tracing-channel/firebase/instrumentation.js.map +1 -1
  153. package/build/cjs/integrations/tracing-channel/generic-pool.js +22 -10
  154. package/build/cjs/integrations/tracing-channel/generic-pool.js.map +1 -1
  155. package/build/cjs/integrations/tracing-channel/google-genai.js +54 -42
  156. package/build/cjs/integrations/tracing-channel/google-genai.js.map +1 -1
  157. package/build/cjs/integrations/tracing-channel/graphql/constants.js.map +1 -1
  158. package/build/cjs/integrations/tracing-channel/graphql/index.js +40 -36
  159. package/build/cjs/integrations/tracing-channel/graphql/index.js.map +1 -1
  160. package/build/cjs/integrations/tracing-channel/graphql/resolvers.js.map +1 -1
  161. package/build/cjs/integrations/tracing-channel/graphql/spans.js.map +1 -1
  162. package/build/cjs/integrations/tracing-channel/hapi-types.js.map +1 -1
  163. package/build/cjs/integrations/tracing-channel/hapi-utils.js +13 -21
  164. package/build/cjs/integrations/tracing-channel/hapi-utils.js.map +1 -1
  165. package/build/cjs/integrations/tracing-channel/hapi.js +51 -36
  166. package/build/cjs/integrations/tracing-channel/hapi.js.map +1 -1
  167. package/build/cjs/integrations/tracing-channel/ioredis.js +52 -41
  168. package/build/cjs/integrations/tracing-channel/ioredis.js.map +1 -1
  169. package/build/cjs/integrations/tracing-channel/kafkajs/consumer.js.map +1 -1
  170. package/build/cjs/integrations/tracing-channel/kafkajs/index.js +28 -15
  171. package/build/cjs/integrations/tracing-channel/kafkajs/index.js.map +1 -1
  172. package/build/cjs/integrations/tracing-channel/kafkajs/semconv.js.map +1 -1
  173. package/build/cjs/integrations/tracing-channel/kafkajs/spans.js +8 -7
  174. package/build/cjs/integrations/tracing-channel/kafkajs/spans.js.map +1 -1
  175. package/build/cjs/integrations/tracing-channel/knex.js +24 -10
  176. package/build/cjs/integrations/tracing-channel/knex.js.map +1 -1
  177. package/build/cjs/integrations/tracing-channel/koa.js +42 -39
  178. package/build/cjs/integrations/tracing-channel/koa.js.map +1 -1
  179. package/build/cjs/integrations/tracing-channel/langchain.js +59 -40
  180. package/build/cjs/integrations/tracing-channel/langchain.js.map +1 -1
  181. package/build/cjs/integrations/tracing-channel/langgraph.js +64 -64
  182. package/build/cjs/integrations/tracing-channel/langgraph.js.map +1 -1
  183. package/build/cjs/integrations/tracing-channel/lru-memoizer.js +27 -16
  184. package/build/cjs/integrations/tracing-channel/lru-memoizer.js.map +1 -1
  185. package/build/cjs/integrations/tracing-channel/mongodb.js +29 -16
  186. package/build/cjs/integrations/tracing-channel/mongodb.js.map +1 -1
  187. package/build/cjs/integrations/tracing-channel/mongoose.js +25 -13
  188. package/build/cjs/integrations/tracing-channel/mongoose.js.map +1 -1
  189. package/build/cjs/integrations/tracing-channel/mysql.js +65 -53
  190. package/build/cjs/integrations/tracing-channel/mysql.js.map +1 -1
  191. package/build/cjs/integrations/tracing-channel/mysql2.js +27 -10
  192. package/build/cjs/integrations/tracing-channel/mysql2.js.map +1 -1
  193. package/build/cjs/integrations/tracing-channel/openai.js +46 -34
  194. package/build/cjs/integrations/tracing-channel/openai.js.map +1 -1
  195. package/build/cjs/integrations/tracing-channel/postgres-js.js +96 -84
  196. package/build/cjs/integrations/tracing-channel/postgres-js.js.map +1 -1
  197. package/build/cjs/integrations/tracing-channel/postgres.js +35 -19
  198. package/build/cjs/integrations/tracing-channel/postgres.js.map +1 -1
  199. package/build/cjs/integrations/tracing-channel/redis.js +52 -31
  200. package/build/cjs/integrations/tracing-channel/redis.js.map +1 -1
  201. package/build/cjs/integrations/tracing-channel/tedious.js +35 -22
  202. package/build/cjs/integrations/tracing-channel/tedious.js.map +1 -1
  203. package/build/cjs/integrations/tracing-channel/vercel-ai.js +23 -10
  204. package/build/cjs/integrations/tracing-channel/vercel-ai.js.map +1 -1
  205. package/build/cjs/mongodb/mongodb-span.js +15 -18
  206. package/build/cjs/mongodb/mongodb-span.js.map +1 -1
  207. package/build/cjs/mongoose/index.js +15 -2
  208. package/build/cjs/mongoose/index.js.map +1 -1
  209. package/build/cjs/mongoose/mongoose-dc-subscriber.js.map +1 -1
  210. package/build/cjs/mongoose/mongoose-legacy-span.js +4 -3
  211. package/build/cjs/mongoose/mongoose-legacy-span.js.map +1 -1
  212. package/build/cjs/mysql2/index.js +15 -2
  213. package/build/cjs/mysql2/index.js.map +1 -1
  214. package/build/cjs/mysql2/mysql2-dc-subscriber.js.map +1 -1
  215. package/build/cjs/orchestrion/bundler/esbuild.js +22 -6
  216. package/build/cjs/orchestrion/bundler/esbuild.js.map +1 -1
  217. package/build/cjs/orchestrion/bundler/moduleInjectedTransform.js +43 -0
  218. package/build/cjs/orchestrion/bundler/moduleInjectedTransform.js.map +1 -0
  219. package/build/cjs/orchestrion/bundler/options.js +5 -19
  220. package/build/cjs/orchestrion/bundler/options.js.map +1 -1
  221. package/build/cjs/orchestrion/bundler/resolve.js +23 -0
  222. package/build/cjs/orchestrion/bundler/resolve.js.map +1 -0
  223. package/build/cjs/orchestrion/bundler/rollup.js +21 -6
  224. package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
  225. package/build/cjs/orchestrion/bundler/vite.js +42 -7
  226. package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
  227. package/build/cjs/orchestrion/bundler/webpack-loader.js +22 -0
  228. package/build/cjs/orchestrion/bundler/webpack-loader.js.map +1 -0
  229. package/build/cjs/orchestrion/bundler/webpack.js +45 -24
  230. package/build/cjs/orchestrion/bundler/webpack.js.map +1 -1
  231. package/build/cjs/orchestrion/channels.js.map +1 -1
  232. package/build/cjs/orchestrion/config/amqplib.js +3 -3
  233. package/build/cjs/orchestrion/config/amqplib.js.map +1 -1
  234. package/build/cjs/orchestrion/config/anthropic-ai.js +3 -3
  235. package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -1
  236. package/build/cjs/orchestrion/config/aws-sdk.js +3 -3
  237. package/build/cjs/orchestrion/config/aws-sdk.js.map +1 -1
  238. package/build/cjs/orchestrion/config/channel-integration-definitions.js +16 -16
  239. package/build/cjs/orchestrion/config/channel-integration-definitions.js.map +1 -1
  240. package/build/cjs/orchestrion/config/dataloader.js +0 -4
  241. package/build/cjs/orchestrion/config/dataloader.js.map +1 -1
  242. package/build/cjs/orchestrion/config/express.js +4 -4
  243. package/build/cjs/orchestrion/config/express.js.map +1 -1
  244. package/build/cjs/orchestrion/config/firebase.js +3 -3
  245. package/build/cjs/orchestrion/config/firebase.js.map +1 -1
  246. package/build/cjs/orchestrion/config/generic-pool.js +3 -3
  247. package/build/cjs/orchestrion/config/generic-pool.js.map +1 -1
  248. package/build/cjs/orchestrion/config/google-genai.js +8 -7
  249. package/build/cjs/orchestrion/config/google-genai.js.map +1 -1
  250. package/build/cjs/orchestrion/config/graphql.js +3 -3
  251. package/build/cjs/orchestrion/config/graphql.js.map +1 -1
  252. package/build/cjs/orchestrion/config/hapi.js +3 -3
  253. package/build/cjs/orchestrion/config/hapi.js.map +1 -1
  254. package/build/cjs/orchestrion/config/index.js +3 -32
  255. package/build/cjs/orchestrion/config/index.js.map +1 -1
  256. package/build/cjs/orchestrion/config/ioredis.js +3 -3
  257. package/build/cjs/orchestrion/config/ioredis.js.map +1 -1
  258. package/build/cjs/orchestrion/config/kafkajs.js +3 -3
  259. package/build/cjs/orchestrion/config/kafkajs.js.map +1 -1
  260. package/build/cjs/orchestrion/config/knex.js +0 -4
  261. package/build/cjs/orchestrion/config/knex.js.map +1 -1
  262. package/build/cjs/orchestrion/config/koa.js +3 -3
  263. package/build/cjs/orchestrion/config/koa.js.map +1 -1
  264. package/build/cjs/orchestrion/config/langchain.js +3 -3
  265. package/build/cjs/orchestrion/config/langchain.js.map +1 -1
  266. package/build/cjs/orchestrion/config/langgraph.js +3 -3
  267. package/build/cjs/orchestrion/config/langgraph.js.map +1 -1
  268. package/build/cjs/orchestrion/config/lru-memoizer.js +3 -3
  269. package/build/cjs/orchestrion/config/lru-memoizer.js.map +1 -1
  270. package/build/cjs/orchestrion/config/module-names.js +8 -0
  271. package/build/cjs/orchestrion/config/module-names.js.map +1 -0
  272. package/build/cjs/orchestrion/config/mongodb.js +3 -3
  273. package/build/cjs/orchestrion/config/mongodb.js.map +1 -1
  274. package/build/cjs/orchestrion/config/mongoose.js +3 -3
  275. package/build/cjs/orchestrion/config/mongoose.js.map +1 -1
  276. package/build/cjs/orchestrion/config/mysql.js +3 -3
  277. package/build/cjs/orchestrion/config/mysql.js.map +1 -1
  278. package/build/cjs/orchestrion/config/mysql2.js +3 -3
  279. package/build/cjs/orchestrion/config/mysql2.js.map +1 -1
  280. package/build/cjs/orchestrion/config/nestjs.js +0 -4
  281. package/build/cjs/orchestrion/config/nestjs.js.map +1 -1
  282. package/build/cjs/orchestrion/config/openai.js +3 -3
  283. package/build/cjs/orchestrion/config/openai.js.map +1 -1
  284. package/build/cjs/orchestrion/config/pg.js +3 -3
  285. package/build/cjs/orchestrion/config/pg.js.map +1 -1
  286. package/build/cjs/orchestrion/config/postgres.js +3 -3
  287. package/build/cjs/orchestrion/config/postgres.js.map +1 -1
  288. package/build/cjs/orchestrion/config/redis.js +3 -3
  289. package/build/cjs/orchestrion/config/redis.js.map +1 -1
  290. package/build/cjs/orchestrion/config/remix.js +0 -4
  291. package/build/cjs/orchestrion/config/remix.js.map +1 -1
  292. package/build/cjs/orchestrion/config/tedious.js +3 -3
  293. package/build/cjs/orchestrion/config/tedious.js.map +1 -1
  294. package/build/cjs/orchestrion/config/vercel-ai.js +3 -3
  295. package/build/cjs/orchestrion/config/vercel-ai.js.map +1 -1
  296. package/build/cjs/orchestrion/detect.js +7 -1
  297. package/build/cjs/orchestrion/detect.js.map +1 -1
  298. package/build/cjs/orchestrion/index.js +51 -50
  299. package/build/cjs/orchestrion/index.js.map +1 -1
  300. package/build/cjs/orchestrion/instrumentation.js +86 -0
  301. package/build/cjs/orchestrion/instrumentation.js.map +1 -0
  302. package/build/cjs/orchestrion/moduleInjected.js +21 -0
  303. package/build/cjs/orchestrion/moduleInjected.js.map +1 -0
  304. package/build/cjs/orchestrion/runtime/hook.js +17 -0
  305. package/build/cjs/orchestrion/runtime/hook.js.map +1 -0
  306. package/build/cjs/orchestrion/runtime/register.js +46 -43
  307. package/build/cjs/orchestrion/runtime/register.js.map +1 -1
  308. package/build/cjs/otlp.js +45 -0
  309. package/build/cjs/otlp.js.map +1 -0
  310. package/build/cjs/prisma/global.js.map +1 -1
  311. package/build/cjs/prisma/index.js.map +1 -1
  312. package/build/cjs/prisma/tracing-helper.js +18 -10
  313. package/build/cjs/prisma/tracing-helper.js.map +1 -1
  314. package/build/cjs/redis/index.js +15 -2
  315. package/build/cjs/redis/index.js.map +1 -1
  316. package/build/cjs/redis/redis-dc-subscriber.js +5 -3
  317. package/build/cjs/redis/redis-dc-subscriber.js.map +1 -1
  318. package/build/cjs/redis/redis-statement-serializer.js.map +1 -1
  319. package/build/cjs/tracing-channel.js +9 -0
  320. package/build/cjs/tracing-channel.js.map +1 -1
  321. package/build/cjs/utils/setHttpServerSpanRouteAttribute.js +26 -0
  322. package/build/cjs/utils/setHttpServerSpanRouteAttribute.js.map +1 -0
  323. package/build/cjs/vendored/@apm-js-collab/code-transformer/index.js +8 -0
  324. package/build/cjs/vendored/@apm-js-collab/code-transformer/index.js.map +1 -0
  325. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/index.js +12 -0
  326. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -0
  327. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/matcher.js +86 -0
  328. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -0
  329. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js +316 -0
  330. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -0
  331. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js +442 -0
  332. package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -0
  333. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js +219 -0
  334. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js.map +1 -0
  335. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js +98 -0
  336. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -0
  337. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js +52 -0
  338. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -0
  339. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js +1069 -0
  340. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js.map +1 -0
  341. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js +14 -0
  342. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -0
  343. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js +117 -0
  344. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +1 -0
  345. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js +104 -0
  346. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -0
  347. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/hook.js +166 -0
  348. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/hook.js.map +1 -0
  349. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/index.js +88 -0
  350. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/index.js.map +1 -0
  351. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js +15 -0
  352. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js.map +1 -0
  353. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js +30 -0
  354. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js.map +1 -0
  355. package/build/cjs/vendored/astring/dist/astring.js +1068 -0
  356. package/build/cjs/vendored/astring/dist/astring.js.map +1 -0
  357. package/build/cjs/vendored/debug/src/common.js +178 -0
  358. package/build/cjs/vendored/debug/src/common.js.map +1 -0
  359. package/build/cjs/vendored/debug/src/node.js +186 -0
  360. package/build/cjs/vendored/debug/src/node.js.map +1 -0
  361. package/build/cjs/vendored/esquery/dist/esquery.esm.min.js +847 -0
  362. package/build/cjs/vendored/esquery/dist/esquery.esm.min.js.map +1 -0
  363. package/build/cjs/vendored/has-flag/index.js +11 -0
  364. package/build/cjs/vendored/has-flag/index.js.map +1 -0
  365. package/build/cjs/vendored/meriyah/dist/meriyah.js +9192 -0
  366. package/build/cjs/vendored/meriyah/dist/meriyah.js.map +1 -0
  367. package/build/cjs/vendored/meriyah/dist/meriyah2.js +9209 -0
  368. package/build/cjs/vendored/meriyah/dist/meriyah2.js.map +1 -0
  369. package/build/cjs/vendored/module-details-from-path/index.js +44 -0
  370. package/build/cjs/vendored/module-details-from-path/index.js.map +1 -0
  371. package/build/cjs/vendored/ms/index.js +115 -0
  372. package/build/cjs/vendored/ms/index.js.map +1 -0
  373. package/build/cjs/vendored/semifies/index.js +111 -0
  374. package/build/cjs/vendored/semifies/index.js.map +1 -0
  375. package/build/cjs/vendored/source-map/lib/array-set.js +73 -0
  376. package/build/cjs/vendored/source-map/lib/array-set.js.map +1 -0
  377. package/build/cjs/vendored/source-map/lib/base64-vlq.js +57 -0
  378. package/build/cjs/vendored/source-map/lib/base64-vlq.js.map +1 -0
  379. package/build/cjs/vendored/source-map/lib/base64.js +42 -0
  380. package/build/cjs/vendored/source-map/lib/base64.js.map +1 -0
  381. package/build/cjs/vendored/source-map/lib/binary-search.js +55 -0
  382. package/build/cjs/vendored/source-map/lib/binary-search.js.map +1 -0
  383. package/build/cjs/vendored/source-map/lib/mapping-list.js +42 -0
  384. package/build/cjs/vendored/source-map/lib/mapping-list.js.map +1 -0
  385. package/build/cjs/vendored/source-map/lib/quick-sort.js +36 -0
  386. package/build/cjs/vendored/source-map/lib/quick-sort.js.map +1 -0
  387. package/build/cjs/vendored/source-map/lib/source-map-consumer.js +612 -0
  388. package/build/cjs/vendored/source-map/lib/source-map-consumer.js.map +1 -0
  389. package/build/cjs/vendored/source-map/lib/source-map-generator.js +285 -0
  390. package/build/cjs/vendored/source-map/lib/source-map-generator.js.map +1 -0
  391. package/build/cjs/vendored/source-map/lib/source-node.js +270 -0
  392. package/build/cjs/vendored/source-map/lib/source-node.js.map +1 -0
  393. package/build/cjs/vendored/source-map/lib/util.js +300 -0
  394. package/build/cjs/vendored/source-map/lib/util.js.map +1 -0
  395. package/build/cjs/vendored/source-map/source-map.js +16 -0
  396. package/build/cjs/vendored/source-map/source-map.js.map +1 -0
  397. package/build/cjs/vendored/supports-color/index.js +104 -0
  398. package/build/cjs/vendored/supports-color/index.js.map +1 -0
  399. package/build/cjs/vercel-ai/index.js +15 -2
  400. package/build/cjs/vercel-ai/index.js.map +1 -1
  401. package/build/cjs/vercel-ai/util.js.map +1 -1
  402. package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js +19 -21
  403. package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  404. package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js +1 -1
  405. package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
  406. package/build/esm/_virtual/_commonjsHelpers.js +6 -0
  407. package/build/esm/_virtual/_commonjsHelpers.js.map +1 -0
  408. package/build/esm/_virtual/array-set.js +4 -0
  409. package/build/esm/_virtual/array-set.js.map +1 -0
  410. package/build/esm/_virtual/astring.js +4 -0
  411. package/build/esm/_virtual/astring.js.map +1 -0
  412. package/build/esm/_virtual/base64-vlq.js +4 -0
  413. package/build/esm/_virtual/base64-vlq.js.map +1 -0
  414. package/build/esm/_virtual/base64.js +4 -0
  415. package/build/esm/_virtual/base64.js.map +1 -0
  416. package/build/esm/_virtual/binary-search.js +4 -0
  417. package/build/esm/_virtual/binary-search.js.map +1 -0
  418. package/build/esm/_virtual/mapping-list.js +4 -0
  419. package/build/esm/_virtual/mapping-list.js.map +1 -0
  420. package/build/esm/_virtual/meriyah.js +4 -0
  421. package/build/esm/_virtual/meriyah.js.map +1 -0
  422. package/build/esm/_virtual/node.js +4 -0
  423. package/build/esm/_virtual/node.js.map +1 -0
  424. package/build/esm/_virtual/quick-sort.js +4 -0
  425. package/build/esm/_virtual/quick-sort.js.map +1 -0
  426. package/build/esm/_virtual/source-map-consumer.js +4 -0
  427. package/build/esm/_virtual/source-map-consumer.js.map +1 -0
  428. package/build/esm/_virtual/source-map-generator.js +4 -0
  429. package/build/esm/_virtual/source-map-generator.js.map +1 -0
  430. package/build/esm/_virtual/source-map.js +4 -0
  431. package/build/esm/_virtual/source-map.js.map +1 -0
  432. package/build/esm/_virtual/source-node.js +4 -0
  433. package/build/esm/_virtual/source-node.js.map +1 -0
  434. package/build/esm/_virtual/util.js +4 -0
  435. package/build/esm/_virtual/util.js.map +1 -0
  436. package/build/esm/ai/anthropic-ai/constants.js +13 -0
  437. package/build/esm/ai/anthropic-ai/constants.js.map +1 -0
  438. package/build/esm/ai/anthropic-ai/index.js +245 -0
  439. package/build/esm/ai/anthropic-ai/index.js.map +1 -0
  440. package/build/esm/ai/anthropic-ai/streaming.js +151 -0
  441. package/build/esm/ai/anthropic-ai/streaming.js.map +1 -0
  442. package/build/esm/ai/anthropic-ai/utils.js +56 -0
  443. package/build/esm/ai/anthropic-ai/utils.js.map +1 -0
  444. package/build/esm/ai/core/gen-ai-attributes.js +11 -0
  445. package/build/esm/ai/core/gen-ai-attributes.js.map +1 -0
  446. package/build/esm/ai/core/utils.js +126 -0
  447. package/build/esm/ai/core/utils.js.map +1 -0
  448. package/build/esm/ai/google-genai/constants.js +13 -0
  449. package/build/esm/ai/google-genai/constants.js.map +1 -0
  450. package/build/esm/ai/google-genai/index.js +245 -0
  451. package/build/esm/ai/google-genai/index.js.map +1 -0
  452. package/build/esm/ai/google-genai/streaming.js +69 -0
  453. package/build/esm/ai/google-genai/streaming.js.map +1 -0
  454. package/build/esm/ai/google-genai/utils.js +19 -0
  455. package/build/esm/ai/google-genai/utils.js.map +1 -0
  456. package/build/esm/ai/langchain/constants.js +13 -0
  457. package/build/esm/ai/langchain/constants.js.map +1 -0
  458. package/build/esm/ai/langchain/embeddings.js +81 -0
  459. package/build/esm/ai/langchain/embeddings.js.map +1 -0
  460. package/build/esm/ai/langchain/index.js +255 -0
  461. package/build/esm/ai/langchain/index.js.map +1 -0
  462. package/build/esm/ai/langchain/utils.js +263 -0
  463. package/build/esm/ai/langchain/utils.js.map +1 -0
  464. package/build/esm/ai/langgraph/constants.js +5 -0
  465. package/build/esm/ai/langgraph/constants.js.map +1 -0
  466. package/build/esm/ai/langgraph/index.js +171 -0
  467. package/build/esm/ai/langgraph/index.js.map +1 -0
  468. package/build/esm/ai/langgraph/utils.js +222 -0
  469. package/build/esm/ai/langgraph/utils.js.map +1 -0
  470. package/build/esm/ai/openai/constants.js +28 -0
  471. package/build/esm/ai/openai/constants.js.map +1 -0
  472. package/build/esm/ai/openai/index.js +169 -0
  473. package/build/esm/ai/openai/index.js.map +1 -0
  474. package/build/esm/ai/openai/streaming.js +124 -0
  475. package/build/esm/ai/openai/streaming.js.map +1 -0
  476. package/build/esm/ai/openai/utils.js +106 -0
  477. package/build/esm/ai/openai/utils.js.map +1 -0
  478. package/build/esm/ai/vercel-ai/constants.js +19 -0
  479. package/build/esm/ai/vercel-ai/constants.js.map +1 -0
  480. package/build/esm/ai/vercel-ai/index.js +339 -0
  481. package/build/esm/ai/vercel-ai/index.js.map +1 -0
  482. package/build/esm/ai/vercel-ai/utils.js +164 -0
  483. package/build/esm/ai/vercel-ai/utils.js.map +1 -0
  484. package/build/esm/ai/vercel-ai/vercel-ai-attributes.js +26 -0
  485. package/build/esm/ai/vercel-ai/vercel-ai-attributes.js.map +1 -0
  486. package/build/esm/ai/workers-ai/constants.js +6 -0
  487. package/build/esm/ai/workers-ai/constants.js.map +1 -0
  488. package/build/esm/ai/workers-ai/index.js +81 -0
  489. package/build/esm/ai/workers-ai/index.js.map +1 -0
  490. package/build/esm/ai/workers-ai/streaming.js +148 -0
  491. package/build/esm/ai/workers-ai/streaming.js.map +1 -0
  492. package/build/esm/ai/workers-ai/utils.js +126 -0
  493. package/build/esm/ai/workers-ai/utils.js.map +1 -0
  494. package/build/esm/async-context.js +62 -0
  495. package/build/esm/async-context.js.map +1 -0
  496. package/build/esm/debug-build.js.map +1 -1
  497. package/build/esm/graphql/graphql-dc-subscriber.js.map +1 -1
  498. package/build/esm/graphql/index.js.map +1 -1
  499. package/build/esm/graphql/utils.js +3 -1
  500. package/build/esm/graphql/utils.js.map +1 -1
  501. package/build/esm/index.js +11 -0
  502. package/build/esm/index.js.map +1 -1
  503. package/build/esm/index.no-diagnostic-channels.js +12 -0
  504. package/build/esm/index.no-diagnostic-channels.js.map +1 -0
  505. package/build/esm/integrations/tracing-channel/amqplib.js +25 -27
  506. package/build/esm/integrations/tracing-channel/amqplib.js.map +1 -1
  507. package/build/esm/integrations/tracing-channel/anthropic.js +35 -36
  508. package/build/esm/integrations/tracing-channel/anthropic.js.map +1 -1
  509. package/build/esm/integrations/tracing-channel/aws-sdk/constants.js +3 -2
  510. package/build/esm/integrations/tracing-channel/aws-sdk/constants.js.map +1 -1
  511. package/build/esm/integrations/tracing-channel/aws-sdk/index.js +105 -119
  512. package/build/esm/integrations/tracing-channel/aws-sdk/index.js.map +1 -1
  513. package/build/esm/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js.map +1 -1
  514. package/build/esm/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js.map +1 -1
  515. package/build/esm/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js +10 -6
  516. package/build/esm/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js.map +1 -1
  517. package/build/esm/integrations/tracing-channel/aws-sdk/services/dynamodb.js +0 -2
  518. package/build/esm/integrations/tracing-channel/aws-sdk/services/dynamodb.js.map +1 -1
  519. package/build/esm/integrations/tracing-channel/aws-sdk/services/kinesis.js +1 -3
  520. package/build/esm/integrations/tracing-channel/aws-sdk/services/kinesis.js.map +1 -1
  521. package/build/esm/integrations/tracing-channel/aws-sdk/services/lambda.js +1 -2
  522. package/build/esm/integrations/tracing-channel/aws-sdk/services/lambda.js.map +1 -1
  523. package/build/esm/integrations/tracing-channel/aws-sdk/services/s3.js +1 -3
  524. package/build/esm/integrations/tracing-channel/aws-sdk/services/s3.js.map +1 -1
  525. package/build/esm/integrations/tracing-channel/aws-sdk/services/secretsmanager.js +1 -3
  526. package/build/esm/integrations/tracing-channel/aws-sdk/services/secretsmanager.js.map +1 -1
  527. package/build/esm/integrations/tracing-channel/aws-sdk/services/sns.js +5 -6
  528. package/build/esm/integrations/tracing-channel/aws-sdk/services/sns.js.map +1 -1
  529. package/build/esm/integrations/tracing-channel/aws-sdk/services/sqs.js +6 -7
  530. package/build/esm/integrations/tracing-channel/aws-sdk/services/sqs.js.map +1 -1
  531. package/build/esm/integrations/tracing-channel/aws-sdk/services/stepfunctions.js +1 -3
  532. package/build/esm/integrations/tracing-channel/aws-sdk/services/stepfunctions.js.map +1 -1
  533. package/build/esm/integrations/tracing-channel/aws-sdk/utils.js.map +1 -1
  534. package/build/esm/integrations/tracing-channel/dataloader.js +10 -10
  535. package/build/esm/integrations/tracing-channel/dataloader.js.map +1 -1
  536. package/build/esm/integrations/tracing-channel/express/index.js +11 -11
  537. package/build/esm/integrations/tracing-channel/express/index.js.map +1 -1
  538. package/build/esm/integrations/tracing-channel/express/instrumentation.js +13 -18
  539. package/build/esm/integrations/tracing-channel/express/instrumentation.js.map +1 -1
  540. package/build/esm/integrations/tracing-channel/express/route.js.map +1 -1
  541. package/build/esm/integrations/tracing-channel/fastify/errors.js.map +1 -1
  542. package/build/esm/integrations/tracing-channel/fastify/index.js.map +1 -1
  543. package/build/esm/integrations/tracing-channel/fastify/instrumentation.js +13 -11
  544. package/build/esm/integrations/tracing-channel/fastify/instrumentation.js.map +1 -1
  545. package/build/esm/integrations/tracing-channel/fastify/utils.js.map +1 -1
  546. package/build/esm/integrations/tracing-channel/firebase/firestore.js +4 -4
  547. package/build/esm/integrations/tracing-channel/firebase/firestore.js.map +1 -1
  548. package/build/esm/integrations/tracing-channel/firebase/functions.js +8 -6
  549. package/build/esm/integrations/tracing-channel/firebase/functions.js.map +1 -1
  550. package/build/esm/integrations/tracing-channel/firebase/index.js +8 -12
  551. package/build/esm/integrations/tracing-channel/firebase/index.js.map +1 -1
  552. package/build/esm/integrations/tracing-channel/firebase/instrumentation.js +3 -13
  553. package/build/esm/integrations/tracing-channel/firebase/instrumentation.js.map +1 -1
  554. package/build/esm/integrations/tracing-channel/generic-pool.js +9 -10
  555. package/build/esm/integrations/tracing-channel/generic-pool.js.map +1 -1
  556. package/build/esm/integrations/tracing-channel/google-genai.js +38 -39
  557. package/build/esm/integrations/tracing-channel/google-genai.js.map +1 -1
  558. package/build/esm/integrations/tracing-channel/graphql/constants.js.map +1 -1
  559. package/build/esm/integrations/tracing-channel/graphql/index.js +30 -39
  560. package/build/esm/integrations/tracing-channel/graphql/index.js.map +1 -1
  561. package/build/esm/integrations/tracing-channel/graphql/resolvers.js.map +1 -1
  562. package/build/esm/integrations/tracing-channel/graphql/spans.js.map +1 -1
  563. package/build/esm/integrations/tracing-channel/hapi-types.js.map +1 -1
  564. package/build/esm/integrations/tracing-channel/hapi-utils.js +14 -22
  565. package/build/esm/integrations/tracing-channel/hapi-utils.js.map +1 -1
  566. package/build/esm/integrations/tracing-channel/hapi.js +39 -37
  567. package/build/esm/integrations/tracing-channel/hapi.js.map +1 -1
  568. package/build/esm/integrations/tracing-channel/ioredis.js +40 -42
  569. package/build/esm/integrations/tracing-channel/ioredis.js.map +1 -1
  570. package/build/esm/integrations/tracing-channel/kafkajs/consumer.js.map +1 -1
  571. package/build/esm/integrations/tracing-channel/kafkajs/index.js +14 -14
  572. package/build/esm/integrations/tracing-channel/kafkajs/index.js.map +1 -1
  573. package/build/esm/integrations/tracing-channel/kafkajs/semconv.js.map +1 -1
  574. package/build/esm/integrations/tracing-channel/kafkajs/spans.js +10 -9
  575. package/build/esm/integrations/tracing-channel/kafkajs/spans.js.map +1 -1
  576. package/build/esm/integrations/tracing-channel/knex.js +10 -9
  577. package/build/esm/integrations/tracing-channel/knex.js.map +1 -1
  578. package/build/esm/integrations/tracing-channel/koa.js +30 -40
  579. package/build/esm/integrations/tracing-channel/koa.js.map +1 -1
  580. package/build/esm/integrations/tracing-channel/langchain.js +45 -39
  581. package/build/esm/integrations/tracing-channel/langchain.js.map +1 -1
  582. package/build/esm/integrations/tracing-channel/langgraph.js +50 -63
  583. package/build/esm/integrations/tracing-channel/langgraph.js.map +1 -1
  584. package/build/esm/integrations/tracing-channel/lru-memoizer.js +15 -17
  585. package/build/esm/integrations/tracing-channel/lru-memoizer.js.map +1 -1
  586. package/build/esm/integrations/tracing-channel/mongodb.js +14 -14
  587. package/build/esm/integrations/tracing-channel/mongodb.js.map +1 -1
  588. package/build/esm/integrations/tracing-channel/mongoose.js +11 -12
  589. package/build/esm/integrations/tracing-channel/mongoose.js.map +1 -1
  590. package/build/esm/integrations/tracing-channel/mysql.js +53 -54
  591. package/build/esm/integrations/tracing-channel/mysql.js.map +1 -1
  592. package/build/esm/integrations/tracing-channel/mysql2.js +14 -10
  593. package/build/esm/integrations/tracing-channel/mysql2.js.map +1 -1
  594. package/build/esm/integrations/tracing-channel/openai.js +32 -33
  595. package/build/esm/integrations/tracing-channel/openai.js.map +1 -1
  596. package/build/esm/integrations/tracing-channel/postgres-js.js +85 -86
  597. package/build/esm/integrations/tracing-channel/postgres-js.js.map +1 -1
  598. package/build/esm/integrations/tracing-channel/postgres.js +22 -19
  599. package/build/esm/integrations/tracing-channel/postgres.js.map +1 -1
  600. package/build/esm/integrations/tracing-channel/redis.js +37 -29
  601. package/build/esm/integrations/tracing-channel/redis.js.map +1 -1
  602. package/build/esm/integrations/tracing-channel/tedious.js +22 -22
  603. package/build/esm/integrations/tracing-channel/tedious.js.map +1 -1
  604. package/build/esm/integrations/tracing-channel/vercel-ai.js +13 -13
  605. package/build/esm/integrations/tracing-channel/vercel-ai.js.map +1 -1
  606. package/build/esm/mongodb/mongodb-span.js +13 -16
  607. package/build/esm/mongodb/mongodb-span.js.map +1 -1
  608. package/build/esm/mongoose/index.js.map +1 -1
  609. package/build/esm/mongoose/mongoose-dc-subscriber.js.map +1 -1
  610. package/build/esm/mongoose/mongoose-legacy-span.js +3 -2
  611. package/build/esm/mongoose/mongoose-legacy-span.js.map +1 -1
  612. package/build/esm/mysql2/index.js.map +1 -1
  613. package/build/esm/mysql2/mysql2-dc-subscriber.js.map +1 -1
  614. package/build/esm/orchestrion/bundler/esbuild.js +22 -2
  615. package/build/esm/orchestrion/bundler/esbuild.js.map +1 -1
  616. package/build/esm/orchestrion/bundler/moduleInjectedTransform.js +40 -0
  617. package/build/esm/orchestrion/bundler/moduleInjectedTransform.js.map +1 -0
  618. package/build/esm/orchestrion/bundler/options.js +5 -20
  619. package/build/esm/orchestrion/bundler/options.js.map +1 -1
  620. package/build/esm/orchestrion/bundler/resolve.js +20 -0
  621. package/build/esm/orchestrion/bundler/resolve.js.map +1 -0
  622. package/build/esm/orchestrion/bundler/rollup.js +21 -2
  623. package/build/esm/orchestrion/bundler/rollup.js.map +1 -1
  624. package/build/esm/orchestrion/bundler/vite.js +43 -4
  625. package/build/esm/orchestrion/bundler/vite.js.map +1 -1
  626. package/build/esm/orchestrion/bundler/webpack-loader.js +20 -0
  627. package/build/esm/orchestrion/bundler/webpack-loader.js.map +1 -0
  628. package/build/esm/orchestrion/bundler/webpack.js +43 -18
  629. package/build/esm/orchestrion/bundler/webpack.js.map +1 -1
  630. package/build/esm/orchestrion/channels.js.map +1 -1
  631. package/build/esm/orchestrion/config/amqplib.js +3 -3
  632. package/build/esm/orchestrion/config/amqplib.js.map +1 -1
  633. package/build/esm/orchestrion/config/anthropic-ai.js +3 -3
  634. package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
  635. package/build/esm/orchestrion/config/aws-sdk.js +3 -3
  636. package/build/esm/orchestrion/config/aws-sdk.js.map +1 -1
  637. package/build/esm/orchestrion/config/channel-integration-definitions.js +16 -16
  638. package/build/esm/orchestrion/config/channel-integration-definitions.js.map +1 -1
  639. package/build/esm/orchestrion/config/dataloader.js +1 -4
  640. package/build/esm/orchestrion/config/dataloader.js.map +1 -1
  641. package/build/esm/orchestrion/config/express.js +4 -4
  642. package/build/esm/orchestrion/config/express.js.map +1 -1
  643. package/build/esm/orchestrion/config/firebase.js +3 -3
  644. package/build/esm/orchestrion/config/firebase.js.map +1 -1
  645. package/build/esm/orchestrion/config/generic-pool.js +3 -3
  646. package/build/esm/orchestrion/config/generic-pool.js.map +1 -1
  647. package/build/esm/orchestrion/config/google-genai.js +8 -7
  648. package/build/esm/orchestrion/config/google-genai.js.map +1 -1
  649. package/build/esm/orchestrion/config/graphql.js +3 -3
  650. package/build/esm/orchestrion/config/graphql.js.map +1 -1
  651. package/build/esm/orchestrion/config/hapi.js +3 -3
  652. package/build/esm/orchestrion/config/hapi.js.map +1 -1
  653. package/build/esm/orchestrion/config/index.js +31 -61
  654. package/build/esm/orchestrion/config/index.js.map +1 -1
  655. package/build/esm/orchestrion/config/ioredis.js +3 -3
  656. package/build/esm/orchestrion/config/ioredis.js.map +1 -1
  657. package/build/esm/orchestrion/config/kafkajs.js +3 -3
  658. package/build/esm/orchestrion/config/kafkajs.js.map +1 -1
  659. package/build/esm/orchestrion/config/knex.js +1 -4
  660. package/build/esm/orchestrion/config/knex.js.map +1 -1
  661. package/build/esm/orchestrion/config/koa.js +3 -3
  662. package/build/esm/orchestrion/config/koa.js.map +1 -1
  663. package/build/esm/orchestrion/config/langchain.js +3 -3
  664. package/build/esm/orchestrion/config/langchain.js.map +1 -1
  665. package/build/esm/orchestrion/config/langgraph.js +3 -3
  666. package/build/esm/orchestrion/config/langgraph.js.map +1 -1
  667. package/build/esm/orchestrion/config/lru-memoizer.js +3 -3
  668. package/build/esm/orchestrion/config/lru-memoizer.js.map +1 -1
  669. package/build/esm/orchestrion/config/module-names.js +6 -0
  670. package/build/esm/orchestrion/config/module-names.js.map +1 -0
  671. package/build/esm/orchestrion/config/mongodb.js +3 -3
  672. package/build/esm/orchestrion/config/mongodb.js.map +1 -1
  673. package/build/esm/orchestrion/config/mongoose.js +3 -3
  674. package/build/esm/orchestrion/config/mongoose.js.map +1 -1
  675. package/build/esm/orchestrion/config/mysql.js +3 -3
  676. package/build/esm/orchestrion/config/mysql.js.map +1 -1
  677. package/build/esm/orchestrion/config/mysql2.js +3 -3
  678. package/build/esm/orchestrion/config/mysql2.js.map +1 -1
  679. package/build/esm/orchestrion/config/nestjs.js +1 -4
  680. package/build/esm/orchestrion/config/nestjs.js.map +1 -1
  681. package/build/esm/orchestrion/config/openai.js +3 -3
  682. package/build/esm/orchestrion/config/openai.js.map +1 -1
  683. package/build/esm/orchestrion/config/pg.js +3 -3
  684. package/build/esm/orchestrion/config/pg.js.map +1 -1
  685. package/build/esm/orchestrion/config/postgres.js +3 -3
  686. package/build/esm/orchestrion/config/postgres.js.map +1 -1
  687. package/build/esm/orchestrion/config/redis.js +3 -3
  688. package/build/esm/orchestrion/config/redis.js.map +1 -1
  689. package/build/esm/orchestrion/config/remix.js +1 -4
  690. package/build/esm/orchestrion/config/remix.js.map +1 -1
  691. package/build/esm/orchestrion/config/tedious.js +3 -3
  692. package/build/esm/orchestrion/config/tedious.js.map +1 -1
  693. package/build/esm/orchestrion/config/vercel-ai.js +3 -3
  694. package/build/esm/orchestrion/config/vercel-ai.js.map +1 -1
  695. package/build/esm/orchestrion/detect.js +7 -2
  696. package/build/esm/orchestrion/detect.js.map +1 -1
  697. package/build/esm/orchestrion/index.js +51 -51
  698. package/build/esm/orchestrion/index.js.map +1 -1
  699. package/build/esm/orchestrion/instrumentation.js +71 -0
  700. package/build/esm/orchestrion/instrumentation.js.map +1 -0
  701. package/build/esm/orchestrion/moduleInjected.js +19 -0
  702. package/build/esm/orchestrion/moduleInjected.js.map +1 -0
  703. package/build/esm/orchestrion/runtime/hook.js +8 -0
  704. package/build/esm/orchestrion/runtime/hook.js.map +1 -0
  705. package/build/esm/orchestrion/runtime/register.js +34 -45
  706. package/build/esm/orchestrion/runtime/register.js.map +1 -1
  707. package/build/esm/otlp.js +42 -0
  708. package/build/esm/otlp.js.map +1 -0
  709. package/build/esm/package.json +1 -1
  710. package/build/esm/prisma/global.js.map +1 -1
  711. package/build/esm/prisma/index.js.map +1 -1
  712. package/build/esm/prisma/tracing-helper.js +14 -6
  713. package/build/esm/prisma/tracing-helper.js.map +1 -1
  714. package/build/esm/redis/index.js.map +1 -1
  715. package/build/esm/redis/redis-dc-subscriber.js +7 -5
  716. package/build/esm/redis/redis-dc-subscriber.js.map +1 -1
  717. package/build/esm/redis/redis-statement-serializer.js.map +1 -1
  718. package/build/esm/tracing-channel.js +9 -1
  719. package/build/esm/tracing-channel.js.map +1 -1
  720. package/build/esm/utils/setHttpServerSpanRouteAttribute.js +24 -0
  721. package/build/esm/utils/setHttpServerSpanRouteAttribute.js.map +1 -0
  722. package/build/esm/vendored/@apm-js-collab/code-transformer/index.js +6 -0
  723. package/build/esm/vendored/@apm-js-collab/code-transformer/index.js.map +1 -0
  724. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/index.js +10 -0
  725. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -0
  726. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/matcher.js +84 -0
  727. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -0
  728. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js +314 -0
  729. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -0
  730. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js +440 -0
  731. package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -0
  732. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js +213 -0
  733. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js.map +1 -0
  734. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js +96 -0
  735. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -0
  736. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js +49 -0
  737. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -0
  738. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js +1067 -0
  739. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js.map +1 -0
  740. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js +12 -0
  741. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -0
  742. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js +116 -0
  743. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +1 -0
  744. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js +101 -0
  745. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -0
  746. package/build/esm/vendored/@apm-js-collab/tracing-hooks/hook.js +157 -0
  747. package/build/esm/vendored/@apm-js-collab/tracing-hooks/hook.js.map +1 -0
  748. package/build/esm/vendored/@apm-js-collab/tracing-hooks/index.js +86 -0
  749. package/build/esm/vendored/@apm-js-collab/tracing-hooks/index.js.map +1 -0
  750. package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js +13 -0
  751. package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js.map +1 -0
  752. package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js +27 -0
  753. package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js.map +1 -0
  754. package/build/esm/vendored/astring/dist/astring.js +1066 -0
  755. package/build/esm/vendored/astring/dist/astring.js.map +1 -0
  756. package/build/esm/vendored/debug/src/common.js +176 -0
  757. package/build/esm/vendored/debug/src/common.js.map +1 -0
  758. package/build/esm/vendored/debug/src/node.js +183 -0
  759. package/build/esm/vendored/debug/src/node.js.map +1 -0
  760. package/build/esm/vendored/esquery/dist/esquery.esm.min.js +845 -0
  761. package/build/esm/vendored/esquery/dist/esquery.esm.min.js.map +1 -0
  762. package/build/esm/vendored/has-flag/index.js +9 -0
  763. package/build/esm/vendored/has-flag/index.js.map +1 -0
  764. package/build/esm/vendored/meriyah/dist/meriyah.js +9190 -0
  765. package/build/esm/vendored/meriyah/dist/meriyah.js.map +1 -0
  766. package/build/esm/vendored/meriyah/dist/meriyah2.js +9207 -0
  767. package/build/esm/vendored/meriyah/dist/meriyah2.js.map +1 -0
  768. package/build/esm/vendored/module-details-from-path/index.js +41 -0
  769. package/build/esm/vendored/module-details-from-path/index.js.map +1 -0
  770. package/build/esm/vendored/ms/index.js +113 -0
  771. package/build/esm/vendored/ms/index.js.map +1 -0
  772. package/build/esm/vendored/semifies/index.js +109 -0
  773. package/build/esm/vendored/semifies/index.js.map +1 -0
  774. package/build/esm/vendored/source-map/lib/array-set.js +71 -0
  775. package/build/esm/vendored/source-map/lib/array-set.js.map +1 -0
  776. package/build/esm/vendored/source-map/lib/base64-vlq.js +55 -0
  777. package/build/esm/vendored/source-map/lib/base64-vlq.js.map +1 -0
  778. package/build/esm/vendored/source-map/lib/base64.js +40 -0
  779. package/build/esm/vendored/source-map/lib/base64.js.map +1 -0
  780. package/build/esm/vendored/source-map/lib/binary-search.js +55 -0
  781. package/build/esm/vendored/source-map/lib/binary-search.js.map +1 -0
  782. package/build/esm/vendored/source-map/lib/mapping-list.js +40 -0
  783. package/build/esm/vendored/source-map/lib/mapping-list.js.map +1 -0
  784. package/build/esm/vendored/source-map/lib/quick-sort.js +34 -0
  785. package/build/esm/vendored/source-map/lib/quick-sort.js.map +1 -0
  786. package/build/esm/vendored/source-map/lib/source-map-consumer.js +610 -0
  787. package/build/esm/vendored/source-map/lib/source-map-consumer.js.map +1 -0
  788. package/build/esm/vendored/source-map/lib/source-map-generator.js +283 -0
  789. package/build/esm/vendored/source-map/lib/source-map-generator.js.map +1 -0
  790. package/build/esm/vendored/source-map/lib/source-node.js +268 -0
  791. package/build/esm/vendored/source-map/lib/source-node.js.map +1 -0
  792. package/build/esm/vendored/source-map/lib/util.js +300 -0
  793. package/build/esm/vendored/source-map/lib/util.js.map +1 -0
  794. package/build/esm/vendored/source-map/source-map.js +14 -0
  795. package/build/esm/vendored/source-map/source-map.js.map +1 -0
  796. package/build/esm/vendored/supports-color/index.js +102 -0
  797. package/build/esm/vendored/supports-color/index.js.map +1 -0
  798. package/build/esm/vercel-ai/index.js.map +1 -1
  799. package/build/esm/vercel-ai/util.js.map +1 -1
  800. package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js +19 -21
  801. package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  802. package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js +1 -1
  803. package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
  804. package/build/orchestrion/import-hook.mjs +1 -1
  805. package/build/types/ai/anthropic-ai/constants.d.ts +26 -0
  806. package/build/types/ai/anthropic-ai/constants.d.ts.map +1 -0
  807. package/build/types/ai/anthropic-ai/index.d.ts +26 -0
  808. package/build/types/ai/anthropic-ai/index.d.ts.map +1 -0
  809. package/build/types/ai/anthropic-ai/streaming.d.ts +15 -0
  810. package/build/types/ai/anthropic-ai/streaming.d.ts.map +1 -0
  811. package/build/types/ai/anthropic-ai/types.d.ts +127 -0
  812. package/build/types/ai/anthropic-ai/types.d.ts.map +1 -0
  813. package/build/types/ai/anthropic-ai/utils.d.ts +21 -0
  814. package/build/types/ai/anthropic-ai/utils.d.ts.map +1 -0
  815. package/build/types/ai/core/gen-ai-attributes.d.ts +44 -0
  816. package/build/types/ai/core/gen-ai-attributes.d.ts.map +1 -0
  817. package/build/types/ai/core/utils.d.ts +84 -0
  818. package/build/types/ai/core/utils.d.ts.map +1 -0
  819. package/build/types/ai/google-genai/constants.d.ts +25 -0
  820. package/build/types/ai/google-genai/constants.d.ts.map +1 -0
  821. package/build/types/ai/google-genai/index.d.ts +47 -0
  822. package/build/types/ai/google-genai/index.d.ts.map +1 -0
  823. package/build/types/ai/google-genai/streaming.d.ts +9 -0
  824. package/build/types/ai/google-genai/streaming.d.ts.map +1 -0
  825. package/build/types/ai/google-genai/types.d.ts +177 -0
  826. package/build/types/ai/google-genai/types.d.ts.map +1 -0
  827. package/build/types/ai/google-genai/utils.d.ts +26 -0
  828. package/build/types/ai/google-genai/utils.d.ts.map +1 -0
  829. package/build/types/ai/index.d.ts +13 -0
  830. package/build/types/ai/index.d.ts.map +1 -0
  831. package/build/types/ai/langchain/constants.d.ts +4 -0
  832. package/build/types/ai/langchain/constants.d.ts.map +1 -0
  833. package/build/types/ai/langchain/embeddings.d.ts +39 -0
  834. package/build/types/ai/langchain/embeddings.d.ts.map +1 -0
  835. package/build/types/ai/langchain/index.d.ts +10 -0
  836. package/build/types/ai/langchain/index.d.ts.map +1 -0
  837. package/build/types/ai/langchain/types.d.ts +155 -0
  838. package/build/types/ai/langchain/types.d.ts.map +1 -0
  839. package/build/types/ai/langchain/utils.d.ts +67 -0
  840. package/build/types/ai/langchain/utils.d.ts.map +1 -0
  841. package/build/types/ai/langgraph/constants.d.ts +3 -0
  842. package/build/types/ai/langgraph/constants.d.ts.map +1 -0
  843. package/build/types/ai/langgraph/index.d.ts +44 -0
  844. package/build/types/ai/langgraph/index.d.ts.map +1 -0
  845. package/build/types/ai/langgraph/types.d.ts +78 -0
  846. package/build/types/ai/langgraph/types.d.ts.map +1 -0
  847. package/build/types/ai/langgraph/utils.d.ts +45 -0
  848. package/build/types/ai/langgraph/utils.d.ts.map +1 -0
  849. package/build/types/ai/openai/constants.d.ts +18 -0
  850. package/build/types/ai/openai/constants.d.ts.map +1 -0
  851. package/build/types/ai/openai/index.d.ts +13 -0
  852. package/build/types/ai/openai/index.d.ts.map +1 -0
  853. package/build/types/ai/openai/streaming.d.ts +13 -0
  854. package/build/types/ai/openai/streaming.d.ts.map +1 -0
  855. package/build/types/ai/openai/types.d.ts +321 -0
  856. package/build/types/ai/openai/types.d.ts.map +1 -0
  857. package/build/types/ai/openai/utils.d.ts +20 -0
  858. package/build/types/ai/openai/utils.d.ts.map +1 -0
  859. package/build/types/ai/vercel-ai/constants.d.ts +6 -0
  860. package/build/types/ai/vercel-ai/constants.d.ts.map +1 -0
  861. package/build/types/ai/vercel-ai/index.d.ts +24 -0
  862. package/build/types/ai/vercel-ai/index.d.ts.map +1 -0
  863. package/build/types/ai/vercel-ai/types.d.ts +9 -0
  864. package/build/types/ai/vercel-ai/types.d.ts.map +1 -0
  865. package/build/types/ai/vercel-ai/utils.d.ts +47 -0
  866. package/build/types/ai/vercel-ai/utils.d.ts.map +1 -0
  867. package/build/types/ai/vercel-ai/vercel-ai-attributes.d.ts +432 -0
  868. package/build/types/ai/vercel-ai/vercel-ai-attributes.d.ts.map +1 -0
  869. package/build/types/ai/workers-ai/constants.d.ts +16 -0
  870. package/build/types/ai/workers-ai/constants.d.ts.map +1 -0
  871. package/build/types/ai/workers-ai/index.d.ts +18 -0
  872. package/build/types/ai/workers-ai/index.d.ts.map +1 -0
  873. package/build/types/ai/workers-ai/streaming.d.ts +9 -0
  874. package/build/types/ai/workers-ai/streaming.d.ts.map +1 -0
  875. package/build/types/ai/workers-ai/types.d.ts +50 -0
  876. package/build/types/ai/workers-ai/types.d.ts.map +1 -0
  877. package/build/types/ai/workers-ai/utils.d.ts +34 -0
  878. package/build/types/ai/workers-ai/utils.d.ts.map +1 -0
  879. package/build/types/async-context.d.ts +15 -0
  880. package/build/types/async-context.d.ts.map +1 -0
  881. package/build/types/exports.d.ts +5 -0
  882. package/build/types/exports.d.ts.map +1 -0
  883. package/build/types/graphql/utils.d.ts.map +1 -1
  884. package/build/types/index.d.ts +1 -5
  885. package/build/types/index.d.ts.map +1 -1
  886. package/build/types/index.no-diagnostic-channels.d.ts +2 -0
  887. package/build/types/index.no-diagnostic-channels.d.ts.map +1 -0
  888. package/build/types/integrations/tracing-channel/amqplib.d.ts +2 -2
  889. package/build/types/integrations/tracing-channel/amqplib.d.ts.map +1 -1
  890. package/build/types/integrations/tracing-channel/anthropic.d.ts +3 -3
  891. package/build/types/integrations/tracing-channel/anthropic.d.ts.map +1 -1
  892. package/build/types/integrations/tracing-channel/aws-sdk/constants.d.ts +3 -2
  893. package/build/types/integrations/tracing-channel/aws-sdk/constants.d.ts.map +1 -1
  894. package/build/types/integrations/tracing-channel/aws-sdk/index.d.ts +4 -7
  895. package/build/types/integrations/tracing-channel/aws-sdk/index.d.ts.map +1 -1
  896. package/build/types/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.d.ts.map +1 -1
  897. package/build/types/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.d.ts.map +1 -1
  898. package/build/types/integrations/tracing-channel/aws-sdk/services/dynamodb.d.ts.map +1 -1
  899. package/build/types/integrations/tracing-channel/aws-sdk/services/kinesis.d.ts.map +1 -1
  900. package/build/types/integrations/tracing-channel/aws-sdk/services/lambda.d.ts.map +1 -1
  901. package/build/types/integrations/tracing-channel/aws-sdk/services/s3.d.ts.map +1 -1
  902. package/build/types/integrations/tracing-channel/aws-sdk/services/secretsmanager.d.ts.map +1 -1
  903. package/build/types/integrations/tracing-channel/aws-sdk/services/sns.d.ts.map +1 -1
  904. package/build/types/integrations/tracing-channel/aws-sdk/services/sqs.d.ts.map +1 -1
  905. package/build/types/integrations/tracing-channel/aws-sdk/services/stepfunctions.d.ts.map +1 -1
  906. package/build/types/integrations/tracing-channel/aws-sdk/types.d.ts +0 -2
  907. package/build/types/integrations/tracing-channel/aws-sdk/types.d.ts.map +1 -1
  908. package/build/types/integrations/tracing-channel/dataloader.d.ts +2 -2
  909. package/build/types/integrations/tracing-channel/dataloader.d.ts.map +1 -1
  910. package/build/types/integrations/tracing-channel/express/index.d.ts +3 -4
  911. package/build/types/integrations/tracing-channel/express/index.d.ts.map +1 -1
  912. package/build/types/integrations/tracing-channel/express/instrumentation.d.ts.map +1 -1
  913. package/build/types/integrations/tracing-channel/fastify/instrumentation.d.ts.map +1 -1
  914. package/build/types/integrations/tracing-channel/fastify/utils.d.ts +1 -1
  915. package/build/types/integrations/tracing-channel/firebase/firestore.d.ts +1 -2
  916. package/build/types/integrations/tracing-channel/firebase/firestore.d.ts.map +1 -1
  917. package/build/types/integrations/tracing-channel/firebase/functions.d.ts.map +1 -1
  918. package/build/types/integrations/tracing-channel/firebase/index.d.ts +3 -6
  919. package/build/types/integrations/tracing-channel/firebase/index.d.ts.map +1 -1
  920. package/build/types/integrations/tracing-channel/firebase/instrumentation.d.ts.map +1 -1
  921. package/build/types/integrations/tracing-channel/generic-pool.d.ts +2 -2
  922. package/build/types/integrations/tracing-channel/generic-pool.d.ts.map +1 -1
  923. package/build/types/integrations/tracing-channel/google-genai.d.ts +3 -3
  924. package/build/types/integrations/tracing-channel/google-genai.d.ts.map +1 -1
  925. package/build/types/integrations/tracing-channel/graphql/index.d.ts +7 -8
  926. package/build/types/integrations/tracing-channel/graphql/index.d.ts.map +1 -1
  927. package/build/types/integrations/tracing-channel/hapi-types.d.ts +4 -4
  928. package/build/types/integrations/tracing-channel/hapi-types.d.ts.map +1 -1
  929. package/build/types/integrations/tracing-channel/hapi-utils.d.ts.map +1 -1
  930. package/build/types/integrations/tracing-channel/hapi.d.ts +2 -2
  931. package/build/types/integrations/tracing-channel/hapi.d.ts.map +1 -1
  932. package/build/types/integrations/tracing-channel/ioredis.d.ts +1 -1
  933. package/build/types/integrations/tracing-channel/ioredis.d.ts.map +1 -1
  934. package/build/types/integrations/tracing-channel/kafkajs/index.d.ts +3 -4
  935. package/build/types/integrations/tracing-channel/kafkajs/index.d.ts.map +1 -1
  936. package/build/types/integrations/tracing-channel/kafkajs/semconv.d.ts +9 -9
  937. package/build/types/integrations/tracing-channel/kafkajs/spans.d.ts.map +1 -1
  938. package/build/types/integrations/tracing-channel/knex.d.ts +2 -2
  939. package/build/types/integrations/tracing-channel/knex.d.ts.map +1 -1
  940. package/build/types/integrations/tracing-channel/koa.d.ts +3 -3
  941. package/build/types/integrations/tracing-channel/koa.d.ts.map +1 -1
  942. package/build/types/integrations/tracing-channel/langchain.d.ts +3 -3
  943. package/build/types/integrations/tracing-channel/langchain.d.ts.map +1 -1
  944. package/build/types/integrations/tracing-channel/langgraph.d.ts +3 -3
  945. package/build/types/integrations/tracing-channel/langgraph.d.ts.map +1 -1
  946. package/build/types/integrations/tracing-channel/lru-memoizer.d.ts +2 -2
  947. package/build/types/integrations/tracing-channel/lru-memoizer.d.ts.map +1 -1
  948. package/build/types/integrations/tracing-channel/mongodb.d.ts +2 -2
  949. package/build/types/integrations/tracing-channel/mongodb.d.ts.map +1 -1
  950. package/build/types/integrations/tracing-channel/mongoose.d.ts +2 -2
  951. package/build/types/integrations/tracing-channel/mongoose.d.ts.map +1 -1
  952. package/build/types/integrations/tracing-channel/mysql.d.ts +3 -3
  953. package/build/types/integrations/tracing-channel/mysql.d.ts.map +1 -1
  954. package/build/types/integrations/tracing-channel/mysql2.d.ts +9 -7
  955. package/build/types/integrations/tracing-channel/mysql2.d.ts.map +1 -1
  956. package/build/types/integrations/tracing-channel/openai.d.ts +3 -3
  957. package/build/types/integrations/tracing-channel/openai.d.ts.map +1 -1
  958. package/build/types/integrations/tracing-channel/postgres-js.d.ts +3 -3
  959. package/build/types/integrations/tracing-channel/postgres-js.d.ts.map +1 -1
  960. package/build/types/integrations/tracing-channel/postgres.d.ts +2 -2
  961. package/build/types/integrations/tracing-channel/postgres.d.ts.map +1 -1
  962. package/build/types/integrations/tracing-channel/redis.d.ts +1 -1
  963. package/build/types/integrations/tracing-channel/redis.d.ts.map +1 -1
  964. package/build/types/integrations/tracing-channel/tedious.d.ts +2 -2
  965. package/build/types/integrations/tracing-channel/tedious.d.ts.map +1 -1
  966. package/build/types/integrations/tracing-channel/vercel-ai.d.ts +1 -1
  967. package/build/types/integrations/tracing-channel/vercel-ai.d.ts.map +1 -1
  968. package/build/types/mongodb/mongodb-span.d.ts.map +1 -1
  969. package/build/types/mongoose/mongoose-legacy-span.d.ts +0 -1
  970. package/build/types/mongoose/mongoose-legacy-span.d.ts.map +1 -1
  971. package/build/types/orchestrion/apmTypes.d.ts +173 -0
  972. package/build/types/orchestrion/apmTypes.d.ts.map +1 -0
  973. package/build/types/orchestrion/bundler/esbuild.d.ts +2 -2
  974. package/build/types/orchestrion/bundler/esbuild.d.ts.map +1 -1
  975. package/build/types/orchestrion/bundler/moduleInjectedTransform.d.ts +27 -0
  976. package/build/types/orchestrion/bundler/moduleInjectedTransform.d.ts.map +1 -0
  977. package/build/types/orchestrion/bundler/options.d.ts +19 -29
  978. package/build/types/orchestrion/bundler/options.d.ts.map +1 -1
  979. package/build/types/orchestrion/bundler/resolve.d.ts +22 -0
  980. package/build/types/orchestrion/bundler/resolve.d.ts.map +1 -0
  981. package/build/types/orchestrion/bundler/rollup.d.ts +2 -2
  982. package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -1
  983. package/build/types/orchestrion/bundler/vite.d.ts +2 -2
  984. package/build/types/orchestrion/bundler/vite.d.ts.map +1 -1
  985. package/build/types/orchestrion/bundler/webpack-loader.d.ts +28 -0
  986. package/build/types/orchestrion/bundler/webpack-loader.d.ts.map +1 -0
  987. package/build/types/orchestrion/bundler/webpack.d.ts +9 -13
  988. package/build/types/orchestrion/bundler/webpack.d.ts.map +1 -1
  989. package/build/types/orchestrion/channels.d.ts +125 -125
  990. package/build/types/orchestrion/config/amqplib.d.ts +21 -22
  991. package/build/types/orchestrion/config/amqplib.d.ts.map +1 -1
  992. package/build/types/orchestrion/config/anthropic-ai.d.ts +6 -7
  993. package/build/types/orchestrion/config/anthropic-ai.d.ts.map +1 -1
  994. package/build/types/orchestrion/config/aws-sdk.d.ts +4 -5
  995. package/build/types/orchestrion/config/aws-sdk.d.ts.map +1 -1
  996. package/build/types/orchestrion/config/channel-integration-definitions.d.ts +20 -20
  997. package/build/types/orchestrion/config/channel-integration-definitions.d.ts.map +1 -1
  998. package/build/types/orchestrion/config/dataloader.d.ts +17 -19
  999. package/build/types/orchestrion/config/dataloader.d.ts.map +1 -1
  1000. package/build/types/orchestrion/config/express.d.ts +5 -6
  1001. package/build/types/orchestrion/config/express.d.ts.map +1 -1
  1002. package/build/types/orchestrion/config/firebase.d.ts +23 -24
  1003. package/build/types/orchestrion/config/firebase.d.ts.map +1 -1
  1004. package/build/types/orchestrion/config/generic-pool.d.ts +4 -5
  1005. package/build/types/orchestrion/config/generic-pool.d.ts.map +1 -1
  1006. package/build/types/orchestrion/config/google-genai.d.ts +6 -7
  1007. package/build/types/orchestrion/config/google-genai.d.ts.map +1 -1
  1008. package/build/types/orchestrion/config/graphql.d.ts +4 -5
  1009. package/build/types/orchestrion/config/graphql.d.ts.map +1 -1
  1010. package/build/types/orchestrion/config/hapi.d.ts +3 -4
  1011. package/build/types/orchestrion/config/hapi.d.ts.map +1 -1
  1012. package/build/types/orchestrion/config/index.d.ts +1 -12
  1013. package/build/types/orchestrion/config/index.d.ts.map +1 -1
  1014. package/build/types/orchestrion/config/ioredis.d.ts +3 -3
  1015. package/build/types/orchestrion/config/ioredis.d.ts.map +1 -1
  1016. package/build/types/orchestrion/config/kafkajs.d.ts +3 -4
  1017. package/build/types/orchestrion/config/kafkajs.d.ts.map +1 -1
  1018. package/build/types/orchestrion/config/knex.d.ts +4 -5
  1019. package/build/types/orchestrion/config/knex.d.ts.map +1 -1
  1020. package/build/types/orchestrion/config/koa.d.ts +2 -3
  1021. package/build/types/orchestrion/config/koa.d.ts.map +1 -1
  1022. package/build/types/orchestrion/config/langchain.d.ts +4 -5
  1023. package/build/types/orchestrion/config/langchain.d.ts.map +1 -1
  1024. package/build/types/orchestrion/config/langgraph.d.ts +7 -8
  1025. package/build/types/orchestrion/config/langgraph.d.ts.map +1 -1
  1026. package/build/types/orchestrion/config/lru-memoizer.d.ts +2 -3
  1027. package/build/types/orchestrion/config/lru-memoizer.d.ts.map +1 -1
  1028. package/build/types/orchestrion/config/module-names.d.ts +8 -0
  1029. package/build/types/orchestrion/config/module-names.d.ts.map +1 -0
  1030. package/build/types/orchestrion/config/mongodb.d.ts +20 -21
  1031. package/build/types/orchestrion/config/mongodb.d.ts.map +1 -1
  1032. package/build/types/orchestrion/config/mongoose.d.ts +12 -13
  1033. package/build/types/orchestrion/config/mongoose.d.ts.map +1 -1
  1034. package/build/types/orchestrion/config/mysql.d.ts +2 -3
  1035. package/build/types/orchestrion/config/mysql.d.ts.map +1 -1
  1036. package/build/types/orchestrion/config/mysql2.d.ts +3 -4
  1037. package/build/types/orchestrion/config/mysql2.d.ts.map +1 -1
  1038. package/build/types/orchestrion/config/nestjs.d.ts +9 -10
  1039. package/build/types/orchestrion/config/nestjs.d.ts.map +1 -1
  1040. package/build/types/orchestrion/config/openai.d.ts +4 -5
  1041. package/build/types/orchestrion/config/openai.d.ts.map +1 -1
  1042. package/build/types/orchestrion/config/pg.d.ts +7 -8
  1043. package/build/types/orchestrion/config/pg.d.ts.map +1 -1
  1044. package/build/types/orchestrion/config/postgres.d.ts +5 -5
  1045. package/build/types/orchestrion/config/postgres.d.ts.map +1 -1
  1046. package/build/types/orchestrion/config/redis.d.ts +10 -11
  1047. package/build/types/orchestrion/config/redis.d.ts.map +1 -1
  1048. package/build/types/orchestrion/config/remix.d.ts +4 -5
  1049. package/build/types/orchestrion/config/remix.d.ts.map +1 -1
  1050. package/build/types/orchestrion/config/tedious.d.ts +8 -8
  1051. package/build/types/orchestrion/config/tedious.d.ts.map +1 -1
  1052. package/build/types/orchestrion/config/vercel-ai.d.ts +8 -8
  1053. package/build/types/orchestrion/config/vercel-ai.d.ts.map +1 -1
  1054. package/build/types/orchestrion/detect.d.ts +14 -1
  1055. package/build/types/orchestrion/detect.d.ts.map +1 -1
  1056. package/build/types/orchestrion/index.d.ts +41 -48
  1057. package/build/types/orchestrion/index.d.ts.map +1 -1
  1058. package/build/types/orchestrion/instrumentation.d.ts +37 -0
  1059. package/build/types/orchestrion/instrumentation.d.ts.map +1 -0
  1060. package/build/types/orchestrion/moduleInjected.d.ts +25 -0
  1061. package/build/types/orchestrion/moduleInjected.d.ts.map +1 -0
  1062. package/build/types/orchestrion/runtime/register.d.ts +1 -12
  1063. package/build/types/orchestrion/runtime/register.d.ts.map +1 -1
  1064. package/build/types/otlp.d.ts +49 -0
  1065. package/build/types/otlp.d.ts.map +1 -0
  1066. package/build/types/prisma/index.d.ts +0 -4
  1067. package/build/types/prisma/index.d.ts.map +1 -1
  1068. package/build/types/prisma/tracing-helper.d.ts.map +1 -1
  1069. package/build/types/prisma/types.d.ts +2 -2
  1070. package/build/types/prisma/types.d.ts.map +1 -1
  1071. package/build/types/redis/redis-dc-subscriber.d.ts.map +1 -1
  1072. package/build/types/redis/redis-statement-serializer.d.ts.map +1 -1
  1073. package/build/types/tracing-channel.d.ts +2 -0
  1074. package/build/types/tracing-channel.d.ts.map +1 -1
  1075. package/build/types/utils/setHttpServerSpanRouteAttribute.d.ts +9 -0
  1076. package/build/types/utils/setHttpServerSpanRouteAttribute.d.ts.map +1 -0
  1077. package/build/types/vercel-ai/index.d.ts +2 -7
  1078. package/build/types/vercel-ai/index.d.ts.map +1 -1
  1079. package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts +0 -1
  1080. package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
  1081. package/package.json +22 -37
  1082. package/build/cjs/orchestrion/bundler/subscribeInjection.js +0 -40
  1083. package/build/cjs/orchestrion/bundler/subscribeInjection.js.map +0 -1
  1084. package/build/cjs/orchestrion/config/subscribe-injection.js +0 -25
  1085. package/build/cjs/orchestrion/config/subscribe-injection.js.map +0 -1
  1086. package/build/cjs/orchestrion/registerChannelIntegration.js +0 -13
  1087. package/build/cjs/orchestrion/registerChannelIntegration.js.map +0 -1
  1088. package/build/esm/orchestrion/bundler/subscribeInjection.js +0 -38
  1089. package/build/esm/orchestrion/bundler/subscribeInjection.js.map +0 -1
  1090. package/build/esm/orchestrion/config/subscribe-injection.js +0 -22
  1091. package/build/esm/orchestrion/config/subscribe-injection.js.map +0 -1
  1092. package/build/esm/orchestrion/registerChannelIntegration.js +0 -11
  1093. package/build/esm/orchestrion/registerChannelIntegration.js.map +0 -1
  1094. package/build/types/orchestrion/bundler/subscribeInjection.d.ts +0 -13
  1095. package/build/types/orchestrion/bundler/subscribeInjection.d.ts.map +0 -1
  1096. package/build/types/orchestrion/config/subscribe-injection.d.ts +0 -31
  1097. package/build/types/orchestrion/config/subscribe-injection.d.ts.map +0 -1
  1098. package/build/types/orchestrion/registerChannelIntegration.d.ts +0 -33
  1099. package/build/types/orchestrion/registerChannelIntegration.d.ts.map +0 -1
  1100. package/build/types-ts3.8/debug-build.d.ts +0 -7
  1101. package/build/types-ts3.8/graphql/graphql-dc-subscriber.d.ts +0 -94
  1102. package/build/types-ts3.8/graphql/index.d.ts +0 -12
  1103. package/build/types-ts3.8/graphql/utils.d.ts +0 -36
  1104. package/build/types-ts3.8/index.d.ts +0 -23
  1105. package/build/types-ts3.8/integrations/tracing-channel/amqplib.d.ts +0 -11
  1106. package/build/types-ts3.8/integrations/tracing-channel/anthropic.d.ts +0 -10
  1107. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/aws-sdk.types.d.ts +0 -43
  1108. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/constants.d.ts +0 -15
  1109. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/index.d.ts +0 -15
  1110. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/MessageAttributes.d.ts +0 -23
  1111. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/ServiceExtension.d.ts +0 -9
  1112. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.d.ts +0 -10
  1113. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.d.ts +0 -14
  1114. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/dynamodb.d.ts +0 -8
  1115. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/index.d.ts +0 -2
  1116. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/kinesis.d.ts +0 -6
  1117. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/lambda.d.ts +0 -9
  1118. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/s3.d.ts +0 -6
  1119. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/secretsmanager.d.ts +0 -8
  1120. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/sns.d.ts +0 -9
  1121. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/sqs.d.ts +0 -9
  1122. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/stepfunctions.d.ts +0 -6
  1123. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/types.d.ts +0 -26
  1124. package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/utils.d.ts +0 -5
  1125. package/build/types-ts3.8/integrations/tracing-channel/dataloader.d.ts +0 -11
  1126. package/build/types-ts3.8/integrations/tracing-channel/express/index.d.ts +0 -18
  1127. package/build/types-ts3.8/integrations/tracing-channel/express/instrumentation.d.ts +0 -4
  1128. package/build/types-ts3.8/integrations/tracing-channel/express/route.d.ts +0 -28
  1129. package/build/types-ts3.8/integrations/tracing-channel/express/types.d.ts +0 -64
  1130. package/build/types-ts3.8/integrations/tracing-channel/fastify/errors.d.ts +0 -12
  1131. package/build/types-ts3.8/integrations/tracing-channel/fastify/index.d.ts +0 -66
  1132. package/build/types-ts3.8/integrations/tracing-channel/fastify/instrumentation.d.ts +0 -10
  1133. package/build/types-ts3.8/integrations/tracing-channel/fastify/types.d.ts +0 -32
  1134. package/build/types-ts3.8/integrations/tracing-channel/fastify/utils.d.ts +0 -9
  1135. package/build/types-ts3.8/integrations/tracing-channel/firebase/firestore-types.d.ts +0 -38
  1136. package/build/types-ts3.8/integrations/tracing-channel/firebase/firestore.d.ts +0 -18
  1137. package/build/types-ts3.8/integrations/tracing-channel/firebase/functions.d.ts +0 -15
  1138. package/build/types-ts3.8/integrations/tracing-channel/firebase/index.d.ts +0 -15
  1139. package/build/types-ts3.8/integrations/tracing-channel/firebase/instrumentation.d.ts +0 -2
  1140. package/build/types-ts3.8/integrations/tracing-channel/generic-pool.d.ts +0 -10
  1141. package/build/types-ts3.8/integrations/tracing-channel/google-genai.d.ts +0 -12
  1142. package/build/types-ts3.8/integrations/tracing-channel/graphql/constants.d.ts +0 -12
  1143. package/build/types-ts3.8/integrations/tracing-channel/graphql/graphql-types.d.ts +0 -135
  1144. package/build/types-ts3.8/integrations/tracing-channel/graphql/index.d.ts +0 -30
  1145. package/build/types-ts3.8/integrations/tracing-channel/graphql/resolvers.d.ts +0 -13
  1146. package/build/types-ts3.8/integrations/tracing-channel/graphql/spans.d.ts +0 -17
  1147. package/build/types-ts3.8/integrations/tracing-channel/graphql/types.d.ts +0 -25
  1148. package/build/types-ts3.8/integrations/tracing-channel/hapi-types.d.ts +0 -65
  1149. package/build/types-ts3.8/integrations/tracing-channel/hapi-utils.d.ts +0 -25
  1150. package/build/types-ts3.8/integrations/tracing-channel/hapi.d.ts +0 -9
  1151. package/build/types-ts3.8/integrations/tracing-channel/ioredis.d.ts +0 -37
  1152. package/build/types-ts3.8/integrations/tracing-channel/kafkajs/consumer.d.ts +0 -8
  1153. package/build/types-ts3.8/integrations/tracing-channel/kafkajs/index.d.ts +0 -17
  1154. package/build/types-ts3.8/integrations/tracing-channel/kafkajs/semconv.d.ts +0 -10
  1155. package/build/types-ts3.8/integrations/tracing-channel/kafkajs/spans.d.ts +0 -38
  1156. package/build/types-ts3.8/integrations/tracing-channel/kafkajs/types.d.ts +0 -40
  1157. package/build/types-ts3.8/integrations/tracing-channel/knex.d.ts +0 -11
  1158. package/build/types-ts3.8/integrations/tracing-channel/koa.d.ts +0 -14
  1159. package/build/types-ts3.8/integrations/tracing-channel/langchain.d.ts +0 -10
  1160. package/build/types-ts3.8/integrations/tracing-channel/langgraph.d.ts +0 -10
  1161. package/build/types-ts3.8/integrations/tracing-channel/lru-memoizer.d.ts +0 -10
  1162. package/build/types-ts3.8/integrations/tracing-channel/mongodb.d.ts +0 -12
  1163. package/build/types-ts3.8/integrations/tracing-channel/mongoose.d.ts +0 -15
  1164. package/build/types-ts3.8/integrations/tracing-channel/mysql.d.ts +0 -12
  1165. package/build/types-ts3.8/integrations/tracing-channel/mysql2.d.ts +0 -15
  1166. package/build/types-ts3.8/integrations/tracing-channel/openai.d.ts +0 -10
  1167. package/build/types-ts3.8/integrations/tracing-channel/postgres-js.d.ts +0 -26
  1168. package/build/types-ts3.8/integrations/tracing-channel/postgres.d.ts +0 -15
  1169. package/build/types-ts3.8/integrations/tracing-channel/redis.d.ts +0 -16
  1170. package/build/types-ts3.8/integrations/tracing-channel/tedious.d.ts +0 -11
  1171. package/build/types-ts3.8/integrations/tracing-channel/vercel-ai.d.ts +0 -9
  1172. package/build/types-ts3.8/mongodb/mongodb-span.d.ts +0 -66
  1173. package/build/types-ts3.8/mongoose/index.d.ts +0 -13
  1174. package/build/types-ts3.8/mongoose/mongoose-dc-subscriber.d.ts +0 -63
  1175. package/build/types-ts3.8/mongoose/mongoose-legacy-span.d.ts +0 -29
  1176. package/build/types-ts3.8/mysql2/index.d.ts +0 -11
  1177. package/build/types-ts3.8/mysql2/mysql2-dc-subscriber.d.ts +0 -59
  1178. package/build/types-ts3.8/node-diagnostics-channel.d.ts +0 -19
  1179. package/build/types-ts3.8/orchestrion/bundler/esbuild.d.ts +0 -20
  1180. package/build/types-ts3.8/orchestrion/bundler/options.d.ts +0 -63
  1181. package/build/types-ts3.8/orchestrion/bundler/rollup.d.ts +0 -17
  1182. package/build/types-ts3.8/orchestrion/bundler/subscribeInjection.d.ts +0 -13
  1183. package/build/types-ts3.8/orchestrion/bundler/vite.d.ts +0 -18
  1184. package/build/types-ts3.8/orchestrion/bundler/webpack.d.ts +0 -24
  1185. package/build/types-ts3.8/orchestrion/channels.d.ts +0 -145
  1186. package/build/types-ts3.8/orchestrion/config/amqplib.d.ts +0 -68
  1187. package/build/types-ts3.8/orchestrion/config/anthropic-ai.d.ts +0 -33
  1188. package/build/types-ts3.8/orchestrion/config/aws-sdk.d.ts +0 -21
  1189. package/build/types-ts3.8/orchestrion/config/channel-integration-definitions.d.ts +0 -139
  1190. package/build/types-ts3.8/orchestrion/config/dataloader.d.ts +0 -48
  1191. package/build/types-ts3.8/orchestrion/config/express.d.ts +0 -32
  1192. package/build/types-ts3.8/orchestrion/config/firebase.d.ts +0 -43
  1193. package/build/types-ts3.8/orchestrion/config/generic-pool.d.ts +0 -33
  1194. package/build/types-ts3.8/orchestrion/config/google-genai.d.ts +0 -32
  1195. package/build/types-ts3.8/orchestrion/config/graphql.d.ts +0 -31
  1196. package/build/types-ts3.8/orchestrion/config/hapi.d.ts +0 -19
  1197. package/build/types-ts3.8/orchestrion/config/index.d.ts +0 -49
  1198. package/build/types-ts3.8/orchestrion/config/ioredis.d.ts +0 -8
  1199. package/build/types-ts3.8/orchestrion/config/kafkajs.d.ts +0 -19
  1200. package/build/types-ts3.8/orchestrion/config/knex.d.ts +0 -10
  1201. package/build/types-ts3.8/orchestrion/config/koa.d.ts +0 -19
  1202. package/build/types-ts3.8/orchestrion/config/langchain.d.ts +0 -20
  1203. package/build/types-ts3.8/orchestrion/config/langgraph.d.ts +0 -23
  1204. package/build/types-ts3.8/orchestrion/config/lru-memoizer.d.ts +0 -18
  1205. package/build/types-ts3.8/orchestrion/config/mongodb.d.ts +0 -61
  1206. package/build/types-ts3.8/orchestrion/config/mongoose.d.ts +0 -42
  1207. package/build/types-ts3.8/orchestrion/config/mysql.d.ts +0 -18
  1208. package/build/types-ts3.8/orchestrion/config/mysql2.d.ts +0 -20
  1209. package/build/types-ts3.8/orchestrion/config/nestjs.d.ts +0 -25
  1210. package/build/types-ts3.8/orchestrion/config/openai.d.ts +0 -20
  1211. package/build/types-ts3.8/orchestrion/config/pg.d.ts +0 -35
  1212. package/build/types-ts3.8/orchestrion/config/postgres.d.ts +0 -10
  1213. package/build/types-ts3.8/orchestrion/config/redis.d.ts +0 -39
  1214. package/build/types-ts3.8/orchestrion/config/remix.d.ts +0 -10
  1215. package/build/types-ts3.8/orchestrion/config/subscribe-injection.d.ts +0 -31
  1216. package/build/types-ts3.8/orchestrion/config/tedious.d.ts +0 -13
  1217. package/build/types-ts3.8/orchestrion/config/vercel-ai.d.ts +0 -13
  1218. package/build/types-ts3.8/orchestrion/detect.d.ts +0 -26
  1219. package/build/types-ts3.8/orchestrion/index.d.ts +0 -139
  1220. package/build/types-ts3.8/orchestrion/registerChannelIntegration.d.ts +0 -33
  1221. package/build/types-ts3.8/orchestrion/runtime/register.d.ts +0 -25
  1222. package/build/types-ts3.8/prisma/global.d.ts +0 -5
  1223. package/build/types-ts3.8/prisma/index.d.ts +0 -45
  1224. package/build/types-ts3.8/prisma/tracing-helper.d.ts +0 -52
  1225. package/build/types-ts3.8/prisma/types.d.ts +0 -40
  1226. package/build/types-ts3.8/redis/index.d.ts +0 -18
  1227. package/build/types-ts3.8/redis/redis-dc-subscriber.d.ts +0 -89
  1228. package/build/types-ts3.8/redis/redis-statement-serializer.d.ts +0 -6
  1229. package/build/types-ts3.8/tracing-channel.d.ts +0 -73
  1230. package/build/types-ts3.8/vercel-ai/index.d.ts +0 -26
  1231. package/build/types-ts3.8/vercel-ai/util.d.ts +0 -30
  1232. package/build/types-ts3.8/vercel-ai/vercel-ai-dc-subscriber.d.ts +0 -72
  1233. package/build/types-ts3.8/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts +0 -12
@@ -1,61 +1,61 @@
1
- import { amqplibChannelIntegration } from '../integrations/tracing-channel/amqplib.js';
2
- import { anthropicChannelIntegration } from '../integrations/tracing-channel/anthropic.js';
3
- import { awsChannelIntegration } from '../integrations/tracing-channel/aws-sdk/index.js';
4
- export { dataloaderChannelIntegration } from '../integrations/tracing-channel/dataloader.js';
5
- import { genericPoolChannelIntegration } from '../integrations/tracing-channel/generic-pool.js';
6
- import { googleGenAIChannelIntegration } from '../integrations/tracing-channel/google-genai.js';
7
- import { graphqlDiagnosticsChannelIntegration } from '../integrations/tracing-channel/graphql/index.js';
8
- export { graphqlChannelIntegration } from '../integrations/tracing-channel/graphql/index.js';
9
- import { hapiChannelIntegration } from '../integrations/tracing-channel/hapi.js';
10
- import { koaChannelIntegration } from '../integrations/tracing-channel/koa.js';
1
+ import { amqplibIntegration } from '../integrations/tracing-channel/amqplib.js';
2
+ import { anthropicIntegration } from '../integrations/tracing-channel/anthropic.js';
3
+ import { awsIntegration } from '../integrations/tracing-channel/aws-sdk/index.js';
4
+ export { dataloaderIntegration } from '../integrations/tracing-channel/dataloader.js';
5
+ import { genericPoolIntegration } from '../integrations/tracing-channel/generic-pool.js';
6
+ import { googleGenAIIntegration } from '../integrations/tracing-channel/google-genai.js';
7
+ import { graphqlDiagnosticsIntegration } from '../integrations/tracing-channel/graphql/index.js';
8
+ export { graphqlIntegration } from '../integrations/tracing-channel/graphql/index.js';
9
+ import { hapiIntegration } from '../integrations/tracing-channel/hapi.js';
10
+ import { koaIntegration } from '../integrations/tracing-channel/koa.js';
11
11
  export { ioredisChannelIntegration } from '../integrations/tracing-channel/ioredis.js';
12
- import { kafkajsChannelIntegration } from '../integrations/tracing-channel/kafkajs/index.js';
13
- export { knexChannelIntegration } from '../integrations/tracing-channel/knex.js';
14
- import { langChainChannelIntegration } from '../integrations/tracing-channel/langchain.js';
15
- import { langGraphChannelIntegration } from '../integrations/tracing-channel/langgraph.js';
16
- import { lruMemoizerChannelIntegration } from '../integrations/tracing-channel/lru-memoizer.js';
17
- import { mongodbChannelIntegration } from '../integrations/tracing-channel/mongodb.js';
18
- import { mongooseChannelIntegration } from '../integrations/tracing-channel/mongoose.js';
19
- import { mysqlChannelIntegration } from '../integrations/tracing-channel/mysql.js';
20
- import { mysql2ChannelIntegration } from '../integrations/tracing-channel/mysql2.js';
21
- import { openaiChannelIntegration } from '../integrations/tracing-channel/openai.js';
22
- import { postgresChannelIntegration } from '../integrations/tracing-channel/postgres.js';
23
- import { postgresJsChannelIntegration } from '../integrations/tracing-channel/postgres-js.js';
24
- import { tediousChannelIntegration } from '../integrations/tracing-channel/tedious.js';
25
- import { vercelAiChannelIntegration } from '../integrations/tracing-channel/vercel-ai.js';
26
- import { expressChannelIntegration } from '../integrations/tracing-channel/express/index.js';
27
- import { firebaseChannelIntegration } from '../integrations/tracing-channel/firebase/index.js';
12
+ import { kafkajsIntegration } from '../integrations/tracing-channel/kafkajs/index.js';
13
+ export { knexIntegration } from '../integrations/tracing-channel/knex.js';
14
+ import { langChainIntegration } from '../integrations/tracing-channel/langchain.js';
15
+ import { langGraphIntegration } from '../integrations/tracing-channel/langgraph.js';
16
+ import { lruMemoizerIntegration } from '../integrations/tracing-channel/lru-memoizer.js';
17
+ import { mongodbIntegration } from '../integrations/tracing-channel/mongodb.js';
18
+ import { mongooseIntegration } from '../integrations/tracing-channel/mongoose.js';
19
+ import { mysqlIntegration } from '../integrations/tracing-channel/mysql.js';
20
+ import { mysql2Integration } from '../integrations/tracing-channel/mysql2.js';
21
+ import { openaiIntegration } from '../integrations/tracing-channel/openai.js';
22
+ import { postgresIntegration } from '../integrations/tracing-channel/postgres.js';
23
+ import { postgresJsIntegration } from '../integrations/tracing-channel/postgres-js.js';
24
+ import { tediousIntegration } from '../integrations/tracing-channel/tedious.js';
25
+ import { vercelAiIntegration } from '../integrations/tracing-channel/vercel-ai.js';
26
+ import { expressIntegration } from '../integrations/tracing-channel/express/index.js';
27
+ import { firebaseIntegration } from '../integrations/tracing-channel/firebase/index.js';
28
28
  export { detectOrchestrionSetup, isOrchestrionInjected } from './detect.js';
29
- export { registerOrchestrionChannelIntegration } from './registerChannelIntegration.js';
29
+ export { orchestrionModuleInjected } from './moduleInjected.js';
30
30
  export { nestjsChannels } from './config/nestjs.js';
31
31
  export { remixChannels } from './config/remix.js';
32
32
  export { redisChannelIntegration } from '../integrations/tracing-channel/redis.js';
33
33
 
34
34
  const channelIntegrations = {
35
- postgresIntegration: postgresChannelIntegration,
36
- postgresJsIntegration: postgresJsChannelIntegration,
37
- mongoIntegration: mongodbChannelIntegration,
38
- mysqlIntegration: mysqlChannelIntegration,
39
- mysql2Integration: mysql2ChannelIntegration,
40
- genericPoolIntegration: genericPoolChannelIntegration,
41
- mongooseIntegration: mongooseChannelIntegration,
42
- lruMemoizerIntegration: lruMemoizerChannelIntegration,
43
- openaiIntegration: openaiChannelIntegration,
44
- anthropicIntegration: anthropicChannelIntegration,
45
- googleGenAIIntegration: googleGenAIChannelIntegration,
46
- langChainIntegration: langChainChannelIntegration,
47
- langGraphIntegration: langGraphChannelIntegration,
48
- vercelAiIntegration: vercelAiChannelIntegration,
49
- amqplibIntegration: amqplibChannelIntegration,
50
- hapiIntegration: hapiChannelIntegration,
51
- koaIntegration: koaChannelIntegration,
52
- expressIntegration: expressChannelIntegration,
53
- graphqlIntegration: graphqlDiagnosticsChannelIntegration,
54
- kafkajsIntegration: kafkajsChannelIntegration,
55
- tediousIntegration: tediousChannelIntegration,
56
- awsIntegration: awsChannelIntegration,
57
- firebaseIntegration: firebaseChannelIntegration
35
+ postgresIntegration,
36
+ postgresJsIntegration,
37
+ mongoIntegration: mongodbIntegration,
38
+ mysqlIntegration,
39
+ mysql2Integration,
40
+ genericPoolIntegration,
41
+ mongooseIntegration,
42
+ lruMemoizerIntegration,
43
+ openaiIntegration,
44
+ anthropicIntegration,
45
+ googleGenAIIntegration,
46
+ langChainIntegration,
47
+ langGraphIntegration,
48
+ vercelAiIntegration,
49
+ amqplibIntegration,
50
+ hapiIntegration,
51
+ koaIntegration,
52
+ expressIntegration,
53
+ graphqlIntegration: graphqlDiagnosticsIntegration,
54
+ kafkajsIntegration,
55
+ tediousIntegration,
56
+ awsIntegration,
57
+ firebaseIntegration
58
58
  };
59
59
 
60
- export { amqplibChannelIntegration, anthropicChannelIntegration, awsChannelIntegration, channelIntegrations, expressChannelIntegration, firebaseChannelIntegration, genericPoolChannelIntegration, googleGenAIChannelIntegration, hapiChannelIntegration, kafkajsChannelIntegration, koaChannelIntegration, langChainChannelIntegration, langGraphChannelIntegration, lruMemoizerChannelIntegration, mongodbChannelIntegration, mongooseChannelIntegration, mysql2ChannelIntegration, mysqlChannelIntegration, openaiChannelIntegration, postgresChannelIntegration, postgresJsChannelIntegration, tediousChannelIntegration, vercelAiChannelIntegration };
60
+ export { amqplibIntegration, anthropicIntegration, awsIntegration, channelIntegrations, expressIntegration, firebaseIntegration, genericPoolIntegration, googleGenAIIntegration, graphqlDiagnosticsIntegration, hapiIntegration, kafkajsIntegration, koaIntegration, langChainIntegration, langGraphIntegration, lruMemoizerIntegration, mongodbIntegration, mongooseIntegration, mysql2Integration, mysqlIntegration, openaiIntegration, postgresIntegration, postgresJsIntegration, tediousIntegration, vercelAiIntegration };
61
61
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/orchestrion/index.ts"],"sourcesContent":["import { amqplibChannelIntegration } from '../integrations/tracing-channel/amqplib';\nimport { anthropicChannelIntegration } from '../integrations/tracing-channel/anthropic';\nimport { awsChannelIntegration } from '../integrations/tracing-channel/aws-sdk';\nimport { dataloaderChannelIntegration } from '../integrations/tracing-channel/dataloader';\nimport { genericPoolChannelIntegration } from '../integrations/tracing-channel/generic-pool';\nimport { googleGenAIChannelIntegration } from '../integrations/tracing-channel/google-genai';\nimport {\n graphqlChannelIntegration,\n graphqlDiagnosticsChannelIntegration,\n} from '../integrations/tracing-channel/graphql';\nimport { hapiChannelIntegration } from '../integrations/tracing-channel/hapi';\nimport { koaChannelIntegration } from '../integrations/tracing-channel/koa';\nimport { ioredisChannelIntegration } from '../integrations/tracing-channel/ioredis';\nimport { kafkajsChannelIntegration } from '../integrations/tracing-channel/kafkajs';\nimport { knexChannelIntegration } from '../integrations/tracing-channel/knex';\nimport { langChainChannelIntegration } from '../integrations/tracing-channel/langchain';\nimport { langGraphChannelIntegration } from '../integrations/tracing-channel/langgraph';\nimport { lruMemoizerChannelIntegration } from '../integrations/tracing-channel/lru-memoizer';\nimport { mongodbChannelIntegration } from '../integrations/tracing-channel/mongodb';\nimport { mongooseChannelIntegration } from '../integrations/tracing-channel/mongoose';\nimport { mysqlChannelIntegration } from '../integrations/tracing-channel/mysql';\nimport { mysql2ChannelIntegration } from '../integrations/tracing-channel/mysql2';\nimport { openaiChannelIntegration } from '../integrations/tracing-channel/openai';\nimport { postgresChannelIntegration } from '../integrations/tracing-channel/postgres';\nimport { postgresJsChannelIntegration } from '../integrations/tracing-channel/postgres-js';\nimport { tediousChannelIntegration } from '../integrations/tracing-channel/tedious';\nimport { vercelAiChannelIntegration } from '../integrations/tracing-channel/vercel-ai';\nimport { expressChannelIntegration } from '../integrations/tracing-channel/express';\nimport { firebaseChannelIntegration } from '../integrations/tracing-channel/firebase';\n\nexport { detectOrchestrionSetup, isOrchestrionInjected } from './detect';\n// The runtime target of the subscribe-injection snippet: instrumented modules\n// import this to self-register their channel subscriber on the global marker\n// (used by bundler-only SDKs).\nexport { registerOrchestrionChannelIntegration } from './registerChannelIntegration';\n// The `@nestjs/*` channel names live here alongside their transform config; the\n// listener that subscribes to them lives in `@sentry/nestjs`, which imports this.\nexport { nestjsChannels } from './config/nestjs';\n// The remix channel names live here alongside their transform config; the\n// listener that subscribes to them lives in `@sentry/remix`, which imports this.\nexport { remixChannels } from './config/remix';\nexport {\n amqplibChannelIntegration,\n anthropicChannelIntegration,\n awsChannelIntegration,\n dataloaderChannelIntegration,\n genericPoolChannelIntegration,\n googleGenAIChannelIntegration,\n graphqlChannelIntegration,\n hapiChannelIntegration,\n koaChannelIntegration,\n ioredisChannelIntegration,\n kafkajsChannelIntegration,\n knexChannelIntegration,\n langChainChannelIntegration,\n langGraphChannelIntegration,\n lruMemoizerChannelIntegration,\n mongodbChannelIntegration,\n mongooseChannelIntegration,\n mysqlChannelIntegration,\n mysql2ChannelIntegration,\n openaiChannelIntegration,\n postgresChannelIntegration,\n postgresJsChannelIntegration,\n tediousChannelIntegration,\n vercelAiChannelIntegration,\n expressChannelIntegration,\n firebaseChannelIntegration,\n};\nexport type { KoaChannelIntegrationOptions } from '../integrations/tracing-channel/koa';\nexport type { IORedisChannelIntegrationOptions, IORedisResponseHook } from '../integrations/tracing-channel/ioredis';\nexport type { PostgresJsChannelIntegrationOptions } from '../integrations/tracing-channel/postgres-js';\nexport { redisChannelIntegration } from '../integrations/tracing-channel/redis';\nexport type { RedisChannelIntegrationOptions, RedisResponseHook } from '../integrations/tracing-channel/redis';\nexport type { InstrumentationConfig, CustomTransform } from '@apm-js-collab/code-transformer-bundler-plugins/core';\n\n// The structural `graphql` package types are the single source of truth shared with `@sentry/node`'s\n// vendored OTel graphql instrumentation (re-exported from here so the two can't drift).\nexport type * from '../integrations/tracing-channel/graphql/graphql-types';\n\n/**\n * The canonical set of orchestrion diagnostics-channel integrations, keyed by their public\n * (OTel-parity) factory name.\n *\n * Single source of truth: add a new channel integration here and every consumer — the `@sentry/node`\n * opt-in helper (`experimentalUseDiagnosticsChannelInjection`) and its public\n * `diagnosticsChannelInjectionIntegrations()` map — picks it up automatically, so there's no separate\n * list to keep in sync.\n *\n * NOTE: `ioredisChannelIntegration` and `redisChannelIntegration` are intentionally NOT here. They\n * only partially replace the composite OTel `Redis` integration and need the node SDK's redis cache\n * `responseHook` (which can't live in `server-utils`), so `@sentry/node` wires them up separately.\n *\n * Framework SDKs that own their own channel listener (e.g. `@sentry/nestjs`'s `Nest`) are NOT here\n * either: their transform config is still in `SENTRY_INSTRUMENTATIONS`, but the listener lives in\n * their package and picks the channel-vs-OTel path itself at `setupOnce`, so it needs no central swap.\n *\n * NOTE: `dataloaderChannelIntegration` is also NOT here. Everything in this map is auto-appended to\n * the default integrations, but the OTel `Dataloader` integration is opt-in (never a default). Like\n * `@sentry/nestjs`'s `Nest`, its `@sentry/node` factory picks the channel-vs-OTel path itself at\n * `setupOnce` (via `isOrchestrionInjected()`), so there's nothing for the central swap to do.\n */\nexport const channelIntegrations = {\n postgresIntegration: postgresChannelIntegration,\n postgresJsIntegration: postgresJsChannelIntegration,\n mongoIntegration: mongodbChannelIntegration,\n mysqlIntegration: mysqlChannelIntegration,\n mysql2Integration: mysql2ChannelIntegration,\n genericPoolIntegration: genericPoolChannelIntegration,\n mongooseIntegration: mongooseChannelIntegration,\n lruMemoizerIntegration: lruMemoizerChannelIntegration,\n openaiIntegration: openaiChannelIntegration,\n anthropicIntegration: anthropicChannelIntegration,\n googleGenAIIntegration: googleGenAIChannelIntegration,\n langChainIntegration: langChainChannelIntegration,\n langGraphIntegration: langGraphChannelIntegration,\n vercelAiIntegration: vercelAiChannelIntegration,\n amqplibIntegration: amqplibChannelIntegration,\n hapiIntegration: hapiChannelIntegration,\n koaIntegration: koaChannelIntegration,\n expressIntegration: expressChannelIntegration,\n graphqlIntegration: graphqlDiagnosticsChannelIntegration,\n kafkajsIntegration: kafkajsChannelIntegration,\n tediousIntegration: tediousChannelIntegration,\n awsIntegration: awsChannelIntegration,\n firebaseIntegration: firebaseChannelIntegration,\n} as const;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsGO,MAAM,mBAAA,GAAsB;AAAA,EACjC,mBAAA,EAAqB,0BAAA;AAAA,EACrB,qBAAA,EAAuB,4BAAA;AAAA,EACvB,gBAAA,EAAkB,yBAAA;AAAA,EAClB,gBAAA,EAAkB,uBAAA;AAAA,EAClB,iBAAA,EAAmB,wBAAA;AAAA,EACnB,sBAAA,EAAwB,6BAAA;AAAA,EACxB,mBAAA,EAAqB,0BAAA;AAAA,EACrB,sBAAA,EAAwB,6BAAA;AAAA,EACxB,iBAAA,EAAmB,wBAAA;AAAA,EACnB,oBAAA,EAAsB,2BAAA;AAAA,EACtB,sBAAA,EAAwB,6BAAA;AAAA,EACxB,oBAAA,EAAsB,2BAAA;AAAA,EACtB,oBAAA,EAAsB,2BAAA;AAAA,EACtB,mBAAA,EAAqB,0BAAA;AAAA,EACrB,kBAAA,EAAoB,yBAAA;AAAA,EACpB,eAAA,EAAiB,sBAAA;AAAA,EACjB,cAAA,EAAgB,qBAAA;AAAA,EAChB,kBAAA,EAAoB,yBAAA;AAAA,EACpB,kBAAA,EAAoB,oCAAA;AAAA,EACpB,kBAAA,EAAoB,yBAAA;AAAA,EACpB,kBAAA,EAAoB,yBAAA;AAAA,EACpB,cAAA,EAAgB,qBAAA;AAAA,EAChB,mBAAA,EAAqB;AACvB;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/orchestrion/index.ts"],"sourcesContent":["import { amqplibIntegration } from '../integrations/tracing-channel/amqplib';\nimport { anthropicIntegration } from '../integrations/tracing-channel/anthropic';\nimport { awsIntegration } from '../integrations/tracing-channel/aws-sdk';\nimport { dataloaderIntegration } from '../integrations/tracing-channel/dataloader';\nimport { genericPoolIntegration } from '../integrations/tracing-channel/generic-pool';\nimport { googleGenAIIntegration } from '../integrations/tracing-channel/google-genai';\nimport { graphqlIntegration, graphqlDiagnosticsIntegration } from '../integrations/tracing-channel/graphql';\nimport { hapiIntegration } from '../integrations/tracing-channel/hapi';\nimport { koaIntegration } from '../integrations/tracing-channel/koa';\nimport { ioredisChannelIntegration } from '../integrations/tracing-channel/ioredis';\nimport { kafkajsIntegration } from '../integrations/tracing-channel/kafkajs';\nimport { knexIntegration } from '../integrations/tracing-channel/knex';\nimport { langChainIntegration } from '../integrations/tracing-channel/langchain';\nimport { langGraphIntegration } from '../integrations/tracing-channel/langgraph';\nimport { lruMemoizerIntegration } from '../integrations/tracing-channel/lru-memoizer';\nimport { mongodbIntegration } from '../integrations/tracing-channel/mongodb';\nimport { mongooseIntegration } from '../integrations/tracing-channel/mongoose';\nimport { mysqlIntegration } from '../integrations/tracing-channel/mysql';\nimport { mysql2Integration } from '../integrations/tracing-channel/mysql2';\nimport { openaiIntegration } from '../integrations/tracing-channel/openai';\nimport { postgresIntegration } from '../integrations/tracing-channel/postgres';\nimport { postgresJsIntegration } from '../integrations/tracing-channel/postgres-js';\nimport { tediousIntegration } from '../integrations/tracing-channel/tedious';\nimport { vercelAiIntegration } from '../integrations/tracing-channel/vercel-ai';\nimport { expressIntegration } from '../integrations/tracing-channel/express';\nimport { firebaseIntegration } from '../integrations/tracing-channel/firebase';\n\nexport { detectOrchestrionSetup, isOrchestrionInjected } from './detect';\n// The runtime target of the snippet the bundler transform splices into every\n// instrumented module: records the module on the global marker (plus its\n// subscriber factory, when it has one) and emits the module-injected event.\nexport { orchestrionModuleInjected } from './moduleInjected';\n// The `@nestjs/*` channel names live here alongside their transform config; the\n// listener that subscribes to them lives in `@sentry/nestjs`, which imports this.\nexport { nestjsChannels } from './config/nestjs';\n// The remix channel names live here alongside their transform config; the\n// listener that subscribes to them lives in `@sentry/remix`, which imports this.\nexport { remixChannels } from './config/remix';\nexport {\n amqplibIntegration,\n anthropicIntegration,\n awsIntegration,\n dataloaderIntegration,\n genericPoolIntegration,\n googleGenAIIntegration,\n graphqlIntegration,\n graphqlDiagnosticsIntegration,\n hapiIntegration,\n koaIntegration,\n ioredisChannelIntegration,\n kafkajsIntegration,\n knexIntegration,\n langChainIntegration,\n langGraphIntegration,\n lruMemoizerIntegration,\n mongodbIntegration,\n mongooseIntegration,\n mysqlIntegration,\n mysql2Integration,\n openaiIntegration,\n postgresIntegration,\n postgresJsIntegration,\n tediousIntegration,\n vercelAiIntegration,\n expressIntegration,\n firebaseIntegration,\n};\nexport type { KoaIntegrationOptions } from '../integrations/tracing-channel/koa';\nexport type { IORedisChannelIntegrationOptions, IORedisResponseHook } from '../integrations/tracing-channel/ioredis';\nexport type { PostgresJsIntegrationOptions } from '../integrations/tracing-channel/postgres-js';\nexport { redisChannelIntegration } from '../integrations/tracing-channel/redis';\nexport type { RedisChannelIntegrationOptions, RedisResponseHook } from '../integrations/tracing-channel/redis';\nexport type { InstrumentationConfig, CustomTransform } from './apmTypes';\n\n// The structural `graphql` package types are the single source of truth shared with `@sentry/node`'s\n// vendored OTel graphql instrumentation (re-exported from here so the two can't drift).\nexport type * from '../integrations/tracing-channel/graphql/graphql-types';\n\n/**\n * The canonical set of orchestrion diagnostics-channel integrations, keyed by their public\n * (OTel-parity) factory name.\n *\n * Single source of truth: add a new channel integration here and every consumer that spreads this map\n * into its default integrations picks it up automatically, so there's no separate list to keep in sync.\n *\n * NOTE: `ioredisChannelIntegration` and `redisChannelIntegration` are intentionally NOT here. They\n * only partially replace the composite OTel `Redis` integration and need the node SDK's redis cache\n * `responseHook` (which can't live in `server-utils`), so `@sentry/node` wires them up separately.\n *\n * Framework SDKs that own their own channel listener (e.g. `@sentry/nestjs`'s `Nest`) are NOT here\n * either: their transform config is still in `SENTRY_INSTRUMENTATIONS`, but the listener lives in\n * their package and picks the channel-vs-OTel path itself at `setupOnce`, so it needs no central swap.\n *\n * NOTE: `dataloaderIntegration` is also NOT here. Everything in this map is auto-appended to\n * the default integrations, but the OTel `Dataloader` integration is opt-in (never a default). Like\n * `@sentry/nestjs`'s `Nest`, its `@sentry/node` factory picks the channel-vs-OTel path itself at\n * `setupOnce` (via `isOrchestrionInjected()`), so there's nothing for the central swap to do.\n */\nexport const channelIntegrations = {\n postgresIntegration,\n postgresJsIntegration,\n mongoIntegration: mongodbIntegration,\n mysqlIntegration,\n mysql2Integration,\n genericPoolIntegration,\n mongooseIntegration,\n lruMemoizerIntegration,\n openaiIntegration,\n anthropicIntegration,\n googleGenAIIntegration,\n langChainIntegration,\n langGraphIntegration,\n vercelAiIntegration,\n amqplibIntegration,\n hapiIntegration,\n koaIntegration,\n expressIntegration,\n graphqlIntegration: graphqlDiagnosticsIntegration,\n kafkajsIntegration,\n tediousIntegration,\n awsIntegration,\n firebaseIntegration,\n} as const;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkGO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,mBAAA,CAAA,CAAA,CAAsB;AAAA,CAAA,CACjC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAClB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CA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CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAoB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACpB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACF,CAAA;;"}
@@ -0,0 +1,71 @@
1
+ import * as diagnosticsChannel from 'node:diagnostics_channel';
2
+ import { debug, waitForTracingChannelBinding, addNonEnumerableProperty } from '@sentry/core';
3
+ import { DEBUG_BUILD } from '../debug-build.js';
4
+ import { getOrchestrionInjectedModules } from './detect.js';
5
+
6
+ const INSTRUMENTED = /* @__PURE__ */ Symbol.for("SentryOrchestrionInstrumented");
7
+ const globalAny = globalThis;
8
+ const isBun = typeof globalAny.Bun !== "undefined";
9
+ const isDeno = typeof globalAny.Deno !== "undefined";
10
+ function invokeOrchestrionInstrumentation(client, moduleNames, callback, args, { requiresTracingChannelBinding = true } = {}) {
11
+ const label = moduleNames.join(", ");
12
+ if (!diagnosticsChannel.tracingChannel) {
13
+ DEBUG_BUILD && debug.log(`[orchestrion:${label}] no \`tracingChannel\` (Node < 18.19), not subscribing`);
14
+ return;
15
+ }
16
+ if (hasBeenInstrumented(callback)) {
17
+ DEBUG_BUILD && debug.log(`[orchestrion:${label}] already subscribed, skipping`);
18
+ return;
19
+ }
20
+ const run = (cleanup2) => {
21
+ const subscribe = () => {
22
+ if (hasBeenInstrumented(callback)) {
23
+ return;
24
+ }
25
+ markInstrumented(callback);
26
+ cleanup2?.();
27
+ DEBUG_BUILD && debug.log(`[orchestrion:${label}] subscribing to channels`);
28
+ callback(...args);
29
+ };
30
+ if (!requiresTracingChannelBinding) {
31
+ subscribe();
32
+ return;
33
+ }
34
+ waitForTracingChannelBinding(subscribe);
35
+ if (DEBUG_BUILD && !hasBeenInstrumented(callback)) {
36
+ debug.log(`[orchestrion:${label}] async-context binding not ready, retrying before subscribing`);
37
+ }
38
+ };
39
+ if (isBun || isDeno) {
40
+ DEBUG_BUILD && debug.log(`[orchestrion:${label}] Bun/Deno, subscribing eagerly`);
41
+ run();
42
+ return;
43
+ }
44
+ const injected = getOrchestrionInjectedModules();
45
+ const injectedName = moduleNames.find((name) => injected.includes(name));
46
+ if (injectedName) {
47
+ DEBUG_BUILD && debug.log(`[orchestrion:${label}] "${injectedName}" already injected, subscribing now`);
48
+ run();
49
+ return;
50
+ }
51
+ DEBUG_BUILD && debug.log(`[orchestrion:${label}] not injected yet, waiting for the module to load`);
52
+ const cleanup = client.on("orchestrion.module-injected", (moduleName) => {
53
+ if (hasBeenInstrumented(callback)) {
54
+ cleanup();
55
+ return;
56
+ }
57
+ if (moduleNames.includes(moduleName)) {
58
+ DEBUG_BUILD && debug.log(`[orchestrion:${label}] "${moduleName}" injected at runtime, subscribing now`);
59
+ run(cleanup);
60
+ }
61
+ });
62
+ }
63
+ function hasBeenInstrumented(callback) {
64
+ return callback[INSTRUMENTED] ?? false;
65
+ }
66
+ function markInstrumented(callback) {
67
+ addNonEnumerableProperty(callback, INSTRUMENTED, true);
68
+ }
69
+
70
+ export { invokeOrchestrionInstrumentation };
71
+ //# sourceMappingURL=instrumentation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instrumentation.js","sources":["../../../src/orchestrion/instrumentation.ts"],"sourcesContent":["import * as diagnosticsChannel from 'node:diagnostics_channel';\nimport type { Client } from '@sentry/core';\nimport { addNonEnumerableProperty, debug, waitForTracingChannelBinding } from '@sentry/core';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { getOrchestrionInjectedModules } from './detect';\n\n// Marks an instrumentation callback as already run, so it subscribes at most once\n// even when reached through several integration names (e.g. Deno wraps a shared\n// integration under `DenoMysql`) or several clients.\nconst INSTRUMENTED = Symbol.for('SentryOrchestrionInstrumented');\n\n// generic function arguments can only be `any`\n// oxlint-disable-next-line typescript/no-explicit-any\ntype InstrumentationFn = ((...args: any[]) => void) & { [INSTRUMENTED]?: boolean };\n\nconst globalAny = globalThis as { Bun?: unknown; Deno?: unknown };\nconst isBun = typeof globalAny.Bun !== 'undefined';\nconst isDeno = typeof globalAny.Deno !== 'undefined';\n\n/**\n * Run an integration's channel-subscription callback once one of its modules is\n * orchestrion-injected, and never more than once.\n *\n * Channel integrations must NOT subscribe eagerly at `Sentry.init()`: Node caps\n * the number of `diagnostics_channel` channels in use at 1024, and every default\n * channel integration binding several channels up front would burn that budget\n * for modules the app never loads. So we defer:\n *\n * - If a module is already injected, then a bundler transformed and loaded it\n * (which records it via `orchestrionModuleInjected`), or the runtime hook\n * injected it before `init()`, so subscribe right away.\n * - Otherwise wait for the `orchestrion.module-injected` event, which fires\n * when the module is loaded and transformed, before it can publish to its\n * channels.\n *\n * Bun and Deno have no such channel limit and no reliable per-module injection\n * tracking, so there we just subscribe immediately.\n *\n * `waitForTracingChannelBinding` still wraps the callback: the async-context\n * binding the subscription needs for span parenting may not exist yet.\n *\n * Note: it is possible to register extra event listeners, if the same callback\n * is registered multiple times. However, this is (a) not something that happens\n * normally, and (b) ultimately fine, because it'll only call the callback one\n * time. There'll just be a few no-op client event listeners.\n */\nexport function invokeOrchestrionInstrumentation<Callback extends InstrumentationFn>(\n client: Client,\n moduleNames: readonly string[],\n callback: Callback,\n args: Parameters<Callback>,\n // Most integrations parent spans via `bindTracingChannelToSpan`, which needs\n // the async-context binding set up at subscribe time. A few (e.g. Hapi,\n // KafkaJS, Koa, tedious) subscribe without it and create spans directly;\n // they pass `false` so a missing binding never blocks their subscription.\n { requiresTracingChannelBinding = true }: { requiresTracingChannelBinding?: boolean } = {},\n): void {\n const label = moduleNames.join(', ');\n\n // `tracingChannel` is unavailable before Node 18.19; nothing to subscribe to.\n if (!diagnosticsChannel.tracingChannel) {\n DEBUG_BUILD && debug.log(`[orchestrion:${label}] no \\`tracingChannel\\` (Node < 18.19), not subscribing`);\n return;\n }\n\n if (hasBeenInstrumented(callback)) {\n DEBUG_BUILD && debug.log(`[orchestrion:${label}] already subscribed, skipping`);\n return;\n }\n\n // cleanup function is passed in so that we only remove the listener\n // once the callback is actually instrumented and called.\n const run = (cleanup?: () => void): void => {\n const subscribe = (): void => {\n if (hasBeenInstrumented(callback)) {\n return;\n }\n markInstrumented(callback);\n cleanup?.();\n DEBUG_BUILD && debug.log(`[orchestrion:${label}] subscribing to channels`);\n callback(...args);\n };\n\n if (!requiresTracingChannelBinding) {\n subscribe();\n return;\n }\n\n // Mark as instrumented only if the channel binding actually lands.\n // Avoids a very narrow case where the binding never arrives within the\n // retry window. So, don't mark until we know we're actually calling.\n waitForTracingChannelBinding(subscribe);\n\n // `waitForTracingChannelBinding` retries once on a timer and then gives up\n // silently. Not being subscribed by now means we took that path, so say so:\n // without this, an integration that never subscribes leaves no trace at all.\n if (DEBUG_BUILD && !hasBeenInstrumented(callback)) {\n debug.log(`[orchestrion:${label}] async-context binding not ready, retrying before subscribing`);\n }\n };\n\n if (isBun || isDeno) {\n DEBUG_BUILD && debug.log(`[orchestrion:${label}] Bun/Deno, subscribing eagerly`);\n run();\n return;\n }\n\n const injected = getOrchestrionInjectedModules();\n const injectedName = moduleNames.find(name => injected.includes(name));\n if (injectedName) {\n DEBUG_BUILD && debug.log(`[orchestrion:${label}] \"${injectedName}\" already injected, subscribing now`);\n run();\n return;\n }\n\n DEBUG_BUILD && debug.log(`[orchestrion:${label}] not injected yet, waiting for the module to load`);\n\n const cleanup = client.on('orchestrion.module-injected', (moduleName: string) => {\n if (hasBeenInstrumented(callback)) {\n cleanup();\n return;\n }\n if (moduleNames.includes(moduleName)) {\n DEBUG_BUILD && debug.log(`[orchestrion:${label}] \"${moduleName}\" injected at runtime, subscribing now`);\n run(cleanup);\n }\n });\n}\n\nfunction hasBeenInstrumented(callback: InstrumentationFn): boolean {\n return callback[INSTRUMENTED] ?? false;\n}\n\nfunction markInstrumented(callback: InstrumentationFn): void {\n addNonEnumerableProperty(callback, INSTRUMENTED, true);\n}\n"],"names":["cleanup"],"mappings":";;;;;AASA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,YAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAA,CAAA,CAAI,+BAA+B,CAAA;AAM/D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA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,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAmC;AAC3D,CAAA,CAAA,wBAAA,CAAyB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAc,IAAI,CAAA;AACvD;;"}
@@ -0,0 +1,19 @@
1
+ import { GLOBAL_OBJ, getClient } from '@sentry/core';
2
+
3
+ function orchestrionModuleInjected(moduleName, integrationFn) {
4
+ var _a;
5
+ const marker = (_a = GLOBAL_OBJ).__SENTRY_ORCHESTRION__ ?? (_a.__SENTRY_ORCHESTRION__ = {});
6
+ if (marker.bundler === void 0 || Array.isArray(marker.bundler)) {
7
+ const bundler = marker.bundler ?? (marker.bundler = []);
8
+ if (!bundler.includes(moduleName)) {
9
+ bundler.push(moduleName);
10
+ }
11
+ }
12
+ if (integrationFn) {
13
+ (marker.integrations ?? (marker.integrations = /* @__PURE__ */ new Map())).set(moduleName, integrationFn);
14
+ }
15
+ getClient()?.emit("orchestrion.module-injected", moduleName);
16
+ }
17
+
18
+ export { orchestrionModuleInjected };
19
+ //# sourceMappingURL=moduleInjected.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moduleInjected.js","sources":["../../../src/orchestrion/moduleInjected.ts"],"sourcesContent":["import type { Integration } from '@sentry/core';\nimport { getClient, GLOBAL_OBJ } from '@sentry/core';\n\n/**\n * Record a bundler-injected module and notify channel integrations. This is the\n * runtime target of the snippet the `tracingChannelImport` override splices\n * into every instrumented module (see `bundler/moduleInjectedTransform.ts`), so\n * it runs when that module is first evaluated — the moment its diagnostics\n * channels can start publishing.\n *\n * It records the module name on the global orchestrion marker, stores the\n * module's channel-subscriber integration factory (when the module has one)\n * keyed by module name, and emits the `orchestrion.module-injected` client\n * event. Recording happens BEFORE the emit so listeners triggered by the event\n * can read the marker.\n *\n * Deliberately record-and-emit only — no `addIntegration` here. Whether an\n * integration is *installed* is each SDK's policy: `@sentry/node` registers its\n * channel integrations statically and only needs the event to trigger their\n * lazy subscription (so a user who removed one from `integrations` stays opted\n * out), while a bundler-only SDK like `@sentry/cloudflare` instantiates the\n * stored factories at `init()` and listens for this event to pick up modules\n * that evaluate later (e.g. a lazily-required driver after a per-request\n * `init()` already snapshotted the marker).\n */\nexport function orchestrionModuleInjected(moduleName: string, integrationFn?: () => Integration): void {\n const marker = (GLOBAL_OBJ.__SENTRY_ORCHESTRION__ ??= {});\n\n // Runtime guard, not just type narrowing: a banner from another SDK copy or\n // version may have written a non-array flag here; leave that untouched.\n if (marker.bundler === undefined || Array.isArray(marker.bundler)) {\n const bundler = (marker.bundler ??= []);\n if (!bundler.includes(moduleName)) {\n bundler.push(moduleName);\n }\n }\n\n if (integrationFn) {\n (marker.integrations ??= new Map()).set(moduleName, integrationFn);\n }\n\n getClient()?.emit('orchestrion.module-injected', moduleName);\n}\n"],"names":[],"mappings":";;AAyBO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA0B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAoB,aAAA,CAAA,CAAyC;AAzBvG,CAAA,CAAA,IAAA,CAAA,CAAA;AA0BE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA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,CAAA,CAAA,CAAA,EAAK,UAAU,CAAA;AAAA,CAAA,CAAA,CAAA,CACzB;AAAA,CAAA,CACF;AAEA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,aAAA,CAAA,CAAe;AACjB,CAAA,CAAA,CAAA,CAAA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,iBAAP,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,KAAqB,CAAA,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,aAAa,CAAA;AAAA,CAAA,CACnE;AAEA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA+B,UAAU,CAAA;AAC7D;;"}
@@ -0,0 +1,8 @@
1
+ export { createDiagnosticsPort, initialize, initializeSync, load, loadResult, loadSync, resolve, resolveSync } from '../../vendored/@apm-js-collab/tracing-hooks/hook.js';
2
+ import { d as diagnostics } from '../../vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js';
3
+
4
+
5
+
6
+ const setDiagnosticsHook = diagnostics.setDiagnosticsHook;
7
+ export { setDiagnosticsHook };
8
+ //# sourceMappingURL=hook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hook.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -1,60 +1,49 @@
1
- import { GLOBAL_OBJ, debug } from '@sentry/core';
2
- import * as Module from 'node:module';
3
- import { createRequire } from 'node:module';
4
- import { pathToFileURL } from 'node:url';
5
- import { isMainThread, parentPort, MessageChannel } from 'node:worker_threads';
1
+ import { GLOBAL_OBJ, debug, getClient, parseSemver } from '@sentry/core';
2
+ import * as require$$1 from 'node:module';
3
+ import 'node:url';
6
4
  import { SENTRY_INSTRUMENTATIONS } from '../config/index.js';
5
+ import ModulePatch from '../../vendored/@apm-js-collab/tracing-hooks/index.js';
6
+ import { initializeSync, loadSync, resolveSync, createDiagnosticsPort } from '../../vendored/@apm-js-collab/tracing-hooks/hook.js';
7
+ import { d as diagnostics } from '../../vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js';
7
8
 
8
- function hasStableSyncModuleHooks(denoVersionString) {
9
- const parseVersion = (v) => v.split(".").map((n) => parseInt(n, 10));
10
- const nodeVersion = parseVersion(process.versions.node ?? "0.0.0");
11
- const denoVersion = parseVersion(denoVersionString ?? "0.0.0");
12
- return (nodeVersion[0] ?? 0) > 25 || nodeVersion[0] === 25 && (nodeVersion[1] ?? 0) >= 1 || nodeVersion[0] === 24 && (nodeVersion[1] ?? 0) >= 13 || (denoVersion[0] ?? 0) > 2 || denoVersion[0] === 2 && (denoVersion[1] ?? 0) >= 8;
13
- }
14
- function registerDiagnosticsChannelInjection(options) {
15
- if (!isMainThread && !parentPort) {
16
- return;
9
+ function hasStableSyncModuleHooks(isDeno) {
10
+ if (isDeno) {
11
+ return true;
17
12
  }
13
+ const { major = 0, minor = 0 } = parseSemver(process.versions.node ?? "0.0.0");
14
+ return major > 25 || major === 25 && minor >= 1 || major === 24 && minor >= 13;
15
+ }
16
+ function registerDiagnosticsChannelInjection() {
18
17
  if (GLOBAL_OBJ?.__SENTRY_ORCHESTRION__?.runtime) {
19
18
  return;
20
19
  }
21
20
  const globalAny = globalThis;
22
- const stableSyncHooks = hasStableSyncModuleHooks(globalAny.Deno?.version?.deno);
23
- let thisModuleUrl;
24
- thisModuleUrl = import.meta.url;
25
- let nodeRequire;
26
- nodeRequire = createRequire(import.meta.url);
27
- const tracingHooksDir = options?.tracingHooksDir;
28
- const requireFromHooksDir = tracingHooksDir ? createRequire(thisModuleUrl) : void 0;
29
- const mod = Module;
21
+ const stableSyncHooks = hasStableSyncModuleHooks(Boolean(globalAny.Deno));
22
+ const mod = require$$1;
23
+ diagnostics.setDiagnosticsHook(({ moduleName, error }) => {
24
+ if (error) {
25
+ debug.warn(`[orchestrion] failed to inject diagnostics-channel into ${moduleName}:`, error);
26
+ } else {
27
+ GLOBAL_OBJ.__SENTRY_ORCHESTRION__ = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ || {};
28
+ GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime = GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime || [];
29
+ GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime.push(moduleName);
30
+ getClient()?.emit("orchestrion.module-injected", moduleName);
31
+ }
32
+ });
30
33
  try {
31
- const { setDiagnosticsHook } = requireFromHooksDir ? requireFromHooksDir(`${tracingHooksDir}/lib/diagnostics.js`) : nodeRequire("@apm-js-collab/tracing-hooks/lib/diagnostics.js");
32
- const onDiagnostics = ({ moduleName, error }) => {
33
- if (error) {
34
- debug.warn(`[orchestrion] failed to inject diagnostics-channel into ${moduleName}:`, error);
35
- } else {
36
- GLOBAL_OBJ.__SENTRY_ORCHESTRION__ = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ || {};
37
- GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime = GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime || [];
38
- GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime.push(moduleName);
39
- }
40
- };
41
- setDiagnosticsHook(onDiagnostics);
42
34
  if (typeof mod.registerHooks === "function" && stableSyncHooks) {
43
- const { initialize, resolve, load } = requireFromHooksDir ? requireFromHooksDir(`${tracingHooksDir}/hook-sync.mjs`) : nodeRequire("@apm-js-collab/tracing-hooks/hook-sync.mjs");
44
- initialize({ instrumentations: SENTRY_INSTRUMENTATIONS });
45
- mod.registerHooks({ resolve, load });
35
+ initializeSync({ instrumentations: SENTRY_INSTRUMENTATIONS });
36
+ mod.registerHooks({ resolve: resolveSync, load: loadSync });
46
37
  debug.log("Registered diagnostics-channel injection via Module.registerHooks()");
47
38
  } else if (typeof mod.register === "function" && !globalAny.Bun && !globalAny.Deno) {
48
- const hookSpecifier = tracingHooksDir ? pathToFileURL(`${tracingHooksDir}/hook.mjs`).href : "@apm-js-collab/tracing-hooks/hook.mjs";
49
- const { port1, port2 } = new MessageChannel();
50
- port1.on("message", onDiagnostics);
51
- port1.unref();
52
- mod.register(hookSpecifier, {
53
- parentURL: thisModuleUrl,
54
- data: { instrumentations: SENTRY_INSTRUMENTATIONS, diagnosticsPort: port2 },
55
- transferList: [port2]
39
+ const diagnosticsPort = createDiagnosticsPort();
40
+ let parentURL;
41
+ parentURL = import.meta.url;
42
+ mod.register("@sentry/server-utils/orchestrion/hook", {
43
+ parentURL,
44
+ data: { instrumentations: SENTRY_INSTRUMENTATIONS, diagnosticsPort },
45
+ transferList: [diagnosticsPort]
56
46
  });
57
- const ModulePatch = requireFromHooksDir && tracingHooksDir ? requireFromHooksDir(tracingHooksDir) : nodeRequire("@apm-js-collab/tracing-hooks");
58
47
  new ModulePatch({ instrumentations: SENTRY_INSTRUMENTATIONS }).patch();
59
48
  debug.log("Registered diagnostics-channel injection via Module.register()");
60
49
  } else {
@@ -1 +1 @@
1
- {"version":3,"file":"register.js","sources":["../../../../src/orchestrion/runtime/register.ts"],"sourcesContent":["import { debug, GLOBAL_OBJ } from '@sentry/core';\nimport { createRequire } from 'node:module';\nimport * as Module from 'node:module';\nimport { pathToFileURL } from 'node:url';\nimport { isMainThread, MessageChannel, parentPort } from 'node:worker_threads';\nimport { SENTRY_INSTRUMENTATIONS } from '../config';\nimport type { register } from 'node:module';\nimport type { InstrumentationConfig } from '..';\n\ntype DiagnosticsEvent = { url: string; moduleName: string; error?: Error };\n\ntype TracingHooksSync = {\n initialize: (opts: { instrumentations: InstrumentationConfig[] }) => void;\n resolve: Function;\n load: Function;\n};\n\ntype TracingHooksDiagnostics = {\n setDiagnosticsHook: (callback: (event: DiagnosticsEvent) => void) => void;\n};\n\ntype NodeModule = {\n registerHooks?: (options: unknown) => { deregister: () => void };\n register?: typeof register;\n};\n\nexport interface RegisterDiagnosticsChannelInjectionOptions {\n /**\n * Absolute directory of the `@apm-js-collab/tracing-hooks` package (forward slashes).\n *\n * Needed when SDK code is bundled into an app's server build: the default bare-specifier\n * require then resolves from the emitted chunk, which fails under isolated installs (pnpm).\n * Framework SDKs (e.g. `@sentry/nextjs`) resolve the package at build time and pass its\n * location here; it is loaded through an opaque `createRequire` that bundlers can't trace.\n */\n tracingHooksDir?: string;\n}\n\n/** `Module.registerHooks` only became stable in Node 24.13 / 25.1 and Deno 2.8. */\nfunction hasStableSyncModuleHooks(denoVersionString: string | undefined): boolean {\n const parseVersion = (v: string): number[] => v.split('.').map(n => parseInt(n, 10));\n const nodeVersion = parseVersion(process.versions.node ?? '0.0.0');\n const denoVersion = parseVersion(denoVersionString ?? '0.0.0');\n return (\n (nodeVersion[0] ?? 0) > 25 ||\n (nodeVersion[0] === 25 && (nodeVersion[1] ?? 0) >= 1) ||\n (nodeVersion[0] === 24 && (nodeVersion[1] ?? 0) >= 13) ||\n (denoVersion[0] ?? 0) > 2 ||\n (denoVersion[0] === 2 && (denoVersion[1] ?? 0) >= 8)\n );\n}\n\n/**\n * Synchronously register the diagnostics-channel injection module hooks.\n *\n * This is the single source of truth for the registration logic. It is used by:\n * - `Sentry.init()` (the Node SDK calls it directly — that's why this module\n * must be CJS-compatible / dual-built, so it can be `require()`d synchronously\n * before the app's `import`s resolve), and\n * - `import-hook.mjs`, the side-effecting `--import` entry, which just calls it.\n *\n * Libraries imported *after* this call publish the `tracingChannel` events that\n * the channel-based integrations subscribe to.\n */\nexport function registerDiagnosticsChannelInjection(options?: RegisterDiagnosticsChannelInjectionOptions): void {\n // Skip Node's internal loader (hooks) threads, recognizable as the only threads without a\n // `parentPort`. Node re-runs `--require` preloads (though not `--import` ones) on the loader\n // thread it spawns for `Module.register()`, so this function runs there too — but that thread\n // never executes app code, and its `register()` implementation (the in-thread `Hooks` class)\n // has no `transferList` parameter: our transfer array lands in its `isInternal` parameter and\n // Node crashes trying to load the hook as an internal builtin. User-created workers always\n // have a `parentPort` and register through `CustomizedModuleLoader`, which handles\n // `transferList` correctly, so they proceed and get their own instrumented loader.\n if (!isMainThread && !parentPort) {\n return;\n }\n\n if (GLOBAL_OBJ?.__SENTRY_ORCHESTRION__?.runtime) {\n return;\n }\n\n const globalAny = globalThis as { Bun?: unknown; Deno?: { version?: { deno?: string } } };\n const stableSyncHooks = hasStableSyncModuleHooks(globalAny.Deno?.version?.deno);\n\n let thisModuleUrl: string;\n /*! rollup-include-cjs-only */\n thisModuleUrl = pathToFileURL(__filename).href;\n /*! rollup-include-cjs-only-end */\n /*! rollup-include-esm-only */\n thisModuleUrl = import.meta.url;\n /*! rollup-include-esm-only-end */\n\n // Default: bare specifiers via a plain (aliased) `require`, so bundlers see and resolve them\n // like any other dependency. Override: with `tracingHooksDir`, absolute paths are loaded through\n // `createRequire`, which bundlers leave as a true runtime require — they must not statically\n // resolve these (Turbopack fails the build on an absolute request, and the machinery breaks when\n // bundled anyway). `createRequire` rather than ignore-comments because webpack only honors\n // `webpackIgnore` on `import()`, not `require()` (it compiles the call to a broken module stub).\n let nodeRequire: (specifier: string) => unknown;\n /*! rollup-include-cjs-only */\n nodeRequire = require;\n /*! rollup-include-cjs-only-end */\n /*! rollup-include-esm-only */\n nodeRequire = createRequire(import.meta.url);\n /*! rollup-include-esm-only-end */\n\n const tracingHooksDir = options?.tracingHooksDir;\n const requireFromHooksDir = tracingHooksDir ? createRequire(thisModuleUrl) : undefined;\n\n // `Module.registerHooks` / `Module.register` are newer than the @types/node\n // we build against, hence the cast.\n const mod = Module as NodeModule;\n\n // runs both at `--import` time and (synchronously) inside `Sentry.init()`,\n // so an unguarded throw would either abort startup or make `init()` throw.\n // On any failure (e.g. dep resolution, `require(esm)` / Node-compat\n // incompatibility) we warn (DEBUG only) and continue without channel\n // injection\n try {\n // `lib/diagnostics.js` is plain CJS, so unlike the ESM hook entry points it can be\n // require()d on every supported Node version. It holds the hook state shared by\n // everything that can transform a module on this thread (the sync ESM hooks and the\n // `_compile` patch), so setting the hook once here covers both branches below.\n const { setDiagnosticsHook } = (\n requireFromHooksDir\n ? requireFromHooksDir(`${tracingHooksDir}/lib/diagnostics.js`)\n : nodeRequire('@apm-js-collab/tracing-hooks/lib/diagnostics.js')\n ) as TracingHooksDiagnostics;\n\n const onDiagnostics = ({ moduleName, error }: DiagnosticsEvent): void => {\n if (error) {\n debug.warn(`[orchestrion] failed to inject diagnostics-channel into ${moduleName}:`, error);\n } else {\n GLOBAL_OBJ.__SENTRY_ORCHESTRION__ = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ || {};\n GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime = GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime || [];\n GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime.push(moduleName);\n }\n };\n\n setDiagnosticsHook(onDiagnostics);\n\n if (typeof mod.registerHooks === 'function' && stableSyncHooks) {\n // Sync hooks cover CJS and ESM, no separate `_compile` patch needed.\n // We require() this ESM module so that we can synchronously load it,\n // including from a CommonJS Sentry build; all versions in\n // stableSyncHooks support require(esm).\n const { initialize, resolve, load } = (\n requireFromHooksDir\n ? requireFromHooksDir(`${tracingHooksDir}/hook-sync.mjs`)\n : nodeRequire('@apm-js-collab/tracing-hooks/hook-sync.mjs')\n ) as TracingHooksSync;\n\n initialize({ instrumentations: SENTRY_INSTRUMENTATIONS });\n mod.registerHooks({ resolve, load });\n debug.log('Registered diagnostics-channel injection via Module.registerHooks()');\n } else if (typeof mod.register === 'function' && !globalAny.Bun && !globalAny.Deno) {\n // `Module.register` + the `_compile` patch is Node 18.19–24.12 / 25.0\n // path. Bun/Deno are excluded: they don't support this combination and\n // must use the stable `registerHooks` path above (or none at all).\n // `Module.register` resolves ESM-style: a bare package specifier is resolved against\n // `parentURL`, but a filesystem path (the `tracingHooksDir` override) is not a valid ESM\n // specifier and must be passed as a file:// URL.\n const hookSpecifier = tracingHooksDir\n ? pathToFileURL(`${tracingHooksDir}/hook.mjs`).href\n : '@apm-js-collab/tracing-hooks/hook.mjs';\n\n // The `Module.register` hooks run on a loader thread with its own copy of\n // `lib/diagnostics.js`, so the hook set above never fires there; the loader thread\n // posts diagnostics back over a MessagePort instead. This replicates\n // `createDiagnosticsPort` from hook.mjs, which is ESM and therefore not\n // synchronously loadable on all Node versions that take this branch.\n const { port1, port2 } = new MessageChannel();\n port1.on('message', onDiagnostics);\n // The diagnostics channel must not keep the process alive.\n port1.unref();\n mod.register(hookSpecifier, {\n parentURL: thisModuleUrl,\n data: { instrumentations: SENTRY_INSTRUMENTATIONS, diagnosticsPort: port2 },\n transferList: [port2],\n });\n\n // ALSO patch `Module.prototype._compile` for the CJS side: when an ESM\n // file `import`s a CJS package, the package's internal `require()` calls\n // are resolved through the CJS machinery and never reach the ESM\n // register hook, so without this patch the file we want to instrument\n // loads untransformed.\n const ModulePatch = (\n requireFromHooksDir && tracingHooksDir\n ? requireFromHooksDir(tracingHooksDir)\n : nodeRequire('@apm-js-collab/tracing-hooks')\n ) as new (opts: { instrumentations: unknown }) => {\n patch: () => void;\n };\n new ModulePatch({ instrumentations: SENTRY_INSTRUMENTATIONS }).patch();\n debug.log('Registered diagnostics-channel injection via Module.register()');\n } else {\n debug.warn('No available Node API to register diagnostics-channel injection hooks; skipping.');\n return;\n }\n } catch (error) {\n debug.warn(\n 'Failed to register diagnostics-channel injection hooks; channel-based integrations will not record spans.',\n error,\n );\n return;\n }\n\n GLOBAL_OBJ.__SENTRY_ORCHESTRION__ = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ || {};\n GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime = GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime || [];\n}\n"],"names":[],"mappings":";;;;;;;AAuCA,SAAS,yBAAyB,iBAAA,EAAgD;AAChF,EAAA,MAAM,YAAA,GAAe,CAAC,CAAA,KAAwB,CAAA,CAAE,KAAA,CAAM,GAAG,CAAA,CAAE,GAAA,CAAI,CAAA,CAAA,KAAK,QAAA,CAAS,CAAA,EAAG,EAAE,CAAC,CAAA;AACnF,EAAA,MAAM,WAAA,GAAc,YAAA,CAAa,OAAA,CAAQ,QAAA,CAAS,QAAQ,OAAO,CAAA;AACjE,EAAA,MAAM,WAAA,GAAc,YAAA,CAAa,iBAAA,IAAqB,OAAO,CAAA;AAC7D,EAAA,OAAA,CACG,WAAA,CAAY,CAAC,CAAA,IAAK,CAAA,IAAK,MACvB,WAAA,CAAY,CAAC,CAAA,KAAM,EAAA,IAAA,CAAO,YAAY,CAAC,CAAA,IAAK,CAAA,KAAM,CAAA,IAClD,YAAY,CAAC,CAAA,KAAM,EAAA,IAAA,CAAO,WAAA,CAAY,CAAC,CAAA,IAAK,CAAA,KAAM,EAAA,IAAA,CAClD,WAAA,CAAY,CAAC,CAAA,IAAK,CAAA,IAAK,CAAA,IACvB,WAAA,CAAY,CAAC,CAAA,KAAM,CAAA,IAAA,CAAM,WAAA,CAAY,CAAC,KAAK,CAAA,KAAM,CAAA;AAEtD;AAcO,SAAS,oCAAoC,OAAA,EAA4D;AAS9G,EAAA,IAAI,CAAC,YAAA,IAAgB,CAAC,UAAA,EAAY;AAChC,IAAA;AAAA,EACF;AAEA,EAAA,IAAI,UAAA,EAAY,wBAAwB,OAAA,EAAS;AAC/C,IAAA;AAAA,EACF;AAEA,EAAA,MAAM,SAAA,GAAY,UAAA;AA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A,CAAA,kFAAM,CAAA;AACZ,MAAA;AAA4B,IAAA;AACf,EAAA,CAAA,CAAA,OACX,KAAQ,EAAA;AAAkE,IAAA,KAC1E,CAAA,IAAA;AAAoB,MACtB,2GAAC;AAOD,MAAA;AAOA,KAAA;AACA,IAAA;AAA0E,EAAA;AAE1E,EAAA,UAAM,uBAAK,GAAA,UAAA,CAAA,sBAAA,IAAA,EAAA;AACX,EAAA,UAAA,CAAA,sBAAA,CAAA,OAAA,GAAA,UAAA,CAAA,sBAAA,CAAA,OAAA,IAAA,EAAA;AAAA;;;;"}
1
+ {"version":3,"file":"register.js","sources":["../../../../src/orchestrion/runtime/register.ts"],"sourcesContent":["import { debug, getClient, GLOBAL_OBJ, parseSemver } from '@sentry/core';\nimport * as Module from 'node:module';\nimport { pathToFileURL } from 'node:url';\nimport { SENTRY_INSTRUMENTATIONS } from '../config';\nimport type { register } from 'node:module';\nimport ModulePatch from '@apm-js-collab/tracing-hooks';\nimport { initialize, load, resolve, createDiagnosticsPort } from '@apm-js-collab/tracing-hooks/hook-sync.mjs';\nimport { setDiagnosticsHook } from '@apm-js-collab/tracing-hooks/lib/diagnostics.js';\n\ntype NodeModule = {\n registerHooks?: (options: { load: Function; resolve: Function }) => { deregister: () => void };\n register?: typeof register;\n};\n\n/** `Module.registerHooks` only became stable in Node 24.13 / 25.1. */\nfunction hasStableSyncModuleHooks(isDeno: boolean): boolean {\n // The minimum supported Deno (2.8.3) always has stable sync module hooks.\n if (isDeno) {\n return true;\n }\n\n const { major = 0, minor = 0 } = parseSemver(process.versions.node ?? '0.0.0');\n return major > 25 || (major === 25 && minor >= 1) || (major === 24 && minor >= 13);\n}\n\n/**\n * Synchronously register the diagnostics-channel injection module hooks.\n *\n * This is the single source of truth for the registration logic. It is used by:\n * - `Sentry.init()` (the Node SDK calls it directly — that's why this module\n * must be CJS-compatible / dual-built, so it can be `require()`d synchronously\n * before the app's `import`s resolve), and\n * - `import-hook.mjs`, the side-effecting `--import` entry, which just calls it.\n *\n * Libraries imported *after* this call publish the `tracingChannel` events that\n * the channel-based integrations subscribe to.\n */\nexport function registerDiagnosticsChannelInjection(): void {\n if (GLOBAL_OBJ?.__SENTRY_ORCHESTRION__?.runtime) {\n return;\n }\n\n const globalAny = globalThis as { Bun?: unknown; Deno?: { version?: { deno?: string } } };\n const stableSyncHooks = hasStableSyncModuleHooks(Boolean(globalAny.Deno));\n\n // `Module.registerHooks` / `Module.register` are newer than the @types/node\n // we build against, hence the cast.\n const mod = Module as NodeModule;\n\n setDiagnosticsHook(({ moduleName, error }): void => {\n if (error) {\n debug.warn(`[orchestrion] failed to inject diagnostics-channel into ${moduleName}:`, error);\n } else {\n GLOBAL_OBJ.__SENTRY_ORCHESTRION__ = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ || {};\n GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime = GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime || [];\n GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime.push(moduleName);\n // Tell channel integrations their module just loaded, so they subscribe\n // now. They hold off at `init()` to avoid claiming channel slots for\n // modules that never load, because Node caps channels in use at 1024.\n getClient()?.emit('orchestrion.module-injected', moduleName);\n }\n });\n\n // runs both at `--import` time and (synchronously) inside `Sentry.init()`,\n // so an unguarded throw would either abort startup or make `init()` throw.\n // On any failure (e.g. dep resolution, `require(esm)` / Node-compat\n // incompatibility) we warn (DEBUG only) and continue without channel\n // injection\n try {\n if (typeof mod.registerHooks === 'function' && stableSyncHooks) {\n initialize({ instrumentations: SENTRY_INSTRUMENTATIONS });\n mod.registerHooks({ resolve, load });\n debug.log('Registered diagnostics-channel injection via Module.registerHooks()');\n } else if (typeof mod.register === 'function' && !globalAny.Bun && !globalAny.Deno) {\n // `Module.register` + the `_compile` patch is Node 18.19–24.12 / 25.0\n // path. Bun/Deno are excluded: they don't support this combination and\n // must use the stable `registerHooks` path above (or none at all).\n const diagnosticsPort = createDiagnosticsPort();\n\n let parentURL: string;\n /*! rollup-include-cjs-only */\n parentURL = pathToFileURL(__filename).href;\n /*! rollup-include-cjs-only-end */\n /*! rollup-include-esm-only */\n parentURL = import.meta.url;\n /*! rollup-include-esm-only-end */\n\n // Our own bundled copy of the tracing-hooks async hooks (see\n // `src/orchestrion/runtime/hook.mjs`) — the dependency itself is bundled into this package's\n // build and no longer resolvable as a bare specifier at runtime.\n mod.register('@sentry/server-utils/orchestrion/hook', {\n parentURL,\n data: { instrumentations: SENTRY_INSTRUMENTATIONS, diagnosticsPort },\n transferList: [diagnosticsPort],\n });\n\n // ALSO patch `Module.prototype._compile` for the CJS side: when an ESM\n // file `import`s a CJS package, the package's internal `require()` calls\n // are resolved through the CJS machinery and never reach the ESM\n // register hook, so without this patch the file we want to instrument\n // loads untransformed.\n new ModulePatch({ instrumentations: SENTRY_INSTRUMENTATIONS }).patch();\n debug.log('Registered diagnostics-channel injection via Module.register()');\n } else {\n debug.warn('No available Node API to register diagnostics-channel injection hooks; skipping.');\n return;\n }\n } catch (error) {\n debug.warn(\n 'Failed to register diagnostics-channel injection hooks; channel-based integrations will not record spans.',\n error,\n );\n return;\n }\n\n GLOBAL_OBJ.__SENTRY_ORCHESTRION__ = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ || {};\n GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime = GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime || [];\n}\n"],"names":["Module","setDiagnosticsHook","initialize","resolve","load"],"mappings":";;;;;;;;AAeA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAyB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA0B;AAE1D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,MAAA,CAAA,CAA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AAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,UAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA;;"}
@@ -0,0 +1,42 @@
1
+ import { trace, isSpanContextValid } from '@opentelemetry/api';
2
+ import { defineIntegration, registerExternalPropagationContext, dsnFromString, SENTRY_API_VERSION } from '@sentry/core';
3
+
4
+ const INTEGRATION_NAME = "Otlp";
5
+ const _otlpIntegration = (() => {
6
+ return {
7
+ name: INTEGRATION_NAME,
8
+ setup() {
9
+ registerExternalPropagationContext(() => {
10
+ const activeSpan = trace.getActiveSpan();
11
+ if (!activeSpan) {
12
+ return void 0;
13
+ }
14
+ const spanContext = activeSpan.spanContext();
15
+ if (!isSpanContextValid(spanContext)) {
16
+ return void 0;
17
+ }
18
+ const { traceId, spanId } = spanContext;
19
+ return { traceId, spanId };
20
+ });
21
+ }
22
+ };
23
+ });
24
+ const otlpIntegration = defineIntegration(_otlpIntegration);
25
+ function getOtlpTracesEndpoint(dsn) {
26
+ const parsedDsn = dsnFromString(dsn);
27
+ if (!parsedDsn) {
28
+ return void 0;
29
+ }
30
+ const { protocol, host, port, path, projectId, publicKey } = parsedDsn;
31
+ const basePath = path ? `/${path}` : "";
32
+ const portSuffix = port ? `:${port}` : "";
33
+ return {
34
+ url: `${protocol}://${host}${portSuffix}${basePath}/api/${projectId}/integration/otlp/v1/traces/`,
35
+ headers: {
36
+ "X-Sentry-Auth": `Sentry sentry_version=${SENTRY_API_VERSION}, sentry_key=${publicKey}`
37
+ }
38
+ };
39
+ }
40
+
41
+ export { getOtlpTracesEndpoint, otlpIntegration };
42
+ //# sourceMappingURL=otlp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"otlp.js","sources":["../../src/otlp.ts"],"sourcesContent":["import { isSpanContextValid, trace } from '@opentelemetry/api';\nimport type { IntegrationFn } from '@sentry/core';\nimport { defineIntegration, dsnFromString, SENTRY_API_VERSION, registerExternalPropagationContext } from '@sentry/core';\n\nconst INTEGRATION_NAME = 'Otlp' as const;\n\nconst _otlpIntegration = (() => {\n return {\n name: INTEGRATION_NAME,\n\n setup(): void {\n registerExternalPropagationContext(() => {\n const activeSpan = trace.getActiveSpan();\n if (!activeSpan) {\n return undefined;\n }\n\n // OpenTelemetry hands out a span wrapping `INVALID_SPAN_CONTEXT` when tracing is suppressed,\n // or when a span is started before a tracer provider is registered. Its ids are all zeroes,\n // so fall back to the Sentry scope rather than stamping that onto everything we send.\n const spanContext = activeSpan.spanContext();\n if (!isSpanContextValid(spanContext)) {\n return undefined;\n }\n\n const { traceId, spanId } = spanContext;\n return { traceId, spanId };\n });\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Connects Sentry to an existing OpenTelemetry setup.\n *\n * Everything Sentry sends that carries trace information (errors, logs, metrics and check-ins) is\n * attached to the OpenTelemetry span that is active when it happens, so it shows up on the same\n * trace as the spans your OpenTelemetry SDK exports. Outgoing request propagation is left to your\n * OpenTelemetry propagator.\n *\n * An active Sentry span still takes precedence, so this only changes what happens when Sentry has no\n * span of its own, which is the usual setup when OpenTelemetry owns tracing.\n *\n * This does not export any spans. Configure your own span exporter and point it at Sentry using\n * {@link getOtlpTracesEndpoint}.\n */\nexport const otlpIntegration = defineIntegration(_otlpIntegration);\n\n/**\n * Builds the URL and auth headers for Sentry's OTLP traces endpoint, to configure an\n * `OTLPTraceExporter` with.\n *\n * Returns `undefined` if the DSN cannot be parsed.\n *\n * @example\n *\n * ```javascript\n * import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';\n * import { BatchSpanProcessor } from '@opentelemetry/sdk-trace-base';\n * import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node';\n *\n * const provider = new NodeTracerProvider({\n * spanProcessors: [\n * new BatchSpanProcessor(new OTLPTraceExporter(Sentry.getOtlpTracesEndpoint('__DSN__'))),\n * ],\n * });\n *\n * provider.register();\n *\n * Sentry.init({\n * dsn: '__DSN__',\n * integrations: [Sentry.otlpIntegration()],\n * });\n * ```\n */\nexport function getOtlpTracesEndpoint(dsn: string): { url: string; headers: Record<string, string> } | undefined {\n const parsedDsn = dsnFromString(dsn);\n if (!parsedDsn) {\n return undefined;\n }\n\n const { protocol, host, port, path, projectId, publicKey } = parsedDsn;\n const basePath = path ? `/${path}` : '';\n const portSuffix = port ? `:${port}` : '';\n\n return {\n url: `${protocol}://${host}${portSuffix}${basePath}/api/${projectId}/integration/otlp/v1/traces/`,\n headers: {\n 'X-Sentry-Auth': `Sentry sentry_version=${SENTRY_API_VERSION}, sentry_key=${publicKey}`,\n },\n };\n}\n"],"names":[],"mappings":";;;AAIA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAmB,CAAA,CAAA,CAAA,CAAA,CAAA,CA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AAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACP,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAyB,kBAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA;AAAA,CAAA,CAAA,CAAA,CAAA;AACvF,CAAA,CAAA,CACF;AACF;;"}
@@ -1 +1 @@
1
- {"type":"module","version":"10.69.0","sideEffects":false}
1
+ {"type":"module","version":"11.0.0-alpha.0","sideEffects":false}
@@ -1 +1 @@
1
- {"version":3,"file":"global.js","sources":["../../../src/prisma/global.ts"],"sourcesContent":["/*\n * Copyright Prisma\n * SPDX-License-Identifier: Apache-2.0\n *\n * NOTICE from the Sentry authors:\n * - Vendored from: https://github.com/prisma/prisma/tree/b6feea5565ec577545a79547d24273ccdd11b4c7/packages/instrumentation-contract\n * - Upstream version: @prisma/instrumentation-contract@7.8.0\n * - Replaced `import packageJson from '../package.json'` with hardcoded major version\n */\n\nimport type { PrismaInstrumentationGlobalValue, TracingHelper } from './types';\n\nconst majorVersion = '7';\n\nconst GLOBAL_INSTRUMENTATION_KEY = 'PRISMA_INSTRUMENTATION';\nconst GLOBAL_VERSIONED_INSTRUMENTATION_KEY = `V${majorVersion}_PRISMA_INSTRUMENTATION` as const;\n\ntype GlobalThisWithPrismaInstrumentation = typeof globalThis & {\n [GLOBAL_INSTRUMENTATION_KEY]?: PrismaInstrumentationGlobalValue;\n} & {\n [K in typeof GLOBAL_VERSIONED_INSTRUMENTATION_KEY]?: PrismaInstrumentationGlobalValue;\n};\n\nconst globalThisWithPrismaInstrumentation = globalThis as GlobalThisWithPrismaInstrumentation;\n\nexport function getGlobalTracingHelper(): TracingHelper | undefined {\n const versionedGlobal = globalThisWithPrismaInstrumentation[GLOBAL_VERSIONED_INSTRUMENTATION_KEY];\n\n if (versionedGlobal?.helper) {\n return versionedGlobal.helper;\n }\n\n const fallbackGlobal = globalThisWithPrismaInstrumentation[GLOBAL_INSTRUMENTATION_KEY];\n\n return fallbackGlobal?.helper;\n}\n\nexport function setGlobalTracingHelper(helper: TracingHelper): void {\n const globalValue: PrismaInstrumentationGlobalValue = { helper };\n\n globalThisWithPrismaInstrumentation[GLOBAL_VERSIONED_INSTRUMENTATION_KEY] = globalValue;\n globalThisWithPrismaInstrumentation[GLOBAL_INSTRUMENTATION_KEY] = globalValue;\n}\n\nexport function clearGlobalTracingHelper(): void {\n globalThisWithPrismaInstrumentation[GLOBAL_VERSIONED_INSTRUMENTATION_KEY] = undefined;\n globalThisWithPrismaInstrumentation[GLOBAL_INSTRUMENTATION_KEY] = undefined;\n}\n"],"names":[],"mappings":"AAYA,MAAM,YAAA,GAAe,GAAA;AAErB,MAAM,0BAAA,GAA6B,wBAAA;AACnC,MAAM,oCAAA,GAAuC,IAAI,YAAY,CAAA,uBAAA,CAAA;AAQ7D,MAAM,mCAAA,GAAsC,UAAA;AAcrC,SAAS,uBAAuB,MAAA,EAA6B;AAClE,EAAA,MAAM,WAAA,GAAgD,EAAE,MAAA,EAAO;AAE/D,EAAA,mCAAA,CAAoC,oCAAoC,CAAA,GAAI,WAAA;AAC5E,EAAA,mCAAA,CAAoC,0BAA0B,CAAA,GAAI,WAAA;AACpE;;;;"}
1
+ {"version":3,"file":"global.js","sources":["../../../src/prisma/global.ts"],"sourcesContent":["/*\n * Copyright Prisma\n * SPDX-License-Identifier: Apache-2.0\n *\n * NOTICE from the Sentry authors:\n * - Vendored from: https://github.com/prisma/prisma/tree/b6feea5565ec577545a79547d24273ccdd11b4c7/packages/instrumentation-contract\n * - Upstream version: @prisma/instrumentation-contract@7.8.0\n * - Replaced `import packageJson from '../package.json'` with hardcoded major version\n */\n\nimport type { PrismaInstrumentationGlobalValue, TracingHelper } from './types';\n\nconst majorVersion = '7';\n\nconst GLOBAL_INSTRUMENTATION_KEY = 'PRISMA_INSTRUMENTATION';\nconst GLOBAL_VERSIONED_INSTRUMENTATION_KEY = `V${majorVersion}_PRISMA_INSTRUMENTATION` as const;\n\ntype GlobalThisWithPrismaInstrumentation = typeof globalThis & {\n [GLOBAL_INSTRUMENTATION_KEY]?: PrismaInstrumentationGlobalValue;\n} & {\n [K in typeof GLOBAL_VERSIONED_INSTRUMENTATION_KEY]?: PrismaInstrumentationGlobalValue;\n};\n\nconst globalThisWithPrismaInstrumentation = globalThis as GlobalThisWithPrismaInstrumentation;\n\nexport function getGlobalTracingHelper(): TracingHelper | undefined {\n const versionedGlobal = globalThisWithPrismaInstrumentation[GLOBAL_VERSIONED_INSTRUMENTATION_KEY];\n\n if (versionedGlobal?.helper) {\n return versionedGlobal.helper;\n }\n\n const fallbackGlobal = globalThisWithPrismaInstrumentation[GLOBAL_INSTRUMENTATION_KEY];\n\n return fallbackGlobal?.helper;\n}\n\nexport function setGlobalTracingHelper(helper: TracingHelper): void {\n const globalValue: PrismaInstrumentationGlobalValue = { helper };\n\n globalThisWithPrismaInstrumentation[GLOBAL_VERSIONED_INSTRUMENTATION_KEY] = globalValue;\n globalThisWithPrismaInstrumentation[GLOBAL_INSTRUMENTATION_KEY] = globalValue;\n}\n\nexport function clearGlobalTracingHelper(): void {\n globalThisWithPrismaInstrumentation[GLOBAL_VERSIONED_INSTRUMENTATION_KEY] = undefined;\n globalThisWithPrismaInstrumentation[GLOBAL_INSTRUMENTATION_KEY] = undefined;\n}\n"],"names":[],"mappings":"AAYA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA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