@depup/sentry__server-utils 10.67.0-depup.0 → 10.68.0-depup.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/README.md +5 -4
- package/build/cjs/integrations/tracing-channel/dataloader.js +17 -7
- package/build/cjs/integrations/tracing-channel/dataloader.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/fastify/index.js +2 -4
- package/build/cjs/integrations/tracing-channel/fastify/index.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/fastify/utils.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/firebase/firestore.js +78 -0
- package/build/cjs/integrations/tracing-channel/firebase/firestore.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/firebase/functions.js +67 -0
- package/build/cjs/integrations/tracing-channel/firebase/functions.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/firebase/index.js +24 -0
- package/build/cjs/integrations/tracing-channel/firebase/index.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/firebase/instrumentation.js +66 -0
- package/build/cjs/integrations/tracing-channel/firebase/instrumentation.js.map +1 -0
- package/build/cjs/orchestrion/bundler/esbuild.js +24 -1
- package/build/cjs/orchestrion/bundler/esbuild.js.map +1 -1
- package/build/cjs/orchestrion/bundler/options.js +16 -2
- package/build/cjs/orchestrion/bundler/options.js.map +1 -1
- package/build/cjs/orchestrion/bundler/rollup.js +11 -1
- package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
- package/build/cjs/orchestrion/bundler/subscribeInjection.js +40 -0
- package/build/cjs/orchestrion/bundler/subscribeInjection.js.map +1 -0
- package/build/cjs/orchestrion/bundler/vite.js +13 -0
- package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
- package/build/cjs/orchestrion/bundler/webpack.js +32 -1
- package/build/cjs/orchestrion/bundler/webpack.js.map +1 -1
- package/build/cjs/orchestrion/channels.js +0 -4
- package/build/cjs/orchestrion/channels.js.map +1 -1
- package/build/cjs/orchestrion/config/amqplib.js +4 -0
- package/build/cjs/orchestrion/config/amqplib.js.map +1 -1
- package/build/cjs/orchestrion/config/anthropic-ai.js +4 -0
- package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -1
- package/build/cjs/orchestrion/config/aws-sdk.js +4 -0
- package/build/cjs/orchestrion/config/aws-sdk.js.map +1 -1
- package/build/cjs/orchestrion/config/channel-integration-definitions.js +29 -0
- package/build/cjs/orchestrion/config/channel-integration-definitions.js.map +1 -0
- package/build/cjs/orchestrion/config/dataloader.js +4 -0
- package/build/cjs/orchestrion/config/dataloader.js.map +1 -1
- package/build/cjs/orchestrion/config/express.js +4 -0
- package/build/cjs/orchestrion/config/express.js.map +1 -1
- package/build/cjs/orchestrion/config/firebase.js +79 -2
- package/build/cjs/orchestrion/config/firebase.js.map +1 -1
- package/build/cjs/orchestrion/config/generic-pool.js +4 -0
- package/build/cjs/orchestrion/config/generic-pool.js.map +1 -1
- package/build/cjs/orchestrion/config/google-genai.js +4 -0
- package/build/cjs/orchestrion/config/google-genai.js.map +1 -1
- package/build/cjs/orchestrion/config/graphql.js +4 -0
- package/build/cjs/orchestrion/config/graphql.js.map +1 -1
- package/build/cjs/orchestrion/config/hapi.js +4 -0
- package/build/cjs/orchestrion/config/hapi.js.map +1 -1
- package/build/cjs/orchestrion/config/index.js +33 -5
- package/build/cjs/orchestrion/config/index.js.map +1 -1
- package/build/cjs/orchestrion/config/ioredis.js +4 -0
- package/build/cjs/orchestrion/config/ioredis.js.map +1 -1
- package/build/cjs/orchestrion/config/kafkajs.js +4 -0
- package/build/cjs/orchestrion/config/kafkajs.js.map +1 -1
- package/build/cjs/orchestrion/config/knex.js +4 -0
- package/build/cjs/orchestrion/config/knex.js.map +1 -1
- package/build/cjs/orchestrion/config/koa.js +4 -0
- package/build/cjs/orchestrion/config/koa.js.map +1 -1
- package/build/cjs/orchestrion/config/langchain.js +4 -0
- package/build/cjs/orchestrion/config/langchain.js.map +1 -1
- package/build/cjs/orchestrion/config/langgraph.js +4 -0
- package/build/cjs/orchestrion/config/langgraph.js.map +1 -1
- package/build/cjs/orchestrion/config/lru-memoizer.js +4 -0
- package/build/cjs/orchestrion/config/lru-memoizer.js.map +1 -1
- package/build/cjs/orchestrion/config/mongodb.js +4 -0
- package/build/cjs/orchestrion/config/mongodb.js.map +1 -1
- package/build/cjs/orchestrion/config/mongoose.js +4 -0
- package/build/cjs/orchestrion/config/mongoose.js.map +1 -1
- package/build/cjs/orchestrion/config/mysql.js +4 -0
- package/build/cjs/orchestrion/config/mysql.js.map +1 -1
- package/build/cjs/orchestrion/config/mysql2.js +4 -0
- package/build/cjs/orchestrion/config/mysql2.js.map +1 -1
- package/build/cjs/orchestrion/config/nestjs.js +4 -0
- package/build/cjs/orchestrion/config/nestjs.js.map +1 -1
- package/build/cjs/orchestrion/config/openai.js +4 -0
- package/build/cjs/orchestrion/config/openai.js.map +1 -1
- package/build/cjs/orchestrion/config/pg.js +4 -0
- package/build/cjs/orchestrion/config/pg.js.map +1 -1
- package/build/cjs/orchestrion/config/postgres.js +4 -0
- package/build/cjs/orchestrion/config/postgres.js.map +1 -1
- package/build/cjs/orchestrion/config/redis.js +4 -0
- package/build/cjs/orchestrion/config/redis.js.map +1 -1
- package/build/cjs/orchestrion/config/remix.js +4 -0
- package/build/cjs/orchestrion/config/remix.js.map +1 -1
- package/build/cjs/orchestrion/config/subscribe-injection.js +25 -0
- package/build/cjs/orchestrion/config/subscribe-injection.js.map +1 -0
- package/build/cjs/orchestrion/config/tedious.js +4 -0
- package/build/cjs/orchestrion/config/tedious.js.map +1 -1
- package/build/cjs/orchestrion/config/vercel-ai.js +4 -0
- package/build/cjs/orchestrion/config/vercel-ai.js.map +1 -1
- package/build/cjs/orchestrion/index.js +12 -7
- package/build/cjs/orchestrion/index.js.map +1 -1
- package/build/cjs/orchestrion/registerChannelIntegration.js +13 -0
- package/build/cjs/orchestrion/registerChannelIntegration.js.map +1 -0
- package/build/cjs/vercel-ai/index.js.map +1 -1
- package/build/esm/integrations/tracing-channel/dataloader.js +17 -7
- package/build/esm/integrations/tracing-channel/dataloader.js.map +1 -1
- package/build/esm/integrations/tracing-channel/fastify/index.js +2 -4
- package/build/esm/integrations/tracing-channel/fastify/index.js.map +1 -1
- package/build/esm/integrations/tracing-channel/fastify/utils.js.map +1 -1
- package/build/esm/integrations/tracing-channel/firebase/firestore.js +75 -0
- package/build/esm/integrations/tracing-channel/firebase/firestore.js.map +1 -0
- package/build/esm/integrations/tracing-channel/firebase/functions.js +65 -0
- package/build/esm/integrations/tracing-channel/firebase/functions.js.map +1 -0
- package/build/esm/integrations/tracing-channel/firebase/index.js +22 -0
- package/build/esm/integrations/tracing-channel/firebase/index.js.map +1 -0
- package/build/esm/integrations/tracing-channel/firebase/instrumentation.js +64 -0
- package/build/esm/integrations/tracing-channel/firebase/instrumentation.js.map +1 -0
- package/build/esm/orchestrion/bundler/esbuild.js +25 -2
- package/build/esm/orchestrion/bundler/esbuild.js.map +1 -1
- package/build/esm/orchestrion/bundler/options.js +15 -3
- package/build/esm/orchestrion/bundler/options.js.map +1 -1
- package/build/esm/orchestrion/bundler/rollup.js +12 -2
- package/build/esm/orchestrion/bundler/rollup.js.map +1 -1
- package/build/esm/orchestrion/bundler/subscribeInjection.js +38 -0
- package/build/esm/orchestrion/bundler/subscribeInjection.js.map +1 -0
- package/build/esm/orchestrion/bundler/vite.js +14 -1
- package/build/esm/orchestrion/bundler/vite.js.map +1 -1
- package/build/esm/orchestrion/bundler/webpack.js +33 -3
- package/build/esm/orchestrion/bundler/webpack.js.map +1 -1
- package/build/esm/orchestrion/channels.js +0 -4
- package/build/esm/orchestrion/channels.js.map +1 -1
- package/build/esm/orchestrion/config/amqplib.js +4 -1
- package/build/esm/orchestrion/config/amqplib.js.map +1 -1
- package/build/esm/orchestrion/config/anthropic-ai.js +4 -1
- package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
- package/build/esm/orchestrion/config/aws-sdk.js +4 -1
- package/build/esm/orchestrion/config/aws-sdk.js.map +1 -1
- package/build/esm/orchestrion/config/channel-integration-definitions.js +26 -0
- package/build/esm/orchestrion/config/channel-integration-definitions.js.map +1 -0
- package/build/esm/orchestrion/config/dataloader.js +4 -1
- package/build/esm/orchestrion/config/dataloader.js.map +1 -1
- package/build/esm/orchestrion/config/express.js +4 -1
- package/build/esm/orchestrion/config/express.js.map +1 -1
- package/build/esm/orchestrion/config/firebase.js +79 -3
- package/build/esm/orchestrion/config/firebase.js.map +1 -1
- package/build/esm/orchestrion/config/generic-pool.js +4 -1
- package/build/esm/orchestrion/config/generic-pool.js.map +1 -1
- package/build/esm/orchestrion/config/google-genai.js +4 -1
- package/build/esm/orchestrion/config/google-genai.js.map +1 -1
- package/build/esm/orchestrion/config/graphql.js +4 -1
- package/build/esm/orchestrion/config/graphql.js.map +1 -1
- package/build/esm/orchestrion/config/hapi.js +4 -1
- package/build/esm/orchestrion/config/hapi.js.map +1 -1
- package/build/esm/orchestrion/config/index.js +61 -34
- package/build/esm/orchestrion/config/index.js.map +1 -1
- package/build/esm/orchestrion/config/ioredis.js +4 -1
- package/build/esm/orchestrion/config/ioredis.js.map +1 -1
- package/build/esm/orchestrion/config/kafkajs.js +4 -1
- package/build/esm/orchestrion/config/kafkajs.js.map +1 -1
- package/build/esm/orchestrion/config/knex.js +4 -1
- package/build/esm/orchestrion/config/knex.js.map +1 -1
- package/build/esm/orchestrion/config/koa.js +4 -1
- package/build/esm/orchestrion/config/koa.js.map +1 -1
- package/build/esm/orchestrion/config/langchain.js +4 -1
- package/build/esm/orchestrion/config/langchain.js.map +1 -1
- package/build/esm/orchestrion/config/langgraph.js +4 -1
- package/build/esm/orchestrion/config/langgraph.js.map +1 -1
- package/build/esm/orchestrion/config/lru-memoizer.js +4 -1
- package/build/esm/orchestrion/config/lru-memoizer.js.map +1 -1
- package/build/esm/orchestrion/config/mongodb.js +4 -1
- package/build/esm/orchestrion/config/mongodb.js.map +1 -1
- package/build/esm/orchestrion/config/mongoose.js +4 -1
- package/build/esm/orchestrion/config/mongoose.js.map +1 -1
- package/build/esm/orchestrion/config/mysql.js +4 -1
- package/build/esm/orchestrion/config/mysql.js.map +1 -1
- package/build/esm/orchestrion/config/mysql2.js +4 -1
- package/build/esm/orchestrion/config/mysql2.js.map +1 -1
- package/build/esm/orchestrion/config/nestjs.js +4 -1
- package/build/esm/orchestrion/config/nestjs.js.map +1 -1
- package/build/esm/orchestrion/config/openai.js +4 -1
- package/build/esm/orchestrion/config/openai.js.map +1 -1
- package/build/esm/orchestrion/config/pg.js +4 -1
- package/build/esm/orchestrion/config/pg.js.map +1 -1
- package/build/esm/orchestrion/config/postgres.js +4 -1
- package/build/esm/orchestrion/config/postgres.js.map +1 -1
- package/build/esm/orchestrion/config/redis.js +4 -1
- package/build/esm/orchestrion/config/redis.js.map +1 -1
- package/build/esm/orchestrion/config/remix.js +4 -1
- package/build/esm/orchestrion/config/remix.js.map +1 -1
- package/build/esm/orchestrion/config/subscribe-injection.js +22 -0
- package/build/esm/orchestrion/config/subscribe-injection.js.map +1 -0
- package/build/esm/orchestrion/config/tedious.js +4 -1
- package/build/esm/orchestrion/config/tedious.js.map +1 -1
- package/build/esm/orchestrion/config/vercel-ai.js +4 -1
- package/build/esm/orchestrion/config/vercel-ai.js.map +1 -1
- package/build/esm/orchestrion/index.js +5 -2
- package/build/esm/orchestrion/index.js.map +1 -1
- package/build/esm/orchestrion/registerChannelIntegration.js +11 -0
- package/build/esm/orchestrion/registerChannelIntegration.js.map +1 -0
- package/build/esm/package.json +1 -1
- package/build/esm/vercel-ai/index.js.map +1 -1
- package/build/types/index.d.ts +1 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/dataloader.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/fastify/index.d.ts +2 -2
- package/build/types/integrations/tracing-channel/fastify/index.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/fastify/utils.d.ts +1 -1
- package/build/types/integrations/tracing-channel/fastify/utils.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/firebase/firestore-types.d.ts +38 -0
- package/build/types/integrations/tracing-channel/firebase/firestore-types.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/firebase/firestore.d.ts +18 -0
- package/build/types/integrations/tracing-channel/firebase/firestore.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/firebase/functions.d.ts +15 -0
- package/build/types/integrations/tracing-channel/firebase/functions.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/firebase/index.d.ts +15 -0
- package/build/types/integrations/tracing-channel/firebase/index.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/firebase/instrumentation.d.ts +2 -0
- package/build/types/integrations/tracing-channel/firebase/instrumentation.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/vercel-ai.d.ts +1 -5
- package/build/types/integrations/tracing-channel/vercel-ai.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/esbuild.d.ts +2 -3
- package/build/types/orchestrion/bundler/esbuild.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/options.d.ts +34 -0
- package/build/types/orchestrion/bundler/options.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/subscribeInjection.d.ts +13 -0
- package/build/types/orchestrion/bundler/subscribeInjection.d.ts.map +1 -0
- package/build/types/orchestrion/bundler/vite.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/webpack.d.ts +6 -1
- package/build/types/orchestrion/bundler/webpack.d.ts.map +1 -1
- package/build/types/orchestrion/channels.d.ts +15 -0
- package/build/types/orchestrion/channels.d.ts.map +1 -1
- package/build/types/orchestrion/config/amqplib.d.ts +2 -0
- package/build/types/orchestrion/config/amqplib.d.ts.map +1 -1
- package/build/types/orchestrion/config/anthropic-ai.d.ts +2 -0
- package/build/types/orchestrion/config/anthropic-ai.d.ts.map +1 -1
- package/build/types/orchestrion/config/aws-sdk.d.ts +2 -0
- package/build/types/orchestrion/config/aws-sdk.d.ts.map +1 -1
- package/build/types/orchestrion/config/channel-integration-definitions.d.ts +81 -0
- package/build/types/orchestrion/config/channel-integration-definitions.d.ts.map +1 -0
- package/build/types/orchestrion/config/dataloader.d.ts +2 -0
- package/build/types/orchestrion/config/dataloader.d.ts.map +1 -1
- package/build/types/orchestrion/config/express.d.ts +2 -0
- package/build/types/orchestrion/config/express.d.ts.map +1 -1
- package/build/types/orchestrion/config/firebase.d.ts +41 -2
- package/build/types/orchestrion/config/firebase.d.ts.map +1 -1
- package/build/types/orchestrion/config/generic-pool.d.ts +2 -0
- package/build/types/orchestrion/config/generic-pool.d.ts.map +1 -1
- package/build/types/orchestrion/config/google-genai.d.ts +2 -0
- package/build/types/orchestrion/config/google-genai.d.ts.map +1 -1
- package/build/types/orchestrion/config/graphql.d.ts +2 -0
- package/build/types/orchestrion/config/graphql.d.ts.map +1 -1
- package/build/types/orchestrion/config/hapi.d.ts +2 -0
- package/build/types/orchestrion/config/hapi.d.ts.map +1 -1
- package/build/types/orchestrion/config/index.d.ts +12 -0
- package/build/types/orchestrion/config/index.d.ts.map +1 -1
- package/build/types/orchestrion/config/ioredis.d.ts +1 -0
- package/build/types/orchestrion/config/ioredis.d.ts.map +1 -1
- package/build/types/orchestrion/config/kafkajs.d.ts +2 -0
- package/build/types/orchestrion/config/kafkajs.d.ts.map +1 -1
- package/build/types/orchestrion/config/knex.d.ts +1 -0
- package/build/types/orchestrion/config/knex.d.ts.map +1 -1
- package/build/types/orchestrion/config/koa.d.ts +2 -0
- package/build/types/orchestrion/config/koa.d.ts.map +1 -1
- package/build/types/orchestrion/config/langchain.d.ts +2 -0
- package/build/types/orchestrion/config/langchain.d.ts.map +1 -1
- package/build/types/orchestrion/config/langgraph.d.ts +2 -0
- package/build/types/orchestrion/config/langgraph.d.ts.map +1 -1
- package/build/types/orchestrion/config/lru-memoizer.d.ts +2 -0
- package/build/types/orchestrion/config/lru-memoizer.d.ts.map +1 -1
- package/build/types/orchestrion/config/mongodb.d.ts +2 -0
- package/build/types/orchestrion/config/mongodb.d.ts.map +1 -1
- package/build/types/orchestrion/config/mongoose.d.ts +2 -0
- package/build/types/orchestrion/config/mongoose.d.ts.map +1 -1
- package/build/types/orchestrion/config/mysql.d.ts +2 -0
- package/build/types/orchestrion/config/mysql.d.ts.map +1 -1
- package/build/types/orchestrion/config/mysql2.d.ts +2 -0
- package/build/types/orchestrion/config/mysql2.d.ts.map +1 -1
- package/build/types/orchestrion/config/nestjs.d.ts +1 -0
- package/build/types/orchestrion/config/nestjs.d.ts.map +1 -1
- package/build/types/orchestrion/config/openai.d.ts +2 -0
- package/build/types/orchestrion/config/openai.d.ts.map +1 -1
- package/build/types/orchestrion/config/pg.d.ts +2 -0
- package/build/types/orchestrion/config/pg.d.ts.map +1 -1
- package/build/types/orchestrion/config/postgres.d.ts +1 -0
- package/build/types/orchestrion/config/postgres.d.ts.map +1 -1
- package/build/types/orchestrion/config/redis.d.ts +2 -0
- package/build/types/orchestrion/config/redis.d.ts.map +1 -1
- package/build/types/orchestrion/config/remix.d.ts +1 -0
- package/build/types/orchestrion/config/remix.d.ts.map +1 -1
- package/build/types/orchestrion/config/subscribe-injection.d.ts +31 -0
- package/build/types/orchestrion/config/subscribe-injection.d.ts.map +1 -0
- package/build/types/orchestrion/config/tedious.d.ts +1 -0
- package/build/types/orchestrion/config/tedious.d.ts.map +1 -1
- package/build/types/orchestrion/config/vercel-ai.d.ts +1 -0
- package/build/types/orchestrion/config/vercel-ai.d.ts.map +1 -1
- package/build/types/orchestrion/index.d.ts +7 -6
- package/build/types/orchestrion/index.d.ts.map +1 -1
- package/build/types/orchestrion/registerChannelIntegration.d.ts +33 -0
- package/build/types/orchestrion/registerChannelIntegration.d.ts.map +1 -0
- package/build/types/vercel-ai/index.d.ts +2 -3
- package/build/types/vercel-ai/index.d.ts.map +1 -1
- package/build/types-ts3.8/index.d.ts +1 -1
- package/build/types-ts3.8/integrations/tracing-channel/fastify/index.d.ts +2 -2
- package/build/types-ts3.8/integrations/tracing-channel/fastify/utils.d.ts +1 -1
- package/build/types-ts3.8/integrations/tracing-channel/firebase/firestore-types.d.ts +38 -0
- package/build/types-ts3.8/integrations/tracing-channel/firebase/firestore.d.ts +18 -0
- package/build/types-ts3.8/integrations/tracing-channel/firebase/functions.d.ts +15 -0
- package/build/types-ts3.8/integrations/tracing-channel/firebase/index.d.ts +15 -0
- package/build/types-ts3.8/integrations/tracing-channel/firebase/instrumentation.d.ts +2 -0
- package/build/types-ts3.8/integrations/tracing-channel/vercel-ai.d.ts +1 -5
- package/build/types-ts3.8/orchestrion/bundler/esbuild.d.ts +2 -3
- package/build/types-ts3.8/orchestrion/bundler/options.d.ts +34 -0
- package/build/types-ts3.8/orchestrion/bundler/subscribeInjection.d.ts +13 -0
- package/build/types-ts3.8/orchestrion/bundler/webpack.d.ts +6 -1
- package/build/types-ts3.8/orchestrion/channels.d.ts +15 -0
- package/build/types-ts3.8/orchestrion/config/amqplib.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/anthropic-ai.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/aws-sdk.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/channel-integration-definitions.d.ts +139 -0
- package/build/types-ts3.8/orchestrion/config/dataloader.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/express.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/firebase.d.ts +41 -2
- package/build/types-ts3.8/orchestrion/config/generic-pool.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/google-genai.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/graphql.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/hapi.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/index.d.ts +12 -0
- package/build/types-ts3.8/orchestrion/config/ioredis.d.ts +1 -0
- package/build/types-ts3.8/orchestrion/config/kafkajs.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/knex.d.ts +1 -0
- package/build/types-ts3.8/orchestrion/config/koa.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/langchain.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/langgraph.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/lru-memoizer.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/mongodb.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/mongoose.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/mysql.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/mysql2.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/nestjs.d.ts +1 -0
- package/build/types-ts3.8/orchestrion/config/openai.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/pg.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/postgres.d.ts +1 -0
- package/build/types-ts3.8/orchestrion/config/redis.d.ts +2 -0
- package/build/types-ts3.8/orchestrion/config/remix.d.ts +1 -0
- package/build/types-ts3.8/orchestrion/config/subscribe-injection.d.ts +31 -0
- package/build/types-ts3.8/orchestrion/config/tedious.d.ts +1 -0
- package/build/types-ts3.8/orchestrion/config/vercel-ai.d.ts +1 -0
- package/build/types-ts3.8/orchestrion/index.d.ts +7 -6
- package/build/types-ts3.8/orchestrion/registerChannelIntegration.d.ts +33 -0
- package/build/types-ts3.8/vercel-ai/index.d.ts +2 -3
- package/changes.json +7 -3
- package/package.json +11 -6
- package/build/cjs/orchestrion/config/prisma.js +0 -8
- package/build/cjs/orchestrion/config/prisma.js.map +0 -1
- package/build/cjs/orchestrion/config/react-router.js +0 -8
- package/build/cjs/orchestrion/config/react-router.js.map +0 -1
- package/build/esm/orchestrion/config/prisma.js +0 -5
- package/build/esm/orchestrion/config/prisma.js.map +0 -1
- package/build/esm/orchestrion/config/react-router.js +0 -5
- package/build/esm/orchestrion/config/react-router.js.map +0 -1
- package/build/types/orchestrion/config/prisma.d.ts +0 -4
- package/build/types/orchestrion/config/prisma.d.ts.map +0 -1
- package/build/types/orchestrion/config/react-router.d.ts +0 -4
- package/build/types/orchestrion/config/react-router.d.ts.map +0 -1
- package/build/types-ts3.8/orchestrion/config/prisma.d.ts +0 -4
- package/build/types-ts3.8/orchestrion/config/react-router.d.ts +0 -4
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const SUBSCRIBE_TRANSFORM_NAME = "sentrySubscribeOrchestrionChannel";
|
|
2
|
+
function toSubscribeInjections(configs) {
|
|
3
|
+
const seen = /* @__PURE__ */ new Set();
|
|
4
|
+
const injections = [];
|
|
5
|
+
for (const { module } of configs) {
|
|
6
|
+
const key = `${module.name}\0${module.versionRange}\0${String(module.filePath)}`;
|
|
7
|
+
if (seen.has(key)) {
|
|
8
|
+
continue;
|
|
9
|
+
}
|
|
10
|
+
seen.add(key);
|
|
11
|
+
injections.push({
|
|
12
|
+
channelName: module.name,
|
|
13
|
+
module,
|
|
14
|
+
astQuery: "Program",
|
|
15
|
+
transform: SUBSCRIBE_TRANSFORM_NAME
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return injections;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { SUBSCRIBE_TRANSFORM_NAME, toSubscribeInjections };
|
|
22
|
+
//# sourceMappingURL=subscribe-injection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscribe-injection.js","sources":["../../../../src/orchestrion/config/subscribe-injection.ts"],"sourcesContent":["import type { InstrumentationConfig } from '@apm-js-collab/code-transformer';\n\n/**\n * Name shared by the `Program` injection configs (their `transform` field) and\n * the custom transform registered on the bundler plugin (its `customTransforms`\n * key). Any unique string works — it only has to match on both sides.\n *\n * Lives in this dependency-free leaf so the per-library config files can build\n * their injection configs without importing the transform implementation (which\n * pulls in `meriyah` and must never reach the runtime `--import` path).\n */\nexport const SUBSCRIBE_TRANSFORM_NAME = 'sentrySubscribeOrchestrionChannel';\n\n/**\n * Turn a library's channel-publishing configs into the `Program`-matching\n * injection configs that make each instrumented file self-register its channel\n * subscriber (via the {@link SUBSCRIBE_TRANSFORM_NAME} custom transform).\n *\n * Emits one injection per distinct instrumented file (deduped by module\n * matcher), so the subscribe snippet lands in exactly the files that receive\n * channels and inherits their precise version ranges. `channelName` carries the\n * package name (not a real channel — nothing is wrapped here) so the transform\n * can look up which subscriber to import.\n *\n * Co-located with each library's config (e.g. `mysqlSubscribeInjection`) but\n * kept OUT of `SENTRY_INSTRUMENTATIONS`: the runtime `--import` hook consumes\n * that list and can't register the custom transform, and an unregistered\n * `transform` makes the code-transformer drop the whole file. They are\n * aggregated separately into `SUBSCRIBE_INJECTIONS` and only handed to a bundler\n * plugin that opts in (and registers the transform).\n */\nexport function toSubscribeInjections(configs: InstrumentationConfig[]): InstrumentationConfig[] {\n const seen = new Set<string>();\n const injections: InstrumentationConfig[] = [];\n\n for (const { module } of configs) {\n const key = `${module.name}\\0${module.versionRange}\\0${String(module.filePath)}`;\n\n if (seen.has(key)) {\n continue;\n }\n\n seen.add(key);\n\n injections.push({\n channelName: module.name,\n module,\n astQuery: 'Program',\n transform: SUBSCRIBE_TRANSFORM_NAME,\n });\n }\n\n return injections;\n}\n"],"names":[],"mappings":"AAWO,MAAM,wBAAA,GAA2B;AAoBjC,SAAS,sBAAsB,OAAA,EAA2D;AAC/F,EAAA,MAAM,IAAA,uBAAW,GAAA,EAAY;AAC7B,EAAA,MAAM,aAAsC,EAAC;AAE7C,EAAA,KAAA,MAAW,EAAE,MAAA,EAAO,IAAK,OAAA,EAAS;AAChC,IAAA,MAAM,GAAA,GAAM,CAAA,EAAG,MAAA,CAAO,IAAI,CAAA,EAAA,EAAK,MAAA,CAAO,YAAY,CAAA,EAAA,EAAK,MAAA,CAAO,MAAA,CAAO,QAAQ,CAAC,CAAA,CAAA;AAE9E,IAAA,IAAI,IAAA,CAAK,GAAA,CAAI,GAAG,CAAA,EAAG;AACjB,MAAA;AAAA,IACF;AAEA,IAAA,IAAA,CAAK,IAAI,GAAG,CAAA;AAEZ,IAAA,UAAA,CAAW,IAAA,CAAK;AAAA,MACd,aAAa,MAAA,CAAO,IAAA;AAAA,MACpB,MAAA;AAAA,MACA,QAAA,EAAU,SAAA;AAAA,MACV,SAAA,EAAW;AAAA,KACZ,CAAA;AAAA,EACH;AAEA,EAAA,OAAO,UAAA;AACT;;;;"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { toSubscribeInjections } from './subscribe-injection.js';
|
|
2
|
+
|
|
1
3
|
const MODULE_NAME = "tedious";
|
|
2
4
|
const FILE_PATH = "lib/connection.js";
|
|
3
5
|
const VERSION_RANGE = ">=1.11.0 <20";
|
|
@@ -16,6 +18,7 @@ const tediousChannels = {
|
|
|
16
18
|
TEDIOUS_PREPARE: "orchestrion:tedious:prepare",
|
|
17
19
|
TEDIOUS_EXECUTE: "orchestrion:tedious:execute"
|
|
18
20
|
};
|
|
21
|
+
const tediousSubscribeInjection = toSubscribeInjections(tediousConfig);
|
|
19
22
|
|
|
20
|
-
export { tediousChannels, tediousConfig };
|
|
23
|
+
export { tediousChannels, tediousConfig, tediousSubscribeInjection };
|
|
21
24
|
//# sourceMappingURL=tedious.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tedious.js","sources":["../../../../src/orchestrion/config/tedious.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\nconst MODULE_NAME = 'tedious';\n\n// `Connection` has lived in `lib/connection.js` across the whole supported range (matches the vendored\n// OTel `supportedVersions`). Orchestrion never matches a file that doesn't exist, so a single entry is\n// safe even for versions that shipped extra layouts.\nconst FILE_PATH = 'lib/connection.js';\nconst VERSION_RANGE = '>=1.11.0 <20';\n\n// `Connection` methods that dispatch a request (each traced as one db span) plus `connect`, which the\n// subscriber wraps for bookkeeping only (tracking the connection's active database, read into `db.name`).\n// All return synchronously; the request completes later via its callback/events, so the subscriber owns\n// span-ending rather than the channel lifecycle.\nconst METHODS = ['connect', 'execSql', 'execSqlBatch', 'callProcedure', 'execBulkLoad', 'prepare', 'execute'] as const;\n\nexport const tediousConfig: InstrumentationConfig[] = METHODS.map(methodName => ({\n channelName: methodName,\n module: { name: MODULE_NAME, versionRange: VERSION_RANGE, filePath: FILE_PATH },\n functionQuery: { className: 'Connection', methodName, kind: 'Sync' },\n}));\n\nexport const tediousChannels = {\n TEDIOUS_CONNECT: 'orchestrion:tedious:connect',\n TEDIOUS_EXEC_SQL: 'orchestrion:tedious:execSql',\n TEDIOUS_EXEC_SQL_BATCH: 'orchestrion:tedious:execSqlBatch',\n TEDIOUS_CALL_PROCEDURE: 'orchestrion:tedious:callProcedure',\n TEDIOUS_EXEC_BULK_LOAD: 'orchestrion:tedious:execBulkLoad',\n TEDIOUS_PREPARE: 'orchestrion:tedious:prepare',\n TEDIOUS_EXECUTE: 'orchestrion:tedious:execute',\n} as const;\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tedious.js","sources":["../../../../src/orchestrion/config/tedious.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\nimport { toSubscribeInjections } from './subscribe-injection';\n\nconst MODULE_NAME = 'tedious';\n\n// `Connection` has lived in `lib/connection.js` across the whole supported range (matches the vendored\n// OTel `supportedVersions`). Orchestrion never matches a file that doesn't exist, so a single entry is\n// safe even for versions that shipped extra layouts.\nconst FILE_PATH = 'lib/connection.js';\nconst VERSION_RANGE = '>=1.11.0 <20';\n\n// `Connection` methods that dispatch a request (each traced as one db span) plus `connect`, which the\n// subscriber wraps for bookkeeping only (tracking the connection's active database, read into `db.name`).\n// All return synchronously; the request completes later via its callback/events, so the subscriber owns\n// span-ending rather than the channel lifecycle.\nconst METHODS = ['connect', 'execSql', 'execSqlBatch', 'callProcedure', 'execBulkLoad', 'prepare', 'execute'] as const;\n\nexport const tediousConfig: InstrumentationConfig[] = METHODS.map(methodName => ({\n channelName: methodName,\n module: { name: MODULE_NAME, versionRange: VERSION_RANGE, filePath: FILE_PATH },\n functionQuery: { className: 'Connection', methodName, kind: 'Sync' },\n}));\n\nexport const tediousChannels = {\n TEDIOUS_CONNECT: 'orchestrion:tedious:connect',\n TEDIOUS_EXEC_SQL: 'orchestrion:tedious:execSql',\n TEDIOUS_EXEC_SQL_BATCH: 'orchestrion:tedious:execSqlBatch',\n TEDIOUS_CALL_PROCEDURE: 'orchestrion:tedious:callProcedure',\n TEDIOUS_EXEC_BULK_LOAD: 'orchestrion:tedious:execBulkLoad',\n TEDIOUS_PREPARE: 'orchestrion:tedious:prepare',\n TEDIOUS_EXECUTE: 'orchestrion:tedious:execute',\n} as const;\n\nexport const tediousSubscribeInjection = toSubscribeInjections(tediousConfig);\n"],"names":[],"mappings":";;AAGA,MAAM,WAAA,GAAc,SAAA;AAKpB,MAAM,SAAA,GAAY,mBAAA;AAClB,MAAM,aAAA,GAAgB,cAAA;AAMtB,MAAM,OAAA,GAAU,CAAC,SAAA,EAAW,SAAA,EAAW,gBAAgB,eAAA,EAAiB,cAAA,EAAgB,WAAW,SAAS,CAAA;AAErG,MAAM,aAAA,GAAyC,OAAA,CAAQ,GAAA,CAAI,CAAA,UAAA,MAAe;AAAA,EAC/E,WAAA,EAAa,UAAA;AAAA,EACb,QAAQ,EAAE,IAAA,EAAM,aAAa,YAAA,EAAc,aAAA,EAAe,UAAU,SAAA,EAAU;AAAA,EAC9E,eAAe,EAAE,SAAA,EAAW,YAAA,EAAc,UAAA,EAAY,MAAM,MAAA;AAC9D,CAAA,CAAE;AAEK,MAAM,eAAA,GAAkB;AAAA,EAC7B,eAAA,EAAiB,6BAAA;AAAA,EACjB,gBAAA,EAAkB,6BAAA;AAAA,EAClB,sBAAA,EAAwB,kCAAA;AAAA,EACxB,sBAAA,EAAwB,mCAAA;AAAA,EACxB,sBAAA,EAAwB,kCAAA;AAAA,EACxB,eAAA,EAAiB,6BAAA;AAAA,EACjB,eAAA,EAAiB;AACnB;AAEO,MAAM,yBAAA,GAA4B,sBAAsB,aAAa;;;;"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { toSubscribeInjections } from './subscribe-injection.js';
|
|
2
|
+
|
|
1
3
|
const vercelAiConfig = [
|
|
2
4
|
// Vercel AI v6: mirror the v7 native `ai:telemetry` channel by injecting
|
|
3
5
|
// channels into the top-level entry points. `resolveLanguageModel` is wrapped
|
|
@@ -40,6 +42,7 @@ function vercelAiEntries(versionRange, channelName, functionName, kind) {
|
|
|
40
42
|
functionQuery: { functionName, kind }
|
|
41
43
|
}));
|
|
42
44
|
}
|
|
45
|
+
const vercelAiSubscribeInjection = toSubscribeInjections(vercelAiConfig);
|
|
43
46
|
|
|
44
|
-
export { vercelAiChannels, vercelAiConfig };
|
|
47
|
+
export { vercelAiChannels, vercelAiConfig, vercelAiSubscribeInjection };
|
|
45
48
|
//# sourceMappingURL=vercel-ai.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vercel-ai.js","sources":["../../../../src/orchestrion/config/vercel-ai.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\nexport const vercelAiConfig = [\n // Vercel AI v6: mirror the v7 native `ai:telemetry` channel by injecting\n // channels into the top-level entry points. `resolveLanguageModel` is wrapped\n // not to span it, but so the subscriber can monkey-patch `doGenerate`/\n // `doStream` on the returned model (the only way to span the model call,\n // which is an inline call with no injectable definition in `ai`).\n // `streamText` returns its result synchronously (streaming is lazy), so it's\n // `Sync`; the subscriber binds the span via `bindTracingChannelToSpan`, which\n // ends it when the (synchronous) call returns.\n\n // The majority of entrypoints are present in all versions we support\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'generateText', 'generateText', 'Async'),\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'streamText', 'streamText', 'Sync'),\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'generateObject', 'generateObject', 'Async'),\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'embed', 'embed', 'Async'),\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'embedMany', 'embedMany', 'Async'),\n\n // The following entry is only present in v5 and later\n ...vercelAiEntries('>=5.0.0 <7.0.0', 'resolveLanguageModel', 'resolveLanguageModel', 'Sync'),\n\n // The following entry is only present in v6 and later\n ...vercelAiEntries('>=6.0.0 <7.0.0', 'executeToolCall', 'executeToolCall', 'Async'),\n] satisfies InstrumentationConfig[];\n\nexport const vercelAiChannels = {\n // Vercel AI (`ai`): orchestrion injects these so the same channel-based\n // integration that consumes `ai`'s native `ai:telemetry` channel (v7) can\n // also instrument v4/v5/v6. Each maps to a top-level function in `ai`'s bundle.\n // All three versions share the same channel names (the subscriber is version-agnostic);\n // `VERCEL_AI_EXECUTE_TOOL_CALL` is v6-only (v4/v5 have no `executeToolCall` export) and\n // `VERCEL_AI_RESOLVE_LANGUAGE_MODEL` is v5/v6-only (v4 has no such chokepoint).\n VERCEL_AI_GENERATE_TEXT: 'orchestrion:ai:generateText',\n VERCEL_AI_STREAM_TEXT: 'orchestrion:ai:streamText',\n VERCEL_AI_GENERATE_OBJECT: 'orchestrion:ai:generateObject',\n VERCEL_AI_EMBED: 'orchestrion:ai:embed',\n VERCEL_AI_EMBED_MANY: 'orchestrion:ai:embedMany',\n VERCEL_AI_EXECUTE_TOOL_CALL: 'orchestrion:ai:executeToolCall',\n VERCEL_AI_RESOLVE_LANGUAGE_MODEL: 'orchestrion:ai:resolveLanguageModel',\n} as const;\n\n/**\n * The central list of channel injections orchestrion should perform.\n *\n * This module has NO side effects — it's the only thing both the runtime hook\n * (`runtime/import-hook.mjs`) and the bundler plugins (`bundler/vite.ts`, …)\n * import from. Adding a new instrumented method is one entry here plus one\n * subscriber in `integrations/<lib>/tracing-channel.ts`.\n *\n * `channelName` here is the unprefixed suffix; the actual diagnostics_channel\n * name is `orchestrion:${module.name}:${channelName}` (see `channels.ts`).\n */\n/**\n * `ai` ships a single bundled entry per module system, so each instrumented\n * function needs one config entry per file (the app loads whichever matches its\n * module system). This expands a single target into both.\n */\nfunction vercelAiEntries(\n versionRange: string,\n channelName: string,\n functionName: string,\n kind: 'Async' | 'Sync',\n): InstrumentationConfig[] {\n return ['dist/index.js', 'dist/index.mjs'].map(filePath => ({\n channelName,\n module: { name: 'ai', versionRange, filePath },\n functionQuery: { functionName, kind },\n }));\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vercel-ai.js","sources":["../../../../src/orchestrion/config/vercel-ai.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\nimport { toSubscribeInjections } from './subscribe-injection';\n\nexport const vercelAiConfig = [\n // Vercel AI v6: mirror the v7 native `ai:telemetry` channel by injecting\n // channels into the top-level entry points. `resolveLanguageModel` is wrapped\n // not to span it, but so the subscriber can monkey-patch `doGenerate`/\n // `doStream` on the returned model (the only way to span the model call,\n // which is an inline call with no injectable definition in `ai`).\n // `streamText` returns its result synchronously (streaming is lazy), so it's\n // `Sync`; the subscriber binds the span via `bindTracingChannelToSpan`, which\n // ends it when the (synchronous) call returns.\n\n // The majority of entrypoints are present in all versions we support\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'generateText', 'generateText', 'Async'),\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'streamText', 'streamText', 'Sync'),\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'generateObject', 'generateObject', 'Async'),\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'embed', 'embed', 'Async'),\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'embedMany', 'embedMany', 'Async'),\n\n // The following entry is only present in v5 and later\n ...vercelAiEntries('>=5.0.0 <7.0.0', 'resolveLanguageModel', 'resolveLanguageModel', 'Sync'),\n\n // The following entry is only present in v6 and later\n ...vercelAiEntries('>=6.0.0 <7.0.0', 'executeToolCall', 'executeToolCall', 'Async'),\n] satisfies InstrumentationConfig[];\n\nexport const vercelAiChannels = {\n // Vercel AI (`ai`): orchestrion injects these so the same channel-based\n // integration that consumes `ai`'s native `ai:telemetry` channel (v7) can\n // also instrument v4/v5/v6. Each maps to a top-level function in `ai`'s bundle.\n // All three versions share the same channel names (the subscriber is version-agnostic);\n // `VERCEL_AI_EXECUTE_TOOL_CALL` is v6-only (v4/v5 have no `executeToolCall` export) and\n // `VERCEL_AI_RESOLVE_LANGUAGE_MODEL` is v5/v6-only (v4 has no such chokepoint).\n VERCEL_AI_GENERATE_TEXT: 'orchestrion:ai:generateText',\n VERCEL_AI_STREAM_TEXT: 'orchestrion:ai:streamText',\n VERCEL_AI_GENERATE_OBJECT: 'orchestrion:ai:generateObject',\n VERCEL_AI_EMBED: 'orchestrion:ai:embed',\n VERCEL_AI_EMBED_MANY: 'orchestrion:ai:embedMany',\n VERCEL_AI_EXECUTE_TOOL_CALL: 'orchestrion:ai:executeToolCall',\n VERCEL_AI_RESOLVE_LANGUAGE_MODEL: 'orchestrion:ai:resolveLanguageModel',\n} as const;\n\n/**\n * The central list of channel injections orchestrion should perform.\n *\n * This module has NO side effects — it's the only thing both the runtime hook\n * (`runtime/import-hook.mjs`) and the bundler plugins (`bundler/vite.ts`, …)\n * import from. Adding a new instrumented method is one entry here plus one\n * subscriber in `integrations/<lib>/tracing-channel.ts`.\n *\n * `channelName` here is the unprefixed suffix; the actual diagnostics_channel\n * name is `orchestrion:${module.name}:${channelName}` (see `channels.ts`).\n */\n/**\n * `ai` ships a single bundled entry per module system, so each instrumented\n * function needs one config entry per file (the app loads whichever matches its\n * module system). This expands a single target into both.\n */\nfunction vercelAiEntries(\n versionRange: string,\n channelName: string,\n functionName: string,\n kind: 'Async' | 'Sync',\n): InstrumentationConfig[] {\n return ['dist/index.js', 'dist/index.mjs'].map(filePath => ({\n channelName,\n module: { name: 'ai', versionRange, filePath },\n functionQuery: { functionName, kind },\n }));\n}\n\nexport const vercelAiSubscribeInjection = toSubscribeInjections(vercelAiConfig);\n"],"names":[],"mappings":";;AAGO,MAAM,cAAA,GAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAW5B,GAAG,eAAA,CAAgB,gBAAA,EAAkB,cAAA,EAAgB,gBAAgB,OAAO,CAAA;AAAA,EAC5E,GAAG,eAAA,CAAgB,gBAAA,EAAkB,YAAA,EAAc,cAAc,MAAM,CAAA;AAAA,EACvE,GAAG,eAAA,CAAgB,gBAAA,EAAkB,gBAAA,EAAkB,kBAAkB,OAAO,CAAA;AAAA,EAChF,GAAG,eAAA,CAAgB,gBAAA,EAAkB,OAAA,EAAS,SAAS,OAAO,CAAA;AAAA,EAC9D,GAAG,eAAA,CAAgB,gBAAA,EAAkB,WAAA,EAAa,aAAa,OAAO,CAAA;AAAA;AAAA,EAGtE,GAAG,eAAA,CAAgB,gBAAA,EAAkB,sBAAA,EAAwB,wBAAwB,MAAM,CAAA;AAAA;AAAA,EAG3F,GAAG,eAAA,CAAgB,gBAAA,EAAkB,iBAAA,EAAmB,mBAAmB,OAAO;AACpF;AAEO,MAAM,gBAAA,GAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO9B,uBAAA,EAAyB,6BAAA;AAAA,EACzB,qBAAA,EAAuB,2BAAA;AAAA,EACvB,yBAAA,EAA2B,+BAAA;AAAA,EAC3B,eAAA,EAAiB,sBAAA;AAAA,EACjB,oBAAA,EAAsB,0BAAA;AAAA,EACtB,2BAAA,EAA6B,gCAAA;AAAA,EAC7B,gCAAA,EAAkC;AACpC;AAkBA,SAAS,eAAA,CACP,YAAA,EACA,WAAA,EACA,YAAA,EACA,IAAA,EACyB;AACzB,EAAA,OAAO,CAAC,eAAA,EAAiB,gBAAgB,CAAA,CAAE,IAAI,CAAA,QAAA,MAAa;AAAA,IAC1D,WAAA;AAAA,IACA,MAAA,EAAQ,EAAE,IAAA,EAAM,IAAA,EAAM,cAAc,QAAA,EAAS;AAAA,IAC7C,aAAA,EAAe,EAAE,YAAA,EAAc,IAAA;AAAK,GACtC,CAAE,CAAA;AACJ;AAEO,MAAM,0BAAA,GAA6B,sBAAsB,cAAc;;;;"}
|
|
@@ -24,7 +24,9 @@ import { postgresJsChannelIntegration } from '../integrations/tracing-channel/po
|
|
|
24
24
|
import { tediousChannelIntegration } from '../integrations/tracing-channel/tedious.js';
|
|
25
25
|
import { vercelAiChannelIntegration } from '../integrations/tracing-channel/vercel-ai.js';
|
|
26
26
|
import { expressChannelIntegration } from '../integrations/tracing-channel/express/index.js';
|
|
27
|
+
import { firebaseChannelIntegration } from '../integrations/tracing-channel/firebase/index.js';
|
|
27
28
|
export { detectOrchestrionSetup, isOrchestrionInjected } from './detect.js';
|
|
29
|
+
export { registerOrchestrionChannelIntegration } from './registerChannelIntegration.js';
|
|
28
30
|
export { nestjsChannels } from './config/nestjs.js';
|
|
29
31
|
export { remixChannels } from './config/remix.js';
|
|
30
32
|
export { redisChannelIntegration } from '../integrations/tracing-channel/redis.js';
|
|
@@ -51,8 +53,9 @@ const channelIntegrations = {
|
|
|
51
53
|
graphqlIntegration: graphqlDiagnosticsChannelIntegration,
|
|
52
54
|
kafkajsIntegration: kafkajsChannelIntegration,
|
|
53
55
|
tediousIntegration: tediousChannelIntegration,
|
|
54
|
-
awsIntegration: awsChannelIntegration
|
|
56
|
+
awsIntegration: awsChannelIntegration,
|
|
57
|
+
firebaseIntegration: firebaseChannelIntegration
|
|
55
58
|
};
|
|
56
59
|
|
|
57
|
-
export { amqplibChannelIntegration, anthropicChannelIntegration, awsChannelIntegration, channelIntegrations, expressChannelIntegration, genericPoolChannelIntegration, googleGenAIChannelIntegration, hapiChannelIntegration, kafkajsChannelIntegration, koaChannelIntegration, langChainChannelIntegration, langGraphChannelIntegration, lruMemoizerChannelIntegration, mongodbChannelIntegration, mongooseChannelIntegration, mysql2ChannelIntegration, mysqlChannelIntegration, openaiChannelIntegration, postgresChannelIntegration, postgresJsChannelIntegration, tediousChannelIntegration, vercelAiChannelIntegration };
|
|
60
|
+
export { amqplibChannelIntegration, anthropicChannelIntegration, awsChannelIntegration, channelIntegrations, expressChannelIntegration, firebaseChannelIntegration, genericPoolChannelIntegration, googleGenAIChannelIntegration, hapiChannelIntegration, kafkajsChannelIntegration, koaChannelIntegration, langChainChannelIntegration, langGraphChannelIntegration, lruMemoizerChannelIntegration, mongodbChannelIntegration, mongooseChannelIntegration, mysql2ChannelIntegration, mysqlChannelIntegration, openaiChannelIntegration, postgresChannelIntegration, postgresJsChannelIntegration, tediousChannelIntegration, vercelAiChannelIntegration };
|
|
58
61
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/orchestrion/index.ts"],"sourcesContent":["import { amqplibChannelIntegration } from '../integrations/tracing-channel/amqplib';\nimport { anthropicChannelIntegration } from '../integrations/tracing-channel/anthropic';\nimport { awsChannelIntegration } from '../integrations/tracing-channel/aws-sdk';\nimport { dataloaderChannelIntegration } from '../integrations/tracing-channel/dataloader';\nimport { genericPoolChannelIntegration } from '../integrations/tracing-channel/generic-pool';\nimport { googleGenAIChannelIntegration } from '../integrations/tracing-channel/google-genai';\nimport {\n graphqlChannelIntegration,\n graphqlDiagnosticsChannelIntegration,\n} from '../integrations/tracing-channel/graphql';\nimport { hapiChannelIntegration } from '../integrations/tracing-channel/hapi';\nimport { koaChannelIntegration } from '../integrations/tracing-channel/koa';\nimport { ioredisChannelIntegration } from '../integrations/tracing-channel/ioredis';\nimport { kafkajsChannelIntegration } from '../integrations/tracing-channel/kafkajs';\nimport { knexChannelIntegration } from '../integrations/tracing-channel/knex';\nimport { langChainChannelIntegration } from '../integrations/tracing-channel/langchain';\nimport { langGraphChannelIntegration } from '../integrations/tracing-channel/langgraph';\nimport { lruMemoizerChannelIntegration } from '../integrations/tracing-channel/lru-memoizer';\nimport { mongodbChannelIntegration } from '../integrations/tracing-channel/mongodb';\nimport { mongooseChannelIntegration } from '../integrations/tracing-channel/mongoose';\nimport { mysqlChannelIntegration } from '../integrations/tracing-channel/mysql';\nimport { mysql2ChannelIntegration } from '../integrations/tracing-channel/mysql2';\nimport { openaiChannelIntegration } from '../integrations/tracing-channel/openai';\nimport { postgresChannelIntegration } from '../integrations/tracing-channel/postgres';\nimport { postgresJsChannelIntegration } from '../integrations/tracing-channel/postgres-js';\nimport { tediousChannelIntegration } from '../integrations/tracing-channel/tedious';\nimport { vercelAiChannelIntegration } from '../integrations/tracing-channel/vercel-ai';\nimport { expressChannelIntegration } from '../integrations/tracing-channel/express';\n\nexport { detectOrchestrionSetup, isOrchestrionInjected } from './detect';\n// The `@nestjs/*` channel names live here alongside their transform config; the\n// listener that subscribes to them lives in `@sentry/nestjs`, which imports this.\nexport { nestjsChannels } from './config/nestjs';\n// The remix channel names live here alongside their transform config; the\n// listener that subscribes to them lives in `@sentry/remix`, which imports this.\nexport { remixChannels } from './config/remix';\nexport {\n amqplibChannelIntegration,\n anthropicChannelIntegration,\n awsChannelIntegration,\n dataloaderChannelIntegration,\n genericPoolChannelIntegration,\n googleGenAIChannelIntegration,\n graphqlChannelIntegration,\n hapiChannelIntegration,\n koaChannelIntegration,\n ioredisChannelIntegration,\n kafkajsChannelIntegration,\n knexChannelIntegration,\n langChainChannelIntegration,\n langGraphChannelIntegration,\n lruMemoizerChannelIntegration,\n mongodbChannelIntegration,\n mongooseChannelIntegration,\n mysqlChannelIntegration,\n mysql2ChannelIntegration,\n openaiChannelIntegration,\n postgresChannelIntegration,\n postgresJsChannelIntegration,\n tediousChannelIntegration,\n vercelAiChannelIntegration,\n expressChannelIntegration,\n};\nexport type { KoaChannelIntegrationOptions } from '../integrations/tracing-channel/koa';\nexport type { IORedisChannelIntegrationOptions, IORedisResponseHook } from '../integrations/tracing-channel/ioredis';\nexport type { PostgresJsChannelIntegrationOptions } from '../integrations/tracing-channel/postgres-js';\nexport { redisChannelIntegration } from '../integrations/tracing-channel/redis';\nexport type { RedisChannelIntegrationOptions, RedisResponseHook } from '../integrations/tracing-channel/redis';\nexport type { InstrumentationConfig, CustomTransform } from '@apm-js-collab/code-transformer-bundler-plugins/core';\n\n// The structural `graphql` package types are the single source of truth shared with `@sentry/node`'s\n// vendored OTel graphql instrumentation (re-exported from here so the two can't drift).\nexport type * from '../integrations/tracing-channel/graphql/graphql-types';\n\n/**\n * The canonical set of orchestrion diagnostics-channel integrations, keyed by their public\n * (OTel-parity) factory name.\n *\n * Single source of truth: add a new channel integration here and every consumer — the `@sentry/node`\n * opt-in helper (`experimentalUseDiagnosticsChannelInjection`) and its public\n * `diagnosticsChannelInjectionIntegrations()` map — picks it up automatically, so there's no separate\n * list to keep in sync.\n *\n * NOTE: `ioredisChannelIntegration` and `redisChannelIntegration` are intentionally NOT here. They\n * only partially replace the composite OTel `Redis` integration and need the node SDK's redis cache\n * `responseHook` (which can't live in `server-utils`), so `@sentry/node` wires them up separately.\n *\n * Framework SDKs that own their own channel listener (e.g. `@sentry/nestjs`'s `Nest`) are NOT here\n * either: their transform config is still in `SENTRY_INSTRUMENTATIONS`, but the listener lives in\n * their package and picks the channel-vs-OTel path itself at `setupOnce`, so it needs no central swap.\n *\n * NOTE: `dataloaderChannelIntegration` is also NOT here. Everything in this map is auto-appended to\n * the default integrations, but the OTel `Dataloader` integration is opt-in (never a default). Like\n * `@sentry/nestjs`'s `Nest`, its `@sentry/node` factory picks the channel-vs-OTel path itself at\n * `setupOnce` (via `isOrchestrionInjected()`), so there's nothing for the central swap to do.\n */\nexport const channelIntegrations = {\n postgresIntegration: postgresChannelIntegration,\n postgresJsIntegration: postgresJsChannelIntegration,\n mongoIntegration: mongodbChannelIntegration,\n mysqlIntegration: mysqlChannelIntegration,\n mysql2Integration: mysql2ChannelIntegration,\n genericPoolIntegration: genericPoolChannelIntegration,\n mongooseIntegration: mongooseChannelIntegration,\n lruMemoizerIntegration: lruMemoizerChannelIntegration,\n openaiIntegration: openaiChannelIntegration,\n anthropicIntegration: anthropicChannelIntegration,\n googleGenAIIntegration: googleGenAIChannelIntegration,\n langChainIntegration: langChainChannelIntegration,\n langGraphIntegration: langGraphChannelIntegration,\n vercelAiIntegration: vercelAiChannelIntegration,\n amqplibIntegration: amqplibChannelIntegration,\n hapiIntegration: hapiChannelIntegration,\n koaIntegration: koaChannelIntegration,\n expressIntegration: expressChannelIntegration,\n graphqlIntegration: graphqlDiagnosticsChannelIntegration,\n kafkajsIntegration: kafkajsChannelIntegration,\n tediousIntegration: tediousChannelIntegration,\n awsIntegration: awsChannelIntegration,\n} as const;\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/orchestrion/index.ts"],"sourcesContent":["import { amqplibChannelIntegration } from '../integrations/tracing-channel/amqplib';\nimport { anthropicChannelIntegration } from '../integrations/tracing-channel/anthropic';\nimport { awsChannelIntegration } from '../integrations/tracing-channel/aws-sdk';\nimport { dataloaderChannelIntegration } from '../integrations/tracing-channel/dataloader';\nimport { genericPoolChannelIntegration } from '../integrations/tracing-channel/generic-pool';\nimport { googleGenAIChannelIntegration } from '../integrations/tracing-channel/google-genai';\nimport {\n graphqlChannelIntegration,\n graphqlDiagnosticsChannelIntegration,\n} from '../integrations/tracing-channel/graphql';\nimport { hapiChannelIntegration } from '../integrations/tracing-channel/hapi';\nimport { koaChannelIntegration } from '../integrations/tracing-channel/koa';\nimport { ioredisChannelIntegration } from '../integrations/tracing-channel/ioredis';\nimport { kafkajsChannelIntegration } from '../integrations/tracing-channel/kafkajs';\nimport { knexChannelIntegration } from '../integrations/tracing-channel/knex';\nimport { langChainChannelIntegration } from '../integrations/tracing-channel/langchain';\nimport { langGraphChannelIntegration } from '../integrations/tracing-channel/langgraph';\nimport { lruMemoizerChannelIntegration } from '../integrations/tracing-channel/lru-memoizer';\nimport { mongodbChannelIntegration } from '../integrations/tracing-channel/mongodb';\nimport { mongooseChannelIntegration } from '../integrations/tracing-channel/mongoose';\nimport { mysqlChannelIntegration } from '../integrations/tracing-channel/mysql';\nimport { mysql2ChannelIntegration } from '../integrations/tracing-channel/mysql2';\nimport { openaiChannelIntegration } from '../integrations/tracing-channel/openai';\nimport { postgresChannelIntegration } from '../integrations/tracing-channel/postgres';\nimport { postgresJsChannelIntegration } from '../integrations/tracing-channel/postgres-js';\nimport { tediousChannelIntegration } from '../integrations/tracing-channel/tedious';\nimport { vercelAiChannelIntegration } from '../integrations/tracing-channel/vercel-ai';\nimport { expressChannelIntegration } from '../integrations/tracing-channel/express';\nimport { firebaseChannelIntegration } from '../integrations/tracing-channel/firebase';\n\nexport { detectOrchestrionSetup, isOrchestrionInjected } from './detect';\n// The runtime target of the subscribe-injection snippet: instrumented modules\n// import this to self-register their channel subscriber on the global marker\n// (used by bundler-only SDKs).\nexport { registerOrchestrionChannelIntegration } from './registerChannelIntegration';\n// The `@nestjs/*` channel names live here alongside their transform config; the\n// listener that subscribes to them lives in `@sentry/nestjs`, which imports this.\nexport { nestjsChannels } from './config/nestjs';\n// The remix channel names live here alongside their transform config; the\n// listener that subscribes to them lives in `@sentry/remix`, which imports this.\nexport { remixChannels } from './config/remix';\nexport {\n amqplibChannelIntegration,\n anthropicChannelIntegration,\n awsChannelIntegration,\n dataloaderChannelIntegration,\n genericPoolChannelIntegration,\n googleGenAIChannelIntegration,\n graphqlChannelIntegration,\n hapiChannelIntegration,\n koaChannelIntegration,\n ioredisChannelIntegration,\n kafkajsChannelIntegration,\n knexChannelIntegration,\n langChainChannelIntegration,\n langGraphChannelIntegration,\n lruMemoizerChannelIntegration,\n mongodbChannelIntegration,\n mongooseChannelIntegration,\n mysqlChannelIntegration,\n mysql2ChannelIntegration,\n openaiChannelIntegration,\n postgresChannelIntegration,\n postgresJsChannelIntegration,\n tediousChannelIntegration,\n vercelAiChannelIntegration,\n expressChannelIntegration,\n firebaseChannelIntegration,\n};\nexport type { KoaChannelIntegrationOptions } from '../integrations/tracing-channel/koa';\nexport type { IORedisChannelIntegrationOptions, IORedisResponseHook } from '../integrations/tracing-channel/ioredis';\nexport type { PostgresJsChannelIntegrationOptions } from '../integrations/tracing-channel/postgres-js';\nexport { redisChannelIntegration } from '../integrations/tracing-channel/redis';\nexport type { RedisChannelIntegrationOptions, RedisResponseHook } from '../integrations/tracing-channel/redis';\nexport type { InstrumentationConfig, CustomTransform } from '@apm-js-collab/code-transformer-bundler-plugins/core';\n\n// The structural `graphql` package types are the single source of truth shared with `@sentry/node`'s\n// vendored OTel graphql instrumentation (re-exported from here so the two can't drift).\nexport type * from '../integrations/tracing-channel/graphql/graphql-types';\n\n/**\n * The canonical set of orchestrion diagnostics-channel integrations, keyed by their public\n * (OTel-parity) factory name.\n *\n * Single source of truth: add a new channel integration here and every consumer — the `@sentry/node`\n * opt-in helper (`experimentalUseDiagnosticsChannelInjection`) and its public\n * `diagnosticsChannelInjectionIntegrations()` map — picks it up automatically, so there's no separate\n * list to keep in sync.\n *\n * NOTE: `ioredisChannelIntegration` and `redisChannelIntegration` are intentionally NOT here. They\n * only partially replace the composite OTel `Redis` integration and need the node SDK's redis cache\n * `responseHook` (which can't live in `server-utils`), so `@sentry/node` wires them up separately.\n *\n * Framework SDKs that own their own channel listener (e.g. `@sentry/nestjs`'s `Nest`) are NOT here\n * either: their transform config is still in `SENTRY_INSTRUMENTATIONS`, but the listener lives in\n * their package and picks the channel-vs-OTel path itself at `setupOnce`, so it needs no central swap.\n *\n * NOTE: `dataloaderChannelIntegration` is also NOT here. Everything in this map is auto-appended to\n * the default integrations, but the OTel `Dataloader` integration is opt-in (never a default). Like\n * `@sentry/nestjs`'s `Nest`, its `@sentry/node` factory picks the channel-vs-OTel path itself at\n * `setupOnce` (via `isOrchestrionInjected()`), so there's nothing for the central swap to do.\n */\nexport const channelIntegrations = {\n postgresIntegration: postgresChannelIntegration,\n postgresJsIntegration: postgresJsChannelIntegration,\n mongoIntegration: mongodbChannelIntegration,\n mysqlIntegration: mysqlChannelIntegration,\n mysql2Integration: mysql2ChannelIntegration,\n genericPoolIntegration: genericPoolChannelIntegration,\n mongooseIntegration: mongooseChannelIntegration,\n lruMemoizerIntegration: lruMemoizerChannelIntegration,\n openaiIntegration: openaiChannelIntegration,\n anthropicIntegration: anthropicChannelIntegration,\n googleGenAIIntegration: googleGenAIChannelIntegration,\n langChainIntegration: langChainChannelIntegration,\n langGraphIntegration: langGraphChannelIntegration,\n vercelAiIntegration: vercelAiChannelIntegration,\n amqplibIntegration: amqplibChannelIntegration,\n hapiIntegration: hapiChannelIntegration,\n koaIntegration: koaChannelIntegration,\n expressIntegration: expressChannelIntegration,\n graphqlIntegration: graphqlDiagnosticsChannelIntegration,\n kafkajsIntegration: kafkajsChannelIntegration,\n tediousIntegration: tediousChannelIntegration,\n awsIntegration: awsChannelIntegration,\n firebaseIntegration: firebaseChannelIntegration,\n} as const;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsGO,MAAM,mBAAA,GAAsB;AAAA,EACjC,mBAAA,EAAqB,0BAAA;AAAA,EACrB,qBAAA,EAAuB,4BAAA;AAAA,EACvB,gBAAA,EAAkB,yBAAA;AAAA,EAClB,gBAAA,EAAkB,uBAAA;AAAA,EAClB,iBAAA,EAAmB,wBAAA;AAAA,EACnB,sBAAA,EAAwB,6BAAA;AAAA,EACxB,mBAAA,EAAqB,0BAAA;AAAA,EACrB,sBAAA,EAAwB,6BAAA;AAAA,EACxB,iBAAA,EAAmB,wBAAA;AAAA,EACnB,oBAAA,EAAsB,2BAAA;AAAA,EACtB,sBAAA,EAAwB,6BAAA;AAAA,EACxB,oBAAA,EAAsB,2BAAA;AAAA,EACtB,oBAAA,EAAsB,2BAAA;AAAA,EACtB,mBAAA,EAAqB,0BAAA;AAAA,EACrB,kBAAA,EAAoB,yBAAA;AAAA,EACpB,eAAA,EAAiB,sBAAA;AAAA,EACjB,cAAA,EAAgB,qBAAA;AAAA,EAChB,kBAAA,EAAoB,yBAAA;AAAA,EACpB,kBAAA,EAAoB,oCAAA;AAAA,EACpB,kBAAA,EAAoB,yBAAA;AAAA,EACpB,kBAAA,EAAoB,yBAAA;AAAA,EACpB,cAAA,EAAgB,qBAAA;AAAA,EAChB,mBAAA,EAAqB;AACvB;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GLOBAL_OBJ, getClient } from '@sentry/core';
|
|
2
|
+
|
|
3
|
+
function registerOrchestrionChannelIntegration(name, integrationFn) {
|
|
4
|
+
var _a;
|
|
5
|
+
const marker = (_a = GLOBAL_OBJ).__SENTRY_ORCHESTRION__ ?? (_a.__SENTRY_ORCHESTRION__ = {});
|
|
6
|
+
(marker.integrations ?? (marker.integrations = /* @__PURE__ */ new Map())).set(name, integrationFn);
|
|
7
|
+
getClient()?.addIntegration(integrationFn());
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { registerOrchestrionChannelIntegration };
|
|
11
|
+
//# sourceMappingURL=registerChannelIntegration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerChannelIntegration.js","sources":["../../../src/orchestrion/registerChannelIntegration.ts"],"sourcesContent":["import type { Integration } from '@sentry/core';\nimport { getClient, GLOBAL_OBJ } from '@sentry/core';\n\n/**\n * Register an orchestrion channel-subscriber integration from an instrumented\n * module. This is the runtime target of the snippet the subscribe-injection\n * transform splices into each transformed package (see\n * `bundler/subscribeInjection.ts`), so a bundler-only SDK (e.g.\n * `@sentry/cloudflare`, running in workerd where requires can't be\n * monkey-patched) wires up subscribers with no runtime module hook.\n *\n * It does two things, covering the two disjoint timing cases:\n *\n * 1. Stores the factory on the global orchestrion marker under `name`, so a\n * later `init()` (a fresh isolate, or a client created after this module\n * loads) picks it up via `getDefaultIntegrations()`.\n * 2. If a client already exists, registers the integration on it right away.\n * This is what makes the mechanism robust against module load order:\n * bundler-only SDKs call `init()` per request, but a package like `mysql`\n * loads its instrumented file lazily on first use, i.e. AFTER that request's\n * `init()` already snapshotted the marker. Without the live add, the first\n * request that touches such a package would publish to a channel nobody\n * subscribed to yet.\n *\n * `addIntegration` dedupes by integration name and only runs `setupOnce` once,\n * so storing AND live-adding never double-subscribes.\n *\n * The marker is a `Map` keyed by `name` (the factory's export name) so a package\n * split across several instrumented files (e.g. `pg`'s JS and native clients, or\n * openai's per-resource `.js`/`.mjs` files) registers its one subscriber once,\n * no matter how many of its files land in the bundle. `.set` on the shared key\n * is idempotent.\n */\nexport function registerOrchestrionChannelIntegration(name: string, integrationFn: () => Integration): void {\n const marker = (GLOBAL_OBJ.__SENTRY_ORCHESTRION__ ??= {});\n (marker.integrations ??= new Map()).set(name, integrationFn);\n getClient()?.addIntegration(integrationFn());\n}\n"],"names":[],"mappings":";;AAiCO,SAAS,qCAAA,CAAsC,MAAc,aAAA,EAAwC;AAjC5G,EAAA,IAAA,EAAA;AAkCE,EAAA,MAAM,MAAA,GAAA,CAAU,EAAA,GAAA,UAAA,EAAW,sBAAA,KAAX,EAAA,CAAW,yBAA2B,EAAC,CAAA;AACvD,EAAA,CAAC,MAAA,CAAO,iBAAP,MAAA,CAAO,YAAA,uBAAqB,GAAA,EAAI,CAAA,EAAG,GAAA,CAAI,IAAA,EAAM,aAAa,CAAA;AAC3D,EAAA,SAAA,EAAU,EAAG,cAAA,CAAe,aAAA,EAAe,CAAA;AAC7C;;;;"}
|
package/build/esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"10.
|
|
1
|
+
{"type":"module","version":"10.68.0","sideEffects":false}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/vercel-ai/index.ts"],"sourcesContent":["import { defineIntegration, waitForTracingChannelBinding, type IntegrationFn } from '@sentry/core';\nimport { subscribeVercelAiTracingChannel } from './vercel-ai-dc-subscriber';\nimport * as dc from 'node:diagnostics_channel';\n\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/vercel-ai/index.ts"],"sourcesContent":["import { defineIntegration, waitForTracingChannelBinding, type IntegrationFn } from '@sentry/core';\nimport { subscribeVercelAiTracingChannel } from './vercel-ai-dc-subscriber';\nimport * as dc from 'node:diagnostics_channel';\n\nexport interface VercelAiOptions {\n /**\n * Enable or disable input recording. Enabled if `dataCollection.genAI.inputs` (or the deprecated `sendDefaultPii` option) is `true`\n * or if you set `isEnabled` to `true` in your ai SDK method telemetry settings.\n * Integration-level options take precedence over global `dataCollection` config.\n */\n recordInputs?: boolean;\n\n /**\n * Enable or disable output recording. Enabled if `dataCollection.genAI.outputs` (or the deprecated `sendDefaultPii` option) is `true`\n * or if you set `isEnabled` to `true` in your ai SDK method telemetry settings.\n * Integration-level options take precedence over global `dataCollection` config.\n */\n recordOutputs?: boolean;\n\n /**\n * Enable or disable truncation of recorded input messages.\n * Defaults to `true`.\n */\n enableTruncation?: boolean;\n}\n\nconst _vercelAiIntegration = ((options: VercelAiOptions = {}) => {\n return {\n name: 'VercelAI' as const,\n setupOnce() {\n // Bail if this is not available\n if (!dc.tracingChannel) {\n return;\n }\n\n // Subscribe to the `ai` SDK's native telemetry tracing channel (ai >= 7).\n // This is a no-op on versions that don't publish to the channel, so it is always safe to call.\n waitForTracingChannelBinding(() => {\n subscribeVercelAiTracingChannel(dc.tracingChannel, options);\n });\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Auto-instrument the `ai` SDK's native telemetry tracing channel (ai >= 7).\n */\nexport const vercelAiIntegration = defineIntegration(_vercelAiIntegration);\n"],"names":["dc"],"mappings":";;;;AA0BA,MAAM,oBAAA,IAAwB,CAAC,OAAA,GAA2B,EAAC,KAAM;AAC/D,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,UAAA;AAAA,IACN,SAAA,GAAY;AAEV,MAAA,IAAI,CAACA,mBAAG,cAAA,EAAgB;AACtB,QAAA;AAAA,MACF;AAIA,MAAA,4BAAA,CAA6B,MAAM;AACjC,QAAA,+BAAA,CAAgCA,kBAAA,CAAG,gBAAgB,OAAO,CAAA;AAAA,MAC5D,CAAC,CAAA;AAAA,IACH;AAAA,GACF;AACF,CAAA,CAAA;AAKO,MAAM,mBAAA,GAAsB,kBAAkB,oBAAoB;;;;"}
|
package/build/types/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type { RedisDiagnosticChannelResponseHook } from './redis/redis-dc-subscr
|
|
|
16
16
|
export { defaultDbStatementSerializer } from './redis/redis-statement-serializer';
|
|
17
17
|
export { bindTracingChannelToSpan } from './tracing-channel';
|
|
18
18
|
export type { SentryTracingChannel, TracingChannelLifeCycleOptions, TracingChannelBindingHandle, TracingChannelPayloadWithSpan, } from './tracing-channel';
|
|
19
|
-
export { vercelAiIntegration } from './vercel-ai';
|
|
20
19
|
export type { InstrumentationConfig } from './orchestrion';
|
|
20
|
+
export { vercelAiIntegration, type VercelAiOptions } from './vercel-ai';
|
|
21
21
|
export { fastifyIntegration, handleFastifyError, instrumentFastify, } from './integrations/tracing-channel/fastify';
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAC1E,YAAY,EAAE,wBAAwB,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAC3F,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,GACf,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC/D,YAAY,EAAE,2BAA2B,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,KAAK,8BAA8B,EAAE,MAAM,SAAS,CAAC;AAChF,YAAY,EAAE,kCAAkC,EAAE,MAAM,6BAA6B,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,YAAY,EACV,oBAAoB,EACpB,8BAA8B,EAC9B,2BAA2B,EAC3B,6BAA6B,GAC9B,MAAM,mBAAmB,CAAC;AAC3B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAC1E,YAAY,EAAE,wBAAwB,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAC3F,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,GACf,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC/D,YAAY,EAAE,2BAA2B,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,KAAK,8BAA8B,EAAE,MAAM,SAAS,CAAC;AAChF,YAAY,EAAE,kCAAkC,EAAE,MAAM,6BAA6B,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,YAAY,EACV,oBAAoB,EACpB,8BAA8B,EAC9B,2BAA2B,EAC3B,6BAA6B,GAC9B,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,EACL,kBAAkB,EAElB,kBAAkB,EAElB,iBAAiB,GAClB,MAAM,wCAAwC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataloader.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing-channel/dataloader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dataloader.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing-channel/dataloader.ts"],"names":[],"mappings":"AAwLA;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B;;CAAmD,CAAC"}
|
|
@@ -49,8 +49,8 @@ interface FastifyIntegrationOptions {
|
|
|
49
49
|
* })
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
|
52
|
-
export declare const fastifyIntegration: (
|
|
53
|
-
name:
|
|
52
|
+
export declare const fastifyIntegration: (args_0?: Partial<FastifyIntegrationOptions> | undefined) => import("@sentry/core").Integration & {
|
|
53
|
+
name: "Fastify";
|
|
54
54
|
};
|
|
55
55
|
/**
|
|
56
56
|
* @deprecated This export is deprecated and will not longer be exposed in the next major version.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/fastify/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAsB,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/fastify/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAsB,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGhF,OAAO,EAAkC,kBAAkB,IAAI,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAErG;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,UAAU,yBAAyB;IACjC;;;;;;;;OAQG;IACH,iBAAiB,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,YAAY,KAAK,OAAO,CAAC;CAC5F;AAsBD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB;;CAAyC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,iBAAiB;;CAAqB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,kBAAkB,4BAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/fastify/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE5D,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/fastify/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE5D,eAAO,MAAM,gBAAgB,EAAG,SAAkB,CAAC;AAEnD;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,KAAK,EAAE,YAAY,GAAG,OAAO,CAI9G"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface FirebaseOptions {
|
|
2
|
+
[key: string]: unknown;
|
|
3
|
+
apiKey?: string;
|
|
4
|
+
projectId?: string;
|
|
5
|
+
appId?: string;
|
|
6
|
+
messagingSenderId?: string;
|
|
7
|
+
storageBucket?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface FirebaseApp {
|
|
10
|
+
name: string;
|
|
11
|
+
options: FirebaseOptions;
|
|
12
|
+
}
|
|
13
|
+
export interface FirestoreSettings {
|
|
14
|
+
host?: string;
|
|
15
|
+
}
|
|
16
|
+
interface FirestoreLike {
|
|
17
|
+
app: FirebaseApp;
|
|
18
|
+
toJSON: () => {
|
|
19
|
+
settings?: FirestoreSettings;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface DocumentReference {
|
|
23
|
+
id: string;
|
|
24
|
+
firestore: FirestoreLike;
|
|
25
|
+
type: string;
|
|
26
|
+
path: string;
|
|
27
|
+
parent: CollectionReference | null;
|
|
28
|
+
}
|
|
29
|
+
export interface CollectionReference {
|
|
30
|
+
id: string;
|
|
31
|
+
firestore: FirestoreLike;
|
|
32
|
+
type: string;
|
|
33
|
+
path: string;
|
|
34
|
+
parent: DocumentReference | null;
|
|
35
|
+
}
|
|
36
|
+
export type FirestoreReference = CollectionReference | DocumentReference;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=firestore-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firestore-types.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/firebase/firestore-types.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,eAAe;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,UAAU,aAAa;IACrB,GAAG,EAAE,WAAW,CAAC;IACjB,MAAM,EAAE,MAAM;QAAE,QAAQ,CAAC,EAAE,iBAAiB,CAAA;KAAE,CAAC;CAChD;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,aAAa,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,mBAAmB,GAAG,IAAI,CAAC;CACpC;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,aAAa,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAClC;AAED,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAAG,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Span } from '@sentry/core';
|
|
2
|
+
import type { FirestoreReference, FirestoreSettings } from './firestore-types';
|
|
3
|
+
/**
|
|
4
|
+
* Opens the inactive `db.query` span for a Firestore operation. `bindTracingChannelToSpan` makes it the
|
|
5
|
+
* active span for the traced call and ends it when the call settles. Mirrors the OTel integration's span,
|
|
6
|
+
* with a distinct `auto.firebase.orchestrion.firestore` origin.
|
|
7
|
+
*/
|
|
8
|
+
export declare function startFirestoreSpan(spanName: string, reference: FirestoreReference): Span;
|
|
9
|
+
/**
|
|
10
|
+
* Gets the server address and port attributes from the Firestore settings.
|
|
11
|
+
* It's best effort to extract the address and port from the settings, especially for IPv6.
|
|
12
|
+
* @param settings - The Firestore settings containing host information.
|
|
13
|
+
*/
|
|
14
|
+
export declare function getPortAndAddress(settings: FirestoreSettings): {
|
|
15
|
+
address?: string;
|
|
16
|
+
port?: number;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=firestore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firestore.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/firebase/firestore.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAgC,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE7G;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,GAAG,IAAI,CAWxF;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,iBAAiB,GAAG;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAwCA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface FunctionsChannelContext {
|
|
2
|
+
arguments: unknown[];
|
|
3
|
+
self?: unknown;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Rewrap the handler argument of a firebase-functions `onX(...)` registration so the returned cloud
|
|
7
|
+
* function opens a `SERVER` span (and error boundary) each time it's invoked. Runs as the tracing
|
|
8
|
+
* channel's `start` subscriber, before orchestrion forwards the (mutated) arguments to the real call.
|
|
9
|
+
*
|
|
10
|
+
* The registration call itself is trivial and synchronous, so — unlike the firestore path — this does
|
|
11
|
+
* not bind a span to the channel; it only uses the channel as an injection point.
|
|
12
|
+
*/
|
|
13
|
+
export declare function wrapFunctionsRegistration(data: FunctionsChannelContext, triggerType: string): void;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=functions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/firebase/functions.ts"],"names":[],"mappings":"AAkBA,UAAU,uBAAuB;IAI/B,SAAS,EAAE,OAAO,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,CAclG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EXPERIMENTAL — orchestrion-driven firebase integration.
|
|
3
|
+
*
|
|
4
|
+
* Subscribes to the `orchestrion:@firebase/firestore:*` and `orchestrion:firebase-functions:*`
|
|
5
|
+
* diagnostics_channels the orchestrion code transform injects into firestore's `addDoc`/`getDocs`/
|
|
6
|
+
* `setDoc`/`deleteDoc` and firebase-functions' `onX` registration functions, emitting spans identical
|
|
7
|
+
* to the OTel integration — with a distinct `auto.firebase.orchestrion.*` origin. Requires the
|
|
8
|
+
* orchestrion runtime hook or bundler plugin — wire it up via `experimentalUseDiagnosticsChannelInjection()`.
|
|
9
|
+
*
|
|
10
|
+
* @experimental
|
|
11
|
+
*/
|
|
12
|
+
export declare const firebaseChannelIntegration: () => import("@sentry/core").Integration & {
|
|
13
|
+
name: "Firebase";
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/firebase/index.ts"],"names":[],"mappings":"AAuBA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,0BAA0B;;CAAiD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/firebase/instrumentation.ts"],"names":[],"mappings":"AA2DA,wBAAgB,kBAAkB,SA0BjC"}
|
|
@@ -3,11 +3,7 @@
|
|
|
3
3
|
* - v7 via native `ai:telemetry` tracing channel
|
|
4
4
|
* - v4, v5 & v6 via orchestrion `orchestrion:ai:*` channels
|
|
5
5
|
*/
|
|
6
|
-
export declare const vercelAiChannelIntegration: (options?: {
|
|
7
|
-
recordInputs?: boolean;
|
|
8
|
-
recordOutputs?: boolean;
|
|
9
|
-
enableTruncation?: boolean;
|
|
10
|
-
} | undefined) => import("@sentry/core").Integration & {
|
|
6
|
+
export declare const vercelAiChannelIntegration: (options?: import("../..").VercelAiOptions | undefined) => import("@sentry/core").Integration & {
|
|
11
7
|
name: "VercelAI";
|
|
12
8
|
};
|
|
13
9
|
//# sourceMappingURL=vercel-ai.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vercel-ai.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing-channel/vercel-ai.ts"],"names":[],"mappings":"AAkCA;;;;GAIG;AACH,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"vercel-ai.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing-channel/vercel-ai.ts"],"names":[],"mappings":"AAkCA;;;;GAIG;AACH,eAAO,MAAM,0BAA0B;;CAAiD,CAAC"}
|
|
@@ -6,9 +6,8 @@ import type { PluginOptions } from './options';
|
|
|
6
6
|
* Use when bundling a Node app with esbuild. For unbundled Node processes use the
|
|
7
7
|
* runtime hook instead (`node --import @sentry/node/orchestrion app.js`).
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* delegating to the upstream transform.
|
|
9
|
+
* Instrumented packages marked as `external` never pass through the code
|
|
10
|
+
* transform, so a build warning is emitted for them.
|
|
12
11
|
*
|
|
13
12
|
* @example
|
|
14
13
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/esbuild.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,yDAAyD,CAAC;
|
|
1
|
+
{"version":3,"file":"esbuild.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/esbuild.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,yDAAyD,CAAC;AAGtF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAW/C;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,aAAkB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAkBvG"}
|
|
@@ -15,7 +15,41 @@ export type PluginOptions = {
|
|
|
15
15
|
* Defaults to `true`.
|
|
16
16
|
*/
|
|
17
17
|
shouldInjectDiagnostics?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Inject a small marker-push into each instrumented module that imports only
|
|
20
|
+
* that package's channel-subscriber factory and pushes it onto
|
|
21
|
+
* `globalThis.__SENTRY_ORCHESTRION__.integrations`. A bundler-only SDK reads
|
|
22
|
+
* the marker at `init()` and instantiates the collected factories, so every
|
|
23
|
+
* transformed package's subscriber is wired up with no runtime module hook.
|
|
24
|
+
*
|
|
25
|
+
* Because each site imports a single named factory, it tree-shakes: a bundle
|
|
26
|
+
* carries subscriber code only for the packages actually transformed into it.
|
|
27
|
+
*
|
|
28
|
+
* This is what lets a bundler-only SDK (e.g. `@sentry/cloudflare`, which runs
|
|
29
|
+
* in workerd where requires can't be monkey-patched) record channel spans,
|
|
30
|
+
* but it is bundler-agnostic: any orchestrion bundler plugin can enable it.
|
|
31
|
+
* Leave it off for SDKs that wire the integrations up through a static import
|
|
32
|
+
* instead (e.g. `@sentry/node`'s `experimentalUseDiagnosticsChannelInjection()`),
|
|
33
|
+
* so the subscribers aren't registered twice.
|
|
34
|
+
*
|
|
35
|
+
* Defaults to `false`.
|
|
36
|
+
*/
|
|
37
|
+
injectChannelSubscribers?: boolean;
|
|
18
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* Whether an "external" config entry covers an instrumented module: an exact
|
|
41
|
+
* package name (`'mysql'`) or a subpath (`'mysql/lib/...'`) — the transform may
|
|
42
|
+
* target exactly the file a subpath entry externalizes. Mirrors the matching in
|
|
43
|
+
* `withoutInstrumentedExternals`.
|
|
44
|
+
*/
|
|
45
|
+
export declare function externalEntryMatchesModule(entry: string, moduleName: string): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Warning emitted when a bundler config externalizes packages that orchestrion
|
|
48
|
+
* needs to transform. An externalized dependency is resolved from
|
|
49
|
+
* `node_modules` at runtime and never passes through the code transform, so
|
|
50
|
+
* its diagnostics_channel calls are silently never injected.
|
|
51
|
+
*/
|
|
52
|
+
export declare function externalizedModulesWarning(externalizedModules: string[]): string;
|
|
19
53
|
/**
|
|
20
54
|
* The `@apm-js-collab/code-transformer-bundler-plugins` options shared by every
|
|
21
55
|
* orchestrion bundler plugin.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AAGjE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AAEzG,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC3C;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACnD;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;;;;;;;;;;;;;;;;OAkBG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAErF;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,mBAAmB,EAAE,MAAM,EAAE,GAAG,MAAM,CAMhF;AAED;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,aAAa,GAAG,4BAA4B,CAwBhG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollup.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/rollup.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,wDAAwD,CAAC;
|
|
1
|
+
{"version":3,"file":"rollup.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/rollup.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,wDAAwD,CAAC;AAGrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG/C;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,aAAkB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAgBvG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PluginOptions } from './options';
|
|
2
|
+
/**
|
|
3
|
+
* The `instrumentations` + `customTransforms` a bundler plugin passes to
|
|
4
|
+
* {@link orchestrionTransformOptions} to enable the marker-push subscribe
|
|
5
|
+
* injection used by bundler-only SDKs (e.g. `@sentry/cloudflare`).
|
|
6
|
+
*
|
|
7
|
+
* The `SUBSCRIBE_INJECTIONS` configs ride alongside the real channel-publishing
|
|
8
|
+
* configs, and `injectSubscribe` runs on each matched module, so every
|
|
9
|
+
* transformed package self-registers its subscriber on the global marker
|
|
10
|
+
* without a runtime module hook.
|
|
11
|
+
*/
|
|
12
|
+
export declare function subscribeInjectionOptions(): Pick<PluginOptions, 'instrumentations' | 'customTransforms'>;
|
|
13
|
+
//# sourceMappingURL=subscribeInjection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscribeInjection.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/subscribeInjection.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAkE/C;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,IAAI,IAAI,CAAC,aAAa,EAAE,kBAAkB,GAAG,kBAAkB,CAAC,CAKxG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/vite.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,sDAAsD,CAAC;
|
|
1
|
+
{"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/vite.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,sDAAsD,CAAC;AAGnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG/C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,aAAkB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CA8BvG"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { InstrumentationConfig } from '..';
|
|
2
2
|
import codeTransformerWebpack from '@apm-js-collab/code-transformer-bundler-plugins/webpack';
|
|
3
3
|
import type { PluginOptions } from './options';
|
|
4
|
+
export { serializeInstrumentations } from '@apm-js-collab/code-transformer-bundler-plugins/core';
|
|
5
|
+
export type { SerializableInstrumentationConfig } from '@apm-js-collab/code-transformer-bundler-plugins/core';
|
|
4
6
|
/** Absolute path to the code-transform loader (a webpack loader; also usable as a Turbopack loader). */
|
|
5
7
|
export declare function getOrchestrionLoaderPath(): string;
|
|
6
8
|
/**
|
|
@@ -13,7 +15,10 @@ export declare function getTracingHooksDirectory(): string;
|
|
|
13
15
|
/** The central instrumentation config, to pass as the loader's `instrumentations` option. */
|
|
14
16
|
export declare function getSentryInstrumentations(): InstrumentationConfig[];
|
|
15
17
|
/**
|
|
16
|
-
* The code-transform webpack plugin, pre-fed the instrumentation config
|
|
18
|
+
* The code-transform webpack plugin, pre-fed the instrumentation config.
|
|
19
|
+
*
|
|
20
|
+
* Instrumented packages marked as `externals` never pass through the code
|
|
21
|
+
* transform, so a compilation warning is emitted for them.
|
|
17
22
|
*/
|
|
18
23
|
export declare function sentryOrchestrionWebpackPlugin(options?: PluginOptions): ReturnType<typeof codeTransformerWebpack>;
|
|
19
24
|
//# sourceMappingURL=webpack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpack.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/webpack.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webpack.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/webpack.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,IAAI,CAAC;AAEhD,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AAC7F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EAAE,yBAAyB,EAAE,MAAM,sDAAsD,CAAC;AACjG,YAAY,EAAE,iCAAiC,EAAE,MAAM,sDAAsD,CAAC;AAgB9G,wGAAwG;AACxG,wBAAgB,wBAAwB,IAAI,MAAM,CAEjD;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,IAAI,MAAM,CAIjD;AAED,6FAA6F;AAC7F,wBAAgB,yBAAyB,IAAI,qBAAqB,EAAE,CAEnE;AAuBD;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,aAAkB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAgBrH"}
|
|
@@ -99,6 +99,21 @@ export declare const CHANNELS: {
|
|
|
99
99
|
readonly GOOGLE_GENAI_EMBED_CONTENT: "orchestrion:@google/genai:embed-content";
|
|
100
100
|
readonly GOOGLE_GENAI_CHAT: "orchestrion:@google/genai:chat";
|
|
101
101
|
readonly GENERIC_POOL_ACQUIRE: "orchestrion:generic-pool:acquire";
|
|
102
|
+
readonly FIREBASE_FIRESTORE_ADD_DOC: "orchestrion:@firebase/firestore:add-doc";
|
|
103
|
+
readonly FIREBASE_FIRESTORE_GET_DOCS: "orchestrion:@firebase/firestore:get-docs";
|
|
104
|
+
readonly FIREBASE_FIRESTORE_SET_DOC: "orchestrion:@firebase/firestore:set-doc";
|
|
105
|
+
readonly FIREBASE_FIRESTORE_DELETE_DOC: "orchestrion:@firebase/firestore:delete-doc";
|
|
106
|
+
readonly FIREBASE_FUNCTIONS_HTTP_REQUEST: "orchestrion:firebase-functions:http-request";
|
|
107
|
+
readonly FIREBASE_FUNCTIONS_HTTP_CALL: "orchestrion:firebase-functions:http-call";
|
|
108
|
+
readonly FIREBASE_FUNCTIONS_FIRESTORE_CREATED: "orchestrion:firebase-functions:firestore-created";
|
|
109
|
+
readonly FIREBASE_FUNCTIONS_FIRESTORE_UPDATED: "orchestrion:firebase-functions:firestore-updated";
|
|
110
|
+
readonly FIREBASE_FUNCTIONS_FIRESTORE_DELETED: "orchestrion:firebase-functions:firestore-deleted";
|
|
111
|
+
readonly FIREBASE_FUNCTIONS_FIRESTORE_WRITTEN: "orchestrion:firebase-functions:firestore-written";
|
|
112
|
+
readonly FIREBASE_FUNCTIONS_SCHEDULER: "orchestrion:firebase-functions:scheduler";
|
|
113
|
+
readonly FIREBASE_FUNCTIONS_STORAGE_FINALIZED: "orchestrion:firebase-functions:storage-finalized";
|
|
114
|
+
readonly FIREBASE_FUNCTIONS_STORAGE_ARCHIVED: "orchestrion:firebase-functions:storage-archived";
|
|
115
|
+
readonly FIREBASE_FUNCTIONS_STORAGE_DELETED: "orchestrion:firebase-functions:storage-deleted";
|
|
116
|
+
readonly FIREBASE_FUNCTIONS_STORAGE_METADATA_UPDATED: "orchestrion:firebase-functions:storage-metadata-updated";
|
|
102
117
|
readonly EXPRESS_HANDLE: "orchestrion:express:handle";
|
|
103
118
|
readonly ROUTER_HANDLE: "orchestrion:router:handle";
|
|
104
119
|
readonly EXPRESS_REGISTER: "orchestrion:express:register";
|
|
@@ -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"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { InstrumentationConfig } from '..';
|
|
1
2
|
export declare const amqplibConfig: ({
|
|
2
3
|
channelName: string;
|
|
3
4
|
module: {
|
|
@@ -63,4 +64,5 @@ export declare const amqplibChannels: {
|
|
|
63
64
|
readonly AMQPLIB_NACK_ALL: "orchestrion:amqplib:nackAll";
|
|
64
65
|
readonly AMQPLIB_CONNECT: "orchestrion:amqplib:connect";
|
|
65
66
|
};
|
|
67
|
+
export declare const amqplibSubscribeInjection: InstrumentationConfig[];
|
|
66
68
|
//# sourceMappingURL=amqplib.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amqplib.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/amqplib.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"amqplib.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/amqplib.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,IAAI,CAAC;AAehD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6DS,CAAC;AAEpC,eAAO,MAAM,eAAe;;;;;;;;;;;CAWlB,CAAC;AAEX,eAAO,MAAM,yBAAyB,yBAAuC,CAAC"}
|