@depup/sentry__server-utils 10.67.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 +32 -0
- package/build/cjs/debug-build.js +6 -0
- package/build/cjs/debug-build.js.map +1 -0
- package/build/cjs/graphql/graphql-dc-subscriber.js +123 -0
- package/build/cjs/graphql/graphql-dc-subscriber.js.map +1 -0
- package/build/cjs/graphql/index.js +23 -0
- package/build/cjs/graphql/index.js.map +1 -0
- package/build/cjs/graphql/utils.js +92 -0
- package/build/cjs/graphql/utils.js.map +1 -0
- package/build/cjs/index.js +34 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/amqplib.js +420 -0
- package/build/cjs/integrations/tracing-channel/amqplib.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/anthropic.js +101 -0
- package/build/cjs/integrations/tracing-channel/anthropic.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/constants.js +16 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/constants.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/index.js +154 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/index.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js +46 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js +47 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js +419 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/dynamodb.js +131 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/dynamodb.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/kinesis.js +21 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/kinesis.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/lambda.js +64 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/lambda.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/s3.js +21 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/s3.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/secretsmanager.js +27 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/secretsmanager.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/sns.js +63 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/sns.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/sqs.js +116 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/sqs.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/stepfunctions.js +25 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/stepfunctions.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/utils.js +30 -0
- package/build/cjs/integrations/tracing-channel/aws-sdk/utils.js.map +1 -0
- 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/express/index.js +24 -0
- package/build/cjs/integrations/tracing-channel/express/index.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/express/instrumentation.js +168 -0
- package/build/cjs/integrations/tracing-channel/express/instrumentation.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/express/route.js +76 -0
- package/build/cjs/integrations/tracing-channel/express/route.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/fastify/errors.js +42 -0
- package/build/cjs/integrations/tracing-channel/fastify/errors.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/fastify/index.js +34 -0
- package/build/cjs/integrations/tracing-channel/fastify/index.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/fastify/instrumentation.js +279 -0
- package/build/cjs/integrations/tracing-channel/fastify/instrumentation.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/fastify/utils.js +11 -0
- package/build/cjs/integrations/tracing-channel/fastify/utils.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/google-genai.js +96 -0
- package/build/cjs/integrations/tracing-channel/google-genai.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/graphql/constants.js +26 -0
- package/build/cjs/integrations/tracing-channel/graphql/constants.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/graphql/index.js +66 -0
- package/build/cjs/integrations/tracing-channel/graphql/index.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/graphql/resolvers.js +168 -0
- package/build/cjs/integrations/tracing-channel/graphql/resolvers.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/graphql/spans.js +102 -0
- package/build/cjs/integrations/tracing-channel/graphql/spans.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/hapi-types.js +30 -0
- package/build/cjs/integrations/tracing-channel/hapi-types.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/hapi-utils.js +177 -0
- package/build/cjs/integrations/tracing-channel/hapi-utils.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/hapi.js +52 -0
- package/build/cjs/integrations/tracing-channel/hapi.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/ioredis.js +99 -0
- package/build/cjs/integrations/tracing-channel/ioredis.js.map +1 -0
- 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/koa.js +146 -0
- package/build/cjs/integrations/tracing-channel/koa.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/langchain.js +63 -0
- package/build/cjs/integrations/tracing-channel/langchain.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/langgraph.js +100 -0
- package/build/cjs/integrations/tracing-channel/langgraph.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/lru-memoizer.js +31 -0
- package/build/cjs/integrations/tracing-channel/lru-memoizer.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/mongodb.js +104 -0
- package/build/cjs/integrations/tracing-channel/mongodb.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/mongoose.js +110 -0
- package/build/cjs/integrations/tracing-channel/mongoose.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/mysql.js +107 -0
- package/build/cjs/integrations/tracing-channel/mysql.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/integrations/tracing-channel/openai.js +81 -0
- package/build/cjs/integrations/tracing-channel/openai.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/postgres-js.js +191 -0
- package/build/cjs/integrations/tracing-channel/postgres-js.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/postgres.js +170 -0
- package/build/cjs/integrations/tracing-channel/postgres.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/redis.js +218 -0
- package/build/cjs/integrations/tracing-channel/redis.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/tedious.js +145 -0
- package/build/cjs/integrations/tracing-channel/tedious.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/vercel-ai.js +25 -0
- package/build/cjs/integrations/tracing-channel/vercel-ai.js.map +1 -0
- package/build/cjs/mongodb/mongodb-span.js +133 -0
- package/build/cjs/mongodb/mongodb-span.js.map +1 -0
- package/build/cjs/mongoose/index.js +23 -0
- package/build/cjs/mongoose/index.js.map +1 -0
- package/build/cjs/mongoose/mongoose-dc-subscriber.js +97 -0
- package/build/cjs/mongoose/mongoose-dc-subscriber.js.map +1 -0
- package/build/cjs/mongoose/mongoose-legacy-span.js +40 -0
- package/build/cjs/mongoose/mongoose-legacy-span.js.map +1 -0
- package/build/cjs/mysql2/index.js +23 -0
- package/build/cjs/mysql2/index.js.map +1 -0
- package/build/cjs/mysql2/mysql2-dc-subscriber.js +68 -0
- package/build/cjs/mysql2/mysql2-dc-subscriber.js.map +1 -0
- package/build/cjs/orchestrion/bundler/esbuild.js +15 -0
- package/build/cjs/orchestrion/bundler/esbuild.js.map +1 -0
- package/build/cjs/orchestrion/bundler/options.js +24 -0
- package/build/cjs/orchestrion/bundler/options.js.map +1 -0
- package/build/cjs/orchestrion/bundler/rollup.js +15 -0
- package/build/cjs/orchestrion/bundler/rollup.js.map +1 -0
- package/build/cjs/orchestrion/bundler/vite.js +21 -0
- package/build/cjs/orchestrion/bundler/vite.js.map +1 -0
- package/build/cjs/orchestrion/bundler/webpack.js +36 -0
- package/build/cjs/orchestrion/bundler/webpack.js.map +1 -0
- package/build/cjs/orchestrion/channels.js +70 -0
- package/build/cjs/orchestrion/channels.js.map +1 -0
- package/build/cjs/orchestrion/config/amqplib.js +81 -0
- package/build/cjs/orchestrion/config/amqplib.js.map +1 -0
- package/build/cjs/orchestrion/config/anthropic-ai.js +43 -0
- package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -0
- package/build/cjs/orchestrion/config/aws-sdk.js +28 -0
- package/build/cjs/orchestrion/config/aws-sdk.js.map +1 -0
- package/build/cjs/orchestrion/config/dataloader.js +53 -0
- package/build/cjs/orchestrion/config/dataloader.js.map +1 -0
- package/build/cjs/orchestrion/config/express.js +77 -0
- package/build/cjs/orchestrion/config/express.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/google-genai.js +38 -0
- package/build/cjs/orchestrion/config/google-genai.js.map +1 -0
- package/build/cjs/orchestrion/config/graphql.js +28 -0
- package/build/cjs/orchestrion/config/graphql.js.map +1 -0
- package/build/cjs/orchestrion/config/hapi.js +26 -0
- package/build/cjs/orchestrion/config/hapi.js.map +1 -0
- package/build/cjs/orchestrion/config/index.js +89 -0
- package/build/cjs/orchestrion/config/index.js.map +1 -0
- package/build/cjs/orchestrion/config/ioredis.js +35 -0
- package/build/cjs/orchestrion/config/ioredis.js.map +1 -0
- 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/koa.js +16 -0
- package/build/cjs/orchestrion/config/koa.js.map +1 -0
- package/build/cjs/orchestrion/config/langchain.js +52 -0
- package/build/cjs/orchestrion/config/langchain.js.map +1 -0
- package/build/cjs/orchestrion/config/langgraph.js +28 -0
- package/build/cjs/orchestrion/config/langgraph.js.map +1 -0
- package/build/cjs/orchestrion/config/lru-memoizer.js +17 -0
- package/build/cjs/orchestrion/config/lru-memoizer.js.map +1 -0
- package/build/cjs/orchestrion/config/mongodb.js +67 -0
- package/build/cjs/orchestrion/config/mongodb.js.map +1 -0
- package/build/cjs/orchestrion/config/mongoose.js +107 -0
- package/build/cjs/orchestrion/config/mongoose.js.map +1 -0
- package/build/cjs/orchestrion/config/mysql.js +16 -0
- package/build/cjs/orchestrion/config/mysql.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/openai.js +40 -0
- package/build/cjs/orchestrion/config/openai.js.map +1 -0
- package/build/cjs/orchestrion/config/pg.js +51 -0
- package/build/cjs/orchestrion/config/pg.js.map +1 -0
- package/build/cjs/orchestrion/config/postgres.js +50 -0
- package/build/cjs/orchestrion/config/postgres.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/redis.js +76 -0
- package/build/cjs/orchestrion/config/redis.js.map +1 -0
- package/build/cjs/orchestrion/config/remix.js +54 -0
- package/build/cjs/orchestrion/config/remix.js.map +1 -0
- package/build/cjs/orchestrion/config/tedious.js +24 -0
- package/build/cjs/orchestrion/config/tedious.js.map +1 -0
- package/build/cjs/orchestrion/config/vercel-ai.js +48 -0
- package/build/cjs/orchestrion/config/vercel-ai.js.map +1 -0
- package/build/cjs/orchestrion/detect.js +26 -0
- package/build/cjs/orchestrion/detect.js.map +1 -0
- package/build/cjs/orchestrion/index.js +89 -0
- package/build/cjs/orchestrion/index.js.map +1 -0
- package/build/cjs/orchestrion/runtime/register.js +77 -0
- package/build/cjs/orchestrion/runtime/register.js.map +1 -0
- 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/redis/index.js +23 -0
- package/build/cjs/redis/index.js.map +1 -0
- package/build/cjs/redis/redis-dc-subscriber.js +101 -0
- package/build/cjs/redis/redis-dc-subscriber.js.map +1 -0
- package/build/cjs/redis/redis-statement-serializer.js +34 -0
- package/build/cjs/redis/redis-statement-serializer.js.map +1 -0
- package/build/cjs/tracing-channel.js +134 -0
- package/build/cjs/tracing-channel.js.map +1 -0
- package/build/cjs/vercel-ai/index.js +23 -0
- package/build/cjs/vercel-ai/index.js.map +1 -0
- package/build/cjs/vercel-ai/util.js +112 -0
- package/build/cjs/vercel-ai/util.js.map +1 -0
- package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js +433 -0
- package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -0
- package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js +399 -0
- package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -0
- package/build/esm/debug-build.js +4 -0
- package/build/esm/debug-build.js.map +1 -0
- package/build/esm/graphql/graphql-dc-subscriber.js +116 -0
- package/build/esm/graphql/graphql-dc-subscriber.js.map +1 -0
- package/build/esm/graphql/index.js +21 -0
- package/build/esm/graphql/index.js.map +1 -0
- package/build/esm/graphql/utils.js +87 -0
- package/build/esm/graphql/utils.js.map +1 -0
- package/build/esm/index.js +12 -0
- package/build/esm/index.js.map +1 -0
- package/build/esm/integrations/tracing-channel/amqplib.js +418 -0
- package/build/esm/integrations/tracing-channel/amqplib.js.map +1 -0
- package/build/esm/integrations/tracing-channel/anthropic.js +99 -0
- package/build/esm/integrations/tracing-channel/anthropic.js.map +1 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/constants.js +9 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/constants.js.map +1 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/index.js +152 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/index.js.map +1 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js +41 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js.map +1 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js +45 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js.map +1 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js +417 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js.map +1 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/dynamodb.js +129 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/dynamodb.js.map +1 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/kinesis.js +19 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/kinesis.js.map +1 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/lambda.js +62 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/lambda.js.map +1 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/s3.js +19 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/s3.js.map +1 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/secretsmanager.js +25 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/secretsmanager.js.map +1 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/sns.js +61 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/sns.js.map +1 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/sqs.js +114 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/sqs.js.map +1 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/stepfunctions.js +23 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/services/stepfunctions.js.map +1 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/utils.js +26 -0
- package/build/esm/integrations/tracing-channel/aws-sdk/utils.js.map +1 -0
- 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/express/index.js +22 -0
- package/build/esm/integrations/tracing-channel/express/index.js.map +1 -0
- package/build/esm/integrations/tracing-channel/express/instrumentation.js +166 -0
- package/build/esm/integrations/tracing-channel/express/instrumentation.js.map +1 -0
- package/build/esm/integrations/tracing-channel/express/route.js +68 -0
- package/build/esm/integrations/tracing-channel/express/route.js.map +1 -0
- package/build/esm/integrations/tracing-channel/fastify/errors.js +39 -0
- package/build/esm/integrations/tracing-channel/fastify/errors.js.map +1 -0
- package/build/esm/integrations/tracing-channel/fastify/index.js +30 -0
- package/build/esm/integrations/tracing-channel/fastify/index.js.map +1 -0
- package/build/esm/integrations/tracing-channel/fastify/instrumentation.js +277 -0
- package/build/esm/integrations/tracing-channel/fastify/instrumentation.js.map +1 -0
- package/build/esm/integrations/tracing-channel/fastify/utils.js +8 -0
- package/build/esm/integrations/tracing-channel/fastify/utils.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/google-genai.js +94 -0
- package/build/esm/integrations/tracing-channel/google-genai.js.map +1 -0
- package/build/esm/integrations/tracing-channel/graphql/constants.js +14 -0
- package/build/esm/integrations/tracing-channel/graphql/constants.js.map +1 -0
- package/build/esm/integrations/tracing-channel/graphql/index.js +63 -0
- package/build/esm/integrations/tracing-channel/graphql/index.js.map +1 -0
- package/build/esm/integrations/tracing-channel/graphql/resolvers.js +164 -0
- package/build/esm/integrations/tracing-channel/graphql/resolvers.js.map +1 -0
- package/build/esm/integrations/tracing-channel/graphql/spans.js +96 -0
- package/build/esm/integrations/tracing-channel/graphql/spans.js.map +1 -0
- package/build/esm/integrations/tracing-channel/hapi-types.js +25 -0
- package/build/esm/integrations/tracing-channel/hapi-types.js.map +1 -0
- package/build/esm/integrations/tracing-channel/hapi-utils.js +172 -0
- package/build/esm/integrations/tracing-channel/hapi-utils.js.map +1 -0
- package/build/esm/integrations/tracing-channel/hapi.js +50 -0
- package/build/esm/integrations/tracing-channel/hapi.js.map +1 -0
- package/build/esm/integrations/tracing-channel/ioredis.js +96 -0
- package/build/esm/integrations/tracing-channel/ioredis.js.map +1 -0
- 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/koa.js +144 -0
- package/build/esm/integrations/tracing-channel/koa.js.map +1 -0
- package/build/esm/integrations/tracing-channel/langchain.js +61 -0
- package/build/esm/integrations/tracing-channel/langchain.js.map +1 -0
- package/build/esm/integrations/tracing-channel/langgraph.js +98 -0
- package/build/esm/integrations/tracing-channel/langgraph.js.map +1 -0
- package/build/esm/integrations/tracing-channel/lru-memoizer.js +29 -0
- package/build/esm/integrations/tracing-channel/lru-memoizer.js.map +1 -0
- package/build/esm/integrations/tracing-channel/mongodb.js +102 -0
- package/build/esm/integrations/tracing-channel/mongodb.js.map +1 -0
- package/build/esm/integrations/tracing-channel/mongoose.js +108 -0
- package/build/esm/integrations/tracing-channel/mongoose.js.map +1 -0
- package/build/esm/integrations/tracing-channel/mysql.js +105 -0
- package/build/esm/integrations/tracing-channel/mysql.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/integrations/tracing-channel/openai.js +79 -0
- package/build/esm/integrations/tracing-channel/openai.js.map +1 -0
- package/build/esm/integrations/tracing-channel/postgres-js.js +189 -0
- package/build/esm/integrations/tracing-channel/postgres-js.js.map +1 -0
- package/build/esm/integrations/tracing-channel/postgres.js +168 -0
- package/build/esm/integrations/tracing-channel/postgres.js.map +1 -0
- package/build/esm/integrations/tracing-channel/redis.js +216 -0
- package/build/esm/integrations/tracing-channel/redis.js.map +1 -0
- package/build/esm/integrations/tracing-channel/tedious.js +143 -0
- package/build/esm/integrations/tracing-channel/tedious.js.map +1 -0
- package/build/esm/integrations/tracing-channel/vercel-ai.js +23 -0
- package/build/esm/integrations/tracing-channel/vercel-ai.js.map +1 -0
- package/build/esm/mongodb/mongodb-span.js +126 -0
- package/build/esm/mongodb/mongodb-span.js.map +1 -0
- package/build/esm/mongoose/index.js +21 -0
- package/build/esm/mongoose/index.js.map +1 -0
- package/build/esm/mongoose/mongoose-dc-subscriber.js +89 -0
- package/build/esm/mongoose/mongoose-dc-subscriber.js.map +1 -0
- package/build/esm/mongoose/mongoose-legacy-span.js +38 -0
- package/build/esm/mongoose/mongoose-legacy-span.js.map +1 -0
- package/build/esm/mysql2/index.js +21 -0
- package/build/esm/mysql2/index.js.map +1 -0
- package/build/esm/mysql2/mysql2-dc-subscriber.js +62 -0
- package/build/esm/mysql2/mysql2-dc-subscriber.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 +22 -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 +15 -0
- package/build/esm/orchestrion/bundler/vite.js.map +1 -0
- 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 +68 -0
- package/build/esm/orchestrion/channels.js.map +1 -0
- package/build/esm/orchestrion/config/amqplib.js +78 -0
- package/build/esm/orchestrion/config/amqplib.js.map +1 -0
- package/build/esm/orchestrion/config/anthropic-ai.js +40 -0
- package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -0
- package/build/esm/orchestrion/config/aws-sdk.js +25 -0
- package/build/esm/orchestrion/config/aws-sdk.js.map +1 -0
- package/build/esm/orchestrion/config/dataloader.js +50 -0
- package/build/esm/orchestrion/config/dataloader.js.map +1 -0
- package/build/esm/orchestrion/config/express.js +74 -0
- package/build/esm/orchestrion/config/express.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/google-genai.js +35 -0
- package/build/esm/orchestrion/config/google-genai.js.map +1 -0
- package/build/esm/orchestrion/config/graphql.js +25 -0
- package/build/esm/orchestrion/config/graphql.js.map +1 -0
- package/build/esm/orchestrion/config/hapi.js +23 -0
- package/build/esm/orchestrion/config/hapi.js.map +1 -0
- package/build/esm/orchestrion/config/index.js +84 -0
- package/build/esm/orchestrion/config/index.js.map +1 -0
- package/build/esm/orchestrion/config/ioredis.js +32 -0
- package/build/esm/orchestrion/config/ioredis.js.map +1 -0
- 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/koa.js +13 -0
- package/build/esm/orchestrion/config/koa.js.map +1 -0
- package/build/esm/orchestrion/config/langchain.js +48 -0
- package/build/esm/orchestrion/config/langchain.js.map +1 -0
- package/build/esm/orchestrion/config/langgraph.js +25 -0
- package/build/esm/orchestrion/config/langgraph.js.map +1 -0
- package/build/esm/orchestrion/config/lru-memoizer.js +14 -0
- package/build/esm/orchestrion/config/lru-memoizer.js.map +1 -0
- package/build/esm/orchestrion/config/mongodb.js +64 -0
- package/build/esm/orchestrion/config/mongodb.js.map +1 -0
- package/build/esm/orchestrion/config/mongoose.js +103 -0
- package/build/esm/orchestrion/config/mongoose.js.map +1 -0
- package/build/esm/orchestrion/config/mysql.js +13 -0
- package/build/esm/orchestrion/config/mysql.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/openai.js +37 -0
- package/build/esm/orchestrion/config/openai.js.map +1 -0
- package/build/esm/orchestrion/config/pg.js +48 -0
- package/build/esm/orchestrion/config/pg.js.map +1 -0
- package/build/esm/orchestrion/config/postgres.js +47 -0
- package/build/esm/orchestrion/config/postgres.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/redis.js +73 -0
- package/build/esm/orchestrion/config/redis.js.map +1 -0
- package/build/esm/orchestrion/config/remix.js +51 -0
- package/build/esm/orchestrion/config/remix.js.map +1 -0
- package/build/esm/orchestrion/config/tedious.js +21 -0
- package/build/esm/orchestrion/config/tedious.js.map +1 -0
- package/build/esm/orchestrion/config/vercel-ai.js +45 -0
- package/build/esm/orchestrion/config/vercel-ai.js.map +1 -0
- package/build/esm/orchestrion/detect.js +23 -0
- package/build/esm/orchestrion/detect.js.map +1 -0
- package/build/esm/orchestrion/index.js +58 -0
- package/build/esm/orchestrion/index.js.map +1 -0
- package/build/esm/orchestrion/runtime/register.js +76 -0
- package/build/esm/orchestrion/runtime/register.js.map +1 -0
- package/build/esm/package.json +1 -0
- 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/redis/index.js +21 -0
- package/build/esm/redis/index.js.map +1 -0
- package/build/esm/redis/redis-dc-subscriber.js +94 -0
- package/build/esm/redis/redis-dc-subscriber.js.map +1 -0
- package/build/esm/redis/redis-statement-serializer.js +32 -0
- package/build/esm/redis/redis-statement-serializer.js.map +1 -0
- package/build/esm/tracing-channel.js +132 -0
- package/build/esm/tracing-channel.js.map +1 -0
- package/build/esm/vercel-ai/index.js +21 -0
- package/build/esm/vercel-ai/index.js.map +1 -0
- package/build/esm/vercel-ai/util.js +106 -0
- package/build/esm/vercel-ai/util.js.map +1 -0
- package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js +425 -0
- package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -0
- package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js +397 -0
- package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -0
- package/build/orchestrion/import-hook.mjs +19 -0
- package/build/types/debug-build.d.ts +7 -0
- package/build/types/debug-build.d.ts.map +1 -0
- package/build/types/graphql/graphql-dc-subscriber.d.ts +94 -0
- package/build/types/graphql/graphql-dc-subscriber.d.ts.map +1 -0
- package/build/types/graphql/index.d.ts +12 -0
- package/build/types/graphql/index.d.ts.map +1 -0
- package/build/types/graphql/utils.d.ts +36 -0
- package/build/types/graphql/utils.d.ts.map +1 -0
- package/build/types/index.d.ts +22 -0
- package/build/types/index.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/amqplib.d.ts +11 -0
- package/build/types/integrations/tracing-channel/amqplib.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/anthropic.d.ts +10 -0
- package/build/types/integrations/tracing-channel/anthropic.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/aws-sdk/aws-sdk.types.d.ts +43 -0
- package/build/types/integrations/tracing-channel/aws-sdk/aws-sdk.types.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/aws-sdk/constants.d.ts +15 -0
- package/build/types/integrations/tracing-channel/aws-sdk/constants.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/aws-sdk/index.d.ts +15 -0
- package/build/types/integrations/tracing-channel/aws-sdk/index.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/MessageAttributes.d.ts +23 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/MessageAttributes.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/ServiceExtension.d.ts +9 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/ServiceExtension.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.d.ts +10 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.d.ts +14 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/dynamodb.d.ts +8 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/dynamodb.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/index.d.ts +2 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/index.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/kinesis.d.ts +6 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/kinesis.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/lambda.d.ts +9 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/lambda.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/s3.d.ts +6 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/s3.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/secretsmanager.d.ts +8 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/secretsmanager.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/sns.d.ts +9 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/sns.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/sqs.d.ts +9 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/sqs.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/stepfunctions.d.ts +6 -0
- package/build/types/integrations/tracing-channel/aws-sdk/services/stepfunctions.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/aws-sdk/types.d.ts +26 -0
- package/build/types/integrations/tracing-channel/aws-sdk/types.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/aws-sdk/utils.d.ts +5 -0
- package/build/types/integrations/tracing-channel/aws-sdk/utils.d.ts.map +1 -0
- 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/express/index.d.ts +18 -0
- package/build/types/integrations/tracing-channel/express/index.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/express/instrumentation.d.ts +4 -0
- package/build/types/integrations/tracing-channel/express/instrumentation.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/express/route.d.ts +28 -0
- package/build/types/integrations/tracing-channel/express/route.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/express/types.d.ts +64 -0
- package/build/types/integrations/tracing-channel/express/types.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/fastify/errors.d.ts +12 -0
- package/build/types/integrations/tracing-channel/fastify/errors.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/fastify/index.d.ts +66 -0
- package/build/types/integrations/tracing-channel/fastify/index.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/fastify/instrumentation.d.ts +10 -0
- package/build/types/integrations/tracing-channel/fastify/instrumentation.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/fastify/types.d.ts +32 -0
- package/build/types/integrations/tracing-channel/fastify/types.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/fastify/utils.d.ts +9 -0
- package/build/types/integrations/tracing-channel/fastify/utils.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/google-genai.d.ts +12 -0
- package/build/types/integrations/tracing-channel/google-genai.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/graphql/constants.d.ts +12 -0
- package/build/types/integrations/tracing-channel/graphql/constants.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/graphql/graphql-types.d.ts +135 -0
- package/build/types/integrations/tracing-channel/graphql/graphql-types.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/graphql/index.d.ts +28 -0
- package/build/types/integrations/tracing-channel/graphql/index.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/graphql/resolvers.d.ts +13 -0
- package/build/types/integrations/tracing-channel/graphql/resolvers.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/graphql/spans.d.ts +17 -0
- package/build/types/integrations/tracing-channel/graphql/spans.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/graphql/types.d.ts +25 -0
- package/build/types/integrations/tracing-channel/graphql/types.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/hapi-types.d.ts +53 -0
- package/build/types/integrations/tracing-channel/hapi-types.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/hapi-utils.d.ts +25 -0
- package/build/types/integrations/tracing-channel/hapi-utils.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/hapi.d.ts +9 -0
- package/build/types/integrations/tracing-channel/hapi.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/ioredis.d.ts +37 -0
- package/build/types/integrations/tracing-channel/ioredis.d.ts.map +1 -0
- 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/koa.d.ts +14 -0
- package/build/types/integrations/tracing-channel/koa.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/langchain.d.ts +10 -0
- package/build/types/integrations/tracing-channel/langchain.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/langgraph.d.ts +10 -0
- package/build/types/integrations/tracing-channel/langgraph.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/lru-memoizer.d.ts +10 -0
- package/build/types/integrations/tracing-channel/lru-memoizer.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/mongodb.d.ts +12 -0
- package/build/types/integrations/tracing-channel/mongodb.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/mongoose.d.ts +15 -0
- package/build/types/integrations/tracing-channel/mongoose.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/mysql.d.ts +12 -0
- package/build/types/integrations/tracing-channel/mysql.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/integrations/tracing-channel/openai.d.ts +10 -0
- package/build/types/integrations/tracing-channel/openai.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/postgres-js.d.ts +26 -0
- package/build/types/integrations/tracing-channel/postgres-js.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/postgres.d.ts +15 -0
- package/build/types/integrations/tracing-channel/postgres.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/redis.d.ts +16 -0
- package/build/types/integrations/tracing-channel/redis.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/tedious.d.ts +11 -0
- package/build/types/integrations/tracing-channel/tedious.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/vercel-ai.d.ts +13 -0
- package/build/types/integrations/tracing-channel/vercel-ai.d.ts.map +1 -0
- package/build/types/mongodb/mongodb-span.d.ts +66 -0
- package/build/types/mongodb/mongodb-span.d.ts.map +1 -0
- package/build/types/mongoose/index.d.ts +13 -0
- package/build/types/mongoose/index.d.ts.map +1 -0
- package/build/types/mongoose/mongoose-dc-subscriber.d.ts +63 -0
- package/build/types/mongoose/mongoose-dc-subscriber.d.ts.map +1 -0
- package/build/types/mongoose/mongoose-legacy-span.d.ts +29 -0
- package/build/types/mongoose/mongoose-legacy-span.d.ts.map +1 -0
- package/build/types/mysql2/index.d.ts +11 -0
- package/build/types/mysql2/index.d.ts.map +1 -0
- package/build/types/mysql2/mysql2-dc-subscriber.d.ts +59 -0
- package/build/types/mysql2/mysql2-dc-subscriber.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 +29 -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 +18 -0
- package/build/types/orchestrion/bundler/vite.d.ts.map +1 -0
- 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 +130 -0
- package/build/types/orchestrion/channels.d.ts.map +1 -0
- package/build/types/orchestrion/config/amqplib.d.ts +66 -0
- package/build/types/orchestrion/config/amqplib.d.ts.map +1 -0
- package/build/types/orchestrion/config/anthropic-ai.d.ts +31 -0
- package/build/types/orchestrion/config/anthropic-ai.d.ts.map +1 -0
- package/build/types/orchestrion/config/aws-sdk.d.ts +19 -0
- package/build/types/orchestrion/config/aws-sdk.d.ts.map +1 -0
- 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/express.d.ts +30 -0
- package/build/types/orchestrion/config/express.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/google-genai.d.ts +30 -0
- package/build/types/orchestrion/config/google-genai.d.ts.map +1 -0
- package/build/types/orchestrion/config/graphql.d.ts +29 -0
- package/build/types/orchestrion/config/graphql.d.ts.map +1 -0
- package/build/types/orchestrion/config/hapi.d.ts +17 -0
- package/build/types/orchestrion/config/hapi.d.ts.map +1 -0
- package/build/types/orchestrion/config/index.d.ts +37 -0
- package/build/types/orchestrion/config/index.d.ts.map +1 -0
- package/build/types/orchestrion/config/ioredis.d.ts +7 -0
- package/build/types/orchestrion/config/ioredis.d.ts.map +1 -0
- 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/koa.d.ts +17 -0
- package/build/types/orchestrion/config/koa.d.ts.map +1 -0
- package/build/types/orchestrion/config/langchain.d.ts +18 -0
- package/build/types/orchestrion/config/langchain.d.ts.map +1 -0
- package/build/types/orchestrion/config/langgraph.d.ts +21 -0
- package/build/types/orchestrion/config/langgraph.d.ts.map +1 -0
- package/build/types/orchestrion/config/lru-memoizer.d.ts +16 -0
- package/build/types/orchestrion/config/lru-memoizer.d.ts.map +1 -0
- package/build/types/orchestrion/config/mongodb.d.ts +59 -0
- package/build/types/orchestrion/config/mongodb.d.ts.map +1 -0
- package/build/types/orchestrion/config/mongoose.d.ts +40 -0
- package/build/types/orchestrion/config/mongoose.d.ts.map +1 -0
- package/build/types/orchestrion/config/mysql.d.ts +16 -0
- package/build/types/orchestrion/config/mysql.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/openai.d.ts +18 -0
- package/build/types/orchestrion/config/openai.d.ts.map +1 -0
- package/build/types/orchestrion/config/pg.d.ts +33 -0
- package/build/types/orchestrion/config/pg.d.ts.map +1 -0
- package/build/types/orchestrion/config/postgres.d.ts +9 -0
- package/build/types/orchestrion/config/postgres.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/redis.d.ts +37 -0
- package/build/types/orchestrion/config/redis.d.ts.map +1 -0
- package/build/types/orchestrion/config/remix.d.ts +9 -0
- package/build/types/orchestrion/config/remix.d.ts.map +1 -0
- package/build/types/orchestrion/config/tedious.d.ts +12 -0
- package/build/types/orchestrion/config/tedious.d.ts.map +1 -0
- package/build/types/orchestrion/config/vercel-ai.d.ts +12 -0
- package/build/types/orchestrion/config/vercel-ai.d.ts.map +1 -0
- package/build/types/orchestrion/detect.d.ts +26 -0
- package/build/types/orchestrion/detect.d.ts.map +1 -0
- package/build/types/orchestrion/index.d.ts +136 -0
- package/build/types/orchestrion/index.d.ts.map +1 -0
- package/build/types/orchestrion/runtime/register.d.ts +25 -0
- package/build/types/orchestrion/runtime/register.d.ts.map +1 -0
- 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/redis/index.d.ts +18 -0
- package/build/types/redis/index.d.ts.map +1 -0
- package/build/types/redis/redis-dc-subscriber.d.ts +89 -0
- package/build/types/redis/redis-dc-subscriber.d.ts.map +1 -0
- package/build/types/redis/redis-statement-serializer.d.ts +6 -0
- package/build/types/redis/redis-statement-serializer.d.ts.map +1 -0
- package/build/types/tracing-channel.d.ts +73 -0
- package/build/types/tracing-channel.d.ts.map +1 -0
- package/build/types/vercel-ai/index.d.ts +27 -0
- package/build/types/vercel-ai/index.d.ts.map +1 -0
- package/build/types/vercel-ai/util.d.ts +30 -0
- package/build/types/vercel-ai/util.d.ts.map +1 -0
- package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts +72 -0
- package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -0
- package/build/types/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts +12 -0
- package/build/types/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts.map +1 -0
- package/build/types-ts3.8/debug-build.d.ts +7 -0
- package/build/types-ts3.8/graphql/graphql-dc-subscriber.d.ts +94 -0
- package/build/types-ts3.8/graphql/index.d.ts +12 -0
- package/build/types-ts3.8/graphql/utils.d.ts +36 -0
- package/build/types-ts3.8/index.d.ts +23 -0
- package/build/types-ts3.8/integrations/tracing-channel/amqplib.d.ts +11 -0
- package/build/types-ts3.8/integrations/tracing-channel/anthropic.d.ts +10 -0
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/aws-sdk.types.d.ts +43 -0
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/constants.d.ts +15 -0
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/index.d.ts +15 -0
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/MessageAttributes.d.ts +23 -0
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/ServiceExtension.d.ts +9 -0
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.d.ts +10 -0
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.d.ts +14 -0
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/dynamodb.d.ts +8 -0
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/index.d.ts +2 -0
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/kinesis.d.ts +6 -0
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/lambda.d.ts +9 -0
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/s3.d.ts +6 -0
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/secretsmanager.d.ts +8 -0
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/sns.d.ts +9 -0
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/sqs.d.ts +9 -0
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/stepfunctions.d.ts +6 -0
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/types.d.ts +26 -0
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/utils.d.ts +5 -0
- package/build/types-ts3.8/integrations/tracing-channel/dataloader.d.ts +11 -0
- package/build/types-ts3.8/integrations/tracing-channel/express/index.d.ts +18 -0
- package/build/types-ts3.8/integrations/tracing-channel/express/instrumentation.d.ts +4 -0
- package/build/types-ts3.8/integrations/tracing-channel/express/route.d.ts +28 -0
- package/build/types-ts3.8/integrations/tracing-channel/express/types.d.ts +64 -0
- package/build/types-ts3.8/integrations/tracing-channel/fastify/errors.d.ts +12 -0
- package/build/types-ts3.8/integrations/tracing-channel/fastify/index.d.ts +66 -0
- package/build/types-ts3.8/integrations/tracing-channel/fastify/instrumentation.d.ts +10 -0
- package/build/types-ts3.8/integrations/tracing-channel/fastify/types.d.ts +32 -0
- package/build/types-ts3.8/integrations/tracing-channel/fastify/utils.d.ts +9 -0
- package/build/types-ts3.8/integrations/tracing-channel/generic-pool.d.ts +10 -0
- package/build/types-ts3.8/integrations/tracing-channel/google-genai.d.ts +12 -0
- package/build/types-ts3.8/integrations/tracing-channel/graphql/constants.d.ts +12 -0
- package/build/types-ts3.8/integrations/tracing-channel/graphql/graphql-types.d.ts +135 -0
- package/build/types-ts3.8/integrations/tracing-channel/graphql/index.d.ts +30 -0
- package/build/types-ts3.8/integrations/tracing-channel/graphql/resolvers.d.ts +13 -0
- package/build/types-ts3.8/integrations/tracing-channel/graphql/spans.d.ts +17 -0
- package/build/types-ts3.8/integrations/tracing-channel/graphql/types.d.ts +25 -0
- package/build/types-ts3.8/integrations/tracing-channel/hapi-types.d.ts +65 -0
- package/build/types-ts3.8/integrations/tracing-channel/hapi-utils.d.ts +25 -0
- package/build/types-ts3.8/integrations/tracing-channel/hapi.d.ts +9 -0
- package/build/types-ts3.8/integrations/tracing-channel/ioredis.d.ts +37 -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/koa.d.ts +14 -0
- package/build/types-ts3.8/integrations/tracing-channel/langchain.d.ts +10 -0
- package/build/types-ts3.8/integrations/tracing-channel/langgraph.d.ts +10 -0
- package/build/types-ts3.8/integrations/tracing-channel/lru-memoizer.d.ts +10 -0
- package/build/types-ts3.8/integrations/tracing-channel/mongodb.d.ts +12 -0
- package/build/types-ts3.8/integrations/tracing-channel/mongoose.d.ts +15 -0
- package/build/types-ts3.8/integrations/tracing-channel/mysql.d.ts +12 -0
- package/build/types-ts3.8/integrations/tracing-channel/mysql2.d.ts +15 -0
- package/build/types-ts3.8/integrations/tracing-channel/openai.d.ts +10 -0
- package/build/types-ts3.8/integrations/tracing-channel/postgres-js.d.ts +26 -0
- package/build/types-ts3.8/integrations/tracing-channel/postgres.d.ts +15 -0
- package/build/types-ts3.8/integrations/tracing-channel/redis.d.ts +16 -0
- package/build/types-ts3.8/integrations/tracing-channel/tedious.d.ts +11 -0
- package/build/types-ts3.8/integrations/tracing-channel/vercel-ai.d.ts +13 -0
- package/build/types-ts3.8/mongodb/mongodb-span.d.ts +66 -0
- package/build/types-ts3.8/mongoose/index.d.ts +13 -0
- package/build/types-ts3.8/mongoose/mongoose-dc-subscriber.d.ts +63 -0
- package/build/types-ts3.8/mongoose/mongoose-legacy-span.d.ts +29 -0
- package/build/types-ts3.8/mysql2/index.d.ts +11 -0
- package/build/types-ts3.8/mysql2/mysql2-dc-subscriber.d.ts +59 -0
- package/build/types-ts3.8/node-diagnostics-channel.d.ts +19 -0
- package/build/types-ts3.8/orchestrion/bundler/esbuild.d.ts +21 -0
- package/build/types-ts3.8/orchestrion/bundler/options.d.ts +29 -0
- package/build/types-ts3.8/orchestrion/bundler/rollup.d.ts +17 -0
- package/build/types-ts3.8/orchestrion/bundler/vite.d.ts +18 -0
- package/build/types-ts3.8/orchestrion/bundler/webpack.d.ts +19 -0
- package/build/types-ts3.8/orchestrion/channels.d.ts +130 -0
- package/build/types-ts3.8/orchestrion/config/amqplib.d.ts +66 -0
- package/build/types-ts3.8/orchestrion/config/anthropic-ai.d.ts +31 -0
- package/build/types-ts3.8/orchestrion/config/aws-sdk.d.ts +19 -0
- package/build/types-ts3.8/orchestrion/config/dataloader.d.ts +46 -0
- package/build/types-ts3.8/orchestrion/config/express.d.ts +30 -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/google-genai.d.ts +30 -0
- package/build/types-ts3.8/orchestrion/config/graphql.d.ts +29 -0
- package/build/types-ts3.8/orchestrion/config/hapi.d.ts +17 -0
- package/build/types-ts3.8/orchestrion/config/index.d.ts +37 -0
- package/build/types-ts3.8/orchestrion/config/ioredis.d.ts +7 -0
- 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/koa.d.ts +17 -0
- package/build/types-ts3.8/orchestrion/config/langchain.d.ts +18 -0
- package/build/types-ts3.8/orchestrion/config/langgraph.d.ts +21 -0
- package/build/types-ts3.8/orchestrion/config/lru-memoizer.d.ts +16 -0
- package/build/types-ts3.8/orchestrion/config/mongodb.d.ts +59 -0
- package/build/types-ts3.8/orchestrion/config/mongoose.d.ts +40 -0
- package/build/types-ts3.8/orchestrion/config/mysql.d.ts +16 -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/openai.d.ts +18 -0
- package/build/types-ts3.8/orchestrion/config/pg.d.ts +33 -0
- package/build/types-ts3.8/orchestrion/config/postgres.d.ts +9 -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/redis.d.ts +37 -0
- package/build/types-ts3.8/orchestrion/config/remix.d.ts +9 -0
- package/build/types-ts3.8/orchestrion/config/tedious.d.ts +12 -0
- package/build/types-ts3.8/orchestrion/config/vercel-ai.d.ts +12 -0
- package/build/types-ts3.8/orchestrion/detect.d.ts +26 -0
- package/build/types-ts3.8/orchestrion/index.d.ts +138 -0
- package/build/types-ts3.8/orchestrion/runtime/register.d.ts +25 -0
- 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/redis/index.d.ts +18 -0
- package/build/types-ts3.8/redis/redis-dc-subscriber.d.ts +89 -0
- package/build/types-ts3.8/redis/redis-statement-serializer.d.ts +6 -0
- package/build/types-ts3.8/tracing-channel.d.ts +73 -0
- package/build/types-ts3.8/vercel-ai/index.d.ts +27 -0
- package/build/types-ts3.8/vercel-ai/util.d.ts +30 -0
- package/build/types-ts3.8/vercel-ai/vercel-ai-dc-subscriber.d.ts +72 -0
- package/build/types-ts3.8/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts +12 -0
- package/changes.json +14 -0
- package/package.json +189 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"langgraph.js","sources":["../../../../src/orchestrion/config/langgraph.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\n// `@langchain/langgraph` ships dual CJS/ESM builds (`.cjs` for `require`, `.js` for `import`) and the\n// matcher compares `filePath` exactly, so each hook is declared once per built file. `StateGraph.compile`\n// and `createReactAgent` both return synchronously; the subscriber wraps the returned compiled graph's\n// `invoke` (mirroring the vendored OTel instrumentation, which patched these on the module exports).\nconst module = (filePath: string): InstrumentationConfig['module'] => ({\n name: '@langchain/langgraph',\n versionRange: '>=0.0.0 <2.0.0',\n filePath,\n});\n\nconst compileConfig = ['dist/graph/state.cjs', 'dist/graph/state.js'].map(filePath => ({\n channelName: 'stateGraphCompile',\n module: module(filePath),\n functionQuery: { className: 'StateGraph', methodName: 'compile', kind: 'Sync' as const },\n}));\n\n// `createReactAgent` is a single function declaration re-exported from both `@langchain/langgraph` and\n// `@langchain/langgraph/prebuilt`; hooking its definition file covers every import path.\nconst createReactAgentConfig = ['dist/prebuilt/react_agent_executor.cjs', 'dist/prebuilt/react_agent_executor.js'].map(\n filePath => ({\n channelName: 'createReactAgent',\n module: module(filePath),\n functionQuery: { functionName: 'createReactAgent', kind: 'Sync' as const },\n }),\n);\n\nexport const langgraphConfig = [...compileConfig, ...createReactAgentConfig] satisfies InstrumentationConfig[];\n\nexport const langgraphChannels = {\n LANGGRAPH_STATE_GRAPH_COMPILE: 'orchestrion:@langchain/langgraph:stateGraphCompile',\n LANGGRAPH_CREATE_REACT_AGENT: 'orchestrion:@langchain/langgraph:createReactAgent',\n} as const;\n"],"names":["module"],"mappings":";;AAMA,MAAMA,QAAA,GAAS,CAAC,QAAA,MAAuD;AAAA,EACrE,IAAA,EAAM,sBAAA;AAAA,EACN,YAAA,EAAc,gBAAA;AAAA,EACd;AACF,CAAA,CAAA;AAEA,MAAM,gBAAgB,CAAC,sBAAA,EAAwB,qBAAqB,CAAA,CAAE,IAAI,CAAA,QAAA,MAAa;AAAA,EACrF,WAAA,EAAa,mBAAA;AAAA,EACb,MAAA,EAAQA,SAAO,QAAQ,CAAA;AAAA,EACvB,eAAe,EAAE,SAAA,EAAW,cAAc,UAAA,EAAY,SAAA,EAAW,MAAM,MAAA;AACzE,CAAA,CAAE,CAAA;AAIF,MAAM,sBAAA,GAAyB,CAAC,wCAAA,EAA0C,uCAAuC,CAAA,CAAE,GAAA;AAAA,EACjH,CAAA,QAAA,MAAa;AAAA,IACX,WAAA,EAAa,kBAAA;AAAA,IACb,MAAA,EAAQA,SAAO,QAAQ,CAAA;AAAA,IACvB,aAAA,EAAe,EAAE,YAAA,EAAc,kBAAA,EAAoB,MAAM,MAAA;AAAgB,GAC3E;AACF,CAAA;AAEO,MAAM,eAAA,GAAkB,CAAC,GAAG,aAAA,EAAe,GAAG,sBAAsB;AAEpE,MAAM,iBAAA,GAAoB;AAAA,EAC/B,6BAAA,EAA+B,oDAAA;AAAA,EAC/B,4BAAA,EAA8B;AAChC;;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
const lruMemoizerConfig = [
|
|
4
|
+
{
|
|
5
|
+
channelName: "load",
|
|
6
|
+
// `>=2.1.0` only: the named `function memoizedFunction()` the selector targets exists from 2.1.0
|
|
7
|
+
module: { name: "lru-memoizer", versionRange: ">=2.1.0 <4", filePath: "lib/async.js" },
|
|
8
|
+
functionQuery: { functionName: "memoizedFunction", kind: "Callback" }
|
|
9
|
+
}
|
|
10
|
+
];
|
|
11
|
+
const lruMemoizerChannels = {
|
|
12
|
+
LRU_MEMOIZER_LOAD: "orchestrion:lru-memoizer:load"
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
exports.lruMemoizerChannels = lruMemoizerChannels;
|
|
16
|
+
exports.lruMemoizerConfig = lruMemoizerConfig;
|
|
17
|
+
//# sourceMappingURL=lru-memoizer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lru-memoizer.js","sources":["../../../../src/orchestrion/config/lru-memoizer.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\nexport const lruMemoizerConfig = [\n {\n channelName: 'load',\n // `>=2.1.0` only: the named `function memoizedFunction()` the selector targets exists from 2.1.0\n module: { name: 'lru-memoizer', versionRange: '>=2.1.0 <4', filePath: 'lib/async.js' },\n functionQuery: { functionName: 'memoizedFunction', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const lruMemoizerChannels = {\n LRU_MEMOIZER_LOAD: 'orchestrion:lru-memoizer:load',\n} as const;\n"],"names":[],"mappings":";;AAEO,MAAM,iBAAA,GAAoB;AAAA,EAC/B;AAAA,IACE,WAAA,EAAa,MAAA;AAAA;AAAA,IAEb,QAAQ,EAAE,IAAA,EAAM,gBAAgB,YAAA,EAAc,YAAA,EAAc,UAAU,cAAA,EAAe;AAAA,IACrF,aAAA,EAAe,EAAE,YAAA,EAAc,kBAAA,EAAoB,MAAM,UAAA;AAAW;AAExE;AAEO,MAAM,mBAAA,GAAsB;AAAA,EACjC,iBAAA,EAAmB;AACrB;;;;;"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
const module$1 = { name: "mongodb" };
|
|
4
|
+
const mongodbConfig = [
|
|
5
|
+
// Band 1: mongodb >= 6.4 — promise-based command.
|
|
6
|
+
// `methodName`-only (no `className`): the code-transformer's `className` matcher throws on classes
|
|
7
|
+
// containing ES2022 `static {}` blocks (mongodb 7.x's `Connection`/`ConnectionPool` have them — see
|
|
8
|
+
// `transformer-bug.md`), and `methodName` alone matches exactly the base method across all versions.
|
|
9
|
+
{
|
|
10
|
+
channelName: "command",
|
|
11
|
+
module: { ...module$1, versionRange: ">=6.4.0 <8", filePath: "lib/cmap/connection.js" },
|
|
12
|
+
functionQuery: { methodName: "command", kind: "Async" }
|
|
13
|
+
},
|
|
14
|
+
// Band 2: mongodb >= 4.0 < 6.4 — callback-based command (same `command` channel, different kind).
|
|
15
|
+
{
|
|
16
|
+
channelName: "command",
|
|
17
|
+
module: { ...module$1, versionRange: ">=4.0.0 <6.4", filePath: "lib/cmap/connection.js" },
|
|
18
|
+
functionQuery: { methodName: "command", kind: "Callback" }
|
|
19
|
+
},
|
|
20
|
+
// Band 2: the pool runs the checkout callback in a detached async context, so the operation's
|
|
21
|
+
// `command()` (invoked inside it) loses the caller's active span. Hooking `checkOut` re-propagates
|
|
22
|
+
// that context to the callback (the subscriber creates no span — see `getSpan` returning undefined).
|
|
23
|
+
// Only needed < 6.4; from 6.4 `checkOut` is promise-based and the context survives natively.
|
|
24
|
+
{
|
|
25
|
+
channelName: "checkout",
|
|
26
|
+
module: { ...module$1, versionRange: ">=4.0.0 <6.4", filePath: "lib/cmap/connection_pool.js" },
|
|
27
|
+
functionQuery: { methodName: "checkOut", kind: "Callback" }
|
|
28
|
+
},
|
|
29
|
+
// Band 3: mongodb >= 3.3 < 4 — the driver had no unified `command`; each operation is a separate
|
|
30
|
+
// `lib/core/wireprotocol` function, all callback-style. `insert`/`update`/`remove` are named
|
|
31
|
+
// function expressions in the `index.js` `module.exports` object (matched by `expressionName`);
|
|
32
|
+
// `command`/`query`/`getMore` are single-function modules (matched by `functionName`).
|
|
33
|
+
...["insert", "update", "remove"].map((op) => ({
|
|
34
|
+
channelName: `v3_${op}`,
|
|
35
|
+
module: { ...module$1, versionRange: ">=3.3.0 <4", filePath: "lib/core/wireprotocol/index.js" },
|
|
36
|
+
functionQuery: { expressionName: op, kind: "Callback" }
|
|
37
|
+
})),
|
|
38
|
+
{
|
|
39
|
+
channelName: "v3_command",
|
|
40
|
+
module: { ...module$1, versionRange: ">=3.3.0 <4", filePath: "lib/core/wireprotocol/command.js" },
|
|
41
|
+
functionQuery: { functionName: "command", kind: "Callback" }
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
channelName: "v3_query",
|
|
45
|
+
module: { ...module$1, versionRange: ">=3.3.0 <4", filePath: "lib/core/wireprotocol/query.js" },
|
|
46
|
+
functionQuery: { functionName: "query", kind: "Callback" }
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
channelName: "v3_get_more",
|
|
50
|
+
module: { ...module$1, versionRange: ">=3.3.0 <4", filePath: "lib/core/wireprotocol/get_more.js" },
|
|
51
|
+
functionQuery: { functionName: "getMore", kind: "Callback" }
|
|
52
|
+
}
|
|
53
|
+
];
|
|
54
|
+
const mongodbChannels = {
|
|
55
|
+
MONGODB_COMMAND: "orchestrion:mongodb:command",
|
|
56
|
+
MONGODB_CHECKOUT: "orchestrion:mongodb:checkout",
|
|
57
|
+
MONGODB_V3_INSERT: "orchestrion:mongodb:v3_insert",
|
|
58
|
+
MONGODB_V3_UPDATE: "orchestrion:mongodb:v3_update",
|
|
59
|
+
MONGODB_V3_REMOVE: "orchestrion:mongodb:v3_remove",
|
|
60
|
+
MONGODB_V3_COMMAND: "orchestrion:mongodb:v3_command",
|
|
61
|
+
MONGODB_V3_QUERY: "orchestrion:mongodb:v3_query",
|
|
62
|
+
MONGODB_V3_GET_MORE: "orchestrion:mongodb:v3_get_more"
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
exports.mongodbChannels = mongodbChannels;
|
|
66
|
+
exports.mongodbConfig = mongodbConfig;
|
|
67
|
+
//# sourceMappingURL=mongodb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongodb.js","sources":["../../../../src/orchestrion/config/mongodb.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\n// The mongodb driver's command architecture changed across majors, mirrored in the vendored OTel\n// instrumentation's version bands:\n// - >= 6.4: promise-based `Connection.prototype.command`\n// - >= 4.0 < 6.4: callback-based `Connection.prototype.command` + `ConnectionPool.checkOut`\n// (the pool runs the checkout callback in a detached context, so the channel re-propagates the\n// caller's async context to it — see the subscriber)\n// - >= 3.3 < 4: the `lib/core/wireprotocol` module functions\nconst module = { name: 'mongodb' } as const;\n\nexport const mongodbConfig = [\n // Band 1: mongodb >= 6.4 — promise-based command.\n // `methodName`-only (no `className`): the code-transformer's `className` matcher throws on classes\n // containing ES2022 `static {}` blocks (mongodb 7.x's `Connection`/`ConnectionPool` have them — see\n // `transformer-bug.md`), and `methodName` alone matches exactly the base method across all versions.\n {\n channelName: 'command',\n module: { ...module, versionRange: '>=6.4.0 <8', filePath: 'lib/cmap/connection.js' },\n functionQuery: { methodName: 'command', kind: 'Async' },\n },\n // Band 2: mongodb >= 4.0 < 6.4 — callback-based command (same `command` channel, different kind).\n {\n channelName: 'command',\n module: { ...module, versionRange: '>=4.0.0 <6.4', filePath: 'lib/cmap/connection.js' },\n functionQuery: { methodName: 'command', kind: 'Callback' },\n },\n // Band 2: the pool runs the checkout callback in a detached async context, so the operation's\n // `command()` (invoked inside it) loses the caller's active span. Hooking `checkOut` re-propagates\n // that context to the callback (the subscriber creates no span — see `getSpan` returning undefined).\n // Only needed < 6.4; from 6.4 `checkOut` is promise-based and the context survives natively.\n {\n channelName: 'checkout',\n module: { ...module, versionRange: '>=4.0.0 <6.4', filePath: 'lib/cmap/connection_pool.js' },\n functionQuery: { methodName: 'checkOut', kind: 'Callback' },\n },\n // Band 3: mongodb >= 3.3 < 4 — the driver had no unified `command`; each operation is a separate\n // `lib/core/wireprotocol` function, all callback-style. `insert`/`update`/`remove` are named\n // function expressions in the `index.js` `module.exports` object (matched by `expressionName`);\n // `command`/`query`/`getMore` are single-function modules (matched by `functionName`).\n ...(['insert', 'update', 'remove'] as const).map(op => ({\n channelName: `v3_${op}`,\n module: { ...module, versionRange: '>=3.3.0 <4', filePath: 'lib/core/wireprotocol/index.js' },\n functionQuery: { expressionName: op, kind: 'Callback' as const },\n })),\n {\n channelName: 'v3_command',\n module: { ...module, versionRange: '>=3.3.0 <4', filePath: 'lib/core/wireprotocol/command.js' },\n functionQuery: { functionName: 'command', kind: 'Callback' },\n },\n {\n channelName: 'v3_query',\n module: { ...module, versionRange: '>=3.3.0 <4', filePath: 'lib/core/wireprotocol/query.js' },\n functionQuery: { functionName: 'query', kind: 'Callback' },\n },\n {\n channelName: 'v3_get_more',\n module: { ...module, versionRange: '>=3.3.0 <4', filePath: 'lib/core/wireprotocol/get_more.js' },\n functionQuery: { functionName: 'getMore', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const mongodbChannels = {\n MONGODB_COMMAND: 'orchestrion:mongodb:command',\n MONGODB_CHECKOUT: 'orchestrion:mongodb:checkout',\n MONGODB_V3_INSERT: 'orchestrion:mongodb:v3_insert',\n MONGODB_V3_UPDATE: 'orchestrion:mongodb:v3_update',\n MONGODB_V3_REMOVE: 'orchestrion:mongodb:v3_remove',\n MONGODB_V3_COMMAND: 'orchestrion:mongodb:v3_command',\n MONGODB_V3_QUERY: 'orchestrion:mongodb:v3_query',\n MONGODB_V3_GET_MORE: 'orchestrion:mongodb:v3_get_more',\n} as const;\n"],"names":["module"],"mappings":";;AASA,MAAMA,QAAA,GAAS,EAAE,IAAA,EAAM,SAAA,EAAU;AAE1B,MAAM,aAAA,GAAgB;AAAA;AAAA;AAAA;AAAA;AAAA,EAK3B;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,GAAGA,UAAQ,YAAA,EAAc,YAAA,EAAc,UAAU,wBAAA,EAAyB;AAAA,IACpF,aAAA,EAAe,EAAE,UAAA,EAAY,SAAA,EAAW,MAAM,OAAA;AAAQ,GACxD;AAAA;AAAA,EAEA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,GAAGA,UAAQ,YAAA,EAAc,cAAA,EAAgB,UAAU,wBAAA,EAAyB;AAAA,IACtF,aAAA,EAAe,EAAE,UAAA,EAAY,SAAA,EAAW,MAAM,UAAA;AAAW,GAC3D;AAAA;AAAA;AAAA;AAAA;AAAA,EAKA;AAAA,IACE,WAAA,EAAa,UAAA;AAAA,IACb,QAAQ,EAAE,GAAGA,UAAQ,YAAA,EAAc,cAAA,EAAgB,UAAU,6BAAA,EAA8B;AAAA,IAC3F,aAAA,EAAe,EAAE,UAAA,EAAY,UAAA,EAAY,MAAM,UAAA;AAAW,GAC5D;AAAA;AAAA;AAAA;AAAA;AAAA,EAKA,GAAI,CAAC,QAAA,EAAU,UAAU,QAAQ,CAAA,CAAY,IAAI,CAAA,EAAA,MAAO;AAAA,IACtD,WAAA,EAAa,MAAM,EAAE,CAAA,CAAA;AAAA,IACrB,QAAQ,EAAE,GAAGA,UAAQ,YAAA,EAAc,YAAA,EAAc,UAAU,gCAAA,EAAiC;AAAA,IAC5F,aAAA,EAAe,EAAE,cAAA,EAAgB,EAAA,EAAI,MAAM,UAAA;AAAoB,GACjE,CAAE,CAAA;AAAA,EACF;AAAA,IACE,WAAA,EAAa,YAAA;AAAA,IACb,QAAQ,EAAE,GAAGA,UAAQ,YAAA,EAAc,YAAA,EAAc,UAAU,kCAAA,EAAmC;AAAA,IAC9F,aAAA,EAAe,EAAE,YAAA,EAAc,SAAA,EAAW,MAAM,UAAA;AAAW,GAC7D;AAAA,EACA;AAAA,IACE,WAAA,EAAa,UAAA;AAAA,IACb,QAAQ,EAAE,GAAGA,UAAQ,YAAA,EAAc,YAAA,EAAc,UAAU,gCAAA,EAAiC;AAAA,IAC5F,aAAA,EAAe,EAAE,YAAA,EAAc,OAAA,EAAS,MAAM,UAAA;AAAW,GAC3D;AAAA,EACA;AAAA,IACE,WAAA,EAAa,aAAA;AAAA,IACb,QAAQ,EAAE,GAAGA,UAAQ,YAAA,EAAc,YAAA,EAAc,UAAU,mCAAA,EAAoC;AAAA,IAC/F,aAAA,EAAe,EAAE,YAAA,EAAc,SAAA,EAAW,MAAM,UAAA;AAAW;AAE/D;AAEO,MAAM,eAAA,GAAkB;AAAA,EAC7B,eAAA,EAAiB,6BAAA;AAAA,EACjB,gBAAA,EAAkB,8BAAA;AAAA,EAClB,iBAAA,EAAmB,+BAAA;AAAA,EACnB,iBAAA,EAAmB,+BAAA;AAAA,EACnB,iBAAA,EAAmB,+BAAA;AAAA,EACnB,kBAAA,EAAoB,gCAAA;AAAA,EACpB,gBAAA,EAAkB,8BAAA;AAAA,EAClB,mBAAA,EAAqB;AACvB;;;;;"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
const module$1 = { name: "mongoose", versionRange: ">=5.9.7 <9.7.0" };
|
|
4
|
+
const CONTEXT_CAPTURE_QUERY_METHODS = [
|
|
5
|
+
"find",
|
|
6
|
+
"findOne",
|
|
7
|
+
"deleteOne",
|
|
8
|
+
"deleteMany",
|
|
9
|
+
"estimatedDocumentCount",
|
|
10
|
+
"countDocuments",
|
|
11
|
+
"distinct",
|
|
12
|
+
"where",
|
|
13
|
+
"$where",
|
|
14
|
+
"findOneAndUpdate",
|
|
15
|
+
"findOneAndDelete",
|
|
16
|
+
"findOneAndReplace",
|
|
17
|
+
// 5/6/7 only (removed in 8), inert in recent versions
|
|
18
|
+
"remove",
|
|
19
|
+
"count",
|
|
20
|
+
"findOneAndRemove"
|
|
21
|
+
];
|
|
22
|
+
const mongooseConfig = [
|
|
23
|
+
// Query execution
|
|
24
|
+
// the span for most read/write operations. `op`, collection and model are
|
|
25
|
+
// read off the `Query` at exec time.
|
|
26
|
+
{
|
|
27
|
+
channelName: "query_exec",
|
|
28
|
+
module: { ...module$1, filePath: "lib/query.js" },
|
|
29
|
+
functionQuery: { expressionName: "exec", kind: "Auto" }
|
|
30
|
+
},
|
|
31
|
+
// Aggregation pipeline execution.
|
|
32
|
+
{
|
|
33
|
+
channelName: "aggregate_exec",
|
|
34
|
+
module: { ...module$1, filePath: "lib/aggregate.js" },
|
|
35
|
+
functionQuery: { expressionName: "exec", kind: "Auto" }
|
|
36
|
+
},
|
|
37
|
+
// `doc.save()` (and its `$save` alias, which mongoose points at `save` on
|
|
38
|
+
// require. the alias picks up the transformed body automatically, so no
|
|
39
|
+
// separate entry is needed).
|
|
40
|
+
{
|
|
41
|
+
channelName: "model_save",
|
|
42
|
+
module: { ...module$1, filePath: "lib/model.js" },
|
|
43
|
+
functionQuery: { expressionName: "save", kind: "Auto" }
|
|
44
|
+
},
|
|
45
|
+
// Static batch operations.
|
|
46
|
+
{
|
|
47
|
+
channelName: "model_insert_many",
|
|
48
|
+
module: { ...module$1, filePath: "lib/model.js" },
|
|
49
|
+
functionQuery: { expressionName: "insertMany", kind: "Auto" }
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
channelName: "model_bulk_write",
|
|
53
|
+
module: { ...module$1, filePath: "lib/model.js" },
|
|
54
|
+
functionQuery: { expressionName: "bulkWrite", kind: "Auto" }
|
|
55
|
+
},
|
|
56
|
+
// `doc.remove()` (a document method, deprecated in 6 and removed in 7)
|
|
57
|
+
// `expressionName: 'remove'` also matches the sibling `Model.remove`
|
|
58
|
+
// *static* in this file, which no matcher can tell apart from the prototype
|
|
59
|
+
// method; that static is deprecated and would just produce a redundant span
|
|
60
|
+
// so the collision is accepted rather than dropping the doc-method span.
|
|
61
|
+
{
|
|
62
|
+
channelName: "model_remove",
|
|
63
|
+
module: { ...module$1, filePath: "lib/model.js" },
|
|
64
|
+
functionQuery: { expressionName: "remove", kind: "Auto" }
|
|
65
|
+
},
|
|
66
|
+
// NOTE: document `updateOne`/`deleteOne` (mongoose 8.21+) are deliberately
|
|
67
|
+
// NOT hooked here. The vendored OTel/IITM patcher wraps
|
|
68
|
+
// `Model.prototype.updateOne`/`deleteOne`, but those delegate to
|
|
69
|
+
// `Query.exec`, which the `query_exec` channel above already instruments
|
|
70
|
+
// (its `this.op` is the right operation). Verified by the `mongoose-v8`
|
|
71
|
+
// suite against a real mongoose 8.21+ under orchestrion. A dedicated hook
|
|
72
|
+
// is also not possible cleanly: `expressionName: 'updateOne'` in
|
|
73
|
+
// `lib/model.js` can't be told apart from the same-named `Model.updateOne`
|
|
74
|
+
// *static* (the common query-builder form), so hooking it would double-span
|
|
75
|
+
// every `Model.updateOne(...)` call.
|
|
76
|
+
//
|
|
77
|
+
// `Model.aggregate()` builds an `Aggregate` with no method to hook for
|
|
78
|
+
// context capture, so hook the static itself and stash the active span
|
|
79
|
+
// on the returned aggregate. `Sync`: it returns the aggregate.
|
|
80
|
+
{
|
|
81
|
+
channelName: "model_aggregate",
|
|
82
|
+
module: { ...module$1, filePath: "lib/model.js" },
|
|
83
|
+
functionQuery: { expressionName: "aggregate", kind: "Sync" }
|
|
84
|
+
},
|
|
85
|
+
...CONTEXT_CAPTURE_QUERY_METHODS.map((methodName) => ({
|
|
86
|
+
channelName: `ctx_${methodName}`,
|
|
87
|
+
module: { ...module$1, filePath: "lib/query.js" },
|
|
88
|
+
functionQuery: { expressionName: methodName, kind: "Sync" }
|
|
89
|
+
}))
|
|
90
|
+
];
|
|
91
|
+
const mongooseChannels = {
|
|
92
|
+
MONGOOSE_QUERY_EXEC: "orchestrion:mongoose:query_exec",
|
|
93
|
+
MONGOOSE_AGGREGATE_EXEC: "orchestrion:mongoose:aggregate_exec",
|
|
94
|
+
MONGOOSE_MODEL_SAVE: "orchestrion:mongoose:model_save",
|
|
95
|
+
MONGOOSE_MODEL_INSERT_MANY: "orchestrion:mongoose:model_insert_many",
|
|
96
|
+
MONGOOSE_MODEL_BULK_WRITE: "orchestrion:mongoose:model_bulk_write",
|
|
97
|
+
MONGOOSE_MODEL_REMOVE: "orchestrion:mongoose:model_remove",
|
|
98
|
+
MONGOOSE_MODEL_AGGREGATE: "orchestrion:mongoose:model_aggregate"
|
|
99
|
+
};
|
|
100
|
+
const MONGOOSE_CONTEXT_CAPTURE_CHANNELS = CONTEXT_CAPTURE_QUERY_METHODS.map(
|
|
101
|
+
(methodName) => `orchestrion:mongoose:ctx_${methodName}`
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
exports.MONGOOSE_CONTEXT_CAPTURE_CHANNELS = MONGOOSE_CONTEXT_CAPTURE_CHANNELS;
|
|
105
|
+
exports.mongooseChannels = mongooseChannels;
|
|
106
|
+
exports.mongooseConfig = mongooseConfig;
|
|
107
|
+
//# sourceMappingURL=mongoose.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongoose.js","sources":["../../../../src/orchestrion/config/mongoose.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\n// mongoose >= 9.7.0 publishes via its own `node:diagnostics_channel` tracing channels (handled by\n// `subscribeMongooseDiagnosticChannels`), so this transform is gated to `< 9.7.0` to avoid emitting\n// two spans per operation. The lower bound mirrors the vendored OTel IITM patcher's supported range.\nconst module = { name: 'mongoose', versionRange: '>=5.9.7 <9.7.0' } as const;\n\n// mongoose defines its prototype/static methods as assignments\n// (`Query.prototype.find = function(...)`, most of them anonymous), so the\n// transform matches the assigned property name via `expressionName`\n// rather than the function name. Entries whose method does not exist in a\n// given major are simply inert.\n\n// Builder methods that run synchronously and return a `Query`/`Aggregate`.\n// They don't get their own span; the subscriber only reads the active span\n// at build time and stashes it on the query so the later `exec()` can parent\n// to where the query was *built*, not where it is awaited. `kind: 'Sync'`\n// so the returned thenable isn't mistaken for the traced operation's result.\nconst CONTEXT_CAPTURE_QUERY_METHODS = [\n 'find',\n 'findOne',\n 'deleteOne',\n 'deleteMany',\n 'estimatedDocumentCount',\n 'countDocuments',\n 'distinct',\n 'where',\n '$where',\n 'findOneAndUpdate',\n 'findOneAndDelete',\n 'findOneAndReplace',\n // 5/6/7 only (removed in 8), inert in recent versions\n 'remove',\n 'count',\n 'findOneAndRemove',\n] as const;\n\nexport const mongooseConfig = [\n // Query execution\n // the span for most read/write operations. `op`, collection and model are\n // read off the `Query` at exec time.\n {\n channelName: 'query_exec',\n module: { ...module, filePath: 'lib/query.js' },\n functionQuery: { expressionName: 'exec', kind: 'Auto' },\n },\n // Aggregation pipeline execution.\n {\n channelName: 'aggregate_exec',\n module: { ...module, filePath: 'lib/aggregate.js' },\n functionQuery: { expressionName: 'exec', kind: 'Auto' },\n },\n // `doc.save()` (and its `$save` alias, which mongoose points at `save` on\n // require. the alias picks up the transformed body automatically, so no\n // separate entry is needed).\n {\n channelName: 'model_save',\n module: { ...module, filePath: 'lib/model.js' },\n functionQuery: { expressionName: 'save', kind: 'Auto' },\n },\n // Static batch operations.\n {\n channelName: 'model_insert_many',\n module: { ...module, filePath: 'lib/model.js' },\n functionQuery: { expressionName: 'insertMany', kind: 'Auto' },\n },\n {\n channelName: 'model_bulk_write',\n module: { ...module, filePath: 'lib/model.js' },\n functionQuery: { expressionName: 'bulkWrite', kind: 'Auto' },\n },\n // `doc.remove()` (a document method, deprecated in 6 and removed in 7)\n // `expressionName: 'remove'` also matches the sibling `Model.remove`\n // *static* in this file, which no matcher can tell apart from the prototype\n // method; that static is deprecated and would just produce a redundant span\n // so the collision is accepted rather than dropping the doc-method span.\n {\n channelName: 'model_remove',\n module: { ...module, filePath: 'lib/model.js' },\n functionQuery: { expressionName: 'remove', kind: 'Auto' },\n },\n // NOTE: document `updateOne`/`deleteOne` (mongoose 8.21+) are deliberately\n // NOT hooked here. The vendored OTel/IITM patcher wraps\n // `Model.prototype.updateOne`/`deleteOne`, but those delegate to\n // `Query.exec`, which the `query_exec` channel above already instruments\n // (its `this.op` is the right operation). Verified by the `mongoose-v8`\n // suite against a real mongoose 8.21+ under orchestrion. A dedicated hook\n // is also not possible cleanly: `expressionName: 'updateOne'` in\n // `lib/model.js` can't be told apart from the same-named `Model.updateOne`\n // *static* (the common query-builder form), so hooking it would double-span\n // every `Model.updateOne(...)` call.\n //\n // `Model.aggregate()` builds an `Aggregate` with no method to hook for\n // context capture, so hook the static itself and stash the active span\n // on the returned aggregate. `Sync`: it returns the aggregate.\n {\n channelName: 'model_aggregate',\n module: { ...module, filePath: 'lib/model.js' },\n functionQuery: { expressionName: 'aggregate', kind: 'Sync' },\n },\n ...CONTEXT_CAPTURE_QUERY_METHODS.map(methodName => ({\n channelName: `ctx_${methodName}`,\n module: { ...module, filePath: 'lib/query.js' },\n functionQuery: { expressionName: methodName, kind: 'Sync' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const mongooseChannels = {\n MONGOOSE_QUERY_EXEC: 'orchestrion:mongoose:query_exec',\n MONGOOSE_AGGREGATE_EXEC: 'orchestrion:mongoose:aggregate_exec',\n MONGOOSE_MODEL_SAVE: 'orchestrion:mongoose:model_save',\n MONGOOSE_MODEL_INSERT_MANY: 'orchestrion:mongoose:model_insert_many',\n MONGOOSE_MODEL_BULK_WRITE: 'orchestrion:mongoose:model_bulk_write',\n MONGOOSE_MODEL_REMOVE: 'orchestrion:mongoose:model_remove',\n MONGOOSE_MODEL_AGGREGATE: 'orchestrion:mongoose:model_aggregate',\n} as const;\n\n/**\n * Fully-qualified names of the context-capture channels, derived from the\n * same method list the transform config uses so the two can't drift. The\n * subscriber subscribes to all of them uniformly to stash the build-time\n * parent span (see `mongooseChannels` for the span-creating channels).\n */\nexport const MONGOOSE_CONTEXT_CAPTURE_CHANNELS: string[] = CONTEXT_CAPTURE_QUERY_METHODS.map(\n methodName => `orchestrion:mongoose:ctx_${methodName}`,\n);\n"],"names":["module"],"mappings":";;AAKA,MAAMA,QAAA,GAAS,EAAE,IAAA,EAAM,UAAA,EAAY,cAAc,gBAAA,EAAiB;AAalE,MAAM,6BAAA,GAAgC;AAAA,EACpC,MAAA;AAAA,EACA,SAAA;AAAA,EACA,WAAA;AAAA,EACA,YAAA;AAAA,EACA,wBAAA;AAAA,EACA,gBAAA;AAAA,EACA,UAAA;AAAA,EACA,OAAA;AAAA,EACA,QAAA;AAAA,EACA,kBAAA;AAAA,EACA,kBAAA;AAAA,EACA,mBAAA;AAAA;AAAA,EAEA,QAAA;AAAA,EACA,OAAA;AAAA,EACA;AACF,CAAA;AAEO,MAAM,cAAA,GAAiB;AAAA;AAAA;AAAA;AAAA,EAI5B;AAAA,IACE,WAAA,EAAa,YAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,cAAA,EAAe;AAAA,IAC9C,aAAA,EAAe,EAAE,cAAA,EAAgB,MAAA,EAAQ,MAAM,MAAA;AAAO,GACxD;AAAA;AAAA,EAEA;AAAA,IACE,WAAA,EAAa,gBAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,kBAAA,EAAmB;AAAA,IAClD,aAAA,EAAe,EAAE,cAAA,EAAgB,MAAA,EAAQ,MAAM,MAAA;AAAO,GACxD;AAAA;AAAA;AAAA;AAAA,EAIA;AAAA,IACE,WAAA,EAAa,YAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,cAAA,EAAe;AAAA,IAC9C,aAAA,EAAe,EAAE,cAAA,EAAgB,MAAA,EAAQ,MAAM,MAAA;AAAO,GACxD;AAAA;AAAA,EAEA;AAAA,IACE,WAAA,EAAa,mBAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,cAAA,EAAe;AAAA,IAC9C,aAAA,EAAe,EAAE,cAAA,EAAgB,YAAA,EAAc,MAAM,MAAA;AAAO,GAC9D;AAAA,EACA;AAAA,IACE,WAAA,EAAa,kBAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,cAAA,EAAe;AAAA,IAC9C,aAAA,EAAe,EAAE,cAAA,EAAgB,WAAA,EAAa,MAAM,MAAA;AAAO,GAC7D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA;AAAA,IACE,WAAA,EAAa,cAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,cAAA,EAAe;AAAA,IAC9C,aAAA,EAAe,EAAE,cAAA,EAAgB,QAAA,EAAU,MAAM,MAAA;AAAO,GAC1D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAeA;AAAA,IACE,WAAA,EAAa,iBAAA;AAAA,IACb,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,cAAA,EAAe;AAAA,IAC9C,aAAA,EAAe,EAAE,cAAA,EAAgB,WAAA,EAAa,MAAM,MAAA;AAAO,GAC7D;AAAA,EACA,GAAG,6BAAA,CAA8B,GAAA,CAAI,CAAA,UAAA,MAAe;AAAA,IAClD,WAAA,EAAa,OAAO,UAAU,CAAA,CAAA;AAAA,IAC9B,MAAA,EAAQ,EAAE,GAAGA,QAAA,EAAQ,UAAU,cAAA,EAAe;AAAA,IAC9C,aAAA,EAAe,EAAE,cAAA,EAAgB,UAAA,EAAY,MAAM,MAAA;AAAgB,GACrE,CAAE;AACJ;AAEO,MAAM,gBAAA,GAAmB;AAAA,EAC9B,mBAAA,EAAqB,iCAAA;AAAA,EACrB,uBAAA,EAAyB,qCAAA;AAAA,EACzB,mBAAA,EAAqB,iCAAA;AAAA,EACrB,0BAAA,EAA4B,wCAAA;AAAA,EAC5B,yBAAA,EAA2B,uCAAA;AAAA,EAC3B,qBAAA,EAAuB,mCAAA;AAAA,EACvB,wBAAA,EAA0B;AAC5B;AAQO,MAAM,oCAA8C,6BAAA,CAA8B,GAAA;AAAA,EACvF,CAAA,UAAA,KAAc,4BAA4B,UAAU,CAAA;AACtD;;;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
const mysqlConfig = [
|
|
4
|
+
{
|
|
5
|
+
channelName: "query",
|
|
6
|
+
module: { name: "mysql", versionRange: ">=2.0.0 <3", filePath: "lib/Connection.js" },
|
|
7
|
+
functionQuery: { expressionName: "query", kind: "Auto" }
|
|
8
|
+
}
|
|
9
|
+
];
|
|
10
|
+
const mysqlChannels = {
|
|
11
|
+
MYSQL_QUERY: "orchestrion:mysql:query"
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
exports.mysqlChannels = mysqlChannels;
|
|
15
|
+
exports.mysqlConfig = mysqlConfig;
|
|
16
|
+
//# sourceMappingURL=mysql.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mysql.js","sources":["../../../../src/orchestrion/config/mysql.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\nexport const mysqlConfig = [\n {\n channelName: 'query',\n module: { name: 'mysql', versionRange: '>=2.0.0 <3', filePath: 'lib/Connection.js' },\n functionQuery: { expressionName: 'query', kind: 'Auto' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const mysqlChannels = {\n MYSQL_QUERY: 'orchestrion:mysql:query',\n} as const;\n"],"names":[],"mappings":";;AAEO,MAAM,WAAA,GAAc;AAAA,EACzB;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,SAAS,YAAA,EAAc,YAAA,EAAc,UAAU,mBAAA,EAAoB;AAAA,IACnF,aAAA,EAAe,EAAE,cAAA,EAAgB,OAAA,EAAS,MAAM,MAAA;AAAO;AAE3D;AAEO,MAAM,aAAA,GAAgB;AAAA,EAC3B,WAAA,EAAa;AACf;;;;;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
const mysql2Config = [
|
|
4
|
+
{
|
|
5
|
+
channelName: "query",
|
|
6
|
+
module: { name: "mysql2", versionRange: ">=1.4.2 <3.11.5", filePath: "lib/connection.js" },
|
|
7
|
+
functionQuery: { className: "Connection", methodName: "query", kind: "Callback" }
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
channelName: "execute",
|
|
11
|
+
module: { name: "mysql2", versionRange: ">=1.4.2 <3.11.5", filePath: "lib/connection.js" },
|
|
12
|
+
functionQuery: { className: "Connection", methodName: "execute", kind: "Callback" }
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
channelName: "query",
|
|
16
|
+
module: { name: "mysql2", versionRange: ">=3.11.5 <3.20.0", filePath: "lib/base/connection.js" },
|
|
17
|
+
functionQuery: { className: "BaseConnection", methodName: "query", kind: "Callback" }
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
channelName: "execute",
|
|
21
|
+
module: { name: "mysql2", versionRange: ">=3.11.5 <3.20.0", filePath: "lib/base/connection.js" },
|
|
22
|
+
functionQuery: { className: "BaseConnection", methodName: "execute", kind: "Callback" }
|
|
23
|
+
}
|
|
24
|
+
];
|
|
25
|
+
const mysql2Channels = {
|
|
26
|
+
MYSQL2_QUERY: "orchestrion:mysql2:query",
|
|
27
|
+
MYSQL2_EXECUTE: "orchestrion:mysql2:execute"
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
exports.mysql2Channels = mysql2Channels;
|
|
31
|
+
exports.mysql2Config = mysql2Config;
|
|
32
|
+
//# sourceMappingURL=mysql2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mysql2.js","sources":["../../../../src/orchestrion/config/mysql2.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\n// Ports `@opentelemetry/instrumentation-mysql2` (which patches `query`/`execute` on the connection\n// prototype) to orchestrion channel injection.\n//\n// Two file layouts across the supported range:\n// - `< 3.11.5` → `class Connection` with `query`/`execute` in `lib/connection.js`\n// - `>= 3.11.5` → the methods moved to `class BaseConnection` in `lib/base/connection.js`\n//\n// Gated to `< 3.20.0`: from 3.20.0 mysql2 publishes to `node:diagnostics_channel` natively, and\n// that path is instrumented by `subscribeMysql2DiagnosticChannels` instead. Injecting there too\n// would emit two spans per query.\n//\n// `Callback` traces the callback shapes: `query(sql, cb)`, `query(sql, values, cb)`, and — since the\n// promise API funnels through the callback form — `await connection.query(sql)`. `execute` never\n// delegates to `query` internally, so instrumenting both is safe.\n//\n// NOT `Auto`: `Auto`'s no-callback branch probes the return value for `.then`, but mysql2's callback-\n// less `query(sql)` returns a `Query` whose `.then()` throws (mysql2's \"use the promise wrapper\"\n// guard) — so `Auto` would crash streamed queries. `Callback` leaves that shape untouched (a rare,\n// row-streaming use that consumes the emitter's events), the tradeoff being it isn't traced.\nexport const mysql2Config = [\n {\n channelName: 'query',\n module: { name: 'mysql2', versionRange: '>=1.4.2 <3.11.5', filePath: 'lib/connection.js' },\n functionQuery: { className: 'Connection', methodName: 'query', kind: 'Callback' },\n },\n {\n channelName: 'execute',\n module: { name: 'mysql2', versionRange: '>=1.4.2 <3.11.5', filePath: 'lib/connection.js' },\n functionQuery: { className: 'Connection', methodName: 'execute', kind: 'Callback' },\n },\n {\n channelName: 'query',\n module: { name: 'mysql2', versionRange: '>=3.11.5 <3.20.0', filePath: 'lib/base/connection.js' },\n functionQuery: { className: 'BaseConnection', methodName: 'query', kind: 'Callback' },\n },\n {\n channelName: 'execute',\n module: { name: 'mysql2', versionRange: '>=3.11.5 <3.20.0', filePath: 'lib/base/connection.js' },\n functionQuery: { className: 'BaseConnection', methodName: 'execute', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const mysql2Channels = {\n MYSQL2_QUERY: 'orchestrion:mysql2:query',\n MYSQL2_EXECUTE: 'orchestrion:mysql2:execute',\n} as const;\n"],"names":[],"mappings":";;AAqBO,MAAM,YAAA,GAAe;AAAA,EAC1B;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,iBAAA,EAAmB,UAAU,mBAAA,EAAoB;AAAA,IACzF,eAAe,EAAE,SAAA,EAAW,cAAc,UAAA,EAAY,OAAA,EAAS,MAAM,UAAA;AAAW,GAClF;AAAA,EACA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,iBAAA,EAAmB,UAAU,mBAAA,EAAoB;AAAA,IACzF,eAAe,EAAE,SAAA,EAAW,cAAc,UAAA,EAAY,SAAA,EAAW,MAAM,UAAA;AAAW,GACpF;AAAA,EACA;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,kBAAA,EAAoB,UAAU,wBAAA,EAAyB;AAAA,IAC/F,eAAe,EAAE,SAAA,EAAW,kBAAkB,UAAA,EAAY,OAAA,EAAS,MAAM,UAAA;AAAW,GACtF;AAAA,EACA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,kBAAA,EAAoB,UAAU,wBAAA,EAAyB;AAAA,IAC/F,eAAe,EAAE,SAAA,EAAW,kBAAkB,UAAA,EAAY,SAAA,EAAW,MAAM,UAAA;AAAW;AAE1F;AAEO,MAAM,cAAA,GAAiB;AAAA,EAC5B,YAAA,EAAc,0BAAA;AAAA,EACd,cAAA,EAAgB;AAClB;;;;;"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
function astQueryInstrumentation(config) {
|
|
4
|
+
return config;
|
|
5
|
+
}
|
|
6
|
+
const nestjsConfig = [
|
|
7
|
+
{
|
|
8
|
+
channelName: "nestFactoryCreate",
|
|
9
|
+
module: { name: "@nestjs/core", versionRange: ">=8.0.0 <12", filePath: "nest-factory.js" },
|
|
10
|
+
functionQuery: { className: "NestFactoryStatic", methodName: "create", kind: "Async" }
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
channelName: "routerExecutionContextCreate",
|
|
14
|
+
module: { name: "@nestjs/core", versionRange: ">=8.0.0 <12", filePath: "router/router-execution-context.js" },
|
|
15
|
+
functionQuery: { className: "RouterExecutionContext", methodName: "create", kind: "Sync" }
|
|
16
|
+
},
|
|
17
|
+
astQueryInstrumentation({
|
|
18
|
+
// `@nestjs/common/decorators/core/injectable.decorator.js`:
|
|
19
|
+
// `function Injectable(options) { return (target) => { ... }; }`
|
|
20
|
+
// The inner decorator arrow is anonymous + returned, so only a raw
|
|
21
|
+
// `astQuery` can target it. The subscriber's `start` receives the
|
|
22
|
+
// decorated class as `arguments[0]` and patches its prototype
|
|
23
|
+
// use/canActivate/transform/intercept methods, reproducing the
|
|
24
|
+
// vendored `SentryNestInstrumentation` middleware/guard/pipe/interceptor
|
|
25
|
+
// spans. No span on the decorator itself, so `kind: 'Sync'`.
|
|
26
|
+
channelName: "injectableDecorator",
|
|
27
|
+
module: {
|
|
28
|
+
name: "@nestjs/common",
|
|
29
|
+
versionRange: ">=8.0.0 <12",
|
|
30
|
+
filePath: "decorators/core/injectable.decorator.js"
|
|
31
|
+
},
|
|
32
|
+
astQuery: 'FunctionDeclaration[id.name="Injectable"] ReturnStatement > ArrowFunctionExpression',
|
|
33
|
+
functionQuery: { kind: "Sync" }
|
|
34
|
+
}),
|
|
35
|
+
astQueryInstrumentation({
|
|
36
|
+
// `@nestjs/common/decorators/core/catch.decorator.js`:
|
|
37
|
+
// `function Catch(...exceptions) { return (target) => { ... }; }`
|
|
38
|
+
// Same anonymous-returned-arrow shape as `Injectable`. The subscriber's
|
|
39
|
+
// `start` patches the exception filter's prototype `catch` method to
|
|
40
|
+
// open an `exception_filter` span.
|
|
41
|
+
//
|
|
42
|
+
// Mirrors the vendored `SentryNestInstrumentation` `@Catch` wrap.
|
|
43
|
+
channelName: "catchDecorator",
|
|
44
|
+
module: { name: "@nestjs/common", versionRange: ">=8.0.0 <12", filePath: "decorators/core/catch.decorator.js" },
|
|
45
|
+
astQuery: 'FunctionDeclaration[id.name="Catch"] ReturnStatement > ArrowFunctionExpression',
|
|
46
|
+
functionQuery: { kind: "Sync" }
|
|
47
|
+
}),
|
|
48
|
+
// @nestjs/schedule @Cron/@Interval/@Timeout:
|
|
49
|
+
// `function Cron(...) { return applyDecorators(...); }`
|
|
50
|
+
// The returned decorator has no inline arrow to target, so we match the
|
|
51
|
+
// factory function and reassign `data.result` in `end` to wrap the
|
|
52
|
+
// decorator it returns (which rewrites the user handler `descriptor.value`
|
|
53
|
+
// with isolation-scope + error capture).
|
|
54
|
+
// Mirrors `SentryNestScheduleInstrumentation`, whose supported range we
|
|
55
|
+
// match so opting in doesn't drop coverage the OTel path had. The compiled
|
|
56
|
+
// `function Cron(...)` declaration is unchanged across 2.x–5.x.
|
|
57
|
+
{
|
|
58
|
+
channelName: "cronDecorator",
|
|
59
|
+
module: { name: "@nestjs/schedule", versionRange: ">=2.0.0", filePath: "dist/decorators/cron.decorator.js" },
|
|
60
|
+
functionQuery: { functionName: "Cron", kind: "Sync" }
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
channelName: "intervalDecorator",
|
|
64
|
+
module: { name: "@nestjs/schedule", versionRange: ">=2.0.0", filePath: "dist/decorators/interval.decorator.js" },
|
|
65
|
+
functionQuery: { functionName: "Interval", kind: "Sync" }
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
channelName: "timeoutDecorator",
|
|
69
|
+
module: { name: "@nestjs/schedule", versionRange: ">=2.0.0", filePath: "dist/decorators/timeout.decorator.js" },
|
|
70
|
+
functionQuery: { functionName: "Timeout", kind: "Sync" }
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
// @nestjs/event-emitter @OnEvent:
|
|
74
|
+
// `const OnEvent = (event, options) => {
|
|
75
|
+
// const decoratorFactory = (t, k, d) => {...}; return decoratorFactory;
|
|
76
|
+
// }`
|
|
77
|
+
// `OnEvent` is an arrow assigned to a const, so `expressionName`. `end`
|
|
78
|
+
// reassigns `data.result` to wrap the returned decorator, which rewrites
|
|
79
|
+
// the handler to open an `event.nestjs` span.
|
|
80
|
+
// Mirrors `SentryNestEventInstrumentation`; the `const OnEvent = (...) =>`
|
|
81
|
+
// shape is unchanged across 2.x–3.x.
|
|
82
|
+
channelName: "onEventDecorator",
|
|
83
|
+
module: {
|
|
84
|
+
name: "@nestjs/event-emitter",
|
|
85
|
+
versionRange: ">=2.0.0",
|
|
86
|
+
filePath: "dist/decorators/on-event.decorator.js"
|
|
87
|
+
},
|
|
88
|
+
functionQuery: { expressionName: "OnEvent", kind: "Sync" }
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
// @nestjs/bullmq @Processor:
|
|
92
|
+
// `function Processor(...) { return (target) => {...}; }`
|
|
93
|
+
// The factory arg carries the queue name, so we match the factory and
|
|
94
|
+
// reassign `data.result` in `end` to wrap the returned class decorator
|
|
95
|
+
// (which patches `target.prototype.process`).
|
|
96
|
+
// Mirrors `SentryNestBullMQInstrumentation`; the `function Processor(...)`
|
|
97
|
+
// declaration is unchanged across
|
|
98
|
+
// 10.x–11.x.
|
|
99
|
+
channelName: "processorDecorator",
|
|
100
|
+
module: {
|
|
101
|
+
name: "@nestjs/bullmq",
|
|
102
|
+
versionRange: ">=10.0.0",
|
|
103
|
+
filePath: "dist/decorators/processor.decorator.js"
|
|
104
|
+
},
|
|
105
|
+
functionQuery: { functionName: "Processor", kind: "Sync" }
|
|
106
|
+
}
|
|
107
|
+
];
|
|
108
|
+
const nestjsChannels = {
|
|
109
|
+
NESTJS_APP_CREATION: "orchestrion:@nestjs/core:nestFactoryCreate",
|
|
110
|
+
NESTJS_ROUTER_CONTEXT: "orchestrion:@nestjs/core:routerExecutionContextCreate",
|
|
111
|
+
NESTJS_INJECTABLE: "orchestrion:@nestjs/common:injectableDecorator",
|
|
112
|
+
NESTJS_CATCH: "orchestrion:@nestjs/common:catchDecorator",
|
|
113
|
+
NESTJS_SCHEDULE_CRON: "orchestrion:@nestjs/schedule:cronDecorator",
|
|
114
|
+
NESTJS_SCHEDULE_INTERVAL: "orchestrion:@nestjs/schedule:intervalDecorator",
|
|
115
|
+
NESTJS_SCHEDULE_TIMEOUT: "orchestrion:@nestjs/schedule:timeoutDecorator",
|
|
116
|
+
NESTJS_ONEVENT: "orchestrion:@nestjs/event-emitter:onEventDecorator",
|
|
117
|
+
NESTJS_PROCESSOR: "orchestrion:@nestjs/bullmq:processorDecorator"
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
exports.nestjsChannels = nestjsChannels;
|
|
121
|
+
exports.nestjsConfig = nestjsConfig;
|
|
122
|
+
//# sourceMappingURL=nestjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nestjs.js","sources":["../../../../src/orchestrion/config/nestjs.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\n/**\n * Wrap an instrumentation that targets nodes via a raw esquery selector\n * (`NstQuery`) rather than the structured `functionQuery`. Needed when the\n * target can't be named, e.g. the anonymous arrow a decorator factory returns\n * The transformer supports `astQuery` at runtime (it takes precedence over\n * `functionQuery`, which then only supplies `kind`), but it isn't in the\n * published `InstrumentationConfig` type. Hence the cast.\n */\nfunction astQueryInstrumentation(config: {\n channelName: string;\n module: InstrumentationConfig['module'];\n astQuery: string;\n functionQuery: { kind: 'Sync' | 'Async' | 'Callback' | 'Auto' };\n}): InstrumentationConfig {\n return config as unknown as InstrumentationConfig;\n}\n\n/**\n * NestJS is different from the other instrumentations here. It's a standalone\n * metaframework SDK (`@sentry/nestjs`), so its channel LISTENER lives in that\n * package rather than in `server-utils`. Only the code-transform config (and\n * the channel names below) live here, so `@nestjs/*` is transformed whenever\n * orchestrion is enabled, same as every other library.\n *\n * `@sentry/nestjs` imports {@link nestjsChannels} to subscribe, and picks the\n * channel-vs-OTel path based on the global injection flag.\n */\nexport const nestjsConfig = [\n {\n channelName: 'nestFactoryCreate',\n module: { name: '@nestjs/core', versionRange: '>=8.0.0 <12', filePath: 'nest-factory.js' },\n functionQuery: { className: 'NestFactoryStatic', methodName: 'create', kind: 'Async' },\n },\n {\n channelName: 'routerExecutionContextCreate',\n module: { name: '@nestjs/core', versionRange: '>=8.0.0 <12', filePath: 'router/router-execution-context.js' },\n functionQuery: { className: 'RouterExecutionContext', methodName: 'create', kind: 'Sync' },\n },\n astQueryInstrumentation({\n // `@nestjs/common/decorators/core/injectable.decorator.js`:\n // `function Injectable(options) { return (target) => { ... }; }`\n // The inner decorator arrow is anonymous + returned, so only a raw\n // `astQuery` can target it. The subscriber's `start` receives the\n // decorated class as `arguments[0]` and patches its prototype\n // use/canActivate/transform/intercept methods, reproducing the\n // vendored `SentryNestInstrumentation` middleware/guard/pipe/interceptor\n // spans. No span on the decorator itself, so `kind: 'Sync'`.\n channelName: 'injectableDecorator',\n module: {\n name: '@nestjs/common',\n versionRange: '>=8.0.0 <12',\n filePath: 'decorators/core/injectable.decorator.js',\n },\n astQuery: 'FunctionDeclaration[id.name=\"Injectable\"] ReturnStatement > ArrowFunctionExpression',\n functionQuery: { kind: 'Sync' },\n }),\n astQueryInstrumentation({\n // `@nestjs/common/decorators/core/catch.decorator.js`:\n // `function Catch(...exceptions) { return (target) => { ... }; }`\n // Same anonymous-returned-arrow shape as `Injectable`. The subscriber's\n // `start` patches the exception filter's prototype `catch` method to\n // open an `exception_filter` span.\n //\n // Mirrors the vendored `SentryNestInstrumentation` `@Catch` wrap.\n channelName: 'catchDecorator',\n module: { name: '@nestjs/common', versionRange: '>=8.0.0 <12', filePath: 'decorators/core/catch.decorator.js' },\n astQuery: 'FunctionDeclaration[id.name=\"Catch\"] ReturnStatement > ArrowFunctionExpression',\n functionQuery: { kind: 'Sync' },\n }),\n // @nestjs/schedule @Cron/@Interval/@Timeout:\n // `function Cron(...) { return applyDecorators(...); }`\n // The returned decorator has no inline arrow to target, so we match the\n // factory function and reassign `data.result` in `end` to wrap the\n // decorator it returns (which rewrites the user handler `descriptor.value`\n // with isolation-scope + error capture).\n // Mirrors `SentryNestScheduleInstrumentation`, whose supported range we\n // match so opting in doesn't drop coverage the OTel path had. The compiled\n // `function Cron(...)` declaration is unchanged across 2.x–5.x.\n {\n channelName: 'cronDecorator',\n module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/cron.decorator.js' },\n functionQuery: { functionName: 'Cron', kind: 'Sync' },\n },\n {\n channelName: 'intervalDecorator',\n module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/interval.decorator.js' },\n functionQuery: { functionName: 'Interval', kind: 'Sync' },\n },\n {\n channelName: 'timeoutDecorator',\n module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/timeout.decorator.js' },\n functionQuery: { functionName: 'Timeout', kind: 'Sync' },\n },\n {\n // @nestjs/event-emitter @OnEvent:\n // `const OnEvent = (event, options) => {\n // const decoratorFactory = (t, k, d) => {...}; return decoratorFactory;\n // }`\n // `OnEvent` is an arrow assigned to a const, so `expressionName`. `end`\n // reassigns `data.result` to wrap the returned decorator, which rewrites\n // the handler to open an `event.nestjs` span.\n // Mirrors `SentryNestEventInstrumentation`; the `const OnEvent = (...) =>`\n // shape is unchanged across 2.x–3.x.\n channelName: 'onEventDecorator',\n module: {\n name: '@nestjs/event-emitter',\n versionRange: '>=2.0.0',\n filePath: 'dist/decorators/on-event.decorator.js',\n },\n functionQuery: { expressionName: 'OnEvent', kind: 'Sync' },\n },\n {\n // @nestjs/bullmq @Processor:\n // `function Processor(...) { return (target) => {...}; }`\n // The factory arg carries the queue name, so we match the factory and\n // reassign `data.result` in `end` to wrap the returned class decorator\n // (which patches `target.prototype.process`).\n // Mirrors `SentryNestBullMQInstrumentation`; the `function Processor(...)`\n // declaration is unchanged across\n // 10.x–11.x.\n channelName: 'processorDecorator',\n module: {\n name: '@nestjs/bullmq',\n versionRange: '>=10.0.0',\n filePath: 'dist/decorators/processor.decorator.js',\n },\n functionQuery: { functionName: 'Processor', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const nestjsChannels = {\n NESTJS_APP_CREATION: 'orchestrion:@nestjs/core:nestFactoryCreate',\n NESTJS_ROUTER_CONTEXT: 'orchestrion:@nestjs/core:routerExecutionContextCreate',\n NESTJS_INJECTABLE: 'orchestrion:@nestjs/common:injectableDecorator',\n NESTJS_CATCH: 'orchestrion:@nestjs/common:catchDecorator',\n NESTJS_SCHEDULE_CRON: 'orchestrion:@nestjs/schedule:cronDecorator',\n NESTJS_SCHEDULE_INTERVAL: 'orchestrion:@nestjs/schedule:intervalDecorator',\n NESTJS_SCHEDULE_TIMEOUT: 'orchestrion:@nestjs/schedule:timeoutDecorator',\n NESTJS_ONEVENT: 'orchestrion:@nestjs/event-emitter:onEventDecorator',\n NESTJS_PROCESSOR: 'orchestrion:@nestjs/bullmq:processorDecorator',\n} as const;\n"],"names":[],"mappings":";;AAUA,SAAS,wBAAwB,MAAA,EAKP;AACxB,EAAA,OAAO,MAAA;AACT;AAYO,MAAM,YAAA,GAAe;AAAA,EAC1B;AAAA,IACE,WAAA,EAAa,mBAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,gBAAgB,YAAA,EAAc,aAAA,EAAe,UAAU,iBAAA,EAAkB;AAAA,IACzF,eAAe,EAAE,SAAA,EAAW,qBAAqB,UAAA,EAAY,QAAA,EAAU,MAAM,OAAA;AAAQ,GACvF;AAAA,EACA;AAAA,IACE,WAAA,EAAa,8BAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,gBAAgB,YAAA,EAAc,aAAA,EAAe,UAAU,oCAAA,EAAqC;AAAA,IAC5G,eAAe,EAAE,SAAA,EAAW,0BAA0B,UAAA,EAAY,QAAA,EAAU,MAAM,MAAA;AAAO,GAC3F;AAAA,EACA,uBAAA,CAAwB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAStB,WAAA,EAAa,qBAAA;AAAA,IACb,MAAA,EAAQ;AAAA,MACN,IAAA,EAAM,gBAAA;AAAA,MACN,YAAA,EAAc,aAAA;AAAA,MACd,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,QAAA,EAAU,qFAAA;AAAA,IACV,aAAA,EAAe,EAAE,IAAA,EAAM,MAAA;AAAO,GAC/B,CAAA;AAAA,EACD,uBAAA,CAAwB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQtB,WAAA,EAAa,gBAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,kBAAkB,YAAA,EAAc,aAAA,EAAe,UAAU,oCAAA,EAAqC;AAAA,IAC9G,QAAA,EAAU,gFAAA;AAAA,IACV,aAAA,EAAe,EAAE,IAAA,EAAM,MAAA;AAAO,GAC/B,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUD;AAAA,IACE,WAAA,EAAa,eAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,oBAAoB,YAAA,EAAc,SAAA,EAAW,UAAU,mCAAA,EAAoC;AAAA,IAC3G,aAAA,EAAe,EAAE,YAAA,EAAc,MAAA,EAAQ,MAAM,MAAA;AAAO,GACtD;AAAA,EACA;AAAA,IACE,WAAA,EAAa,mBAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,oBAAoB,YAAA,EAAc,SAAA,EAAW,UAAU,uCAAA,EAAwC;AAAA,IAC/G,aAAA,EAAe,EAAE,YAAA,EAAc,UAAA,EAAY,MAAM,MAAA;AAAO,GAC1D;AAAA,EACA;AAAA,IACE,WAAA,EAAa,kBAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,oBAAoB,YAAA,EAAc,SAAA,EAAW,UAAU,sCAAA,EAAuC;AAAA,IAC9G,aAAA,EAAe,EAAE,YAAA,EAAc,SAAA,EAAW,MAAM,MAAA;AAAO,GACzD;AAAA,EACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAUE,WAAA,EAAa,kBAAA;AAAA,IACb,MAAA,EAAQ;AAAA,MACN,IAAA,EAAM,uBAAA;AAAA,MACN,YAAA,EAAc,SAAA;AAAA,MACd,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,aAAA,EAAe,EAAE,cAAA,EAAgB,SAAA,EAAW,MAAM,MAAA;AAAO,GAC3D;AAAA,EACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASE,WAAA,EAAa,oBAAA;AAAA,IACb,MAAA,EAAQ;AAAA,MACN,IAAA,EAAM,gBAAA;AAAA,MACN,YAAA,EAAc,UAAA;AAAA,MACd,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,aAAA,EAAe,EAAE,YAAA,EAAc,WAAA,EAAa,MAAM,MAAA;AAAO;AAE7D;AAEO,MAAM,cAAA,GAAiB;AAAA,EAC5B,mBAAA,EAAqB,4CAAA;AAAA,EACrB,qBAAA,EAAuB,uDAAA;AAAA,EACvB,iBAAA,EAAmB,gDAAA;AAAA,EACnB,YAAA,EAAc,2CAAA;AAAA,EACd,oBAAA,EAAsB,4CAAA;AAAA,EACtB,wBAAA,EAA0B,gDAAA;AAAA,EAC1B,uBAAA,EAAyB,+CAAA;AAAA,EACzB,cAAA,EAAgB,oDAAA;AAAA,EAChB,gBAAA,EAAkB;AACpB;;;;;"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
const openaiConfig = [
|
|
4
|
+
// OpenAI chat completions. `Completions.create` returns a thenable `APIPromise` with no callback arg,
|
|
5
|
+
// so `kind: 'Auto'` resolves to `wrapPromise`. openai ships dual CJS/ESM and the matcher compares
|
|
6
|
+
// `filePath` exactly, hence one entry per built file (`.js` for `require`, `.mjs` for `import`).
|
|
7
|
+
...["resources/chat/completions/completions.js", "resources/chat/completions/completions.mjs"].map((filePath) => ({
|
|
8
|
+
channelName: "chat",
|
|
9
|
+
module: { name: "openai", versionRange: ">=4.0.0 <7", filePath },
|
|
10
|
+
functionQuery: { className: "Completions", methodName: "create", kind: "Auto" }
|
|
11
|
+
})),
|
|
12
|
+
// OpenAI responses API — same `create(body, options)` shape as chat completions.
|
|
13
|
+
...["resources/responses/responses.js", "resources/responses/responses.mjs"].map((filePath) => ({
|
|
14
|
+
channelName: "chat",
|
|
15
|
+
module: { name: "openai", versionRange: ">=4.0.0 <7", filePath },
|
|
16
|
+
functionQuery: { className: "Responses", methodName: "create", kind: "Auto" }
|
|
17
|
+
})),
|
|
18
|
+
// OpenAI embeddings API — same `create(body, options)` shape as chat completions.
|
|
19
|
+
...["resources/embeddings.js", "resources/embeddings.mjs"].map((filePath) => ({
|
|
20
|
+
channelName: "embeddings",
|
|
21
|
+
module: { name: "openai", versionRange: ">=4.0.0 <7", filePath },
|
|
22
|
+
functionQuery: { className: "Embeddings", methodName: "create", kind: "Auto" }
|
|
23
|
+
})),
|
|
24
|
+
// OpenAI conversations API — same `create(body, options)` shape as chat completions.
|
|
25
|
+
...["resources/conversations/conversations.js", "resources/conversations/conversations.mjs"].map((filePath) => ({
|
|
26
|
+
channelName: "chat",
|
|
27
|
+
module: { name: "openai", versionRange: ">=4.0.0 <7", filePath },
|
|
28
|
+
functionQuery: { className: "Conversations", methodName: "create", kind: "Auto" }
|
|
29
|
+
}))
|
|
30
|
+
];
|
|
31
|
+
const openaiChannels = {
|
|
32
|
+
// Chat completions, the responses API, and the conversations API all report a `chat` operation with
|
|
33
|
+
// identical span handling, so they share one channel.
|
|
34
|
+
OPENAI_CHAT: "orchestrion:openai:chat",
|
|
35
|
+
OPENAI_EMBEDDINGS: "orchestrion:openai:embeddings"
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
exports.openaiChannels = openaiChannels;
|
|
39
|
+
exports.openaiConfig = openaiConfig;
|
|
40
|
+
//# sourceMappingURL=openai.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openai.js","sources":["../../../../src/orchestrion/config/openai.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\nexport const openaiConfig = [\n // OpenAI chat completions. `Completions.create` returns a thenable `APIPromise` with no callback arg,\n // so `kind: 'Auto'` resolves to `wrapPromise`. openai ships dual CJS/ESM and the matcher compares\n // `filePath` exactly, hence one entry per built file (`.js` for `require`, `.mjs` for `import`).\n ...['resources/chat/completions/completions.js', 'resources/chat/completions/completions.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: 'openai', versionRange: '>=4.0.0 <7', filePath },\n functionQuery: { className: 'Completions', methodName: 'create', kind: 'Auto' as const },\n })),\n // OpenAI responses API — same `create(body, options)` shape as chat completions.\n ...['resources/responses/responses.js', 'resources/responses/responses.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: 'openai', versionRange: '>=4.0.0 <7', filePath },\n functionQuery: { className: 'Responses', methodName: 'create', kind: 'Auto' as const },\n })),\n // OpenAI embeddings API — same `create(body, options)` shape as chat completions.\n ...['resources/embeddings.js', 'resources/embeddings.mjs'].map(filePath => ({\n channelName: 'embeddings',\n module: { name: 'openai', versionRange: '>=4.0.0 <7', filePath },\n functionQuery: { className: 'Embeddings', methodName: 'create', kind: 'Auto' as const },\n })),\n // OpenAI conversations API — same `create(body, options)` shape as chat completions.\n ...['resources/conversations/conversations.js', 'resources/conversations/conversations.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: 'openai', versionRange: '>=4.0.0 <7', filePath },\n functionQuery: { className: 'Conversations', methodName: 'create', kind: 'Auto' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const openaiChannels = {\n // Chat completions, the responses API, and the conversations API all report a `chat` operation with\n // identical span handling, so they share one channel.\n OPENAI_CHAT: 'orchestrion:openai:chat',\n OPENAI_EMBEDDINGS: 'orchestrion:openai:embeddings',\n} as const;\n"],"names":[],"mappings":";;AAEO,MAAM,YAAA,GAAe;AAAA;AAAA;AAAA;AAAA,EAI1B,GAAG,CAAC,2CAAA,EAA6C,4CAA4C,CAAA,CAAE,IAAI,CAAA,QAAA,MAAa;AAAA,IAC9G,WAAA,EAAa,MAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,QAAA,EAAU,YAAA,EAAc,cAAc,QAAA,EAAS;AAAA,IAC/D,eAAe,EAAE,SAAA,EAAW,eAAe,UAAA,EAAY,QAAA,EAAU,MAAM,MAAA;AAAgB,GACzF,CAAE,CAAA;AAAA;AAAA,EAEF,GAAG,CAAC,kCAAA,EAAoC,mCAAmC,CAAA,CAAE,IAAI,CAAA,QAAA,MAAa;AAAA,IAC5F,WAAA,EAAa,MAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,QAAA,EAAU,YAAA,EAAc,cAAc,QAAA,EAAS;AAAA,IAC/D,eAAe,EAAE,SAAA,EAAW,aAAa,UAAA,EAAY,QAAA,EAAU,MAAM,MAAA;AAAgB,GACvF,CAAE,CAAA;AAAA;AAAA,EAEF,GAAG,CAAC,yBAAA,EAA2B,0BAA0B,CAAA,CAAE,IAAI,CAAA,QAAA,MAAa;AAAA,IAC1E,WAAA,EAAa,YAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,QAAA,EAAU,YAAA,EAAc,cAAc,QAAA,EAAS;AAAA,IAC/D,eAAe,EAAE,SAAA,EAAW,cAAc,UAAA,EAAY,QAAA,EAAU,MAAM,MAAA;AAAgB,GACxF,CAAE,CAAA;AAAA;AAAA,EAEF,GAAG,CAAC,0CAAA,EAA4C,2CAA2C,CAAA,CAAE,IAAI,CAAA,QAAA,MAAa;AAAA,IAC5G,WAAA,EAAa,MAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,QAAA,EAAU,YAAA,EAAc,cAAc,QAAA,EAAS;AAAA,IAC/D,eAAe,EAAE,SAAA,EAAW,iBAAiB,UAAA,EAAY,QAAA,EAAU,MAAM,MAAA;AAAgB,GAC3F,CAAE;AACJ;AAEO,MAAM,cAAA,GAAiB;AAAA;AAAA;AAAA,EAG5B,WAAA,EAAa,yBAAA;AAAA,EACb,iBAAA,EAAmB;AACrB;;;;;"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
const pgConfig = [
|
|
4
|
+
// `pg` (node-postgres).
|
|
5
|
+
// instruments `Client.prototype.query`/`connect` (both the JS and native
|
|
6
|
+
// clients) plus `pg-pool`'s `Pool.prototype.connect`.
|
|
7
|
+
// `Auto` covers the callback, promise, and streamable-`Submittable`
|
|
8
|
+
// call shapes (like mysql).
|
|
9
|
+
// `pg/lib/client.js` is `class Client { query() {...} connect() {...} }`,
|
|
10
|
+
// so `className`+`methodName` matches directly.
|
|
11
|
+
{
|
|
12
|
+
channelName: "query",
|
|
13
|
+
module: { name: "pg", versionRange: ">=8.0.3 <9", filePath: "lib/client.js" },
|
|
14
|
+
functionQuery: { className: "Client", methodName: "query", kind: "Auto" }
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
channelName: "connect",
|
|
18
|
+
module: { name: "pg", versionRange: ">=8.0.3 <9", filePath: "lib/client.js" },
|
|
19
|
+
functionQuery: { className: "Client", methodName: "connect", kind: "Auto" }
|
|
20
|
+
},
|
|
21
|
+
// The native client (`pg/lib/native/client.js`) is a constructor function,
|
|
22
|
+
// not a class.
|
|
23
|
+
// `Client.prototype.query = function (config, values, callback) {...}`
|
|
24
|
+
// so it needs `expressionName` (the mysql shape), publishing to the SAME
|
|
25
|
+
// `orchestrion:pg:query`/`:connect` channels as the JS client.
|
|
26
|
+
{
|
|
27
|
+
channelName: "query",
|
|
28
|
+
module: { name: "pg", versionRange: ">=8.0.3 <9", filePath: "lib/native/client.js" },
|
|
29
|
+
functionQuery: { expressionName: "query", kind: "Auto" }
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
channelName: "connect",
|
|
33
|
+
module: { name: "pg", versionRange: ">=8.0.3 <9", filePath: "lib/native/client.js" },
|
|
34
|
+
functionQuery: { expressionName: "connect", kind: "Auto" }
|
|
35
|
+
},
|
|
36
|
+
// `pg-pool` is `class Pool extends EventEmitter { connect(cb) {...} }`.
|
|
37
|
+
{
|
|
38
|
+
channelName: "connect",
|
|
39
|
+
module: { name: "pg-pool", versionRange: ">=2.0.0 <4", filePath: "index.js" },
|
|
40
|
+
functionQuery: { className: "Pool", methodName: "connect", kind: "Auto" }
|
|
41
|
+
}
|
|
42
|
+
];
|
|
43
|
+
const pgChannels = {
|
|
44
|
+
PG_QUERY: "orchestrion:pg:query",
|
|
45
|
+
PG_CONNECT: "orchestrion:pg:connect",
|
|
46
|
+
PGPOOL_CONNECT: "orchestrion:pg-pool:connect"
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
exports.pgChannels = pgChannels;
|
|
50
|
+
exports.pgConfig = pgConfig;
|
|
51
|
+
//# sourceMappingURL=pg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pg.js","sources":["../../../../src/orchestrion/config/pg.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\nexport const pgConfig = [\n // `pg` (node-postgres).\n // instruments `Client.prototype.query`/`connect` (both the JS and native\n // clients) plus `pg-pool`'s `Pool.prototype.connect`.\n // `Auto` covers the callback, promise, and streamable-`Submittable`\n // call shapes (like mysql).\n // `pg/lib/client.js` is `class Client { query() {...} connect() {...} }`,\n // so `className`+`methodName` matches directly.\n {\n channelName: 'query',\n module: { name: 'pg', versionRange: '>=8.0.3 <9', filePath: 'lib/client.js' },\n functionQuery: { className: 'Client', methodName: 'query', kind: 'Auto' },\n },\n {\n channelName: 'connect',\n module: { name: 'pg', versionRange: '>=8.0.3 <9', filePath: 'lib/client.js' },\n functionQuery: { className: 'Client', methodName: 'connect', kind: 'Auto' },\n },\n // The native client (`pg/lib/native/client.js`) is a constructor function,\n // not a class.\n // `Client.prototype.query = function (config, values, callback) {...}`\n // so it needs `expressionName` (the mysql shape), publishing to the SAME\n // `orchestrion:pg:query`/`:connect` channels as the JS client.\n {\n channelName: 'query',\n module: { name: 'pg', versionRange: '>=8.0.3 <9', filePath: 'lib/native/client.js' },\n functionQuery: { expressionName: 'query', kind: 'Auto' },\n },\n {\n channelName: 'connect',\n module: { name: 'pg', versionRange: '>=8.0.3 <9', filePath: 'lib/native/client.js' },\n functionQuery: { expressionName: 'connect', kind: 'Auto' },\n },\n // `pg-pool` is `class Pool extends EventEmitter { connect(cb) {...} }`.\n {\n channelName: 'connect',\n module: { name: 'pg-pool', versionRange: '>=2.0.0 <4', filePath: 'index.js' },\n functionQuery: { className: 'Pool', methodName: 'connect', kind: 'Auto' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const pgChannels = {\n PG_QUERY: 'orchestrion:pg:query',\n PG_CONNECT: 'orchestrion:pg:connect',\n PGPOOL_CONNECT: 'orchestrion:pg-pool:connect',\n} as const;\n"],"names":[],"mappings":";;AAEO,MAAM,QAAA,GAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQtB;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,MAAM,YAAA,EAAc,YAAA,EAAc,UAAU,eAAA,EAAgB;AAAA,IAC5E,eAAe,EAAE,SAAA,EAAW,UAAU,UAAA,EAAY,OAAA,EAAS,MAAM,MAAA;AAAO,GAC1E;AAAA,EACA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,MAAM,YAAA,EAAc,YAAA,EAAc,UAAU,eAAA,EAAgB;AAAA,IAC5E,eAAe,EAAE,SAAA,EAAW,UAAU,UAAA,EAAY,SAAA,EAAW,MAAM,MAAA;AAAO,GAC5E;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA;AAAA,IACE,WAAA,EAAa,OAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,MAAM,YAAA,EAAc,YAAA,EAAc,UAAU,sBAAA,EAAuB;AAAA,IACnF,aAAA,EAAe,EAAE,cAAA,EAAgB,OAAA,EAAS,MAAM,MAAA;AAAO,GACzD;AAAA,EACA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,MAAM,YAAA,EAAc,YAAA,EAAc,UAAU,sBAAA,EAAuB;AAAA,IACnF,aAAA,EAAe,EAAE,cAAA,EAAgB,SAAA,EAAW,MAAM,MAAA;AAAO,GAC3D;AAAA;AAAA,EAEA;AAAA,IACE,WAAA,EAAa,SAAA;AAAA,IACb,QAAQ,EAAE,IAAA,EAAM,WAAW,YAAA,EAAc,YAAA,EAAc,UAAU,UAAA,EAAW;AAAA,IAC5E,eAAe,EAAE,SAAA,EAAW,QAAQ,UAAA,EAAY,SAAA,EAAW,MAAM,MAAA;AAAO;AAE5E;AAEO,MAAM,UAAA,GAAa;AAAA,EACxB,QAAA,EAAU,sBAAA;AAAA,EACV,UAAA,EAAY,wBAAA;AAAA,EACZ,cAAA,EAAgB;AAClB;;;;;"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
const postgresJsInstrumentationConfig = (dir) => [
|
|
4
|
+
// `Query.prototype.handle` (`class Query extends Promise`) is the single
|
|
5
|
+
// funnel every query passes through (`then`/`catch`/`finally`/`.execute()`/
|
|
6
|
+
// `.forEach()`/cursor all call it), guarded by `this.executed`. `Async`
|
|
7
|
+
// because `handle` is `async`.
|
|
8
|
+
{
|
|
9
|
+
channelName: "handle",
|
|
10
|
+
module: { name: "postgres", versionRange: ">=3.0.0 <4", filePath: `${dir}/query.js` },
|
|
11
|
+
functionQuery: { className: "Query", methodName: "handle", kind: "Async" }
|
|
12
|
+
},
|
|
13
|
+
// `function Connection(options, ...)` (default export of `connection.js`)
|
|
14
|
+
// returns the connection object; used to build the endpoint registry that
|
|
15
|
+
// resolves `server.address`/`server.port`/`db.namespace`.
|
|
16
|
+
{
|
|
17
|
+
channelName: "connection",
|
|
18
|
+
module: { name: "postgres", versionRange: ">=3.0.0 <4", filePath: `${dir}/connection.js` },
|
|
19
|
+
functionQuery: { functionName: "Connection", kind: "Sync" }
|
|
20
|
+
},
|
|
21
|
+
// The nested `function execute(q)` inside `Connection`; the per-connection
|
|
22
|
+
// hook that attaches connection attributes to the query's span.
|
|
23
|
+
{
|
|
24
|
+
channelName: "execute",
|
|
25
|
+
module: { name: "postgres", versionRange: ">=3.0.0 <4", filePath: `${dir}/connection.js` },
|
|
26
|
+
functionQuery: { functionName: "execute", kind: "Sync" }
|
|
27
|
+
},
|
|
28
|
+
// The connection object's `connect(query)` method. Matched by `methodName`
|
|
29
|
+
// (an object-literal method): `functionName` would hit the unrelated
|
|
30
|
+
// socket-level `async function connect()` in the same file. `self` is the
|
|
31
|
+
// connection object and `arguments[0]` the query, so the first query that
|
|
32
|
+
// opens a connection (dispatched via a bare `execute` with no `self`) still
|
|
33
|
+
// gets connection attributes in multi-endpoint apps.
|
|
34
|
+
{
|
|
35
|
+
channelName: "connect",
|
|
36
|
+
module: { name: "postgres", versionRange: ">=3.0.0 <4", filePath: `${dir}/connection.js` },
|
|
37
|
+
functionQuery: { methodName: "connect", kind: "Sync" }
|
|
38
|
+
}
|
|
39
|
+
];
|
|
40
|
+
const postgresJsConfig = ["src", "cjs/src"].flatMap(postgresJsInstrumentationConfig);
|
|
41
|
+
const postgresJsChannels = {
|
|
42
|
+
POSTGRESJS_HANDLE: "orchestrion:postgres:handle",
|
|
43
|
+
POSTGRESJS_CONNECTION: "orchestrion:postgres:connection",
|
|
44
|
+
POSTGRESJS_EXECUTE: "orchestrion:postgres:execute",
|
|
45
|
+
POSTGRESJS_CONNECT: "orchestrion:postgres:connect"
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
exports.postgresJsChannels = postgresJsChannels;
|
|
49
|
+
exports.postgresJsConfig = postgresJsConfig;
|
|
50
|
+
//# sourceMappingURL=postgres.js.map
|