@sentry/server-utils 10.66.0 → 10.67.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +7 -0
- package/build/cjs/index.js.map +1 -1
- 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/express/instrumentation.js +1 -6
- package/build/cjs/integrations/tracing-channel/express/instrumentation.js.map +1 -1
- 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/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/openai.js +1 -3
- package/build/cjs/integrations/tracing-channel/openai.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/redis.js +25 -34
- package/build/cjs/integrations/tracing-channel/redis.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/tedious.js +145 -0
- package/build/cjs/integrations/tracing-channel/tedious.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.map +1 -1
- package/build/cjs/mongoose/mongoose-legacy-span.js +40 -0
- package/build/cjs/mongoose/mongoose-legacy-span.js.map +1 -0
- package/build/cjs/orchestrion/bundler/esbuild.js +5 -1
- package/build/cjs/orchestrion/bundler/esbuild.js.map +1 -1
- package/build/cjs/orchestrion/bundler/options.js +10 -1
- package/build/cjs/orchestrion/bundler/options.js.map +1 -1
- package/build/cjs/orchestrion/bundler/rollup.js +5 -1
- package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
- package/build/cjs/orchestrion/bundler/vite.js +5 -1
- package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
- package/build/cjs/orchestrion/bundler/webpack.js +8 -4
- package/build/cjs/orchestrion/bundler/webpack.js.map +1 -1
- package/build/cjs/orchestrion/channels.js +4 -0
- package/build/cjs/orchestrion/channels.js.map +1 -1
- package/build/cjs/orchestrion/config/amqplib.js.map +1 -1
- package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -1
- 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.map +1 -1
- package/build/cjs/orchestrion/config/express.js +9 -8
- package/build/cjs/orchestrion/config/express.js.map +1 -1
- package/build/cjs/orchestrion/config/firebase.js.map +1 -1
- package/build/cjs/orchestrion/config/generic-pool.js.map +1 -1
- package/build/cjs/orchestrion/config/google-genai.js.map +1 -1
- package/build/cjs/orchestrion/config/graphql.js.map +1 -1
- package/build/cjs/orchestrion/config/hapi.js.map +1 -1
- package/build/cjs/orchestrion/config/index.js +10 -1
- package/build/cjs/orchestrion/config/index.js.map +1 -1
- package/build/cjs/orchestrion/config/ioredis.js.map +1 -1
- package/build/cjs/orchestrion/config/kafkajs.js.map +1 -1
- package/build/cjs/orchestrion/config/knex.js.map +1 -1
- 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 +46 -2
- package/build/cjs/orchestrion/config/langchain.js.map +1 -1
- package/build/cjs/orchestrion/config/langgraph.js +22 -2
- package/build/cjs/orchestrion/config/langgraph.js.map +1 -1
- package/build/cjs/orchestrion/config/lru-memoizer.js.map +1 -1
- package/build/cjs/orchestrion/config/mongodb.js +61 -2
- package/build/cjs/orchestrion/config/mongodb.js.map +1 -1
- package/build/cjs/orchestrion/config/mongoose.js +101 -2
- package/build/cjs/orchestrion/config/mongoose.js.map +1 -1
- package/build/cjs/orchestrion/config/mysql.js.map +1 -1
- package/build/cjs/orchestrion/config/mysql2.js.map +1 -1
- package/build/cjs/orchestrion/config/nestjs.js.map +1 -1
- package/build/cjs/orchestrion/config/openai.js +5 -5
- package/build/cjs/orchestrion/config/openai.js.map +1 -1
- package/build/cjs/orchestrion/config/pg.js.map +1 -1
- package/build/cjs/orchestrion/config/postgres.js.map +1 -1
- package/build/cjs/orchestrion/config/prisma.js.map +1 -1
- package/build/cjs/orchestrion/config/react-router.js.map +1 -1
- package/build/cjs/orchestrion/config/redis.js.map +1 -1
- package/build/cjs/orchestrion/config/remix.js +48 -2
- package/build/cjs/orchestrion/config/remix.js.map +1 -1
- package/build/cjs/orchestrion/config/tedious.js +18 -2
- package/build/cjs/orchestrion/config/tedious.js.map +1 -1
- package/build/cjs/orchestrion/config/vercel-ai.js.map +1 -1
- package/build/cjs/orchestrion/index.js +32 -9
- package/build/cjs/orchestrion/index.js.map +1 -1
- package/build/cjs/orchestrion/runtime/register.js +25 -12
- package/build/cjs/orchestrion/runtime/register.js.map +1 -1
- package/build/cjs/redis/redis-dc-subscriber.js +27 -38
- package/build/cjs/redis/redis-dc-subscriber.js.map +1 -1
- package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js +16 -3
- package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
- package/build/esm/index.js +2 -0
- package/build/esm/index.js.map +1 -1
- 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/express/instrumentation.js +1 -6
- package/build/esm/integrations/tracing-channel/express/instrumentation.js.map +1 -1
- 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/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/openai.js +1 -3
- package/build/esm/integrations/tracing-channel/openai.js.map +1 -1
- package/build/esm/integrations/tracing-channel/redis.js +25 -34
- package/build/esm/integrations/tracing-channel/redis.js.map +1 -1
- package/build/esm/integrations/tracing-channel/tedious.js +143 -0
- package/build/esm/integrations/tracing-channel/tedious.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.map +1 -1
- package/build/esm/mongoose/mongoose-legacy-span.js +38 -0
- package/build/esm/mongoose/mongoose-legacy-span.js.map +1 -0
- package/build/esm/orchestrion/bundler/options.js +10 -1
- package/build/esm/orchestrion/bundler/options.js.map +1 -1
- package/build/esm/orchestrion/bundler/webpack.js +4 -4
- package/build/esm/orchestrion/bundler/webpack.js.map +1 -1
- package/build/esm/orchestrion/channels.js +4 -0
- package/build/esm/orchestrion/channels.js.map +1 -1
- package/build/esm/orchestrion/config/amqplib.js.map +1 -1
- package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
- 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.map +1 -1
- package/build/esm/orchestrion/config/express.js +9 -8
- package/build/esm/orchestrion/config/express.js.map +1 -1
- package/build/esm/orchestrion/config/firebase.js.map +1 -1
- package/build/esm/orchestrion/config/generic-pool.js.map +1 -1
- package/build/esm/orchestrion/config/google-genai.js.map +1 -1
- package/build/esm/orchestrion/config/graphql.js.map +1 -1
- package/build/esm/orchestrion/config/hapi.js.map +1 -1
- package/build/esm/orchestrion/config/index.js +10 -1
- package/build/esm/orchestrion/config/index.js.map +1 -1
- package/build/esm/orchestrion/config/ioredis.js.map +1 -1
- package/build/esm/orchestrion/config/kafkajs.js.map +1 -1
- package/build/esm/orchestrion/config/knex.js.map +1 -1
- 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 +46 -3
- package/build/esm/orchestrion/config/langchain.js.map +1 -1
- package/build/esm/orchestrion/config/langgraph.js +22 -2
- package/build/esm/orchestrion/config/langgraph.js.map +1 -1
- package/build/esm/orchestrion/config/lru-memoizer.js.map +1 -1
- package/build/esm/orchestrion/config/mongodb.js +61 -2
- package/build/esm/orchestrion/config/mongodb.js.map +1 -1
- package/build/esm/orchestrion/config/mongoose.js +101 -3
- package/build/esm/orchestrion/config/mongoose.js.map +1 -1
- package/build/esm/orchestrion/config/mysql.js.map +1 -1
- package/build/esm/orchestrion/config/mysql2.js.map +1 -1
- package/build/esm/orchestrion/config/nestjs.js.map +1 -1
- package/build/esm/orchestrion/config/openai.js +5 -5
- package/build/esm/orchestrion/config/openai.js.map +1 -1
- package/build/esm/orchestrion/config/pg.js.map +1 -1
- package/build/esm/orchestrion/config/postgres.js.map +1 -1
- package/build/esm/orchestrion/config/prisma.js.map +1 -1
- package/build/esm/orchestrion/config/react-router.js.map +1 -1
- package/build/esm/orchestrion/config/redis.js.map +1 -1
- package/build/esm/orchestrion/config/remix.js +48 -2
- package/build/esm/orchestrion/config/remix.js.map +1 -1
- package/build/esm/orchestrion/config/tedious.js +18 -2
- package/build/esm/orchestrion/config/tedious.js.map +1 -1
- package/build/esm/orchestrion/config/vercel-ai.js.map +1 -1
- package/build/esm/orchestrion/index.js +17 -2
- package/build/esm/orchestrion/index.js.map +1 -1
- package/build/esm/orchestrion/runtime/register.js +25 -12
- package/build/esm/orchestrion/runtime/register.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/redis/redis-dc-subscriber.js +27 -38
- package/build/esm/redis/redis-dc-subscriber.js.map +1 -1
- package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js +17 -4
- package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
- package/build/types/index.d.ts +5 -1
- package/build/types/index.d.ts.map +1 -1
- 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/express/instrumentation.d.ts.map +1 -1
- 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/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/openai.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/redis.d.ts.map +1 -1
- 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/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 +2 -0
- package/build/types/mongoose/index.d.ts.map +1 -1
- 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/orchestrion/bundler/options.d.ts +13 -3
- package/build/types/orchestrion/bundler/options.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/webpack.d.ts +5 -5
- package/build/types/orchestrion/bundler/webpack.d.ts.map +1 -1
- package/build/types/orchestrion/channels.d.ts +36 -6
- package/build/types/orchestrion/channels.d.ts.map +1 -1
- 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/express.d.ts +2 -4
- package/build/types/orchestrion/config/express.d.ts.map +1 -1
- package/build/types/orchestrion/config/firebase.d.ts +1 -1
- package/build/types/orchestrion/config/firebase.d.ts.map +1 -1
- package/build/types/orchestrion/config/index.d.ts +1 -1
- package/build/types/orchestrion/config/index.d.ts.map +1 -1
- package/build/types/orchestrion/config/ioredis.d.ts +1 -1
- package/build/types/orchestrion/config/ioredis.d.ts.map +1 -1
- package/build/types/orchestrion/config/knex.d.ts +1 -1
- package/build/types/orchestrion/config/knex.d.ts.map +1 -1
- 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 +17 -3
- package/build/types/orchestrion/config/langchain.d.ts.map +1 -1
- package/build/types/orchestrion/config/langgraph.d.ts +20 -3
- package/build/types/orchestrion/config/langgraph.d.ts.map +1 -1
- package/build/types/orchestrion/config/mongodb.d.ts +58 -3
- package/build/types/orchestrion/config/mongodb.d.ts.map +1 -1
- package/build/types/orchestrion/config/mongoose.d.ts +39 -3
- package/build/types/orchestrion/config/mongoose.d.ts.map +1 -1
- package/build/types/orchestrion/config/nestjs.d.ts +1 -1
- package/build/types/orchestrion/config/nestjs.d.ts.map +1 -1
- package/build/types/orchestrion/config/openai.d.ts +0 -2
- package/build/types/orchestrion/config/openai.d.ts.map +1 -1
- package/build/types/orchestrion/config/postgres.d.ts +1 -1
- package/build/types/orchestrion/config/postgres.d.ts.map +1 -1
- package/build/types/orchestrion/config/prisma.d.ts +1 -1
- package/build/types/orchestrion/config/prisma.d.ts.map +1 -1
- package/build/types/orchestrion/config/react-router.d.ts +1 -1
- package/build/types/orchestrion/config/react-router.d.ts.map +1 -1
- package/build/types/orchestrion/config/remix.d.ts +7 -2
- package/build/types/orchestrion/config/remix.d.ts.map +1 -1
- package/build/types/orchestrion/config/tedious.d.ts +10 -2
- package/build/types/orchestrion/config/tedious.d.ts.map +1 -1
- package/build/types/orchestrion/config/vercel-ai.d.ts +1 -1
- package/build/types/orchestrion/config/vercel-ai.d.ts.map +1 -1
- package/build/types/orchestrion/index.d.ts +32 -1
- package/build/types/orchestrion/index.d.ts.map +1 -1
- package/build/types/orchestrion/runtime/register.d.ts.map +1 -1
- package/build/types/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts.map +1 -1
- package/build/types-ts3.8/index.d.ts +5 -1
- 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/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/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/tedious.d.ts +11 -0
- package/build/types-ts3.8/mongodb/mongodb-span.d.ts +66 -0
- package/build/types-ts3.8/mongoose/index.d.ts +2 -0
- package/build/types-ts3.8/mongoose/mongoose-legacy-span.d.ts +29 -0
- package/build/types-ts3.8/orchestrion/bundler/options.d.ts +13 -3
- package/build/types-ts3.8/orchestrion/bundler/webpack.d.ts +5 -5
- package/build/types-ts3.8/orchestrion/channels.d.ts +36 -6
- package/build/types-ts3.8/orchestrion/config/aws-sdk.d.ts +19 -0
- package/build/types-ts3.8/orchestrion/config/express.d.ts +2 -4
- package/build/types-ts3.8/orchestrion/config/firebase.d.ts +1 -1
- package/build/types-ts3.8/orchestrion/config/index.d.ts +1 -1
- package/build/types-ts3.8/orchestrion/config/ioredis.d.ts +1 -1
- package/build/types-ts3.8/orchestrion/config/knex.d.ts +1 -1
- package/build/types-ts3.8/orchestrion/config/koa.d.ts +17 -0
- package/build/types-ts3.8/orchestrion/config/langchain.d.ts +17 -3
- package/build/types-ts3.8/orchestrion/config/langgraph.d.ts +20 -3
- package/build/types-ts3.8/orchestrion/config/mongodb.d.ts +58 -3
- package/build/types-ts3.8/orchestrion/config/mongoose.d.ts +39 -3
- package/build/types-ts3.8/orchestrion/config/nestjs.d.ts +1 -1
- package/build/types-ts3.8/orchestrion/config/openai.d.ts +0 -2
- package/build/types-ts3.8/orchestrion/config/postgres.d.ts +1 -1
- package/build/types-ts3.8/orchestrion/config/prisma.d.ts +1 -1
- package/build/types-ts3.8/orchestrion/config/react-router.d.ts +1 -1
- package/build/types-ts3.8/orchestrion/config/remix.d.ts +7 -2
- package/build/types-ts3.8/orchestrion/config/tedious.d.ts +10 -2
- package/build/types-ts3.8/orchestrion/config/vercel-ai.d.ts +1 -1
- package/build/types-ts3.8/orchestrion/index.d.ts +32 -1
- package/package.json +3 -4
package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/MessageAttributes.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SerializedTraceData } from '@sentry/core';
|
|
2
|
+
import { SNS, SQS } from '../aws-sdk.types';
|
|
3
|
+
export declare const MAX_MESSAGE_ATTRIBUTES = 10;
|
|
4
|
+
export interface AwsSdkContextObject {
|
|
5
|
+
[key: string]: {
|
|
6
|
+
StringValue?: string;
|
|
7
|
+
Value?: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Inject trace-propagation headers (from `getTraceData({ span })`) into an SQS/SNS message-attribute
|
|
12
|
+
* map, so the consumer can continue the trace. Respects the SQS 10-attribute quota. Mirrors the OTel
|
|
13
|
+
* integration's `injectPropagationContext`, but writes Sentry's `sentry-trace`/`baggage` instead of
|
|
14
|
+
* W3C headers. Callers pass the precomputed headers so batch sends serialize them only once.
|
|
15
|
+
*/
|
|
16
|
+
export declare function injectPropagationContext(attributesMap: SQS.MessageBodyAttributeMap | SNS.MessageAttributeMap | undefined, traceData: SerializedTraceData): SQS.MessageBodyAttributeMap | SNS.MessageAttributeMap;
|
|
17
|
+
/** Read the propagation headers back off a received SQS message, if present. */
|
|
18
|
+
export declare function extractPropagationHeaders(message: SQS.Message): {
|
|
19
|
+
sentryTrace?: string;
|
|
20
|
+
baggage?: string;
|
|
21
|
+
} | undefined;
|
|
22
|
+
export declare function addPropagationFieldsToAttributeNames(messageAttributeNames?: string[]): string[];
|
|
23
|
+
//# sourceMappingURL=MessageAttributes.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Span } from '@sentry/core';
|
|
2
|
+
import { NormalizedRequest, NormalizedResponse, RequestMetadata } from '../types';
|
|
3
|
+
export { RequestMetadata };
|
|
4
|
+
export interface ServiceExtension {
|
|
5
|
+
requestPreSpanHook: (request: NormalizedRequest) => RequestMetadata;
|
|
6
|
+
requestPostSpanHook?: (request: NormalizedRequest, span: Span) => void;
|
|
7
|
+
responseHook?: (response: NormalizedResponse, span: Span) => void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=ServiceExtension.d.ts.map
|
package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Span } from '@sentry/core';
|
|
2
|
+
import { NormalizedRequest, NormalizedResponse, RequestMetadata } from '../types';
|
|
3
|
+
import { ServiceExtension } from './ServiceExtension';
|
|
4
|
+
export declare class ServicesExtensions implements ServiceExtension {
|
|
5
|
+
private _services;
|
|
6
|
+
requestPreSpanHook(request: NormalizedRequest): RequestMetadata;
|
|
7
|
+
requestPostSpanHook(request: NormalizedRequest, span: Span): void;
|
|
8
|
+
responseHook(response: NormalizedResponse, span: Span): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=ServicesExtensions.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Span } from '@sentry/core';
|
|
2
|
+
import { NormalizedRequest, NormalizedResponse } from '../types';
|
|
3
|
+
import { RequestMetadata, ServiceExtension } from './ServiceExtension';
|
|
4
|
+
export declare class BedrockRuntimeServiceExtension implements ServiceExtension {
|
|
5
|
+
requestPreSpanHook(request: NormalizedRequest): RequestMetadata;
|
|
6
|
+
responseHook(response: NormalizedResponse, span: Span): void;
|
|
7
|
+
private _requestPreSpanHookConverse;
|
|
8
|
+
private _requestPreSpanHookInvokeModel;
|
|
9
|
+
private _responseHookConverse;
|
|
10
|
+
private _responseHookConverseStream;
|
|
11
|
+
private _responseHookInvokeModel;
|
|
12
|
+
private _responseHookInvokeModelWithResponseStream;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=bedrock-runtime.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Span } from '@sentry/core';
|
|
2
|
+
import { NormalizedRequest, NormalizedResponse } from '../types';
|
|
3
|
+
import { RequestMetadata, ServiceExtension } from './ServiceExtension';
|
|
4
|
+
export declare class DynamodbServiceExtension implements ServiceExtension {
|
|
5
|
+
requestPreSpanHook(normalizedRequest: NormalizedRequest): RequestMetadata;
|
|
6
|
+
responseHook(response: NormalizedResponse, span: Span): void;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=dynamodb.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NormalizedRequest } from '../types';
|
|
2
|
+
import { RequestMetadata, ServiceExtension } from './ServiceExtension';
|
|
3
|
+
export declare class KinesisServiceExtension implements ServiceExtension {
|
|
4
|
+
requestPreSpanHook(request: NormalizedRequest): RequestMetadata;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=kinesis.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Span } from '@sentry/core';
|
|
2
|
+
import { NormalizedRequest, NormalizedResponse } from '../types';
|
|
3
|
+
import { RequestMetadata, ServiceExtension } from './ServiceExtension';
|
|
4
|
+
export declare class LambdaServiceExtension implements ServiceExtension {
|
|
5
|
+
requestPreSpanHook(request: NormalizedRequest): RequestMetadata;
|
|
6
|
+
requestPostSpanHook(request: NormalizedRequest, span: Span): void;
|
|
7
|
+
responseHook(response: NormalizedResponse, span: Span): void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=lambda.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NormalizedRequest } from '../types';
|
|
2
|
+
import { RequestMetadata, ServiceExtension } from './ServiceExtension';
|
|
3
|
+
export declare class S3ServiceExtension implements ServiceExtension {
|
|
4
|
+
requestPreSpanHook(request: NormalizedRequest): RequestMetadata;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=s3.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Span } from '@sentry/core';
|
|
2
|
+
import { NormalizedRequest, NormalizedResponse } from '../types';
|
|
3
|
+
import { RequestMetadata, ServiceExtension } from './ServiceExtension';
|
|
4
|
+
export declare class SecretsManagerServiceExtension implements ServiceExtension {
|
|
5
|
+
requestPreSpanHook(request: NormalizedRequest): RequestMetadata;
|
|
6
|
+
responseHook(response: NormalizedResponse, span: Span): void;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=secretsmanager.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Span } from '@sentry/core';
|
|
2
|
+
import { NormalizedRequest, NormalizedResponse } from '../types';
|
|
3
|
+
import { RequestMetadata, ServiceExtension } from './ServiceExtension';
|
|
4
|
+
export declare class SnsServiceExtension implements ServiceExtension {
|
|
5
|
+
requestPreSpanHook(request: NormalizedRequest): RequestMetadata;
|
|
6
|
+
requestPostSpanHook(request: NormalizedRequest, span: Span): void;
|
|
7
|
+
responseHook(response: NormalizedResponse, span: Span): void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=sns.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Span } from '@sentry/core';
|
|
2
|
+
import { NormalizedRequest, NormalizedResponse } from '../types';
|
|
3
|
+
import { RequestMetadata, ServiceExtension } from './ServiceExtension';
|
|
4
|
+
export declare class SqsServiceExtension implements ServiceExtension {
|
|
5
|
+
requestPreSpanHook(request: NormalizedRequest): RequestMetadata;
|
|
6
|
+
requestPostSpanHook(request: NormalizedRequest, span: Span): void;
|
|
7
|
+
responseHook(response: NormalizedResponse, span: Span): void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=sqs.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NormalizedRequest } from '../types';
|
|
2
|
+
import { RequestMetadata, ServiceExtension } from './ServiceExtension';
|
|
3
|
+
export declare class StepFunctionsServiceExtension implements ServiceExtension {
|
|
4
|
+
requestPreSpanHook(request: NormalizedRequest): RequestMetadata;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=stepfunctions.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SpanKindValue } from '@sentry/core';
|
|
2
|
+
export type CommandInput = Record<string, any>;
|
|
3
|
+
/**
|
|
4
|
+
* These are normalized request and response. They organize the relevant data in one interface which
|
|
5
|
+
* can be processed in a uniform manner in the per-service hooks.
|
|
6
|
+
*/
|
|
7
|
+
export interface NormalizedRequest {
|
|
8
|
+
serviceName: string;
|
|
9
|
+
commandName: string;
|
|
10
|
+
commandInput: CommandInput;
|
|
11
|
+
region?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface NormalizedResponse {
|
|
14
|
+
data: any;
|
|
15
|
+
request: NormalizedRequest;
|
|
16
|
+
requestId?: string;
|
|
17
|
+
}
|
|
18
|
+
/** Span metadata a per-service extension returns for the subscriber to build the span from. */
|
|
19
|
+
export interface RequestMetadata {
|
|
20
|
+
isStream?: boolean;
|
|
21
|
+
spanAttributes?: Record<string, unknown>;
|
|
22
|
+
spanKind?: SpanKindValue;
|
|
23
|
+
spanName?: string;
|
|
24
|
+
spanOp?: string;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CommandInput, NormalizedRequest } from './types';
|
|
2
|
+
export declare function removeSuffixFromStringIfExists(str: string, suffixToRemove: string): string;
|
|
3
|
+
export declare function normalizeV3Request(serviceName: string, commandNameWithSuffix: string, commandInput: CommandInput, region: string | undefined): NormalizedRequest;
|
|
4
|
+
export declare function extractAttributesFromNormalizedRequest(normalizedRequest: NormalizedRequest): Record<string, unknown>;
|
|
5
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface KoaChannelIntegrationOptions {
|
|
2
|
+
/** Ignore layers of the specified types (`'middleware'` and/or `'router'`). */
|
|
3
|
+
ignoreLayersType?: Array<'middleware' | 'router'>;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* EXPERIMENTAL — orchestrion-driven koa integration. Subscribes to the
|
|
7
|
+
* `orchestrion:koa:use` channel injected into `Application.prototype.use` and
|
|
8
|
+
* wraps each registered middleware/router layer in a span-creating proxy.
|
|
9
|
+
* Requires the orchestrion runtime hook or bundler plugin.
|
|
10
|
+
*/
|
|
11
|
+
export declare const koaChannelIntegration: (options?: KoaChannelIntegrationOptions | undefined) => import("@sentry/core").Integration & {
|
|
12
|
+
name: "Koa";
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=koa.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LangChainOptions } from '@sentry/core';
|
|
2
|
+
/**
|
|
3
|
+
* EXPERIMENTAL — orchestrion-driven LangChain integration. Subscribes to the diagnostics_channels
|
|
4
|
+
* injected into `@langchain/core`'s `BaseChatModel` (to inject the Sentry callback handler) and into
|
|
5
|
+
* `@langchain/openai`'s embedding methods, so it requires the orchestrion runtime hook or bundler plugin.
|
|
6
|
+
*/
|
|
7
|
+
export declare const langChainChannelIntegration: (options?: LangChainOptions | undefined) => import("@sentry/core").Integration & {
|
|
8
|
+
name: "LangChain";
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=langchain.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LangGraphOptions } from '@sentry/core';
|
|
2
|
+
/**
|
|
3
|
+
* EXPERIMENTAL — orchestrion-driven LangGraph integration. Subscribes to the diagnostics_channels
|
|
4
|
+
* injected into `@langchain/langgraph`'s `StateGraph.compile` and `createReactAgent`, so it requires
|
|
5
|
+
* the orchestrion runtime hook or bundler plugin.
|
|
6
|
+
*/
|
|
7
|
+
export declare const langGraphChannelIntegration: (options?: LangGraphOptions | undefined) => import("@sentry/core").Integration & {
|
|
8
|
+
name: "LangGraph";
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=langgraph.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EXPERIMENTAL: orchestrion-driven mongodb integration.
|
|
3
|
+
*
|
|
4
|
+
* Reproduces the vendored `@opentelemetry/instrumentation-mongodb` span shape
|
|
5
|
+
* (legacy db/net semantic conventions, `mongodb.<op>` names, scrubbed
|
|
6
|
+
* `db.statement`) via the `orchestrion:mongodb:*` diagnostics_channels
|
|
7
|
+
* injected by the orchestrion code transform.
|
|
8
|
+
*/
|
|
9
|
+
export declare const mongodbChannelIntegration: () => import("@sentry/core").Integration & {
|
|
10
|
+
name: "Mongo";
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=mongodb.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EXPERIMENTAL: orchestrion-driven mongoose integration.
|
|
3
|
+
*
|
|
4
|
+
* Reproduces the vendored `@opentelemetry/instrumentation-mongoose` span
|
|
5
|
+
* shape (legacy db/net semantic conventions, `mongoose.<Model>.<op>` names,
|
|
6
|
+
* build-time span parenting) via the `orchestrion:mongoose:*`
|
|
7
|
+
* diagnostics_channels injected into mongoose `< 9.7` by the orchestrion
|
|
8
|
+
* code transform. For mongoose `>= 9.7` it also drives the native
|
|
9
|
+
* diagnostics_channel subscription, so this single integration covers every
|
|
10
|
+
* supported version once it replaces the OTel one.
|
|
11
|
+
*/
|
|
12
|
+
export declare const mongooseChannelIntegration: () => import("@sentry/core").Integration & {
|
|
13
|
+
name: "Mongoose";
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=mongoose.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EXPERIMENTAL - orchestrion-driven tedious integration.
|
|
3
|
+
*
|
|
4
|
+
* Subscribes to the `orchestrion:tedious:*` diagnostics_channels that the orchestrion code transform
|
|
5
|
+
* injects into tedious's `Connection` request methods (each traced as one db span) and `Connection.connect`
|
|
6
|
+
* (active-database bookkeeping). Requires the orchestrion runtime hook or bundler plugin to be active.
|
|
7
|
+
*/
|
|
8
|
+
export declare const tediousChannelIntegration: () => import("@sentry/core").Integration & {
|
|
9
|
+
name: "Tedious";
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=tedious.d.ts.map
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Span, SpanAttributes } from '@sentry/core';
|
|
2
|
+
/**
|
|
3
|
+
* The db/collection namespace mongodb (v4+) passes to `Connection.command`
|
|
4
|
+
*/
|
|
5
|
+
export interface MongodbNamespace {
|
|
6
|
+
db: string;
|
|
7
|
+
collection?: string;
|
|
8
|
+
}
|
|
9
|
+
interface V4Command {
|
|
10
|
+
documents?: unknown[];
|
|
11
|
+
cursors?: unknown;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Replaces every leaf value in the command object with '?', keeping keys
|
|
16
|
+
* and Mongo operators. hides PII and improves grouping. Reproduced from
|
|
17
|
+
* the OTel instrumentation.
|
|
18
|
+
*/
|
|
19
|
+
export declare function serializeDbStatement(commandObj: Record<string, unknown>): string;
|
|
20
|
+
/**
|
|
21
|
+
* Build span attributes for a mongodb v4+ command from the connection
|
|
22
|
+
* context, namespace and command.
|
|
23
|
+
*/
|
|
24
|
+
export declare function getV4SpanAttributes(connectionCtx: {
|
|
25
|
+
address?: string;
|
|
26
|
+
} | undefined, ns: MongodbNamespace, command: V4Command | undefined, operation: string | undefined, origin: string): SpanAttributes;
|
|
27
|
+
/**
|
|
28
|
+
* Shared attribute builder used by both the v3 topology path and the v4+
|
|
29
|
+
* connection path.
|
|
30
|
+
*/
|
|
31
|
+
export declare function getSpanAttributes(dbName: string | undefined, dbCollection: string | undefined, host: string | undefined, port: string | undefined, commandObj: Record<string, unknown> | undefined, operation: string | undefined, origin: string): SpanAttributes;
|
|
32
|
+
/** The v3 driver topology, from which host/port are read (mongodb 3.x). */
|
|
33
|
+
export interface MongoV3Topology {
|
|
34
|
+
s?: {
|
|
35
|
+
options?: {
|
|
36
|
+
host?: string;
|
|
37
|
+
port?: number;
|
|
38
|
+
};
|
|
39
|
+
host?: string;
|
|
40
|
+
port?: number;
|
|
41
|
+
};
|
|
42
|
+
description?: {
|
|
43
|
+
address?: string;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Determine the operation name for a mongodb v3 `command` from the command
|
|
48
|
+
* document, mirroring the vendored instrumentation. Returns `undefined` for
|
|
49
|
+
* commands it doesn't classify (e.g. `endSessions`).
|
|
50
|
+
*/
|
|
51
|
+
export declare function getV3CommandOperation(command: Record<string, unknown>): string | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Build span attributes for a mongodb v3 operation from the topology,
|
|
54
|
+
* namespace string and command.
|
|
55
|
+
*/
|
|
56
|
+
export declare function getV3SpanAttributes(ns: string, topology: MongoV3Topology | undefined, command: Record<string, unknown> | undefined, operation: string | undefined, origin: string): SpanAttributes;
|
|
57
|
+
/**
|
|
58
|
+
* Start a mongodb client span with the legacy (pre-stable) db/net semantic
|
|
59
|
+
* conventions.
|
|
60
|
+
*
|
|
61
|
+
* `op: 'db'` is set explicitly rather than relying on `inferDbSpanData`,
|
|
62
|
+
* to support platforms that lack it (ie, Deno).
|
|
63
|
+
*/
|
|
64
|
+
export declare function startMongoSpan(attributes: SpanAttributes): Span;
|
|
65
|
+
export {};
|
|
66
|
+
//# sourceMappingURL=mongodb-span.d.ts.map
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { MongooseLegacyCollection, StartMongooseLegacySpanOptions } from './mongoose-legacy-span';
|
|
2
|
+
export { startMongooseLegacySpan } from './mongoose-legacy-span';
|
|
1
3
|
/**
|
|
2
4
|
* Auto-instrument the [mongoose](https://www.npmjs.com/package/mongoose) library via its native
|
|
3
5
|
* `node:diagnostics_channel` tracing channels (mongoose >= 9.7).
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Span } from '@sentry/core';
|
|
2
|
+
/** The subset of mongoose's `Collection` that the legacy span shape reads. */
|
|
3
|
+
export interface MongooseLegacyCollection {
|
|
4
|
+
name?: string;
|
|
5
|
+
conn?: {
|
|
6
|
+
name?: string;
|
|
7
|
+
user?: string;
|
|
8
|
+
host?: string;
|
|
9
|
+
port?: number;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export interface StartMongooseLegacySpanOptions {
|
|
13
|
+
collection: MongooseLegacyCollection | undefined;
|
|
14
|
+
modelName: string | undefined;
|
|
15
|
+
operation: string;
|
|
16
|
+
/** Span origin: distinguishes the OTel/IITM caller from orchestrion */
|
|
17
|
+
origin: string;
|
|
18
|
+
parentSpan?: Span;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Start a mongoose client span with the legacy (pre-stable) db/net semantic
|
|
22
|
+
* conventions.
|
|
23
|
+
*
|
|
24
|
+
* Shared by the vendored OTel/IITM instrumentation (`@sentry/node`) and the
|
|
25
|
+
* orchestrion channel subscriber so the two emit an identical span shape,
|
|
26
|
+
* differing only by `origin`.
|
|
27
|
+
*/
|
|
28
|
+
export declare function startMongooseLegacySpan({ collection, modelName, operation, origin, parentSpan, }: StartMongooseLegacySpanOptions): Span;
|
|
29
|
+
//# sourceMappingURL=mongoose-legacy-span.d.ts.map
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
import { InstrumentationConfig } from '
|
|
2
|
-
import
|
|
1
|
+
import { InstrumentationConfig, CustomTransform } from '..';
|
|
2
|
+
import { CodeTransformerPluginOptions } from '@apm-js-collab/code-transformer-bundler-plugins/core';
|
|
3
3
|
export type PluginOptions = {
|
|
4
4
|
/**
|
|
5
5
|
* Additional instrumentations to include with the default instrumentation.
|
|
6
6
|
*/
|
|
7
7
|
instrumentations?: InstrumentationConfig[];
|
|
8
|
+
/**
|
|
9
|
+
* Custom transforms that can be applied using the `transform` option in each `InstrumentationConfig`.
|
|
10
|
+
*/
|
|
11
|
+
customTransforms?: Record<string, CustomTransform>;
|
|
12
|
+
/**
|
|
13
|
+
* Whether to inject the global diagnostics.
|
|
14
|
+
*
|
|
15
|
+
* Defaults to `true`.
|
|
16
|
+
*/
|
|
17
|
+
shouldInjectDiagnostics?: boolean;
|
|
8
18
|
};
|
|
9
19
|
/**
|
|
10
20
|
* The `@apm-js-collab/code-transformer-bundler-plugins` options shared by every
|
|
@@ -15,5 +25,5 @@ export type PluginOptions = {
|
|
|
15
25
|
* bundler path ran (rather than relying on a build-time flag that wouldn't be
|
|
16
26
|
* visible to the runtime).
|
|
17
27
|
*/
|
|
18
|
-
export declare function orchestrionTransformOptions(options: PluginOptions):
|
|
28
|
+
export declare function orchestrionTransformOptions(options: PluginOptions): CodeTransformerPluginOptions;
|
|
19
29
|
//# sourceMappingURL=options.d.ts.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { InstrumentationConfig } from '
|
|
1
|
+
import { InstrumentationConfig } from '..';
|
|
2
|
+
import codeTransformerWebpack from '@apm-js-collab/code-transformer-bundler-plugins/webpack';
|
|
3
|
+
import { PluginOptions } from './options';
|
|
2
4
|
/** Absolute path to the code-transform loader (a webpack loader; also usable as a Turbopack loader). */
|
|
3
5
|
export declare function getOrchestrionLoaderPath(): string;
|
|
4
6
|
/**
|
|
@@ -11,9 +13,7 @@ export declare function getTracingHooksDirectory(): string;
|
|
|
11
13
|
/** The central instrumentation config, to pass as the loader's `instrumentations` option. */
|
|
12
14
|
export declare function getSentryInstrumentations(): InstrumentationConfig[];
|
|
13
15
|
/**
|
|
14
|
-
* The code-transform webpack plugin, pre-fed the instrumentation config
|
|
15
|
-
* does NOT inject the `__SENTRY_ORCHESTRION__.bundler` marker — that would disable the runtime
|
|
16
|
-
* module hook, which externalized packages still need (hybrid setup).
|
|
16
|
+
* The code-transform webpack plugin, pre-fed the instrumentation config
|
|
17
17
|
*/
|
|
18
|
-
export declare function sentryOrchestrionWebpackPlugin():
|
|
18
|
+
export declare function sentryOrchestrionWebpackPlugin(options?: PluginOptions): ReturnType<typeof codeTransformerWebpack>;
|
|
19
19
|
//# sourceMappingURL=webpack.d.ts.map
|
|
@@ -22,6 +22,17 @@ export declare const CHANNELS: {
|
|
|
22
22
|
readonly VERCEL_AI_EMBED_MANY: "orchestrion:ai:embedMany";
|
|
23
23
|
readonly VERCEL_AI_EXECUTE_TOOL_CALL: "orchestrion:ai:executeToolCall";
|
|
24
24
|
readonly VERCEL_AI_RESOLVE_LANGUAGE_MODEL: "orchestrion:ai:resolveLanguageModel";
|
|
25
|
+
readonly TEDIOUS_CONNECT: "orchestrion:tedious:connect";
|
|
26
|
+
readonly TEDIOUS_EXEC_SQL: "orchestrion:tedious:execSql";
|
|
27
|
+
readonly TEDIOUS_EXEC_SQL_BATCH: "orchestrion:tedious:execSqlBatch";
|
|
28
|
+
readonly TEDIOUS_CALL_PROCEDURE: "orchestrion:tedious:callProcedure";
|
|
29
|
+
readonly TEDIOUS_EXEC_BULK_LOAD: "orchestrion:tedious:execBulkLoad";
|
|
30
|
+
readonly TEDIOUS_PREPARE: "orchestrion:tedious:prepare";
|
|
31
|
+
readonly TEDIOUS_EXECUTE: "orchestrion:tedious:execute";
|
|
32
|
+
readonly REMIX_REQUEST_HANDLER: "orchestrion:@remix-run/server-runtime:requestHandler";
|
|
33
|
+
readonly REMIX_MATCH_SERVER_ROUTES: "orchestrion:@remix-run/server-runtime:matchServerRoutes";
|
|
34
|
+
readonly REMIX_CALL_ROUTE_LOADER: "orchestrion:@remix-run/server-runtime:callRouteLoader";
|
|
35
|
+
readonly REMIX_CALL_ROUTE_ACTION: "orchestrion:@remix-run/server-runtime:callRouteAction";
|
|
25
36
|
readonly REDIS_COMMAND: "orchestrion:redis:command";
|
|
26
37
|
readonly NODE_REDIS_COMMAND: "orchestrion:@redis/client:command";
|
|
27
38
|
readonly NODE_REDIS_EXECUTOR: "orchestrion:@redis/client:executor";
|
|
@@ -37,9 +48,7 @@ export declare const CHANNELS: {
|
|
|
37
48
|
readonly PG_CONNECT: "orchestrion:pg:connect";
|
|
38
49
|
readonly PGPOOL_CONNECT: "orchestrion:pg-pool:connect";
|
|
39
50
|
readonly OPENAI_CHAT: "orchestrion:openai:chat";
|
|
40
|
-
readonly OPENAI_RESPONSES: "orchestrion:openai:responses";
|
|
41
51
|
readonly OPENAI_EMBEDDINGS: "orchestrion:openai:embeddings";
|
|
42
|
-
readonly OPENAI_CONVERSATIONS: "orchestrion:openai:conversations";
|
|
43
52
|
readonly NESTJS_APP_CREATION: "orchestrion:@nestjs/core:nestFactoryCreate";
|
|
44
53
|
readonly NESTJS_ROUTER_CONTEXT: "orchestrion:@nestjs/core:routerExecutionContextCreate";
|
|
45
54
|
readonly NESTJS_INJECTABLE: "orchestrion:@nestjs/common:injectableDecorator";
|
|
@@ -52,7 +61,27 @@ export declare const CHANNELS: {
|
|
|
52
61
|
readonly MYSQL_QUERY: "orchestrion:mysql:query";
|
|
53
62
|
readonly MYSQL2_QUERY: "orchestrion:mysql2:query";
|
|
54
63
|
readonly MYSQL2_EXECUTE: "orchestrion:mysql2:execute";
|
|
64
|
+
readonly MONGOOSE_QUERY_EXEC: "orchestrion:mongoose:query_exec";
|
|
65
|
+
readonly MONGOOSE_AGGREGATE_EXEC: "orchestrion:mongoose:aggregate_exec";
|
|
66
|
+
readonly MONGOOSE_MODEL_SAVE: "orchestrion:mongoose:model_save";
|
|
67
|
+
readonly MONGOOSE_MODEL_INSERT_MANY: "orchestrion:mongoose:model_insert_many";
|
|
68
|
+
readonly MONGOOSE_MODEL_BULK_WRITE: "orchestrion:mongoose:model_bulk_write";
|
|
69
|
+
readonly MONGOOSE_MODEL_REMOVE: "orchestrion:mongoose:model_remove";
|
|
70
|
+
readonly MONGOOSE_MODEL_AGGREGATE: "orchestrion:mongoose:model_aggregate";
|
|
71
|
+
readonly MONGODB_COMMAND: "orchestrion:mongodb:command";
|
|
72
|
+
readonly MONGODB_CHECKOUT: "orchestrion:mongodb:checkout";
|
|
73
|
+
readonly MONGODB_V3_INSERT: "orchestrion:mongodb:v3_insert";
|
|
74
|
+
readonly MONGODB_V3_UPDATE: "orchestrion:mongodb:v3_update";
|
|
75
|
+
readonly MONGODB_V3_REMOVE: "orchestrion:mongodb:v3_remove";
|
|
76
|
+
readonly MONGODB_V3_COMMAND: "orchestrion:mongodb:v3_command";
|
|
77
|
+
readonly MONGODB_V3_QUERY: "orchestrion:mongodb:v3_query";
|
|
78
|
+
readonly MONGODB_V3_GET_MORE: "orchestrion:mongodb:v3_get_more";
|
|
55
79
|
readonly LRU_MEMOIZER_LOAD: "orchestrion:lru-memoizer:load";
|
|
80
|
+
readonly LANGGRAPH_STATE_GRAPH_COMPILE: "orchestrion:@langchain/langgraph:stateGraphCompile";
|
|
81
|
+
readonly LANGGRAPH_CREATE_REACT_AGENT: "orchestrion:@langchain/langgraph:createReactAgent";
|
|
82
|
+
readonly LANGCHAIN_CHAT_MODEL_INVOKE: "orchestrion:@langchain/core:chatModelInvoke";
|
|
83
|
+
readonly LANGCHAIN_CHAT_MODEL_STREAM: "orchestrion:@langchain/core:chatModelStream";
|
|
84
|
+
readonly KOA_USE: "orchestrion:koa:use";
|
|
56
85
|
readonly KNEX_QUERY: "orchestrion:knex:query";
|
|
57
86
|
readonly KNEX_QUERY_BUILDER: "orchestrion:knex:queryBuilder";
|
|
58
87
|
readonly KNEX_SCHEMA_BUILDER: "orchestrion:knex:schemaBuilder";
|
|
@@ -72,16 +101,17 @@ export declare const CHANNELS: {
|
|
|
72
101
|
readonly GENERIC_POOL_ACQUIRE: "orchestrion:generic-pool:acquire";
|
|
73
102
|
readonly EXPRESS_HANDLE: "orchestrion:express:handle";
|
|
74
103
|
readonly ROUTER_HANDLE: "orchestrion:router:handle";
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
readonly ROUTER_ROUTE: "orchestrion:router:route";
|
|
78
|
-
readonly ROUTER_USE: "orchestrion:router:use";
|
|
104
|
+
readonly EXPRESS_REGISTER: "orchestrion:express:register";
|
|
105
|
+
readonly ROUTER_REGISTER: "orchestrion:router:register";
|
|
79
106
|
readonly DATALOADER_CONSTRUCT: "orchestrion:dataloader:construct";
|
|
80
107
|
readonly DATALOADER_LOAD: "orchestrion:dataloader:load";
|
|
81
108
|
readonly DATALOADER_LOAD_MANY: "orchestrion:dataloader:loadMany";
|
|
82
109
|
readonly DATALOADER_PRIME: "orchestrion:dataloader:prime";
|
|
83
110
|
readonly DATALOADER_CLEAR: "orchestrion:dataloader:clear";
|
|
84
111
|
readonly DATALOADER_CLEAR_ALL: "orchestrion:dataloader:clearAll";
|
|
112
|
+
readonly AWS_SMITHY_CORE_SEND: "orchestrion:@smithy/core:send";
|
|
113
|
+
readonly AWS_SMITHY_CLIENT_SEND: "orchestrion:@smithy/smithy-client:send";
|
|
114
|
+
readonly AWS_SDK_SMITHY_CLIENT_SEND: "orchestrion:@aws-sdk/smithy-client:send";
|
|
85
115
|
readonly ANTHROPIC_CHAT: "orchestrion:@anthropic-ai/sdk:chat";
|
|
86
116
|
readonly ANTHROPIC_MODELS: "orchestrion:@anthropic-ai/sdk:models";
|
|
87
117
|
readonly ANTHROPIC_MESSAGES_STREAM: "orchestrion:@anthropic-ai/sdk:messages-stream";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const awsSdkConfig: {
|
|
2
|
+
channelName: string;
|
|
3
|
+
module: {
|
|
4
|
+
name: string;
|
|
5
|
+
versionRange: string;
|
|
6
|
+
filePath: string;
|
|
7
|
+
};
|
|
8
|
+
functionQuery: {
|
|
9
|
+
className: string;
|
|
10
|
+
methodName: string;
|
|
11
|
+
kind: "Async";
|
|
12
|
+
};
|
|
13
|
+
}[];
|
|
14
|
+
export declare const awsSdkChannels: {
|
|
15
|
+
readonly AWS_SMITHY_CORE_SEND: "orchestrion:@smithy/core:send";
|
|
16
|
+
readonly AWS_SMITHY_CLIENT_SEND: "orchestrion:@smithy/smithy-client:send";
|
|
17
|
+
readonly AWS_SDK_SMITHY_CLIENT_SEND: "orchestrion:@aws-sdk/smithy-client:send";
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=aws-sdk.d.ts.map
|
|
@@ -24,9 +24,7 @@ export declare const expressConfig: ({
|
|
|
24
24
|
export declare const expressChannels: {
|
|
25
25
|
readonly EXPRESS_HANDLE: "orchestrion:express:handle";
|
|
26
26
|
readonly ROUTER_HANDLE: "orchestrion:router:handle";
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
29
|
-
readonly ROUTER_ROUTE: "orchestrion:router:route";
|
|
30
|
-
readonly ROUTER_USE: "orchestrion:router:use";
|
|
27
|
+
readonly EXPRESS_REGISTER: "orchestrion:express:register";
|
|
28
|
+
readonly ROUTER_REGISTER: "orchestrion:router:register";
|
|
31
29
|
};
|
|
32
30
|
//# sourceMappingURL=express.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InstrumentationConfig } from '
|
|
1
|
+
import { InstrumentationConfig } from '..';
|
|
2
2
|
/**
|
|
3
3
|
* The orchestrion code-transform configs. Every instrumentable library is here
|
|
4
4
|
* so the transform is all-or-nothing: whenever orchestrion is enabled, all of
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InstrumentationConfig } from '
|
|
1
|
+
import { InstrumentationConfig } from '..';
|
|
2
2
|
export declare const ioredisConfig: InstrumentationConfig[];
|
|
3
3
|
export declare const ioredisChannels: {
|
|
4
4
|
readonly IOREDIS_COMMAND: "orchestrion:ioredis:command";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const koaConfig: {
|
|
2
|
+
channelName: string;
|
|
3
|
+
module: {
|
|
4
|
+
name: string;
|
|
5
|
+
versionRange: string;
|
|
6
|
+
filePath: string;
|
|
7
|
+
};
|
|
8
|
+
functionQuery: {
|
|
9
|
+
className: string;
|
|
10
|
+
methodName: string;
|
|
11
|
+
kind: "Sync";
|
|
12
|
+
};
|
|
13
|
+
}[];
|
|
14
|
+
export declare const koaChannels: {
|
|
15
|
+
readonly KOA_USE: "orchestrion:koa:use";
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=koa.d.ts.map
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const langchainConfig: {
|
|
2
|
+
channelName: string;
|
|
3
|
+
module: {
|
|
4
|
+
name: string;
|
|
5
|
+
versionRange: string;
|
|
6
|
+
filePath: string;
|
|
7
|
+
};
|
|
8
|
+
functionQuery: {
|
|
9
|
+
methodName: string;
|
|
10
|
+
kind: "Async";
|
|
11
|
+
};
|
|
12
|
+
}[];
|
|
13
|
+
export declare const langchainEmbeddingsChannels: string[];
|
|
14
|
+
export declare const langchainChannels: {
|
|
15
|
+
readonly LANGCHAIN_CHAT_MODEL_INVOKE: "orchestrion:@langchain/core:chatModelInvoke";
|
|
16
|
+
readonly LANGCHAIN_CHAT_MODEL_STREAM: "orchestrion:@langchain/core:chatModelStream";
|
|
17
|
+
};
|
|
4
18
|
//# sourceMappingURL=langchain.d.ts.map
|
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const langgraphConfig: ({
|
|
2
|
+
channelName: string;
|
|
3
|
+
module: import("@apm-js-collab/code-transformer").ModuleMatcher;
|
|
4
|
+
functionQuery: {
|
|
5
|
+
className: string;
|
|
6
|
+
methodName: string;
|
|
7
|
+
kind: "Sync";
|
|
8
|
+
};
|
|
9
|
+
} | {
|
|
10
|
+
channelName: string;
|
|
11
|
+
module: import("@apm-js-collab/code-transformer").ModuleMatcher;
|
|
12
|
+
functionQuery: {
|
|
13
|
+
functionName: string;
|
|
14
|
+
kind: "Sync";
|
|
15
|
+
};
|
|
16
|
+
})[];
|
|
17
|
+
export declare const langgraphChannels: {
|
|
18
|
+
readonly LANGGRAPH_STATE_GRAPH_COMPILE: "orchestrion:@langchain/langgraph:stateGraphCompile";
|
|
19
|
+
readonly LANGGRAPH_CREATE_REACT_AGENT: "orchestrion:@langchain/langgraph:createReactAgent";
|
|
20
|
+
};
|
|
4
21
|
//# sourceMappingURL=langgraph.d.ts.map
|