@sentry/server-utils 11.10.0 → 11.12.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/LICENSE +31 -0
- package/build/THIRD-PARTY-LICENSES.txt +34 -34
- package/build/cjs/ai/anthropic-ai/streaming.js +4 -1
- package/build/cjs/ai/anthropic-ai/streaming.js.map +1 -1
- package/build/cjs/ai/anthropic-ai/tool-runner.js +49 -1
- package/build/cjs/ai/anthropic-ai/tool-runner.js.map +1 -1
- package/build/cjs/ai/anthropic-ai/utils.js +8 -1
- package/build/cjs/ai/anthropic-ai/utils.js.map +1 -1
- package/build/cjs/ai/flue/index.js +5 -7
- package/build/cjs/ai/flue/index.js.map +1 -1
- package/build/cjs/ai/flue/utils.js +4 -4
- package/build/cjs/ai/flue/utils.js.map +1 -1
- package/build/cjs/ai/google-genai/index.js +6 -1
- package/build/cjs/ai/google-genai/index.js.map +1 -1
- package/build/cjs/ai/google-genai/streaming.js +4 -1
- package/build/cjs/ai/google-genai/streaming.js.map +1 -1
- package/build/cjs/ai/langchain/utils.js +11 -10
- package/build/cjs/ai/langchain/utils.js.map +1 -1
- package/build/cjs/ai/langgraph/agent-span.js +94 -0
- package/build/cjs/ai/langgraph/agent-span.js.map +1 -0
- package/build/cjs/ai/langgraph/index.js +79 -119
- package/build/cjs/ai/langgraph/index.js.map +1 -1
- package/build/cjs/ai/langgraph/stream.js +117 -0
- package/build/cjs/ai/langgraph/stream.js.map +1 -0
- package/build/cjs/ai/langgraph/utils.js +1 -1
- package/build/cjs/ai/langgraph/utils.js.map +1 -1
- package/build/cjs/ai/mastra/utils.js.map +1 -1
- package/build/cjs/ai/openai/streaming.js +3 -0
- package/build/cjs/ai/openai/streaming.js.map +1 -1
- package/build/cjs/ai/pi-durable/index.js +1 -1
- package/build/cjs/ai/pi-durable/index.js.map +1 -1
- package/build/cjs/ai/pi-durable/models.js +6 -6
- package/build/cjs/ai/pi-durable/models.js.map +1 -1
- package/build/cjs/ai/pi-durable/tools.js +2 -2
- package/build/cjs/ai/pi-durable/tools.js.map +1 -1
- package/build/cjs/ai/typesafe/index.js +1 -1
- package/build/cjs/ai/typesafe/index.js.map +1 -1
- package/build/cjs/index.js +29 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.no-diagnostic-channels.js +8 -5
- package/build/cjs/index.no-diagnostic-channels.js.map +1 -1
- package/build/cjs/index.request-handler.js +8 -0
- package/build/cjs/index.request-handler.js.map +1 -0
- package/build/cjs/integrations/amqplib.js +4 -6
- package/build/cjs/integrations/amqplib.js.map +1 -1
- package/build/cjs/integrations/anthropic.js +8 -0
- package/build/cjs/integrations/anthropic.js.map +1 -1
- package/build/cjs/integrations/aws-sdk/index.js +1 -0
- package/build/cjs/integrations/aws-sdk/index.js.map +1 -1
- package/build/cjs/integrations/aws-sdk/services/bedrock-runtime.js +105 -52
- package/build/cjs/integrations/aws-sdk/services/bedrock-runtime.js.map +1 -1
- package/build/cjs/integrations/cron.js +49 -0
- package/build/cjs/integrations/cron.js.map +1 -0
- package/build/cjs/integrations/dataloader.js +2 -5
- package/build/cjs/integrations/dataloader.js.map +1 -1
- package/build/cjs/integrations/express/instrumentation.js +1 -1
- package/build/cjs/integrations/express/instrumentation.js.map +1 -1
- package/build/cjs/integrations/firebase/firestore.js +1 -0
- package/build/cjs/integrations/firebase/firestore.js.map +1 -1
- package/build/cjs/integrations/google-genai.js +9 -3
- package/build/cjs/integrations/google-genai.js.map +1 -1
- package/build/cjs/integrations/graphql/constants.js +0 -2
- package/build/cjs/integrations/graphql/constants.js.map +1 -1
- package/build/cjs/integrations/graphql/graphql-dc-subscriber.js +4 -4
- package/build/cjs/integrations/graphql/graphql-dc-subscriber.js.map +1 -1
- package/build/cjs/integrations/graphql/resolvers.js +1 -1
- package/build/cjs/integrations/graphql/resolvers.js.map +1 -1
- package/build/cjs/integrations/graphql/spans.js +3 -3
- package/build/cjs/integrations/graphql/spans.js.map +1 -1
- package/build/cjs/integrations/hono/constants.js +2 -0
- package/build/cjs/integrations/hono/constants.js.map +1 -1
- package/build/cjs/integrations/hono/createHonoMiddleware.js +2 -3
- package/build/cjs/integrations/hono/createHonoMiddleware.js.map +1 -1
- package/build/cjs/integrations/hono/honoIntegration.js +12 -12
- package/build/cjs/integrations/hono/honoIntegration.js.map +1 -1
- package/build/cjs/integrations/hono/matchResult.js +67 -0
- package/build/cjs/integrations/hono/matchResult.js.map +1 -1
- package/build/cjs/integrations/hono/middlewareHandlers.js +15 -5
- package/build/cjs/integrations/hono/middlewareHandlers.js.map +1 -1
- package/build/cjs/integrations/hono/patchAppRequest.js +2 -6
- package/build/cjs/integrations/hono/patchAppRequest.js.map +1 -1
- package/build/cjs/integrations/hono/patchRoute.js +2 -6
- package/build/cjs/integrations/hono/patchRoute.js.map +1 -1
- package/build/cjs/integrations/hono/resolveRouteName.js +16 -18
- package/build/cjs/integrations/hono/resolveRouteName.js.map +1 -1
- package/build/cjs/integrations/hono/sentryOriginalTraps.js +21 -0
- package/build/cjs/integrations/hono/sentryOriginalTraps.js.map +1 -0
- package/build/cjs/integrations/hono/wrapMiddlewareSpan.js +4 -8
- package/build/cjs/integrations/hono/wrapMiddlewareSpan.js.map +1 -1
- package/build/cjs/integrations/index.js +6 -6
- package/build/cjs/integrations/index.js.map +1 -1
- package/build/cjs/integrations/kafkajs/consumer.js +3 -3
- package/build/cjs/integrations/kafkajs/consumer.js.map +1 -1
- package/build/cjs/integrations/kafkajs/semconv.js +0 -8
- package/build/cjs/integrations/kafkajs/semconv.js.map +1 -1
- package/build/cjs/integrations/kafkajs/spans.js +6 -6
- package/build/cjs/integrations/kafkajs/spans.js.map +1 -1
- package/build/cjs/integrations/knex.js +3 -33
- package/build/cjs/integrations/knex.js.map +1 -1
- package/build/cjs/integrations/langgraph.js +6 -20
- package/build/cjs/integrations/langgraph.js.map +1 -1
- package/build/cjs/integrations/mongodb/index.js +21 -31
- package/build/cjs/integrations/mongodb/index.js.map +1 -1
- package/build/cjs/integrations/mongodb/mongodb-span.js +3 -2
- package/build/cjs/integrations/mongodb/mongodb-span.js.map +1 -1
- package/build/cjs/integrations/mysql.js +14 -20
- package/build/cjs/integrations/mysql.js.map +1 -1
- package/build/cjs/integrations/mysql2/index.js +12 -23
- package/build/cjs/integrations/mysql2/index.js.map +1 -1
- package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js +26 -42
- package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
- package/build/cjs/integrations/neon.js +27 -27
- package/build/cjs/integrations/neon.js.map +1 -1
- package/build/cjs/integrations/nitro/captureStorageEvents.js +3 -3
- package/build/cjs/integrations/nitro/captureStorageEvents.js.map +1 -1
- package/build/cjs/integrations/nitro/captureTracingEvents.js +1 -1
- package/build/cjs/integrations/nitro/captureTracingEvents.js.map +1 -1
- package/build/cjs/integrations/node-cron.js +68 -0
- package/build/cjs/integrations/node-cron.js.map +1 -0
- package/build/cjs/integrations/node-schedule.js +76 -0
- package/build/cjs/integrations/node-schedule.js.map +1 -0
- package/build/cjs/integrations/{postgres.js → pg.js} +13 -21
- package/build/cjs/integrations/pg.js.map +1 -0
- package/build/cjs/integrations/postgresjs/index.js +147 -0
- package/build/cjs/integrations/postgresjs/index.js.map +1 -0
- package/build/cjs/integrations/postgresjs/postgresjs-dc-subscriber.js +81 -0
- package/build/cjs/integrations/postgresjs/postgresjs-dc-subscriber.js.map +1 -0
- package/build/cjs/integrations/{postgresjs.js → postgresjs-wrapper.js} +66 -73
- package/build/cjs/integrations/postgresjs-wrapper.js.map +1 -0
- package/build/cjs/integrations/prisma/orchestrion.js +2 -5
- package/build/cjs/integrations/prisma/orchestrion.js.map +1 -1
- package/build/cjs/integrations/prisma/tracing-helper.js +15 -13
- package/build/cjs/integrations/prisma/tracing-helper.js.map +1 -1
- package/build/cjs/integrations/redis/ioredis-channel-subscriber.js +13 -17
- package/build/cjs/integrations/redis/ioredis-channel-subscriber.js.map +1 -1
- package/build/cjs/integrations/serveTunnel.js +33 -0
- package/build/cjs/integrations/serveTunnel.js.map +1 -0
- package/build/cjs/integrations/tedious.js +9 -6
- package/build/cjs/integrations/tedious.js.map +1 -1
- package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js +47 -14
- 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 +1 -1
- package/build/cjs/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
- package/build/cjs/orchestrion/bundler/load-hook.js +2 -2
- package/build/cjs/orchestrion/bundler/load-hook.js.map +1 -1
- package/build/cjs/orchestrion/bundler/options.js.map +1 -1
- package/build/cjs/orchestrion/bundler/rollup.js +2 -2
- package/build/cjs/orchestrion/bundler/vite.js +86 -27
- package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
- package/build/cjs/orchestrion/bundler/webpack.js +1 -1
- package/build/cjs/orchestrion/bundler/webpack.js.map +1 -1
- package/build/cjs/orchestrion/channels.js +6 -0
- package/build/cjs/orchestrion/channels.js.map +1 -1
- package/build/cjs/orchestrion/config/anthropic-ai.js +6 -5
- package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -1
- package/build/cjs/orchestrion/config/cron.js +26 -0
- package/build/cjs/orchestrion/config/cron.js.map +1 -0
- package/build/cjs/orchestrion/config/index.js +6 -0
- package/build/cjs/orchestrion/config/index.js.map +1 -1
- package/build/cjs/orchestrion/config/mistral.js +1 -1
- package/build/cjs/orchestrion/config/mistral.js.map +1 -1
- package/build/cjs/orchestrion/config/nestjs.js +8 -0
- package/build/cjs/orchestrion/config/nestjs.js.map +1 -1
- package/build/cjs/orchestrion/config/node-cron.js +53 -0
- package/build/cjs/orchestrion/config/node-cron.js.map +1 -0
- package/build/cjs/orchestrion/config/node-schedule.js +29 -0
- package/build/cjs/orchestrion/config/node-schedule.js.map +1 -0
- package/build/cjs/orchestrion/config/postgres.js +5 -1
- package/build/cjs/orchestrion/config/postgres.js.map +1 -1
- package/build/cjs/orchestrion/detect.js +16 -3
- package/build/cjs/orchestrion/detect.js.map +1 -1
- package/build/cjs/orchestrion/instrumentation.js +5 -5
- package/build/cjs/orchestrion/instrumentation.js.map +1 -1
- package/build/cjs/tracing-channel.js +3 -4
- package/build/cjs/tracing-channel.js.map +1 -1
- package/build/cjs/utils/cronMonitoring.js +160 -0
- package/build/cjs/utils/cronMonitoring.js.map +1 -0
- package/build/cjs/utils/diagnosticsChannel.js +2 -1
- package/build/cjs/utils/diagnosticsChannel.js.map +1 -1
- package/build/cjs/utils/monitorStream.js +27 -6
- package/build/cjs/utils/monitorStream.js.map +1 -1
- package/build/cjs/utils/runtime.js +19 -0
- package/build/cjs/utils/runtime.js.map +1 -0
- package/build/cjs/utils/sql.js +51 -5
- package/build/cjs/utils/sql.js.map +1 -1
- package/build/cjs/utils/tunnelServer.js +29 -0
- package/build/cjs/utils/tunnelServer.js.map +1 -0
- package/build/cjs/utils/wrapServerRequestHandler.js +66 -25
- package/build/cjs/utils/wrapServerRequestHandler.js.map +1 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer/index.js.map +1 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js +15 -15
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js +35 -7
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js +4 -4
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js.map +1 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{core-dC9TN3Ev.js → core-Bd0h-mo3.js} +2 -2
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{core-dC9TN3Ev.js.map → core-Bd0h-mo3.js.map} +1 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js +3 -3
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{rollup-OTS4ktWb.js → rollup-DCG8HLmh.js} +7 -13
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-DCG8HLmh.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js +2 -2
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js +1 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +1 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -1
- package/build/esm/ai/anthropic-ai/streaming.js +5 -2
- package/build/esm/ai/anthropic-ai/streaming.js.map +1 -1
- package/build/esm/ai/anthropic-ai/tool-runner.js +52 -4
- package/build/esm/ai/anthropic-ai/tool-runner.js.map +1 -1
- package/build/esm/ai/anthropic-ai/utils.js +9 -2
- package/build/esm/ai/anthropic-ai/utils.js.map +1 -1
- package/build/esm/ai/flue/index.js +4 -6
- package/build/esm/ai/flue/index.js.map +1 -1
- package/build/esm/ai/flue/utils.js +4 -4
- package/build/esm/ai/flue/utils.js.map +1 -1
- package/build/esm/ai/google-genai/index.js +6 -1
- package/build/esm/ai/google-genai/index.js.map +1 -1
- package/build/esm/ai/google-genai/streaming.js +4 -1
- package/build/esm/ai/google-genai/streaming.js.map +1 -1
- package/build/esm/ai/langchain/utils.js +11 -11
- package/build/esm/ai/langchain/utils.js.map +1 -1
- package/build/esm/ai/langgraph/agent-span.js +89 -0
- package/build/esm/ai/langgraph/agent-span.js.map +1 -0
- package/build/esm/ai/langgraph/index.js +73 -115
- package/build/esm/ai/langgraph/index.js.map +1 -1
- package/build/esm/ai/langgraph/stream.js +115 -0
- package/build/esm/ai/langgraph/stream.js.map +1 -0
- package/build/esm/ai/langgraph/utils.js +1 -1
- package/build/esm/ai/langgraph/utils.js.map +1 -1
- package/build/esm/ai/mastra/utils.js.map +1 -1
- package/build/esm/ai/openai/streaming.js +3 -0
- package/build/esm/ai/openai/streaming.js.map +1 -1
- package/build/esm/ai/pi-durable/index.js +1 -1
- package/build/esm/ai/pi-durable/index.js.map +1 -1
- package/build/esm/ai/pi-durable/models.js +6 -6
- package/build/esm/ai/pi-durable/models.js.map +1 -1
- package/build/esm/ai/pi-durable/tools.js +2 -2
- package/build/esm/ai/pi-durable/tools.js.map +1 -1
- package/build/esm/ai/typesafe/index.js +1 -1
- package/build/esm/ai/typesafe/index.js.map +1 -1
- package/build/esm/index.js +10 -5
- package/build/esm/index.js.map +1 -1
- package/build/esm/index.no-diagnostic-channels.js +3 -3
- package/build/esm/index.request-handler.js +2 -0
- package/build/esm/index.request-handler.js.map +1 -0
- package/build/esm/integrations/amqplib.js +5 -7
- package/build/esm/integrations/amqplib.js.map +1 -1
- package/build/esm/integrations/anthropic.js +8 -0
- package/build/esm/integrations/anthropic.js.map +1 -1
- package/build/esm/integrations/aws-sdk/index.js +1 -0
- package/build/esm/integrations/aws-sdk/index.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/bedrock-runtime.js +107 -54
- package/build/esm/integrations/aws-sdk/services/bedrock-runtime.js.map +1 -1
- package/build/esm/integrations/cron.js +46 -0
- package/build/esm/integrations/cron.js.map +1 -0
- package/build/esm/integrations/dataloader.js +2 -5
- package/build/esm/integrations/dataloader.js.map +1 -1
- package/build/esm/integrations/express/instrumentation.js +1 -1
- package/build/esm/integrations/express/instrumentation.js.map +1 -1
- package/build/esm/integrations/firebase/firestore.js +1 -0
- package/build/esm/integrations/firebase/firestore.js.map +1 -1
- package/build/esm/integrations/google-genai.js +9 -3
- package/build/esm/integrations/google-genai.js.map +1 -1
- package/build/esm/integrations/graphql/constants.js +1 -2
- package/build/esm/integrations/graphql/constants.js.map +1 -1
- package/build/esm/integrations/graphql/graphql-dc-subscriber.js +2 -2
- package/build/esm/integrations/graphql/resolvers.js +2 -2
- package/build/esm/integrations/graphql/spans.js +2 -2
- package/build/esm/integrations/hono/constants.js +2 -1
- package/build/esm/integrations/hono/constants.js.map +1 -1
- package/build/esm/integrations/hono/createHonoMiddleware.js +2 -2
- package/build/esm/integrations/hono/createHonoMiddleware.js.map +1 -1
- package/build/esm/integrations/hono/honoIntegration.js +13 -13
- package/build/esm/integrations/hono/honoIntegration.js.map +1 -1
- package/build/esm/integrations/hono/matchResult.js +65 -2
- package/build/esm/integrations/hono/matchResult.js.map +1 -1
- package/build/esm/integrations/hono/middlewareHandlers.js +17 -7
- package/build/esm/integrations/hono/middlewareHandlers.js.map +1 -1
- package/build/esm/integrations/hono/patchAppRequest.js +2 -6
- package/build/esm/integrations/hono/patchAppRequest.js.map +1 -1
- package/build/esm/integrations/hono/patchRoute.js +2 -6
- package/build/esm/integrations/hono/patchRoute.js.map +1 -1
- package/build/esm/integrations/hono/resolveRouteName.js +16 -18
- package/build/esm/integrations/hono/resolveRouteName.js.map +1 -1
- package/build/esm/integrations/hono/sentryOriginalTraps.js +19 -0
- package/build/esm/integrations/hono/sentryOriginalTraps.js.map +1 -0
- package/build/esm/integrations/hono/wrapMiddlewareSpan.js +3 -7
- package/build/esm/integrations/hono/wrapMiddlewareSpan.js.map +1 -1
- package/build/esm/integrations/index.js +2 -2
- package/build/esm/integrations/index.js.map +1 -1
- package/build/esm/integrations/kafkajs/consumer.js +5 -5
- package/build/esm/integrations/kafkajs/consumer.js.map +1 -1
- package/build/esm/integrations/kafkajs/semconv.js +1 -5
- package/build/esm/integrations/kafkajs/semconv.js.map +1 -1
- package/build/esm/integrations/kafkajs/spans.js +8 -8
- package/build/esm/integrations/kafkajs/spans.js.map +1 -1
- package/build/esm/integrations/knex.js +6 -36
- package/build/esm/integrations/knex.js.map +1 -1
- package/build/esm/integrations/langgraph.js +7 -21
- package/build/esm/integrations/langgraph.js.map +1 -1
- package/build/esm/integrations/mongodb/index.js +21 -31
- package/build/esm/integrations/mongodb/index.js.map +1 -1
- package/build/esm/integrations/mongodb/mongodb-span.js +4 -3
- package/build/esm/integrations/mongodb/mongodb-span.js.map +1 -1
- package/build/esm/integrations/mysql.js +17 -23
- package/build/esm/integrations/mysql.js.map +1 -1
- package/build/esm/integrations/mysql2/index.js +15 -26
- package/build/esm/integrations/mysql2/index.js.map +1 -1
- package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js +29 -45
- package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
- package/build/esm/integrations/neon.js +27 -27
- package/build/esm/integrations/neon.js.map +1 -1
- package/build/esm/integrations/nitro/captureStorageEvents.js +4 -4
- package/build/esm/integrations/nitro/captureStorageEvents.js.map +1 -1
- package/build/esm/integrations/nitro/captureTracingEvents.js +2 -2
- package/build/esm/integrations/nitro/captureTracingEvents.js.map +1 -1
- package/build/esm/integrations/node-cron.js +63 -0
- package/build/esm/integrations/node-cron.js.map +1 -0
- package/build/esm/integrations/node-schedule.js +70 -0
- package/build/esm/integrations/node-schedule.js.map +1 -0
- package/build/esm/integrations/{postgres.js → pg.js} +16 -24
- package/build/esm/integrations/pg.js.map +1 -0
- package/build/esm/integrations/postgresjs/index.js +145 -0
- package/build/esm/integrations/postgresjs/index.js.map +1 -0
- package/build/esm/integrations/postgresjs/postgresjs-dc-subscriber.js +76 -0
- package/build/esm/integrations/postgresjs/postgresjs-dc-subscriber.js.map +1 -0
- package/build/esm/integrations/{postgresjs.js → postgresjs-wrapper.js} +68 -76
- package/build/esm/integrations/postgresjs-wrapper.js.map +1 -0
- package/build/esm/integrations/prisma/orchestrion.js +2 -5
- package/build/esm/integrations/prisma/orchestrion.js.map +1 -1
- package/build/esm/integrations/prisma/tracing-helper.js +17 -15
- package/build/esm/integrations/prisma/tracing-helper.js.map +1 -1
- package/build/esm/integrations/redis/ioredis-channel-subscriber.js +13 -17
- package/build/esm/integrations/redis/ioredis-channel-subscriber.js.map +1 -1
- package/build/esm/integrations/serveTunnel.js +30 -0
- package/build/esm/integrations/serveTunnel.js.map +1 -0
- package/build/esm/integrations/tedious.js +11 -8
- package/build/esm/integrations/tedious.js.map +1 -1
- package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +48 -15
- 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 +1 -1
- package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
- package/build/esm/orchestrion/bundler/load-hook.js +1 -1
- package/build/esm/orchestrion/bundler/options.js.map +1 -1
- package/build/esm/orchestrion/bundler/rollup.js +1 -1
- package/build/esm/orchestrion/bundler/vite.js +87 -28
- package/build/esm/orchestrion/bundler/vite.js.map +1 -1
- package/build/esm/orchestrion/bundler/webpack.js +1 -1
- package/build/esm/orchestrion/bundler/webpack.js.map +1 -1
- package/build/esm/orchestrion/channels.js +6 -0
- package/build/esm/orchestrion/channels.js.map +1 -1
- package/build/esm/orchestrion/config/anthropic-ai.js +6 -5
- package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
- package/build/esm/orchestrion/config/cron.js +22 -0
- package/build/esm/orchestrion/config/cron.js.map +1 -0
- package/build/esm/orchestrion/config/index.js +6 -0
- package/build/esm/orchestrion/config/index.js.map +1 -1
- package/build/esm/orchestrion/config/mistral.js +1 -1
- package/build/esm/orchestrion/config/mistral.js.map +1 -1
- package/build/esm/orchestrion/config/nestjs.js +8 -0
- package/build/esm/orchestrion/config/nestjs.js.map +1 -1
- package/build/esm/orchestrion/config/node-cron.js +49 -0
- package/build/esm/orchestrion/config/node-cron.js.map +1 -0
- package/build/esm/orchestrion/config/node-schedule.js +25 -0
- package/build/esm/orchestrion/config/node-schedule.js.map +1 -0
- package/build/esm/orchestrion/config/postgres.js +5 -1
- package/build/esm/orchestrion/config/postgres.js.map +1 -1
- package/build/esm/orchestrion/detect.js +15 -2
- package/build/esm/orchestrion/detect.js.map +1 -1
- package/build/esm/orchestrion/instrumentation.js +6 -6
- package/build/esm/orchestrion/instrumentation.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/tracing-channel.js +4 -5
- package/build/esm/tracing-channel.js.map +1 -1
- package/build/esm/utils/cronMonitoring.js +153 -0
- package/build/esm/utils/cronMonitoring.js.map +1 -0
- package/build/esm/utils/diagnosticsChannel.js +2 -1
- package/build/esm/utils/diagnosticsChannel.js.map +1 -1
- package/build/esm/utils/monitorStream.js +28 -7
- package/build/esm/utils/monitorStream.js.map +1 -1
- package/build/esm/utils/runtime.js +15 -0
- package/build/esm/utils/runtime.js.map +1 -0
- package/build/esm/utils/sql.js +48 -5
- package/build/esm/utils/sql.js.map +1 -1
- package/build/esm/utils/tunnelServer.js +27 -0
- package/build/esm/utils/tunnelServer.js.map +1 -0
- package/build/esm/utils/wrapServerRequestHandler.js +68 -27
- package/build/esm/utils/wrapServerRequestHandler.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer/index.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js +15 -15
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js +35 -7
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{core-dC9TN3Ev.js → core-Bd0h-mo3.js} +2 -2
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{core-dC9TN3Ev.js.map → core-Bd0h-mo3.js.map} +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{rollup-OTS4ktWb.js → rollup-DCG8HLmh.js} +3 -9
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-DCG8HLmh.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -1
- package/build/types/ai/anthropic-ai/streaming.d.ts.map +1 -1
- package/build/types/ai/anthropic-ai/tool-runner.d.ts +1 -1
- package/build/types/ai/anthropic-ai/tool-runner.d.ts.map +1 -1
- package/build/types/ai/anthropic-ai/utils.d.ts.map +1 -1
- package/build/types/ai/flue/index.d.ts.map +1 -1
- package/build/types/ai/google-genai/index.d.ts.map +1 -1
- package/build/types/ai/google-genai/streaming.d.ts +1 -1
- package/build/types/ai/google-genai/streaming.d.ts.map +1 -1
- package/build/types/ai/langchain/utils.d.ts +6 -0
- package/build/types/ai/langchain/utils.d.ts.map +1 -1
- package/build/types/ai/langgraph/agent-span.d.ts +15 -0
- package/build/types/ai/langgraph/agent-span.d.ts.map +1 -0
- package/build/types/ai/langgraph/index.d.ts +7 -1
- package/build/types/ai/langgraph/index.d.ts.map +1 -1
- package/build/types/ai/langgraph/stream.d.ts +10 -0
- package/build/types/ai/langgraph/stream.d.ts.map +1 -0
- package/build/types/ai/langgraph/types.d.ts +1 -0
- package/build/types/ai/langgraph/types.d.ts.map +1 -1
- package/build/types/ai/mastra/utils.d.ts +1 -1
- package/build/types/ai/openai/streaming.d.ts.map +1 -1
- package/build/types/exports.d.ts +4 -5
- package/build/types/exports.d.ts.map +1 -1
- package/build/types/index.d.ts +10 -2
- package/build/types/index.d.ts.map +1 -1
- package/build/types/index.request-handler.d.ts +3 -0
- package/build/types/index.request-handler.d.ts.map +1 -0
- package/build/types/integrations/amqplib.d.ts.map +1 -1
- package/build/types/integrations/anthropic.d.ts.map +1 -1
- package/build/types/integrations/aws-sdk/index.d.ts.map +1 -1
- package/build/types/integrations/aws-sdk/services/bedrock-runtime.d.ts.map +1 -1
- package/build/types/integrations/aws-sdk/types.d.ts +2 -0
- package/build/types/integrations/aws-sdk/types.d.ts.map +1 -1
- package/build/types/integrations/cron.d.ts +16 -0
- package/build/types/integrations/cron.d.ts.map +1 -0
- package/build/types/integrations/dataloader.d.ts.map +1 -1
- package/build/types/integrations/firebase/firestore.d.ts.map +1 -1
- package/build/types/integrations/google-genai.d.ts.map +1 -1
- package/build/types/integrations/graphql/constants.d.ts +1 -1
- package/build/types/integrations/graphql/constants.d.ts.map +1 -1
- package/build/types/integrations/hono/constants.d.ts +1 -0
- package/build/types/integrations/hono/constants.d.ts.map +1 -1
- package/build/types/integrations/hono/createHonoMiddleware.d.ts +0 -1
- package/build/types/integrations/hono/createHonoMiddleware.d.ts.map +1 -1
- package/build/types/integrations/hono/honoIntegration.d.ts.map +1 -1
- package/build/types/integrations/hono/matchResult.d.ts +21 -4
- package/build/types/integrations/hono/matchResult.d.ts.map +1 -1
- package/build/types/integrations/hono/middlewareHandlers.d.ts +1 -2
- package/build/types/integrations/hono/middlewareHandlers.d.ts.map +1 -1
- package/build/types/integrations/hono/patchAppRequest.d.ts.map +1 -1
- package/build/types/integrations/hono/patchRoute.d.ts.map +1 -1
- package/build/types/integrations/hono/resolveRouteName.d.ts +4 -7
- package/build/types/integrations/hono/resolveRouteName.d.ts.map +1 -1
- package/build/types/integrations/hono/sentryOriginalTraps.d.ts +9 -0
- package/build/types/integrations/hono/sentryOriginalTraps.d.ts.map +1 -0
- package/build/types/integrations/hono/wrapMiddlewareSpan.d.ts.map +1 -1
- package/build/types/integrations/kafkajs/semconv.d.ts +1 -4
- package/build/types/integrations/kafkajs/semconv.d.ts.map +1 -1
- package/build/types/integrations/knex.d.ts.map +1 -1
- package/build/types/integrations/langgraph.d.ts.map +1 -1
- package/build/types/integrations/mongodb/index.d.ts.map +1 -1
- package/build/types/integrations/mongodb/mongodb-span.d.ts.map +1 -1
- package/build/types/integrations/mysql.d.ts.map +1 -1
- package/build/types/integrations/mysql2/index.d.ts.map +1 -1
- package/build/types/integrations/mysql2/mysql2-dc-subscriber.d.ts.map +1 -1
- package/build/types/integrations/neon.d.ts.map +1 -1
- package/build/types/integrations/nitro/captureStorageEvents.d.ts.map +1 -1
- package/build/types/integrations/node-cron.d.ts +26 -0
- package/build/types/integrations/node-cron.d.ts.map +1 -0
- package/build/types/integrations/node-schedule.d.ts +25 -0
- package/build/types/integrations/node-schedule.d.ts.map +1 -0
- package/build/types/integrations/{postgres.d.ts → pg.d.ts} +1 -1
- package/build/types/integrations/pg.d.ts.map +1 -0
- package/build/types/integrations/{postgres-js.d.ts → postgresjs/index.d.ts} +11 -8
- package/build/types/integrations/postgresjs/index.d.ts.map +1 -0
- package/build/types/integrations/postgresjs/postgresjs-dc-subscriber.d.ts +48 -0
- package/build/types/integrations/postgresjs/postgresjs-dc-subscriber.d.ts.map +1 -0
- package/build/types/integrations/{postgresjs.d.ts → postgresjs-wrapper.d.ts} +23 -9
- package/build/types/integrations/postgresjs-wrapper.d.ts.map +1 -0
- package/build/types/integrations/prisma/orchestrion.d.ts.map +1 -1
- package/build/types/integrations/prisma/tracing-helper.d.ts.map +1 -1
- package/build/types/integrations/redis/ioredis-channel-subscriber.d.ts.map +1 -1
- package/build/types/integrations/serveTunnel.d.ts +14 -0
- package/build/types/integrations/serveTunnel.d.ts.map +1 -0
- package/build/types/integrations/tedious.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 +7 -0
- package/build/types/orchestrion/bundler/options.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/vite.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/webpack.d.ts.map +1 -1
- package/build/types/orchestrion/channels.d.ts +7 -0
- package/build/types/orchestrion/channels.d.ts.map +1 -1
- package/build/types/orchestrion/config/anthropic-ai.d.ts.map +1 -1
- package/build/types/orchestrion/config/cron.d.ts +31 -0
- package/build/types/orchestrion/config/cron.d.ts.map +1 -0
- package/build/types/orchestrion/config/generic-pool.d.ts +1 -1
- package/build/types/orchestrion/config/index.d.ts.map +1 -1
- package/build/types/orchestrion/config/mistral.d.ts +3 -3
- package/build/types/orchestrion/config/nestjs.d.ts +1 -0
- package/build/types/orchestrion/config/nestjs.d.ts.map +1 -1
- package/build/types/orchestrion/config/node-cron.d.ts +19 -0
- package/build/types/orchestrion/config/node-cron.d.ts.map +1 -0
- package/build/types/orchestrion/config/node-schedule.d.ts +18 -0
- package/build/types/orchestrion/config/node-schedule.d.ts.map +1 -0
- package/build/types/orchestrion/config/pg.d.ts +1 -1
- package/build/types/orchestrion/config/postgres.d.ts.map +1 -1
- package/build/types/orchestrion/detect.d.ts.map +1 -1
- package/build/types/orchestrion/instrumentation.d.ts.map +1 -1
- package/build/types/tracing-channel.d.ts +1 -6
- package/build/types/tracing-channel.d.ts.map +1 -1
- package/build/types/utils/cronMonitoring.d.ts +39 -0
- package/build/types/utils/cronMonitoring.d.ts.map +1 -0
- package/build/types/utils/diagnosticsChannel.d.ts.map +1 -1
- package/build/types/utils/monitorStream.d.ts +7 -1
- package/build/types/utils/monitorStream.d.ts.map +1 -1
- package/build/types/utils/runtime.d.ts +7 -0
- package/build/types/utils/runtime.d.ts.map +1 -0
- package/build/types/utils/sql.d.ts +31 -7
- package/build/types/utils/sql.d.ts.map +1 -1
- package/build/types/utils/tunnelServer.d.ts +10 -0
- package/build/types/utils/tunnelServer.d.ts.map +1 -0
- package/build/types/utils/wrapServerRequestHandler.d.ts +9 -2
- package/build/types/utils/wrapServerRequestHandler.d.ts.map +1 -1
- package/package.json +33 -25
- package/build/cjs/integrations/postgres-js.js +0 -200
- package/build/cjs/integrations/postgres-js.js.map +0 -1
- package/build/cjs/integrations/postgres.js.map +0 -1
- package/build/cjs/integrations/postgresjs.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js.map +0 -1
- package/build/esm/integrations/postgres-js.js +0 -198
- package/build/esm/integrations/postgres-js.js.map +0 -1
- package/build/esm/integrations/postgres.js.map +0 -1
- package/build/esm/integrations/postgresjs.js.map +0 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js.map +0 -1
- package/build/types/integrations/postgres-js.d.ts.map +0 -1
- package/build/types/integrations/postgres.d.ts.map +0 -1
- package/build/types/integrations/postgresjs.d.ts.map +0 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ScheduleChange } from '../utils/cronMonitoring';
|
|
2
|
+
export interface CronJobIntegrationOptions {
|
|
3
|
+
/** Job names not to monitor. Strings must match the name exactly. */
|
|
4
|
+
excludeJobs?: Array<string | RegExp>;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Sends Crons check-ins for every `CronJob` of the `cron` package (4.3+) that has a `name`.
|
|
8
|
+
* The monitor slug is the job name. Jobs without a name, one-off jobs, and jobs with a schedule Crons can't express
|
|
9
|
+
* are not monitored.
|
|
10
|
+
*/
|
|
11
|
+
export declare const cronJobIntegration: (options?: CronJobIntegrationOptions | undefined) => import("@sentry/core").Integration & {
|
|
12
|
+
name: "CronJob";
|
|
13
|
+
};
|
|
14
|
+
/** Sets the new time's config after `job.setTime(cronTime)`. Without one, the job doesn't check in. */
|
|
15
|
+
export declare function onSetTime({ arguments: [cronTime], self }: ScheduleChange): void;
|
|
16
|
+
//# sourceMappingURL=cron.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cron.d.ts","sourceRoot":"","sources":["../../../src/integrations/cron.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAS,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAYrE,MAAM,WAAW,yBAAyB;IACxC,qEAAqE;IACrE,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CACtC;AAaD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;CAAyC,CAAC;AAOzE,uGAAuG;AACvG,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,cAAc,GAAG,IAAI,CAY/E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataloader.d.ts","sourceRoot":"","sources":["../../../src/integrations/dataloader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dataloader.d.ts","sourceRoot":"","sources":["../../../src/integrations/dataloader.ts"],"names":[],"mappings":"AA2MA;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;CAA4C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firestore.d.ts","sourceRoot":"","sources":["../../../../src/integrations/firebase/firestore.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAgC,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE7G;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"firestore.d.ts","sourceRoot":"","sources":["../../../../src/integrations/firebase/firestore.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAgC,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE7G;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,GAAG,IAAI,CAYxF;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,iBAAiB,GAAG;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAwCA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-genai.d.ts","sourceRoot":"","sources":["../../../src/integrations/google-genai.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"google-genai.d.ts","sourceRoot":"","sources":["../../../src/integrations/google-genai.ts"],"names":[],"mappings":"AAmKA;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;;CAA6C,CAAC"}
|
|
@@ -4,7 +4,7 @@ export declare const SPAN_NAME_VALIDATE = "graphql.validate";
|
|
|
4
4
|
export declare const SPAN_NAME_EXECUTE = "graphql.execute";
|
|
5
5
|
export declare const SPAN_NAME_SUBSCRIBE = "graphql.subscribe";
|
|
6
6
|
export declare const SPAN_NAME_RESOLVE = "graphql.resolve";
|
|
7
|
-
export
|
|
7
|
+
export { GRAPHQL_PROCESSING_TYPE } from '@sentry/conventions/attributes';
|
|
8
8
|
export declare const PROCESSING_TYPE_PARSE = "parse";
|
|
9
9
|
export declare const PROCESSING_TYPE_VALIDATE = "validate";
|
|
10
10
|
export declare const PROCESSING_TYPE_EXECUTE = "execute";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/integrations/graphql/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,yBAAyB,CAAC;AAE7C,eAAO,MAAM,eAAe,kBAAkB,CAAC;AAC/C,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AACrD,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AACnD,eAAO,MAAM,mBAAmB,sBAAsB,CAAC;AACvD,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/integrations/graphql/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,yBAAyB,CAAC;AAE7C,eAAO,MAAM,eAAe,kBAAkB,CAAC;AAC/C,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AACrD,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AACnD,eAAO,MAAM,mBAAmB,sBAAsB,CAAC;AACvD,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AAEnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAC7C,eAAO,MAAM,wBAAwB,aAAa,CAAC;AACnD,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,uBAAuB,YAAY,CAAC;AAGjD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAKzD,eAAO,MAAM,mBAAmB,eAA2C,CAAC;AAC5E,eAAO,MAAM,sBAAsB,eAAsC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,oCAAoC,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,oCAAoC,CAAC;AAMzE,eAAO,MAAM,sBAAsB,+BAA+B,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { HonoRuntime } from './connInfo';
|
|
2
2
|
import type { Context, MiddlewareHandler } from './honoTypes';
|
|
3
3
|
import type { SentryHonoMiddlewareOptions } from './types';
|
|
4
|
-
export declare const SENTRY_HONO_MIDDLEWARE = "__SENTRY_HONO_MIDDLEWARE__";
|
|
5
4
|
export interface CreateHonoRequestMiddlewareOptions {
|
|
6
5
|
/** Selects where the connection info is read from. */
|
|
7
6
|
runtime: HonoRuntime;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createHonoMiddleware.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/createHonoMiddleware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"createHonoMiddleware.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/createHonoMiddleware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAS3D,MAAM,WAAW,kCAAkC;IACjD,sDAAsD;IACtD,OAAO,EAAE,WAAW,CAAC;IAErB,2DAA2D;IAC3D,iBAAiB,CAAC,EAAE,2BAA2B,CAAC,mBAAmB,CAAC,CAAC;IAErE;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,2BAA2B,CAAC,mBAAmB,CAAC,CAAC;CACnG;AAqBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,kCAAkC,GAAG,iBAAiB,CA4C1G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"honoIntegration.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/honoIntegration.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,EAAkB,iBAAiB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"honoIntegration.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/honoIntegration.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,EAAkB,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAchF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAM3D,MAAM,WAAW,sBAAuB,SAAQ,2BAA2B;CAAG;AAM9E;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,GAAE,sBAA2B,GAAG,iBAAiB,CAOnH;AAqHD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
|
|
@@ -1,7 +1,24 @@
|
|
|
1
|
-
import type { MatchedHandler } from './honoTypes';
|
|
1
|
+
import type { Context, MatchedHandler } from './honoTypes';
|
|
2
|
+
/** The match result is internal to Hono. The SDK uses it only in the shape that `compose` reads. */
|
|
3
|
+
export declare function isMatchedHandlerList(handlers: unknown): handlers is MatchedHandler[];
|
|
2
4
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
+
* Reads the match result like `hono/route` does (Hono 4.8+). Hono does not export the getter's symbol,
|
|
6
|
+
* so this looks for a symbol getter that returns a match result.
|
|
7
|
+
* https://github.com/honojs/hono/blob/v5.0.0-rc.1/src/helper/route/index.ts#L32-L34
|
|
5
8
|
*/
|
|
6
|
-
export declare function
|
|
9
|
+
export declare function getMatchedHandlers(context: Context): MatchedHandler[] | undefined;
|
|
10
|
+
/** Runs `callback` each time a route handler of this request starts. */
|
|
11
|
+
export declare function onRouteHandlerStart(context: Context, callback: () => void): void;
|
|
12
|
+
/**
|
|
13
|
+
* Wraps the route handlers so that each stores `c.req.routeIndex` when it starts. Hono 5 resets the
|
|
14
|
+
* index after `next()` (https://github.com/honojs/hono/pull/4424).
|
|
15
|
+
*
|
|
16
|
+
* Wraps only if more than one route handler matched. A single one is the handler that responds. Arity
|
|
17
|
+
* cannot tell if a handler calls `next()`: it does not count rest parameters or a default `next`.
|
|
18
|
+
* Returns `true` if it wrapped.
|
|
19
|
+
*
|
|
20
|
+
* Safe to call during the request: `compose` reads each handler only when it calls it.
|
|
21
|
+
*/
|
|
22
|
+
export declare function wrapRouteHandlers(handlers: MatchedHandler[], middlewareFlags: boolean[]): boolean;
|
|
23
|
+
export declare function getRecordedRouteHandlerIndex(context: Context): number | undefined;
|
|
7
24
|
//# sourceMappingURL=matchResult.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matchResult.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/matchResult.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"matchResult.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/matchResult.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAa,cAAc,EAAE,MAAM,aAAa,CAAC;AA6BtE,oGAAoG;AACpG,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,OAAO,GAAG,QAAQ,IAAI,cAAc,EAAE,CAEpF;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,EAAE,GAAG,SAAS,CAgBjF;AAED,wEAAwE;AACxE,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAEhF;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,cAAc,EAAE,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,OAAO,CAYjG;AA4BD,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAGjF"}
|
|
@@ -12,8 +12,7 @@ export declare function responseHandler(context: Context, shouldHandleError?: Se
|
|
|
12
12
|
/**
|
|
13
13
|
* Captures an unhandled context error, gated by the user's `shouldHandleError` (or the default).
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
* context's error without re-resolving the route name or overwriting request data — e.g. the inner
|
|
15
|
+
* A deduplicated middleware calls it directly to report the error of its own context — e.g. the inner
|
|
17
16
|
* context of an internal `.request()` whose route threw but whose failed response the outer handler
|
|
18
17
|
* swallowed.
|
|
19
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middlewareHandlers.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/middlewareHandlers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"middlewareHandlers.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/middlewareHandlers.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,KAAK,WAAW,EAAgB,MAAM,YAAY,CAAC;AAM5D,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAW3D;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,GAAG,IAAI,CA0B3E;AAgED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,EAChB,iBAAiB,CAAC,EAAE,2BAA2B,CAAC,mBAAmB,CAAC,GACnE,IAAI,CAEN;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,OAAO,EAChB,iBAAiB,CAAC,EAAE,2BAA2B,CAAC,mBAAmB,CAAC,GACnE,IAAI,CAQN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patchAppRequest.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/patchAppRequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"patchAppRequest.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/patchAppRequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAgB7C,8FAA8F;AAC9F,wBAAgB,2BAA2B,IAAI,OAAO,CAErD;AAWD;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAiBtD;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CA+CjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patchRoute.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/patchRoute.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"patchRoute.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/patchRoute.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAMnD,YAAY,EAAE,SAAS,EAAE,CAAC;AAG1B,KAAK,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;AAEzB,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,iBAAiB,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC,CAAC;CACvC,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC;IAChD,mBAAmB,CAAC,EAAE,eAAe,CAAC;CACvC,CAAC;AAiCF;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CAAC,aAAa,EAAE,aAAa,GAAG,eAAe,CAgCzF;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAO9D"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import type { Context } from './honoTypes';
|
|
1
|
+
import type { Context, HonoRoute } from './honoTypes';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Picking the handler (not just `routePath`) avoids two failure modes: a catch-all middleware
|
|
6
|
-
* registered after the handlers (`routePath(c, -1)` would return just `/*`), and a middleware that
|
|
7
|
-
* short-circuits before the handler runs (`routePath(c)` would return the middleware's path).
|
|
3
|
+
* Returns the path of the route that handles the request, or `undefined` if the request has no route.
|
|
4
|
+
* Not the last matched route: a catch-all registered later also matches.
|
|
8
5
|
*/
|
|
9
|
-
export declare function resolveRouteName(context: Context): string;
|
|
6
|
+
export declare function resolveRouteName(context: Context, routes: HonoRoute[], middlewareFlags: boolean[]): string | undefined;
|
|
10
7
|
//# sourceMappingURL=resolveRouteName.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveRouteName.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/resolveRouteName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"resolveRouteName.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/resolveRouteName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAItD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,EAAE,EACnB,eAAe,EAAE,OAAO,EAAE,GACzB,MAAM,GAAG,SAAS,CAuBpB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type AnyFunction = Function;
|
|
2
|
+
/**
|
|
3
|
+
* Proxy traps that expose `original` as `__sentry_original__` on a wrapping Proxy without defining it on the target,
|
|
4
|
+
* which is the original itself. `functionToStringIntegration` only unwraps own properties, so the property has to
|
|
5
|
+
* look like an own one too.
|
|
6
|
+
*/
|
|
7
|
+
export declare function sentryOriginalTraps<T extends AnyFunction>(original: AnyFunction): Pick<ProxyHandler<T>, 'get' | 'getOwnPropertyDescriptor'>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=sentryOriginalTraps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sentryOriginalTraps.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/sentryOriginalTraps.ts"],"names":[],"mappings":"AACA,KAAK,WAAW,GAAG,QAAQ,CAAC;AAE5B;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,WAAW,EACvD,QAAQ,EAAE,WAAW,GACpB,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,0BAA0B,CAAC,CAe3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrapMiddlewareSpan.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/wrapMiddlewareSpan.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"wrapMiddlewareSpan.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/wrapMiddlewareSpan.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAOrD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,iBAAiB,GAAG,iBAAiB,CAyCpF"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare const ATTR_MESSAGING_KAFKA_MESSAGE_KEY: 'messaging.kafka.message.key';
|
|
3
|
-
export declare const ATTR_MESSAGING_KAFKA_MESSAGE_TOMBSTONE: 'messaging.kafka.message.tombstone';
|
|
4
|
-
export declare const ATTR_MESSAGING_KAFKA_OFFSET: 'messaging.kafka.offset';
|
|
1
|
+
export { MESSAGING_DESTINATION_PARTITION_ID as ATTR_MESSAGING_DESTINATION_PARTITION_ID, MESSAGING_KAFKA_MESSAGE_KEY as ATTR_MESSAGING_KAFKA_MESSAGE_KEY, MESSAGING_KAFKA_MESSAGE_TOMBSTONE as ATTR_MESSAGING_KAFKA_MESSAGE_TOMBSTONE, MESSAGING_KAFKA_OFFSET as ATTR_MESSAGING_KAFKA_OFFSET, } from '@sentry/conventions/attributes';
|
|
5
2
|
export declare const MESSAGING_OPERATION_TYPE_VALUE_PROCESS: 'process';
|
|
6
3
|
export declare const MESSAGING_OPERATION_TYPE_VALUE_RECEIVE: 'receive';
|
|
7
4
|
export declare const MESSAGING_OPERATION_TYPE_VALUE_SEND: 'send';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semconv.d.ts","sourceRoot":"","sources":["../../../../src/integrations/kafkajs/semconv.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"semconv.d.ts","sourceRoot":"","sources":["../../../../src/integrations/kafkajs/semconv.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,IAAI,uCAAuC,EAC7E,2BAA2B,IAAI,gCAAgC,EAC/D,iCAAiC,IAAI,sCAAsC,EAC3E,sBAAsB,IAAI,2BAA2B,GACtD,MAAM,gCAAgC,CAAC;AAExC,eAAO,MAAM,sCAAsC,EAAG,SAAkB,CAAC;AACzE,eAAO,MAAM,sCAAsC,EAAG,SAAkB,CAAC;AACzE,eAAO,MAAM,mCAAmC,EAAG,MAAe,CAAC;AACnE,eAAO,MAAM,4BAA4B,EAAG,OAAgB,CAAC;AAG7D,eAAO,MAAM,sBAAsB,EAAG,QAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knex.d.ts","sourceRoot":"","sources":["../../../src/integrations/knex.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"knex.d.ts","sourceRoot":"","sources":["../../../src/integrations/knex.ts"],"names":[],"mappings":"AAoSA;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"langgraph.d.ts","sourceRoot":"","sources":["../../../src/integrations/langgraph.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"langgraph.d.ts","sourceRoot":"","sources":["../../../src/integrations/langgraph.ts"],"names":[],"mappings":"AA8FA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;CAA2C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/mongodb/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/mongodb/index.ts"],"names":[],"mappings":"AA+JA;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB;;CAAuC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mongodb-span.d.ts","sourceRoot":"","sources":["../../../../src/integrations/mongodb/mongodb-span.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mongodb-span.d.ts","sourceRoot":"","sources":["../../../../src/integrations/mongodb/mongodb-span.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAKzD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,SAAS;IACjB,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAEhF;AAmCD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,EAC/C,EAAE,EAAE,gBAAgB,EACpB,OAAO,EAAE,SAAS,GAAG,SAAS,EAC9B,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,MAAM,EAAE,MAAM,GACb,cAAc,CAqBhB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAC/C,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,MAAM,EAAE,MAAM,GACb,cAAc,CA4BhB;AAED,2EAA2E;AAC3E,MAAM,WAAW,eAAe;IAC9B,CAAC,CAAC,EAAE;QACF,OAAO,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF,WAAW,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACpC;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,SAAS,CAa1F;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,eAAe,GAAG,SAAS,EACrC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAC5C,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,MAAM,EAAE,MAAM,GACb,cAAc,CAyBhB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,cAAc,GAAG,IAAI,CAqB/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../../src/integrations/mysql.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../../src/integrations/mysql.ts"],"names":[],"mappings":"AA4JA;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB;;CAAuC,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":"AAyIA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB;;CAAwC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mysql2-dc-subscriber.d.ts","sourceRoot":"","sources":["../../../../src/integrations/mysql2/mysql2-dc-subscriber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"mysql2-dc-subscriber.d.ts","sourceRoot":"","sources":["../../../../src/integrations/mysql2/mysql2-dc-subscriber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAkB/D,eAAO,MAAM,uBAAuB,iBAAiB,CAAC;AACtD,eAAO,MAAM,yBAAyB,mBAAmB,CAAC;AAC1D,eAAO,MAAM,yBAAyB,mBAAmB,CAAC;AAC1D,eAAO,MAAM,8BAA8B,wBAAwB,CAAC;AAKpE;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oFAAoF;IACpF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAEnG;;;;;;;;GAQG;AACH,wBAAgB,iCAAiC,CAAC,cAAc,EAAE,2BAA2B,GAAG,IAAI,CAKnG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"neon.d.ts","sourceRoot":"","sources":["../../../src/integrations/neon.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"neon.d.ts","sourceRoot":"","sources":["../../../src/integrations/neon.ts"],"names":[],"mappings":"AAyJA;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"captureStorageEvents.d.ts","sourceRoot":"","sources":["../../../../src/integrations/nitro/captureStorageEvents.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"captureStorageEvents.d.ts","sourceRoot":"","sources":["../../../../src/integrations/nitro/captureStorageEvents.ts"],"names":[],"mappings":"AAoEA;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAU3C"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { MonitorConfig } from '@sentry/core';
|
|
2
|
+
export interface NodeCronIntegrationOptions {
|
|
3
|
+
/** Task names not to monitor. Strings must match the name exactly. */
|
|
4
|
+
excludeJobs?: Array<string | RegExp>;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Sends Crons check-ins for every named `node-cron` task, with its schedule as the monitor config.
|
|
8
|
+
* The monitor slug is the task's `name` option. Tasks without a name, or with a schedule Sentry can't express, are not
|
|
9
|
+
* monitored.
|
|
10
|
+
*/
|
|
11
|
+
export declare const nodeCronIntegration: (options?: NodeCronIntegrationOptions | undefined) => import("@sentry/core").Integration & {
|
|
12
|
+
name: "NodeCron";
|
|
13
|
+
};
|
|
14
|
+
/** The monitor config for a task, or `undefined` if `isReadAlike` says this node-cron version reads it differently. */
|
|
15
|
+
export declare function getMonitorConfig(expression: string, timezone: unknown, isReadAlike?: (expression: string) => boolean): MonitorConfig | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* node-cron before 4.6 reads `7` as `0` and swaps reversed ranges, so it runs `sat-sun`, `6-0` and `6-7` every day.
|
|
18
|
+
* Returns `false` for weekday ranges that could hit that.
|
|
19
|
+
*/
|
|
20
|
+
export declare function isReadAlikeByNodeCron4(expression: string): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* node-cron 3 keeps the values of a stepped field that are multiples of the step (`*\/2` days are 2, 4, ...)
|
|
23
|
+
* and reads weekday ranges like node-cron 4 before 4.6. Returns `false` where that differs from standard cron.
|
|
24
|
+
*/
|
|
25
|
+
export declare function isReadAlikeByNodeCron3(expression: string): boolean;
|
|
26
|
+
//# sourceMappingURL=node-cron.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-cron.d.ts","sourceRoot":"","sources":["../../../src/integrations/node-cron.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,aAAa,EAAE,MAAM,cAAc,CAAC;AAejE,MAAM,WAAW,0BAA0B;IACzC,sEAAsE;IACtE,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CACtC;AAcD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;CAA0C,CAAC;AA2B3E,uHAAuH;AACvH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,OAAO,EACjB,WAAW,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,GAC5C,aAAa,GAAG,SAAS,CAI3B;AAID;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAGlE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAalE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { MonitorConfig } from '@sentry/core';
|
|
2
|
+
import type { ScheduleChange } from '../utils/cronMonitoring';
|
|
3
|
+
export interface NodeScheduleIntegrationOptions {
|
|
4
|
+
/** Job names not to monitor. Strings must match the name exactly. */
|
|
5
|
+
excludeJobs?: Array<string | RegExp>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Sends Crons check-ins for every named `node-schedule` job, whether it's created with `scheduleJob` or `new Job()`.
|
|
9
|
+
* The monitor slug is the job name. Jobs without a name, one-off jobs, and jobs with a schedule Crons can't express
|
|
10
|
+
* are not monitored.
|
|
11
|
+
*/
|
|
12
|
+
export declare const nodeScheduleIntegration: (options?: NodeScheduleIntegrationOptions | undefined) => import("@sentry/core").Integration & {
|
|
13
|
+
name: "NodeSchedule";
|
|
14
|
+
};
|
|
15
|
+
/** Wraps a named job's method before `job.schedule(spec)` with a recurring spec, unless it's already wrapped. */
|
|
16
|
+
export declare function beforeSchedule(change: ScheduleChange, options: NodeScheduleIntegrationOptions): void;
|
|
17
|
+
/**
|
|
18
|
+
* Sets the spec's config after `job.schedule(spec)`. Without one, from a spec Crons can't express or a job that also
|
|
19
|
+
* keeps runs from an earlier spec, the job doesn't check in.
|
|
20
|
+
*/
|
|
21
|
+
export declare function onSchedule(change: ScheduleChange): void;
|
|
22
|
+
/** Whether node-schedule runs a job with this spec once: a `Date`, a timestamp, or a date string. */
|
|
23
|
+
export declare function isOneOffSpec(spec: unknown): boolean;
|
|
24
|
+
export declare function getMonitorConfig(spec: unknown): MonitorConfig | undefined;
|
|
25
|
+
//# sourceMappingURL=node-schedule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-schedule.d.ts","sourceRoot":"","sources":["../../../src/integrations/node-schedule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,aAAa,EAAE,MAAM,cAAc,CAAC;AAKjE,OAAO,KAAK,EAAS,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAWrE,MAAM,WAAW,8BAA8B;IAC7C,qEAAqE;IACrE,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CACtC;AAaD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;CAA8C,CAAC;AAoBnF,iHAAiH;AACjH,wBAAgB,cAAc,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,8BAA8B,GAAG,IAAI,CAapG;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,CAMvD;AAED,qGAAqG;AACrG,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAQnD;AAWD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,aAAa,GAAG,SAAS,CAMzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pg.d.ts","sourceRoot":"","sources":["../../../src/integrations/pg.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAwB,cAAc,EAAE,MAAM,cAAc,CAAC;AA0CzE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAgCD,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IAGf,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAEzF;AAkHD,oFAAoF;AACpF,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,kBAAkB,GAAG,cAAc,CAQlF;AAsDD;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB;yBA7N+B,OAAO;;;CA6NI,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Span } from '@sentry/core';
|
|
2
|
-
import { type PostgresConnectionContext } from '
|
|
2
|
+
import { type PostgresConnectionContext } from '../postgresjs-wrapper';
|
|
3
3
|
export interface PostgresJsIntegrationOptions {
|
|
4
4
|
/**
|
|
5
5
|
* Only create spans when there's already an active parent span. Defaults to
|
|
@@ -13,15 +13,18 @@ export interface PostgresJsIntegrationOptions {
|
|
|
13
13
|
requestHook?: (span: Span, sanitizedSqlQuery: string, postgresConnectionContext?: PostgresConnectionContext) => void;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* Diagnostics-channel-based postgres.js
|
|
16
|
+
* Diagnostics-channel-based postgres.js integration.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
* `:connect`
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
18
|
+
* - `postgres` 3.x: subscribes to the `orchestrion:postgres:handle` / `:connection` /
|
|
19
|
+
* `:execute` / `:connect` channels injected into postgres.js' `Query.prototype.handle`
|
|
20
|
+
* and `Connection`/`execute`/`connect` (in `src/*` and `cjs/src/*`). Requires the
|
|
21
|
+
* Sentry runtime hook or bundler plugin.
|
|
22
|
+
* - `postgres` >= 4.0.0: subscribes to the `postgres:query` tracing channel the library
|
|
23
|
+
* publishes natively.
|
|
24
|
+
*
|
|
25
|
+
* Both paths create the same db spans.
|
|
23
26
|
*/
|
|
24
27
|
export declare const postgresJsIntegration: (options?: PostgresJsIntegrationOptions | undefined) => import("@sentry/core").Integration & {
|
|
25
28
|
name: "PostgresJs";
|
|
26
29
|
};
|
|
27
|
-
//# sourceMappingURL=
|
|
30
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/postgresjs/index.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAiB,IAAI,EAAkB,MAAM,cAAc,CAAC;AAIxE,OAAO,EAKL,KAAK,yBAAyB,EAE/B,MAAM,uBAAuB,CAAC;AA4B/B,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;AAwMD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB;;CAA4C,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { TracingChannel } from 'node:diagnostics_channel';
|
|
2
|
+
import type { SpanAttributes } from '@sentry/core';
|
|
3
|
+
import { type PostgresConnectionContext, type PostgresJsSqlInstrumentationOptions } from '../postgresjs-wrapper';
|
|
4
|
+
/**
|
|
5
|
+
* Tracing channel published by `postgres` >= 4.0.0 for every query (see postgres `src/diagnostics.js`).
|
|
6
|
+
*/
|
|
7
|
+
export declare const POSTGRESJS_DC_CHANNEL_QUERY = "postgres:query";
|
|
8
|
+
/**
|
|
9
|
+
* The context `postgres` >= 4.0.0 publishes on `postgres:query`. `host`, `port` and `connection`
|
|
10
|
+
* stay `null` until the query is written to a connection, and `command`/`count` until it completes,
|
|
11
|
+
* so they can only be read once the span ends.
|
|
12
|
+
*/
|
|
13
|
+
export interface PostgresJsQueryData {
|
|
14
|
+
query?: string | null;
|
|
15
|
+
database?: string;
|
|
16
|
+
user?: string | null;
|
|
17
|
+
host?: string | null;
|
|
18
|
+
port?: number | null;
|
|
19
|
+
command?: string | null;
|
|
20
|
+
result?: unknown;
|
|
21
|
+
error?: unknown;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Platform-provided factory for a native tracing channel. Node passes `node:diagnostics_channel`'s
|
|
25
|
+
* `tracingChannel` directly.
|
|
26
|
+
*/
|
|
27
|
+
export type PostgresJsTracingChannelFactory = <T extends object>(name: string) => TracingChannel<T, T>;
|
|
28
|
+
/**
|
|
29
|
+
* Subscribe Sentry span handlers to the `postgres:query` tracing channel published natively by
|
|
30
|
+
* `postgres` >= 4.0.0. Older versions never publish it, and the orchestrion transform is gated to
|
|
31
|
+
* `< 4`, so no query gets two spans.
|
|
32
|
+
*/
|
|
33
|
+
export declare function subscribePostgresJsDiagnosticChannels(tracingChannel: PostgresJsTracingChannelFactory, options?: PostgresJsSqlInstrumentationOptions): void;
|
|
34
|
+
/**
|
|
35
|
+
* Maps a `postgres:query` context to a {@link PostgresConnectionContext}. At `start` only the
|
|
36
|
+
* database is known; `host`/`port` are filled in once the query is sent.
|
|
37
|
+
*
|
|
38
|
+
* @internal Exported for testing only
|
|
39
|
+
*/
|
|
40
|
+
export declare function getPostgresJsConnectionContext(data: PostgresJsQueryData): PostgresConnectionContext;
|
|
41
|
+
/**
|
|
42
|
+
* Attributes only known once the query settled: the connection it ran on, the server-reported
|
|
43
|
+
* command and, on failure, the Postgres error code.
|
|
44
|
+
*
|
|
45
|
+
* @internal Exported for testing only
|
|
46
|
+
*/
|
|
47
|
+
export declare function getPostgresJsQueryEndAttributes(data: PostgresJsQueryData): SpanAttributes;
|
|
48
|
+
//# sourceMappingURL=postgresjs-dc-subscriber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgresjs-dc-subscriber.d.ts","sourceRoot":"","sources":["../../../../src/integrations/postgresjs/postgresjs-dc-subscriber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAW/D,OAAO,KAAK,EAAQ,cAAc,EAAE,MAAM,cAAc,CAAC;AAKzD,OAAO,EAGL,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACzC,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,eAAO,MAAM,2BAA2B,mBAAmB,CAAC;AAK5D;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAEvG;;;;GAIG;AACH,wBAAgB,qCAAqC,CACnD,cAAc,EAAE,+BAA+B,EAC/C,OAAO,GAAE,mCAAwC,GAChD,IAAI,CAyCN;AAED;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,mBAAmB,GAAG,yBAAyB,CAMnG;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,mBAAmB,GAAG,cAAc,CAazF"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { type Span, type SpanAttributes } from '@sentry/core';
|
|
2
|
+
/** The callbacks postgres.js calls on a `Query` when it settles. */
|
|
3
|
+
export interface PostgresQuerySettlement {
|
|
4
|
+
resolve?: (...args: unknown[]) => unknown;
|
|
5
|
+
reject?: (...args: unknown[]) => unknown;
|
|
6
|
+
}
|
|
2
7
|
export type PostgresConnectionContext = {
|
|
3
8
|
ATTR_DB_NAMESPACE?: string;
|
|
4
9
|
ATTR_SERVER_ADDRESS?: string;
|
|
5
10
|
ATTR_SERVER_PORT?: string;
|
|
6
11
|
};
|
|
7
|
-
interface PostgresJsSqlInstrumentationOptions {
|
|
12
|
+
export interface PostgresJsSqlInstrumentationOptions {
|
|
8
13
|
/**
|
|
9
14
|
* Whether to require a parent span for the instrumentation.
|
|
10
15
|
* If set to true, the instrumentation will only create spans if there is a parent span
|
|
@@ -38,6 +43,12 @@ interface PostgresJsSqlInstrumentationOptions {
|
|
|
38
43
|
* ```
|
|
39
44
|
*/
|
|
40
45
|
export declare function instrumentPostgresJsSql<T>(sql: T, options?: PostgresJsSqlInstrumentationOptions): T;
|
|
46
|
+
/**
|
|
47
|
+
* Whether `span` was started by {@link instrumentPostgresJsSql}.
|
|
48
|
+
*
|
|
49
|
+
* @internal Exported for the diagnostics-channel integration.
|
|
50
|
+
*/
|
|
51
|
+
export declare function _isPostgresJsWrapperSpan(span: Span | undefined): boolean;
|
|
41
52
|
/**
|
|
42
53
|
* Reconstructs the full SQL query from template strings with PostgreSQL placeholders.
|
|
43
54
|
*
|
|
@@ -54,12 +65,6 @@ export declare function _reconstructQuery(strings: string[] | undefined): string
|
|
|
54
65
|
* @internal Exported for the diagnostics-channel integration.
|
|
55
66
|
*/
|
|
56
67
|
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
68
|
/**
|
|
64
69
|
* Builds a {@link PostgresConnectionContext} from postgres.js' parsed options
|
|
65
70
|
* (which store `host`/`port` as arrays). Defaults to 'localhost'/5432.
|
|
@@ -71,5 +76,14 @@ export declare function _buildConnectionContext(options: {
|
|
|
71
76
|
port?: number[];
|
|
72
77
|
database?: string;
|
|
73
78
|
}): PostgresConnectionContext;
|
|
74
|
-
|
|
75
|
-
|
|
79
|
+
/**
|
|
80
|
+
* Wrap `query.resolve`/`query.reject` so the span ends when the query settles.
|
|
81
|
+
*
|
|
82
|
+
* `Query extends Promise` and `async handle()` only dispatches — its promise
|
|
83
|
+
* resolves immediately, long before the query completes. postgres.js signals
|
|
84
|
+
* completion by calling `this.resolve`/`this.reject`, so we own the span end
|
|
85
|
+
* there. Wrapping happens at handle-start because `reject` can fire
|
|
86
|
+
* synchronously during dispatch and `cursor()` reassigns both before executing.
|
|
87
|
+
*/
|
|
88
|
+
export declare function _wrapQuerySettlement(query: PostgresQuerySettlement, span: Span, operationName: string | undefined, onSettle?: () => void): void;
|
|
89
|
+
//# sourceMappingURL=postgresjs-wrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgresjs-wrapper.d.ts","sourceRoot":"","sources":["../../../src/integrations/postgresjs-wrapper.ts"],"names":[],"mappings":"AAKA,OAAO,EAKL,KAAK,IAAI,EACT,KAAK,cAAc,EAGpB,MAAM,cAAc,CAAC;AAiBtB,oEAAoE;AACpE,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;IAC1C,MAAM,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;CAC1C;AAED,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,MAAM,WAAW,mCAAmC;IAClD;;;;;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;AAeD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,mCAAmC,GAAG,CAAC,CAOnG;AA8MD;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,OAAO,CAExE;AAYD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CASnF;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,iBAAiB,EAAE,yBAAyB,GAAG,cAAc,CAkBrG;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAC/C,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,yBAAyB,CAQ5B;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,uBAAuB,EAC9B,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,QAAQ,CAAC,EAAE,MAAM,IAAI,GACpB,IAAI,CAiCN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrion.d.ts","sourceRoot":"","sources":["../../../../src/integrations/prisma/orchestrion.ts"],"names":[],"mappings":"AAkCA,UAAU,8BAA8B;IACtC,eAAe,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CACtC;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,8BAA8B,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"orchestrion.d.ts","sourceRoot":"","sources":["../../../../src/integrations/prisma/orchestrion.ts"],"names":[],"mappings":"AAkCA,UAAU,8BAA8B;IACtC,eAAe,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CACtC;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,8BAA8B,GAAG,IAAI,CAehF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracing-helper.d.ts","sourceRoot":"","sources":["../../../../src/integrations/prisma/tracing-helper.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"tracing-helper.d.ts","sourceRoot":"","sources":["../../../../src/integrations/prisma/tracing-helper.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAGzD,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AA2B5F,KAAK,OAAO,GAAG;IACb,eAAe,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CACtC,CAAC;AAGF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB,CAAC;AAEF,KAAK,gBAAgB,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE9C,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,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;AA+IF;;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;AAmFD,mFAAmF;AACnF,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,OAAO,CAEhG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ioredis-channel-subscriber.d.ts","sourceRoot":"","sources":["../../../../src/integrations/redis/ioredis-channel-subscriber.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAGzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAevD,UAAU,eAAe;IACvB,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5C;AAED,UAAU,qBAAsB,SAAQ,yBAAyB;IAC/D,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB;AAoBD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,qBAAqB,EAC3B,YAAY,EAAE,iBAAiB,GAC9B,IAAI,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"ioredis-channel-subscriber.d.ts","sourceRoot":"","sources":["../../../../src/integrations/redis/ioredis-channel-subscriber.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAGzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAevD,UAAU,eAAe;IACvB,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5C;AAED,UAAU,qBAAsB,SAAQ,yBAAyB;IAC/D,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB;AAoBD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,qBAAqB,EAC3B,YAAY,EAAE,iBAAiB,GAC9B,IAAI,GAAG,SAAS,CA+BlB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CA4BlE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ServerTunnelOptions } from '@sentry/core';
|
|
2
|
+
/**
|
|
3
|
+
* Lets every `node:http` server answer managed tunnel requests before the app sees them, whatever framework runs on
|
|
4
|
+
* it. Nothing is answered unless the tunnel is on, through `serveTunnelIntegration` or a framework SDK.
|
|
5
|
+
*/
|
|
6
|
+
export declare function instrumentTunnelServers(): void;
|
|
7
|
+
/**
|
|
8
|
+
* Makes a `serveTunnelIntegration` that, unless `intercept` is off, also runs `instrumentRuntimeServers` to answer
|
|
9
|
+
* tunnel requests on the runtime's own servers, like `Bun.serve` or `Deno.serve`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function makeServeTunnelIntegration(instrumentRuntimeServers?: () => void): (options?: ServerTunnelOptions | undefined) => import("@sentry/core").Integration & {
|
|
12
|
+
name: string;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=serveTunnel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serveTunnel.d.ts","sourceRoot":"","sources":["../../../src/integrations/serveTunnel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAaxD;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAU9C;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,wBAAwB,CAAC,EAAE,MAAM,IAAI;;EAY/E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tedious.d.ts","sourceRoot":"","sources":["../../../src/integrations/tedious.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tedious.d.ts","sourceRoot":"","sources":["../../../src/integrations/tedious.ts"],"names":[],"mappings":"AAqRA;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;CAAyC,CAAC"}
|
|
@@ -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":"AAuCA,OAAO,KAAK,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAczD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/D,OAAO,EAA+B,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAIrF,OAAO,EAAwC,KAAK,uBAAuB,EAA2B,MAAM,QAAQ,CAAC;AAErH;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,iBAAiB,CAAC;AA+D/D,2GAA2G;AAC3G,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,sBAAsB,GAAG,IAAI,CAQnE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAKzD;AA0FD,sEAAsE;AACtE,MAAM,MAAM,gBAAgB,GACxB,cAAc,GACd,YAAY,GACZ,gBAAgB,GAChB,MAAM,GACN,mBAAmB,GACnB,aAAa,GACb,OAAO,GACP,WAAW,GACX,QAAQ,GACR,uBAAuB,GACvB,qBAAqB,CAAC;AAE1B;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAErG,mHAAmH;AACnH,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAC;AAElD;;;;;;;;;;;GAWG;AACH,wBAAgB,+BAA+B,CAC7C,cAAc,EAAE,6BAA6B,EAC7C,OAAO,GAAE,sBAA2B,GACnC,IAAI,CAgBN;AAwCD,yGAAyG;AACzG,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAuBrG;AA+CD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,sBAAsB,EAC5B,cAAc,EAAE,sBAAsB,GACrC,IAAI,GAAG,SAAS,CAwFlB;AAyHD;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,sBAAsB,EAC5B,cAAc,EAAE,sBAAsB,GACrC,IAAI,CAyEN;AAoJD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CA0B/F"}
|
|
@@ -33,6 +33,13 @@ export type PluginOptions = {
|
|
|
33
33
|
* routing every channel through it is harmless.
|
|
34
34
|
*/
|
|
35
35
|
dcModule?: string;
|
|
36
|
+
/**
|
|
37
|
+
* When `true`, the Vite plugin also runs the transform in the dependency optimizer of server environments in
|
|
38
|
+
* `vite dev`. Needed for `@cloudflare/vite-plugin`, which pre-bundles the dependencies of a Worker there.
|
|
39
|
+
*
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
transformOptimizedDeps?: boolean;
|
|
36
43
|
};
|
|
37
44
|
/**
|
|
38
45
|
* Whether an "external" config entry covers an instrumented module: an exact
|