@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
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import codeTransformer from '@apm-js-collab/code-transformer-bundler-plugins/vite';
|
|
2
|
+
import { 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
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { 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
|
|
@@ -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
|
|
@@ -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,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
|
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
import { 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
|
|
@@ -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,9 @@
|
|
|
1
|
+
import { 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,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,24 @@
|
|
|
1
|
+
import { 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
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
var __SENTRY_ORCHESTRION__: {
|
|
3
|
-
runtime?: boolean;
|
|
4
|
-
bundler?: boolean;
|
|
5
|
-
} | undefined;
|
|
6
|
-
}
|
|
7
1
|
/**
|
|
8
2
|
* Whether orchestrion has injected the diagnostics channels into this process,
|
|
9
3
|
* either by the runtime `--import` hook / init-time registration (`runtime`)
|
|
@@ -17,7 +11,9 @@ export declare function isOrchestrionInjected(): boolean;
|
|
|
17
11
|
/**
|
|
18
12
|
* Verifies that the diagnostics channels have been injected either by the
|
|
19
13
|
* runtime `--import` hook (or init-time registration), a bundler plugin, or
|
|
20
|
-
* both, and warns if not.
|
|
14
|
+
* both, and warns if not. When at least one injector is active, logs for each
|
|
15
|
+
* mechanism whether it hooked (a defined array, even empty, means it did) and
|
|
16
|
+
* which libraries it injected.
|
|
21
17
|
*
|
|
22
18
|
* Both injectors being active at once is fine: they operate on disjoint module
|
|
23
19
|
* sets (a module is either loaded through Node's loader and transformed by the
|
|
@@ -25,9 +21,6 @@ export declare function isOrchestrionInjected(): boolean;
|
|
|
25
21
|
* a single module can't be double-wrapped. A hybrid setup, with some deps
|
|
26
22
|
* external and runtime-instrumented, others bundled and plugin-instrumented,
|
|
27
23
|
* is fine.
|
|
28
|
-
*
|
|
29
|
-
* Note: intentionally does NOT warn in production, only in debug builds,
|
|
30
|
-
* because production warnings are reserved for truly critical issues.
|
|
31
24
|
*/
|
|
32
25
|
export declare function detectOrchestrionSetup(): void;
|
|
33
26
|
//# sourceMappingURL=detect.d.ts.map
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import { amqplibChannelIntegration } from '../integrations/tracing-channel/amqplib';
|
|
2
2
|
import { anthropicChannelIntegration } from '../integrations/tracing-channel/anthropic';
|
|
3
|
+
import { dataloaderChannelIntegration } from '../integrations/tracing-channel/dataloader';
|
|
4
|
+
import { genericPoolChannelIntegration } from '../integrations/tracing-channel/generic-pool';
|
|
3
5
|
import { googleGenAIChannelIntegration } from '../integrations/tracing-channel/google-genai';
|
|
4
6
|
import { graphqlChannelIntegration } from '../integrations/tracing-channel/graphql';
|
|
5
7
|
import { hapiChannelIntegration } from '../integrations/tracing-channel/hapi';
|
|
6
8
|
import { ioredisChannelIntegration } from '../integrations/tracing-channel/ioredis';
|
|
9
|
+
import { kafkajsChannelIntegration } from '../integrations/tracing-channel/kafkajs';
|
|
10
|
+
import { knexChannelIntegration } from '../integrations/tracing-channel/knex';
|
|
7
11
|
import { lruMemoizerChannelIntegration } from '../integrations/tracing-channel/lru-memoizer';
|
|
8
12
|
import { mysqlChannelIntegration } from '../integrations/tracing-channel/mysql';
|
|
13
|
+
import { mysql2ChannelIntegration } from '../integrations/tracing-channel/mysql2';
|
|
9
14
|
import { openaiChannelIntegration } from '../integrations/tracing-channel/openai';
|
|
10
15
|
import { postgresChannelIntegration } from '../integrations/tracing-channel/postgres';
|
|
11
16
|
import { postgresJsChannelIntegration } from '../integrations/tracing-channel/postgres-js';
|
|
12
17
|
import { vercelAiChannelIntegration } from '../integrations/tracing-channel/vercel-ai';
|
|
13
18
|
import { expressChannelIntegration } from '../integrations/tracing-channel/express';
|
|
14
19
|
export { detectOrchestrionSetup, isOrchestrionInjected } from './detect';
|
|
15
|
-
export {
|
|
20
|
+
export { nestjsChannels } from './config/nestjs';
|
|
21
|
+
export { amqplibChannelIntegration, anthropicChannelIntegration, dataloaderChannelIntegration, genericPoolChannelIntegration, googleGenAIChannelIntegration, graphqlChannelIntegration, hapiChannelIntegration, ioredisChannelIntegration, kafkajsChannelIntegration, knexChannelIntegration, lruMemoizerChannelIntegration, mysqlChannelIntegration, mysql2ChannelIntegration, openaiChannelIntegration, postgresChannelIntegration, postgresJsChannelIntegration, vercelAiChannelIntegration, expressChannelIntegration, };
|
|
16
22
|
export { IORedisChannelIntegrationOptions, IORedisResponseHook } from '../integrations/tracing-channel/ioredis';
|
|
17
23
|
export { PostgresJsChannelIntegrationOptions } from '../integrations/tracing-channel/postgres-js';
|
|
18
24
|
export { redisChannelIntegration } from '../integrations/tracing-channel/redis';
|
|
@@ -30,6 +36,15 @@ export * from '../integrations/tracing-channel/graphql/graphql-types';
|
|
|
30
36
|
* NOTE: `ioredisChannelIntegration` and `redisChannelIntegration` are intentionally NOT here. They
|
|
31
37
|
* only partially replace the composite OTel `Redis` integration and need the node SDK's redis cache
|
|
32
38
|
* `responseHook` (which can't live in `server-utils`), so `@sentry/node` wires them up separately.
|
|
39
|
+
*
|
|
40
|
+
* Framework SDKs that own their own channel listener (e.g. `@sentry/nestjs`'s `Nest`) are NOT here
|
|
41
|
+
* either: their transform config is still in `SENTRY_INSTRUMENTATIONS`, but the listener lives in
|
|
42
|
+
* their package and picks the channel-vs-OTel path itself at `setupOnce`, so it needs no central swap.
|
|
43
|
+
*
|
|
44
|
+
* NOTE: `dataloaderChannelIntegration` is also NOT here. Everything in this map is auto-appended to
|
|
45
|
+
* the default integrations, but the OTel `Dataloader` integration is opt-in (never a default). Like
|
|
46
|
+
* `@sentry/nestjs`'s `Nest`, its `@sentry/node` factory picks the channel-vs-OTel path itself at
|
|
47
|
+
* `setupOnce` (via `isOrchestrionInjected()`), so there's nothing for the central swap to do.
|
|
33
48
|
*/
|
|
34
49
|
export declare const channelIntegrations: {
|
|
35
50
|
readonly postgresIntegration: (options?: {
|
|
@@ -43,6 +58,12 @@ export declare const channelIntegrations: {
|
|
|
43
58
|
readonly mysqlIntegration: () => import("@sentry/core").Integration & {
|
|
44
59
|
name: "Mysql";
|
|
45
60
|
};
|
|
61
|
+
readonly mysql2Integration: () => import("@sentry/core").Integration & {
|
|
62
|
+
name: "Mysql2";
|
|
63
|
+
};
|
|
64
|
+
readonly genericPoolIntegration: () => import("@sentry/core").Integration & {
|
|
65
|
+
name: "GenericPool";
|
|
66
|
+
};
|
|
46
67
|
readonly lruMemoizerIntegration: () => import("@sentry/core").Integration & {
|
|
47
68
|
name: "LruMemoizer";
|
|
48
69
|
};
|
|
@@ -79,5 +100,8 @@ export declare const channelIntegrations: {
|
|
|
79
100
|
name: "Graphql";
|
|
80
101
|
setupOnce: () => void | undefined;
|
|
81
102
|
};
|
|
103
|
+
readonly kafkajsIntegration: () => import("@sentry/core").Integration & {
|
|
104
|
+
name: "Kafka";
|
|
105
|
+
};
|
|
82
106
|
};
|
|
83
107
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export interface RegisterDiagnosticsChannelInjectionOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Absolute directory of the `@apm-js-collab/tracing-hooks` package (forward slashes).
|
|
4
|
+
*
|
|
5
|
+
* Needed when SDK code is bundled into an app's server build: the default bare-specifier
|
|
6
|
+
* require then resolves from the emitted chunk, which fails under isolated installs (pnpm).
|
|
7
|
+
* Framework SDKs (e.g. `@sentry/nextjs`) resolve the package at build time and pass its
|
|
8
|
+
* location here; it is loaded through an opaque `createRequire` that bundlers can't trace.
|
|
9
|
+
*/
|
|
10
|
+
tracingHooksDir?: string;
|
|
6
11
|
}
|
|
7
12
|
/**
|
|
8
13
|
* Synchronously register the diagnostics-channel injection module hooks.
|
|
@@ -15,9 +20,6 @@ declare global {
|
|
|
15
20
|
*
|
|
16
21
|
* Libraries imported *after* this call publish the `tracingChannel` events that
|
|
17
22
|
* the channel-based integrations subscribe to.
|
|
18
|
-
*
|
|
19
|
-
* Idempotent via `globalThis.__SENTRY_ORCHESTRION__` — a no-op if the runtime
|
|
20
|
-
* `--import` hook or a bundler plugin already injected the channels.
|
|
21
23
|
*/
|
|
22
|
-
export declare function registerDiagnosticsChannelInjection(): void;
|
|
24
|
+
export declare function registerDiagnosticsChannelInjection(options?: RegisterDiagnosticsChannelInjectionOptions): void;
|
|
23
25
|
//# sourceMappingURL=register.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TracingHelper } from './types';
|
|
2
|
+
export declare function getGlobalTracingHelper(): TracingHelper | undefined;
|
|
3
|
+
export declare function setGlobalTracingHelper(helper: TracingHelper): void;
|
|
4
|
+
export declare function clearGlobalTracingHelper(): void;
|
|
5
|
+
//# sourceMappingURL=global.d.ts.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface PrismaInstrumentationConfig {
|
|
2
|
+
/**
|
|
3
|
+
* Span types that should not be traced. Matched against the full span name (e.g. `prisma:client:operation`),
|
|
4
|
+
* either exactly (string) or by pattern (RegExp).
|
|
5
|
+
*/
|
|
6
|
+
ignoreSpanTypes?: (string | RegExp)[];
|
|
7
|
+
}
|
|
8
|
+
export interface PrismaOptions {
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated This is no longer used, v5 works out of the box.
|
|
11
|
+
*/
|
|
12
|
+
prismaInstrumentation?: unknown;
|
|
13
|
+
/**
|
|
14
|
+
* Configuration for the Prisma tracing helper.
|
|
15
|
+
*/
|
|
16
|
+
instrumentationConfig?: PrismaInstrumentationConfig;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Sets up the global Prisma tracing helper that Prisma looks up on `globalThis` to emit tracing data.
|
|
20
|
+
*
|
|
21
|
+
* Prisma reads `globalThis.PRISMA_INSTRUMENTATION` (and its versioned variant) to find a "TracingHelper"
|
|
22
|
+
* which it uses internally to create spans, so it can produce tracing data without depending on
|
|
23
|
+
* OpenTelemetry. The helper we install here mints spans through Sentry's span APIs. A single helper
|
|
24
|
+
* serves both Prisma v5 (which calls `createEngineSpan`) and v6/v7 (which call `dispatchEngineSpans`),
|
|
25
|
+
* so it doesn't blow up on version mismatches.
|
|
26
|
+
*/
|
|
27
|
+
export declare function instrumentPrisma(options?: PrismaOptions): void;
|
|
28
|
+
/**
|
|
29
|
+
* Adds Sentry tracing instrumentation for the [prisma](https://www.npmjs.com/package/prisma) library.
|
|
30
|
+
* For more information, see the [`prismaIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/prisma/).
|
|
31
|
+
*
|
|
32
|
+
* NOTE: This integration works out of the box with Prisma v6, and v7.
|
|
33
|
+
* On Prisma versions prior to v6, add `previewFeatures = ["tracing"]` to the client generator block of your Prisma schema:
|
|
34
|
+
*
|
|
35
|
+
* ```
|
|
36
|
+
* generator client {
|
|
37
|
+
* provider = "prisma-client-js"
|
|
38
|
+
* previewFeatures = ["tracing"]
|
|
39
|
+
* }
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare const prismaIntegration: (options?: PrismaOptions | undefined) => import("@sentry/core").Integration & {
|
|
43
|
+
name: "Prisma";
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=index.d.ts.map
|