@sentry/server-utils 11.0.0-beta.1 → 11.0.0-rc.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/THIRD-PARTY-LICENSES.txt +32 -32
- package/build/cjs/ai/anthropic-ai/index.js +3 -3
- package/build/cjs/ai/anthropic-ai/index.js.map +1 -1
- package/build/cjs/ai/core/utils.js +41 -0
- package/build/cjs/ai/core/utils.js.map +1 -1
- package/build/cjs/ai/flue/constants.js +16 -0
- package/build/cjs/ai/flue/constants.js.map +1 -0
- package/build/cjs/ai/flue/index.js +115 -0
- package/build/cjs/ai/flue/index.js.map +1 -0
- package/build/cjs/ai/flue/utils.js +202 -0
- package/build/cjs/ai/flue/utils.js.map +1 -0
- package/build/cjs/ai/google-genai/index.js +18 -11
- package/build/cjs/ai/google-genai/index.js.map +1 -1
- package/build/cjs/ai/google-genai/streaming.js +11 -3
- package/build/cjs/ai/google-genai/streaming.js.map +1 -1
- package/build/cjs/ai/google-genai/utils.js +120 -10
- package/build/cjs/ai/google-genai/utils.js.map +1 -1
- package/build/cjs/ai/langchain/index.js +1 -1
- package/build/cjs/ai/langchain/index.js.map +1 -1
- package/build/cjs/ai/langgraph/index.js +5 -4
- package/build/cjs/ai/langgraph/index.js.map +1 -1
- package/build/cjs/ai/mastra/constants.js +40 -0
- package/build/cjs/ai/mastra/constants.js.map +1 -0
- package/build/cjs/ai/mastra/index.js +176 -0
- package/build/cjs/ai/mastra/index.js.map +1 -0
- package/build/cjs/ai/mastra/span-registry.js +20 -0
- package/build/cjs/ai/mastra/span-registry.js.map +1 -0
- package/build/cjs/ai/mastra/utils.js +159 -0
- package/build/cjs/ai/mastra/utils.js.map +1 -0
- package/build/cjs/ai/mistral/constants.js +20 -0
- package/build/cjs/ai/mistral/constants.js.map +1 -0
- package/build/cjs/ai/mistral/index.js +130 -0
- package/build/cjs/ai/mistral/index.js.map +1 -0
- package/build/cjs/ai/mistral/streaming.js +208 -0
- package/build/cjs/ai/mistral/streaming.js.map +1 -0
- package/build/cjs/ai/mistral/utils.js +87 -0
- package/build/cjs/ai/mistral/utils.js.map +1 -0
- package/build/cjs/ai/openai/index.js +3 -3
- package/build/cjs/ai/openai/index.js.map +1 -1
- package/build/cjs/ai/vercel-ai/index.js +13 -0
- package/build/cjs/ai/vercel-ai/index.js.map +1 -1
- package/build/cjs/ai/workers-ai/index.js +1 -4
- package/build/cjs/ai/workers-ai/index.js.map +1 -1
- package/build/cjs/ai/workers-ai/streaming.js +2 -3
- package/build/cjs/ai/workers-ai/streaming.js.map +1 -1
- package/build/cjs/ai/workers-ai/utils.js +2 -27
- package/build/cjs/ai/workers-ai/utils.js.map +1 -1
- package/build/cjs/eve.js +20 -0
- package/build/cjs/eve.js.map +1 -0
- package/build/cjs/index.js +66 -46
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.no-diagnostic-channels.js +26 -14
- package/build/cjs/index.no-diagnostic-channels.js.map +1 -1
- package/build/cjs/integrations/anthropic.js +1 -1
- package/build/cjs/integrations/anthropic.js.map +1 -1
- package/build/cjs/integrations/aws-sdk/constants.js +0 -2
- package/build/cjs/integrations/aws-sdk/constants.js.map +1 -1
- package/build/cjs/integrations/aws-sdk/services/lambda.js +1 -1
- package/build/cjs/integrations/aws-sdk/services/lambda.js.map +1 -1
- package/build/cjs/integrations/aws-sdk/services/sns.js +1 -1
- package/build/cjs/integrations/aws-sdk/services/sns.js.map +1 -1
- package/build/cjs/integrations/fastify/index.js.map +1 -1
- package/build/cjs/integrations/fastify/instrumentation.js.map +1 -1
- package/build/cjs/integrations/firebase/functions.js +13 -3
- package/build/cjs/integrations/firebase/functions.js.map +1 -1
- package/build/cjs/integrations/google-genai.js +1 -1
- package/build/cjs/integrations/google-genai.js.map +1 -1
- package/build/cjs/integrations/index.js +8 -0
- package/build/cjs/integrations/index.js.map +1 -1
- package/build/cjs/integrations/kafkajs/spans.js +8 -2
- package/build/cjs/integrations/kafkajs/spans.js.map +1 -1
- package/build/cjs/integrations/knex.js +6 -4
- package/build/cjs/integrations/knex.js.map +1 -1
- package/build/cjs/integrations/koa/index.js +2 -8
- package/build/cjs/integrations/koa/index.js.map +1 -1
- package/build/cjs/integrations/langchain.js +7 -1
- package/build/cjs/integrations/langchain.js.map +1 -1
- package/build/cjs/integrations/mastra.js +258 -0
- package/build/cjs/integrations/mastra.js.map +1 -0
- package/build/cjs/integrations/mistral.js +81 -0
- package/build/cjs/integrations/mistral.js.map +1 -0
- package/build/cjs/integrations/mysql.js +5 -5
- package/build/cjs/integrations/mysql.js.map +1 -1
- package/build/cjs/integrations/mysql2/index.js +4 -4
- package/build/cjs/integrations/mysql2/index.js.map +1 -1
- package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js +2 -3
- package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
- package/build/cjs/integrations/openai.js +1 -1
- package/build/cjs/integrations/openai.js.map +1 -1
- package/build/cjs/integrations/postgres-js.js +9 -8
- package/build/cjs/integrations/postgres-js.js.map +1 -1
- package/build/cjs/integrations/postgres.js +4 -4
- package/build/cjs/integrations/postgres.js.map +1 -1
- package/build/cjs/integrations/postgresjs.js +226 -0
- package/build/cjs/integrations/postgresjs.js.map +1 -0
- package/build/cjs/integrations/prisma/tracing-helper.js +6 -2
- package/build/cjs/integrations/prisma/tracing-helper.js.map +1 -1
- package/build/cjs/integrations/tedious.js +6 -5
- package/build/cjs/integrations/tedious.js.map +1 -1
- package/build/cjs/integrations/vercel-ai/util.js +0 -4
- package/build/cjs/integrations/vercel-ai/util.js.map +1 -1
- package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js +36 -1
- package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/cjs/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js +2 -1
- package/build/cjs/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
- package/build/cjs/orchestrion/bundler/options.js +1 -0
- package/build/cjs/orchestrion/bundler/options.js.map +1 -1
- package/build/cjs/orchestrion/bundler/rollup.js +6 -2
- package/build/cjs/orchestrion/bundler/rollup.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/channel-integration-definitions.js +2 -0
- package/build/cjs/orchestrion/config/channel-integration-definitions.js.map +1 -1
- package/build/cjs/orchestrion/config/index.js +12 -0
- package/build/cjs/orchestrion/config/index.js.map +1 -1
- package/build/cjs/orchestrion/config/mastra.js +38 -0
- package/build/cjs/orchestrion/config/mastra.js.map +1 -0
- package/build/cjs/orchestrion/config/mistral.js +57 -0
- package/build/cjs/orchestrion/config/mistral.js.map +1 -0
- package/build/cjs/tracing-channel.js +1 -0
- package/build/cjs/tracing-channel.js.map +1 -1
- package/build/cjs/utils/sql.js +236 -0
- package/build/cjs/utils/sql.js.map +1 -0
- package/build/esm/ai/anthropic-ai/index.js +4 -4
- package/build/esm/ai/anthropic-ai/index.js.map +1 -1
- package/build/esm/ai/core/utils.js +42 -3
- package/build/esm/ai/core/utils.js.map +1 -1
- package/build/esm/ai/flue/constants.js +11 -0
- package/build/esm/ai/flue/constants.js.map +1 -0
- package/build/esm/ai/flue/index.js +113 -0
- package/build/esm/ai/flue/index.js.map +1 -0
- package/build/esm/ai/flue/utils.js +193 -0
- package/build/esm/ai/flue/utils.js.map +1 -0
- package/build/esm/ai/google-genai/index.js +20 -13
- package/build/esm/ai/google-genai/index.js.map +1 -1
- package/build/esm/ai/google-genai/streaming.js +9 -1
- package/build/esm/ai/google-genai/streaming.js.map +1 -1
- package/build/esm/ai/google-genai/utils.js +117 -11
- package/build/esm/ai/google-genai/utils.js.map +1 -1
- package/build/esm/ai/langchain/index.js +1 -1
- package/build/esm/ai/langchain/index.js.map +1 -1
- package/build/esm/ai/langgraph/index.js +5 -4
- package/build/esm/ai/langgraph/index.js.map +1 -1
- package/build/esm/ai/mastra/constants.js +29 -0
- package/build/esm/ai/mastra/constants.js.map +1 -0
- package/build/esm/ai/mastra/index.js +174 -0
- package/build/esm/ai/mastra/index.js.map +1 -0
- package/build/esm/ai/mastra/span-registry.js +16 -0
- package/build/esm/ai/mastra/span-registry.js.map +1 -0
- package/build/esm/ai/mastra/utils.js +152 -0
- package/build/esm/ai/mastra/utils.js.map +1 -0
- package/build/esm/ai/mistral/constants.js +15 -0
- package/build/esm/ai/mistral/constants.js.map +1 -0
- package/build/esm/ai/mistral/index.js +126 -0
- package/build/esm/ai/mistral/index.js.map +1 -0
- package/build/esm/ai/mistral/streaming.js +205 -0
- package/build/esm/ai/mistral/streaming.js.map +1 -0
- package/build/esm/ai/mistral/utils.js +82 -0
- package/build/esm/ai/mistral/utils.js.map +1 -0
- package/build/esm/ai/openai/index.js +3 -3
- package/build/esm/ai/openai/index.js.map +1 -1
- package/build/esm/ai/vercel-ai/index.js +14 -2
- package/build/esm/ai/vercel-ai/index.js.map +1 -1
- package/build/esm/ai/workers-ai/index.js +2 -5
- package/build/esm/ai/workers-ai/index.js.map +1 -1
- package/build/esm/ai/workers-ai/streaming.js +1 -2
- package/build/esm/ai/workers-ai/streaming.js.map +1 -1
- package/build/esm/ai/workers-ai/utils.js +2 -27
- package/build/esm/ai/workers-ai/utils.js.map +1 -1
- package/build/esm/eve.js +18 -0
- package/build/esm/eve.js.map +1 -0
- package/build/esm/index.js +9 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/index.no-diagnostic-channels.js +5 -0
- package/build/esm/index.no-diagnostic-channels.js.map +1 -1
- package/build/esm/integrations/anthropic.js +1 -1
- package/build/esm/integrations/anthropic.js.map +1 -1
- package/build/esm/integrations/aws-sdk/constants.js +1 -2
- package/build/esm/integrations/aws-sdk/constants.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/lambda.js +2 -2
- package/build/esm/integrations/aws-sdk/services/lambda.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/sns.js +3 -3
- package/build/esm/integrations/aws-sdk/services/sns.js.map +1 -1
- package/build/esm/integrations/fastify/index.js.map +1 -1
- package/build/esm/integrations/fastify/instrumentation.js.map +1 -1
- package/build/esm/integrations/firebase/functions.js +15 -5
- package/build/esm/integrations/firebase/functions.js.map +1 -1
- package/build/esm/integrations/google-genai.js +1 -1
- package/build/esm/integrations/google-genai.js.map +1 -1
- package/build/esm/integrations/index.js +8 -0
- package/build/esm/integrations/index.js.map +1 -1
- package/build/esm/integrations/kafkajs/spans.js +8 -2
- package/build/esm/integrations/kafkajs/spans.js.map +1 -1
- package/build/esm/integrations/knex.js +6 -4
- package/build/esm/integrations/knex.js.map +1 -1
- package/build/esm/integrations/koa/index.js +3 -9
- package/build/esm/integrations/koa/index.js.map +1 -1
- package/build/esm/integrations/langchain.js +7 -1
- package/build/esm/integrations/langchain.js.map +1 -1
- package/build/esm/integrations/mastra.js +243 -0
- package/build/esm/integrations/mastra.js.map +1 -0
- package/build/esm/integrations/mistral.js +66 -0
- package/build/esm/integrations/mistral.js.map +1 -0
- package/build/esm/integrations/mysql.js +4 -4
- package/build/esm/integrations/mysql.js.map +1 -1
- package/build/esm/integrations/mysql2/index.js +4 -4
- package/build/esm/integrations/mysql2/index.js.map +1 -1
- package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js +2 -3
- package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
- package/build/esm/integrations/openai.js +1 -1
- package/build/esm/integrations/openai.js.map +1 -1
- package/build/esm/integrations/postgres-js.js +9 -8
- package/build/esm/integrations/postgres-js.js.map +1 -1
- package/build/esm/integrations/postgres.js +4 -4
- package/build/esm/integrations/postgres.js.map +1 -1
- package/build/esm/integrations/postgresjs.js +220 -0
- package/build/esm/integrations/postgresjs.js.map +1 -0
- package/build/esm/integrations/prisma/tracing-helper.js +6 -2
- package/build/esm/integrations/prisma/tracing-helper.js.map +1 -1
- package/build/esm/integrations/tedious.js +5 -4
- package/build/esm/integrations/tedious.js.map +1 -1
- package/build/esm/integrations/vercel-ai/util.js +1 -4
- package/build/esm/integrations/vercel-ai/util.js.map +1 -1
- package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +38 -3
- package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js +2 -1
- package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
- package/build/esm/orchestrion/bundler/options.js +1 -0
- package/build/esm/orchestrion/bundler/options.js.map +1 -1
- package/build/esm/orchestrion/bundler/rollup.js +6 -2
- package/build/esm/orchestrion/bundler/rollup.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/channel-integration-definitions.js +2 -0
- package/build/esm/orchestrion/config/channel-integration-definitions.js.map +1 -1
- package/build/esm/orchestrion/config/index.js +11 -1
- package/build/esm/orchestrion/config/index.js.map +1 -1
- package/build/esm/orchestrion/config/mastra.js +34 -0
- package/build/esm/orchestrion/config/mastra.js.map +1 -0
- package/build/esm/orchestrion/config/mistral.js +53 -0
- package/build/esm/orchestrion/config/mistral.js.map +1 -0
- package/build/esm/package.json +1 -1
- package/build/esm/tracing-channel.js +1 -1
- package/build/esm/tracing-channel.js.map +1 -1
- package/build/esm/utils/sql.js +231 -0
- package/build/esm/utils/sql.js.map +1 -0
- package/build/types/ai/anthropic-ai/index.d.ts +1 -1
- package/build/types/ai/anthropic-ai/index.d.ts.map +1 -1
- package/build/types/ai/core/utils.d.ts +28 -0
- package/build/types/ai/core/utils.d.ts.map +1 -1
- package/build/types/ai/flue/constants.d.ts +35 -0
- package/build/types/ai/flue/constants.d.ts.map +1 -0
- package/build/types/ai/flue/index.d.ts +18 -0
- package/build/types/ai/flue/index.d.ts.map +1 -0
- package/build/types/ai/flue/types.d.ts +118 -0
- package/build/types/ai/flue/types.d.ts.map +1 -0
- package/build/types/ai/flue/utils.d.ts +38 -0
- package/build/types/ai/flue/utils.d.ts.map +1 -0
- package/build/types/ai/google-genai/index.d.ts +1 -1
- package/build/types/ai/google-genai/index.d.ts.map +1 -1
- package/build/types/ai/google-genai/streaming.d.ts.map +1 -1
- package/build/types/ai/google-genai/utils.d.ts +28 -4
- package/build/types/ai/google-genai/utils.d.ts.map +1 -1
- package/build/types/ai/index.d.ts +4 -0
- package/build/types/ai/index.d.ts.map +1 -1
- package/build/types/ai/langgraph/index.d.ts +1 -1
- package/build/types/ai/langgraph/index.d.ts.map +1 -1
- package/build/types/ai/mastra/constants.d.ts +32 -0
- package/build/types/ai/mastra/constants.d.ts.map +1 -0
- package/build/types/ai/mastra/index.d.ts +43 -0
- package/build/types/ai/mastra/index.d.ts.map +1 -0
- package/build/types/ai/mastra/span-registry.d.ts +5 -0
- package/build/types/ai/mastra/span-registry.d.ts.map +1 -0
- package/build/types/ai/mastra/types.d.ts +84 -0
- package/build/types/ai/mastra/types.d.ts.map +1 -0
- package/build/types/ai/mastra/utils.d.ts +23 -0
- package/build/types/ai/mastra/utils.d.ts.map +1 -0
- package/build/types/ai/mistral/constants.d.ts +30 -0
- package/build/types/ai/mistral/constants.d.ts.map +1 -0
- package/build/types/ai/mistral/index.d.ts +20 -0
- package/build/types/ai/mistral/index.d.ts.map +1 -0
- package/build/types/ai/mistral/streaming.d.ts +24 -0
- package/build/types/ai/mistral/streaming.d.ts.map +1 -0
- package/build/types/ai/mistral/types.d.ts +39 -0
- package/build/types/ai/mistral/types.d.ts.map +1 -0
- package/build/types/ai/mistral/utils.d.ts +20 -0
- package/build/types/ai/mistral/utils.d.ts.map +1 -0
- package/build/types/ai/openai/index.d.ts +1 -1
- package/build/types/ai/openai/index.d.ts.map +1 -1
- package/build/types/ai/vercel-ai/index.d.ts +6 -0
- package/build/types/ai/vercel-ai/index.d.ts.map +1 -1
- package/build/types/ai/vercel-ai/vercel-ai-attributes.d.ts +13 -0
- package/build/types/ai/vercel-ai/vercel-ai-attributes.d.ts.map +1 -1
- package/build/types/ai/workers-ai/index.d.ts.map +1 -1
- package/build/types/ai/workers-ai/utils.d.ts +2 -14
- package/build/types/ai/workers-ai/utils.d.ts.map +1 -1
- package/build/types/eve.d.ts +47 -0
- package/build/types/eve.d.ts.map +1 -0
- package/build/types/exports.d.ts +4 -0
- package/build/types/exports.d.ts.map +1 -1
- package/build/types/index.d.ts +7 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/integrations/aws-sdk/constants.d.ts +2 -3
- package/build/types/integrations/aws-sdk/constants.d.ts.map +1 -1
- package/build/types/integrations/aws-sdk/services/lambda.d.ts.map +1 -1
- package/build/types/integrations/aws-sdk/services/sns.d.ts.map +1 -1
- package/build/types/integrations/fastify/index.d.ts +1 -1
- package/build/types/integrations/fastify/instrumentation.d.ts +1 -1
- package/build/types/integrations/firebase/functions.d.ts.map +1 -1
- package/build/types/integrations/index.d.ts.map +1 -1
- package/build/types/integrations/kafkajs/spans.d.ts.map +1 -1
- package/build/types/integrations/koa/index.d.ts.map +1 -1
- package/build/types/integrations/langchain.d.ts.map +1 -1
- package/build/types/integrations/mastra.d.ts +18 -0
- package/build/types/integrations/mastra.d.ts.map +1 -0
- package/build/types/integrations/mistral.d.ts +7 -0
- package/build/types/integrations/mistral.d.ts.map +1 -0
- package/build/types/integrations/mysql2/index.d.ts.map +1 -1
- package/build/types/integrations/postgres-js.d.ts +1 -1
- package/build/types/integrations/postgres-js.d.ts.map +1 -1
- package/build/types/integrations/postgres.d.ts.map +1 -1
- package/build/types/integrations/postgresjs.d.ts +75 -0
- package/build/types/integrations/postgresjs.d.ts.map +1 -0
- package/build/types/integrations/prisma/tracing-helper.d.ts.map +1 -1
- package/build/types/integrations/vercel-ai/util.d.ts +2 -2
- package/build/types/integrations/vercel-ai/util.d.ts.map +1 -1
- package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/options.d.ts +9 -0
- package/build/types/orchestrion/bundler/options.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -1
- package/build/types/orchestrion/channels.d.ts +10 -3
- package/build/types/orchestrion/channels.d.ts.map +1 -1
- package/build/types/orchestrion/config/channel-integration-definitions.d.ts +6 -0
- package/build/types/orchestrion/config/channel-integration-definitions.d.ts.map +1 -1
- package/build/types/orchestrion/config/index.d.ts +41 -0
- package/build/types/orchestrion/config/index.d.ts.map +1 -1
- package/build/types/orchestrion/config/mastra.d.ts +8 -0
- package/build/types/orchestrion/config/mastra.d.ts.map +1 -0
- package/build/types/orchestrion/config/mistral.d.ts +46 -0
- package/build/types/orchestrion/config/mistral.d.ts.map +1 -0
- package/build/types/orchestrion/config/pg.d.ts +1 -1
- package/build/types/tracing-channel.d.ts +8 -0
- package/build/types/tracing-channel.d.ts.map +1 -1
- package/build/types/utils/sql.d.ts +53 -0
- package/build/types/utils/sql.d.ts.map +1 -0
- package/package.json +3 -3
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { Span, SpanAttributeValue } from '@sentry/core';
|
|
2
|
+
import { setOutputMessagesAttribute } from '../core/utils';
|
|
3
|
+
export { setOutputMessagesAttribute };
|
|
2
4
|
/**
|
|
3
5
|
* Determine the gen_ai operation name from the inputs passed to `AI.run`.
|
|
4
6
|
* Workers AI exposes a single `run` method, so we infer the operation from the input shape.
|
|
@@ -15,20 +17,6 @@ export declare function extractRequestAttributes(model: unknown, inputs: unknown
|
|
|
15
17
|
* Only called when `recordInputs` is enabled.
|
|
16
18
|
*/
|
|
17
19
|
export declare function addRequestAttributes(span: Span, inputs: unknown, operationName: string): void;
|
|
18
|
-
/**
|
|
19
|
-
* Build the `gen_ai.output.messages` value (a single assistant message with text and/or
|
|
20
|
-
* tool-call parts) from the response text and tool calls.
|
|
21
|
-
*
|
|
22
|
-
* We set this in addition to the deprecated `gen_ai.response.text` / `gen_ai.response.tool_calls`
|
|
23
|
-
* attributes because Sentry's product reads the model output from `gen_ai.output.messages` first.
|
|
24
|
-
* Relay migrates `gen_ai.response.text` into `gen_ai.output.messages`, but the tool-calls half of
|
|
25
|
-
* that migration is lossy — so tool-call turns would otherwise render an empty Output. Emitting the
|
|
26
|
-
* normalized message here (mirroring the Vercel AI integration) keeps tool calls visible.
|
|
27
|
-
*/
|
|
28
|
-
export declare function setOutputMessagesAttribute(span: Span, { responseText, toolCalls }: {
|
|
29
|
-
responseText?: string;
|
|
30
|
-
toolCalls?: unknown[];
|
|
31
|
-
}): void;
|
|
32
20
|
/**
|
|
33
21
|
* Record the response attributes (token usage, response text, tool calls) on the span.
|
|
34
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/ai/workers-ai/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/ai/workers-ai/utils.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAA6B,0BAA0B,EAA2B,MAAM,eAAe,CAAC;AAE/G,OAAO,EAAE,0BAA0B,EAAE,CAAC;AAItC;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,YAAY,CAAC;AAE3D,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAGhF,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,OAAO,GAAG,sBAAsB,CAUxE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,OAAO,EACf,aAAa,EAAE,MAAM,GACpB,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAmCpC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CA+B7F;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,GAAG,IAAI,CAkC/F"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The subset of eve's hook context (`HookContext` from `eve/hooks`) this helper reads. Typed
|
|
3
|
+
* structurally rather than importing from `eve`, so the SDK carries no dependency on the framework —
|
|
4
|
+
* the shape is checked at the `defineHook(...)` call site in the user's app instead.
|
|
5
|
+
*/
|
|
6
|
+
interface EveHookContext {
|
|
7
|
+
session: {
|
|
8
|
+
id: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
type EveHookHandler = (event: unknown, context: EveHookContext) => void;
|
|
12
|
+
interface EveConversationHookOptions {
|
|
13
|
+
/**
|
|
14
|
+
* Derive the Sentry conversation id from the eve hook context. Defaults to the durable session id
|
|
15
|
+
* (`ctx.session.id`), which is stable across every turn of a session and so groups them into one
|
|
16
|
+
* conversation.
|
|
17
|
+
*/
|
|
18
|
+
getConversationId?: (context: EveHookContext) => string | null | undefined;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Builds the hook definition for an eve `agent/hooks/*.ts` file that tags a session's AI spans with
|
|
22
|
+
* a Sentry conversation id, linking every turn of the session in the Agents "Conversations" view.
|
|
23
|
+
*
|
|
24
|
+
* ```ts
|
|
25
|
+
* // agent/hooks/sentry.ts
|
|
26
|
+
* import * as Sentry from '@sentry/node';
|
|
27
|
+
* import { defineHook } from 'eve/hooks';
|
|
28
|
+
*
|
|
29
|
+
* export default defineHook(Sentry.eveConversationHook());
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* The id is set on the isolation scope; the default (always-on) `conversationIdIntegration` then
|
|
33
|
+
* stamps `gen_ai.conversation.id` onto the gen_ai spans the Vercel AI instrumentation records for
|
|
34
|
+
* that turn. That indirection is why the id has to be set here and not on the AI call: eve's session
|
|
35
|
+
* id never reaches the AI SDK's telemetry channel, so it can only be attached via the scope.
|
|
36
|
+
*
|
|
37
|
+
* Subscribes to both `turn.started` and `step.started`. Each eve turn is a fresh durable-workflow
|
|
38
|
+
* request with its own isolation scope, and a turn that parks and resumes (approvals, compaction)
|
|
39
|
+
* resumes in yet another request; `turn.started` alone would miss the model calls after a resume.
|
|
40
|
+
* `step.started` fires before every model call, so together they cover each request that produces
|
|
41
|
+
* spans. Re-setting the same id is idempotent, so the overlap is harmless.
|
|
42
|
+
*/
|
|
43
|
+
export declare function eveConversationHook(options?: EveConversationHookOptions): {
|
|
44
|
+
events: Record<'turn.started' | 'step.started', EveHookHandler>;
|
|
45
|
+
};
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=eve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eve.d.ts","sourceRoot":"","sources":["../../src/eve.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,UAAU,cAAc;IACtB,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;CACzB;AAED,KAAK,cAAc,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;AAExE,UAAU,0BAA0B;IAClC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC5E;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,0BAA+B,GAAG;IAC7E,MAAM,EAAE,MAAM,CAAC,cAAc,GAAG,cAAc,EAAE,cAAc,CAAC,CAAC;CACjE,CAcA"}
|
package/build/types/exports.d.ts
CHANGED
|
@@ -2,4 +2,8 @@ export { setHttpServerSpanRouteAttribute } from './utils/setHttpServerSpanRouteA
|
|
|
2
2
|
export { setAsyncLocalStorageAsyncContextStrategy } from './async-context';
|
|
3
3
|
export { openTelemetryIntegration, getOtlpTracesEndpoint } from './opentelemetry';
|
|
4
4
|
export * from './ai';
|
|
5
|
+
export { getSqlQuerySummary, sanitizeSqlQuery, sanitizeSqlQueryWithSummary } from './utils/sql';
|
|
6
|
+
export type { SqlDialect } from './utils/sql';
|
|
7
|
+
export { instrumentPostgresJsSql } from './integrations/postgresjs';
|
|
8
|
+
export type { PostgresConnectionContext } from './integrations/postgresjs';
|
|
5
9
|
//# sourceMappingURL=exports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../src/exports.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,wCAAwC,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAClF,cAAc,MAAM,CAAC"}
|
|
1
|
+
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../src/exports.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,wCAAwC,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAClF,cAAc,MAAM,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAChG,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,YAAY,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC"}
|
package/build/types/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export { bindTracingChannelToSpan } from './tracing-channel';
|
|
|
6
6
|
export type { TracingChannelPayloadWithSpan } from './tracing-channel';
|
|
7
7
|
export type { InstrumentationConfig } from './orchestrion/apmTypes';
|
|
8
8
|
export { orchestrionModuleInjected } from './utils/moduleInjected';
|
|
9
|
+
export { eveConversationHook } from './eve';
|
|
10
|
+
export { getInstrumentedModuleNames } from './orchestrion/config';
|
|
9
11
|
export { fastifyIntegration, setupFastifyErrorHandler, } from './integrations/fastify';
|
|
10
12
|
/**
|
|
11
13
|
* @deprecated This is a temporary export to avoid breaking changes. It will be removed in the next major version.
|
|
@@ -26,9 +28,14 @@ export { kafkaIntegration } from './integrations/kafkajs';
|
|
|
26
28
|
export { knexIntegration } from './integrations/knex';
|
|
27
29
|
export { langChainIntegration } from './integrations/langchain';
|
|
28
30
|
export { langGraphIntegration } from './integrations/langgraph';
|
|
31
|
+
export { createFlueInstrumentation } from './ai/flue';
|
|
32
|
+
export type { FlueOptions } from './ai/flue';
|
|
33
|
+
export { mastraIntegration } from './integrations/mastra';
|
|
34
|
+
export { SentryMastraExporter } from './ai/mastra';
|
|
29
35
|
export { lruMemoizerIntegration } from './integrations/lru-memoizer';
|
|
30
36
|
export { mongoIntegration } from './integrations/mongodb';
|
|
31
37
|
export { mongooseIntegration } from './integrations/mongoose';
|
|
38
|
+
export { mistralAIIntegration } from './integrations/mistral';
|
|
32
39
|
export { mysqlIntegration } from './integrations/mysql';
|
|
33
40
|
export { mysql2Integration } from './integrations/mysql2';
|
|
34
41
|
export { openAIIntegration } from './integrations/openai';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAG1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,IAAI,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAC3G,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,YAAY,EAAE,6B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,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAErG,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* AWS-specific span constants used by the aws-sdk channel integration that are NOT covered by
|
|
3
3
|
* `@sentry/conventions/attributes` (attribute names that exist there are imported from there
|
|
4
|
-
* directly). These are either Sentry-specific (the span origin)
|
|
5
|
-
* obsolete OTel conventions with no `@sentry/conventions` export.
|
|
4
|
+
* directly). These are either Sentry-specific (the span origin) or attribute *values* (not keys).
|
|
6
5
|
*/
|
|
7
6
|
/** The span origin every aws-sdk channel span carries. */
|
|
8
7
|
export declare const AWS_SDK_ORIGIN = "auto.aws.aws_sdk";
|
|
9
8
|
/** DynamoDB `db.system.name` value (an attribute value, not a key, so not covered by conventions). */
|
|
10
9
|
export declare const DB_SYSTEM_VALUE_DYNAMODB = "dynamodb";
|
|
11
|
-
|
|
10
|
+
/** SNS `messaging.destination_kind` value (an attribute value, not a key, so not covered by conventions). */
|
|
12
11
|
export declare const MESSAGING_DESTINATION_KIND_VALUE_TOPIC = "topic";
|
|
13
12
|
export declare const GEN_AI_OPERATION_NAME_VALUE_CHAT = "chat";
|
|
14
13
|
export declare const GEN_AI_OPERATION_NAME_VALUE_GENERATE_CONTENT = "generate_content";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/integrations/aws-sdk/constants.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/integrations/aws-sdk/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,0DAA0D;AAC1D,eAAO,MAAM,cAAc,qBAAqB,CAAC;AAEjD,sGAAsG;AACtG,eAAO,MAAM,wBAAwB,aAAa,CAAC;AAEnD,6GAA6G;AAC7G,eAAO,MAAM,sCAAsC,UAAU,CAAC;AAG9D,eAAO,MAAM,gCAAgC,SAAS,CAAC;AACvD,eAAO,MAAM,4CAA4C,qBAAqB,CAAC;AAC/E,eAAO,MAAM,+BAA+B,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lambda.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/aws-sdk/services/lambda.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AASzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI5E,qBAAa,sBAAuB,YAAW,gBAAgB;IACtD,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,GAAG,eAAe,CAgBrE;IAEM,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAIvE;IAEM,YAAY,CAAC,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"lambda.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/aws-sdk/services/lambda.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AASzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI5E,qBAAa,sBAAuB,YAAW,gBAAgB;IACtD,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,GAAG,eAAe,CAgBrE;IAEM,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAIvE;IAEM,YAAY,CAAC,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CASlE;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sns.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/aws-sdk/services/sns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"sns.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/aws-sdk/services/sns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAazC,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEtE,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAiB5E,qBAAa,mBAAoB,YAAW,gBAAgB;IACnD,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,GAAG,eAAe,CA4CrE;IAEM,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAKvE;IAEM,YAAY,CAAC,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAKlE;CACF"}
|
|
@@ -30,7 +30,7 @@ interface FastifyIntegrationOptions {
|
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Adds Sentry tracing instrumentation for [Fastify](https://fastify.dev/).
|
|
33
|
-
* This integration supports Fastify v3.21.0-
|
|
33
|
+
* This integration supports Fastify v3.21.0-v6.
|
|
34
34
|
*
|
|
35
35
|
* For more information, see the [fastify documentation](https://docs.sentry.io/platforms/javascript/guides/fastify/).
|
|
36
36
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Set up the Fastify (>= 3.21.0 <
|
|
2
|
+
* Set up the Fastify (>= 3.21.0 < 7) instrumentation by subscribing to the `fastify.initialization`
|
|
3
3
|
* diagnostics channel and synchronously instrumenting every Fastify instance as it is created.
|
|
4
4
|
*/
|
|
5
5
|
export declare function instrumentFastify(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../../src/integrations/firebase/functions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../../src/integrations/firebase/functions.ts"],"names":[],"mappings":"AA4BA,UAAU,uBAAuB;IAI/B,SAAS,EAAE,OAAO,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,CAclG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/index.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,iEAAiE;AACjE,wBAAgB,sBAAsB,IAAI,WAAW,EAAE,CA+BtD;AAED,+EAA+E;AAC/E,wBAAgB,oBAAoB,IAAI,WAAW,EAAE,CAEpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spans.d.ts","sourceRoot":"","sources":["../../../../src/integrations/kafkajs/spans.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAUnE,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAmBrD,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,YAAY,GAAG,SAAS,CAAC;IAClC,aAAa,EAAE,SAAS,GAAG,SAAS,CAAC;IACrC,UAAU,EAAE,cAAc,CAAC;IAC3B,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAMnG;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG,QAAQ,EAAE,GAAG,SAAS,CAwB5F;
|
|
1
|
+
{"version":3,"file":"spans.d.ts","sourceRoot":"","sources":["../../../../src/integrations/kafkajs/spans.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAUnE,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAmBrD,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,YAAY,GAAG,SAAS,CAAC;IAClC,aAAa,EAAE,SAAS,GAAG,SAAS,CAAC;IACrC,UAAU,EAAE,cAAc,CAAC;IAC3B,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAMnG;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG,QAAQ,EAAE,GAAG,SAAS,CAwB5F;AAaD,oGAAoG;AACpG,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,mBAAmB,GAAG,IAAI,CA2BjH;AAED,0FAA0F;AAC1F,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CA6BvE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CActE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CASnF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/koa/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/koa/index.ts"],"names":[],"mappings":"AA8EA,MAAM,WAAW,qBAAqB;IACpC,+EAA+E;IAC/E,gBAAgB,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,QAAQ,CAAC,CAAC;CACnD;AAyLD;;;;;GAKG;AACH,eAAO,MAAM,cAAc;;CAAqC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"langchain.d.ts","sourceRoot":"","sources":["../../../src/integrations/langchain.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"langchain.d.ts","sourceRoot":"","sources":["../../../src/integrations/langchain.ts"],"names":[],"mappings":"AAsHA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;CAA2C,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { MastraExporterOptions } from '../ai/mastra';
|
|
2
|
+
export interface MastraOptions extends MastraExporterOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Construct a Mastra observability pipeline when the app has not configured one. Defaults to
|
|
5
|
+
* `true`. Uses an `@mastra/observability` the app already has; the SDK never installs it.
|
|
6
|
+
*/
|
|
7
|
+
bootstrapObservability?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Hooks the `Mastra` constructor and registers a Sentry exporter via `registerExporter()`.
|
|
11
|
+
* Enabled by default. Disable with
|
|
12
|
+
* `defaultIntegrations: integrations => integrations.filter(i => i.name !== 'Mastra')`.
|
|
13
|
+
* Requires the runtime hook or bundler plugin, and `@mastra/core >= 1.63.2`.
|
|
14
|
+
*/
|
|
15
|
+
export declare const mastraIntegration: (options?: MastraOptions | undefined) => import("@sentry/core").Integration & {
|
|
16
|
+
name: "Mastra";
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=mastra.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mastra.d.ts","sourceRoot":"","sources":["../../../src/integrations/mastra.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAS1D,MAAM,WAAW,aAAc,SAAQ,qBAAqB;IAC1D;;;OAGG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AA8WD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;CAAwC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An integration to instrument @mistralai/mistrailai.
|
|
3
|
+
*/
|
|
4
|
+
export declare const mistralAIIntegration: (options?: import("../ai/core/utils").GenAiOptions | undefined) => import("@sentry/core").Integration & {
|
|
5
|
+
name: "Mistral";
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=mistral.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mistral.d.ts","sourceRoot":"","sources":["../../../src/integrations/mistral.ts"],"names":[],"mappings":"AAuGA;;GAEG;AACH,eAAO,MAAM,oBAAoB;;CAA2C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/mysql2/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/mysql2/index.ts"],"names":[],"mappings":"AAsKA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB;;CAAwC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Span } from '@sentry/core';
|
|
2
|
-
import type
|
|
2
|
+
import { type PostgresConnectionContext } from './postgresjs';
|
|
3
3
|
export interface PostgresJsIntegrationOptions {
|
|
4
4
|
/**
|
|
5
5
|
* Only create spans when there's already an active parent span. Defaults to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgres-js.d.ts","sourceRoot":"","sources":["../../../src/integrations/postgres-js.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAiB,IAAI,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"postgres-js.d.ts","sourceRoot":"","sources":["../../../src/integrations/postgres-js.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAiB,IAAI,EAAE,MAAM,cAAc,CAAC;AAYxD,OAAO,EAKL,KAAK,yBAAyB,EAC/B,MAAM,cAAc,CAAC;AAiCtB,MAAM,WAAW,4BAA4B;IAC3C;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,yBAAyB,CAAC,EAAE,yBAAyB,KAAK,IAAI,CAAC;CACtH;AAoRD;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB;;CAA4C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../src/integrations/postgres.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../src/integrations/postgres.ts"],"names":[],"mappings":"AAgSA;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB;yBAjN+B,OAAO;;;CAiNI,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { type Span, type SpanAttributes } from '@sentry/core';
|
|
2
|
+
export type PostgresConnectionContext = {
|
|
3
|
+
ATTR_DB_NAMESPACE?: string;
|
|
4
|
+
ATTR_SERVER_ADDRESS?: string;
|
|
5
|
+
ATTR_SERVER_PORT?: string;
|
|
6
|
+
};
|
|
7
|
+
interface PostgresJsSqlInstrumentationOptions {
|
|
8
|
+
/**
|
|
9
|
+
* Whether to require a parent span for the instrumentation.
|
|
10
|
+
* If set to true, the instrumentation will only create spans if there is a parent span
|
|
11
|
+
* available in the current scope.
|
|
12
|
+
* @default true
|
|
13
|
+
*/
|
|
14
|
+
requireParentSpan?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Hook to modify the span before it is started.
|
|
17
|
+
* This can be used to set additional attributes or modify the span in any way.
|
|
18
|
+
*/
|
|
19
|
+
requestHook?: (span: Span, sanitizedSqlQuery: string, postgresConnectionContext?: PostgresConnectionContext) => void;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Instruments a postgres.js `sql` instance with Sentry tracing.
|
|
23
|
+
*
|
|
24
|
+
* This is a portable instrumentation function that works in any environment
|
|
25
|
+
* (Node.js, Cloudflare Workers, etc.) without depending on OpenTelemetry.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import postgres from 'postgres';
|
|
30
|
+
* import * as Sentry from '@sentry/cloudflare'; // or '@sentry/deno'
|
|
31
|
+
*
|
|
32
|
+
* const sql = Sentry.instrumentPostgresJsSql(
|
|
33
|
+
* postgres({ host: 'localhost', database: 'mydb' })
|
|
34
|
+
* );
|
|
35
|
+
*
|
|
36
|
+
* // All queries now create Sentry spans
|
|
37
|
+
* await sql`SELECT * FROM users WHERE id = ${userId}`;
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export declare function instrumentPostgresJsSql<T>(sql: T, options?: PostgresJsSqlInstrumentationOptions): T;
|
|
41
|
+
/**
|
|
42
|
+
* Reconstructs the full SQL query from template strings with PostgreSQL placeholders.
|
|
43
|
+
*
|
|
44
|
+
* For sql`SELECT * FROM users WHERE id = ${123} AND name = ${'foo'}`:
|
|
45
|
+
* strings = ["SELECT * FROM users WHERE id = ", " AND name = ", ""]
|
|
46
|
+
* returns: "SELECT * FROM users WHERE id = $1 AND name = $2"
|
|
47
|
+
*
|
|
48
|
+
* @internal Exported for testing only
|
|
49
|
+
*/
|
|
50
|
+
export declare function _reconstructQuery(strings: string[] | undefined): string | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Returns connection context attributes.
|
|
53
|
+
*
|
|
54
|
+
* @internal Exported for the diagnostics-channel integration.
|
|
55
|
+
*/
|
|
56
|
+
export declare function _getConnectionAttributes(connectionContext: PostgresConnectionContext): SpanAttributes;
|
|
57
|
+
/**
|
|
58
|
+
* Extracts the DB operation name from a SQL query, preferring the server-reported `command`.
|
|
59
|
+
*
|
|
60
|
+
* @internal Exported for the diagnostics-channel integration.
|
|
61
|
+
*/
|
|
62
|
+
export declare function _getOperationName(sanitizedQuery: string | undefined, command?: string): string | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Builds a {@link PostgresConnectionContext} from postgres.js' parsed options
|
|
65
|
+
* (which store `host`/`port` as arrays). Defaults to 'localhost'/5432.
|
|
66
|
+
*
|
|
67
|
+
* @internal Exported for the diagnostics-channel integration.
|
|
68
|
+
*/
|
|
69
|
+
export declare function _buildConnectionContext(options: {
|
|
70
|
+
host?: string[];
|
|
71
|
+
port?: number[];
|
|
72
|
+
database?: string;
|
|
73
|
+
}): PostgresConnectionContext;
|
|
74
|
+
export {};
|
|
75
|
+
//# sourceMappingURL=postgresjs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgresjs.d.ts","sourceRoot":"","sources":["../../../src/integrations/postgresjs.ts"],"names":[],"mappings":"AAKA,OAAO,EAML,KAAK,IAAI,EACT,KAAK,cAAc,EAGpB,MAAM,cAAc,CAAC;AAkBtB,MAAM,MAAM,yBAAyB,GAAG;IACtC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,UAAU,mCAAmC;IAC3C;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,yBAAyB,CAAC,EAAE,yBAAyB,KAAK,IAAI,CAAC;CACtH;AAYD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,GA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AE,MAAM,CAAC,CAAC;IACpC,KAAK,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAChD,IAAI,EAAE,gBAAgB,CAAC;CACxB,CAAC;AAiJF;;GAEG;AACH,qBAAa,mBAAoB,YAAW,aAAa;IACvD,OAAO,CAAC,eAAe,CAAsB;IAE7C,YAAmB,EAAE,eAAe,EAAE,EAAE,OAAO,EAE9C;IAEM,SAAS,IAAI,OAAO,CAE1B;IAEM,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAMzC;IAEM,mBAAmB,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,IAAI,CAOpD;IAED;;;;;OAKG;IACI,gBAAgB,CAAC,eAAe,EAAE,iBAAiB,GAAG,IAAI,CAehE;IAEM,gBAAgB,IAAI,IAAI,GAAG,SAAS,CAE1C;IAEM,cAAc,CAAC,CAAC,EAAE,aAAa,EAAE,MAAM,GAAG,mBAAmB,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAqClG;CACF"}
|
|
@@ -15,8 +15,8 @@ export interface StreamedModelCallResult {
|
|
|
15
15
|
responseModel?: string;
|
|
16
16
|
providerMetadata?: unknown;
|
|
17
17
|
}
|
|
18
|
-
/**
|
|
19
|
-
export
|
|
18
|
+
/** The streamed model call exposes a web `ReadableStream` on `result.stream`. */
|
|
19
|
+
export { isReadableStream } from '../../ai/core/utils';
|
|
20
20
|
/**
|
|
21
21
|
* Wrap a streamed model call's `ReadableStream` so its chunks are observed as the SDK consumes them,
|
|
22
22
|
* without altering what the SDK sees. Returns a replacement stream to swap onto `result.stream`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/integrations/vercel-ai/util.ts"],"names":[],"mappings":"AAAA,iHAAiH;AAIjH,4DAA4D;AAC5D,wBAAgB,QAAQ,CAAC,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AAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,iFAAiF;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,cAAc,CAAC,OAAO,CAAC,EAC/B,OAAO,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,IAAI,EAClD,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAChC,cAAc,CAAC,OAAO,CAAC,CAkDzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vercel-ai-dc-subscriber.d.ts","sourceRoot":"","sources":["../../../../src/integrations/vercel-ai/vercel-ai-dc-subscriber.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vercel-ai-dc-subscriber.d.ts","sourceRoot":"","sources":["../../../../src/integrations/vercel-ai/vercel-ai-dc-subscriber.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAczD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAIxD,OAAO,EAAwC,KAAK,uBAAuB,EAA2B,MAAM,QAAQ,CAAC;AA6DrH,2GAA2G;AAC3G,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,sBAAsB,GAAG,IAAI,CAQnE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAIzD;AAiED,sEAAsE;AACtE,MAAM,MAAM,gBAAgB,GACxB,cAAc,GACd,YAAY,GACZ,gBAAgB,GAChB,MAAM,GACN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+
* Module specifier the transformed code imports its `tracingChannel` from, in
|
|
29
|
+
* place of `node:diagnostics_channel`. The Cloudflare build points this at a
|
|
30
|
+
* workerd-safe façade so channels wrapped at module scope don't throw. This is
|
|
31
|
+
* global — `code-transformer` ignores per-config `dcModule` (the matcher's value
|
|
32
|
+
* overwrites it) — but the façade delegates transparently in a request, so
|
|
33
|
+
* routing every channel through it is harmless.
|
|
34
|
+
*/
|
|
35
|
+
dcModule?: string;
|
|
27
36
|
};
|
|
28
37
|
/**
|
|
29
38
|
* Whether an "external" config entry covers an instrumented module: an exact
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/options.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,iCAAiC,EAAE,MAAM,2BAA2B,CAAC;AACxG,OAAO,KAAK,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAExG,OAAO,EAAE,iCAAiC,EAAE,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC3C;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/options.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,iCAAiC,EAAE,MAAM,2BAA2B,CAAC;AACxG,OAAO,KAAK,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAExG,OAAO,EAAE,iCAAiC,EAAE,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC3C;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACnD;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAErF;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,mBAAmB,EAAE,MAAM,EAAE,GAAG,MAAM,CAMhF;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,aAAa,EACtB,EAAE,iBAAwB,EAAE,GAAE;IAAE,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAAO,GACjE,4BAA4B,CAO9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollup.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/rollup.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"rollup.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/rollup.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAIV,MAAM,EAGP,MAAM,QAAQ,CAAC;AAEhB,YAAY,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,QAAQ,CAAC;AAErD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAoB/C;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,aAAkB,GAAG,MAAM,CA2D3E"}
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
* points rather than all appending to the end (fewer merge conflicts).
|
|
16
16
|
*/
|
|
17
17
|
export declare const CHANNELS: {
|
|
18
|
+
readonly AWS_SMITHY_CORE_SEND: 'orchestrion:@smithy/core:send';
|
|
19
|
+
readonly AWS_SMITHY_CLIENT_SEND: 'orchestrion:@smithy/smithy-client:send';
|
|
20
|
+
readonly AWS_SDK_SMITHY_CLIENT_SEND: 'orchestrion:@aws-sdk/smithy-client:send';
|
|
18
21
|
readonly AMQPLIB_PUBLISH: 'orchestrion:amqplib:publish';
|
|
19
22
|
readonly AMQPLIB_CONFIRM_PUBLISH: 'orchestrion:amqplib:confirmPublish';
|
|
20
23
|
readonly AMQPLIB_CONSUME: 'orchestrion:amqplib:consume';
|
|
@@ -27,9 +30,6 @@ export declare const CHANNELS: {
|
|
|
27
30
|
readonly AMQPLIB_CONNECT: 'orchestrion:amqplib:connect';
|
|
28
31
|
readonly ANTHROPIC_CHAT: 'orchestrion:@anthropic-ai/sdk:chat';
|
|
29
32
|
readonly ANTHROPIC_MESSAGES_STREAM: 'orchestrion:@anthropic-ai/sdk:messages-stream';
|
|
30
|
-
readonly AWS_SMITHY_CORE_SEND: 'orchestrion:@smithy/core:send';
|
|
31
|
-
readonly AWS_SMITHY_CLIENT_SEND: 'orchestrion:@smithy/smithy-client:send';
|
|
32
|
-
readonly AWS_SDK_SMITHY_CLIENT_SEND: 'orchestrion:@aws-sdk/smithy-client:send';
|
|
33
33
|
readonly DATALOADER_CONSTRUCT: 'orchestrion:dataloader:construct';
|
|
34
34
|
readonly DATALOADER_LOAD: 'orchestrion:dataloader:load';
|
|
35
35
|
readonly DATALOADER_LOAD_MANY: 'orchestrion:dataloader:loadMany';
|
|
@@ -81,6 +81,13 @@ export declare const CHANNELS: {
|
|
|
81
81
|
readonly LANGGRAPH_STATE_GRAPH_COMPILE: 'orchestrion:@langchain/langgraph:stateGraphCompile';
|
|
82
82
|
readonly LANGGRAPH_CREATE_REACT_AGENT: 'orchestrion:@langchain/langgraph:createReactAgent';
|
|
83
83
|
readonly LRU_MEMOIZER_LOAD: 'orchestrion:lru-memoizer:load';
|
|
84
|
+
readonly MASTRA_CONSTRUCTOR: 'orchestrion:@mastra/core:mastraConstructor';
|
|
85
|
+
readonly MASTRA_EXECUTE_WITH_CONTEXT: 'orchestrion:@mastra/core:mastraExecuteWithContext';
|
|
86
|
+
readonly MISTRAL_CHAT: 'orchestrion:@mistralai/mistralai:chat';
|
|
87
|
+
readonly MISTRAL_CHAT_STREAM: 'orchestrion:@mistralai/mistralai:chat-stream';
|
|
88
|
+
readonly MISTRAL_EMBEDDINGS: 'orchestrion:@mistralai/mistralai:embeddings';
|
|
89
|
+
readonly MISTRAL_AGENTS: 'orchestrion:@mistralai/mistralai:agents';
|
|
90
|
+
readonly MISTRAL_AGENTS_STREAM: 'orchestrion:@mistralai/mistralai:agents-stream';
|
|
84
91
|
readonly MONGODB_COMMAND: 'orchestrion:mongodb:command';
|
|
85
92
|
readonly MONGODB_CHECKOUT: 'orchestrion:mongodb:checkout';
|
|
86
93
|
readonly MONGODB_V3_INSERT: 'orchestrion:mongodb:v3_insert';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/channels.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/channels.ts"],"names":[],"mappings":"AAgCA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCX,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -54,6 +54,9 @@ export declare const CHANNEL_INTEGRATION_DEFINITIONS: readonly [{
|
|
|
54
54
|
}, {
|
|
55
55
|
readonly exportName: 'googleGenAIIntegration';
|
|
56
56
|
readonly modules: readonly ["@google/genai"];
|
|
57
|
+
}, {
|
|
58
|
+
readonly exportName: 'mistralAIIntegration';
|
|
59
|
+
readonly modules: readonly ["@mistralai/mistralai"];
|
|
57
60
|
}, {
|
|
58
61
|
readonly exportName: 'vercelAIIntegration';
|
|
59
62
|
readonly modules: readonly ["ai"];
|
|
@@ -63,6 +66,9 @@ export declare const CHANNEL_INTEGRATION_DEFINITIONS: readonly [{
|
|
|
63
66
|
}, {
|
|
64
67
|
readonly exportName: 'langGraphIntegration';
|
|
65
68
|
readonly modules: readonly ["@langchain/langgraph"];
|
|
69
|
+
}, {
|
|
70
|
+
readonly exportName: 'mastraIntegration';
|
|
71
|
+
readonly modules: readonly ["@mastra/core"];
|
|
66
72
|
}, {
|
|
67
73
|
readonly exportName: 'awsIntegration';
|
|
68
74
|
readonly modules: readonly ["@aws-sdk/smithy-client", "@smithy/core", "@smithy/smithy-client"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel-integration-definitions.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/channel-integration-definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,+BAA+B;yBAC5B,qBAAqB;;;yBACrB,uBAAuB;;;yBACvB,kBAAkB;;;yBAClB,mBAAmB;;;yBACnB,kBAAkB;;;yBAClB,qBAAqB;;;yBACrB,iBAAiB;;;yBACjB,oBAAoB;;;yBACpB,wBAAwB;;;yBACxB,wBAAwB;;;yBACxB,mBAAmB;;;yBACnB,wBAAwB;;;yBACxB,wBAAwB;;;yBACxB,qBAAqB;;;yBAErB,sBAAsB;;;yBAStB,sBAAsB;;;yBACtB,gBAAgB;;;yBAChB,qBAAqB;;;yBACrB,oBAAoB;;;yBACpB,iBAAiB;;;yBACjB,gBAAgB;;;yBAChB,oBAAoB;;;yBACpB,oBAAoB;;;yBACpB,kBAAkB;;;yBAClB,kBAAkB;;;yBAClB,uBAAuB;;EAC+C,CAAC;AAEvF,8EAA8E;AAC9E,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEhF"}
|
|
1
|
+
{"version":3,"file":"channel-integration-definitions.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/channel-integration-definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,+BAA+B;yBAC5B,qBAAqB;;;yBACrB,uBAAuB;;;yBACvB,kBAAkB;;;yBAClB,mBAAmB;;;yBACnB,kBAAkB;;;yBAClB,qBAAqB;;;yBACrB,iBAAiB;;;yBACjB,oBAAoB;;;yBACpB,wBAAwB;;;yBACxB,wBAAwB;;;yBACxB,mBAAmB;;;yBACnB,wBAAwB;;;yBACxB,wBAAwB;;;yBACxB,sBAAsB;;;yBACtB,qBAAqB;;;yBAErB,sBAAsB;;;yBAStB,sBAAsB;;;yBACtB,mBAAmB;;;yBACnB,gBAAgB;;;yBAChB,qBAAqB;;;yBACrB,oBAAoB;;;yBACpB,iBAAiB;;;yBACjB,gBAAgB;;;yBAChB,oBAAoB;;;yBACpB,oBAAoB;;;yBACpB,kBAAkB;;;yBAClB,kBAAkB;;;yBAClB,uBAAuB;;EAC+C,CAAC;AAEvF,8EAA8E;AAC9E,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEhF"}
|
|
@@ -13,6 +13,35 @@ import type { InstrumentationConfig } from '../apmTypes';
|
|
|
13
13
|
* any module-level mutable state here would silently diverge between those copies.
|
|
14
14
|
*/
|
|
15
15
|
export declare const SENTRY_INSTRUMENTATIONS: InstrumentationConfig[];
|
|
16
|
+
/**
|
|
17
|
+
* The subset of {@link SENTRY_INSTRUMENTATIONS} the RUNTIME loader
|
|
18
|
+
* (`@sentry/server-runtime-injection`'s `register`, reached via `--import` or
|
|
19
|
+
* `Sentry.init()`) can actually apply.
|
|
20
|
+
*
|
|
21
|
+
* Registration-only configs (native-channel libraries such as `ai` v7,
|
|
22
|
+
* `ioredis`, `@redis/client`, `mysql2`, `mongoose`) carry the custom
|
|
23
|
+
* `MODULE_REGISTRATION_TRANSFORM` operator. That operator is wired into the
|
|
24
|
+
* BUNDLER plugins only (see `orchestrion/bundler/moduleInjectedTransform.ts`,
|
|
25
|
+
* applied via `bundler/options.ts`'s `customTransforms`); the runtime loader's
|
|
26
|
+
* `initialize()` receives no custom transforms. Attempting one of these at
|
|
27
|
+
* runtime therefore throws `TypeError: transform is not a function`, which the
|
|
28
|
+
* loader misreports as the always-on "`@sentry/server-runtime-injection` was
|
|
29
|
+
* bundled ... loads uninstrumented" warning even though nothing is wrong.
|
|
30
|
+
*
|
|
31
|
+
* Excluding them at runtime is correct, not just a way to silence the warning:
|
|
32
|
+
* these libraries publish their own tracing channels, and their integrations
|
|
33
|
+
* subscribe through `setupOnce()` / `waitForTracingChannelBinding`,
|
|
34
|
+
* independently of the module-injected snippet. That snippet only fires
|
|
35
|
+
* `orchestrion.module-injected`, which drives the `setup()` /
|
|
36
|
+
* `invokeOrchestrionInstrumentation` path; for a native-channel version that
|
|
37
|
+
* path subscribes to the injected `orchestrion:*` channels the library never
|
|
38
|
+
* publishes — a no-op. So running these at runtime would add no spans. The
|
|
39
|
+
* snippet earns its keep only on the BUNDLER path — notably bundler-only SDKs
|
|
40
|
+
* (e.g. `@sentry/cloudflare`) that discover a loaded module via that event to
|
|
41
|
+
* instantiate its integration factory. `@sentry/node` registers its
|
|
42
|
+
* integrations statically, so it does not need it.
|
|
43
|
+
*/
|
|
44
|
+
export declare const SENTRY_RUNTIME_INSTRUMENTATIONS: InstrumentationConfig[];
|
|
16
45
|
/**
|
|
17
46
|
* The unique set of package names instrumented by `SENTRY_INSTRUMENTATIONS`
|
|
18
47
|
* merged with any caller-provided `instrumentations` (e.g. `['mysql']`).
|
|
@@ -27,6 +56,18 @@ export declare const SENTRY_INSTRUMENTATIONS: InstrumentationConfig[];
|
|
|
27
56
|
export declare function instrumentedModuleNames(instrumentations?: InstrumentationConfig[]): string[];
|
|
28
57
|
/** The instrumented module names from the default Sentry config, with no custom additions. */
|
|
29
58
|
export declare const INSTRUMENTED_MODULE_NAMES: string[];
|
|
59
|
+
/**
|
|
60
|
+
* The package names the SDK instruments through the orchestrion module transform (its
|
|
61
|
+
* diagnostics-channel injection). Pass these to a server bundler's "keep external" option so the
|
|
62
|
+
* packages load through Node's module loader — the only path the transform can hook — instead of
|
|
63
|
+
* being inlined into the server bundle. A framework that has no Sentry bundler plugin (e.g. eve, via
|
|
64
|
+
* `build.externalDependencies`) is the main caller; a listed package the app doesn't use is simply
|
|
65
|
+
* ignored by the bundler.
|
|
66
|
+
*
|
|
67
|
+
* Unlike {@link INSTRUMENTED_MODULE_NAMES}, this is the plain instrumented set with no bundler-only
|
|
68
|
+
* additions — those force a helper package to be *bundled*, the opposite of keeping it external.
|
|
69
|
+
*/
|
|
70
|
+
export declare function getInstrumentedModuleNames(): string[];
|
|
30
71
|
/**
|
|
31
72
|
* Returns `external` with any instrumented packages removed, so a bundler that
|
|
32
73
|
* uses an "external" denylist (esbuild, Bun, Rollup) still bundles — and thus
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAsCzD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,EAgC1D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,+BAA+B,EAAE,qBAAqB,EAElE,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,gBAAgB,GAAE,qBAAqB,EAAO,GAAG,MAAM,EAAE,CAOhG;AAED,8FAA8F;AAC9F,eAAO,MAAM,yBAAyB,EAAE,MAAM,EAA8B,CAAC;AAE7E;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,IAAI,MAAM,EAAE,CAErD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EACvC,WAAW,GAAE,MAAM,EAA8B,GAChD,MAAM,EAAE,GAAG,SAAS,CAKtB;AAGD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { InstrumentationConfig } from '../apmTypes';
|
|
2
|
+
export declare const mastraConfig: InstrumentationConfig[];
|
|
3
|
+
export declare const mastraModuleNames: string[];
|
|
4
|
+
export declare const mastraChannels: {
|
|
5
|
+
readonly MASTRA_CONSTRUCTOR: 'orchestrion:@mastra/core:mastraConstructor';
|
|
6
|
+
readonly MASTRA_EXECUTE_WITH_CONTEXT: 'orchestrion:@mastra/core:mastraExecuteWithContext';
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=mastra.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mastra.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/mastra.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AA2CzD,eAAO,MAAM,YAAY,yBAAyF,CAAC;AAEnH,eAAO,MAAM,iBAAiB,UAA+B,CAAC;AAE9D,eAAO,MAAM,cAAc;aACzB,kBAAkB,EAAE,4CAA4C;aAChE,2BAA2B,EAAE,mDAAmD;CACxE,CAAC"}
|