@sentry/server-utils 11.9.0 → 11.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/build/THIRD-PARTY-LICENSES.txt +72 -72
- package/build/cjs/ai/anthropic-ai/index.js +6 -3
- package/build/cjs/ai/anthropic-ai/index.js.map +1 -1
- package/build/cjs/ai/anthropic-ai/streaming.js +17 -9
- package/build/cjs/ai/anthropic-ai/streaming.js.map +1 -1
- package/build/cjs/ai/anthropic-ai/tool-runner.js +11 -4
- package/build/cjs/ai/anthropic-ai/tool-runner.js.map +1 -1
- package/build/cjs/ai/flue/index.js +38 -3
- 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 +18 -3
- package/build/cjs/ai/google-genai/index.js.map +1 -1
- package/build/cjs/ai/langchain/constants.js +2 -0
- package/build/cjs/ai/langchain/constants.js.map +1 -1
- package/build/cjs/ai/langchain/index.js +35 -8
- package/build/cjs/ai/langchain/index.js.map +1 -1
- package/build/cjs/ai/openai/index.js +18 -4
- package/build/cjs/ai/openai/index.js.map +1 -1
- package/build/cjs/ai/openai/streaming.js +40 -9
- package/build/cjs/ai/openai/streaming.js.map +1 -1
- package/build/cjs/ai/pi-durable/constants.js +2 -0
- package/build/cjs/ai/pi-durable/constants.js.map +1 -1
- package/build/cjs/ai/pi-durable/index.js +12 -2
- 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/runs.js +14 -1
- package/build/cjs/ai/pi-durable/runs.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/ai/workers-ai/utils.js +39 -1
- package/build/cjs/ai/workers-ai/utils.js.map +1 -1
- package/build/cjs/index.js +20 -13
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.no-diagnostic-channels.js +4 -3
- 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 +6 -8
- package/build/cjs/integrations/amqplib.js.map +1 -1
- package/build/cjs/integrations/anthropic.js +11 -0
- package/build/cjs/integrations/anthropic.js.map +1 -1
- package/build/cjs/integrations/aws-sdk/constants.js +2 -2
- package/build/cjs/integrations/aws-sdk/constants.js.map +1 -1
- package/build/cjs/integrations/aws-sdk/index.js +8 -4
- package/build/cjs/integrations/aws-sdk/index.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 +2 -1
- package/build/cjs/integrations/firebase/firestore.js.map +1 -1
- package/build/cjs/integrations/firebase/functions.js +1 -1
- package/build/cjs/integrations/firebase/functions.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/hapi/hapi-error-handler.js +1 -1
- package/build/cjs/integrations/hapi/hapi-error-handler.js.map +1 -1
- package/build/cjs/integrations/hapi/hapi-types.js +0 -7
- package/build/cjs/integrations/hapi/hapi-types.js.map +1 -1
- package/build/cjs/integrations/hapi/hapi-utils.js +26 -21
- package/build/cjs/integrations/hapi/hapi-utils.js.map +1 -1
- package/build/cjs/integrations/hono/honoIntegration.js +13 -20
- package/build/cjs/integrations/hono/honoIntegration.js.map +1 -1
- package/build/cjs/integrations/hono/isMiddleware.js +8 -0
- package/build/cjs/integrations/hono/isMiddleware.js.map +1 -1
- package/build/cjs/integrations/hono/matchResult.js +18 -0
- package/build/cjs/integrations/hono/matchResult.js.map +1 -0
- package/build/cjs/integrations/hono/patchRoute.js +2 -10
- package/build/cjs/integrations/hono/patchRoute.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 +8 -8
- 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/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/tedious.js +9 -6
- package/build/cjs/integrations/tedious.js.map +1 -1
- package/build/cjs/integrations/vercel-ai/index.js +2 -0
- package/build/cjs/integrations/vercel-ai/index.js.map +1 -1
- package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js +61 -23
- package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/cjs/integrations/vercel-ai/vercel-ai-tool-telemetry.js +40 -0
- package/build/cjs/integrations/vercel-ai/vercel-ai-tool-telemetry.js.map +1 -0
- 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 +13 -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/hono.js +2 -0
- package/build/cjs/orchestrion/config/hono.js.map +1 -1
- 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/openai-compatible.js +3 -3
- package/build/cjs/orchestrion/config/openai-compatible.js.map +1 -1
- package/build/cjs/orchestrion/config/postgres.js +5 -1
- package/build/cjs/orchestrion/config/postgres.js.map +1 -1
- package/build/cjs/orchestrion/config/together-ai.js +8 -4
- package/build/cjs/orchestrion/config/together-ai.js.map +1 -1
- package/build/cjs/orchestrion/instrumentation.js +7 -0
- 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/monitorStream.js +63 -0
- package/build/cjs/utils/monitorStream.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/wrapServerRequestHandler.js +209 -0
- package/build/cjs/utils/wrapServerRequestHandler.js.map +1 -0
- 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/cjs/vendored/astring/dist/astring.js.map +1 -1
- package/build/cjs/vendored/esquery/dist/esquery.esm.min.js.map +1 -1
- package/build/cjs/vendored/meriyah/dist/meriyah.js.map +1 -1
- package/build/cjs/vendored/meriyah/dist/meriyah2.js.map +1 -1
- package/build/cjs/vendored/module-details-from-path/index.js.map +1 -1
- package/build/cjs/vendored/semifies/index.js.map +1 -1
- package/build/cjs/vendored/source-map/lib/array-set.js.map +1 -1
- package/build/cjs/vendored/source-map/lib/base64-vlq.js.map +1 -1
- package/build/cjs/vendored/source-map/lib/base64.js.map +1 -1
- package/build/cjs/vendored/source-map/lib/binary-search.js.map +1 -1
- package/build/cjs/vendored/source-map/lib/mapping-list.js.map +1 -1
- package/build/cjs/vendored/source-map/lib/quick-sort.js.map +1 -1
- package/build/cjs/vendored/source-map/lib/source-map-consumer.js.map +1 -1
- package/build/cjs/vendored/source-map/lib/source-map-generator.js.map +1 -1
- package/build/cjs/vendored/source-map/lib/source-node.js.map +1 -1
- package/build/cjs/vendored/source-map/lib/util.js.map +1 -1
- package/build/cjs/vendored/source-map/source-map.js.map +1 -1
- package/build/esm/ai/anthropic-ai/index.js +7 -4
- package/build/esm/ai/anthropic-ai/index.js.map +1 -1
- package/build/esm/ai/anthropic-ai/streaming.js +17 -9
- package/build/esm/ai/anthropic-ai/streaming.js.map +1 -1
- package/build/esm/ai/anthropic-ai/tool-runner.js +10 -4
- package/build/esm/ai/anthropic-ai/tool-runner.js.map +1 -1
- package/build/esm/ai/flue/index.js +39 -4
- 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 +18 -3
- package/build/esm/ai/google-genai/index.js.map +1 -1
- package/build/esm/ai/langchain/constants.js +2 -1
- package/build/esm/ai/langchain/constants.js.map +1 -1
- package/build/esm/ai/langchain/index.js +37 -10
- package/build/esm/ai/langchain/index.js.map +1 -1
- package/build/esm/ai/openai/index.js +19 -5
- package/build/esm/ai/openai/index.js.map +1 -1
- package/build/esm/ai/openai/streaming.js +40 -9
- package/build/esm/ai/openai/streaming.js.map +1 -1
- package/build/esm/ai/pi-durable/constants.js +2 -1
- package/build/esm/ai/pi-durable/constants.js.map +1 -1
- package/build/esm/ai/pi-durable/index.js +14 -4
- 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/runs.js +15 -3
- package/build/esm/ai/pi-durable/runs.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/ai/workers-ai/utils.js +41 -3
- package/build/esm/ai/workers-ai/utils.js.map +1 -1
- package/build/esm/index.js +7 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/index.no-diagnostic-channels.js +2 -2
- 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 +7 -9
- package/build/esm/integrations/amqplib.js.map +1 -1
- package/build/esm/integrations/anthropic.js +12 -1
- package/build/esm/integrations/anthropic.js.map +1 -1
- package/build/esm/integrations/aws-sdk/constants.js +2 -2
- package/build/esm/integrations/aws-sdk/constants.js.map +1 -1
- package/build/esm/integrations/aws-sdk/index.js +9 -5
- package/build/esm/integrations/aws-sdk/index.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 +2 -1
- package/build/esm/integrations/firebase/firestore.js.map +1 -1
- package/build/esm/integrations/firebase/functions.js +1 -1
- package/build/esm/integrations/firebase/functions.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/hapi/hapi-error-handler.js +1 -1
- package/build/esm/integrations/hapi/hapi-error-handler.js.map +1 -1
- package/build/esm/integrations/hapi/hapi-types.js +1 -7
- package/build/esm/integrations/hapi/hapi-types.js.map +1 -1
- package/build/esm/integrations/hapi/hapi-utils.js +29 -24
- package/build/esm/integrations/hapi/hapi-utils.js.map +1 -1
- package/build/esm/integrations/hono/honoIntegration.js +14 -21
- package/build/esm/integrations/hono/honoIntegration.js.map +1 -1
- package/build/esm/integrations/hono/isMiddleware.js +8 -1
- package/build/esm/integrations/hono/isMiddleware.js.map +1 -1
- package/build/esm/integrations/hono/matchResult.js +16 -0
- package/build/esm/integrations/hono/matchResult.js.map +1 -0
- package/build/esm/integrations/hono/patchRoute.js +3 -11
- package/build/esm/integrations/hono/patchRoute.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 +10 -10
- 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/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/tedious.js +11 -8
- package/build/esm/integrations/tedious.js.map +1 -1
- package/build/esm/integrations/vercel-ai/index.js +2 -0
- package/build/esm/integrations/vercel-ai/index.js.map +1 -1
- package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +61 -24
- package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/esm/integrations/vercel-ai/vercel-ai-tool-telemetry.js +38 -0
- package/build/esm/integrations/vercel-ai/vercel-ai-tool-telemetry.js.map +1 -0
- 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 +13 -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/hono.js +2 -0
- package/build/esm/orchestrion/config/hono.js.map +1 -1
- 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/openai-compatible.js +3 -3
- package/build/esm/orchestrion/config/openai-compatible.js.map +1 -1
- package/build/esm/orchestrion/config/postgres.js +5 -1
- package/build/esm/orchestrion/config/postgres.js.map +1 -1
- package/build/esm/orchestrion/config/together-ai.js +8 -4
- package/build/esm/orchestrion/config/together-ai.js.map +1 -1
- package/build/esm/orchestrion/instrumentation.js +8 -1
- 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/monitorStream.js +61 -0
- package/build/esm/utils/monitorStream.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/wrapServerRequestHandler.js +207 -0
- package/build/esm/utils/wrapServerRequestHandler.js.map +1 -0
- 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/esm/vendored/astring/dist/astring.js.map +1 -1
- package/build/esm/vendored/esquery/dist/esquery.esm.min.js.map +1 -1
- package/build/esm/vendored/meriyah/dist/meriyah.js.map +1 -1
- package/build/esm/vendored/meriyah/dist/meriyah2.js.map +1 -1
- package/build/esm/vendored/module-details-from-path/index.js.map +1 -1
- package/build/esm/vendored/semifies/index.js.map +1 -1
- package/build/esm/vendored/source-map/lib/array-set.js.map +1 -1
- package/build/esm/vendored/source-map/lib/base64-vlq.js.map +1 -1
- package/build/esm/vendored/source-map/lib/base64.js.map +1 -1
- package/build/esm/vendored/source-map/lib/binary-search.js.map +1 -1
- package/build/esm/vendored/source-map/lib/mapping-list.js.map +1 -1
- package/build/esm/vendored/source-map/lib/quick-sort.js.map +1 -1
- package/build/esm/vendored/source-map/lib/source-map-consumer.js.map +1 -1
- package/build/esm/vendored/source-map/lib/source-map-generator.js.map +1 -1
- package/build/esm/vendored/source-map/lib/source-node.js.map +1 -1
- package/build/esm/vendored/source-map/lib/util.js.map +1 -1
- package/build/esm/vendored/source-map/source-map.js.map +1 -1
- package/build/types/ai/anthropic-ai/index.d.ts.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 +4 -2
- package/build/types/ai/anthropic-ai/tool-runner.d.ts.map +1 -1
- package/build/types/ai/anthropic-ai/types.d.ts +3 -0
- package/build/types/ai/anthropic-ai/types.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/langchain/constants.d.ts +1 -0
- package/build/types/ai/langchain/constants.d.ts.map +1 -1
- package/build/types/ai/langchain/index.d.ts.map +1 -1
- package/build/types/ai/openai/index.d.ts.map +1 -1
- package/build/types/ai/openai/streaming.d.ts.map +1 -1
- package/build/types/ai/openai/types.d.ts +1 -1
- package/build/types/ai/openai/types.d.ts.map +1 -1
- package/build/types/ai/pi-durable/constants.d.ts +2 -0
- package/build/types/ai/pi-durable/constants.d.ts.map +1 -1
- package/build/types/ai/pi-durable/index.d.ts.map +1 -1
- package/build/types/ai/pi-durable/runs.d.ts +13 -3
- package/build/types/ai/pi-durable/runs.d.ts.map +1 -1
- package/build/types/ai/pi-durable/types.d.ts +5 -0
- package/build/types/ai/pi-durable/types.d.ts.map +1 -1
- package/build/types/ai/workers-ai/utils.d.ts +1 -1
- package/build/types/ai/workers-ai/utils.d.ts.map +1 -1
- package/build/types/exports.d.ts +3 -3
- package/build/types/exports.d.ts.map +1 -1
- package/build/types/index.d.ts +8 -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/constants.d.ts +2 -2
- package/build/types/integrations/aws-sdk/constants.d.ts.map +1 -1
- package/build/types/integrations/aws-sdk/index.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/graphql/constants.d.ts +1 -1
- package/build/types/integrations/graphql/constants.d.ts.map +1 -1
- package/build/types/integrations/hapi/hapi-types.d.ts +2 -6
- package/build/types/integrations/hapi/hapi-types.d.ts.map +1 -1
- package/build/types/integrations/hapi/hapi-utils.d.ts +6 -2
- package/build/types/integrations/hapi/hapi-utils.d.ts.map +1 -1
- package/build/types/integrations/hono/honoIntegration.d.ts.map +1 -1
- package/build/types/integrations/hono/honoTypes.d.ts +2 -2
- package/build/types/integrations/hono/honoTypes.d.ts.map +1 -1
- package/build/types/integrations/hono/isMiddleware.d.ts +9 -1
- package/build/types/integrations/hono/isMiddleware.d.ts.map +1 -1
- package/build/types/integrations/hono/matchResult.d.ts +7 -0
- package/build/types/integrations/hono/matchResult.d.ts.map +1 -0
- package/build/types/integrations/hono/patchRoute.d.ts +1 -8
- package/build/types/integrations/hono/patchRoute.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/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/tedious.d.ts.map +1 -1
- package/build/types/integrations/vercel-ai/index.d.ts.map +1 -1
- package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts +7 -1
- package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
- package/build/types/integrations/vercel-ai/vercel-ai-tool-telemetry.d.ts +8 -0
- package/build/types/integrations/vercel-ai/vercel-ai-tool-telemetry.d.ts.map +1 -0
- 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 +8 -0
- package/build/types/orchestrion/channels.d.ts.map +1 -1
- package/build/types/orchestrion/config/anthropic-ai.d.ts +1 -2
- 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/hono.d.ts.map +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/openai-compatible.d.ts +4 -0
- package/build/types/orchestrion/config/openai-compatible.d.ts.map +1 -1
- 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/config/together-ai.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/monitorStream.d.ts +9 -0
- package/build/types/utils/monitorStream.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/wrapServerRequestHandler.d.ts +45 -0
- package/build/types/utils/wrapServerRequestHandler.d.ts.map +1 -0
- package/package.json +12 -8
- 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
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* `@sentry/conventions/attributes` (attribute names that exist there are imported from there
|
|
4
4
|
* directly). These are either Sentry-specific (the span origin) or attribute *values* (not keys).
|
|
5
5
|
*/
|
|
6
|
-
/** The
|
|
7
|
-
export declare const
|
|
6
|
+
/** The integration name part of every aws-sdk channel span origin (`auto.<category>.aws_sdk`). */
|
|
7
|
+
export declare const AWS_SDK_ORIGIN_INTEGRATION_NAME = "aws_sdk";
|
|
8
8
|
/** DynamoDB `db.system.name` value (an attribute value, not a key, so not covered by conventions). */
|
|
9
9
|
export declare const DB_SYSTEM_VALUE_DYNAMODB = "dynamodb";
|
|
10
10
|
/** SNS `messaging.destination_kind` value (an attribute value, not a key, so not covered by conventions). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/integrations/aws-sdk/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/integrations/aws-sdk/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,kGAAkG;AAClG,eAAO,MAAM,+BAA+B,YAAY,CAAC;AAEzD,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":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/aws-sdk/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/aws-sdk/index.ts"],"names":[],"mappings":"AAmPA;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;CAAqC,CAAC"}
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -7,7 +7,7 @@ export interface ServerRouteOptions {
|
|
|
7
7
|
}
|
|
8
8
|
export interface ServerRoute {
|
|
9
9
|
path: string;
|
|
10
|
-
method: string;
|
|
10
|
+
method: string | string[];
|
|
11
11
|
handler?: LifecycleMethod | unknown;
|
|
12
12
|
options?: ((server: unknown) => ServerRouteOptions) | ServerRouteOptions;
|
|
13
13
|
[key: string]: unknown;
|
|
@@ -64,6 +64,7 @@ export interface HapiResponse {
|
|
|
64
64
|
}
|
|
65
65
|
/** The subset of a hapi request the error listener reads. */
|
|
66
66
|
export interface HapiRequest {
|
|
67
|
+
method: string;
|
|
67
68
|
route: {
|
|
68
69
|
path?: string;
|
|
69
70
|
method: string;
|
|
@@ -90,10 +91,5 @@ export interface HapiServer {
|
|
|
90
91
|
events: HapiServerEvents;
|
|
91
92
|
[key: string]: unknown;
|
|
92
93
|
}
|
|
93
|
-
export declare enum AttributeNames {
|
|
94
|
-
HAPI_TYPE = "hapi.type",
|
|
95
|
-
PLUGIN_NAME = "hapi.plugin.name",
|
|
96
|
-
EXT_TYPE = "server.ext.type"
|
|
97
|
-
}
|
|
98
94
|
export {};
|
|
99
95
|
//# sourceMappingURL=hapi-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hapi-types.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hapi/hapi-types.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,oBAAoB,YACxB,WAAW,EACX,eAAe,EACf,YAAY,EACZ,cAAc,EACd,eAAe,EACf,eAAe,EACf,WAAW,CACH,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzE,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,KAAK,KAAK,OAAO,CAAC;AAErF,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC;IACpC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"hapi-types.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hapi/hapi-types.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,oBAAoB,YACxB,WAAW,EACX,eAAe,EACf,YAAY,EACZ,cAAc,EACd,eAAe,EACf,eAAe,EACf,WAAW,CACH,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzE,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,KAAK,KAAK,OAAO,CAAC;AAErF,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC;IACpC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC1B,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,OAAO,KAAK,kBAAkB,CAAC,GAAG,kBAAkB,CAAC;IACzE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,oBAAoB,CAAC;IAC3B,MAAM,EAAE,eAAe,CAAC;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,OAAO,MAAuC,CAAC;AAE5E,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG;IAC/C,CAAC,cAAc,CAAC,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,eAAe,GAAG;IACjD,CAAC,cAAc,CAAC,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,oBAAoB,EAAE,eAAe,EAAE,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAE5G,eAAO,MAAM,aAAa;aACxB,MAAM,EAAE,QAAQ;aAChB,MAAM,EAAE,QAAQ;aAChB,GAAG,EAAE,YAAY;CACT,CAAC;AAEX,eAAO,MAAM,wBAAwB,aAAwC,CAAC;AAE9E,wEAAwE;AACxE,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAClC;AAED,6DAA6D;AAC7D,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC;AAEtF,+EAA+E;AAC/E,MAAM,WAAW,gBAAgB;IAC/B,EAAE,CACA,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE,EAC9C,QAAQ,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,gBAAgB,KAAK,IAAI,GAChE,IAAI,CAAC;IACR,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,2DAA2D;AAC3D,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,gBAAgB,CAAC;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HapiRequest, ServerRequestExtType
|
|
1
|
+
import type { HapiRequest, ServerRequestExtType } from './hapi-types';
|
|
2
2
|
/**
|
|
3
3
|
* Default function deciding whether an error should be sent to Sentry.
|
|
4
4
|
*
|
|
@@ -14,7 +14,11 @@ interface SpanMetadata {
|
|
|
14
14
|
name: string;
|
|
15
15
|
}
|
|
16
16
|
/** Build the span name and attributes for a Hapi route. */
|
|
17
|
-
export declare const getRouteMetadata: (
|
|
17
|
+
export declare const getRouteMetadata: ({ path, method, pluginName, }: {
|
|
18
|
+
path: string;
|
|
19
|
+
method?: string;
|
|
20
|
+
pluginName?: string;
|
|
21
|
+
}) => SpanMetadata;
|
|
18
22
|
/** Build the span name and attributes for a Hapi server extension. */
|
|
19
23
|
export declare const getExtMetadata: (extPoint: ServerRequestExtType, pluginName?: string, methodName?: string) => SpanMetadata;
|
|
20
24
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hapi-utils.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hapi/hapi-utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hapi-utils.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hapi/hapi-utils.ts"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EACV,WAAW,EAOX,oBAAoB,EAErB,MAAM,cAAc,CAAC;AAItB;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAOtF;AAyBD,KAAK,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAEzD,UAAU,YAAY;IACpB,UAAU,EAAE,cAAc,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;CACd;AA0BD,2DAA2D;AAC3D,eAAO,MAAM,gBAAgB,kCAI1B;IACD,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,KAAG,YAwBH,CAAC;AAEF,sEAAsE;AACtE,eAAO,MAAM,cAAc,aACf,oBAAoB,eACjB,MAAM,eACN,MAAM,KAClB,YAoBF,CAAC;AAkGF;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAS7E;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAwB3E"}
|
|
@@ -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,
|
|
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;AAahF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAM3D,MAAM,WAAW,sBAAuB,SAAQ,2BAA2B;CAAG;AAS9E;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,GAAE,sBAA2B,GAAG,iBAAiB,CAOnH;AAkHD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe;;CAAsC,CAAC"}
|
|
@@ -20,13 +20,13 @@ export interface HonoRoute {
|
|
|
20
20
|
path: string;
|
|
21
21
|
handler: (...args: any[]) => any;
|
|
22
22
|
}
|
|
23
|
+
export type MatchedHandler = [pair: [handler: HonoRoute['handler'], route: HonoRoute], paramIndexMap: unknown];
|
|
23
24
|
export interface HonoRequest {
|
|
24
25
|
raw: Request;
|
|
25
26
|
method: string;
|
|
26
27
|
path: string;
|
|
27
28
|
routeIndex: number;
|
|
28
|
-
matchedRoutes
|
|
29
|
-
routePath: string;
|
|
29
|
+
matchedRoutes?: HonoRoute[];
|
|
30
30
|
[key: string]: any;
|
|
31
31
|
}
|
|
32
32
|
export interface Context {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"honoTypes.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/honoTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,MAAM,WAAW,GAAG;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,SAAS,CAAC,EAAE,GAAG,CAAC;CACjB;AAED,MAAM,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;AAEvC,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IAIb,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;CAClC;
|
|
1
|
+
{"version":3,"file":"honoTypes.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/honoTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,MAAM,WAAW,GAAG;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,SAAS,CAAC,EAAE,GAAG,CAAC;CACjB;AAED,MAAM,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;AAEvC,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IAIb,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;CAClC;AAGD,MAAM,MAAM,cAAc,GAAG,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;AAE/G,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,OAAO,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IAEnB,aAAa,CAAC,EAAE,SAAS,EAAE,CAAC;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,WAAW,CAAC;IACjB,GAAG,EAAE,OAAO,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,KAAK,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAID,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;AAE3F,MAAM,WAAW,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG,GAAG;IAEvC,GAAG,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC;IACjC,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC1D,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { HonoRoute } from './honoTypes';
|
|
1
2
|
/**
|
|
2
3
|
* Infers whether a Hono route entry is a middleware (rather than a route handler).
|
|
3
4
|
*
|
|
@@ -7,7 +8,14 @@
|
|
|
7
8
|
* https://github.com/honojs/hono/blob/97c6fe1f12298c715eb7b2da65b4b6e0d81682bb/src/utils/handler.ts#L8
|
|
8
9
|
*
|
|
9
10
|
* This is only one signal — callers that must classify inline middleware sharing a method+path with
|
|
10
|
-
* their handler
|
|
11
|
+
* their handler additionally need positional information (`getMiddlewareFlags`).
|
|
11
12
|
*/
|
|
12
13
|
export declare function isMiddleware(handler: unknown): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Tells for each route if it is a middleware. Hono has no flag for this. In a method+path group, the
|
|
16
|
+
* last handler is the route handler (`app.get('/path', mw, handler)`). `.use()` adds middleware with
|
|
17
|
+
* method `ALL` and no route handler, so for `ALL` routes the arity also counts. Arity alone is not
|
|
18
|
+
* enough, because a route handler can declare an unused `next`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function getMiddlewareFlags(routes: HonoRoute[]): boolean[];
|
|
13
21
|
//# sourceMappingURL=isMiddleware.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isMiddleware.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/isMiddleware.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isMiddleware.d.ts","sourceRoot":"","sources":["../../../../src/integrations/hono/isMiddleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAStD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,EAAE,CAQjE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MatchedHandler } from './honoTypes';
|
|
2
|
+
/**
|
|
3
|
+
* Checks the entry shape that `compose` and `hono/route` read. The match result is a Hono internal, so
|
|
4
|
+
* the SDK leaves other shapes alone.
|
|
5
|
+
*/
|
|
6
|
+
export declare function isMatchedHandlerList(handlers: unknown): handlers is MatchedHandler[];
|
|
7
|
+
//# sourceMappingURL=matchResult.d.ts.map
|
|
@@ -0,0 +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;AAkBlD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,OAAO,GAAG,QAAQ,IAAI,cAAc,EAAE,CAEpF"}
|
|
@@ -22,14 +22,7 @@ type HonoBaseProto = {
|
|
|
22
22
|
*/
|
|
23
23
|
export declare function installRouteHookOnPrototype(honoBaseProto: HonoBaseProto): RouteHookHandle;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* Heuristics (since Hono has no "isMiddleware" flag):
|
|
28
|
-
* 1. Position: `app.get('/path', mw, handler)` produces entries with the same method+path.
|
|
29
|
-
* All but the LAST are middleware (they call `next()`).
|
|
30
|
-
* 2. Arity (# of params) for method 'ALL': `.use()` handlers always have 2+ params (context, next),
|
|
31
|
-
* while `.all()` route handlers typically have 1 (`context` only).
|
|
32
|
-
* See: https://github.com/honojs/hono/blob/18fe604c8cefc2628240651b1af219692e1918c1/src/hono-base.ts#L156-L168
|
|
25
|
+
* Wraps the middleware handlers of a sub-app's routes in spans.
|
|
33
26
|
*/
|
|
34
27
|
export declare function wrapSubAppMiddleware(routes: HonoRoute[]): void;
|
|
35
28
|
//# sourceMappingURL=patchRoute.d.ts.map
|
|
@@ -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;AAKnD,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,CAqCzF;AAED
|
|
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;AAKnD,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,CAqCzF;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAO9D"}
|
|
@@ -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":"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"}
|
|
@@ -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":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/vercel-ai/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/vercel-ai/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAQxD,6CAA6C;AAC7C,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC;AAwB3C;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;CAA0C,CAAC"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import type { Span } from '@sentry/core';
|
|
2
2
|
import type { TracingChannel } from 'node:diagnostics_channel';
|
|
3
|
-
import type
|
|
3
|
+
import { type GenAiOptions } from '../../ai/core/utils';
|
|
4
4
|
import { type StreamedModelCallResult } from './util';
|
|
5
|
+
/**
|
|
6
|
+
* The single tracing channel the `ai` package (>= 7) publishes all telemetry lifecycle events to
|
|
7
|
+
* via `node:diagnostics_channel`. Events are discriminated by their `type` field.
|
|
8
|
+
* @see https://github.com/vercel/ai/pull/15660
|
|
9
|
+
*/
|
|
10
|
+
export declare const AI_SDK_TELEMETRY_TRACING_CHANNEL = "ai:telemetry";
|
|
5
11
|
/** Drop the per-operation `callId` maps once the owning top-level operation settles (success or error). */
|
|
6
12
|
export declare function clearOperationId(data: VercelAiChannelMessage): void;
|
|
7
13
|
/**
|