@sentry/server-utils 11.0.0-alpha.1 → 11.0.0-beta.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 (1318) hide show
  1. package/build/THIRD-PARTY-LICENSES.txt +33 -360
  2. package/build/cjs/ai/anthropic-ai/index.js +30 -59
  3. package/build/cjs/ai/anthropic-ai/index.js.map +1 -1
  4. package/build/cjs/ai/anthropic-ai/streaming.js +0 -6
  5. package/build/cjs/ai/anthropic-ai/streaming.js.map +1 -1
  6. package/build/cjs/ai/anthropic-ai/utils.js +3 -2
  7. package/build/cjs/ai/anthropic-ai/utils.js.map +1 -1
  8. package/build/cjs/ai/core/gen-ai-attributes.js +0 -6
  9. package/build/cjs/ai/core/gen-ai-attributes.js.map +1 -1
  10. package/build/cjs/ai/core/utils.js +5 -15
  11. package/build/cjs/ai/core/utils.js.map +1 -1
  12. package/build/cjs/ai/google-genai/index.js +23 -19
  13. package/build/cjs/ai/google-genai/index.js.map +1 -1
  14. package/build/cjs/ai/langchain/embeddings.js +6 -9
  15. package/build/cjs/ai/langchain/embeddings.js.map +1 -1
  16. package/build/cjs/ai/langchain/index.js +30 -41
  17. package/build/cjs/ai/langchain/index.js.map +1 -1
  18. package/build/cjs/ai/langgraph/index.js +2 -9
  19. package/build/cjs/ai/langgraph/index.js.map +1 -1
  20. package/build/cjs/ai/langgraph/utils.js +2 -8
  21. package/build/cjs/ai/langgraph/utils.js.map +1 -1
  22. package/build/cjs/ai/openai/index.js +9 -26
  23. package/build/cjs/ai/openai/index.js.map +1 -1
  24. package/build/cjs/ai/vercel-ai/index.js +0 -281
  25. package/build/cjs/ai/vercel-ai/index.js.map +1 -1
  26. package/build/cjs/ai/workers-ai/index.js +9 -4
  27. package/build/cjs/ai/workers-ai/index.js.map +1 -1
  28. package/build/cjs/ai/workers-ai/utils.js +6 -0
  29. package/build/cjs/ai/workers-ai/utils.js.map +1 -1
  30. package/build/cjs/index.js +87 -44
  31. package/build/cjs/index.js.map +1 -1
  32. package/build/cjs/index.no-diagnostic-channels.js +17 -19
  33. package/build/cjs/index.no-diagnostic-channels.js.map +1 -1
  34. package/build/cjs/integrations/amqplib.js +402 -0
  35. package/build/cjs/integrations/amqplib.js.map +1 -0
  36. package/build/cjs/integrations/anthropic.js +113 -0
  37. package/build/cjs/integrations/anthropic.js.map +1 -0
  38. package/build/cjs/integrations/aws-sdk/constants.js.map +1 -0
  39. package/build/cjs/integrations/aws-sdk/index.js +154 -0
  40. package/build/cjs/integrations/aws-sdk/index.js.map +1 -0
  41. package/build/cjs/integrations/aws-sdk/services/MessageAttributes.js +46 -0
  42. package/build/cjs/integrations/aws-sdk/services/MessageAttributes.js.map +1 -0
  43. package/build/cjs/integrations/aws-sdk/services/ServicesExtensions.js.map +1 -0
  44. package/build/cjs/integrations/aws-sdk/services/bedrock-runtime.js +424 -0
  45. package/build/cjs/integrations/aws-sdk/services/bedrock-runtime.js.map +1 -0
  46. package/build/cjs/integrations/aws-sdk/services/dynamodb.js +130 -0
  47. package/build/cjs/integrations/aws-sdk/services/dynamodb.js.map +1 -0
  48. package/build/cjs/integrations/aws-sdk/services/kinesis.js.map +1 -0
  49. package/build/cjs/integrations/aws-sdk/services/lambda.js +63 -0
  50. package/build/cjs/integrations/aws-sdk/services/lambda.js.map +1 -0
  51. package/build/cjs/integrations/aws-sdk/services/s3.js.map +1 -0
  52. package/build/cjs/integrations/aws-sdk/services/secretsmanager.js.map +1 -0
  53. package/build/cjs/integrations/aws-sdk/services/sns.js +79 -0
  54. package/build/cjs/integrations/aws-sdk/services/sns.js.map +1 -0
  55. package/build/cjs/integrations/aws-sdk/services/sqs.js +135 -0
  56. package/build/cjs/integrations/aws-sdk/services/sqs.js.map +1 -0
  57. package/build/cjs/integrations/aws-sdk/services/stepfunctions.js.map +1 -0
  58. package/build/cjs/integrations/aws-sdk/utils.js.map +1 -0
  59. package/build/cjs/integrations/dataloader.js +134 -0
  60. package/build/cjs/integrations/dataloader.js.map +1 -0
  61. package/build/cjs/integrations/express/error-handled.js +17 -0
  62. package/build/cjs/integrations/express/error-handled.js.map +1 -0
  63. package/build/cjs/integrations/express/error-handler.js +43 -0
  64. package/build/cjs/integrations/express/error-handler.js.map +1 -0
  65. package/build/cjs/integrations/express/index.js +37 -0
  66. package/build/cjs/integrations/express/index.js.map +1 -0
  67. package/build/cjs/integrations/express/instrumentation.js +200 -0
  68. package/build/cjs/integrations/express/instrumentation.js.map +1 -0
  69. package/build/cjs/integrations/express/route.js.map +1 -0
  70. package/build/cjs/integrations/express/utils.js +12 -0
  71. package/build/cjs/integrations/express/utils.js.map +1 -0
  72. package/build/cjs/integrations/fastify/errors.js +49 -0
  73. package/build/cjs/integrations/fastify/errors.js.map +1 -0
  74. package/build/cjs/integrations/fastify/index.js +28 -0
  75. package/build/cjs/integrations/fastify/index.js.map +1 -0
  76. package/build/cjs/integrations/fastify/instrumentation.js +265 -0
  77. package/build/cjs/integrations/fastify/instrumentation.js.map +1 -0
  78. package/build/cjs/integrations/fastify/utils.js.map +1 -0
  79. package/build/cjs/integrations/firebase/firestore.js +92 -0
  80. package/build/cjs/integrations/firebase/firestore.js.map +1 -0
  81. package/build/cjs/integrations/firebase/functions.js +69 -0
  82. package/build/cjs/integrations/firebase/functions.js.map +1 -0
  83. package/build/cjs/integrations/firebase/index.js +20 -0
  84. package/build/cjs/integrations/firebase/index.js.map +1 -0
  85. package/build/cjs/integrations/firebase/instrumentation.js +69 -0
  86. package/build/cjs/integrations/firebase/instrumentation.js.map +1 -0
  87. package/build/cjs/integrations/generic-pool.js +49 -0
  88. package/build/cjs/integrations/generic-pool.js.map +1 -0
  89. package/build/cjs/integrations/google-genai.js +112 -0
  90. package/build/cjs/integrations/google-genai.js.map +1 -0
  91. package/build/cjs/integrations/graphql/constants.js +38 -0
  92. package/build/cjs/integrations/graphql/constants.js.map +1 -0
  93. package/build/cjs/integrations/graphql/graphql-dc-subscriber.js +122 -0
  94. package/build/cjs/integrations/graphql/graphql-dc-subscriber.js.map +1 -0
  95. package/build/cjs/integrations/graphql/index.js +73 -0
  96. package/build/cjs/integrations/graphql/index.js.map +1 -0
  97. package/build/cjs/integrations/graphql/resolvers.js +174 -0
  98. package/build/cjs/integrations/graphql/resolvers.js.map +1 -0
  99. package/build/cjs/integrations/graphql/spans.js +114 -0
  100. package/build/cjs/integrations/graphql/spans.js.map +1 -0
  101. package/build/cjs/integrations/graphql/utils.js +98 -0
  102. package/build/cjs/integrations/graphql/utils.js.map +1 -0
  103. package/build/cjs/integrations/hapi/hapi-error-handler.js +46 -0
  104. package/build/cjs/integrations/hapi/hapi-error-handler.js.map +1 -0
  105. package/build/cjs/integrations/hapi/hapi-types.js.map +1 -0
  106. package/build/cjs/integrations/hapi/hapi-utils.js +197 -0
  107. package/build/cjs/integrations/hapi/hapi-utils.js.map +1 -0
  108. package/build/cjs/integrations/hapi/index.js +86 -0
  109. package/build/cjs/integrations/hapi/index.js.map +1 -0
  110. package/build/cjs/integrations/index.js +64 -0
  111. package/build/cjs/integrations/index.js.map +1 -0
  112. package/build/cjs/integrations/kafkajs/consumer.js.map +1 -0
  113. package/build/cjs/integrations/kafkajs/index.js +83 -0
  114. package/build/cjs/integrations/kafkajs/index.js.map +1 -0
  115. package/build/cjs/integrations/kafkajs/semconv.js.map +1 -0
  116. package/build/cjs/integrations/kafkajs/spans.js +121 -0
  117. package/build/cjs/integrations/kafkajs/spans.js.map +1 -0
  118. package/build/cjs/integrations/knex.js +228 -0
  119. package/build/cjs/integrations/knex.js.map +1 -0
  120. package/build/cjs/integrations/koa/index.js +174 -0
  121. package/build/cjs/integrations/koa/index.js.map +1 -0
  122. package/build/cjs/integrations/koa/koa-error-handler.js +33 -0
  123. package/build/cjs/integrations/koa/koa-error-handler.js.map +1 -0
  124. package/build/cjs/integrations/langchain.js +81 -0
  125. package/build/cjs/integrations/langchain.js.map +1 -0
  126. package/build/cjs/integrations/langgraph.js +100 -0
  127. package/build/cjs/integrations/langgraph.js.map +1 -0
  128. package/build/cjs/integrations/lru-memoizer.js +42 -0
  129. package/build/cjs/integrations/lru-memoizer.js.map +1 -0
  130. package/build/cjs/integrations/mongodb/index.js +117 -0
  131. package/build/cjs/integrations/mongodb/index.js.map +1 -0
  132. package/build/cjs/integrations/mongodb/mongodb-span.js +134 -0
  133. package/build/cjs/integrations/mongodb/mongodb-span.js.map +1 -0
  134. package/build/cjs/integrations/mongoose/index.js +122 -0
  135. package/build/cjs/integrations/mongoose/index.js.map +1 -0
  136. package/build/cjs/integrations/mongoose/mongoose-dc-subscriber.js +101 -0
  137. package/build/cjs/integrations/mongoose/mongoose-dc-subscriber.js.map +1 -0
  138. package/build/cjs/integrations/mongoose/mongoose-legacy-span.js +41 -0
  139. package/build/cjs/integrations/mongoose/mongoose-legacy-span.js.map +1 -0
  140. package/build/cjs/integrations/mysql.js +120 -0
  141. package/build/cjs/integrations/mysql.js.map +1 -0
  142. package/build/cjs/integrations/mysql2/index.js +104 -0
  143. package/build/cjs/integrations/mysql2/index.js.map +1 -0
  144. package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js +74 -0
  145. package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -0
  146. package/build/cjs/integrations/openai.js +95 -0
  147. package/build/cjs/integrations/openai.js.map +1 -0
  148. package/build/cjs/integrations/postgres-js.js +212 -0
  149. package/build/cjs/integrations/postgres-js.js.map +1 -0
  150. package/build/cjs/integrations/postgres.js +185 -0
  151. package/build/cjs/integrations/postgres.js.map +1 -0
  152. package/build/cjs/integrations/prisma/global.js.map +1 -0
  153. package/build/cjs/integrations/prisma/index.js.map +1 -0
  154. package/build/cjs/integrations/prisma/tracing-helper.js +234 -0
  155. package/build/cjs/integrations/prisma/tracing-helper.js.map +1 -0
  156. package/build/cjs/integrations/redis/index.js +236 -0
  157. package/build/cjs/integrations/redis/index.js.map +1 -0
  158. package/build/cjs/integrations/redis/ioredis-channel-subscriber.js +106 -0
  159. package/build/cjs/integrations/redis/ioredis-channel-subscriber.js.map +1 -0
  160. package/build/cjs/integrations/redis/redis-cache.js +135 -0
  161. package/build/cjs/integrations/redis/redis-cache.js.map +1 -0
  162. package/build/cjs/integrations/redis/redis-dc-subscriber.js +105 -0
  163. package/build/cjs/integrations/redis/redis-dc-subscriber.js.map +1 -0
  164. package/build/cjs/integrations/redis/redis-span-name.js +32 -0
  165. package/build/cjs/integrations/redis/redis-span-name.js.map +1 -0
  166. package/build/cjs/integrations/redis/redis-statement-serializer.js.map +1 -0
  167. package/build/cjs/integrations/tedious.js +169 -0
  168. package/build/cjs/integrations/tedious.js.map +1 -0
  169. package/build/cjs/integrations/vercel-ai/index.js +45 -0
  170. package/build/cjs/integrations/vercel-ai/index.js.map +1 -0
  171. package/build/cjs/integrations/vercel-ai/util.js.map +1 -0
  172. package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js +441 -0
  173. package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -0
  174. package/build/cjs/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js +399 -0
  175. package/build/cjs/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -0
  176. package/build/cjs/opentelemetry.js +45 -0
  177. package/build/cjs/opentelemetry.js.map +1 -0
  178. package/build/cjs/orchestrion/bundler/bun.js +37 -0
  179. package/build/cjs/orchestrion/bundler/bun.js.map +1 -0
  180. package/build/cjs/orchestrion/bundler/esbuild.js +1 -1
  181. package/build/cjs/orchestrion/bundler/esbuild.js.map +1 -1
  182. package/build/cjs/orchestrion/bundler/moduleInjectedTransform.js +19 -7
  183. package/build/cjs/orchestrion/bundler/moduleInjectedTransform.js.map +1 -1
  184. package/build/cjs/orchestrion/bundler/options.js +2 -2
  185. package/build/cjs/orchestrion/bundler/options.js.map +1 -1
  186. package/build/cjs/orchestrion/bundler/resolve.js +6 -2
  187. package/build/cjs/orchestrion/bundler/resolve.js.map +1 -1
  188. package/build/cjs/orchestrion/bundler/rollup.js +23 -7
  189. package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
  190. package/build/cjs/orchestrion/bundler/vite.js +14 -8
  191. package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
  192. package/build/cjs/orchestrion/bundler/webpack-loader.js +2 -2
  193. package/build/cjs/orchestrion/bundler/webpack-loader.js.map +1 -1
  194. package/build/cjs/orchestrion/bundler/webpack.js +5 -6
  195. package/build/cjs/orchestrion/bundler/webpack.js.map +1 -1
  196. package/build/cjs/orchestrion/config/amqplib.js.map +1 -1
  197. package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -1
  198. package/build/cjs/orchestrion/config/channel-integration-definitions.js +23 -6
  199. package/build/cjs/orchestrion/config/channel-integration-definitions.js.map +1 -1
  200. package/build/cjs/orchestrion/config/dataloader.js.map +1 -1
  201. package/build/cjs/orchestrion/config/express.js.map +1 -1
  202. package/build/cjs/orchestrion/config/firebase.js.map +1 -1
  203. package/build/cjs/orchestrion/config/generic-pool.js.map +1 -1
  204. package/build/cjs/orchestrion/config/google-genai.js.map +1 -1
  205. package/build/cjs/orchestrion/config/graphql.js +9 -9
  206. package/build/cjs/orchestrion/config/graphql.js.map +1 -1
  207. package/build/cjs/orchestrion/config/hapi.js +19 -1
  208. package/build/cjs/orchestrion/config/hapi.js.map +1 -1
  209. package/build/cjs/orchestrion/config/index.js +2 -3
  210. package/build/cjs/orchestrion/config/index.js.map +1 -1
  211. package/build/cjs/orchestrion/config/ioredis.js +2 -0
  212. package/build/cjs/orchestrion/config/ioredis.js.map +1 -1
  213. package/build/cjs/orchestrion/config/kafkajs.js.map +1 -1
  214. package/build/cjs/orchestrion/config/knex.js.map +1 -1
  215. package/build/cjs/orchestrion/config/koa.js +13 -1
  216. package/build/cjs/orchestrion/config/koa.js.map +1 -1
  217. package/build/cjs/orchestrion/config/langchain.js.map +1 -1
  218. package/build/cjs/orchestrion/config/langgraph.js.map +1 -1
  219. package/build/cjs/orchestrion/config/lru-memoizer.js.map +1 -1
  220. package/build/cjs/orchestrion/config/mongodb.js.map +1 -1
  221. package/build/cjs/orchestrion/config/mongoose.js +2 -0
  222. package/build/cjs/orchestrion/config/mongoose.js.map +1 -1
  223. package/build/cjs/orchestrion/config/mysql.js.map +1 -1
  224. package/build/cjs/orchestrion/config/mysql2.js +2 -0
  225. package/build/cjs/orchestrion/config/mysql2.js.map +1 -1
  226. package/build/cjs/orchestrion/config/nestjs.js +4 -4
  227. package/build/cjs/orchestrion/config/nestjs.js.map +1 -1
  228. package/build/cjs/orchestrion/config/openai.js +4 -4
  229. package/build/cjs/orchestrion/config/openai.js.map +1 -1
  230. package/build/cjs/orchestrion/config/pg.js.map +1 -1
  231. package/build/cjs/orchestrion/config/postgres.js.map +1 -1
  232. package/build/cjs/orchestrion/config/redis.js +2 -0
  233. package/build/cjs/orchestrion/config/redis.js.map +1 -1
  234. package/build/cjs/orchestrion/config/registration-only.js +15 -0
  235. package/build/cjs/orchestrion/config/registration-only.js.map +1 -0
  236. package/build/cjs/orchestrion/config/remix.js.map +1 -1
  237. package/build/cjs/orchestrion/config/tedious.js.map +1 -1
  238. package/build/cjs/orchestrion/config/vercel-ai.js +4 -0
  239. package/build/cjs/orchestrion/config/vercel-ai.js.map +1 -1
  240. package/build/cjs/orchestrion/detect.js +4 -7
  241. package/build/cjs/orchestrion/detect.js.map +1 -1
  242. package/build/cjs/orchestrion/instrumentation.js +8 -8
  243. package/build/cjs/orchestrion/instrumentation.js.map +1 -1
  244. package/build/cjs/tracing-channel.js +1 -1
  245. package/build/cjs/tracing-channel.js.map +1 -1
  246. package/build/cjs/utils/moduleInjected.js +18 -0
  247. package/build/cjs/utils/moduleInjected.js.map +1 -0
  248. package/build/cjs/utils/setHttpServerSpanRouteAttribute.js +1 -1
  249. package/build/cjs/utils/setHttpServerSpanRouteAttribute.js.map +1 -1
  250. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js +65 -0
  251. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js.map +1 -0
  252. package/build/cjs/vendored/module-details-from-path/index.js +2 -3
  253. package/build/cjs/vendored/module-details-from-path/index.js.map +1 -1
  254. package/build/esm/ai/anthropic-ai/index.js +27 -56
  255. package/build/esm/ai/anthropic-ai/index.js.map +1 -1
  256. package/build/esm/ai/anthropic-ai/streaming.js +0 -6
  257. package/build/esm/ai/anthropic-ai/streaming.js.map +1 -1
  258. package/build/esm/ai/anthropic-ai/utils.js +4 -3
  259. package/build/esm/ai/anthropic-ai/utils.js.map +1 -1
  260. package/build/esm/ai/core/gen-ai-attributes.js +1 -4
  261. package/build/esm/ai/core/gen-ai-attributes.js.map +1 -1
  262. package/build/esm/ai/core/utils.js +8 -18
  263. package/build/esm/ai/core/utils.js.map +1 -1
  264. package/build/esm/ai/google-genai/index.js +24 -21
  265. package/build/esm/ai/google-genai/index.js.map +1 -1
  266. package/build/esm/ai/langchain/embeddings.js +9 -12
  267. package/build/esm/ai/langchain/embeddings.js.map +1 -1
  268. package/build/esm/ai/langchain/index.js +29 -40
  269. package/build/esm/ai/langchain/index.js.map +1 -1
  270. package/build/esm/ai/langgraph/index.js +4 -11
  271. package/build/esm/ai/langgraph/index.js.map +1 -1
  272. package/build/esm/ai/langgraph/utils.js +5 -11
  273. package/build/esm/ai/langgraph/utils.js.map +1 -1
  274. package/build/esm/ai/openai/index.js +10 -27
  275. package/build/esm/ai/openai/index.js.map +1 -1
  276. package/build/esm/ai/vercel-ai/index.js +2 -281
  277. package/build/esm/ai/vercel-ai/index.js.map +1 -1
  278. package/build/esm/ai/workers-ai/index.js +11 -6
  279. package/build/esm/ai/workers-ai/index.js.map +1 -1
  280. package/build/esm/ai/workers-ai/utils.js +7 -2
  281. package/build/esm/ai/workers-ai/utils.js.map +1 -1
  282. package/build/esm/index.js +39 -12
  283. package/build/esm/index.js.map +1 -1
  284. package/build/esm/index.no-diagnostic-channels.js +1 -2
  285. package/build/esm/index.no-diagnostic-channels.js.map +1 -1
  286. package/build/esm/integrations/amqplib.js +386 -0
  287. package/build/esm/integrations/amqplib.js.map +1 -0
  288. package/build/esm/integrations/anthropic.js +98 -0
  289. package/build/esm/integrations/anthropic.js.map +1 -0
  290. package/build/esm/integrations/aws-sdk/constants.js.map +1 -0
  291. package/build/esm/integrations/aws-sdk/index.js +139 -0
  292. package/build/esm/integrations/aws-sdk/index.js.map +1 -0
  293. package/build/esm/integrations/aws-sdk/services/MessageAttributes.js +41 -0
  294. package/build/esm/integrations/aws-sdk/services/MessageAttributes.js.map +1 -0
  295. package/build/esm/integrations/aws-sdk/services/ServicesExtensions.js.map +1 -0
  296. package/build/esm/integrations/aws-sdk/services/bedrock-runtime.js +422 -0
  297. package/build/esm/integrations/aws-sdk/services/bedrock-runtime.js.map +1 -0
  298. package/build/esm/integrations/aws-sdk/services/dynamodb.js +128 -0
  299. package/build/esm/integrations/aws-sdk/services/dynamodb.js.map +1 -0
  300. package/build/esm/integrations/aws-sdk/services/kinesis.js.map +1 -0
  301. package/build/esm/integrations/aws-sdk/services/lambda.js +61 -0
  302. package/build/esm/integrations/aws-sdk/services/lambda.js.map +1 -0
  303. package/build/esm/integrations/aws-sdk/services/s3.js.map +1 -0
  304. package/build/esm/integrations/aws-sdk/services/secretsmanager.js.map +1 -0
  305. package/build/esm/integrations/aws-sdk/services/sns.js +77 -0
  306. package/build/esm/integrations/aws-sdk/services/sns.js.map +1 -0
  307. package/build/esm/integrations/aws-sdk/services/sqs.js +133 -0
  308. package/build/esm/integrations/aws-sdk/services/sqs.js.map +1 -0
  309. package/build/esm/integrations/aws-sdk/services/stepfunctions.js.map +1 -0
  310. package/build/esm/integrations/aws-sdk/utils.js.map +1 -0
  311. package/build/esm/integrations/dataloader.js +119 -0
  312. package/build/esm/integrations/dataloader.js.map +1 -0
  313. package/build/esm/integrations/express/error-handled.js +14 -0
  314. package/build/esm/integrations/express/error-handled.js.map +1 -0
  315. package/build/esm/integrations/express/error-handler.js +40 -0
  316. package/build/esm/integrations/express/error-handler.js.map +1 -0
  317. package/build/esm/integrations/express/index.js +22 -0
  318. package/build/esm/integrations/express/index.js.map +1 -0
  319. package/build/esm/integrations/express/instrumentation.js +197 -0
  320. package/build/esm/integrations/express/instrumentation.js.map +1 -0
  321. package/build/esm/integrations/express/route.js.map +1 -0
  322. package/build/esm/integrations/express/utils.js +10 -0
  323. package/build/esm/integrations/express/utils.js.map +1 -0
  324. package/build/esm/integrations/fastify/errors.js +33 -0
  325. package/build/esm/integrations/fastify/errors.js.map +1 -0
  326. package/build/esm/integrations/fastify/index.js +25 -0
  327. package/build/esm/integrations/fastify/index.js.map +1 -0
  328. package/build/esm/integrations/fastify/instrumentation.js +250 -0
  329. package/build/esm/integrations/fastify/instrumentation.js.map +1 -0
  330. package/build/esm/integrations/fastify/utils.js.map +1 -0
  331. package/build/esm/integrations/firebase/firestore.js +76 -0
  332. package/build/esm/integrations/firebase/firestore.js.map +1 -0
  333. package/build/esm/integrations/firebase/functions.js +67 -0
  334. package/build/esm/integrations/firebase/functions.js.map +1 -0
  335. package/build/esm/integrations/firebase/index.js +18 -0
  336. package/build/esm/integrations/firebase/index.js.map +1 -0
  337. package/build/esm/integrations/firebase/instrumentation.js +54 -0
  338. package/build/esm/integrations/firebase/instrumentation.js.map +1 -0
  339. package/build/esm/integrations/generic-pool.js +34 -0
  340. package/build/esm/integrations/generic-pool.js.map +1 -0
  341. package/build/esm/integrations/google-genai.js +97 -0
  342. package/build/esm/integrations/google-genai.js.map +1 -0
  343. package/build/esm/integrations/graphql/constants.js +20 -0
  344. package/build/esm/integrations/graphql/constants.js.map +1 -0
  345. package/build/esm/integrations/graphql/graphql-dc-subscriber.js +115 -0
  346. package/build/esm/integrations/graphql/graphql-dc-subscriber.js.map +1 -0
  347. package/build/esm/integrations/graphql/index.js +58 -0
  348. package/build/esm/integrations/graphql/index.js.map +1 -0
  349. package/build/esm/integrations/graphql/resolvers.js +170 -0
  350. package/build/esm/integrations/graphql/resolvers.js.map +1 -0
  351. package/build/esm/integrations/graphql/spans.js +108 -0
  352. package/build/esm/integrations/graphql/spans.js.map +1 -0
  353. package/build/esm/integrations/graphql/utils.js +93 -0
  354. package/build/esm/integrations/graphql/utils.js.map +1 -0
  355. package/build/esm/integrations/hapi/hapi-error-handler.js +44 -0
  356. package/build/esm/integrations/hapi/hapi-error-handler.js.map +1 -0
  357. package/build/esm/integrations/hapi/hapi-types.js.map +1 -0
  358. package/build/esm/integrations/hapi/hapi-utils.js +191 -0
  359. package/build/esm/integrations/hapi/hapi-utils.js.map +1 -0
  360. package/build/esm/integrations/hapi/index.js +71 -0
  361. package/build/esm/integrations/hapi/index.js.map +1 -0
  362. package/build/esm/integrations/index.js +61 -0
  363. package/build/esm/integrations/index.js.map +1 -0
  364. package/build/esm/integrations/kafkajs/consumer.js.map +1 -0
  365. package/build/esm/integrations/kafkajs/index.js +68 -0
  366. package/build/esm/integrations/kafkajs/index.js.map +1 -0
  367. package/build/esm/integrations/kafkajs/semconv.js.map +1 -0
  368. package/build/esm/integrations/kafkajs/spans.js +114 -0
  369. package/build/esm/integrations/kafkajs/spans.js.map +1 -0
  370. package/build/esm/integrations/knex.js +213 -0
  371. package/build/esm/integrations/knex.js.map +1 -0
  372. package/build/esm/integrations/koa/index.js +159 -0
  373. package/build/esm/integrations/koa/index.js.map +1 -0
  374. package/build/esm/integrations/koa/koa-error-handler.js +30 -0
  375. package/build/esm/integrations/koa/koa-error-handler.js.map +1 -0
  376. package/build/esm/integrations/langchain.js +66 -0
  377. package/build/esm/integrations/langchain.js.map +1 -0
  378. package/build/esm/integrations/langgraph.js +85 -0
  379. package/build/esm/integrations/langgraph.js.map +1 -0
  380. package/build/esm/integrations/lru-memoizer.js +27 -0
  381. package/build/esm/integrations/lru-memoizer.js.map +1 -0
  382. package/build/esm/integrations/mongodb/index.js +102 -0
  383. package/build/esm/integrations/mongodb/index.js.map +1 -0
  384. package/build/esm/integrations/mongodb/mongodb-span.js +127 -0
  385. package/build/esm/integrations/mongodb/mongodb-span.js.map +1 -0
  386. package/build/esm/integrations/mongoose/index.js +107 -0
  387. package/build/esm/integrations/mongoose/index.js.map +1 -0
  388. package/build/esm/integrations/mongoose/mongoose-dc-subscriber.js +93 -0
  389. package/build/esm/integrations/mongoose/mongoose-dc-subscriber.js.map +1 -0
  390. package/build/esm/integrations/mongoose/mongoose-legacy-span.js +39 -0
  391. package/build/esm/integrations/mongoose/mongoose-legacy-span.js.map +1 -0
  392. package/build/esm/integrations/mysql.js +105 -0
  393. package/build/esm/integrations/mysql.js.map +1 -0
  394. package/build/esm/integrations/mysql2/index.js +89 -0
  395. package/build/esm/integrations/mysql2/index.js.map +1 -0
  396. package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js +68 -0
  397. package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -0
  398. package/build/esm/integrations/openai.js +80 -0
  399. package/build/esm/integrations/openai.js.map +1 -0
  400. package/build/esm/integrations/postgres-js.js +197 -0
  401. package/build/esm/integrations/postgres-js.js.map +1 -0
  402. package/build/esm/integrations/postgres.js +170 -0
  403. package/build/esm/integrations/postgres.js.map +1 -0
  404. package/build/esm/integrations/prisma/global.js.map +1 -0
  405. package/build/esm/integrations/prisma/index.js.map +1 -0
  406. package/build/esm/integrations/prisma/tracing-helper.js +232 -0
  407. package/build/esm/integrations/prisma/tracing-helper.js.map +1 -0
  408. package/build/esm/integrations/redis/index.js +221 -0
  409. package/build/esm/integrations/redis/index.js.map +1 -0
  410. package/build/esm/integrations/redis/ioredis-channel-subscriber.js +90 -0
  411. package/build/esm/integrations/redis/ioredis-channel-subscriber.js.map +1 -0
  412. package/build/esm/integrations/redis/redis-cache.js +125 -0
  413. package/build/esm/integrations/redis/redis-cache.js.map +1 -0
  414. package/build/esm/integrations/redis/redis-dc-subscriber.js +98 -0
  415. package/build/esm/integrations/redis/redis-dc-subscriber.js.map +1 -0
  416. package/build/esm/integrations/redis/redis-span-name.js +30 -0
  417. package/build/esm/integrations/redis/redis-span-name.js.map +1 -0
  418. package/build/esm/integrations/redis/redis-statement-serializer.js.map +1 -0
  419. package/build/esm/integrations/tedious.js +154 -0
  420. package/build/esm/integrations/tedious.js.map +1 -0
  421. package/build/esm/integrations/vercel-ai/index.js +30 -0
  422. package/build/esm/integrations/vercel-ai/index.js.map +1 -0
  423. package/build/esm/integrations/vercel-ai/util.js.map +1 -0
  424. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +433 -0
  425. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -0
  426. package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js +397 -0
  427. package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -0
  428. package/build/esm/opentelemetry.js +42 -0
  429. package/build/esm/opentelemetry.js.map +1 -0
  430. package/build/esm/orchestrion/bundler/bun.js +35 -0
  431. package/build/esm/orchestrion/bundler/bun.js.map +1 -0
  432. package/build/esm/orchestrion/bundler/esbuild.js +2 -2
  433. package/build/esm/orchestrion/bundler/esbuild.js.map +1 -1
  434. package/build/esm/orchestrion/bundler/moduleInjectedTransform.js +19 -7
  435. package/build/esm/orchestrion/bundler/moduleInjectedTransform.js.map +1 -1
  436. package/build/esm/orchestrion/bundler/options.js +2 -2
  437. package/build/esm/orchestrion/bundler/options.js.map +1 -1
  438. package/build/esm/orchestrion/bundler/resolve.js +3 -1
  439. package/build/esm/orchestrion/bundler/resolve.js.map +1 -1
  440. package/build/esm/orchestrion/bundler/rollup.js +25 -9
  441. package/build/esm/orchestrion/bundler/rollup.js.map +1 -1
  442. package/build/esm/orchestrion/bundler/vite.js +15 -9
  443. package/build/esm/orchestrion/bundler/vite.js.map +1 -1
  444. package/build/esm/orchestrion/bundler/webpack-loader.js.map +1 -1
  445. package/build/esm/orchestrion/bundler/webpack.js +6 -7
  446. package/build/esm/orchestrion/bundler/webpack.js.map +1 -1
  447. package/build/esm/orchestrion/config/amqplib.js.map +1 -1
  448. package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
  449. package/build/esm/orchestrion/config/channel-integration-definitions.js +23 -6
  450. package/build/esm/orchestrion/config/channel-integration-definitions.js.map +1 -1
  451. package/build/esm/orchestrion/config/dataloader.js.map +1 -1
  452. package/build/esm/orchestrion/config/express.js.map +1 -1
  453. package/build/esm/orchestrion/config/firebase.js.map +1 -1
  454. package/build/esm/orchestrion/config/generic-pool.js.map +1 -1
  455. package/build/esm/orchestrion/config/google-genai.js.map +1 -1
  456. package/build/esm/orchestrion/config/graphql.js +9 -9
  457. package/build/esm/orchestrion/config/graphql.js.map +1 -1
  458. package/build/esm/orchestrion/config/hapi.js +19 -1
  459. package/build/esm/orchestrion/config/hapi.js.map +1 -1
  460. package/build/esm/orchestrion/config/index.js +2 -1
  461. package/build/esm/orchestrion/config/index.js.map +1 -1
  462. package/build/esm/orchestrion/config/ioredis.js +2 -0
  463. package/build/esm/orchestrion/config/ioredis.js.map +1 -1
  464. package/build/esm/orchestrion/config/kafkajs.js.map +1 -1
  465. package/build/esm/orchestrion/config/knex.js.map +1 -1
  466. package/build/esm/orchestrion/config/koa.js +13 -1
  467. package/build/esm/orchestrion/config/koa.js.map +1 -1
  468. package/build/esm/orchestrion/config/langchain.js.map +1 -1
  469. package/build/esm/orchestrion/config/langgraph.js.map +1 -1
  470. package/build/esm/orchestrion/config/lru-memoizer.js.map +1 -1
  471. package/build/esm/orchestrion/config/mongodb.js.map +1 -1
  472. package/build/esm/orchestrion/config/mongoose.js +2 -0
  473. package/build/esm/orchestrion/config/mongoose.js.map +1 -1
  474. package/build/esm/orchestrion/config/mysql.js.map +1 -1
  475. package/build/esm/orchestrion/config/mysql2.js +2 -0
  476. package/build/esm/orchestrion/config/mysql2.js.map +1 -1
  477. package/build/esm/orchestrion/config/nestjs.js +4 -4
  478. package/build/esm/orchestrion/config/nestjs.js.map +1 -1
  479. package/build/esm/orchestrion/config/openai.js +4 -4
  480. package/build/esm/orchestrion/config/openai.js.map +1 -1
  481. package/build/esm/orchestrion/config/pg.js.map +1 -1
  482. package/build/esm/orchestrion/config/postgres.js.map +1 -1
  483. package/build/esm/orchestrion/config/redis.js +2 -0
  484. package/build/esm/orchestrion/config/redis.js.map +1 -1
  485. package/build/esm/orchestrion/config/registration-only.js +12 -0
  486. package/build/esm/orchestrion/config/registration-only.js.map +1 -0
  487. package/build/esm/orchestrion/config/remix.js.map +1 -1
  488. package/build/esm/orchestrion/config/tedious.js.map +1 -1
  489. package/build/esm/orchestrion/config/vercel-ai.js +4 -0
  490. package/build/esm/orchestrion/config/vercel-ai.js.map +1 -1
  491. package/build/esm/orchestrion/detect.js +5 -7
  492. package/build/esm/orchestrion/detect.js.map +1 -1
  493. package/build/esm/orchestrion/instrumentation.js +8 -8
  494. package/build/esm/orchestrion/instrumentation.js.map +1 -1
  495. package/build/esm/package.json +1 -1
  496. package/build/esm/tracing-channel.js +1 -1
  497. package/build/esm/tracing-channel.js.map +1 -1
  498. package/build/esm/utils/moduleInjected.js +16 -0
  499. package/build/esm/utils/moduleInjected.js.map +1 -0
  500. package/build/esm/utils/setHttpServerSpanRouteAttribute.js +3 -3
  501. package/build/esm/utils/setHttpServerSpanRouteAttribute.js.map +1 -1
  502. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js +63 -0
  503. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js.map +1 -0
  504. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js +2 -2
  505. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js.map +1 -1
  506. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js +2 -2
  507. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +1 -1
  508. package/build/esm/vendored/module-details-from-path/index.js +2 -2
  509. package/build/types/ai/anthropic-ai/index.d.ts.map +1 -1
  510. package/build/types/ai/anthropic-ai/streaming.d.ts.map +1 -1
  511. package/build/types/ai/anthropic-ai/utils.d.ts.map +1 -1
  512. package/build/types/ai/core/gen-ai-attributes.d.ts +0 -12
  513. package/build/types/ai/core/gen-ai-attributes.d.ts.map +1 -1
  514. package/build/types/ai/core/utils.d.ts +1 -1
  515. package/build/types/ai/core/utils.d.ts.map +1 -1
  516. package/build/types/ai/google-genai/index.d.ts +14 -0
  517. package/build/types/ai/google-genai/index.d.ts.map +1 -1
  518. package/build/types/ai/index.d.ts +0 -1
  519. package/build/types/ai/index.d.ts.map +1 -1
  520. package/build/types/ai/langchain/embeddings.d.ts +0 -1
  521. package/build/types/ai/langchain/embeddings.d.ts.map +1 -1
  522. package/build/types/ai/langchain/index.d.ts.map +1 -1
  523. package/build/types/ai/langgraph/index.d.ts.map +1 -1
  524. package/build/types/ai/langgraph/utils.d.ts.map +1 -1
  525. package/build/types/ai/openai/index.d.ts.map +1 -1
  526. package/build/types/ai/vercel-ai/index.d.ts +2 -17
  527. package/build/types/ai/vercel-ai/index.d.ts.map +1 -1
  528. package/build/types/ai/vercel-ai/vercel-ai-attributes.d.ts +1 -207
  529. package/build/types/ai/vercel-ai/vercel-ai-attributes.d.ts.map +1 -1
  530. package/build/types/ai/workers-ai/index.d.ts.map +1 -1
  531. package/build/types/ai/workers-ai/utils.d.ts +3 -1
  532. package/build/types/ai/workers-ai/utils.d.ts.map +1 -1
  533. package/build/types/exports.d.ts +1 -1
  534. package/build/types/exports.d.ts.map +1 -1
  535. package/build/types/index.d.ts +41 -16
  536. package/build/types/index.d.ts.map +1 -1
  537. package/build/types/integrations/amqplib.d.ts +20 -0
  538. package/build/types/integrations/amqplib.d.ts.map +1 -0
  539. package/build/types/integrations/anthropic.d.ts +9 -0
  540. package/build/types/integrations/anthropic.d.ts.map +1 -0
  541. package/build/types/integrations/aws-sdk/aws-sdk.types.d.ts.map +1 -0
  542. package/build/types/integrations/aws-sdk/constants.d.ts +16 -0
  543. package/build/types/integrations/aws-sdk/constants.d.ts.map +1 -0
  544. package/build/types/integrations/aws-sdk/index.d.ts +12 -0
  545. package/build/types/integrations/aws-sdk/index.d.ts.map +1 -0
  546. package/build/types/integrations/aws-sdk/services/MessageAttributes.d.ts.map +1 -0
  547. package/build/types/integrations/aws-sdk/services/ServiceExtension.d.ts.map +1 -0
  548. package/build/types/integrations/aws-sdk/services/ServicesExtensions.d.ts.map +1 -0
  549. package/build/types/integrations/aws-sdk/services/bedrock-runtime.d.ts.map +1 -0
  550. package/build/types/integrations/aws-sdk/services/dynamodb.d.ts.map +1 -0
  551. package/build/types/integrations/aws-sdk/services/index.d.ts.map +1 -0
  552. package/build/types/integrations/aws-sdk/services/kinesis.d.ts.map +1 -0
  553. package/build/types/integrations/aws-sdk/services/lambda.d.ts.map +1 -0
  554. package/build/types/integrations/aws-sdk/services/s3.d.ts.map +1 -0
  555. package/build/types/integrations/aws-sdk/services/secretsmanager.d.ts.map +1 -0
  556. package/build/types/integrations/aws-sdk/services/sns.d.ts.map +1 -0
  557. package/build/types/integrations/aws-sdk/services/sqs.d.ts.map +1 -0
  558. package/build/types/integrations/aws-sdk/services/stepfunctions.d.ts.map +1 -0
  559. package/build/types/integrations/aws-sdk/types.d.ts.map +1 -0
  560. package/build/types/integrations/aws-sdk/utils.d.ts.map +1 -0
  561. package/build/types/integrations/dataloader.d.ts +11 -0
  562. package/build/types/integrations/dataloader.d.ts.map +1 -0
  563. package/build/types/integrations/express/error-handled.d.ts +10 -0
  564. package/build/types/integrations/express/error-handled.d.ts.map +1 -0
  565. package/build/types/integrations/express/error-handler.d.ts +25 -0
  566. package/build/types/integrations/express/error-handler.d.ts.map +1 -0
  567. package/build/types/integrations/express/index.d.ts +17 -0
  568. package/build/types/integrations/express/index.d.ts.map +1 -0
  569. package/build/types/integrations/express/instrumentation.d.ts +23 -0
  570. package/build/types/integrations/express/instrumentation.d.ts.map +1 -0
  571. package/build/types/integrations/express/route.d.ts.map +1 -0
  572. package/build/types/integrations/express/types.d.ts +107 -0
  573. package/build/types/integrations/express/types.d.ts.map +1 -0
  574. package/build/types/integrations/express/utils.d.ts +8 -0
  575. package/build/types/integrations/express/utils.d.ts.map +1 -0
  576. package/build/types/integrations/fastify/errors.d.ts +17 -0
  577. package/build/types/integrations/fastify/errors.d.ts.map +1 -0
  578. package/build/types/integrations/fastify/index.d.ts +57 -0
  579. package/build/types/integrations/fastify/index.d.ts.map +1 -0
  580. package/build/types/integrations/fastify/instrumentation.d.ts +6 -0
  581. package/build/types/integrations/fastify/instrumentation.d.ts.map +1 -0
  582. package/build/types/integrations/fastify/types.d.ts +31 -0
  583. package/build/types/integrations/fastify/types.d.ts.map +1 -0
  584. package/build/types/integrations/fastify/utils.d.ts.map +1 -0
  585. package/build/types/integrations/firebase/firestore-types.d.ts.map +1 -0
  586. package/build/types/integrations/firebase/firestore.d.ts.map +1 -0
  587. package/build/types/integrations/firebase/functions.d.ts.map +1 -0
  588. package/build/types/integrations/firebase/index.d.ts +12 -0
  589. package/build/types/integrations/firebase/index.d.ts.map +1 -0
  590. package/build/types/integrations/firebase/instrumentation.d.ts.map +1 -0
  591. package/build/types/integrations/generic-pool.d.ts +10 -0
  592. package/build/types/integrations/generic-pool.d.ts.map +1 -0
  593. package/build/types/integrations/google-genai.d.ts +11 -0
  594. package/build/types/integrations/google-genai.d.ts.map +1 -0
  595. package/build/types/integrations/graphql/constants.d.ts +18 -0
  596. package/build/types/integrations/graphql/constants.d.ts.map +1 -0
  597. package/build/types/integrations/graphql/graphql-dc-subscriber.d.ts +98 -0
  598. package/build/types/integrations/graphql/graphql-dc-subscriber.d.ts.map +1 -0
  599. package/build/types/integrations/graphql/graphql-types.d.ts.map +1 -0
  600. package/build/types/integrations/graphql/index.d.ts +9 -0
  601. package/build/types/integrations/graphql/index.d.ts.map +1 -0
  602. package/build/types/integrations/graphql/resolvers.d.ts.map +1 -0
  603. package/build/types/integrations/graphql/spans.d.ts.map +1 -0
  604. package/build/types/integrations/graphql/types.d.ts +41 -0
  605. package/build/types/integrations/graphql/types.d.ts.map +1 -0
  606. package/build/types/integrations/graphql/utils.d.ts +19 -0
  607. package/build/types/integrations/graphql/utils.d.ts.map +1 -0
  608. package/build/types/integrations/hapi/hapi-error-handler.d.ts +21 -0
  609. package/build/types/integrations/hapi/hapi-error-handler.d.ts.map +1 -0
  610. package/build/types/integrations/hapi/hapi-types.d.ts +99 -0
  611. package/build/types/integrations/hapi/hapi-types.d.ts.map +1 -0
  612. package/build/types/integrations/hapi/hapi-utils.d.ts +34 -0
  613. package/build/types/integrations/hapi/hapi-utils.d.ts.map +1 -0
  614. package/build/types/integrations/hapi/index.d.ts +35 -0
  615. package/build/types/integrations/hapi/index.d.ts.map +1 -0
  616. package/build/types/integrations/index.d.ts +6 -0
  617. package/build/types/integrations/index.d.ts.map +1 -0
  618. package/build/types/integrations/kafkajs/consumer.d.ts.map +1 -0
  619. package/build/types/integrations/kafkajs/index.d.ts +16 -0
  620. package/build/types/integrations/kafkajs/index.d.ts.map +1 -0
  621. package/build/types/integrations/kafkajs/semconv.d.ts.map +1 -0
  622. package/build/types/integrations/kafkajs/spans.d.ts +38 -0
  623. package/build/types/integrations/kafkajs/spans.d.ts.map +1 -0
  624. package/build/types/integrations/kafkajs/types.d.ts.map +1 -0
  625. package/build/types/integrations/knex.d.ts +11 -0
  626. package/build/types/integrations/knex.d.ts.map +1 -0
  627. package/build/types/integrations/koa/index.d.ts +14 -0
  628. package/build/types/integrations/koa/index.d.ts.map +1 -0
  629. package/build/types/integrations/koa/koa-error-handler.d.ts +33 -0
  630. package/build/types/integrations/koa/koa-error-handler.d.ts.map +1 -0
  631. package/build/types/integrations/langchain.d.ts +9 -0
  632. package/build/types/integrations/langchain.d.ts.map +1 -0
  633. package/build/types/integrations/langgraph.d.ts +9 -0
  634. package/build/types/integrations/langgraph.d.ts.map +1 -0
  635. package/build/types/integrations/lru-memoizer.d.ts +10 -0
  636. package/build/types/integrations/lru-memoizer.d.ts.map +1 -0
  637. package/build/types/integrations/mongodb/index.d.ts +12 -0
  638. package/build/types/integrations/mongodb/index.d.ts.map +1 -0
  639. package/build/types/integrations/mongodb/mongodb-span.d.ts +65 -0
  640. package/build/types/integrations/mongodb/mongodb-span.d.ts.map +1 -0
  641. package/build/types/integrations/mongoose/index.d.ts +15 -0
  642. package/build/types/integrations/mongoose/index.d.ts.map +1 -0
  643. package/build/types/integrations/mongoose/mongoose-dc-subscriber.d.ts.map +1 -0
  644. package/build/types/integrations/mongoose/mongoose-legacy-span.d.ts +30 -0
  645. package/build/types/integrations/mongoose/mongoose-legacy-span.d.ts.map +1 -0
  646. package/build/types/integrations/mysql.d.ts +12 -0
  647. package/build/types/integrations/mysql.d.ts.map +1 -0
  648. package/build/types/integrations/mysql2/index.d.ts +17 -0
  649. package/build/types/integrations/mysql2/index.d.ts.map +1 -0
  650. package/build/types/integrations/mysql2/mysql2-dc-subscriber.d.ts.map +1 -0
  651. package/build/types/integrations/openai.d.ts +9 -0
  652. package/build/types/integrations/openai.d.ts.map +1 -0
  653. package/build/types/integrations/postgres-js.d.ts +27 -0
  654. package/build/types/integrations/postgres-js.d.ts.map +1 -0
  655. package/build/types/integrations/postgres.d.ts +15 -0
  656. package/build/types/integrations/postgres.d.ts.map +1 -0
  657. package/build/types/integrations/prisma/global.d.ts.map +1 -0
  658. package/build/types/integrations/prisma/index.d.ts.map +1 -0
  659. package/build/types/integrations/prisma/tracing-helper.d.ts.map +1 -0
  660. package/build/types/integrations/prisma/types.d.ts.map +1 -0
  661. package/build/types/integrations/redis/index.d.ts +25 -0
  662. package/build/types/integrations/redis/index.d.ts.map +1 -0
  663. package/build/types/integrations/redis/ioredis-channel-subscriber.d.ts +30 -0
  664. package/build/types/integrations/redis/ioredis-channel-subscriber.d.ts.map +1 -0
  665. package/build/types/integrations/redis/redis-cache.d.ts +45 -0
  666. package/build/types/integrations/redis/redis-cache.d.ts.map +1 -0
  667. package/build/types/integrations/redis/redis-dc-subscriber.d.ts +81 -0
  668. package/build/types/integrations/redis/redis-dc-subscriber.d.ts.map +1 -0
  669. package/build/types/integrations/redis/redis-span-name.d.ts +24 -0
  670. package/build/types/integrations/redis/redis-span-name.d.ts.map +1 -0
  671. package/build/types/integrations/redis/redis-statement-serializer.d.ts.map +1 -0
  672. package/build/types/integrations/tedious.d.ts +11 -0
  673. package/build/types/integrations/tedious.d.ts.map +1 -0
  674. package/build/types/integrations/vercel-ai/index.d.ts +12 -0
  675. package/build/types/integrations/vercel-ai/index.d.ts.map +1 -0
  676. package/build/types/integrations/vercel-ai/util.d.ts.map +1 -0
  677. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts +69 -0
  678. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -0
  679. package/build/types/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts.map +1 -0
  680. package/build/types/opentelemetry.d.ts +49 -0
  681. package/build/types/opentelemetry.d.ts.map +1 -0
  682. package/build/types/orchestrion/bundler/bun.d.ts +21 -0
  683. package/build/types/orchestrion/bundler/bun.d.ts.map +1 -0
  684. package/build/types/orchestrion/bundler/esbuild.d.ts +1 -0
  685. package/build/types/orchestrion/bundler/esbuild.d.ts.map +1 -1
  686. package/build/types/orchestrion/bundler/moduleInjectedTransform.d.ts +8 -4
  687. package/build/types/orchestrion/bundler/moduleInjectedTransform.d.ts.map +1 -1
  688. package/build/types/orchestrion/bundler/options.d.ts +10 -4
  689. package/build/types/orchestrion/bundler/options.d.ts.map +1 -1
  690. package/build/types/orchestrion/bundler/resolve.d.ts +11 -0
  691. package/build/types/orchestrion/bundler/resolve.d.ts.map +1 -1
  692. package/build/types/orchestrion/bundler/rollup.d.ts +1 -0
  693. package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -1
  694. package/build/types/orchestrion/bundler/vite.d.ts +1 -0
  695. package/build/types/orchestrion/bundler/vite.d.ts.map +1 -1
  696. package/build/types/orchestrion/bundler/webpack-loader.d.ts +7 -7
  697. package/build/types/orchestrion/bundler/webpack.d.ts +1 -1
  698. package/build/types/orchestrion/bundler/webpack.d.ts.map +1 -1
  699. package/build/types/orchestrion/channels.d.ts +3 -0
  700. package/build/types/orchestrion/channels.d.ts.map +1 -1
  701. package/build/types/orchestrion/config/amqplib.d.ts.map +1 -1
  702. package/build/types/orchestrion/config/anthropic-ai.d.ts.map +1 -1
  703. package/build/types/orchestrion/config/channel-integration-definitions.d.ts +40 -22
  704. package/build/types/orchestrion/config/channel-integration-definitions.d.ts.map +1 -1
  705. package/build/types/orchestrion/config/express.d.ts.map +1 -1
  706. package/build/types/orchestrion/config/firebase.d.ts.map +1 -1
  707. package/build/types/orchestrion/config/generic-pool.d.ts.map +1 -1
  708. package/build/types/orchestrion/config/google-genai.d.ts.map +1 -1
  709. package/build/types/orchestrion/config/graphql.d.ts +2 -2
  710. package/build/types/orchestrion/config/graphql.d.ts.map +1 -1
  711. package/build/types/orchestrion/config/hapi.d.ts +2 -0
  712. package/build/types/orchestrion/config/hapi.d.ts.map +1 -1
  713. package/build/types/orchestrion/config/index.d.ts +9 -2
  714. package/build/types/orchestrion/config/index.d.ts.map +1 -1
  715. package/build/types/orchestrion/config/ioredis.d.ts +1 -1
  716. package/build/types/orchestrion/config/ioredis.d.ts.map +1 -1
  717. package/build/types/orchestrion/config/kafkajs.d.ts.map +1 -1
  718. package/build/types/orchestrion/config/knex.d.ts +1 -1
  719. package/build/types/orchestrion/config/knex.d.ts.map +1 -1
  720. package/build/types/orchestrion/config/koa.d.ts +1 -0
  721. package/build/types/orchestrion/config/koa.d.ts.map +1 -1
  722. package/build/types/orchestrion/config/langchain.d.ts.map +1 -1
  723. package/build/types/orchestrion/config/langgraph.d.ts.map +1 -1
  724. package/build/types/orchestrion/config/lru-memoizer.d.ts.map +1 -1
  725. package/build/types/orchestrion/config/mongodb.d.ts.map +1 -1
  726. package/build/types/orchestrion/config/mongoose.d.ts +2 -23
  727. package/build/types/orchestrion/config/mongoose.d.ts.map +1 -1
  728. package/build/types/orchestrion/config/mysql.d.ts.map +1 -1
  729. package/build/types/orchestrion/config/mysql2.d.ts +2 -13
  730. package/build/types/orchestrion/config/mysql2.d.ts.map +1 -1
  731. package/build/types/orchestrion/config/nestjs.d.ts +1 -1
  732. package/build/types/orchestrion/config/nestjs.d.ts.map +1 -1
  733. package/build/types/orchestrion/config/openai.d.ts.map +1 -1
  734. package/build/types/orchestrion/config/pg.d.ts +1 -1
  735. package/build/types/orchestrion/config/pg.d.ts.map +1 -1
  736. package/build/types/orchestrion/config/postgres.d.ts +1 -1
  737. package/build/types/orchestrion/config/postgres.d.ts.map +1 -1
  738. package/build/types/orchestrion/config/redis.d.ts +2 -27
  739. package/build/types/orchestrion/config/redis.d.ts.map +1 -1
  740. package/build/types/orchestrion/config/registration-only.d.ts +22 -0
  741. package/build/types/orchestrion/config/registration-only.d.ts.map +1 -0
  742. package/build/types/orchestrion/config/remix.d.ts +1 -1
  743. package/build/types/orchestrion/config/remix.d.ts.map +1 -1
  744. package/build/types/orchestrion/config/tedious.d.ts +1 -1
  745. package/build/types/orchestrion/config/tedious.d.ts.map +1 -1
  746. package/build/types/orchestrion/config/vercel-ai.d.ts +1 -1
  747. package/build/types/orchestrion/config/vercel-ai.d.ts.map +1 -1
  748. package/build/types/orchestrion/detect.d.ts +5 -15
  749. package/build/types/orchestrion/detect.d.ts.map +1 -1
  750. package/build/types/utils/moduleInjected.d.ts +30 -0
  751. package/build/types/utils/moduleInjected.d.ts.map +1 -0
  752. package/build/types/utils/setHttpServerSpanRouteAttribute.d.ts.map +1 -1
  753. package/package.json +12 -26
  754. package/build/cjs/_virtual/node.js +0 -6
  755. package/build/cjs/_virtual/node.js.map +0 -1
  756. package/build/cjs/ai/vercel-ai/constants.js +0 -21
  757. package/build/cjs/ai/vercel-ai/constants.js.map +0 -1
  758. package/build/cjs/ai/vercel-ai/utils.js +0 -171
  759. package/build/cjs/ai/vercel-ai/utils.js.map +0 -1
  760. package/build/cjs/ai/vercel-ai/vercel-ai-attributes.js +0 -50
  761. package/build/cjs/ai/vercel-ai/vercel-ai-attributes.js.map +0 -1
  762. package/build/cjs/graphql/graphql-dc-subscriber.js +0 -123
  763. package/build/cjs/graphql/graphql-dc-subscriber.js.map +0 -1
  764. package/build/cjs/graphql/index.js +0 -36
  765. package/build/cjs/graphql/index.js.map +0 -1
  766. package/build/cjs/graphql/utils.js +0 -94
  767. package/build/cjs/graphql/utils.js.map +0 -1
  768. package/build/cjs/integrations/tracing-channel/amqplib.js +0 -431
  769. package/build/cjs/integrations/tracing-channel/amqplib.js.map +0 -1
  770. package/build/cjs/integrations/tracing-channel/anthropic.js +0 -111
  771. package/build/cjs/integrations/tracing-channel/anthropic.js.map +0 -1
  772. package/build/cjs/integrations/tracing-channel/aws-sdk/constants.js.map +0 -1
  773. package/build/cjs/integrations/tracing-channel/aws-sdk/index.js +0 -154
  774. package/build/cjs/integrations/tracing-channel/aws-sdk/index.js.map +0 -1
  775. package/build/cjs/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js +0 -46
  776. package/build/cjs/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js.map +0 -1
  777. package/build/cjs/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js.map +0 -1
  778. package/build/cjs/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js +0 -423
  779. package/build/cjs/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js.map +0 -1
  780. package/build/cjs/integrations/tracing-channel/aws-sdk/services/dynamodb.js +0 -129
  781. package/build/cjs/integrations/tracing-channel/aws-sdk/services/dynamodb.js.map +0 -1
  782. package/build/cjs/integrations/tracing-channel/aws-sdk/services/kinesis.js.map +0 -1
  783. package/build/cjs/integrations/tracing-channel/aws-sdk/services/lambda.js +0 -63
  784. package/build/cjs/integrations/tracing-channel/aws-sdk/services/lambda.js.map +0 -1
  785. package/build/cjs/integrations/tracing-channel/aws-sdk/services/s3.js.map +0 -1
  786. package/build/cjs/integrations/tracing-channel/aws-sdk/services/secretsmanager.js.map +0 -1
  787. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sns.js +0 -62
  788. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sns.js.map +0 -1
  789. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sqs.js +0 -116
  790. package/build/cjs/integrations/tracing-channel/aws-sdk/services/sqs.js.map +0 -1
  791. package/build/cjs/integrations/tracing-channel/aws-sdk/services/stepfunctions.js.map +0 -1
  792. package/build/cjs/integrations/tracing-channel/aws-sdk/utils.js.map +0 -1
  793. package/build/cjs/integrations/tracing-channel/dataloader.js +0 -126
  794. package/build/cjs/integrations/tracing-channel/dataloader.js.map +0 -1
  795. package/build/cjs/integrations/tracing-channel/express/index.js +0 -37
  796. package/build/cjs/integrations/tracing-channel/express/index.js.map +0 -1
  797. package/build/cjs/integrations/tracing-channel/express/instrumentation.js +0 -163
  798. package/build/cjs/integrations/tracing-channel/express/instrumentation.js.map +0 -1
  799. package/build/cjs/integrations/tracing-channel/express/route.js.map +0 -1
  800. package/build/cjs/integrations/tracing-channel/fastify/errors.js +0 -55
  801. package/build/cjs/integrations/tracing-channel/fastify/errors.js.map +0 -1
  802. package/build/cjs/integrations/tracing-channel/fastify/index.js +0 -32
  803. package/build/cjs/integrations/tracing-channel/fastify/index.js.map +0 -1
  804. package/build/cjs/integrations/tracing-channel/fastify/instrumentation.js +0 -294
  805. package/build/cjs/integrations/tracing-channel/fastify/instrumentation.js.map +0 -1
  806. package/build/cjs/integrations/tracing-channel/fastify/utils.js.map +0 -1
  807. package/build/cjs/integrations/tracing-channel/firebase/firestore.js +0 -91
  808. package/build/cjs/integrations/tracing-channel/firebase/firestore.js.map +0 -1
  809. package/build/cjs/integrations/tracing-channel/firebase/functions.js +0 -69
  810. package/build/cjs/integrations/tracing-channel/firebase/functions.js.map +0 -1
  811. package/build/cjs/integrations/tracing-channel/firebase/index.js +0 -20
  812. package/build/cjs/integrations/tracing-channel/firebase/index.js.map +0 -1
  813. package/build/cjs/integrations/tracing-channel/firebase/instrumentation.js +0 -69
  814. package/build/cjs/integrations/tracing-channel/firebase/instrumentation.js.map +0 -1
  815. package/build/cjs/integrations/tracing-channel/generic-pool.js +0 -49
  816. package/build/cjs/integrations/tracing-channel/generic-pool.js.map +0 -1
  817. package/build/cjs/integrations/tracing-channel/google-genai.js +0 -110
  818. package/build/cjs/integrations/tracing-channel/google-genai.js.map +0 -1
  819. package/build/cjs/integrations/tracing-channel/graphql/constants.js +0 -26
  820. package/build/cjs/integrations/tracing-channel/graphql/constants.js.map +0 -1
  821. package/build/cjs/integrations/tracing-channel/graphql/index.js +0 -70
  822. package/build/cjs/integrations/tracing-channel/graphql/index.js.map +0 -1
  823. package/build/cjs/integrations/tracing-channel/graphql/resolvers.js +0 -168
  824. package/build/cjs/integrations/tracing-channel/graphql/resolvers.js.map +0 -1
  825. package/build/cjs/integrations/tracing-channel/graphql/spans.js +0 -102
  826. package/build/cjs/integrations/tracing-channel/graphql/spans.js.map +0 -1
  827. package/build/cjs/integrations/tracing-channel/hapi-types.js.map +0 -1
  828. package/build/cjs/integrations/tracing-channel/hapi-utils.js +0 -169
  829. package/build/cjs/integrations/tracing-channel/hapi-utils.js.map +0 -1
  830. package/build/cjs/integrations/tracing-channel/hapi.js +0 -67
  831. package/build/cjs/integrations/tracing-channel/hapi.js.map +0 -1
  832. package/build/cjs/integrations/tracing-channel/ioredis.js +0 -110
  833. package/build/cjs/integrations/tracing-channel/ioredis.js.map +0 -1
  834. package/build/cjs/integrations/tracing-channel/kafkajs/consumer.js.map +0 -1
  835. package/build/cjs/integrations/tracing-channel/kafkajs/index.js +0 -83
  836. package/build/cjs/integrations/tracing-channel/kafkajs/index.js.map +0 -1
  837. package/build/cjs/integrations/tracing-channel/kafkajs/semconv.js.map +0 -1
  838. package/build/cjs/integrations/tracing-channel/kafkajs/spans.js +0 -120
  839. package/build/cjs/integrations/tracing-channel/kafkajs/spans.js.map +0 -1
  840. package/build/cjs/integrations/tracing-channel/knex.js +0 -202
  841. package/build/cjs/integrations/tracing-channel/knex.js.map +0 -1
  842. package/build/cjs/integrations/tracing-channel/koa.js +0 -149
  843. package/build/cjs/integrations/tracing-channel/koa.js.map +0 -1
  844. package/build/cjs/integrations/tracing-channel/langchain.js +0 -82
  845. package/build/cjs/integrations/tracing-channel/langchain.js.map +0 -1
  846. package/build/cjs/integrations/tracing-channel/langgraph.js +0 -100
  847. package/build/cjs/integrations/tracing-channel/langgraph.js.map +0 -1
  848. package/build/cjs/integrations/tracing-channel/lru-memoizer.js +0 -42
  849. package/build/cjs/integrations/tracing-channel/lru-memoizer.js.map +0 -1
  850. package/build/cjs/integrations/tracing-channel/mongodb.js +0 -117
  851. package/build/cjs/integrations/tracing-channel/mongodb.js.map +0 -1
  852. package/build/cjs/integrations/tracing-channel/mongoose.js +0 -122
  853. package/build/cjs/integrations/tracing-channel/mongoose.js.map +0 -1
  854. package/build/cjs/integrations/tracing-channel/mysql.js +0 -119
  855. package/build/cjs/integrations/tracing-channel/mysql.js.map +0 -1
  856. package/build/cjs/integrations/tracing-channel/mysql2.js +0 -100
  857. package/build/cjs/integrations/tracing-channel/mysql2.js.map +0 -1
  858. package/build/cjs/integrations/tracing-channel/openai.js +0 -93
  859. package/build/cjs/integrations/tracing-channel/openai.js.map +0 -1
  860. package/build/cjs/integrations/tracing-channel/postgres-js.js +0 -203
  861. package/build/cjs/integrations/tracing-channel/postgres-js.js.map +0 -1
  862. package/build/cjs/integrations/tracing-channel/postgres.js +0 -186
  863. package/build/cjs/integrations/tracing-channel/postgres.js.map +0 -1
  864. package/build/cjs/integrations/tracing-channel/redis.js +0 -239
  865. package/build/cjs/integrations/tracing-channel/redis.js.map +0 -1
  866. package/build/cjs/integrations/tracing-channel/tedious.js +0 -158
  867. package/build/cjs/integrations/tracing-channel/tedious.js.map +0 -1
  868. package/build/cjs/integrations/tracing-channel/vercel-ai.js +0 -38
  869. package/build/cjs/integrations/tracing-channel/vercel-ai.js.map +0 -1
  870. package/build/cjs/mongodb/mongodb-span.js +0 -130
  871. package/build/cjs/mongodb/mongodb-span.js.map +0 -1
  872. package/build/cjs/mongoose/index.js +0 -36
  873. package/build/cjs/mongoose/index.js.map +0 -1
  874. package/build/cjs/mongoose/mongoose-dc-subscriber.js +0 -97
  875. package/build/cjs/mongoose/mongoose-dc-subscriber.js.map +0 -1
  876. package/build/cjs/mongoose/mongoose-legacy-span.js +0 -41
  877. package/build/cjs/mongoose/mongoose-legacy-span.js.map +0 -1
  878. package/build/cjs/mysql2/index.js +0 -36
  879. package/build/cjs/mysql2/index.js.map +0 -1
  880. package/build/cjs/mysql2/mysql2-dc-subscriber.js +0 -68
  881. package/build/cjs/mysql2/mysql2-dc-subscriber.js.map +0 -1
  882. package/build/cjs/orchestrion/index.js +0 -95
  883. package/build/cjs/orchestrion/index.js.map +0 -1
  884. package/build/cjs/orchestrion/moduleInjected.js +0 -21
  885. package/build/cjs/orchestrion/moduleInjected.js.map +0 -1
  886. package/build/cjs/orchestrion/runtime/hook.js +0 -17
  887. package/build/cjs/orchestrion/runtime/hook.js.map +0 -1
  888. package/build/cjs/orchestrion/runtime/register.js +0 -80
  889. package/build/cjs/orchestrion/runtime/register.js.map +0 -1
  890. package/build/cjs/otlp.js +0 -45
  891. package/build/cjs/otlp.js.map +0 -1
  892. package/build/cjs/prisma/global.js.map +0 -1
  893. package/build/cjs/prisma/index.js.map +0 -1
  894. package/build/cjs/prisma/tracing-helper.js +0 -222
  895. package/build/cjs/prisma/tracing-helper.js.map +0 -1
  896. package/build/cjs/redis/index.js +0 -36
  897. package/build/cjs/redis/index.js.map +0 -1
  898. package/build/cjs/redis/redis-dc-subscriber.js +0 -103
  899. package/build/cjs/redis/redis-dc-subscriber.js.map +0 -1
  900. package/build/cjs/redis/redis-statement-serializer.js.map +0 -1
  901. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/hook.js +0 -166
  902. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/hook.js.map +0 -1
  903. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/index.js +0 -88
  904. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/index.js.map +0 -1
  905. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js +0 -15
  906. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js.map +0 -1
  907. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js +0 -30
  908. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js.map +0 -1
  909. package/build/cjs/vendored/debug/src/common.js +0 -178
  910. package/build/cjs/vendored/debug/src/common.js.map +0 -1
  911. package/build/cjs/vendored/debug/src/node.js +0 -186
  912. package/build/cjs/vendored/debug/src/node.js.map +0 -1
  913. package/build/cjs/vendored/has-flag/index.js +0 -11
  914. package/build/cjs/vendored/has-flag/index.js.map +0 -1
  915. package/build/cjs/vendored/ms/index.js +0 -115
  916. package/build/cjs/vendored/ms/index.js.map +0 -1
  917. package/build/cjs/vendored/supports-color/index.js +0 -104
  918. package/build/cjs/vendored/supports-color/index.js.map +0 -1
  919. package/build/cjs/vercel-ai/index.js +0 -36
  920. package/build/cjs/vercel-ai/index.js.map +0 -1
  921. package/build/cjs/vercel-ai/util.js.map +0 -1
  922. package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js +0 -434
  923. package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js.map +0 -1
  924. package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js +0 -399
  925. package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +0 -1
  926. package/build/esm/_virtual/node.js +0 -4
  927. package/build/esm/_virtual/node.js.map +0 -1
  928. package/build/esm/ai/vercel-ai/constants.js +0 -18
  929. package/build/esm/ai/vercel-ai/constants.js.map +0 -1
  930. package/build/esm/ai/vercel-ai/utils.js +0 -164
  931. package/build/esm/ai/vercel-ai/utils.js.map +0 -1
  932. package/build/esm/ai/vercel-ai/vercel-ai-attributes.js +0 -26
  933. package/build/esm/ai/vercel-ai/vercel-ai-attributes.js.map +0 -1
  934. package/build/esm/graphql/graphql-dc-subscriber.js +0 -116
  935. package/build/esm/graphql/graphql-dc-subscriber.js.map +0 -1
  936. package/build/esm/graphql/index.js +0 -21
  937. package/build/esm/graphql/index.js.map +0 -1
  938. package/build/esm/graphql/utils.js +0 -89
  939. package/build/esm/graphql/utils.js.map +0 -1
  940. package/build/esm/integrations/tracing-channel/amqplib.js +0 -416
  941. package/build/esm/integrations/tracing-channel/amqplib.js.map +0 -1
  942. package/build/esm/integrations/tracing-channel/anthropic.js +0 -96
  943. package/build/esm/integrations/tracing-channel/anthropic.js.map +0 -1
  944. package/build/esm/integrations/tracing-channel/aws-sdk/constants.js.map +0 -1
  945. package/build/esm/integrations/tracing-channel/aws-sdk/index.js +0 -139
  946. package/build/esm/integrations/tracing-channel/aws-sdk/index.js.map +0 -1
  947. package/build/esm/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js +0 -41
  948. package/build/esm/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js.map +0 -1
  949. package/build/esm/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js.map +0 -1
  950. package/build/esm/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js +0 -421
  951. package/build/esm/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js.map +0 -1
  952. package/build/esm/integrations/tracing-channel/aws-sdk/services/dynamodb.js +0 -127
  953. package/build/esm/integrations/tracing-channel/aws-sdk/services/dynamodb.js.map +0 -1
  954. package/build/esm/integrations/tracing-channel/aws-sdk/services/kinesis.js.map +0 -1
  955. package/build/esm/integrations/tracing-channel/aws-sdk/services/lambda.js +0 -61
  956. package/build/esm/integrations/tracing-channel/aws-sdk/services/lambda.js.map +0 -1
  957. package/build/esm/integrations/tracing-channel/aws-sdk/services/s3.js.map +0 -1
  958. package/build/esm/integrations/tracing-channel/aws-sdk/services/secretsmanager.js.map +0 -1
  959. package/build/esm/integrations/tracing-channel/aws-sdk/services/sns.js +0 -60
  960. package/build/esm/integrations/tracing-channel/aws-sdk/services/sns.js.map +0 -1
  961. package/build/esm/integrations/tracing-channel/aws-sdk/services/sqs.js +0 -114
  962. package/build/esm/integrations/tracing-channel/aws-sdk/services/sqs.js.map +0 -1
  963. package/build/esm/integrations/tracing-channel/aws-sdk/services/stepfunctions.js.map +0 -1
  964. package/build/esm/integrations/tracing-channel/aws-sdk/utils.js.map +0 -1
  965. package/build/esm/integrations/tracing-channel/dataloader.js +0 -111
  966. package/build/esm/integrations/tracing-channel/dataloader.js.map +0 -1
  967. package/build/esm/integrations/tracing-channel/express/index.js +0 -22
  968. package/build/esm/integrations/tracing-channel/express/index.js.map +0 -1
  969. package/build/esm/integrations/tracing-channel/express/instrumentation.js +0 -161
  970. package/build/esm/integrations/tracing-channel/express/instrumentation.js.map +0 -1
  971. package/build/esm/integrations/tracing-channel/express/route.js.map +0 -1
  972. package/build/esm/integrations/tracing-channel/fastify/errors.js +0 -39
  973. package/build/esm/integrations/tracing-channel/fastify/errors.js.map +0 -1
  974. package/build/esm/integrations/tracing-channel/fastify/index.js +0 -28
  975. package/build/esm/integrations/tracing-channel/fastify/index.js.map +0 -1
  976. package/build/esm/integrations/tracing-channel/fastify/instrumentation.js +0 -279
  977. package/build/esm/integrations/tracing-channel/fastify/instrumentation.js.map +0 -1
  978. package/build/esm/integrations/tracing-channel/fastify/utils.js.map +0 -1
  979. package/build/esm/integrations/tracing-channel/firebase/firestore.js +0 -75
  980. package/build/esm/integrations/tracing-channel/firebase/firestore.js.map +0 -1
  981. package/build/esm/integrations/tracing-channel/firebase/functions.js +0 -67
  982. package/build/esm/integrations/tracing-channel/firebase/functions.js.map +0 -1
  983. package/build/esm/integrations/tracing-channel/firebase/index.js +0 -18
  984. package/build/esm/integrations/tracing-channel/firebase/index.js.map +0 -1
  985. package/build/esm/integrations/tracing-channel/firebase/instrumentation.js +0 -54
  986. package/build/esm/integrations/tracing-channel/firebase/instrumentation.js.map +0 -1
  987. package/build/esm/integrations/tracing-channel/generic-pool.js +0 -34
  988. package/build/esm/integrations/tracing-channel/generic-pool.js.map +0 -1
  989. package/build/esm/integrations/tracing-channel/google-genai.js +0 -95
  990. package/build/esm/integrations/tracing-channel/google-genai.js.map +0 -1
  991. package/build/esm/integrations/tracing-channel/graphql/constants.js +0 -14
  992. package/build/esm/integrations/tracing-channel/graphql/constants.js.map +0 -1
  993. package/build/esm/integrations/tracing-channel/graphql/index.js +0 -54
  994. package/build/esm/integrations/tracing-channel/graphql/index.js.map +0 -1
  995. package/build/esm/integrations/tracing-channel/graphql/resolvers.js +0 -164
  996. package/build/esm/integrations/tracing-channel/graphql/resolvers.js.map +0 -1
  997. package/build/esm/integrations/tracing-channel/graphql/spans.js +0 -96
  998. package/build/esm/integrations/tracing-channel/graphql/spans.js.map +0 -1
  999. package/build/esm/integrations/tracing-channel/hapi-types.js.map +0 -1
  1000. package/build/esm/integrations/tracing-channel/hapi-utils.js +0 -164
  1001. package/build/esm/integrations/tracing-channel/hapi-utils.js.map +0 -1
  1002. package/build/esm/integrations/tracing-channel/hapi.js +0 -52
  1003. package/build/esm/integrations/tracing-channel/hapi.js.map +0 -1
  1004. package/build/esm/integrations/tracing-channel/ioredis.js +0 -94
  1005. package/build/esm/integrations/tracing-channel/ioredis.js.map +0 -1
  1006. package/build/esm/integrations/tracing-channel/kafkajs/consumer.js.map +0 -1
  1007. package/build/esm/integrations/tracing-channel/kafkajs/index.js +0 -68
  1008. package/build/esm/integrations/tracing-channel/kafkajs/index.js.map +0 -1
  1009. package/build/esm/integrations/tracing-channel/kafkajs/semconv.js.map +0 -1
  1010. package/build/esm/integrations/tracing-channel/kafkajs/spans.js +0 -113
  1011. package/build/esm/integrations/tracing-channel/kafkajs/spans.js.map +0 -1
  1012. package/build/esm/integrations/tracing-channel/knex.js +0 -187
  1013. package/build/esm/integrations/tracing-channel/knex.js.map +0 -1
  1014. package/build/esm/integrations/tracing-channel/koa.js +0 -134
  1015. package/build/esm/integrations/tracing-channel/koa.js.map +0 -1
  1016. package/build/esm/integrations/tracing-channel/langchain.js +0 -67
  1017. package/build/esm/integrations/tracing-channel/langchain.js.map +0 -1
  1018. package/build/esm/integrations/tracing-channel/langgraph.js +0 -85
  1019. package/build/esm/integrations/tracing-channel/langgraph.js.map +0 -1
  1020. package/build/esm/integrations/tracing-channel/lru-memoizer.js +0 -27
  1021. package/build/esm/integrations/tracing-channel/lru-memoizer.js.map +0 -1
  1022. package/build/esm/integrations/tracing-channel/mongodb.js +0 -102
  1023. package/build/esm/integrations/tracing-channel/mongodb.js.map +0 -1
  1024. package/build/esm/integrations/tracing-channel/mongoose.js +0 -107
  1025. package/build/esm/integrations/tracing-channel/mongoose.js.map +0 -1
  1026. package/build/esm/integrations/tracing-channel/mysql.js +0 -104
  1027. package/build/esm/integrations/tracing-channel/mysql.js.map +0 -1
  1028. package/build/esm/integrations/tracing-channel/mysql2.js +0 -85
  1029. package/build/esm/integrations/tracing-channel/mysql2.js.map +0 -1
  1030. package/build/esm/integrations/tracing-channel/openai.js +0 -78
  1031. package/build/esm/integrations/tracing-channel/openai.js.map +0 -1
  1032. package/build/esm/integrations/tracing-channel/postgres-js.js +0 -188
  1033. package/build/esm/integrations/tracing-channel/postgres-js.js.map +0 -1
  1034. package/build/esm/integrations/tracing-channel/postgres.js +0 -171
  1035. package/build/esm/integrations/tracing-channel/postgres.js.map +0 -1
  1036. package/build/esm/integrations/tracing-channel/redis.js +0 -224
  1037. package/build/esm/integrations/tracing-channel/redis.js.map +0 -1
  1038. package/build/esm/integrations/tracing-channel/tedious.js +0 -143
  1039. package/build/esm/integrations/tracing-channel/tedious.js.map +0 -1
  1040. package/build/esm/integrations/tracing-channel/vercel-ai.js +0 -23
  1041. package/build/esm/integrations/tracing-channel/vercel-ai.js.map +0 -1
  1042. package/build/esm/mongodb/mongodb-span.js +0 -123
  1043. package/build/esm/mongodb/mongodb-span.js.map +0 -1
  1044. package/build/esm/mongoose/index.js +0 -21
  1045. package/build/esm/mongoose/index.js.map +0 -1
  1046. package/build/esm/mongoose/mongoose-dc-subscriber.js +0 -89
  1047. package/build/esm/mongoose/mongoose-dc-subscriber.js.map +0 -1
  1048. package/build/esm/mongoose/mongoose-legacy-span.js +0 -39
  1049. package/build/esm/mongoose/mongoose-legacy-span.js.map +0 -1
  1050. package/build/esm/mysql2/index.js +0 -21
  1051. package/build/esm/mysql2/index.js.map +0 -1
  1052. package/build/esm/mysql2/mysql2-dc-subscriber.js +0 -62
  1053. package/build/esm/mysql2/mysql2-dc-subscriber.js.map +0 -1
  1054. package/build/esm/orchestrion/index.js +0 -61
  1055. package/build/esm/orchestrion/index.js.map +0 -1
  1056. package/build/esm/orchestrion/moduleInjected.js +0 -19
  1057. package/build/esm/orchestrion/moduleInjected.js.map +0 -1
  1058. package/build/esm/orchestrion/runtime/hook.js +0 -8
  1059. package/build/esm/orchestrion/runtime/hook.js.map +0 -1
  1060. package/build/esm/orchestrion/runtime/register.js +0 -65
  1061. package/build/esm/orchestrion/runtime/register.js.map +0 -1
  1062. package/build/esm/otlp.js +0 -42
  1063. package/build/esm/otlp.js.map +0 -1
  1064. package/build/esm/prisma/global.js.map +0 -1
  1065. package/build/esm/prisma/index.js.map +0 -1
  1066. package/build/esm/prisma/tracing-helper.js +0 -220
  1067. package/build/esm/prisma/tracing-helper.js.map +0 -1
  1068. package/build/esm/redis/index.js +0 -21
  1069. package/build/esm/redis/index.js.map +0 -1
  1070. package/build/esm/redis/redis-dc-subscriber.js +0 -96
  1071. package/build/esm/redis/redis-dc-subscriber.js.map +0 -1
  1072. package/build/esm/redis/redis-statement-serializer.js.map +0 -1
  1073. package/build/esm/vendored/@apm-js-collab/tracing-hooks/hook.js +0 -157
  1074. package/build/esm/vendored/@apm-js-collab/tracing-hooks/hook.js.map +0 -1
  1075. package/build/esm/vendored/@apm-js-collab/tracing-hooks/index.js +0 -86
  1076. package/build/esm/vendored/@apm-js-collab/tracing-hooks/index.js.map +0 -1
  1077. package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js +0 -13
  1078. package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js.map +0 -1
  1079. package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js +0 -27
  1080. package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js.map +0 -1
  1081. package/build/esm/vendored/debug/src/common.js +0 -176
  1082. package/build/esm/vendored/debug/src/common.js.map +0 -1
  1083. package/build/esm/vendored/debug/src/node.js +0 -183
  1084. package/build/esm/vendored/debug/src/node.js.map +0 -1
  1085. package/build/esm/vendored/has-flag/index.js +0 -9
  1086. package/build/esm/vendored/has-flag/index.js.map +0 -1
  1087. package/build/esm/vendored/ms/index.js +0 -113
  1088. package/build/esm/vendored/ms/index.js.map +0 -1
  1089. package/build/esm/vendored/supports-color/index.js +0 -102
  1090. package/build/esm/vendored/supports-color/index.js.map +0 -1
  1091. package/build/esm/vercel-ai/index.js +0 -21
  1092. package/build/esm/vercel-ai/index.js.map +0 -1
  1093. package/build/esm/vercel-ai/util.js.map +0 -1
  1094. package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js +0 -426
  1095. package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js.map +0 -1
  1096. package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js +0 -397
  1097. package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +0 -1
  1098. package/build/orchestrion/import-hook.mjs +0 -19
  1099. package/build/types/ai/vercel-ai/constants.d.ts +0 -4
  1100. package/build/types/ai/vercel-ai/constants.d.ts.map +0 -1
  1101. package/build/types/ai/vercel-ai/types.d.ts +0 -5
  1102. package/build/types/ai/vercel-ai/types.d.ts.map +0 -1
  1103. package/build/types/ai/vercel-ai/utils.d.ts +0 -39
  1104. package/build/types/ai/vercel-ai/utils.d.ts.map +0 -1
  1105. package/build/types/graphql/graphql-dc-subscriber.d.ts +0 -94
  1106. package/build/types/graphql/graphql-dc-subscriber.d.ts.map +0 -1
  1107. package/build/types/graphql/index.d.ts +0 -12
  1108. package/build/types/graphql/index.d.ts.map +0 -1
  1109. package/build/types/graphql/utils.d.ts +0 -34
  1110. package/build/types/graphql/utils.d.ts.map +0 -1
  1111. package/build/types/integrations/tracing-channel/amqplib.d.ts +0 -11
  1112. package/build/types/integrations/tracing-channel/amqplib.d.ts.map +0 -1
  1113. package/build/types/integrations/tracing-channel/anthropic.d.ts +0 -9
  1114. package/build/types/integrations/tracing-channel/anthropic.d.ts.map +0 -1
  1115. package/build/types/integrations/tracing-channel/aws-sdk/aws-sdk.types.d.ts.map +0 -1
  1116. package/build/types/integrations/tracing-channel/aws-sdk/constants.d.ts +0 -16
  1117. package/build/types/integrations/tracing-channel/aws-sdk/constants.d.ts.map +0 -1
  1118. package/build/types/integrations/tracing-channel/aws-sdk/index.d.ts +0 -12
  1119. package/build/types/integrations/tracing-channel/aws-sdk/index.d.ts.map +0 -1
  1120. package/build/types/integrations/tracing-channel/aws-sdk/services/MessageAttributes.d.ts.map +0 -1
  1121. package/build/types/integrations/tracing-channel/aws-sdk/services/ServiceExtension.d.ts.map +0 -1
  1122. package/build/types/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.d.ts.map +0 -1
  1123. package/build/types/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.d.ts.map +0 -1
  1124. package/build/types/integrations/tracing-channel/aws-sdk/services/dynamodb.d.ts.map +0 -1
  1125. package/build/types/integrations/tracing-channel/aws-sdk/services/index.d.ts.map +0 -1
  1126. package/build/types/integrations/tracing-channel/aws-sdk/services/kinesis.d.ts.map +0 -1
  1127. package/build/types/integrations/tracing-channel/aws-sdk/services/lambda.d.ts.map +0 -1
  1128. package/build/types/integrations/tracing-channel/aws-sdk/services/s3.d.ts.map +0 -1
  1129. package/build/types/integrations/tracing-channel/aws-sdk/services/secretsmanager.d.ts.map +0 -1
  1130. package/build/types/integrations/tracing-channel/aws-sdk/services/sns.d.ts.map +0 -1
  1131. package/build/types/integrations/tracing-channel/aws-sdk/services/sqs.d.ts.map +0 -1
  1132. package/build/types/integrations/tracing-channel/aws-sdk/services/stepfunctions.d.ts.map +0 -1
  1133. package/build/types/integrations/tracing-channel/aws-sdk/types.d.ts.map +0 -1
  1134. package/build/types/integrations/tracing-channel/aws-sdk/utils.d.ts.map +0 -1
  1135. package/build/types/integrations/tracing-channel/dataloader.d.ts +0 -11
  1136. package/build/types/integrations/tracing-channel/dataloader.d.ts.map +0 -1
  1137. package/build/types/integrations/tracing-channel/express/index.d.ts +0 -17
  1138. package/build/types/integrations/tracing-channel/express/index.d.ts.map +0 -1
  1139. package/build/types/integrations/tracing-channel/express/instrumentation.d.ts +0 -4
  1140. package/build/types/integrations/tracing-channel/express/instrumentation.d.ts.map +0 -1
  1141. package/build/types/integrations/tracing-channel/express/route.d.ts.map +0 -1
  1142. package/build/types/integrations/tracing-channel/express/types.d.ts +0 -64
  1143. package/build/types/integrations/tracing-channel/express/types.d.ts.map +0 -1
  1144. package/build/types/integrations/tracing-channel/fastify/errors.d.ts +0 -12
  1145. package/build/types/integrations/tracing-channel/fastify/errors.d.ts.map +0 -1
  1146. package/build/types/integrations/tracing-channel/fastify/index.d.ts +0 -66
  1147. package/build/types/integrations/tracing-channel/fastify/index.d.ts.map +0 -1
  1148. package/build/types/integrations/tracing-channel/fastify/instrumentation.d.ts +0 -10
  1149. package/build/types/integrations/tracing-channel/fastify/instrumentation.d.ts.map +0 -1
  1150. package/build/types/integrations/tracing-channel/fastify/types.d.ts +0 -32
  1151. package/build/types/integrations/tracing-channel/fastify/types.d.ts.map +0 -1
  1152. package/build/types/integrations/tracing-channel/fastify/utils.d.ts.map +0 -1
  1153. package/build/types/integrations/tracing-channel/firebase/firestore-types.d.ts.map +0 -1
  1154. package/build/types/integrations/tracing-channel/firebase/firestore.d.ts.map +0 -1
  1155. package/build/types/integrations/tracing-channel/firebase/functions.d.ts.map +0 -1
  1156. package/build/types/integrations/tracing-channel/firebase/index.d.ts +0 -12
  1157. package/build/types/integrations/tracing-channel/firebase/index.d.ts.map +0 -1
  1158. package/build/types/integrations/tracing-channel/firebase/instrumentation.d.ts.map +0 -1
  1159. package/build/types/integrations/tracing-channel/generic-pool.d.ts +0 -10
  1160. package/build/types/integrations/tracing-channel/generic-pool.d.ts.map +0 -1
  1161. package/build/types/integrations/tracing-channel/google-genai.d.ts +0 -11
  1162. package/build/types/integrations/tracing-channel/google-genai.d.ts.map +0 -1
  1163. package/build/types/integrations/tracing-channel/graphql/constants.d.ts +0 -12
  1164. package/build/types/integrations/tracing-channel/graphql/constants.d.ts.map +0 -1
  1165. package/build/types/integrations/tracing-channel/graphql/graphql-types.d.ts.map +0 -1
  1166. package/build/types/integrations/tracing-channel/graphql/index.d.ts +0 -27
  1167. package/build/types/integrations/tracing-channel/graphql/index.d.ts.map +0 -1
  1168. package/build/types/integrations/tracing-channel/graphql/resolvers.d.ts.map +0 -1
  1169. package/build/types/integrations/tracing-channel/graphql/spans.d.ts.map +0 -1
  1170. package/build/types/integrations/tracing-channel/graphql/types.d.ts +0 -25
  1171. package/build/types/integrations/tracing-channel/graphql/types.d.ts.map +0 -1
  1172. package/build/types/integrations/tracing-channel/hapi-types.d.ts +0 -53
  1173. package/build/types/integrations/tracing-channel/hapi-types.d.ts.map +0 -1
  1174. package/build/types/integrations/tracing-channel/hapi-utils.d.ts +0 -25
  1175. package/build/types/integrations/tracing-channel/hapi-utils.d.ts.map +0 -1
  1176. package/build/types/integrations/tracing-channel/hapi.d.ts +0 -9
  1177. package/build/types/integrations/tracing-channel/hapi.d.ts.map +0 -1
  1178. package/build/types/integrations/tracing-channel/ioredis.d.ts +0 -37
  1179. package/build/types/integrations/tracing-channel/ioredis.d.ts.map +0 -1
  1180. package/build/types/integrations/tracing-channel/kafkajs/consumer.d.ts.map +0 -1
  1181. package/build/types/integrations/tracing-channel/kafkajs/index.d.ts +0 -16
  1182. package/build/types/integrations/tracing-channel/kafkajs/index.d.ts.map +0 -1
  1183. package/build/types/integrations/tracing-channel/kafkajs/semconv.d.ts.map +0 -1
  1184. package/build/types/integrations/tracing-channel/kafkajs/spans.d.ts +0 -38
  1185. package/build/types/integrations/tracing-channel/kafkajs/spans.d.ts.map +0 -1
  1186. package/build/types/integrations/tracing-channel/kafkajs/types.d.ts.map +0 -1
  1187. package/build/types/integrations/tracing-channel/knex.d.ts +0 -11
  1188. package/build/types/integrations/tracing-channel/knex.d.ts.map +0 -1
  1189. package/build/types/integrations/tracing-channel/koa.d.ts +0 -14
  1190. package/build/types/integrations/tracing-channel/koa.d.ts.map +0 -1
  1191. package/build/types/integrations/tracing-channel/langchain.d.ts +0 -9
  1192. package/build/types/integrations/tracing-channel/langchain.d.ts.map +0 -1
  1193. package/build/types/integrations/tracing-channel/langgraph.d.ts +0 -9
  1194. package/build/types/integrations/tracing-channel/langgraph.d.ts.map +0 -1
  1195. package/build/types/integrations/tracing-channel/lru-memoizer.d.ts +0 -10
  1196. package/build/types/integrations/tracing-channel/lru-memoizer.d.ts.map +0 -1
  1197. package/build/types/integrations/tracing-channel/mongodb.d.ts +0 -12
  1198. package/build/types/integrations/tracing-channel/mongodb.d.ts.map +0 -1
  1199. package/build/types/integrations/tracing-channel/mongoose.d.ts +0 -15
  1200. package/build/types/integrations/tracing-channel/mongoose.d.ts.map +0 -1
  1201. package/build/types/integrations/tracing-channel/mysql.d.ts +0 -12
  1202. package/build/types/integrations/tracing-channel/mysql.d.ts.map +0 -1
  1203. package/build/types/integrations/tracing-channel/mysql2.d.ts +0 -17
  1204. package/build/types/integrations/tracing-channel/mysql2.d.ts.map +0 -1
  1205. package/build/types/integrations/tracing-channel/openai.d.ts +0 -9
  1206. package/build/types/integrations/tracing-channel/openai.d.ts.map +0 -1
  1207. package/build/types/integrations/tracing-channel/postgres-js.d.ts +0 -26
  1208. package/build/types/integrations/tracing-channel/postgres-js.d.ts.map +0 -1
  1209. package/build/types/integrations/tracing-channel/postgres.d.ts +0 -15
  1210. package/build/types/integrations/tracing-channel/postgres.d.ts.map +0 -1
  1211. package/build/types/integrations/tracing-channel/redis.d.ts +0 -16
  1212. package/build/types/integrations/tracing-channel/redis.d.ts.map +0 -1
  1213. package/build/types/integrations/tracing-channel/tedious.d.ts +0 -11
  1214. package/build/types/integrations/tracing-channel/tedious.d.ts.map +0 -1
  1215. package/build/types/integrations/tracing-channel/vercel-ai.d.ts +0 -9
  1216. package/build/types/integrations/tracing-channel/vercel-ai.d.ts.map +0 -1
  1217. package/build/types/mongodb/mongodb-span.d.ts +0 -66
  1218. package/build/types/mongodb/mongodb-span.d.ts.map +0 -1
  1219. package/build/types/mongoose/index.d.ts +0 -13
  1220. package/build/types/mongoose/index.d.ts.map +0 -1
  1221. package/build/types/mongoose/mongoose-dc-subscriber.d.ts.map +0 -1
  1222. package/build/types/mongoose/mongoose-legacy-span.d.ts +0 -28
  1223. package/build/types/mongoose/mongoose-legacy-span.d.ts.map +0 -1
  1224. package/build/types/mysql2/index.d.ts +0 -11
  1225. package/build/types/mysql2/index.d.ts.map +0 -1
  1226. package/build/types/mysql2/mysql2-dc-subscriber.d.ts.map +0 -1
  1227. package/build/types/orchestrion/index.d.ts +0 -130
  1228. package/build/types/orchestrion/index.d.ts.map +0 -1
  1229. package/build/types/orchestrion/moduleInjected.d.ts +0 -25
  1230. package/build/types/orchestrion/moduleInjected.d.ts.map +0 -1
  1231. package/build/types/orchestrion/runtime/register.d.ts +0 -14
  1232. package/build/types/orchestrion/runtime/register.d.ts.map +0 -1
  1233. package/build/types/otlp.d.ts +0 -49
  1234. package/build/types/otlp.d.ts.map +0 -1
  1235. package/build/types/prisma/global.d.ts.map +0 -1
  1236. package/build/types/prisma/index.d.ts.map +0 -1
  1237. package/build/types/prisma/tracing-helper.d.ts.map +0 -1
  1238. package/build/types/prisma/types.d.ts.map +0 -1
  1239. package/build/types/redis/index.d.ts +0 -18
  1240. package/build/types/redis/index.d.ts.map +0 -1
  1241. package/build/types/redis/redis-dc-subscriber.d.ts +0 -89
  1242. package/build/types/redis/redis-dc-subscriber.d.ts.map +0 -1
  1243. package/build/types/redis/redis-statement-serializer.d.ts.map +0 -1
  1244. package/build/types/vercel-ai/index.d.ts +0 -10
  1245. package/build/types/vercel-ai/index.d.ts.map +0 -1
  1246. package/build/types/vercel-ai/util.d.ts.map +0 -1
  1247. package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts +0 -69
  1248. package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +0 -1
  1249. package/build/types/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts.map +0 -1
  1250. /package/build/cjs/integrations/{tracing-channel/aws-sdk → aws-sdk}/constants.js +0 -0
  1251. /package/build/cjs/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/ServicesExtensions.js +0 -0
  1252. /package/build/cjs/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/kinesis.js +0 -0
  1253. /package/build/cjs/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/s3.js +0 -0
  1254. /package/build/cjs/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/secretsmanager.js +0 -0
  1255. /package/build/cjs/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/stepfunctions.js +0 -0
  1256. /package/build/cjs/integrations/{tracing-channel/aws-sdk → aws-sdk}/utils.js +0 -0
  1257. /package/build/cjs/integrations/{tracing-channel/express → express}/route.js +0 -0
  1258. /package/build/cjs/integrations/{tracing-channel/fastify → fastify}/utils.js +0 -0
  1259. /package/build/cjs/integrations/{tracing-channel → hapi}/hapi-types.js +0 -0
  1260. /package/build/cjs/integrations/{tracing-channel/kafkajs → kafkajs}/consumer.js +0 -0
  1261. /package/build/cjs/integrations/{tracing-channel/kafkajs → kafkajs}/semconv.js +0 -0
  1262. /package/build/cjs/{prisma → integrations/prisma}/global.js +0 -0
  1263. /package/build/cjs/{prisma → integrations/prisma}/index.js +0 -0
  1264. /package/build/cjs/{redis → integrations/redis}/redis-statement-serializer.js +0 -0
  1265. /package/build/cjs/{vercel-ai → integrations/vercel-ai}/util.js +0 -0
  1266. /package/build/esm/integrations/{tracing-channel/aws-sdk → aws-sdk}/constants.js +0 -0
  1267. /package/build/esm/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/ServicesExtensions.js +0 -0
  1268. /package/build/esm/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/kinesis.js +0 -0
  1269. /package/build/esm/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/s3.js +0 -0
  1270. /package/build/esm/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/secretsmanager.js +0 -0
  1271. /package/build/esm/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/stepfunctions.js +0 -0
  1272. /package/build/esm/integrations/{tracing-channel/aws-sdk → aws-sdk}/utils.js +0 -0
  1273. /package/build/esm/integrations/{tracing-channel/express → express}/route.js +0 -0
  1274. /package/build/esm/integrations/{tracing-channel/fastify → fastify}/utils.js +0 -0
  1275. /package/build/esm/integrations/{tracing-channel → hapi}/hapi-types.js +0 -0
  1276. /package/build/esm/integrations/{tracing-channel/kafkajs → kafkajs}/consumer.js +0 -0
  1277. /package/build/esm/integrations/{tracing-channel/kafkajs → kafkajs}/semconv.js +0 -0
  1278. /package/build/esm/{prisma → integrations/prisma}/global.js +0 -0
  1279. /package/build/esm/{prisma → integrations/prisma}/index.js +0 -0
  1280. /package/build/esm/{redis → integrations/redis}/redis-statement-serializer.js +0 -0
  1281. /package/build/esm/{vercel-ai → integrations/vercel-ai}/util.js +0 -0
  1282. /package/build/types/integrations/{tracing-channel/aws-sdk → aws-sdk}/aws-sdk.types.d.ts +0 -0
  1283. /package/build/types/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/MessageAttributes.d.ts +0 -0
  1284. /package/build/types/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/ServiceExtension.d.ts +0 -0
  1285. /package/build/types/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/ServicesExtensions.d.ts +0 -0
  1286. /package/build/types/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/bedrock-runtime.d.ts +0 -0
  1287. /package/build/types/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/dynamodb.d.ts +0 -0
  1288. /package/build/types/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/index.d.ts +0 -0
  1289. /package/build/types/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/kinesis.d.ts +0 -0
  1290. /package/build/types/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/lambda.d.ts +0 -0
  1291. /package/build/types/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/s3.d.ts +0 -0
  1292. /package/build/types/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/secretsmanager.d.ts +0 -0
  1293. /package/build/types/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/sns.d.ts +0 -0
  1294. /package/build/types/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/sqs.d.ts +0 -0
  1295. /package/build/types/integrations/{tracing-channel/aws-sdk → aws-sdk}/services/stepfunctions.d.ts +0 -0
  1296. /package/build/types/integrations/{tracing-channel/aws-sdk → aws-sdk}/types.d.ts +0 -0
  1297. /package/build/types/integrations/{tracing-channel/aws-sdk → aws-sdk}/utils.d.ts +0 -0
  1298. /package/build/types/integrations/{tracing-channel/express → express}/route.d.ts +0 -0
  1299. /package/build/types/integrations/{tracing-channel/fastify → fastify}/utils.d.ts +0 -0
  1300. /package/build/types/integrations/{tracing-channel/firebase → firebase}/firestore-types.d.ts +0 -0
  1301. /package/build/types/integrations/{tracing-channel/firebase → firebase}/firestore.d.ts +0 -0
  1302. /package/build/types/integrations/{tracing-channel/firebase → firebase}/functions.d.ts +0 -0
  1303. /package/build/types/integrations/{tracing-channel/firebase → firebase}/instrumentation.d.ts +0 -0
  1304. /package/build/types/integrations/{tracing-channel/graphql → graphql}/graphql-types.d.ts +0 -0
  1305. /package/build/types/integrations/{tracing-channel/graphql → graphql}/resolvers.d.ts +0 -0
  1306. /package/build/types/integrations/{tracing-channel/graphql → graphql}/spans.d.ts +0 -0
  1307. /package/build/types/integrations/{tracing-channel/kafkajs → kafkajs}/consumer.d.ts +0 -0
  1308. /package/build/types/integrations/{tracing-channel/kafkajs → kafkajs}/semconv.d.ts +0 -0
  1309. /package/build/types/integrations/{tracing-channel/kafkajs → kafkajs}/types.d.ts +0 -0
  1310. /package/build/types/{mongoose → integrations/mongoose}/mongoose-dc-subscriber.d.ts +0 -0
  1311. /package/build/types/{mysql2 → integrations/mysql2}/mysql2-dc-subscriber.d.ts +0 -0
  1312. /package/build/types/{prisma → integrations/prisma}/global.d.ts +0 -0
  1313. /package/build/types/{prisma → integrations/prisma}/index.d.ts +0 -0
  1314. /package/build/types/{prisma → integrations/prisma}/tracing-helper.d.ts +0 -0
  1315. /package/build/types/{prisma → integrations/prisma}/types.d.ts +0 -0
  1316. /package/build/types/{redis → integrations/redis}/redis-statement-serializer.d.ts +0 -0
  1317. /package/build/types/{vercel-ai → integrations/vercel-ai}/util.d.ts +0 -0
  1318. /package/build/types/{vercel-ai → integrations/vercel-ai}/vercel-ai-orchestrion-subscriber.d.ts +0 -0
@@ -1,97 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
- const attributes = require('@sentry/conventions/attributes');
4
- const core = require('@sentry/core');
5
- const debugBuild = require('../debug-build.js');
6
- const tracingChannel = require('../tracing-channel.js');
7
-
8
- const MONGOOSE_DC_CHANNEL_QUERY = "mongoose:query";
9
- const MONGOOSE_DC_CHANNEL_AGGREGATE = "mongoose:aggregate";
10
- const MONGOOSE_DC_CHANNEL_MODEL_SAVE = "mongoose:model:save";
11
- const MONGOOSE_DC_CHANNEL_MODEL_INSERT_MANY = "mongoose:model:insertMany";
12
- const MONGOOSE_DC_CHANNEL_MODEL_BULK_WRITE = "mongoose:model:bulkWrite";
13
- const MONGOOSE_DC_CHANNEL_CURSOR_NEXT = "mongoose:cursor:next";
14
- const ORIGIN = "auto.db.mongoose.diagnostic_channel";
15
- const DB_SYSTEM_NAME_VALUE_MONGODB = "mongodb";
16
- const MAX_REDACTION_DEPTH = 10;
17
- let subscribed = false;
18
- function subscribeMongooseDiagnosticChannels(tracingChannel) {
19
- if (subscribed) {
20
- return;
21
- }
22
- subscribed = true;
23
- try {
24
- setupChannel(tracingChannel, MONGOOSE_DC_CHANNEL_QUERY);
25
- setupChannel(tracingChannel, MONGOOSE_DC_CHANNEL_AGGREGATE);
26
- setupChannel(tracingChannel, MONGOOSE_DC_CHANNEL_MODEL_SAVE);
27
- setupChannel(tracingChannel, MONGOOSE_DC_CHANNEL_MODEL_INSERT_MANY);
28
- setupChannel(tracingChannel, MONGOOSE_DC_CHANNEL_MODEL_BULK_WRITE);
29
- setupChannel(tracingChannel, MONGOOSE_DC_CHANNEL_CURSOR_NEXT);
30
- } catch {
31
- debugBuild.DEBUG_BUILD && core.debug.log("Mongoose node:diagnostics_channel subscription failed.");
32
- }
33
- }
34
- function setupChannel(tracingChannel$1, channelName) {
35
- tracingChannel.bindTracingChannelToSpan(tracingChannel$1(channelName), (data) => {
36
- const collection = data.collection;
37
- const queryText = redactMongoQuery(data.args?.pipeline ?? data.args?.filter);
38
- const batchSize = getBatchSize(data);
39
- return core.startInactiveSpan({
40
- name: collection ? `mongoose.${collection}.${data.operation}` : `mongoose.${data.operation}`,
41
- attributes: {
42
- [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: ORIGIN,
43
- [core.SEMANTIC_ATTRIBUTE_SENTRY_OP]: "db",
44
- [attributes.DB_SYSTEM_NAME]: DB_SYSTEM_NAME_VALUE_MONGODB,
45
- [attributes.DB_OPERATION_NAME]: data.operation,
46
- [attributes.DB_COLLECTION_NAME]: collection ?? void 0,
47
- [attributes.DB_NAMESPACE]: data.database ?? void 0,
48
- [attributes.DB_QUERY_TEXT]: queryText ?? void 0,
49
- [attributes.DB_OPERATION_BATCH_SIZE]: batchSize ?? void 0,
50
- [attributes.SERVER_ADDRESS]: data.serverAddress ?? void 0,
51
- [attributes.SERVER_PORT]: data.serverPort ?? void 0
52
- }
53
- });
54
- });
55
- }
56
- function getBatchSize(data) {
57
- const args = data.args;
58
- const batch = data.operation === "insertMany" ? args?.docs : data.operation === "bulkWrite" ? args?.ops : void 0;
59
- return Array.isArray(batch) && batch.length > 1 ? batch.length : void 0;
60
- }
61
- function redactMongoQuery(value) {
62
- if (value == null) {
63
- return void 0;
64
- }
65
- try {
66
- const redacted = redactValue(value, 0);
67
- const text = JSON.stringify(redacted);
68
- return text == null || text === "{}" || text === "[]" ? void 0 : text;
69
- } catch {
70
- return void 0;
71
- }
72
- }
73
- function redactValue(value, depth) {
74
- if (depth > MAX_REDACTION_DEPTH) {
75
- return "?";
76
- }
77
- if (Array.isArray(value)) {
78
- return value.map((item) => redactValue(item, depth + 1));
79
- }
80
- if (core.isObjectLike(value)) {
81
- const out = {};
82
- for (const key of Object.keys(value)) {
83
- out[key] = redactValue(value[key], depth + 1);
84
- }
85
- return out;
86
- }
87
- return "?";
88
- }
89
-
90
- exports.MONGOOSE_DC_CHANNEL_AGGREGATE = MONGOOSE_DC_CHANNEL_AGGREGATE;
91
- exports.MONGOOSE_DC_CHANNEL_CURSOR_NEXT = MONGOOSE_DC_CHANNEL_CURSOR_NEXT;
92
- exports.MONGOOSE_DC_CHANNEL_MODEL_BULK_WRITE = MONGOOSE_DC_CHANNEL_MODEL_BULK_WRITE;
93
- exports.MONGOOSE_DC_CHANNEL_MODEL_INSERT_MANY = MONGOOSE_DC_CHANNEL_MODEL_INSERT_MANY;
94
- exports.MONGOOSE_DC_CHANNEL_MODEL_SAVE = MONGOOSE_DC_CHANNEL_MODEL_SAVE;
95
- exports.MONGOOSE_DC_CHANNEL_QUERY = MONGOOSE_DC_CHANNEL_QUERY;
96
- exports.subscribeMongooseDiagnosticChannels = subscribeMongooseDiagnosticChannels;
97
- //# sourceMappingURL=mongoose-dc-subscriber.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mongoose-dc-subscriber.js","sources":["../../../src/mongoose/mongoose-dc-subscriber.ts"],"sourcesContent":["import type { TracingChannel } from 'node:diagnostics_channel';\nimport {\n DB_COLLECTION_NAME,\n DB_NAMESPACE,\n DB_OPERATION_BATCH_SIZE,\n DB_OPERATION_NAME,\n DB_QUERY_TEXT,\n DB_SYSTEM_NAME,\n SERVER_ADDRESS,\n SERVER_PORT,\n} from '@sentry/conventions/attributes';\nimport {\n isObjectLike,\n debug,\n SEMANTIC_ATTRIBUTE_SENTRY_OP,\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n startInactiveSpan,\n} from '@sentry/core';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { bindTracingChannelToSpan } from '../tracing-channel';\n\n// Channel names published by mongoose >= 9.7.0 (see mongoose `lib/tracing.js`,\n// `lib/query.js`, `lib/aggregate.js`, `lib/model.js` and `lib/cursor/*`).\n// Hardcoded so the subscriber does not have to import mongoose — the channels\n// just have to be subscribed to before the user's mongoose code publishes.\nexport const MONGOOSE_DC_CHANNEL_QUERY = 'mongoose:query';\nexport const MONGOOSE_DC_CHANNEL_AGGREGATE = 'mongoose:aggregate';\nexport const MONGOOSE_DC_CHANNEL_MODEL_SAVE = 'mongoose:model:save';\nexport const MONGOOSE_DC_CHANNEL_MODEL_INSERT_MANY = 'mongoose:model:insertMany';\nexport const MONGOOSE_DC_CHANNEL_MODEL_BULK_WRITE = 'mongoose:model:bulkWrite';\nexport const MONGOOSE_DC_CHANNEL_CURSOR_NEXT = 'mongoose:cursor:next';\n\nconst ORIGIN = 'auto.db.mongoose.diagnostic_channel';\nconst DB_SYSTEM_NAME_VALUE_MONGODB = 'mongodb';\n\n// Cap recursion so a self-referential or pathologically deep query can never\n// stall (or blow the stack in) instrumentation.\nconst MAX_REDACTION_DEPTH = 10;\n\n/**\n * Shape of the context object mongoose >= 9.7.0 publishes on its tracing\n * channels (mongoose's `TracingContext`, see `types/tracing.d.ts`).\n *\n * Node's `tracePromise` mutates this same object with `result`/`error` once the\n * operation settles, which `bindTracingChannelToSpan` reads in its lifecycle\n * handlers — hence both are declared optional here.\n *\n * Unlike redis/ioredis, mongoose does NOT pre-sanitize the payload, so `args`\n * carries the raw user query. We redact it before emitting `db.query.text`.\n */\nexport interface MongooseTracingData {\n operation: string;\n /** Absent for connection-level `aggregate()` calls, which have no model/collection. */\n collection?: string;\n database?: string;\n serverAddress?: string;\n serverPort?: number;\n /** Cursor channels only: the cursor's fetch batch size and tailable flag. */\n batchSize?: number;\n tailable?: boolean;\n /**\n * Operation-specific arguments. `filter` (queries/cursors) and `pipeline`\n * (aggregations) carry the query shape; `docs`/`ops` carry batch payloads.\n */\n args?: {\n filter?: unknown;\n pipeline?: unknown;\n docs?: unknown;\n ops?: unknown;\n [key: string]: unknown;\n };\n result?: unknown;\n error?: Error;\n}\n\n/**\n * Platform-provided factory that creates a native tracing channel for the given name. The\n * subscriber binds the span and its lifecycle onto the channel via `bindTracingChannelToSpan`,\n * which propagates the active span through the runtime's async context.\n *\n * Node passes `node:diagnostics_channel`'s `tracingChannel` directly.\n */\nexport type MongooseTracingChannelFactory = <T extends object>(name: string) => TracingChannel<T, T>;\n\nlet subscribed = false;\n\n/**\n * Subscribe Sentry span handlers to mongoose's diagnostics-channel events\n * (`mongoose:query`, `:aggregate`, `:model:save`, `:model:insertMany`,\n * `:model:bulkWrite`, `:cursor:next`), published by mongoose >= 9.7.0.\n *\n * On older mongoose versions the channels are never published to, so the\n * subscribers are inert — there is no double-instrumentation against the\n * IITM-based vendored patcher, which is gated to `< 9.7.0`.\n *\n * Idempotent: subsequent calls are a no-op.\n */\nexport function subscribeMongooseDiagnosticChannels(tracingChannel: MongooseTracingChannelFactory): void {\n if (subscribed) {\n return;\n }\n subscribed = true;\n\n try {\n setupChannel(tracingChannel, MONGOOSE_DC_CHANNEL_QUERY);\n setupChannel(tracingChannel, MONGOOSE_DC_CHANNEL_AGGREGATE);\n setupChannel(tracingChannel, MONGOOSE_DC_CHANNEL_MODEL_SAVE);\n setupChannel(tracingChannel, MONGOOSE_DC_CHANNEL_MODEL_INSERT_MANY);\n setupChannel(tracingChannel, MONGOOSE_DC_CHANNEL_MODEL_BULK_WRITE);\n setupChannel(tracingChannel, MONGOOSE_DC_CHANNEL_CURSOR_NEXT);\n } catch {\n // The factory relies on `node:diagnostics_channel`, which isn't always\n // available. Fail closed; the SDK simply won't emit mongoose spans here.\n DEBUG_BUILD && debug.log('Mongoose node:diagnostics_channel subscription failed.');\n }\n}\n\nfunction setupChannel(tracingChannel: MongooseTracingChannelFactory, channelName: string): void {\n bindTracingChannelToSpan(tracingChannel<MongooseTracingData>(channelName), data => {\n const collection = data.collection;\n const queryText = redactMongoQuery(data.args?.pipeline ?? data.args?.filter);\n const batchSize = getBatchSize(data);\n\n return startInactiveSpan({\n name: collection ? `mongoose.${collection}.${data.operation}` : `mongoose.${data.operation}`,\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: ORIGIN,\n [SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'db',\n [DB_SYSTEM_NAME]: DB_SYSTEM_NAME_VALUE_MONGODB,\n [DB_OPERATION_NAME]: data.operation,\n [DB_COLLECTION_NAME]: collection ?? undefined,\n [DB_NAMESPACE]: data.database ?? undefined,\n [DB_QUERY_TEXT]: queryText ?? undefined,\n [DB_OPERATION_BATCH_SIZE]: batchSize ?? undefined,\n [SERVER_ADDRESS]: data.serverAddress ?? undefined,\n [SERVER_PORT]: data.serverPort ?? undefined,\n },\n });\n });\n}\n\n/**\n * `db.operation.batch.size` is only meaningful for genuine batch operations.\n * Mongoose's cursor `batchSize` is a fetch-tuning option, not a batch operation\n * size, so it is intentionally excluded here.\n */\nfunction getBatchSize(data: MongooseTracingData): number | undefined {\n const args = data.args;\n const batch = data.operation === 'insertMany' ? args?.docs : data.operation === 'bulkWrite' ? args?.ops : undefined;\n\n return Array.isArray(batch) && batch.length > 1 ? batch.length : undefined;\n}\n\n/**\n * Serialize a mongoose filter/pipeline into `db.query.text` while stripping every\n * value: keys and Mongo operators (`$gt`, `$in`, …) are preserved, leaf values\n * become `'?'`. Mongoose does not sanitize its channel payload, so this prevents\n * raw user data (potential PII) from leaving the process. Returns `undefined`\n * (rather than throwing) on anything it cannot serialize.\n */\nfunction redactMongoQuery(value: unknown): string | undefined {\n if (value == null) {\n return undefined;\n }\n\n try {\n const redacted = redactValue(value, 0);\n const text = JSON.stringify(redacted);\n\n // Skip empty/uninformative shapes (e.g. a `findOne()` with no filter).\n return text == null || text === '{}' || text === '[]' ? undefined : text;\n } catch {\n return undefined;\n }\n}\n\nfunction redactValue(value: unknown, depth: number): unknown {\n if (depth > MAX_REDACTION_DEPTH) {\n return '?';\n }\n\n if (Array.isArray(value)) {\n return value.map(item => redactValue(item, depth + 1));\n }\n\n if (isObjectLike(value)) {\n const out: Record<string, unknown> = {};\n for (const key of Object.keys(value)) {\n out[key] = redactValue((value as Record<string, unknown>)[key], depth + 1);\n }\n\n return out;\n }\n\n return '?';\n}\n"],"names":["DEBUG_BUILD","debug","tracingChannel","bindTracingChannelToSpan","startInactiveSpan","SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN","SEMANTIC_ATTRIBUTE_SENTRY_OP","DB_SYSTEM_NAME","DB_OPERATION_NAME","DB_COLLECTION_NAME","DB_NAMESPACE","DB_QUERY_TEXT","DB_OPERATION_BATCH_SIZE","SERVER_ADDRESS","SERVER_PORT","isObjectLike"],"mappings":";;;;;;;AAyBO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,yBAAA,CAAA,CAAA,CAA4B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAClC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,6BAAA,CAAA,CAAA,CAAgC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACtC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,8BAAA,CAAA,CAAA,CAAiC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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A,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,IAA+B,CAAA,CAAC;AACtC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAG;AACpC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAG,CAAA,GAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAA,CAAA,CAAA,CAAA,EAAkC,GAAG,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,IAAQ,CAAC,CAAA;AAAA,CAAA,CAAA,CAAA,CAC3E;AAEA,CAAA,CAAA,CAAA,CAAA,OAAO,CAAA,CAAA,CAAA;AAAA,CAAA,CACT;AAEA,CAAA,CAAA,OAAO,CAAA,CAAA,CAAA;AACT;;;;;;;;"}
@@ -1,41 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
- const attributes = require('@sentry/conventions/attributes');
4
- const core = require('@sentry/core');
5
-
6
- const ATTR_DB_MONGODB_COLLECTION = "db.mongodb.collection";
7
- const ATTR_DB_NAME = "db.name";
8
- const ATTR_DB_USER = "db.user";
9
- const ATTR_NET_PEER_NAME = "net.peer.name";
10
- const ATTR_NET_PEER_PORT = "net.peer.port";
11
- const ATTR_DB_OPERATION = "db.operation";
12
- const ATTR_DB_SYSTEM = "db.system";
13
- function startMongooseLegacySpan({
14
- collection,
15
- modelName,
16
- operation,
17
- origin,
18
- parentSpan
19
- }) {
20
- const attributes$1 = {
21
- [attributes.SENTRY_KIND]: "client",
22
- [ATTR_DB_MONGODB_COLLECTION]: collection?.name,
23
- [ATTR_DB_NAME]: collection?.conn?.name,
24
- [ATTR_DB_USER]: collection?.conn?.user,
25
- [ATTR_NET_PEER_NAME]: collection?.conn?.host,
26
- [ATTR_NET_PEER_PORT]: collection?.conn?.port,
27
- [ATTR_DB_OPERATION]: operation,
28
- [ATTR_DB_SYSTEM]: "mongoose",
29
- [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: origin
30
- };
31
- return core.startInactiveSpan({
32
- name: `mongoose.${modelName}.${operation}`,
33
- // Set this explicitly, for platforms lacking `inferDbSpanData`
34
- op: "db",
35
- attributes: attributes$1,
36
- parentSpan
37
- });
38
- }
39
-
40
- exports.startMongooseLegacySpan = startMongooseLegacySpan;
41
- //# sourceMappingURL=mongoose-legacy-span.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mongoose-legacy-span.js","sources":["../../../src/mongoose/mongoose-legacy-span.ts"],"sourcesContent":["import { SENTRY_KIND } from '@sentry/conventions/attributes';\nimport type { Span, SpanAttributes } from '@sentry/core';\nimport { SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, startInactiveSpan } from '@sentry/core';\n\n// OTel \"OLD\" db/net semantic-conventions, reproduced from the vendored\n// `@opentelemetry/instrumentation-mongoose` span shape. Inlined as literals to\n// avoid importing the deprecated convention constants.\nconst ATTR_DB_MONGODB_COLLECTION = 'db.mongodb.collection';\nconst ATTR_DB_NAME = 'db.name';\nconst ATTR_DB_USER = 'db.user';\nconst ATTR_NET_PEER_NAME = 'net.peer.name';\nconst ATTR_NET_PEER_PORT = 'net.peer.port';\nconst ATTR_DB_OPERATION = 'db.operation';\nconst ATTR_DB_SYSTEM = 'db.system';\n\n/** The subset of mongoose's `Collection` that the legacy span shape reads. */\nexport interface MongooseLegacyCollection {\n name?: string;\n conn?: { name?: string; user?: string; host?: string; port?: number };\n}\n\nexport interface StartMongooseLegacySpanOptions {\n collection: MongooseLegacyCollection | undefined;\n modelName: string | undefined;\n operation: string;\n origin: string;\n parentSpan?: Span;\n}\n\n/**\n * Start a mongoose client span with the legacy (pre-stable) db/net semantic\n * conventions.\n *\n * Shared by the vendored OTel/IITM instrumentation (`@sentry/node`) and the\n * orchestrion channel subscriber so the two emit an identical span shape,\n * differing only by `origin`.\n */\nexport function startMongooseLegacySpan({\n collection,\n modelName,\n operation,\n origin,\n parentSpan,\n}: StartMongooseLegacySpanOptions): Span {\n const attributes: SpanAttributes = {\n [SENTRY_KIND]: 'client',\n [ATTR_DB_MONGODB_COLLECTION]: collection?.name,\n [ATTR_DB_NAME]: collection?.conn?.name,\n [ATTR_DB_USER]: collection?.conn?.user,\n [ATTR_NET_PEER_NAME]: collection?.conn?.host,\n [ATTR_NET_PEER_PORT]: collection?.conn?.port,\n [ATTR_DB_OPERATION]: operation,\n [ATTR_DB_SYSTEM]: 'mongoose',\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: origin,\n };\n\n return startInactiveSpan({\n name: `mongoose.${modelName}.${operation}`,\n // Set this explicitly, for platforms lacking `inferDbSpanData`\n op: 'db',\n attributes,\n parentSpan,\n });\n}\n"],"names":["attributes","SENTRY_KIND","SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN","startInactiveSpan"],"mappings":";;;;;AAOA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,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,GAA6B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACnC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA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,CAAA,CAAA,CAAOC,sBAAA,CAAkB;AAAA,CAAA,CAAA,CAAA,CACvB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA;AAAA,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,CAAA,CAAA,CAAA,CAExC,CAAA,CAAA,EAAI,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACJH,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CACD,CAAA;AACH;;"}
@@ -1,36 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
- const core = require('@sentry/core');
4
- const diagnosticsChannel = require('node:diagnostics_channel');
5
- const mysql2DcSubscriber = require('./mysql2-dc-subscriber.js');
6
-
7
- function _interopNamespaceDefault(e) {
8
- const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
9
- if (e) {
10
- for (const k in e) {
11
- n[k] = e[k];
12
- }
13
- }
14
- n.default = e;
15
- return n;
16
- }
17
-
18
- const diagnosticsChannel__namespace = /*#__PURE__*/_interopNamespaceDefault(diagnosticsChannel);
19
-
20
- const _mysql2Integration = (() => {
21
- return {
22
- name: "Mysql2",
23
- setupOnce() {
24
- if (!diagnosticsChannel__namespace.tracingChannel) {
25
- return;
26
- }
27
- core.waitForTracingChannelBinding(() => {
28
- mysql2DcSubscriber.subscribeMysql2DiagnosticChannels(diagnosticsChannel__namespace.tracingChannel);
29
- });
30
- }
31
- };
32
- });
33
- const mysql2Integration = core.defineIntegration(_mysql2Integration);
34
-
35
- exports.mysql2Integration = mysql2Integration;
36
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/mysql2/index.ts"],"sourcesContent":["import { defineIntegration, type IntegrationFn, waitForTracingChannelBinding } from '@sentry/core';\nimport * as dc from 'node:diagnostics_channel';\nimport { subscribeMysql2DiagnosticChannels } from './mysql2-dc-subscriber';\n\nconst _mysql2Integration = (() => {\n return {\n name: 'Mysql2',\n setupOnce() {\n // Bail on Node <= 18.18.0, where `tracingChannel` does not exist.\n if (!dc.tracingChannel) {\n return;\n }\n\n // Subscribe to mysql2's native tracing channels (mysql2 >= 3.20.0).\n // This is a no-op on versions that don't publish to the channels, so it is always safe to call.\n waitForTracingChannelBinding(() => {\n subscribeMysql2DiagnosticChannels(dc.tracingChannel);\n });\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Auto-instrument the [mysql2](https://www.npmjs.com/package/mysql2) library via its native\n * `node:diagnostics_channel` tracing channels (mysql2 >= 3.20.0).\n *\n * On older mysql2 versions the channels are never published to, so this integration is inert and\n * the vendored OTel instrumentation (gated to `< 3.20.0`) handles instrumentation instead.\n */\nexport const mysql2Integration = defineIntegration(_mysql2Integration);\n"],"names":["dc","waitForTracingChannelBinding","subscribeMysql2DiagnosticChannels","defineIntegration"],"mappings":";;;;;;;;;;;;;;;;;;;AAIA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,KAAsB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM;AAChC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO;AAAA,CAAA,CAAA,CAAA,CACL,CAAA,CAAA,CAAA,CAAA,EAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACN,SAAA,CAAA,CAAA,CAAY;AAEV,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAACA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,EAAG,cAAA,CAAA,CAAgB;AACtB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACF;AAIA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAAC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CA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AAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkB,CAAA;;"}
@@ -1,68 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
- const attributes = require('@sentry/conventions/attributes');
4
- const core = require('@sentry/core');
5
- const tracingChannel = require('../tracing-channel.js');
6
-
7
- const MYSQL2_DC_CHANNEL_QUERY = "mysql2:query";
8
- const MYSQL2_DC_CHANNEL_EXECUTE = "mysql2:execute";
9
- const MYSQL2_DC_CHANNEL_CONNECT = "mysql2:connect";
10
- const MYSQL2_DC_CHANNEL_POOL_CONNECT = "mysql2:pool:connect";
11
- const ORIGIN = "auto.db.mysql2.diagnostic_channel";
12
- const DB_SYSTEM_NAME_VALUE_MYSQL = "mysql";
13
- const SQL_OPERATION_RE = /^\s*(\w+)/;
14
- function subscribeMysql2DiagnosticChannels(tracingChannel) {
15
- setupQueryChannel(tracingChannel, MYSQL2_DC_CHANNEL_QUERY);
16
- setupQueryChannel(tracingChannel, MYSQL2_DC_CHANNEL_EXECUTE);
17
- setupConnectChannel(tracingChannel, MYSQL2_DC_CHANNEL_CONNECT, "mysql2.connect");
18
- setupConnectChannel(tracingChannel, MYSQL2_DC_CHANNEL_POOL_CONNECT, "mysql2.pool.connect");
19
- }
20
- function setupQueryChannel(tracingChannel$1, channelName) {
21
- tracingChannel.bindTracingChannelToSpan(
22
- tracingChannel$1(channelName),
23
- (data) => {
24
- const queryText = data.query ? core._INTERNAL_sanitizeSqlQuery(data.query) : void 0;
25
- const operation = queryText?.match(SQL_OPERATION_RE)?.[1]?.toUpperCase();
26
- return core.startInactiveSpan({
27
- name: queryText || "mysql2.query",
28
- attributes: {
29
- [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: ORIGIN,
30
- [core.SEMANTIC_ATTRIBUTE_SENTRY_OP]: "db",
31
- [attributes.DB_SYSTEM_NAME]: DB_SYSTEM_NAME_VALUE_MYSQL,
32
- [attributes.DB_QUERY_TEXT]: queryText,
33
- [attributes.DB_OPERATION_NAME]: operation,
34
- [attributes.DB_NAMESPACE]: data.database || void 0,
35
- [attributes.SERVER_ADDRESS]: data.serverAddress,
36
- [attributes.SERVER_PORT]: data.serverPort
37
- }
38
- });
39
- },
40
- { requiresParentSpan: true }
41
- );
42
- }
43
- function setupConnectChannel(tracingChannel$1, channelName, spanName) {
44
- tracingChannel.bindTracingChannelToSpan(
45
- tracingChannel$1(channelName),
46
- (data) => {
47
- return core.startInactiveSpan({
48
- name: spanName,
49
- attributes: {
50
- [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: ORIGIN,
51
- [core.SEMANTIC_ATTRIBUTE_SENTRY_OP]: "db",
52
- [attributes.DB_SYSTEM_NAME]: DB_SYSTEM_NAME_VALUE_MYSQL,
53
- [attributes.DB_NAMESPACE]: data.database || void 0,
54
- [attributes.SERVER_ADDRESS]: data.serverAddress,
55
- [attributes.SERVER_PORT]: data.serverPort
56
- }
57
- });
58
- },
59
- { requiresParentSpan: true }
60
- );
61
- }
62
-
63
- exports.MYSQL2_DC_CHANNEL_CONNECT = MYSQL2_DC_CHANNEL_CONNECT;
64
- exports.MYSQL2_DC_CHANNEL_EXECUTE = MYSQL2_DC_CHANNEL_EXECUTE;
65
- exports.MYSQL2_DC_CHANNEL_POOL_CONNECT = MYSQL2_DC_CHANNEL_POOL_CONNECT;
66
- exports.MYSQL2_DC_CHANNEL_QUERY = MYSQL2_DC_CHANNEL_QUERY;
67
- exports.subscribeMysql2DiagnosticChannels = subscribeMysql2DiagnosticChannels;
68
- //# sourceMappingURL=mysql2-dc-subscriber.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mysql2-dc-subscriber.js","sources":["../../../src/mysql2/mysql2-dc-subscriber.ts"],"sourcesContent":["import type { TracingChannel } from 'node:diagnostics_channel';\nimport {\n DB_NAMESPACE,\n DB_OPERATION_NAME,\n DB_QUERY_TEXT,\n DB_SYSTEM_NAME,\n SERVER_ADDRESS,\n SERVER_PORT,\n} from '@sentry/conventions/attributes';\nimport {\n _INTERNAL_sanitizeSqlQuery,\n SEMANTIC_ATTRIBUTE_SENTRY_OP,\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n startInactiveSpan,\n} from '@sentry/core';\nimport { bindTracingChannelToSpan } from '../tracing-channel';\n\n// Channel names published by mysql2 >= 3.20.0 (see mysql2 `lib/tracing.js`).\n// Hardcoded so the subscriber does not have to import mysql2 — the channels\n// just have to be subscribed to before the user's mysql2 code publishes.\nexport const MYSQL2_DC_CHANNEL_QUERY = 'mysql2:query';\nexport const MYSQL2_DC_CHANNEL_EXECUTE = 'mysql2:execute';\nexport const MYSQL2_DC_CHANNEL_CONNECT = 'mysql2:connect';\nexport const MYSQL2_DC_CHANNEL_POOL_CONNECT = 'mysql2:pool:connect';\n\nconst ORIGIN = 'auto.db.mysql2.diagnostic_channel';\nconst DB_SYSTEM_NAME_VALUE_MYSQL = 'mysql';\n\n// Leading keyword of a SQL statement (SELECT, INSERT, …) → `db.operation.name`.\nconst SQL_OPERATION_RE = /^\\s*(\\w+)/;\n\n/**\n * Shape of the context object mysql2 >= 3.20.0 publishes on its query/execute\n * tracing channels (see mysql2 `lib/base/connection.js`).\n *\n * Node's `traceCallback`/`tracePromise` mutate this same object with\n * `result`/`error` once the operation settles, which `bindTracingChannelToSpan`\n * reads in its lifecycle handlers — hence both are declared optional here.\n *\n * `query` is the SQL statement. On the `query` channel mysql2 has already\n * inlined `values` into it (`Connection.format`), so it carries raw user data;\n * on the `execute` channel it keeps `?` placeholders. Either way we sanitize it\n * before emitting `db.query.text` and never attach `values`.\n */\nexport interface MySQL2QueryData {\n query?: string;\n values?: unknown;\n database?: string;\n serverAddress?: string;\n /** Absent for unix-socket connections, where `serverAddress` is the socket path. */\n serverPort?: number;\n result?: unknown;\n error?: Error;\n}\n\n/**\n * Shape of the context object mysql2 >= 3.20.0 publishes on its\n * `connect`/`pool:connect` channels.\n */\nexport interface MySQL2ConnectData {\n database?: string;\n serverAddress?: string;\n serverPort?: number;\n user?: string;\n result?: unknown;\n error?: Error;\n}\n\n/**\n * Platform-provided factory that creates a native tracing channel for the given name. The\n * subscriber binds the span and its lifecycle onto the channel via `bindTracingChannelToSpan`,\n * which propagates the active span through the runtime's async context.\n *\n * Node passes `node:diagnostics_channel`'s `tracingChannel` directly.\n */\nexport type MySQL2TracingChannelFactory = <T extends object>(name: string) => TracingChannel<T, T>;\n\n/**\n * Subscribe Sentry span handlers to mysql2's diagnostics-channel events\n * (`mysql2:query`, `:execute`, `:connect`, `:pool:connect`), published by\n * mysql2 >= 3.20.0.\n *\n * On older mysql2 versions the channels are never published to, so the\n * subscribers are inert — there is no double-instrumentation against the\n * vendored OTel patcher, which is gated to `< 3.20.0`.\n */\nexport function subscribeMysql2DiagnosticChannels(tracingChannel: MySQL2TracingChannelFactory): void {\n setupQueryChannel(tracingChannel, MYSQL2_DC_CHANNEL_QUERY);\n setupQueryChannel(tracingChannel, MYSQL2_DC_CHANNEL_EXECUTE);\n setupConnectChannel(tracingChannel, MYSQL2_DC_CHANNEL_CONNECT, 'mysql2.connect');\n setupConnectChannel(tracingChannel, MYSQL2_DC_CHANNEL_POOL_CONNECT, 'mysql2.pool.connect');\n}\n\nfunction setupQueryChannel(tracingChannel: MySQL2TracingChannelFactory, channelName: string): void {\n bindTracingChannelToSpan(\n tracingChannel<MySQL2QueryData>(channelName),\n data => {\n // mysql2 does not sanitize its channel payload, so the statement may carry\n // raw user values (on the `query` channel they are inlined). Strip every\n // literal before it leaves the process; `values` is never attached.\n const queryText = data.query ? _INTERNAL_sanitizeSqlQuery(data.query) : undefined;\n const operation = queryText?.match(SQL_OPERATION_RE)?.[1]?.toUpperCase();\n\n return startInactiveSpan({\n name: queryText || 'mysql2.query',\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: ORIGIN,\n [SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'db',\n [DB_SYSTEM_NAME]: DB_SYSTEM_NAME_VALUE_MYSQL,\n [DB_QUERY_TEXT]: queryText,\n [DB_OPERATION_NAME]: operation,\n [DB_NAMESPACE]: data.database || undefined,\n [SERVER_ADDRESS]: data.serverAddress,\n [SERVER_PORT]: data.serverPort,\n },\n });\n },\n { requiresParentSpan: true },\n );\n}\n\nfunction setupConnectChannel(tracingChannel: MySQL2TracingChannelFactory, channelName: string, spanName: string): void {\n bindTracingChannelToSpan(\n tracingChannel<MySQL2ConnectData>(channelName),\n data => {\n return startInactiveSpan({\n name: spanName,\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: ORIGIN,\n [SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'db',\n [DB_SYSTEM_NAME]: DB_SYSTEM_NAME_VALUE_MYSQL,\n [DB_NAMESPACE]: data.database || undefined,\n [SERVER_ADDRESS]: data.serverAddress,\n [SERVER_PORT]: data.serverPort,\n },\n });\n },\n { requiresParentSpan: true },\n );\n}\n"],"names":["tracingChannel","bindTracingChannelToSpan","_INTERNAL_sanitizeSqlQuery","startInactiveSpan","SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN","SEMANTIC_ATTRIBUTE_SENTRY_OP","DB_SYSTEM_NAME","DB_QUERY_TEXT","DB_OPERATION_NAME","DB_NAMESPACE","SERVER_ADDRESS","SERVER_PORT"],"mappings":";;;;;;AAoBO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,uBAAA,CAAA,CAAA,CAA0B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAChC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,yBAAA,CAAA,CAAA,CAA4B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAClC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,yBAAA,CAAA,CAAA,CAA4B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA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,CACvB,CAACC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAW,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACtB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACD,CAAA;AAAA,CAAA,CAAA,CAAA,CACH,CAAA;AAAA,CAAA,CAAA,CAAA,CACA,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAoB,CAAA,CAAA,CAAA,CAAA,CAAA;AAAK,CAAA,CAAA,CAC7B;AACF;;;;;;"}
@@ -1,95 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
- const amqplib = require('../integrations/tracing-channel/amqplib.js');
4
- const anthropic = require('../integrations/tracing-channel/anthropic.js');
5
- const index = require('../integrations/tracing-channel/aws-sdk/index.js');
6
- const dataloader = require('../integrations/tracing-channel/dataloader.js');
7
- const genericPool = require('../integrations/tracing-channel/generic-pool.js');
8
- const googleGenai = require('../integrations/tracing-channel/google-genai.js');
9
- const index$3 = require('../integrations/tracing-channel/graphql/index.js');
10
- const hapi = require('../integrations/tracing-channel/hapi.js');
11
- const koa = require('../integrations/tracing-channel/koa.js');
12
- const ioredis = require('../integrations/tracing-channel/ioredis.js');
13
- const index$4 = require('../integrations/tracing-channel/kafkajs/index.js');
14
- const knex = require('../integrations/tracing-channel/knex.js');
15
- const langchain = require('../integrations/tracing-channel/langchain.js');
16
- const langgraph = require('../integrations/tracing-channel/langgraph.js');
17
- const lruMemoizer = require('../integrations/tracing-channel/lru-memoizer.js');
18
- const mongodb = require('../integrations/tracing-channel/mongodb.js');
19
- const mongoose = require('../integrations/tracing-channel/mongoose.js');
20
- const mysql = require('../integrations/tracing-channel/mysql.js');
21
- const mysql2 = require('../integrations/tracing-channel/mysql2.js');
22
- const openai = require('../integrations/tracing-channel/openai.js');
23
- const postgres = require('../integrations/tracing-channel/postgres.js');
24
- const postgresJs = require('../integrations/tracing-channel/postgres-js.js');
25
- const tedious = require('../integrations/tracing-channel/tedious.js');
26
- const vercelAi = require('../integrations/tracing-channel/vercel-ai.js');
27
- const index$1 = require('../integrations/tracing-channel/express/index.js');
28
- const index$2 = require('../integrations/tracing-channel/firebase/index.js');
29
- const detect = require('./detect.js');
30
- const moduleInjected = require('./moduleInjected.js');
31
- const nestjs = require('./config/nestjs.js');
32
- const remix = require('./config/remix.js');
33
- const redis = require('../integrations/tracing-channel/redis.js');
34
-
35
- const channelIntegrations = {
36
- postgresIntegration: postgres.postgresIntegration,
37
- postgresJsIntegration: postgresJs.postgresJsIntegration,
38
- mongoIntegration: mongodb.mongodbIntegration,
39
- mysqlIntegration: mysql.mysqlIntegration,
40
- mysql2Integration: mysql2.mysql2Integration,
41
- genericPoolIntegration: genericPool.genericPoolIntegration,
42
- mongooseIntegration: mongoose.mongooseIntegration,
43
- lruMemoizerIntegration: lruMemoizer.lruMemoizerIntegration,
44
- openaiIntegration: openai.openaiIntegration,
45
- anthropicIntegration: anthropic.anthropicIntegration,
46
- googleGenAIIntegration: googleGenai.googleGenAIIntegration,
47
- langChainIntegration: langchain.langChainIntegration,
48
- langGraphIntegration: langgraph.langGraphIntegration,
49
- vercelAiIntegration: vercelAi.vercelAiIntegration,
50
- amqplibIntegration: amqplib.amqplibIntegration,
51
- hapiIntegration: hapi.hapiIntegration,
52
- koaIntegration: koa.koaIntegration,
53
- expressIntegration: index$1.expressIntegration,
54
- graphqlIntegration: index$3.graphqlDiagnosticsIntegration,
55
- kafkajsIntegration: index$4.kafkajsIntegration,
56
- tediousIntegration: tedious.tediousIntegration,
57
- awsIntegration: index.awsIntegration,
58
- firebaseIntegration: index$2.firebaseIntegration
59
- };
60
-
61
- exports.amqplibIntegration = amqplib.amqplibIntegration;
62
- exports.anthropicIntegration = anthropic.anthropicIntegration;
63
- exports.awsIntegration = index.awsIntegration;
64
- exports.dataloaderIntegration = dataloader.dataloaderIntegration;
65
- exports.genericPoolIntegration = genericPool.genericPoolIntegration;
66
- exports.googleGenAIIntegration = googleGenai.googleGenAIIntegration;
67
- exports.graphqlDiagnosticsIntegration = index$3.graphqlDiagnosticsIntegration;
68
- exports.graphqlIntegration = index$3.graphqlIntegration;
69
- exports.hapiIntegration = hapi.hapiIntegration;
70
- exports.koaIntegration = koa.koaIntegration;
71
- exports.ioredisChannelIntegration = ioredis.ioredisChannelIntegration;
72
- exports.kafkajsIntegration = index$4.kafkajsIntegration;
73
- exports.knexIntegration = knex.knexIntegration;
74
- exports.langChainIntegration = langchain.langChainIntegration;
75
- exports.langGraphIntegration = langgraph.langGraphIntegration;
76
- exports.lruMemoizerIntegration = lruMemoizer.lruMemoizerIntegration;
77
- exports.mongodbIntegration = mongodb.mongodbIntegration;
78
- exports.mongooseIntegration = mongoose.mongooseIntegration;
79
- exports.mysqlIntegration = mysql.mysqlIntegration;
80
- exports.mysql2Integration = mysql2.mysql2Integration;
81
- exports.openaiIntegration = openai.openaiIntegration;
82
- exports.postgresIntegration = postgres.postgresIntegration;
83
- exports.postgresJsIntegration = postgresJs.postgresJsIntegration;
84
- exports.tediousIntegration = tedious.tediousIntegration;
85
- exports.vercelAiIntegration = vercelAi.vercelAiIntegration;
86
- exports.expressIntegration = index$1.expressIntegration;
87
- exports.firebaseIntegration = index$2.firebaseIntegration;
88
- exports.detectOrchestrionSetup = detect.detectOrchestrionSetup;
89
- exports.isOrchestrionInjected = detect.isOrchestrionInjected;
90
- exports.orchestrionModuleInjected = moduleInjected.orchestrionModuleInjected;
91
- exports.nestjsChannels = nestjs.nestjsChannels;
92
- exports.remixChannels = remix.remixChannels;
93
- exports.redisChannelIntegration = redis.redisChannelIntegration;
94
- exports.channelIntegrations = channelIntegrations;
95
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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":["postgresIntegration","postgresJsIntegration","mongodbIntegration","mysqlIntegration","mysql2Integration","genericPoolIntegration","mongooseIntegration","lruMemoizerIntegration","openaiIntegration","anthropicIntegration","googleGenAIIntegration","langChainIntegration","langGraphIntegration","vercelAiIntegration","amqplibIntegration","hapiIntegration","koaIntegration","expressIntegration","graphqlDiagnosticsIntegration","kafkajsIntegration","tediousIntegration","awsIntegration","firebaseIntegration"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkGO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,mBAAA,C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AAA,CAAAA,CAAAA,CAAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACAC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA;AACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,21 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
- const core = require('@sentry/core');
4
-
5
- function orchestrionModuleInjected(moduleName, integrationFn) {
6
- var _a;
7
- const marker = (_a = core.GLOBAL_OBJ).__SENTRY_ORCHESTRION__ ?? (_a.__SENTRY_ORCHESTRION__ = {});
8
- if (marker.bundler === void 0 || Array.isArray(marker.bundler)) {
9
- const bundler = marker.bundler ?? (marker.bundler = []);
10
- if (!bundler.includes(moduleName)) {
11
- bundler.push(moduleName);
12
- }
13
- }
14
- if (integrationFn) {
15
- (marker.integrations ?? (marker.integrations = /* @__PURE__ */ new Map())).set(moduleName, integrationFn);
16
- }
17
- core.getClient()?.emit("orchestrion.module-injected", moduleName);
18
- }
19
-
20
- exports.orchestrionModuleInjected = orchestrionModuleInjected;
21
- //# sourceMappingURL=moduleInjected.js.map
@@ -1 +0,0 @@
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":["GLOBAL_OBJ","getClient"],"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,CAA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;;"}
@@ -1,17 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
- const hook = require('../../vendored/@apm-js-collab/tracing-hooks/hook.js');
4
- const diagnostics = require('../../vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js');
5
-
6
-
7
-
8
- exports.createDiagnosticsPort = hook.createDiagnosticsPort;
9
- exports.initialize = hook.initialize;
10
- exports.initializeSync = hook.initializeSync;
11
- exports.load = hook.load;
12
- exports.loadResult = hook.loadResult;
13
- exports.loadSync = hook.loadSync;
14
- exports.resolve = hook.resolve;
15
- exports.resolveSync = hook.resolveSync;
16
- exports.setDiagnosticsHook = diagnostics.diagnostics.setDiagnosticsHook;
17
- //# sourceMappingURL=hook.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hook.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
@@ -1,80 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
- const core = require('@sentry/core');
4
- const require$$1 = require('node:module');
5
- const require$$3 = require('node:url');
6
- const index = require('../config/index.js');
7
- const index$1 = require('../../vendored/@apm-js-collab/tracing-hooks/index.js');
8
- const hook = require('../../vendored/@apm-js-collab/tracing-hooks/hook.js');
9
- const diagnostics = require('../../vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js');
10
-
11
- function _interopNamespaceDefault(e) {
12
- const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
13
- if (e) {
14
- for (const k in e) {
15
- n[k] = e[k];
16
- }
17
- }
18
- n.default = e;
19
- return n;
20
- }
21
-
22
- const require$$1__namespace = /*#__PURE__*/_interopNamespaceDefault(require$$1);
23
-
24
- function hasStableSyncModuleHooks(isDeno) {
25
- if (isDeno) {
26
- return true;
27
- }
28
- const { major = 0, minor = 0 } = core.parseSemver(process.versions.node ?? "0.0.0");
29
- return major > 25 || major === 25 && minor >= 1 || major === 24 && minor >= 13;
30
- }
31
- function registerDiagnosticsChannelInjection() {
32
- if (core.GLOBAL_OBJ?.__SENTRY_ORCHESTRION__?.runtime) {
33
- return;
34
- }
35
- const globalAny = globalThis;
36
- const stableSyncHooks = hasStableSyncModuleHooks(Boolean(globalAny.Deno));
37
- const mod = require$$1__namespace;
38
- diagnostics.diagnostics.setDiagnosticsHook(({ moduleName, error }) => {
39
- if (error) {
40
- core.debug.warn(`[orchestrion] failed to inject diagnostics-channel into ${moduleName}:`, error);
41
- } else {
42
- core.GLOBAL_OBJ.__SENTRY_ORCHESTRION__ = core.GLOBAL_OBJ.__SENTRY_ORCHESTRION__ || {};
43
- core.GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime = core.GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime || [];
44
- core.GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime.push(moduleName);
45
- core.getClient()?.emit("orchestrion.module-injected", moduleName);
46
- }
47
- });
48
- try {
49
- if (typeof mod.registerHooks === "function" && stableSyncHooks) {
50
- hook.initializeSync({ instrumentations: index.SENTRY_INSTRUMENTATIONS });
51
- mod.registerHooks({ resolve: hook.resolveSync, load: hook.loadSync });
52
- core.debug.log("Registered diagnostics-channel injection via Module.registerHooks()");
53
- } else if (typeof mod.register === "function" && !globalAny.Bun && !globalAny.Deno) {
54
- const diagnosticsPort = hook.createDiagnosticsPort();
55
- let parentURL;
56
- parentURL = require$$3.pathToFileURL(__filename).href;
57
- mod.register("@sentry/server-utils/orchestrion/hook", {
58
- parentURL,
59
- data: { instrumentations: index.SENTRY_INSTRUMENTATIONS, diagnosticsPort },
60
- transferList: [diagnosticsPort]
61
- });
62
- new index$1.default({ instrumentations: index.SENTRY_INSTRUMENTATIONS }).patch();
63
- core.debug.log("Registered diagnostics-channel injection via Module.register()");
64
- } else {
65
- core.debug.warn("No available Node API to register diagnostics-channel injection hooks; skipping.");
66
- return;
67
- }
68
- } catch (error) {
69
- core.debug.warn(
70
- "Failed to register diagnostics-channel injection hooks; channel-based integrations will not record spans.",
71
- error
72
- );
73
- return;
74
- }
75
- core.GLOBAL_OBJ.__SENTRY_ORCHESTRION__ = core.GLOBAL_OBJ.__SENTRY_ORCHESTRION__ || {};
76
- core.GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime = core.GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime || [];
77
- }
78
-
79
- exports.registerDiagnosticsChannelInjection = registerDiagnosticsChannelInjection;
80
- //# sourceMappingURL=register.js.map