@sentry/server-utils 10.65.0 → 10.66.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.
- package/build/cjs/graphql/graphql-dc-subscriber.js +2 -4
- package/build/cjs/graphql/graphql-dc-subscriber.js.map +1 -1
- package/build/cjs/graphql/utils.js +7 -1
- package/build/cjs/graphql/utils.js.map +1 -1
- package/build/cjs/index.js +11 -8
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/dataloader.js +95 -0
- package/build/cjs/integrations/tracing-channel/dataloader.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/generic-pool.js +34 -0
- package/build/cjs/integrations/tracing-channel/generic-pool.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/graphql/spans.js +2 -2
- package/build/cjs/integrations/tracing-channel/graphql/spans.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/ioredis.js +29 -26
- package/build/cjs/integrations/tracing-channel/ioredis.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/kafkajs/consumer.js +71 -0
- package/build/cjs/integrations/tracing-channel/kafkajs/consumer.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/kafkajs/index.js +70 -0
- package/build/cjs/integrations/tracing-channel/kafkajs/index.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/kafkajs/semconv.js +22 -0
- package/build/cjs/integrations/tracing-channel/kafkajs/semconv.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/kafkajs/spans.js +119 -0
- package/build/cjs/integrations/tracing-channel/kafkajs/spans.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/knex.js +188 -0
- package/build/cjs/integrations/tracing-channel/knex.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/mysql2.js +83 -0
- package/build/cjs/integrations/tracing-channel/mysql2.js.map +1 -0
- package/build/cjs/orchestrion/bundler/esbuild.js +11 -0
- package/build/cjs/orchestrion/bundler/esbuild.js.map +1 -0
- package/build/cjs/orchestrion/bundler/options.js +15 -0
- package/build/cjs/orchestrion/bundler/options.js.map +1 -0
- package/build/cjs/orchestrion/bundler/rollup.js +11 -0
- package/build/cjs/orchestrion/bundler/rollup.js.map +1 -0
- package/build/cjs/orchestrion/bundler/vite.js +4 -21
- package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
- package/build/cjs/orchestrion/bundler/webpack.js +32 -0
- package/build/cjs/orchestrion/bundler/webpack.js.map +1 -0
- package/build/cjs/orchestrion/channels.js +50 -20
- package/build/cjs/orchestrion/channels.js.map +1 -1
- package/build/cjs/orchestrion/config/dataloader.js +53 -0
- package/build/cjs/orchestrion/config/dataloader.js.map +1 -0
- package/build/cjs/orchestrion/config/firebase.js +8 -0
- package/build/cjs/orchestrion/config/firebase.js.map +1 -0
- package/build/cjs/orchestrion/config/generic-pool.js +21 -0
- package/build/cjs/orchestrion/config/generic-pool.js.map +1 -0
- package/build/cjs/orchestrion/config/index.js +55 -23
- package/build/cjs/orchestrion/config/index.js.map +1 -1
- package/build/cjs/orchestrion/config/kafkajs.js +30 -0
- package/build/cjs/orchestrion/config/kafkajs.js.map +1 -0
- package/build/cjs/orchestrion/config/knex.js +43 -0
- package/build/cjs/orchestrion/config/knex.js.map +1 -0
- package/build/cjs/orchestrion/config/langchain.js +8 -0
- package/build/cjs/orchestrion/config/langchain.js.map +1 -0
- package/build/cjs/orchestrion/config/langgraph.js +8 -0
- package/build/cjs/orchestrion/config/langgraph.js.map +1 -0
- package/build/cjs/orchestrion/config/mongodb.js +8 -0
- package/build/cjs/orchestrion/config/mongodb.js.map +1 -0
- package/build/cjs/orchestrion/config/mongoose.js +8 -0
- package/build/cjs/orchestrion/config/mongoose.js.map +1 -0
- package/build/cjs/orchestrion/config/mysql2.js +32 -0
- package/build/cjs/orchestrion/config/mysql2.js.map +1 -0
- package/build/cjs/orchestrion/config/nestjs.js +122 -0
- package/build/cjs/orchestrion/config/nestjs.js.map +1 -0
- package/build/cjs/orchestrion/config/prisma.js +8 -0
- package/build/cjs/orchestrion/config/prisma.js.map +1 -0
- package/build/cjs/orchestrion/config/react-router.js +8 -0
- package/build/cjs/orchestrion/config/react-router.js.map +1 -0
- package/build/cjs/orchestrion/config/remix.js +8 -0
- package/build/cjs/orchestrion/config/remix.js.map +1 -0
- package/build/cjs/orchestrion/config/tedious.js +8 -0
- package/build/cjs/orchestrion/config/tedious.js.map +1 -0
- package/build/cjs/orchestrion/detect.js +12 -11
- package/build/cjs/orchestrion/detect.js.map +1 -1
- package/build/cjs/orchestrion/index.js +16 -1
- package/build/cjs/orchestrion/index.js.map +1 -1
- package/build/cjs/orchestrion/runtime/register.js +25 -14
- package/build/cjs/orchestrion/runtime/register.js.map +1 -1
- package/build/cjs/prisma/global.js +14 -0
- package/build/cjs/prisma/global.js.map +1 -0
- package/build/cjs/prisma/index.js +27 -0
- package/build/cjs/prisma/index.js.map +1 -0
- package/build/cjs/prisma/tracing-helper.js +211 -0
- package/build/cjs/prisma/tracing-helper.js.map +1 -0
- package/build/cjs/vercel-ai/util.js +0 -11
- package/build/cjs/vercel-ai/util.js.map +1 -1
- package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js +9 -9
- package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/esm/graphql/graphql-dc-subscriber.js +3 -5
- package/build/esm/graphql/graphql-dc-subscriber.js.map +1 -1
- package/build/esm/graphql/utils.js +8 -2
- package/build/esm/graphql/utils.js.map +1 -1
- package/build/esm/index.js +1 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/integrations/tracing-channel/dataloader.js +93 -0
- package/build/esm/integrations/tracing-channel/dataloader.js.map +1 -0
- package/build/esm/integrations/tracing-channel/generic-pool.js +32 -0
- package/build/esm/integrations/tracing-channel/generic-pool.js.map +1 -0
- package/build/esm/integrations/tracing-channel/graphql/spans.js +3 -3
- package/build/esm/integrations/tracing-channel/graphql/spans.js.map +1 -1
- package/build/esm/integrations/tracing-channel/ioredis.js +29 -27
- package/build/esm/integrations/tracing-channel/ioredis.js.map +1 -1
- package/build/esm/integrations/tracing-channel/kafkajs/consumer.js +67 -0
- package/build/esm/integrations/tracing-channel/kafkajs/consumer.js.map +1 -0
- package/build/esm/integrations/tracing-channel/kafkajs/index.js +68 -0
- package/build/esm/integrations/tracing-channel/kafkajs/index.js.map +1 -0
- package/build/esm/integrations/tracing-channel/kafkajs/semconv.js +12 -0
- package/build/esm/integrations/tracing-channel/kafkajs/semconv.js.map +1 -0
- package/build/esm/integrations/tracing-channel/kafkajs/spans.js +112 -0
- package/build/esm/integrations/tracing-channel/kafkajs/spans.js.map +1 -0
- package/build/esm/integrations/tracing-channel/knex.js +186 -0
- package/build/esm/integrations/tracing-channel/knex.js.map +1 -0
- package/build/esm/integrations/tracing-channel/mysql2.js +81 -0
- package/build/esm/integrations/tracing-channel/mysql2.js.map +1 -0
- package/build/esm/orchestrion/bundler/esbuild.js +9 -0
- package/build/esm/orchestrion/bundler/esbuild.js.map +1 -0
- package/build/esm/orchestrion/bundler/options.js +13 -0
- package/build/esm/orchestrion/bundler/options.js.map +1 -0
- package/build/esm/orchestrion/bundler/rollup.js +9 -0
- package/build/esm/orchestrion/bundler/rollup.js.map +1 -0
- package/build/esm/orchestrion/bundler/vite.js +5 -22
- package/build/esm/orchestrion/bundler/vite.js.map +1 -1
- package/build/esm/orchestrion/bundler/webpack.js +27 -0
- package/build/esm/orchestrion/bundler/webpack.js.map +1 -0
- package/build/esm/orchestrion/channels.js +50 -20
- package/build/esm/orchestrion/channels.js.map +1 -1
- package/build/esm/orchestrion/config/dataloader.js +50 -0
- package/build/esm/orchestrion/config/dataloader.js.map +1 -0
- package/build/esm/orchestrion/config/firebase.js +5 -0
- package/build/esm/orchestrion/config/firebase.js.map +1 -0
- package/build/esm/orchestrion/config/generic-pool.js +18 -0
- package/build/esm/orchestrion/config/generic-pool.js.map +1 -0
- package/build/esm/orchestrion/config/index.js +55 -24
- package/build/esm/orchestrion/config/index.js.map +1 -1
- package/build/esm/orchestrion/config/kafkajs.js +27 -0
- package/build/esm/orchestrion/config/kafkajs.js.map +1 -0
- package/build/esm/orchestrion/config/knex.js +40 -0
- package/build/esm/orchestrion/config/knex.js.map +1 -0
- package/build/esm/orchestrion/config/langchain.js +5 -0
- package/build/esm/orchestrion/config/langchain.js.map +1 -0
- package/build/esm/orchestrion/config/langgraph.js +5 -0
- package/build/esm/orchestrion/config/langgraph.js.map +1 -0
- package/build/esm/orchestrion/config/mongodb.js +5 -0
- package/build/esm/orchestrion/config/mongodb.js.map +1 -0
- package/build/esm/orchestrion/config/mongoose.js +5 -0
- package/build/esm/orchestrion/config/mongoose.js.map +1 -0
- package/build/esm/orchestrion/config/mysql2.js +29 -0
- package/build/esm/orchestrion/config/mysql2.js.map +1 -0
- package/build/esm/orchestrion/config/nestjs.js +119 -0
- package/build/esm/orchestrion/config/nestjs.js.map +1 -0
- package/build/esm/orchestrion/config/prisma.js +5 -0
- package/build/esm/orchestrion/config/prisma.js.map +1 -0
- package/build/esm/orchestrion/config/react-router.js +5 -0
- package/build/esm/orchestrion/config/react-router.js.map +1 -0
- package/build/esm/orchestrion/config/remix.js +5 -0
- package/build/esm/orchestrion/config/remix.js.map +1 -0
- package/build/esm/orchestrion/config/tedious.js +5 -0
- package/build/esm/orchestrion/config/tedious.js.map +1 -0
- package/build/esm/orchestrion/detect.js +13 -12
- package/build/esm/orchestrion/detect.js.map +1 -1
- package/build/esm/orchestrion/index.js +11 -2
- package/build/esm/orchestrion/index.js.map +1 -1
- package/build/esm/orchestrion/runtime/register.js +27 -16
- package/build/esm/orchestrion/runtime/register.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/prisma/global.js +12 -0
- package/build/esm/prisma/global.js.map +1 -0
- package/build/esm/prisma/index.js +24 -0
- package/build/esm/prisma/index.js.map +1 -0
- package/build/esm/prisma/tracing-helper.js +209 -0
- package/build/esm/prisma/tracing-helper.js.map +1 -0
- package/build/esm/vercel-ai/util.js +1 -11
- package/build/esm/vercel-ai/util.js.map +1 -1
- package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js +11 -11
- package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/types/graphql/utils.d.ts +2 -6
- package/build/types/graphql/utils.d.ts.map +1 -1
- package/build/types/index.d.ts +2 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/dataloader.d.ts +11 -0
- package/build/types/integrations/tracing-channel/dataloader.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/generic-pool.d.ts +10 -0
- package/build/types/integrations/tracing-channel/generic-pool.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/ioredis.d.ts +20 -0
- package/build/types/integrations/tracing-channel/ioredis.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/kafkajs/consumer.d.ts +8 -0
- package/build/types/integrations/tracing-channel/kafkajs/consumer.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/kafkajs/index.d.ts +17 -0
- package/build/types/integrations/tracing-channel/kafkajs/index.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/kafkajs/semconv.d.ts +10 -0
- package/build/types/integrations/tracing-channel/kafkajs/semconv.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/kafkajs/spans.d.ts +38 -0
- package/build/types/integrations/tracing-channel/kafkajs/spans.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/kafkajs/types.d.ts +40 -0
- package/build/types/integrations/tracing-channel/kafkajs/types.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/knex.d.ts +11 -0
- package/build/types/integrations/tracing-channel/knex.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/mysql2.d.ts +15 -0
- package/build/types/integrations/tracing-channel/mysql2.d.ts.map +1 -0
- package/build/types/orchestrion/bundler/esbuild.d.ts +21 -0
- package/build/types/orchestrion/bundler/esbuild.d.ts.map +1 -0
- package/build/types/orchestrion/bundler/options.d.ts +19 -0
- package/build/types/orchestrion/bundler/options.d.ts.map +1 -0
- package/build/types/orchestrion/bundler/rollup.d.ts +17 -0
- package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -0
- package/build/types/orchestrion/bundler/vite.d.ts +4 -17
- package/build/types/orchestrion/bundler/vite.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/webpack.d.ts +19 -0
- package/build/types/orchestrion/bundler/webpack.d.ts.map +1 -0
- package/build/types/orchestrion/channels.d.ts +64 -37
- package/build/types/orchestrion/channels.d.ts.map +1 -1
- package/build/types/orchestrion/config/dataloader.d.ts +46 -0
- package/build/types/orchestrion/config/dataloader.d.ts.map +1 -0
- package/build/types/orchestrion/config/firebase.d.ts +4 -0
- package/build/types/orchestrion/config/firebase.d.ts.map +1 -0
- package/build/types/orchestrion/config/generic-pool.d.ts +31 -0
- package/build/types/orchestrion/config/generic-pool.d.ts.map +1 -0
- package/build/types/orchestrion/config/index.d.ts +18 -5
- package/build/types/orchestrion/config/index.d.ts.map +1 -1
- package/build/types/orchestrion/config/kafkajs.d.ts +17 -0
- package/build/types/orchestrion/config/kafkajs.d.ts.map +1 -0
- package/build/types/orchestrion/config/knex.d.ts +9 -0
- package/build/types/orchestrion/config/knex.d.ts.map +1 -0
- package/build/types/orchestrion/config/langchain.d.ts +4 -0
- package/build/types/orchestrion/config/langchain.d.ts.map +1 -0
- package/build/types/orchestrion/config/langgraph.d.ts +4 -0
- package/build/types/orchestrion/config/langgraph.d.ts.map +1 -0
- package/build/types/orchestrion/config/mongodb.d.ts +4 -0
- package/build/types/orchestrion/config/mongodb.d.ts.map +1 -0
- package/build/types/orchestrion/config/mongoose.d.ts +4 -0
- package/build/types/orchestrion/config/mongoose.d.ts.map +1 -0
- package/build/types/orchestrion/config/mysql2.d.ts +18 -0
- package/build/types/orchestrion/config/mysql2.d.ts.map +1 -0
- package/build/types/orchestrion/config/nestjs.d.ts +24 -0
- package/build/types/orchestrion/config/nestjs.d.ts.map +1 -0
- package/build/types/orchestrion/config/prisma.d.ts +4 -0
- package/build/types/orchestrion/config/prisma.d.ts.map +1 -0
- package/build/types/orchestrion/config/react-router.d.ts +4 -0
- package/build/types/orchestrion/config/react-router.d.ts.map +1 -0
- package/build/types/orchestrion/config/remix.d.ts +4 -0
- package/build/types/orchestrion/config/remix.d.ts.map +1 -0
- package/build/types/orchestrion/config/tedious.d.ts +4 -0
- package/build/types/orchestrion/config/tedious.d.ts.map +1 -0
- package/build/types/orchestrion/detect.d.ts +3 -10
- package/build/types/orchestrion/detect.d.ts.map +1 -1
- package/build/types/orchestrion/index.d.ts +25 -1
- package/build/types/orchestrion/index.d.ts.map +1 -1
- package/build/types/orchestrion/runtime/register.d.ts +11 -9
- package/build/types/orchestrion/runtime/register.d.ts.map +1 -1
- package/build/types/prisma/global.d.ts +5 -0
- package/build/types/prisma/global.d.ts.map +1 -0
- package/build/types/prisma/index.d.ts +45 -0
- package/build/types/prisma/index.d.ts.map +1 -0
- package/build/types/prisma/tracing-helper.d.ts +46 -0
- package/build/types/prisma/tracing-helper.d.ts.map +1 -0
- package/build/types/prisma/types.d.ts +37 -0
- package/build/types/prisma/types.d.ts.map +1 -0
- package/build/types/vercel-ai/util.d.ts +0 -2
- package/build/types/vercel-ai/util.d.ts.map +1 -1
- package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
- package/build/types-ts3.8/graphql/utils.d.ts +2 -6
- package/build/types-ts3.8/index.d.ts +2 -0
- package/build/types-ts3.8/integrations/tracing-channel/dataloader.d.ts +11 -0
- package/build/types-ts3.8/integrations/tracing-channel/generic-pool.d.ts +10 -0
- package/build/types-ts3.8/integrations/tracing-channel/ioredis.d.ts +20 -0
- package/build/types-ts3.8/integrations/tracing-channel/kafkajs/consumer.d.ts +8 -0
- package/build/types-ts3.8/integrations/tracing-channel/kafkajs/index.d.ts +17 -0
- package/build/types-ts3.8/integrations/tracing-channel/kafkajs/semconv.d.ts +10 -0
- package/build/types-ts3.8/integrations/tracing-channel/kafkajs/spans.d.ts +38 -0
- package/build/types-ts3.8/integrations/tracing-channel/kafkajs/types.d.ts +40 -0
- package/build/types-ts3.8/integrations/tracing-channel/knex.d.ts +11 -0
- package/build/types-ts3.8/integrations/tracing-channel/mysql2.d.ts +15 -0
- package/build/types-ts3.8/orchestrion/bundler/esbuild.d.ts +21 -0
- package/build/types-ts3.8/orchestrion/bundler/options.d.ts +19 -0
- package/build/types-ts3.8/orchestrion/bundler/rollup.d.ts +17 -0
- package/build/types-ts3.8/orchestrion/bundler/vite.d.ts +4 -17
- package/build/types-ts3.8/orchestrion/bundler/webpack.d.ts +19 -0
- package/build/types-ts3.8/orchestrion/channels.d.ts +64 -37
- package/build/types-ts3.8/orchestrion/config/dataloader.d.ts +46 -0
- package/build/types-ts3.8/orchestrion/config/firebase.d.ts +4 -0
- package/build/types-ts3.8/orchestrion/config/generic-pool.d.ts +31 -0
- package/build/types-ts3.8/orchestrion/config/index.d.ts +18 -5
- package/build/types-ts3.8/orchestrion/config/kafkajs.d.ts +17 -0
- package/build/types-ts3.8/orchestrion/config/knex.d.ts +9 -0
- package/build/types-ts3.8/orchestrion/config/langchain.d.ts +4 -0
- package/build/types-ts3.8/orchestrion/config/langgraph.d.ts +4 -0
- package/build/types-ts3.8/orchestrion/config/mongodb.d.ts +4 -0
- package/build/types-ts3.8/orchestrion/config/mongoose.d.ts +4 -0
- package/build/types-ts3.8/orchestrion/config/mysql2.d.ts +18 -0
- package/build/types-ts3.8/orchestrion/config/nestjs.d.ts +24 -0
- package/build/types-ts3.8/orchestrion/config/prisma.d.ts +4 -0
- package/build/types-ts3.8/orchestrion/config/react-router.d.ts +4 -0
- package/build/types-ts3.8/orchestrion/config/remix.d.ts +4 -0
- package/build/types-ts3.8/orchestrion/config/tedious.d.ts +4 -0
- package/build/types-ts3.8/orchestrion/detect.d.ts +3 -10
- package/build/types-ts3.8/orchestrion/index.d.ts +25 -1
- package/build/types-ts3.8/orchestrion/runtime/register.d.ts +11 -9
- package/build/types-ts3.8/prisma/global.d.ts +5 -0
- package/build/types-ts3.8/prisma/index.d.ts +45 -0
- package/build/types-ts3.8/prisma/tracing-helper.d.ts +52 -0
- package/build/types-ts3.8/prisma/types.d.ts +40 -0
- package/build/types-ts3.8/vercel-ai/util.d.ts +0 -2
- package/package.json +41 -8
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Orchestrion-driven mysql2 integration.
|
|
3
|
+
*
|
|
4
|
+
* Adds Sentry tracing instrumentation for the [mysql2](https://www.npmjs.com/package/mysql2) library
|
|
5
|
+
* via diagnostics-channel injection. See {@link instrumentMysql2} for how the two mysql2 version
|
|
6
|
+
* ranges are covered.
|
|
7
|
+
*
|
|
8
|
+
* Known limitation vs. the OTel integration it replaces: the callback-less streaming form
|
|
9
|
+
* (`connection.query(sql).on('result', ...)`) is not traced — see the `mysql2` orchestrion config for
|
|
10
|
+
* why. The callback and promise forms (the common case) are fully instrumented.
|
|
11
|
+
*/
|
|
12
|
+
export declare const mysql2ChannelIntegration: () => import("@sentry/core").Integration & {
|
|
13
|
+
name: "Mysql2";
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=mysql2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mysql2.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing-channel/mysql2.ts"],"names":[],"mappings":"AAwJA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB;;CAA+C,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import codeTransformer from '@apm-js-collab/code-transformer-bundler-plugins/esbuild';
|
|
2
|
+
import type { PluginOptions } from './options';
|
|
3
|
+
/**
|
|
4
|
+
* esbuild plugin that runs the orchestrion code transform on the bundled output.
|
|
5
|
+
*
|
|
6
|
+
* Use when bundling a Node app with esbuild. For unbundled Node processes use the
|
|
7
|
+
* runtime hook instead (`node --import @sentry/node/orchestrion app.js`).
|
|
8
|
+
*
|
|
9
|
+
* esbuild does not flatten nested `plugins` arrays, so this returns a single
|
|
10
|
+
* plugin that strips instrumented packages from an `external` denylist before
|
|
11
|
+
* delegating to the upstream transform.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* // build.mjs
|
|
16
|
+
* import { sentryOrchestrionPlugin } from '@sentry/server-utils/orchestrion/esbuild';
|
|
17
|
+
* await esbuild.build({ plugins: [sentryOrchestrionPlugin()] });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare function sentryOrchestrionPlugin(options?: PluginOptions): ReturnType<typeof codeTransformer>;
|
|
21
|
+
//# sourceMappingURL=esbuild.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"esbuild.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/esbuild.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,yDAAyD,CAAC;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG/C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,aAAkB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAEvG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
|
|
2
|
+
import type codeTransformer from '@apm-js-collab/code-transformer-bundler-plugins/rollup';
|
|
3
|
+
export type PluginOptions = {
|
|
4
|
+
/**
|
|
5
|
+
* Additional instrumentations to include with the default instrumentation.
|
|
6
|
+
*/
|
|
7
|
+
instrumentations?: InstrumentationConfig[];
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The `@apm-js-collab/code-transformer-bundler-plugins` options shared by every
|
|
11
|
+
* orchestrion bundler plugin.
|
|
12
|
+
*
|
|
13
|
+
* `injectDiagnostics` sets `globalThis.__SENTRY_ORCHESTRION__.bundler = ["mysql"]` at
|
|
14
|
+
* app boot so the `_experimentalSetupOrchestrion()` detector can confirm the
|
|
15
|
+
* bundler path ran (rather than relying on a build-time flag that wouldn't be
|
|
16
|
+
* visible to the runtime).
|
|
17
|
+
*/
|
|
18
|
+
export declare function orchestrionTransformOptions(options: PluginOptions): Parameters<typeof codeTransformer>[0];
|
|
19
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAE7E,OAAO,KAAK,eAAe,MAAM,wDAAwD,CAAC;AAE1F,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,qBAAqB,EAAE,CAAC;CAC5C,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,aAAa,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAOzG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import codeTransformer from '@apm-js-collab/code-transformer-bundler-plugins/rollup';
|
|
2
|
+
import type { PluginOptions } from './options';
|
|
3
|
+
/**
|
|
4
|
+
* Rollup plugin that runs the orchestrion code transform on the bundled output.
|
|
5
|
+
*
|
|
6
|
+
* Use when bundling a Node app with Rollup. For unbundled Node processes use the
|
|
7
|
+
* runtime hook instead (`node --import @sentry/node/orchestrion app.js`).
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* // rollup.config.js
|
|
12
|
+
* import { sentryOrchestrionPlugin } from '@sentry/server-utils/orchestrion/rollup';
|
|
13
|
+
* export default { plugins: [sentryOrchestrionPlugin()] };
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare function sentryOrchestrionPlugin(options?: PluginOptions): ReturnType<typeof codeTransformer>;
|
|
17
|
+
//# sourceMappingURL=rollup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rollup.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/rollup.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,wDAAwD,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG/C;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,aAAkB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAEvG"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import codeTransformer from '@apm-js-collab/code-transformer-bundler-plugins/vite';
|
|
2
|
+
import type { PluginOptions } from './options';
|
|
2
3
|
/**
|
|
3
4
|
* Vite plugin that runs the orchestrion code transform on the bundled output.
|
|
4
5
|
*
|
|
@@ -6,26 +7,12 @@ type UnknownPlugin = any;
|
|
|
6
7
|
* pipeline, SvelteKit). For unbundled Node processes use the runtime hook
|
|
7
8
|
* instead (`node --import @sentry/node/orchestrion app.js`).
|
|
8
9
|
*
|
|
9
|
-
* Returns two plugins:
|
|
10
|
-
* 1. `sentry-orchestrion-marker` — a `renderChunk` hook that prepends a
|
|
11
|
-
* single-line banner to entry chunks. The banner sets
|
|
12
|
-
* `globalThis.__SENTRY_ORCHESTRION__.bundler = true` at app boot, so the
|
|
13
|
-
* `_experimentalSetupOrchestrion()` detector can confirm the bundler path
|
|
14
|
-
* ran (rather than relying on a build-time flag that wouldn't be visible
|
|
15
|
-
* to the runtime).
|
|
16
|
-
* Also injects every instrumented package name into `ssr.noExternal` via
|
|
17
|
-
* the `config` hook, since externalized deps are `require()`d at runtime
|
|
18
|
-
* from `node_modules` and never pass through the transform.
|
|
19
|
-
* 2. The upstream `@apm-js-collab/code-transformer-bundler-plugins/vite`
|
|
20
|
-
* plugin, fed our central `SENTRY_INSTRUMENTATIONS` config.
|
|
21
|
-
*
|
|
22
10
|
* @example
|
|
23
11
|
* ```ts
|
|
24
12
|
* // vite.config.ts
|
|
25
|
-
* import { sentryOrchestrionPlugin } from '@sentry/
|
|
13
|
+
* import { sentryOrchestrionPlugin } from '@sentry/server-utils/orchestrion/vite';
|
|
26
14
|
* export default { plugins: [sentryOrchestrionPlugin()] };
|
|
27
15
|
* ```
|
|
28
16
|
*/
|
|
29
|
-
export declare function sentryOrchestrionPlugin():
|
|
30
|
-
export {};
|
|
17
|
+
export declare function sentryOrchestrionPlugin(options?: PluginOptions): ReturnType<typeof codeTransformer>;
|
|
31
18
|
//# sourceMappingURL=vite.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/vite.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/vite.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,sDAAsD,CAAC;AAEnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG/C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,aAAkB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAcvG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
|
|
2
|
+
/** Absolute path to the code-transform loader (a webpack loader; also usable as a Turbopack loader). */
|
|
3
|
+
export declare function getOrchestrionLoaderPath(): string;
|
|
4
|
+
/**
|
|
5
|
+
* Absolute path to the `@apm-js-collab/tracing-hooks` package directory, resolved from this
|
|
6
|
+
* package's own dependency graph. SDKs inject it at build time so the runtime module hook can
|
|
7
|
+
* load the package even where the bare specifier doesn't resolve (bundled SDK code under
|
|
8
|
+
* isolated installs, e.g. pnpm).
|
|
9
|
+
*/
|
|
10
|
+
export declare function getTracingHooksDirectory(): string;
|
|
11
|
+
/** The central instrumentation config, to pass as the loader's `instrumentations` option. */
|
|
12
|
+
export declare function getSentryInstrumentations(): InstrumentationConfig[];
|
|
13
|
+
/**
|
|
14
|
+
* The code-transform webpack plugin, pre-fed the instrumentation config. Unlike the Vite plugin it
|
|
15
|
+
* does NOT inject the `__SENTRY_ORCHESTRION__.bundler` marker — that would disable the runtime
|
|
16
|
+
* module hook, which externalized packages still need (hybrid setup).
|
|
17
|
+
*/
|
|
18
|
+
export declare function sentryOrchestrionWebpackPlugin(): unknown;
|
|
19
|
+
//# sourceMappingURL=webpack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webpack.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/webpack.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAgB7E,wGAAwG;AACxG,wBAAgB,wBAAwB,IAAI,MAAM,CAEjD;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,IAAI,MAAM,CAIjD;AAED,6FAA6F;AAC7F,wBAAgB,yBAAyB,IAAI,qBAAqB,EAAE,CAEnE;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,IAAI,OAAO,CAMxD"}
|
|
@@ -10,17 +10,18 @@
|
|
|
10
10
|
* prefixed string from this map; the config files set only the unprefixed
|
|
11
11
|
* suffix in `channelName`. Keeping both pieces in one file is what guarantees
|
|
12
12
|
* they don't drift apart and silently stop firing.
|
|
13
|
+
*
|
|
14
|
+
* Kept sorted alphabetically by module so concurrent additions insert at different
|
|
15
|
+
* points rather than all appending to the end (fewer merge conflicts).
|
|
13
16
|
*/
|
|
14
17
|
export declare const CHANNELS: {
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly ROUTER_ROUTE: "orchestrion:router:route";
|
|
23
|
-
readonly ROUTER_USE: "orchestrion:router:use";
|
|
18
|
+
readonly VERCEL_AI_GENERATE_TEXT: "orchestrion:ai:generateText";
|
|
19
|
+
readonly VERCEL_AI_STREAM_TEXT: "orchestrion:ai:streamText";
|
|
20
|
+
readonly VERCEL_AI_GENERATE_OBJECT: "orchestrion:ai:generateObject";
|
|
21
|
+
readonly VERCEL_AI_EMBED: "orchestrion:ai:embed";
|
|
22
|
+
readonly VERCEL_AI_EMBED_MANY: "orchestrion:ai:embedMany";
|
|
23
|
+
readonly VERCEL_AI_EXECUTE_TOOL_CALL: "orchestrion:ai:executeToolCall";
|
|
24
|
+
readonly VERCEL_AI_RESOLVE_LANGUAGE_MODEL: "orchestrion:ai:resolveLanguageModel";
|
|
24
25
|
readonly REDIS_COMMAND: "orchestrion:redis:command";
|
|
25
26
|
readonly NODE_REDIS_COMMAND: "orchestrion:@redis/client:command";
|
|
26
27
|
readonly NODE_REDIS_EXECUTOR: "orchestrion:@redis/client:executor";
|
|
@@ -28,8 +29,62 @@ export declare const CHANNELS: {
|
|
|
28
29
|
readonly NODE_REDIS_MULTI: "orchestrion:@redis/client:multi";
|
|
29
30
|
readonly NODE_REDIS_PIPELINE: "orchestrion:@redis/client:pipeline";
|
|
30
31
|
readonly NODE_REDIS_BATCH: "orchestrion:@redis/client:batch";
|
|
32
|
+
readonly POSTGRESJS_HANDLE: "orchestrion:postgres:handle";
|
|
33
|
+
readonly POSTGRESJS_CONNECTION: "orchestrion:postgres:connection";
|
|
34
|
+
readonly POSTGRESJS_EXECUTE: "orchestrion:postgres:execute";
|
|
35
|
+
readonly POSTGRESJS_CONNECT: "orchestrion:postgres:connect";
|
|
36
|
+
readonly PG_QUERY: "orchestrion:pg:query";
|
|
37
|
+
readonly PG_CONNECT: "orchestrion:pg:connect";
|
|
38
|
+
readonly PGPOOL_CONNECT: "orchestrion:pg-pool:connect";
|
|
39
|
+
readonly OPENAI_CHAT: "orchestrion:openai:chat";
|
|
40
|
+
readonly OPENAI_RESPONSES: "orchestrion:openai:responses";
|
|
41
|
+
readonly OPENAI_EMBEDDINGS: "orchestrion:openai:embeddings";
|
|
42
|
+
readonly OPENAI_CONVERSATIONS: "orchestrion:openai:conversations";
|
|
43
|
+
readonly NESTJS_APP_CREATION: "orchestrion:@nestjs/core:nestFactoryCreate";
|
|
44
|
+
readonly NESTJS_ROUTER_CONTEXT: "orchestrion:@nestjs/core:routerExecutionContextCreate";
|
|
45
|
+
readonly NESTJS_INJECTABLE: "orchestrion:@nestjs/common:injectableDecorator";
|
|
46
|
+
readonly NESTJS_CATCH: "orchestrion:@nestjs/common:catchDecorator";
|
|
47
|
+
readonly NESTJS_SCHEDULE_CRON: "orchestrion:@nestjs/schedule:cronDecorator";
|
|
48
|
+
readonly NESTJS_SCHEDULE_INTERVAL: "orchestrion:@nestjs/schedule:intervalDecorator";
|
|
49
|
+
readonly NESTJS_SCHEDULE_TIMEOUT: "orchestrion:@nestjs/schedule:timeoutDecorator";
|
|
50
|
+
readonly NESTJS_ONEVENT: "orchestrion:@nestjs/event-emitter:onEventDecorator";
|
|
51
|
+
readonly NESTJS_PROCESSOR: "orchestrion:@nestjs/bullmq:processorDecorator";
|
|
52
|
+
readonly MYSQL_QUERY: "orchestrion:mysql:query";
|
|
53
|
+
readonly MYSQL2_QUERY: "orchestrion:mysql2:query";
|
|
54
|
+
readonly MYSQL2_EXECUTE: "orchestrion:mysql2:execute";
|
|
55
|
+
readonly LRU_MEMOIZER_LOAD: "orchestrion:lru-memoizer:load";
|
|
56
|
+
readonly KNEX_QUERY: "orchestrion:knex:query";
|
|
57
|
+
readonly KNEX_QUERY_BUILDER: "orchestrion:knex:queryBuilder";
|
|
58
|
+
readonly KNEX_SCHEMA_BUILDER: "orchestrion:knex:schemaBuilder";
|
|
59
|
+
readonly KNEX_RAW: "orchestrion:knex:raw";
|
|
60
|
+
readonly KAFKAJS_SEND_BATCH: "orchestrion:kafkajs:send_batch";
|
|
61
|
+
readonly KAFKAJS_CONSUMER_RUN: "orchestrion:kafkajs:consumer_run";
|
|
62
|
+
readonly IOREDIS_COMMAND: "orchestrion:ioredis:command";
|
|
63
|
+
readonly IOREDIS_CONNECT: "orchestrion:ioredis:connect";
|
|
31
64
|
readonly HAPI_ROUTE: "orchestrion:@hapi/hapi:route";
|
|
32
65
|
readonly HAPI_EXT: "orchestrion:@hapi/hapi:ext";
|
|
66
|
+
readonly GRAPHQL_PARSE: "orchestrion:graphql:parse";
|
|
67
|
+
readonly GRAPHQL_VALIDATE: "orchestrion:graphql:validate";
|
|
68
|
+
readonly GRAPHQL_EXECUTE: "orchestrion:graphql:execute";
|
|
69
|
+
readonly GOOGLE_GENAI_GENERATE_CONTENT: "orchestrion:@google/genai:generate-content";
|
|
70
|
+
readonly GOOGLE_GENAI_EMBED_CONTENT: "orchestrion:@google/genai:embed-content";
|
|
71
|
+
readonly GOOGLE_GENAI_CHAT: "orchestrion:@google/genai:chat";
|
|
72
|
+
readonly GENERIC_POOL_ACQUIRE: "orchestrion:generic-pool:acquire";
|
|
73
|
+
readonly EXPRESS_HANDLE: "orchestrion:express:handle";
|
|
74
|
+
readonly ROUTER_HANDLE: "orchestrion:router:handle";
|
|
75
|
+
readonly EXPRESS_ROUTE: "orchestrion:express:route";
|
|
76
|
+
readonly EXPRESS_USE: "orchestrion:express:use";
|
|
77
|
+
readonly ROUTER_ROUTE: "orchestrion:router:route";
|
|
78
|
+
readonly ROUTER_USE: "orchestrion:router:use";
|
|
79
|
+
readonly DATALOADER_CONSTRUCT: "orchestrion:dataloader:construct";
|
|
80
|
+
readonly DATALOADER_LOAD: "orchestrion:dataloader:load";
|
|
81
|
+
readonly DATALOADER_LOAD_MANY: "orchestrion:dataloader:loadMany";
|
|
82
|
+
readonly DATALOADER_PRIME: "orchestrion:dataloader:prime";
|
|
83
|
+
readonly DATALOADER_CLEAR: "orchestrion:dataloader:clear";
|
|
84
|
+
readonly DATALOADER_CLEAR_ALL: "orchestrion:dataloader:clearAll";
|
|
85
|
+
readonly ANTHROPIC_CHAT: "orchestrion:@anthropic-ai/sdk:chat";
|
|
86
|
+
readonly ANTHROPIC_MODELS: "orchestrion:@anthropic-ai/sdk:models";
|
|
87
|
+
readonly ANTHROPIC_MESSAGES_STREAM: "orchestrion:@anthropic-ai/sdk:messages-stream";
|
|
33
88
|
readonly AMQPLIB_PUBLISH: "orchestrion:amqplib:publish";
|
|
34
89
|
readonly AMQPLIB_CONFIRM_PUBLISH: "orchestrion:amqplib:confirmPublish";
|
|
35
90
|
readonly AMQPLIB_CONSUME: "orchestrion:amqplib:consume";
|
|
@@ -40,34 +95,6 @@ export declare const CHANNELS: {
|
|
|
40
95
|
readonly AMQPLIB_ACK_ALL: "orchestrion:amqplib:ackAll";
|
|
41
96
|
readonly AMQPLIB_NACK_ALL: "orchestrion:amqplib:nackAll";
|
|
42
97
|
readonly AMQPLIB_CONNECT: "orchestrion:amqplib:connect";
|
|
43
|
-
readonly VERCEL_AI_GENERATE_TEXT: "orchestrion:ai:generateText";
|
|
44
|
-
readonly VERCEL_AI_STREAM_TEXT: "orchestrion:ai:streamText";
|
|
45
|
-
readonly VERCEL_AI_GENERATE_OBJECT: "orchestrion:ai:generateObject";
|
|
46
|
-
readonly VERCEL_AI_EMBED: "orchestrion:ai:embed";
|
|
47
|
-
readonly VERCEL_AI_EMBED_MANY: "orchestrion:ai:embedMany";
|
|
48
|
-
readonly VERCEL_AI_EXECUTE_TOOL_CALL: "orchestrion:ai:executeToolCall";
|
|
49
|
-
readonly VERCEL_AI_RESOLVE_LANGUAGE_MODEL: "orchestrion:ai:resolveLanguageModel";
|
|
50
|
-
readonly GOOGLE_GENAI_GENERATE_CONTENT: "orchestrion:@google/genai:generate-content";
|
|
51
|
-
readonly GOOGLE_GENAI_EMBED_CONTENT: "orchestrion:@google/genai:embed-content";
|
|
52
|
-
readonly GOOGLE_GENAI_CHAT: "orchestrion:@google/genai:chat";
|
|
53
|
-
readonly ANTHROPIC_CHAT: "orchestrion:@anthropic-ai/sdk:chat";
|
|
54
|
-
readonly ANTHROPIC_MODELS: "orchestrion:@anthropic-ai/sdk:models";
|
|
55
|
-
readonly ANTHROPIC_MESSAGES_STREAM: "orchestrion:@anthropic-ai/sdk:messages-stream";
|
|
56
|
-
readonly OPENAI_CHAT: "orchestrion:openai:chat";
|
|
57
|
-
readonly OPENAI_RESPONSES: "orchestrion:openai:responses";
|
|
58
|
-
readonly OPENAI_EMBEDDINGS: "orchestrion:openai:embeddings";
|
|
59
|
-
readonly OPENAI_CONVERSATIONS: "orchestrion:openai:conversations";
|
|
60
|
-
readonly POSTGRESJS_HANDLE: "orchestrion:postgres:handle";
|
|
61
|
-
readonly POSTGRESJS_CONNECTION: "orchestrion:postgres:connection";
|
|
62
|
-
readonly POSTGRESJS_EXECUTE: "orchestrion:postgres:execute";
|
|
63
|
-
readonly POSTGRESJS_CONNECT: "orchestrion:postgres:connect";
|
|
64
|
-
readonly PG_QUERY: "orchestrion:pg:query";
|
|
65
|
-
readonly PG_CONNECT: "orchestrion:pg:connect";
|
|
66
|
-
readonly PGPOOL_CONNECT: "orchestrion:pg-pool:connect";
|
|
67
|
-
readonly IOREDIS_COMMAND: "orchestrion:ioredis:command";
|
|
68
|
-
readonly IOREDIS_CONNECT: "orchestrion:ioredis:connect";
|
|
69
|
-
readonly LRU_MEMOIZER_LOAD: "orchestrion:lru-memoizer:load";
|
|
70
|
-
readonly MYSQL_QUERY: "orchestrion:mysql:query";
|
|
71
98
|
};
|
|
72
99
|
export type ChannelName = (typeof CHANNELS)[keyof typeof CHANNELS];
|
|
73
100
|
//# sourceMappingURL=channels.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/channels.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/channels.ts"],"names":[],"mappings":"AA8BA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BX,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare const dataloaderConfig: ({
|
|
2
|
+
channelName: string;
|
|
3
|
+
module: {
|
|
4
|
+
readonly name: "dataloader";
|
|
5
|
+
readonly versionRange: ">=2.0.0 <3";
|
|
6
|
+
readonly filePath: "index.js";
|
|
7
|
+
};
|
|
8
|
+
functionQuery: {
|
|
9
|
+
functionName: string;
|
|
10
|
+
kind: "Sync";
|
|
11
|
+
expressionName?: undefined;
|
|
12
|
+
};
|
|
13
|
+
} | {
|
|
14
|
+
channelName: string;
|
|
15
|
+
module: {
|
|
16
|
+
readonly name: "dataloader";
|
|
17
|
+
readonly versionRange: ">=2.0.0 <3";
|
|
18
|
+
readonly filePath: "index.js";
|
|
19
|
+
};
|
|
20
|
+
functionQuery: {
|
|
21
|
+
expressionName: string;
|
|
22
|
+
kind: "Async";
|
|
23
|
+
functionName?: undefined;
|
|
24
|
+
};
|
|
25
|
+
} | {
|
|
26
|
+
channelName: string;
|
|
27
|
+
module: {
|
|
28
|
+
readonly name: "dataloader";
|
|
29
|
+
readonly versionRange: ">=2.0.0 <3";
|
|
30
|
+
readonly filePath: "index.js";
|
|
31
|
+
};
|
|
32
|
+
functionQuery: {
|
|
33
|
+
expressionName: string;
|
|
34
|
+
kind: "Sync";
|
|
35
|
+
functionName?: undefined;
|
|
36
|
+
};
|
|
37
|
+
})[];
|
|
38
|
+
export declare const dataloaderChannels: {
|
|
39
|
+
readonly DATALOADER_CONSTRUCT: "orchestrion:dataloader:construct";
|
|
40
|
+
readonly DATALOADER_LOAD: "orchestrion:dataloader:load";
|
|
41
|
+
readonly DATALOADER_LOAD_MANY: "orchestrion:dataloader:loadMany";
|
|
42
|
+
readonly DATALOADER_PRIME: "orchestrion:dataloader:prime";
|
|
43
|
+
readonly DATALOADER_CLEAR: "orchestrion:dataloader:clear";
|
|
44
|
+
readonly DATALOADER_CLEAR_ALL: "orchestrion:dataloader:clearAll";
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=dataloader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataloader.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/dataloader.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqCM,CAAC;AAEpC,eAAO,MAAM,kBAAkB;;;;;;;CAOrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firebase.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/firebase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E,eAAO,MAAM,cAAc,EAAE,qBAAqB,EAAO,CAAC;AAE1D,eAAO,MAAM,gBAAgB,IAAc,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const genericPoolConfig: ({
|
|
2
|
+
channelName: string;
|
|
3
|
+
module: {
|
|
4
|
+
name: string;
|
|
5
|
+
versionRange: string;
|
|
6
|
+
filePath: string;
|
|
7
|
+
};
|
|
8
|
+
functionQuery: {
|
|
9
|
+
className: string;
|
|
10
|
+
methodName: string;
|
|
11
|
+
kind: "Auto";
|
|
12
|
+
expressionName?: undefined;
|
|
13
|
+
};
|
|
14
|
+
} | {
|
|
15
|
+
channelName: string;
|
|
16
|
+
module: {
|
|
17
|
+
name: string;
|
|
18
|
+
versionRange: string;
|
|
19
|
+
filePath: string;
|
|
20
|
+
};
|
|
21
|
+
functionQuery: {
|
|
22
|
+
expressionName: string;
|
|
23
|
+
kind: "Callback";
|
|
24
|
+
className?: undefined;
|
|
25
|
+
methodName?: undefined;
|
|
26
|
+
};
|
|
27
|
+
})[];
|
|
28
|
+
export declare const genericPoolChannels: {
|
|
29
|
+
readonly GENERIC_POOL_ACQUIRE: "orchestrion:generic-pool:acquire";
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=generic-pool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generic-pool.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/generic-pool.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;IAWK,CAAC;AAEpC,eAAO,MAAM,mBAAmB;;CAEtB,CAAC"}
|
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
|
|
2
|
+
/**
|
|
3
|
+
* The orchestrion code-transform configs. Every instrumentable library is here
|
|
4
|
+
* so the transform is all-or-nothing: whenever orchestrion is enabled, all of
|
|
5
|
+
* these are injected. The channel LISTENERS may live elsewhere (e.g. the NestJS
|
|
6
|
+
* one lives in `@sentry/nestjs`), but the config that decides what gets
|
|
7
|
+
* transformed is centralized here.
|
|
8
|
+
*/
|
|
2
9
|
export declare const SENTRY_INSTRUMENTATIONS: InstrumentationConfig[];
|
|
3
10
|
/**
|
|
4
11
|
* The unique set of package names instrumented by `SENTRY_INSTRUMENTATIONS`
|
|
5
|
-
* (e.g. `['mysql']`).
|
|
12
|
+
* merged with any caller-provided `instrumentations` (e.g. `['mysql']`).
|
|
6
13
|
*
|
|
7
14
|
* Bundler plugins MUST ensure these are actually bundled rather than
|
|
8
15
|
* externalized: an externalized dependency is resolved from `node_modules` at
|
|
9
16
|
* runtime and never passes through the code transform's `onLoad`, so its
|
|
10
|
-
* diagnostics_channel calls are silently never injected.
|
|
17
|
+
* diagnostics_channel calls are silently never injected. This includes a
|
|
18
|
+
* plugin's custom `instrumentations`, otherwise those extra packages can stay
|
|
19
|
+
* externalized and their transform never runs.
|
|
11
20
|
*/
|
|
21
|
+
export declare function instrumentedModuleNames(instrumentations?: InstrumentationConfig[]): string[];
|
|
22
|
+
/** The instrumented module names from the default Sentry config, with no custom additions. */
|
|
12
23
|
export declare const INSTRUMENTED_MODULE_NAMES: string[];
|
|
13
24
|
/**
|
|
14
25
|
* Returns `external` with any instrumented packages removed, so a bundler that
|
|
@@ -17,8 +28,10 @@ export declare const INSTRUMENTED_MODULE_NAMES: string[];
|
|
|
17
28
|
* (`'mysql/lib/...'`); wildcard/other patterns are left untouched. `undefined`
|
|
18
29
|
* is returned unchanged.
|
|
19
30
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
31
|
+
* Pass `moduleNames` from `instrumentedModuleNames(options.instrumentations)` so
|
|
32
|
+
* custom instrumentations are stripped too; it defaults to the Sentry config
|
|
33
|
+
* list. (Vite uses an `ssr.noExternal` allowlist instead, so it consumes
|
|
34
|
+
* `instrumentedModuleNames` directly rather than this helper.)
|
|
22
35
|
*/
|
|
23
|
-
export declare function withoutInstrumentedExternals(external: readonly string[] | undefined): string[] | undefined;
|
|
36
|
+
export declare function withoutInstrumentedExternals(external: readonly string[] | undefined, moduleNames?: string[]): string[] | undefined;
|
|
24
37
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAmC7E;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,EA8B1D,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,gBAAgB,GAAE,qBAAqB,EAAO,GAAG,MAAM,EAAE,CAEhG;AAED,8FAA8F;AAC9F,eAAO,MAAM,yBAAyB,EAAE,MAAM,EAA8B,CAAC;AAE7E;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EACvC,WAAW,GAAE,MAAM,EAA8B,GAChD,MAAM,EAAE,GAAG,SAAS,CAKtB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const kafkajsConfig: {
|
|
2
|
+
channelName: string;
|
|
3
|
+
module: {
|
|
4
|
+
name: string;
|
|
5
|
+
versionRange: string;
|
|
6
|
+
filePath: string;
|
|
7
|
+
};
|
|
8
|
+
functionQuery: {
|
|
9
|
+
expressionName: string;
|
|
10
|
+
kind: "Async";
|
|
11
|
+
};
|
|
12
|
+
}[];
|
|
13
|
+
export declare const kafkajsChannels: {
|
|
14
|
+
readonly KAFKAJS_SEND_BATCH: "orchestrion:kafkajs:send_batch";
|
|
15
|
+
readonly KAFKAJS_CONSUMER_RUN: "orchestrion:kafkajs:consumer_run";
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=kafkajs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kafkajs.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/kafkajs.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;GAmBS,CAAC;AAEpC,eAAO,MAAM,eAAe;;;CAGlB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
|
|
2
|
+
export declare const knexConfig: InstrumentationConfig[];
|
|
3
|
+
export declare const knexChannels: {
|
|
4
|
+
readonly KNEX_QUERY: "orchestrion:knex:query";
|
|
5
|
+
readonly KNEX_QUERY_BUILDER: "orchestrion:knex:queryBuilder";
|
|
6
|
+
readonly KNEX_SCHEMA_BUILDER: "orchestrion:knex:schemaBuilder";
|
|
7
|
+
readonly KNEX_RAW: "orchestrion:knex:raw";
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=knex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knex.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/knex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAwC7E,eAAO,MAAM,UAAU,EAAE,qBAAqB,EAK7C,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;CAKf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"langchain.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/langchain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E,eAAO,MAAM,eAAe,EAAE,qBAAqB,EAAO,CAAC;AAE3D,eAAO,MAAM,iBAAiB,IAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"langgraph.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/langgraph.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E,eAAO,MAAM,eAAe,EAAE,qBAAqB,EAAO,CAAC;AAE3D,eAAO,MAAM,iBAAiB,IAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongodb.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/mongodb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E,eAAO,MAAM,aAAa,EAAE,qBAAqB,EAAO,CAAC;AAEzD,eAAO,MAAM,eAAe,IAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongoose.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/mongoose.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E,eAAO,MAAM,cAAc,EAAE,qBAAqB,EAAO,CAAC;AAE1D,eAAO,MAAM,gBAAgB,IAAc,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const mysql2Config: {
|
|
2
|
+
channelName: string;
|
|
3
|
+
module: {
|
|
4
|
+
name: string;
|
|
5
|
+
versionRange: string;
|
|
6
|
+
filePath: string;
|
|
7
|
+
};
|
|
8
|
+
functionQuery: {
|
|
9
|
+
className: string;
|
|
10
|
+
methodName: string;
|
|
11
|
+
kind: "Callback";
|
|
12
|
+
};
|
|
13
|
+
}[];
|
|
14
|
+
export declare const mysql2Channels: {
|
|
15
|
+
readonly MYSQL2_QUERY: "orchestrion:mysql2:query";
|
|
16
|
+
readonly MYSQL2_EXECUTE: "orchestrion:mysql2:execute";
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=mysql2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mysql2.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/mysql2.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,YAAY;;;;;;;;;;;;GAqBU,CAAC;AAEpC,eAAO,MAAM,cAAc;;;CAGjB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';
|
|
2
|
+
/**
|
|
3
|
+
* NestJS is different from the other instrumentations here. It's a standalone
|
|
4
|
+
* metaframework SDK (`@sentry/nestjs`), so its channel LISTENER lives in that
|
|
5
|
+
* package rather than in `server-utils`. Only the code-transform config (and
|
|
6
|
+
* the channel names below) live here, so `@nestjs/*` is transformed whenever
|
|
7
|
+
* orchestrion is enabled, same as every other library.
|
|
8
|
+
*
|
|
9
|
+
* `@sentry/nestjs` imports {@link nestjsChannels} to subscribe, and picks the
|
|
10
|
+
* channel-vs-OTel path based on the global injection flag.
|
|
11
|
+
*/
|
|
12
|
+
export declare const nestjsConfig: InstrumentationConfig[];
|
|
13
|
+
export declare const nestjsChannels: {
|
|
14
|
+
readonly NESTJS_APP_CREATION: "orchestrion:@nestjs/core:nestFactoryCreate";
|
|
15
|
+
readonly NESTJS_ROUTER_CONTEXT: "orchestrion:@nestjs/core:routerExecutionContextCreate";
|
|
16
|
+
readonly NESTJS_INJECTABLE: "orchestrion:@nestjs/common:injectableDecorator";
|
|
17
|
+
readonly NESTJS_CATCH: "orchestrion:@nestjs/common:catchDecorator";
|
|
18
|
+
readonly NESTJS_SCHEDULE_CRON: "orchestrion:@nestjs/schedule:cronDecorator";
|
|
19
|
+
readonly NESTJS_SCHEDULE_INTERVAL: "orchestrion:@nestjs/schedule:intervalDecorator";
|
|
20
|
+
readonly NESTJS_SCHEDULE_TIMEOUT: "orchestrion:@nestjs/schedule:timeoutDecorator";
|
|
21
|
+
readonly NESTJS_ONEVENT: "orchestrion:@nestjs/event-emitter:onEventDecorator";
|
|
22
|
+
readonly NESTJS_PROCESSOR: "orchestrion:@nestjs/bullmq:processorDecorator";
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=nestjs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nestjs.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/nestjs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAmB3F;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,yBAqGU,CAAC;AAEpC,eAAO,MAAM,cAAc;;;;;;;;;;CAUjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prisma.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/prisma.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E,eAAO,MAAM,YAAY,EAAE,qBAAqB,EAAO,CAAC;AAExD,eAAO,MAAM,cAAc,IAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-router.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/react-router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E,eAAO,MAAM,iBAAiB,EAAE,qBAAqB,EAAO,CAAC;AAE7D,eAAO,MAAM,mBAAmB,IAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remix.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/remix.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E,eAAO,MAAM,WAAW,EAAE,qBAAqB,EAAO,CAAC;AAEvD,eAAO,MAAM,aAAa,IAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tedious.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/tedious.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAG7E,eAAO,MAAM,aAAa,EAAE,qBAAqB,EAAO,CAAC;AAEzD,eAAO,MAAM,eAAe,IAAc,CAAC"}
|