@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,48 @@
|
|
|
1
|
+
const chatModelConfig = ["dist/language_models/chat_models.cjs", "dist/language_models/chat_models.js"].flatMap(
|
|
2
|
+
(filePath) => {
|
|
3
|
+
const module = { name: "@langchain/core", versionRange: ">=0.1.0 <2.0.0", filePath };
|
|
4
|
+
return [
|
|
5
|
+
{
|
|
6
|
+
channelName: "chatModelInvoke",
|
|
7
|
+
module,
|
|
8
|
+
functionQuery: { className: "BaseChatModel", methodName: "invoke", kind: "Async" }
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
channelName: "chatModelStream",
|
|
12
|
+
module,
|
|
13
|
+
functionQuery: { className: "BaseChatModel", methodName: "_streamIterator", kind: "Async" }
|
|
14
|
+
}
|
|
15
|
+
];
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
const EMBED_QUERY = "embedQuery";
|
|
19
|
+
const EMBED_DOCUMENTS = "embedDocuments";
|
|
20
|
+
const EMBEDDINGS_PROVIDERS = [
|
|
21
|
+
{ name: "@langchain/openai", versionRange: ">=0.1.0 <2.0.0", methods: [EMBED_QUERY, EMBED_DOCUMENTS] },
|
|
22
|
+
{ name: "@langchain/google-genai", versionRange: ">=0.1.0 <3.0.0", methods: [EMBED_QUERY, EMBED_DOCUMENTS] },
|
|
23
|
+
{ name: "@langchain/mistralai", versionRange: ">=0.1.0 <2.0.0", methods: [EMBED_QUERY, EMBED_DOCUMENTS] },
|
|
24
|
+
// `@langchain/google-vertexai` inherits its embed methods from this shared base. The base's
|
|
25
|
+
// `embedQuery` delegates to `embedDocuments`, so hooking only `embedDocuments` still traces both
|
|
26
|
+
// entry points as a single span each, instead of emitting a nested duplicate for `embedQuery`.
|
|
27
|
+
{ name: "@langchain/google-common", versionRange: ">=0.1.0 <3.0.0", methods: [EMBED_DOCUMENTS] }
|
|
28
|
+
];
|
|
29
|
+
const embeddingsConfig = EMBEDDINGS_PROVIDERS.flatMap(
|
|
30
|
+
({ name, versionRange, methods }) => ["dist/embeddings.cjs", "dist/embeddings.js"].flatMap(
|
|
31
|
+
(filePath) => methods.map((method) => ({
|
|
32
|
+
channelName: method,
|
|
33
|
+
module: { name, versionRange, filePath },
|
|
34
|
+
functionQuery: { methodName: method, kind: "Async" }
|
|
35
|
+
}))
|
|
36
|
+
)
|
|
37
|
+
);
|
|
38
|
+
const langchainConfig = [...chatModelConfig, ...embeddingsConfig];
|
|
39
|
+
const langchainEmbeddingsChannels = EMBEDDINGS_PROVIDERS.flatMap(
|
|
40
|
+
({ name, methods }) => methods.map((method) => `orchestrion:${name}:${method}`)
|
|
41
|
+
);
|
|
42
|
+
const langchainChannels = {
|
|
43
|
+
LANGCHAIN_CHAT_MODEL_INVOKE: "orchestrion:@langchain/core:chatModelInvoke",
|
|
44
|
+
LANGCHAIN_CHAT_MODEL_STREAM: "orchestrion:@langchain/core:chatModelStream"
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export { langchainChannels, langchainConfig, langchainEmbeddingsChannels };
|
|
48
|
+
//# sourceMappingURL=langchain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"langchain.js","sources":["../../../../src/orchestrion/config/langchain.ts"],"sourcesContent":["import type { InstrumentationConfig } from '..';\n\n// `@langchain/*` packages ship 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.\n\n// LangChain's chat model methods live on `BaseChatModel` in `@langchain/core` and are inherited by\n// every provider class (`ChatAnthropic`, `ChatOpenAI`, …), so a single hook there covers all\n// providers. `invoke` also backs `.batch()` (which calls `invoke` per item); `_streamIterator`\n// backs `.stream()`. The vendored OTel instrumentation instead patched each provider package to\n// dodge `@langchain/core` being bundled, but orchestrion transforms its source directly regardless\n// of bundling.\nconst chatModelConfig = ['dist/language_models/chat_models.cjs', 'dist/language_models/chat_models.js'].flatMap(\n filePath => {\n const module = { name: '@langchain/core', versionRange: '>=0.1.0 <2.0.0', filePath };\n\n return [\n {\n channelName: 'chatModelInvoke',\n module,\n functionQuery: { className: 'BaseChatModel', methodName: 'invoke', kind: 'Async' as const },\n },\n {\n channelName: 'chatModelStream',\n module,\n functionQuery: { className: 'BaseChatModel', methodName: '_streamIterator', kind: 'Async' as const },\n },\n ];\n },\n);\n\n// Embeddings have no shared concrete method on the base class (each provider implements\n// `embedQuery`/`embedDocuments`), so they're hooked per package. These are the provider packages the\n// vendored OTel instrumentation covered that actually ship an `Embeddings` subclass: `@langchain/openai`,\n// `@langchain/google-genai` and `@langchain/mistralai` define the two methods on their own class, while\n// `@langchain/google-vertexai` inherits them from the shared `@langchain/google-common` base, so that base\n// is the module hooked for it. (anthropic and groq are chat-only — they ship no embeddings class.) The\n// `embedQuery`/`embedDocuments` channel names are per-method; orchestrion prefixes them with the module\n// name, so the full channel strings stay distinct across packages.\nconst EMBED_QUERY = 'embedQuery';\nconst EMBED_DOCUMENTS = 'embedDocuments';\n\nconst EMBEDDINGS_PROVIDERS = [\n { name: '@langchain/openai', versionRange: '>=0.1.0 <2.0.0', methods: [EMBED_QUERY, EMBED_DOCUMENTS] },\n { name: '@langchain/google-genai', versionRange: '>=0.1.0 <3.0.0', methods: [EMBED_QUERY, EMBED_DOCUMENTS] },\n { name: '@langchain/mistralai', versionRange: '>=0.1.0 <2.0.0', methods: [EMBED_QUERY, EMBED_DOCUMENTS] },\n // `@langchain/google-vertexai` inherits its embed methods from this shared base. The base's\n // `embedQuery` delegates to `embedDocuments`, so hooking only `embedDocuments` still traces both\n // entry points as a single span each, instead of emitting a nested duplicate for `embedQuery`.\n { name: '@langchain/google-common', versionRange: '>=0.1.0 <3.0.0', methods: [EMBED_DOCUMENTS] },\n];\n\nconst embeddingsConfig = EMBEDDINGS_PROVIDERS.flatMap(({ name, versionRange, methods }) =>\n ['dist/embeddings.cjs', 'dist/embeddings.js'].flatMap(filePath =>\n methods.map(method => ({\n channelName: method,\n module: { name, versionRange, filePath },\n functionQuery: { methodName: method, kind: 'Async' as const },\n })),\n ),\n);\n\nexport const langchainConfig = [...chatModelConfig, ...embeddingsConfig] satisfies InstrumentationConfig[];\n\n// The embeddings channel strings the subscriber binds to, derived from the provider list above so that\n// adding a provider is a single edit that both instruments it and subscribes the listener to it.\nexport const langchainEmbeddingsChannels = EMBEDDINGS_PROVIDERS.flatMap(({ name, methods }) =>\n methods.map(method => `orchestrion:${name}:${method}`),\n);\n\nexport const langchainChannels = {\n LANGCHAIN_CHAT_MODEL_INVOKE: 'orchestrion:@langchain/core:chatModelInvoke',\n LANGCHAIN_CHAT_MODEL_STREAM: 'orchestrion:@langchain/core:chatModelStream',\n} as const;\n"],"names":[],"mappings":"AAWA,MAAM,eAAA,GAAkB,CAAC,sCAAA,EAAwC,qCAAqC,CAAA,CAAE,OAAA;AAAA,EACtG,CAAA,QAAA,KAAY;AACV,IAAA,MAAM,SAAS,EAAE,IAAA,EAAM,iBAAA,EAAmB,YAAA,EAAc,kBAAkB,QAAA,EAAS;AAEnF,IAAA,OAAO;AAAA,MACL;AAAA,QACE,WAAA,EAAa,iBAAA;AAAA,QACb,MAAA;AAAA,QACA,eAAe,EAAE,SAAA,EAAW,iBAAiB,UAAA,EAAY,QAAA,EAAU,MAAM,OAAA;AAAiB,OAC5F;AAAA,MACA;AAAA,QACE,WAAA,EAAa,iBAAA;AAAA,QACb,MAAA;AAAA,QACA,eAAe,EAAE,SAAA,EAAW,iBAAiB,UAAA,EAAY,iBAAA,EAAmB,MAAM,OAAA;AAAiB;AACrG,KACF;AAAA,EACF;AACF,CAAA;AAUA,MAAM,WAAA,GAAc,YAAA;AACpB,MAAM,eAAA,GAAkB,gBAAA;AAExB,MAAM,oBAAA,GAAuB;AAAA,EAC3B,EAAE,MAAM,mBAAA,EAAqB,YAAA,EAAc,kBAAkB,OAAA,EAAS,CAAC,WAAA,EAAa,eAAe,CAAA,EAAE;AAAA,EACrG,EAAE,MAAM,yBAAA,EAA2B,YAAA,EAAc,kBAAkB,OAAA,EAAS,CAAC,WAAA,EAAa,eAAe,CAAA,EAAE;AAAA,EAC3G,EAAE,MAAM,sBAAA,EAAwB,YAAA,EAAc,kBAAkB,OAAA,EAAS,CAAC,WAAA,EAAa,eAAe,CAAA,EAAE;AAAA;AAAA;AAAA;AAAA,EAIxG,EAAE,MAAM,0BAAA,EAA4B,YAAA,EAAc,kBAAkB,OAAA,EAAS,CAAC,eAAe,CAAA;AAC/F,CAAA;AAEA,MAAM,mBAAmB,oBAAA,CAAqB,OAAA;AAAA,EAAQ,CAAC,EAAE,IAAA,EAAM,YAAA,EAAc,SAAQ,KACnF,CAAC,qBAAA,EAAuB,oBAAoB,CAAA,CAAE,OAAA;AAAA,IAAQ,CAAA,QAAA,KACpD,OAAA,CAAQ,GAAA,CAAI,CAAA,MAAA,MAAW;AAAA,MACrB,WAAA,EAAa,MAAA;AAAA,MACb,MAAA,EAAQ,EAAE,IAAA,EAAM,YAAA,EAAc,QAAA,EAAS;AAAA,MACvC,aAAA,EAAe,EAAE,UAAA,EAAY,MAAA,EAAQ,MAAM,OAAA;AAAiB,KAC9D,CAAE;AAAA;AAEN,CAAA;AAEO,MAAM,eAAA,GAAkB,CAAC,GAAG,eAAA,EAAiB,GAAG,gBAAgB;AAIhE,MAAM,8BAA8B,oBAAA,CAAqB,OAAA;AAAA,EAAQ,CAAC,EAAE,IAAA,EAAM,OAAA,EAAQ,KACvF,OAAA,CAAQ,GAAA,CAAI,CAAA,MAAA,KAAU,CAAA,YAAA,EAAe,IAAI,CAAA,CAAA,EAAI,MAAM,CAAA,CAAE;AACvD;AAEO,MAAM,iBAAA,GAAoB;AAAA,EAC/B,2BAAA,EAA6B,6CAAA;AAAA,EAC7B,2BAAA,EAA6B;AAC/B;;;;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const module$1 = (filePath) => ({
|
|
2
|
+
name: "@langchain/langgraph",
|
|
3
|
+
versionRange: ">=0.0.0 <2.0.0",
|
|
4
|
+
filePath
|
|
5
|
+
});
|
|
6
|
+
const compileConfig = ["dist/graph/state.cjs", "dist/graph/state.js"].map((filePath) => ({
|
|
7
|
+
channelName: "stateGraphCompile",
|
|
8
|
+
module: module$1(filePath),
|
|
9
|
+
functionQuery: { className: "StateGraph", methodName: "compile", kind: "Sync" }
|
|
10
|
+
}));
|
|
11
|
+
const createReactAgentConfig = ["dist/prebuilt/react_agent_executor.cjs", "dist/prebuilt/react_agent_executor.js"].map(
|
|
12
|
+
(filePath) => ({
|
|
13
|
+
channelName: "createReactAgent",
|
|
14
|
+
module: module$1(filePath),
|
|
15
|
+
functionQuery: { functionName: "createReactAgent", kind: "Sync" }
|
|
16
|
+
})
|
|
17
|
+
);
|
|
18
|
+
const langgraphConfig = [...compileConfig, ...createReactAgentConfig];
|
|
19
|
+
const langgraphChannels = {
|
|
20
|
+
LANGGRAPH_STATE_GRAPH_COMPILE: "orchestrion:@langchain/langgraph:stateGraphCompile",
|
|
21
|
+
LANGGRAPH_CREATE_REACT_AGENT: "orchestrion:@langchain/langgraph:createReactAgent"
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { langgraphChannels, langgraphConfig };
|
|
25
|
+
//# sourceMappingURL=langgraph.js.map
|
|
@@ -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,14 @@
|
|
|
1
|
+
const lruMemoizerConfig = [
|
|
2
|
+
{
|
|
3
|
+
channelName: "load",
|
|
4
|
+
// `>=2.1.0` only: the named `function memoizedFunction()` the selector targets exists from 2.1.0
|
|
5
|
+
module: { name: "lru-memoizer", versionRange: ">=2.1.0 <4", filePath: "lib/async.js" },
|
|
6
|
+
functionQuery: { functionName: "memoizedFunction", kind: "Callback" }
|
|
7
|
+
}
|
|
8
|
+
];
|
|
9
|
+
const lruMemoizerChannels = {
|
|
10
|
+
LRU_MEMOIZER_LOAD: "orchestrion:lru-memoizer:load"
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { lruMemoizerChannels, lruMemoizerConfig };
|
|
14
|
+
//# 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,64 @@
|
|
|
1
|
+
const module$1 = { name: "mongodb" };
|
|
2
|
+
const mongodbConfig = [
|
|
3
|
+
// Band 1: mongodb >= 6.4 — promise-based command.
|
|
4
|
+
// `methodName`-only (no `className`): the code-transformer's `className` matcher throws on classes
|
|
5
|
+
// containing ES2022 `static {}` blocks (mongodb 7.x's `Connection`/`ConnectionPool` have them — see
|
|
6
|
+
// `transformer-bug.md`), and `methodName` alone matches exactly the base method across all versions.
|
|
7
|
+
{
|
|
8
|
+
channelName: "command",
|
|
9
|
+
module: { ...module$1, versionRange: ">=6.4.0 <8", filePath: "lib/cmap/connection.js" },
|
|
10
|
+
functionQuery: { methodName: "command", kind: "Async" }
|
|
11
|
+
},
|
|
12
|
+
// Band 2: mongodb >= 4.0 < 6.4 — callback-based command (same `command` channel, different kind).
|
|
13
|
+
{
|
|
14
|
+
channelName: "command",
|
|
15
|
+
module: { ...module$1, versionRange: ">=4.0.0 <6.4", filePath: "lib/cmap/connection.js" },
|
|
16
|
+
functionQuery: { methodName: "command", kind: "Callback" }
|
|
17
|
+
},
|
|
18
|
+
// Band 2: the pool runs the checkout callback in a detached async context, so the operation's
|
|
19
|
+
// `command()` (invoked inside it) loses the caller's active span. Hooking `checkOut` re-propagates
|
|
20
|
+
// that context to the callback (the subscriber creates no span — see `getSpan` returning undefined).
|
|
21
|
+
// Only needed < 6.4; from 6.4 `checkOut` is promise-based and the context survives natively.
|
|
22
|
+
{
|
|
23
|
+
channelName: "checkout",
|
|
24
|
+
module: { ...module$1, versionRange: ">=4.0.0 <6.4", filePath: "lib/cmap/connection_pool.js" },
|
|
25
|
+
functionQuery: { methodName: "checkOut", kind: "Callback" }
|
|
26
|
+
},
|
|
27
|
+
// Band 3: mongodb >= 3.3 < 4 — the driver had no unified `command`; each operation is a separate
|
|
28
|
+
// `lib/core/wireprotocol` function, all callback-style. `insert`/`update`/`remove` are named
|
|
29
|
+
// function expressions in the `index.js` `module.exports` object (matched by `expressionName`);
|
|
30
|
+
// `command`/`query`/`getMore` are single-function modules (matched by `functionName`).
|
|
31
|
+
...["insert", "update", "remove"].map((op) => ({
|
|
32
|
+
channelName: `v3_${op}`,
|
|
33
|
+
module: { ...module$1, versionRange: ">=3.3.0 <4", filePath: "lib/core/wireprotocol/index.js" },
|
|
34
|
+
functionQuery: { expressionName: op, kind: "Callback" }
|
|
35
|
+
})),
|
|
36
|
+
{
|
|
37
|
+
channelName: "v3_command",
|
|
38
|
+
module: { ...module$1, versionRange: ">=3.3.0 <4", filePath: "lib/core/wireprotocol/command.js" },
|
|
39
|
+
functionQuery: { functionName: "command", kind: "Callback" }
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
channelName: "v3_query",
|
|
43
|
+
module: { ...module$1, versionRange: ">=3.3.0 <4", filePath: "lib/core/wireprotocol/query.js" },
|
|
44
|
+
functionQuery: { functionName: "query", kind: "Callback" }
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
channelName: "v3_get_more",
|
|
48
|
+
module: { ...module$1, versionRange: ">=3.3.0 <4", filePath: "lib/core/wireprotocol/get_more.js" },
|
|
49
|
+
functionQuery: { functionName: "getMore", kind: "Callback" }
|
|
50
|
+
}
|
|
51
|
+
];
|
|
52
|
+
const mongodbChannels = {
|
|
53
|
+
MONGODB_COMMAND: "orchestrion:mongodb:command",
|
|
54
|
+
MONGODB_CHECKOUT: "orchestrion:mongodb:checkout",
|
|
55
|
+
MONGODB_V3_INSERT: "orchestrion:mongodb:v3_insert",
|
|
56
|
+
MONGODB_V3_UPDATE: "orchestrion:mongodb:v3_update",
|
|
57
|
+
MONGODB_V3_REMOVE: "orchestrion:mongodb:v3_remove",
|
|
58
|
+
MONGODB_V3_COMMAND: "orchestrion:mongodb:v3_command",
|
|
59
|
+
MONGODB_V3_QUERY: "orchestrion:mongodb:v3_query",
|
|
60
|
+
MONGODB_V3_GET_MORE: "orchestrion:mongodb:v3_get_more"
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export { mongodbChannels, mongodbConfig };
|
|
64
|
+
//# 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,103 @@
|
|
|
1
|
+
const module$1 = { name: "mongoose", versionRange: ">=5.9.7 <9.7.0" };
|
|
2
|
+
const CONTEXT_CAPTURE_QUERY_METHODS = [
|
|
3
|
+
"find",
|
|
4
|
+
"findOne",
|
|
5
|
+
"deleteOne",
|
|
6
|
+
"deleteMany",
|
|
7
|
+
"estimatedDocumentCount",
|
|
8
|
+
"countDocuments",
|
|
9
|
+
"distinct",
|
|
10
|
+
"where",
|
|
11
|
+
"$where",
|
|
12
|
+
"findOneAndUpdate",
|
|
13
|
+
"findOneAndDelete",
|
|
14
|
+
"findOneAndReplace",
|
|
15
|
+
// 5/6/7 only (removed in 8), inert in recent versions
|
|
16
|
+
"remove",
|
|
17
|
+
"count",
|
|
18
|
+
"findOneAndRemove"
|
|
19
|
+
];
|
|
20
|
+
const mongooseConfig = [
|
|
21
|
+
// Query execution
|
|
22
|
+
// the span for most read/write operations. `op`, collection and model are
|
|
23
|
+
// read off the `Query` at exec time.
|
|
24
|
+
{
|
|
25
|
+
channelName: "query_exec",
|
|
26
|
+
module: { ...module$1, filePath: "lib/query.js" },
|
|
27
|
+
functionQuery: { expressionName: "exec", kind: "Auto" }
|
|
28
|
+
},
|
|
29
|
+
// Aggregation pipeline execution.
|
|
30
|
+
{
|
|
31
|
+
channelName: "aggregate_exec",
|
|
32
|
+
module: { ...module$1, filePath: "lib/aggregate.js" },
|
|
33
|
+
functionQuery: { expressionName: "exec", kind: "Auto" }
|
|
34
|
+
},
|
|
35
|
+
// `doc.save()` (and its `$save` alias, which mongoose points at `save` on
|
|
36
|
+
// require. the alias picks up the transformed body automatically, so no
|
|
37
|
+
// separate entry is needed).
|
|
38
|
+
{
|
|
39
|
+
channelName: "model_save",
|
|
40
|
+
module: { ...module$1, filePath: "lib/model.js" },
|
|
41
|
+
functionQuery: { expressionName: "save", kind: "Auto" }
|
|
42
|
+
},
|
|
43
|
+
// Static batch operations.
|
|
44
|
+
{
|
|
45
|
+
channelName: "model_insert_many",
|
|
46
|
+
module: { ...module$1, filePath: "lib/model.js" },
|
|
47
|
+
functionQuery: { expressionName: "insertMany", kind: "Auto" }
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
channelName: "model_bulk_write",
|
|
51
|
+
module: { ...module$1, filePath: "lib/model.js" },
|
|
52
|
+
functionQuery: { expressionName: "bulkWrite", kind: "Auto" }
|
|
53
|
+
},
|
|
54
|
+
// `doc.remove()` (a document method, deprecated in 6 and removed in 7)
|
|
55
|
+
// `expressionName: 'remove'` also matches the sibling `Model.remove`
|
|
56
|
+
// *static* in this file, which no matcher can tell apart from the prototype
|
|
57
|
+
// method; that static is deprecated and would just produce a redundant span
|
|
58
|
+
// so the collision is accepted rather than dropping the doc-method span.
|
|
59
|
+
{
|
|
60
|
+
channelName: "model_remove",
|
|
61
|
+
module: { ...module$1, filePath: "lib/model.js" },
|
|
62
|
+
functionQuery: { expressionName: "remove", kind: "Auto" }
|
|
63
|
+
},
|
|
64
|
+
// NOTE: document `updateOne`/`deleteOne` (mongoose 8.21+) are deliberately
|
|
65
|
+
// NOT hooked here. The vendored OTel/IITM patcher wraps
|
|
66
|
+
// `Model.prototype.updateOne`/`deleteOne`, but those delegate to
|
|
67
|
+
// `Query.exec`, which the `query_exec` channel above already instruments
|
|
68
|
+
// (its `this.op` is the right operation). Verified by the `mongoose-v8`
|
|
69
|
+
// suite against a real mongoose 8.21+ under orchestrion. A dedicated hook
|
|
70
|
+
// is also not possible cleanly: `expressionName: 'updateOne'` in
|
|
71
|
+
// `lib/model.js` can't be told apart from the same-named `Model.updateOne`
|
|
72
|
+
// *static* (the common query-builder form), so hooking it would double-span
|
|
73
|
+
// every `Model.updateOne(...)` call.
|
|
74
|
+
//
|
|
75
|
+
// `Model.aggregate()` builds an `Aggregate` with no method to hook for
|
|
76
|
+
// context capture, so hook the static itself and stash the active span
|
|
77
|
+
// on the returned aggregate. `Sync`: it returns the aggregate.
|
|
78
|
+
{
|
|
79
|
+
channelName: "model_aggregate",
|
|
80
|
+
module: { ...module$1, filePath: "lib/model.js" },
|
|
81
|
+
functionQuery: { expressionName: "aggregate", kind: "Sync" }
|
|
82
|
+
},
|
|
83
|
+
...CONTEXT_CAPTURE_QUERY_METHODS.map((methodName) => ({
|
|
84
|
+
channelName: `ctx_${methodName}`,
|
|
85
|
+
module: { ...module$1, filePath: "lib/query.js" },
|
|
86
|
+
functionQuery: { expressionName: methodName, kind: "Sync" }
|
|
87
|
+
}))
|
|
88
|
+
];
|
|
89
|
+
const mongooseChannels = {
|
|
90
|
+
MONGOOSE_QUERY_EXEC: "orchestrion:mongoose:query_exec",
|
|
91
|
+
MONGOOSE_AGGREGATE_EXEC: "orchestrion:mongoose:aggregate_exec",
|
|
92
|
+
MONGOOSE_MODEL_SAVE: "orchestrion:mongoose:model_save",
|
|
93
|
+
MONGOOSE_MODEL_INSERT_MANY: "orchestrion:mongoose:model_insert_many",
|
|
94
|
+
MONGOOSE_MODEL_BULK_WRITE: "orchestrion:mongoose:model_bulk_write",
|
|
95
|
+
MONGOOSE_MODEL_REMOVE: "orchestrion:mongoose:model_remove",
|
|
96
|
+
MONGOOSE_MODEL_AGGREGATE: "orchestrion:mongoose:model_aggregate"
|
|
97
|
+
};
|
|
98
|
+
const MONGOOSE_CONTEXT_CAPTURE_CHANNELS = CONTEXT_CAPTURE_QUERY_METHODS.map(
|
|
99
|
+
(methodName) => `orchestrion:mongoose:ctx_${methodName}`
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
export { MONGOOSE_CONTEXT_CAPTURE_CHANNELS, mongooseChannels, mongooseConfig };
|
|
103
|
+
//# 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,13 @@
|
|
|
1
|
+
const mysqlConfig = [
|
|
2
|
+
{
|
|
3
|
+
channelName: "query",
|
|
4
|
+
module: { name: "mysql", versionRange: ">=2.0.0 <3", filePath: "lib/Connection.js" },
|
|
5
|
+
functionQuery: { expressionName: "query", kind: "Auto" }
|
|
6
|
+
}
|
|
7
|
+
];
|
|
8
|
+
const mysqlChannels = {
|
|
9
|
+
MYSQL_QUERY: "orchestrion:mysql:query"
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { mysqlChannels, mysqlConfig };
|
|
13
|
+
//# 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,29 @@
|
|
|
1
|
+
const mysql2Config = [
|
|
2
|
+
{
|
|
3
|
+
channelName: "query",
|
|
4
|
+
module: { name: "mysql2", versionRange: ">=1.4.2 <3.11.5", filePath: "lib/connection.js" },
|
|
5
|
+
functionQuery: { className: "Connection", methodName: "query", kind: "Callback" }
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
channelName: "execute",
|
|
9
|
+
module: { name: "mysql2", versionRange: ">=1.4.2 <3.11.5", filePath: "lib/connection.js" },
|
|
10
|
+
functionQuery: { className: "Connection", methodName: "execute", kind: "Callback" }
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
channelName: "query",
|
|
14
|
+
module: { name: "mysql2", versionRange: ">=3.11.5 <3.20.0", filePath: "lib/base/connection.js" },
|
|
15
|
+
functionQuery: { className: "BaseConnection", methodName: "query", kind: "Callback" }
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
channelName: "execute",
|
|
19
|
+
module: { name: "mysql2", versionRange: ">=3.11.5 <3.20.0", filePath: "lib/base/connection.js" },
|
|
20
|
+
functionQuery: { className: "BaseConnection", methodName: "execute", kind: "Callback" }
|
|
21
|
+
}
|
|
22
|
+
];
|
|
23
|
+
const mysql2Channels = {
|
|
24
|
+
MYSQL2_QUERY: "orchestrion:mysql2:query",
|
|
25
|
+
MYSQL2_EXECUTE: "orchestrion:mysql2:execute"
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export { mysql2Channels, mysql2Config };
|
|
29
|
+
//# 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,119 @@
|
|
|
1
|
+
function astQueryInstrumentation(config) {
|
|
2
|
+
return config;
|
|
3
|
+
}
|
|
4
|
+
const nestjsConfig = [
|
|
5
|
+
{
|
|
6
|
+
channelName: "nestFactoryCreate",
|
|
7
|
+
module: { name: "@nestjs/core", versionRange: ">=8.0.0 <12", filePath: "nest-factory.js" },
|
|
8
|
+
functionQuery: { className: "NestFactoryStatic", methodName: "create", kind: "Async" }
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
channelName: "routerExecutionContextCreate",
|
|
12
|
+
module: { name: "@nestjs/core", versionRange: ">=8.0.0 <12", filePath: "router/router-execution-context.js" },
|
|
13
|
+
functionQuery: { className: "RouterExecutionContext", methodName: "create", kind: "Sync" }
|
|
14
|
+
},
|
|
15
|
+
astQueryInstrumentation({
|
|
16
|
+
// `@nestjs/common/decorators/core/injectable.decorator.js`:
|
|
17
|
+
// `function Injectable(options) { return (target) => { ... }; }`
|
|
18
|
+
// The inner decorator arrow is anonymous + returned, so only a raw
|
|
19
|
+
// `astQuery` can target it. The subscriber's `start` receives the
|
|
20
|
+
// decorated class as `arguments[0]` and patches its prototype
|
|
21
|
+
// use/canActivate/transform/intercept methods, reproducing the
|
|
22
|
+
// vendored `SentryNestInstrumentation` middleware/guard/pipe/interceptor
|
|
23
|
+
// spans. No span on the decorator itself, so `kind: 'Sync'`.
|
|
24
|
+
channelName: "injectableDecorator",
|
|
25
|
+
module: {
|
|
26
|
+
name: "@nestjs/common",
|
|
27
|
+
versionRange: ">=8.0.0 <12",
|
|
28
|
+
filePath: "decorators/core/injectable.decorator.js"
|
|
29
|
+
},
|
|
30
|
+
astQuery: 'FunctionDeclaration[id.name="Injectable"] ReturnStatement > ArrowFunctionExpression',
|
|
31
|
+
functionQuery: { kind: "Sync" }
|
|
32
|
+
}),
|
|
33
|
+
astQueryInstrumentation({
|
|
34
|
+
// `@nestjs/common/decorators/core/catch.decorator.js`:
|
|
35
|
+
// `function Catch(...exceptions) { return (target) => { ... }; }`
|
|
36
|
+
// Same anonymous-returned-arrow shape as `Injectable`. The subscriber's
|
|
37
|
+
// `start` patches the exception filter's prototype `catch` method to
|
|
38
|
+
// open an `exception_filter` span.
|
|
39
|
+
//
|
|
40
|
+
// Mirrors the vendored `SentryNestInstrumentation` `@Catch` wrap.
|
|
41
|
+
channelName: "catchDecorator",
|
|
42
|
+
module: { name: "@nestjs/common", versionRange: ">=8.0.0 <12", filePath: "decorators/core/catch.decorator.js" },
|
|
43
|
+
astQuery: 'FunctionDeclaration[id.name="Catch"] ReturnStatement > ArrowFunctionExpression',
|
|
44
|
+
functionQuery: { kind: "Sync" }
|
|
45
|
+
}),
|
|
46
|
+
// @nestjs/schedule @Cron/@Interval/@Timeout:
|
|
47
|
+
// `function Cron(...) { return applyDecorators(...); }`
|
|
48
|
+
// The returned decorator has no inline arrow to target, so we match the
|
|
49
|
+
// factory function and reassign `data.result` in `end` to wrap the
|
|
50
|
+
// decorator it returns (which rewrites the user handler `descriptor.value`
|
|
51
|
+
// with isolation-scope + error capture).
|
|
52
|
+
// Mirrors `SentryNestScheduleInstrumentation`, whose supported range we
|
|
53
|
+
// match so opting in doesn't drop coverage the OTel path had. The compiled
|
|
54
|
+
// `function Cron(...)` declaration is unchanged across 2.x–5.x.
|
|
55
|
+
{
|
|
56
|
+
channelName: "cronDecorator",
|
|
57
|
+
module: { name: "@nestjs/schedule", versionRange: ">=2.0.0", filePath: "dist/decorators/cron.decorator.js" },
|
|
58
|
+
functionQuery: { functionName: "Cron", kind: "Sync" }
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
channelName: "intervalDecorator",
|
|
62
|
+
module: { name: "@nestjs/schedule", versionRange: ">=2.0.0", filePath: "dist/decorators/interval.decorator.js" },
|
|
63
|
+
functionQuery: { functionName: "Interval", kind: "Sync" }
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
channelName: "timeoutDecorator",
|
|
67
|
+
module: { name: "@nestjs/schedule", versionRange: ">=2.0.0", filePath: "dist/decorators/timeout.decorator.js" },
|
|
68
|
+
functionQuery: { functionName: "Timeout", kind: "Sync" }
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
// @nestjs/event-emitter @OnEvent:
|
|
72
|
+
// `const OnEvent = (event, options) => {
|
|
73
|
+
// const decoratorFactory = (t, k, d) => {...}; return decoratorFactory;
|
|
74
|
+
// }`
|
|
75
|
+
// `OnEvent` is an arrow assigned to a const, so `expressionName`. `end`
|
|
76
|
+
// reassigns `data.result` to wrap the returned decorator, which rewrites
|
|
77
|
+
// the handler to open an `event.nestjs` span.
|
|
78
|
+
// Mirrors `SentryNestEventInstrumentation`; the `const OnEvent = (...) =>`
|
|
79
|
+
// shape is unchanged across 2.x–3.x.
|
|
80
|
+
channelName: "onEventDecorator",
|
|
81
|
+
module: {
|
|
82
|
+
name: "@nestjs/event-emitter",
|
|
83
|
+
versionRange: ">=2.0.0",
|
|
84
|
+
filePath: "dist/decorators/on-event.decorator.js"
|
|
85
|
+
},
|
|
86
|
+
functionQuery: { expressionName: "OnEvent", kind: "Sync" }
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
// @nestjs/bullmq @Processor:
|
|
90
|
+
// `function Processor(...) { return (target) => {...}; }`
|
|
91
|
+
// The factory arg carries the queue name, so we match the factory and
|
|
92
|
+
// reassign `data.result` in `end` to wrap the returned class decorator
|
|
93
|
+
// (which patches `target.prototype.process`).
|
|
94
|
+
// Mirrors `SentryNestBullMQInstrumentation`; the `function Processor(...)`
|
|
95
|
+
// declaration is unchanged across
|
|
96
|
+
// 10.x–11.x.
|
|
97
|
+
channelName: "processorDecorator",
|
|
98
|
+
module: {
|
|
99
|
+
name: "@nestjs/bullmq",
|
|
100
|
+
versionRange: ">=10.0.0",
|
|
101
|
+
filePath: "dist/decorators/processor.decorator.js"
|
|
102
|
+
},
|
|
103
|
+
functionQuery: { functionName: "Processor", kind: "Sync" }
|
|
104
|
+
}
|
|
105
|
+
];
|
|
106
|
+
const nestjsChannels = {
|
|
107
|
+
NESTJS_APP_CREATION: "orchestrion:@nestjs/core:nestFactoryCreate",
|
|
108
|
+
NESTJS_ROUTER_CONTEXT: "orchestrion:@nestjs/core:routerExecutionContextCreate",
|
|
109
|
+
NESTJS_INJECTABLE: "orchestrion:@nestjs/common:injectableDecorator",
|
|
110
|
+
NESTJS_CATCH: "orchestrion:@nestjs/common:catchDecorator",
|
|
111
|
+
NESTJS_SCHEDULE_CRON: "orchestrion:@nestjs/schedule:cronDecorator",
|
|
112
|
+
NESTJS_SCHEDULE_INTERVAL: "orchestrion:@nestjs/schedule:intervalDecorator",
|
|
113
|
+
NESTJS_SCHEDULE_TIMEOUT: "orchestrion:@nestjs/schedule:timeoutDecorator",
|
|
114
|
+
NESTJS_ONEVENT: "orchestrion:@nestjs/event-emitter:onEventDecorator",
|
|
115
|
+
NESTJS_PROCESSOR: "orchestrion:@nestjs/bullmq:processorDecorator"
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
export { nestjsChannels, nestjsConfig };
|
|
119
|
+
//# 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,37 @@
|
|
|
1
|
+
const openaiConfig = [
|
|
2
|
+
// OpenAI chat completions. `Completions.create` returns a thenable `APIPromise` with no callback arg,
|
|
3
|
+
// so `kind: 'Auto'` resolves to `wrapPromise`. openai ships dual CJS/ESM and the matcher compares
|
|
4
|
+
// `filePath` exactly, hence one entry per built file (`.js` for `require`, `.mjs` for `import`).
|
|
5
|
+
...["resources/chat/completions/completions.js", "resources/chat/completions/completions.mjs"].map((filePath) => ({
|
|
6
|
+
channelName: "chat",
|
|
7
|
+
module: { name: "openai", versionRange: ">=4.0.0 <7", filePath },
|
|
8
|
+
functionQuery: { className: "Completions", methodName: "create", kind: "Auto" }
|
|
9
|
+
})),
|
|
10
|
+
// OpenAI responses API — same `create(body, options)` shape as chat completions.
|
|
11
|
+
...["resources/responses/responses.js", "resources/responses/responses.mjs"].map((filePath) => ({
|
|
12
|
+
channelName: "chat",
|
|
13
|
+
module: { name: "openai", versionRange: ">=4.0.0 <7", filePath },
|
|
14
|
+
functionQuery: { className: "Responses", methodName: "create", kind: "Auto" }
|
|
15
|
+
})),
|
|
16
|
+
// OpenAI embeddings API — same `create(body, options)` shape as chat completions.
|
|
17
|
+
...["resources/embeddings.js", "resources/embeddings.mjs"].map((filePath) => ({
|
|
18
|
+
channelName: "embeddings",
|
|
19
|
+
module: { name: "openai", versionRange: ">=4.0.0 <7", filePath },
|
|
20
|
+
functionQuery: { className: "Embeddings", methodName: "create", kind: "Auto" }
|
|
21
|
+
})),
|
|
22
|
+
// OpenAI conversations API — same `create(body, options)` shape as chat completions.
|
|
23
|
+
...["resources/conversations/conversations.js", "resources/conversations/conversations.mjs"].map((filePath) => ({
|
|
24
|
+
channelName: "chat",
|
|
25
|
+
module: { name: "openai", versionRange: ">=4.0.0 <7", filePath },
|
|
26
|
+
functionQuery: { className: "Conversations", methodName: "create", kind: "Auto" }
|
|
27
|
+
}))
|
|
28
|
+
];
|
|
29
|
+
const openaiChannels = {
|
|
30
|
+
// Chat completions, the responses API, and the conversations API all report a `chat` operation with
|
|
31
|
+
// identical span handling, so they share one channel.
|
|
32
|
+
OPENAI_CHAT: "orchestrion:openai:chat",
|
|
33
|
+
OPENAI_EMBEDDINGS: "orchestrion:openai:embeddings"
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export { openaiChannels, openaiConfig };
|
|
37
|
+
//# 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;;;;"}
|