@sentry/server-utils 11.10.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/build/THIRD-PARTY-LICENSES.txt +34 -34
- package/build/cjs/ai/flue/index.js +2 -2
- 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/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 +20 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.no-diagnostic-channels.js +4 -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/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/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/honoIntegration.js +2 -2
- package/build/cjs/integrations/hono/honoIntegration.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/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/vercel-ai-dc-subscriber.js +36 -11
- package/build/cjs/integrations/vercel-ai/vercel-ai-dc-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/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 +27 -6
- package/build/cjs/utils/monitorStream.js.map +1 -1
- package/build/cjs/utils/sql.js +51 -5
- package/build/cjs/utils/sql.js.map +1 -1
- package/build/cjs/utils/wrapServerRequestHandler.js +50 -21
- 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/flue/index.js +2 -2
- 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/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 +7 -5
- package/build/esm/index.js.map +1 -1
- package/build/esm/index.no-diagnostic-channels.js +2 -3
- package/build/esm/index.no-diagnostic-channels.js.map +1 -1
- 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/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/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/honoIntegration.js +2 -2
- package/build/esm/integrations/hono/honoIntegration.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/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/vercel-ai-dc-subscriber.js +36 -11
- package/build/esm/integrations/vercel-ai/vercel-ai-dc-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/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 +28 -7
- package/build/esm/utils/monitorStream.js.map +1 -1
- package/build/esm/utils/sql.js +48 -5
- package/build/esm/utils/sql.js.map +1 -1
- package/build/esm/utils/wrapServerRequestHandler.js +51 -22
- 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/exports.d.ts +3 -5
- 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/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/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/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/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 +7 -1
- package/build/types/utils/monitorStream.d.ts.map +1 -1
- 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 +9 -2
- package/build/types/utils/wrapServerRequestHandler.d.ts.map +1 -1
- package/package.json +12 -7
- 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,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,EA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,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,GA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"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":"vercel-ai-dc-subscriber.d.ts","sourceRoot":"","sources":["../../../../src/integrations/vercel-ai/vercel-ai-dc-subscriber.ts"],"names":[],"mappings":"AAqCA,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;
|
|
1
|
+
{"version":3,"file":"vercel-ai-dc-subscriber.d.ts","sourceRoot":"","sources":["../../../../src/integrations/vercel-ai/vercel-ai-dc-subscriber.ts"],"names":[],"mappings":"AAqCA,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;AA8D/D,2GAA2G;AAC3G,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,sBAA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,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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/options.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,iCAAiC,EAAE,MAAM,2BAA2B,CAAC;AACxG,OAAO,KAAK,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAExG,OAAO,EAAE,iCAAiC,EAAE,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC3C;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACnD;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/options.ts"],"names":[],"mappings":"AACA,OAAO,EAA4B,iCAAiC,EAAE,MAAM,2BAA2B,CAAC;AACxG,OAAO,KAAK,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAExG,OAAO,EAAE,iCAAiC,EAAE,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC3C;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACnD;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAErF;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,mBAAmB,EAAE,MAAM,EAAE,GAAG,MAAM,CAMhF;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,aAAa,EACtB,EAAE,iBAAwB,EAAE,GAAE;IAAE,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAAO,GACjE,4BAA4B,CAO9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/vite.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/vite.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAsD,MAAM,EAA8B,MAAM,MAAM,CAAC;AAEnH,YAAY,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,MAAM,CAAC;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AA+G/C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,aAAkB,GAAG,MAAM,CAuI3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpack.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/webpack.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAIzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,gCAAgC,EAA4B,MAAM,WAAW,CAAC;AAGjH,OAAO,KAAK,EAAE,wBAAwB,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"webpack.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/bundler/webpack.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAIzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,gCAAgC,EAA4B,MAAM,WAAW,CAAC;AAGjH,OAAO,KAAK,EAAE,wBAAwB,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAO/F,eAAO,MAAM,yBAAyB,EAAoC,CACxE,OAAO,EAAE,wBAAwB,EAAE,KAChC,iCAAiC,EAAE,CAAC;AACzC,YAAY,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAErE,OAAO,EAAE,wBAAwB,EAAE,gCAAgC,EAAE,CAAC;AAEtE,6FAA6F;AAC7F,wBAAgB,yBAAyB,IAAI,qBAAqB,EAAE,CAEnE;AAqDD;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,aAAkB,GAAG;IAAE,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAA;CAAE,CAiC/G"}
|
|
@@ -33,6 +33,8 @@ export declare const CHANNELS: {
|
|
|
33
33
|
readonly ANTHROPIC_MESSAGES_STREAM: 'orchestrion:@anthropic-ai/sdk:messages-stream';
|
|
34
34
|
readonly ANTHROPIC_TOOL_RUNNER: 'orchestrion:@anthropic-ai/sdk:tool-runner';
|
|
35
35
|
readonly ANTHROPIC_SESSION_TOOL_RUNNER: 'orchestrion:@anthropic-ai/sdk:session-tool-runner';
|
|
36
|
+
readonly CRON_JOB_CONSTRUCTOR: 'orchestrion:cron:cronJobConstructor';
|
|
37
|
+
readonly CRON_JOB_SET_TIME: 'orchestrion:cron:cronJobSetTime';
|
|
36
38
|
readonly DATALOADER_CONSTRUCT: 'orchestrion:dataloader:construct';
|
|
37
39
|
readonly DATALOADER_LOAD: 'orchestrion:dataloader:load';
|
|
38
40
|
readonly DATALOADER_LOAD_MANY: 'orchestrion:dataloader:loadMany';
|
|
@@ -129,8 +131,13 @@ export declare const CHANNELS: {
|
|
|
129
131
|
readonly NESTJS_SCHEDULE_CRON: 'orchestrion:@nestjs/schedule:cronDecorator';
|
|
130
132
|
readonly NESTJS_SCHEDULE_INTERVAL: 'orchestrion:@nestjs/schedule:intervalDecorator';
|
|
131
133
|
readonly NESTJS_SCHEDULE_TIMEOUT: 'orchestrion:@nestjs/schedule:timeoutDecorator';
|
|
134
|
+
readonly NESTJS_SCHEDULE_EXPLORER_WRAP: 'orchestrion:@nestjs/schedule:scheduleExplorerWrap';
|
|
132
135
|
readonly NESTJS_ONEVENT: 'orchestrion:@nestjs/event-emitter:onEventDecorator';
|
|
133
136
|
readonly NESTJS_PROCESSOR: 'orchestrion:@nestjs/bullmq:processorDecorator';
|
|
137
|
+
readonly NODE_CRON_CREATE_TASK: 'orchestrion:node-cron:createTask';
|
|
138
|
+
readonly NODE_CRON_V4_CREATE_TASK: 'orchestrion:node-cron:v4_createTask';
|
|
139
|
+
readonly NODE_CRON_V3_CREATE_TASK: 'orchestrion:node-cron:v3_createTask';
|
|
140
|
+
readonly NODE_SCHEDULE_SCHEDULE: 'orchestrion:node-schedule:schedule';
|
|
134
141
|
readonly OPENAI_CHAT: 'orchestrion:openai:chat';
|
|
135
142
|
readonly OPENAI_EMBEDDINGS: 'orchestrion:openai:embeddings';
|
|
136
143
|
readonly OPENAI_DECIDE: 'orchestrion:openai:decide';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/channels.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/channels.ts"],"names":[],"mappings":"AA2CA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CX,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anthropic-ai.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/anthropic-ai.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;
|
|
1
|
+
{"version":3,"file":"anthropic-ai.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/anthropic-ai.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;QAkCT,SAAS;;GAEK,CAAC;AAEpC,eAAO,MAAM,sBAAsB,UAAoC,CAAC;AAExE,eAAO,MAAM,mBAAmB;aAC9B,cAAc,EAAE,oCAAoC;aACpD,yBAAyB,EAAE,+CAA+C;aAC1E,qBAAqB,EAAE,2CAA2C;aAClE,6BAA6B,EAAE,mDAAmD;CAC1E,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const cronConfig: ({
|
|
2
|
+
channelName: string;
|
|
3
|
+
module: {
|
|
4
|
+
name: string;
|
|
5
|
+
versionRange: string;
|
|
6
|
+
filePath: string;
|
|
7
|
+
};
|
|
8
|
+
functionQuery: {
|
|
9
|
+
className: string;
|
|
10
|
+
methodName?: undefined;
|
|
11
|
+
kind?: undefined;
|
|
12
|
+
};
|
|
13
|
+
} | {
|
|
14
|
+
channelName: string;
|
|
15
|
+
module: {
|
|
16
|
+
name: string;
|
|
17
|
+
versionRange: string;
|
|
18
|
+
filePath: string;
|
|
19
|
+
};
|
|
20
|
+
functionQuery: {
|
|
21
|
+
className: string;
|
|
22
|
+
methodName: string;
|
|
23
|
+
kind: "Sync";
|
|
24
|
+
};
|
|
25
|
+
})[];
|
|
26
|
+
export declare const cronModuleNames: string[];
|
|
27
|
+
export declare const cronChannels: {
|
|
28
|
+
readonly CRON_JOB_CONSTRUCTOR: 'orchestrion:cron:cronJobConstructor';
|
|
29
|
+
readonly CRON_JOB_SET_TIME: 'orchestrion:cron:cronJobSetTime';
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=cron.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cron.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/cron.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;;QAGT,IAAI;QAAU,YAAY;QAAgB,QAAQ;;;;;;;;;;QAKlD,IAAI;QAAU,YAAY;QAAgB,QAAQ;;;;;;;IAG7B,CAAC;AAEpC,eAAO,MAAM,eAAe,UAA6B,CAAC;AAE1D,eAAO,MAAM,YAAY;aACvB,oBAAoB,EAAE,qCAAqC;aAC3D,iBAAiB,EAAE,iCAAiC;CAC5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAoDzD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,EA8C1D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,+BAA+B,EAAE,qBAAqB,EAElE,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,gBAAgB,GAAE,qBAAqB,EAAO,GAAG,MAAM,EAAE,CAOhG;AAED,8FAA8F;AAC9F,eAAO,MAAM,yBAAyB,EAAE,MAAM,EAA8B,CAAC;AAE7E;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,IAAI,MAAM,EAAE,CAErD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EACvC,WAAW,GAAE,MAAM,EAA8B,GAChD,MAAM,EAAE,GAAG,SAAS,CAKtB;AAGD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -2,7 +2,7 @@ export declare const mistralConfig: ({
|
|
|
2
2
|
channelName: string;
|
|
3
3
|
module: {
|
|
4
4
|
readonly name: '@mistralai/mistralai';
|
|
5
|
-
readonly versionRange: '>=2.0.0 <
|
|
5
|
+
readonly versionRange: '>=2.0.0 <4';
|
|
6
6
|
readonly filePath: 'esm/sdk/chat.js';
|
|
7
7
|
};
|
|
8
8
|
functionQuery: {
|
|
@@ -14,7 +14,7 @@ export declare const mistralConfig: ({
|
|
|
14
14
|
channelName: string;
|
|
15
15
|
module: {
|
|
16
16
|
name: '@mistralai/mistralai';
|
|
17
|
-
versionRange: '>=2.0.0 <
|
|
17
|
+
versionRange: '>=2.0.0 <4';
|
|
18
18
|
filePath: string;
|
|
19
19
|
};
|
|
20
20
|
functionQuery: {
|
|
@@ -26,7 +26,7 @@ export declare const mistralConfig: ({
|
|
|
26
26
|
channelName: string;
|
|
27
27
|
module: {
|
|
28
28
|
readonly name: '@mistralai/mistralai';
|
|
29
|
-
readonly versionRange: '>=2.0.0 <
|
|
29
|
+
readonly versionRange: '>=2.0.0 <4';
|
|
30
30
|
readonly filePath: 'esm/sdk/agents.js';
|
|
31
31
|
};
|
|
32
32
|
functionQuery: {
|
|
@@ -18,6 +18,7 @@ export declare const nestjsChannels: {
|
|
|
18
18
|
readonly NESTJS_SCHEDULE_CRON: 'orchestrion:@nestjs/schedule:cronDecorator';
|
|
19
19
|
readonly NESTJS_SCHEDULE_INTERVAL: 'orchestrion:@nestjs/schedule:intervalDecorator';
|
|
20
20
|
readonly NESTJS_SCHEDULE_TIMEOUT: 'orchestrion:@nestjs/schedule:timeoutDecorator';
|
|
21
|
+
readonly NESTJS_SCHEDULE_EXPLORER_WRAP: 'orchestrion:@nestjs/schedule:scheduleExplorerWrap';
|
|
21
22
|
readonly NESTJS_ONEVENT: 'orchestrion:@nestjs/event-emitter:onEventDecorator';
|
|
22
23
|
readonly NESTJS_PROCESSOR: 'orchestrion:@nestjs/bullmq:processorDecorator';
|
|
23
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nestjs.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/nestjs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAmBzD;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"nestjs.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/nestjs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAmBzD;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,yBA4GU,CAAC;AAEpC,eAAO,MAAM,cAAc;aACzB,mBAAmB,EAAE,4CAA4C;aACjE,qBAAqB,EAAE,uDAAuD;aAC9E,iBAAiB,EAAE,gDAAgD;aACnE,YAAY,EAAE,2CAA2C;aACzD,oBAAoB,EAAE,4CAA4C;aAClE,wBAAwB,EAAE,gDAAgD;aAC1E,uBAAuB,EAAE,+CAA+C;aACxE,6BAA6B,EAAE,mDAAmD;aAClF,cAAc,EAAE,oDAAoD;aACpE,gBAAgB,EAAE,+CAA+C;CACzD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const nodeCronConfig: {
|
|
2
|
+
channelName: string;
|
|
3
|
+
module: {
|
|
4
|
+
name: string;
|
|
5
|
+
versionRange: string;
|
|
6
|
+
filePath: string;
|
|
7
|
+
};
|
|
8
|
+
functionQuery: {
|
|
9
|
+
readonly functionName: 'createTask';
|
|
10
|
+
readonly kind: 'Sync';
|
|
11
|
+
};
|
|
12
|
+
}[];
|
|
13
|
+
export declare const nodeCronModuleNames: string[];
|
|
14
|
+
export declare const nodeCronChannels: {
|
|
15
|
+
readonly NODE_CRON_CREATE_TASK: 'orchestrion:node-cron:createTask';
|
|
16
|
+
readonly NODE_CRON_V4_CREATE_TASK: 'orchestrion:node-cron:v4_createTask';
|
|
17
|
+
readonly NODE_CRON_V3_CREATE_TASK: 'orchestrion:node-cron:v3_createTask';
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=node-cron.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-cron.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/node-cron.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,cAAc;;;QAGb,IAAI;QAAe,YAAY;QAAgB,QAAQ;;;+BAPlC,YAAY;uBAAQ,MAAM;;GAwC1B,CAAC;AAEpC,eAAO,MAAM,mBAAmB,UAAiC,CAAC;AAElE,eAAO,MAAM,gBAAgB;aAC3B,qBAAqB,EAAE,kCAAkC;aACzD,wBAAwB,EAAE,qCAAqC;aAC/D,wBAAwB,EAAE,qCAAqC;CACvD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const nodeScheduleConfig: {
|
|
2
|
+
channelName: 'schedule';
|
|
3
|
+
astQuery: "AssignmentExpression[left.object.property.name='prototype'][left.property.name='schedule'] > FunctionExpression";
|
|
4
|
+
functionQuery: {
|
|
5
|
+
readonly methodName: 'schedule';
|
|
6
|
+
readonly kind: 'Sync';
|
|
7
|
+
};
|
|
8
|
+
module: {
|
|
9
|
+
name: string;
|
|
10
|
+
versionRange: string;
|
|
11
|
+
filePath: string;
|
|
12
|
+
};
|
|
13
|
+
}[];
|
|
14
|
+
export declare const nodeScheduleModuleNames: string[];
|
|
15
|
+
export declare const nodeScheduleChannels: {
|
|
16
|
+
readonly NODE_SCHEDULE_SCHEDULE: 'orchestrion:node-schedule:schedule';
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=node-schedule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-schedule.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/node-schedule.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,kBAAkB;iBAPhB,UAAU;cAErB,iHAAiH;;iBAElG,UAAU,EAAE,UAAU;iBAAE,IAAI,EAAE,MAAM;;;QAMzC,IAAI;QAAmB,YAAY;QAAgB,QAAQ;;GAMtC,CAAC;AAEpC,eAAO,MAAM,uBAAuB,UAAqC,CAAC;AAE1E,eAAO,MAAM,oBAAoB;aAC/B,sBAAsB,EAAE,oCAAoC;CACpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/postgres.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/postgres.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAqDzD,eAAO,MAAM,gBAAgB,yBAG5B,CAAC;AAEF,eAAO,MAAM,qBAAqB,UAAmC,CAAC;AAEtE,eAAO,MAAM,kBAAkB;aAC7B,iBAAiB,EAAE,6BAA6B;aAChD,qBAAqB,EAAE,iCAAiC;aACxD,kBAAkB,EAAE,8BAA8B;aAClD,kBAAkB,EAAE,8BAA8B;CAC1C,CAAC"}
|
|
@@ -44,11 +44,6 @@ export interface TracingChannelLifeCycleOptions<TData extends object = object> {
|
|
|
44
44
|
/** Ends the span: `end()` on success, `end(error)` on failure (which marks `data` as errored). Idempotent. */
|
|
45
45
|
end: (error?: unknown) => void;
|
|
46
46
|
}) => boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Apply span/scope binding only if there is a parent span, similar to returning `undefined` in the `getSpan` callback.
|
|
49
|
-
* If you need to perform some conditional checking on the parent span before deciding, do it in the `getSpan` callback.
|
|
50
|
-
*/
|
|
51
|
-
requiresParentSpan?: boolean;
|
|
52
47
|
}
|
|
53
48
|
/** Returned by {@link bindTracingChannelToSpan}: the bound channel plus a teardown handle. */
|
|
54
49
|
export interface TracingChannelBindingHandle<TData extends object = object> {
|
|
@@ -81,5 +76,5 @@ export declare function bindTracingChannelToSpan<TData extends object>(channel:
|
|
|
81
76
|
*
|
|
82
77
|
* `getSpan` may return `undefined` to leave the active context untouched for that payload.
|
|
83
78
|
*/
|
|
84
|
-
export declare function bindSpanToChannelStore<TData extends object>(channel: TracingChannel<TData, TData>, getSpan: (data: TracingChannelPayloadWithSpan<TData>) => Span | undefined
|
|
79
|
+
export declare function bindSpanToChannelStore<TData extends object>(channel: TracingChannel<TData, TData>, getSpan: (data: TracingChannelPayloadWithSpan<TData>) => Span | undefined): TracingChannelBindingHandle<TData>;
|
|
85
80
|
//# sourceMappingURL=tracing-channel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracing-channel.d.ts","sourceRoot":"","sources":["../../src/tracing-channel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAE1F,OAAO,KAAK,EAAE,kCAAkC,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"tracing-channel.d.ts","sourceRoot":"","sources":["../../src/tracing-channel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAE1F,OAAO,KAAK,EAAE,kCAAkC,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAe7E,MAAM,MAAM,6BAA6B,CAAC,KAAK,SAAS,MAAM,IAAI,KAAK,GAAG;IACxE;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;IAEnB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B,sEAAsE;IACtE,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAKF,MAAM,WAAW,oBAAoB,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,IAAI,CAC/E,cAAc,CAAC,KAAK,EAAE,6BAA6B,CAAC,KAAK,CAAC,CAAC,EAC3D,WAAW,GAAG,aAAa,CAC5B;IACC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,yBAAyB,CAAC,6BAA6B,CAAC,KAAK,CAAC,CAA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8BAA8B,CAAC,KAAK,CAAC,GAC3C,2BAA2B,CAAC,KAAK,CAAC,CA6FpC;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,SAAS,MAAM,EACzD,OAAO,EAAE,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,EACrC,OAAO,EAAE,CAAC,IAAI,EAAE,6BAA6B,CAAC,KAAK,CAAC,KAAK,IAAI,GAAG,SAAS,GACxE,2BAA2B,CAAC,KAAK,CAAC,CAqDpC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { MonitorConfig } from '@sentry/core';
|
|
2
|
+
export type AnyFn = (this: unknown, ...args: unknown[]) => unknown;
|
|
3
|
+
/**
|
|
4
|
+
* Calls `onJob` with the arguments of each call on a scheduler's job-creation channel, so it can wrap the job.
|
|
5
|
+
* Errors are logged and the job is created unmonitored.
|
|
6
|
+
*/
|
|
7
|
+
export declare function subscribeToJobCreation(channelName: string, integrationName: string, onJob: (args: unknown[]) => void): void;
|
|
8
|
+
/** A call on a schedule-change channel: its arguments, the job it was called on, and what it returned. */
|
|
9
|
+
export interface ScheduleChange {
|
|
10
|
+
arguments: unknown[];
|
|
11
|
+
self?: unknown;
|
|
12
|
+
result?: unknown;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Calls `onChange` after each call on a scheduler's schedule-change channel, so it can update the job's monitor config.
|
|
16
|
+
* `onStart` gets the same object before the call. Errors are logged and the job keeps its config.
|
|
17
|
+
*/
|
|
18
|
+
export declare function subscribeToScheduleChange(channelName: string, integrationName: string, onChange: (change: ScheduleChange) => void, onStart?: (change: ScheduleChange) => void): void;
|
|
19
|
+
/** Whether a job is named, not excluded, and not already monitored by `Sentry.cron.instrument*` or `wrapScheduledJob`. */
|
|
20
|
+
export declare function shouldMonitorJob(name: unknown, job: unknown, excludeJobs: Array<string | RegExp> | undefined): name is string;
|
|
21
|
+
/**
|
|
22
|
+
* How a scheduler combines a restricted day-of-month and day-of-week:
|
|
23
|
+
* - `and`: both must match (`node-cron`).
|
|
24
|
+
* - `or`: either matches, unless one is `*` or a full range (`cron-parser`, `cron`).
|
|
25
|
+
*/
|
|
26
|
+
export type DayFieldSemantics = 'and' | 'or';
|
|
27
|
+
/**
|
|
28
|
+
* The Sentry monitor config for a cron expression, or `undefined` if Sentry would read it differently.
|
|
29
|
+
* Without a `timezone`, the server's time zone is used, like the schedulers do.
|
|
30
|
+
*/
|
|
31
|
+
export declare function cronExpressionToMonitorConfig(expression: string, timezone: unknown, daySemantics: DayFieldSemantics): MonitorConfig | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Wraps a scheduled job with check-ins. Errors are captured, because schedulers catch them, and rethrown.
|
|
34
|
+
* Jobs without a monitor config send no check-ins.
|
|
35
|
+
*/
|
|
36
|
+
export declare function wrapScheduledJob(func: AnyFn, monitorSlug: string, monitorConfig: MonitorConfig | undefined, mechanismType: string): AnyFn;
|
|
37
|
+
/** Sets the monitor config a job from `wrapScheduledJob` sends on its next runs. Other functions are ignored. */
|
|
38
|
+
export declare function updateMonitorConfig(job: unknown, monitorConfig: MonitorConfig | undefined): void;
|
|
39
|
+
//# sourceMappingURL=cronMonitoring.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cronMonitoring.d.ts","sourceRoot":"","sources":["../../../src/utils/cronMonitoring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAalD,MAAM,MAAM,KAAK,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;AAMnE;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,KAAK,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,GAC/B,IAAI,CAQN;AAED,0GAA0G;AAC1G,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,OAAO,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,EAC1C,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,GACzC,IAAI,CAaN;AAED,0HAA0H;AAC1H,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,OAAO,EACb,GAAG,EAAE,OAAO,EACZ,WAAW,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,GAC9C,IAAI,IAAI,MAAM,CAQhB;AAkBD;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,IAAI,CAAC;AAE7C;;;GAGG;AACH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,OAAO,EACjB,YAAY,EAAE,iBAAiB,GAC9B,aAAa,GAAG,SAAS,CA6B3B;AA2ED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,KAAK,EACX,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,aAAa,GAAG,SAAS,EACxC,aAAa,EAAE,MAAM,GACpB,KAAK,CAqBP;AAED,iHAAiH;AACjH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,GAAG,SAAS,GAAG,IAAI,CAIhG"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Monitor the source without reading ahead or treating cancellation as a source failure.
|
|
3
|
+
*
|
|
4
|
+
* `onDone` runs once, while the returned stream is still open: before it closes, before it errors,
|
|
5
|
+
* or when the consumer cancels it. A runtime can end the request when the response body closes
|
|
6
|
+
* (Cloudflare Workers then reject `waitUntil`), so work that `onDone` starts must begin first.
|
|
7
|
+
*/
|
|
2
8
|
export declare function monitorStream(stream: ReadableStream<Uint8Array>, onDone: () => void, onError: (error: unknown) => void): ReadableStream<Uint8Array>;
|
|
3
9
|
//# sourceMappingURL=monitorStream.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitorStream.d.ts","sourceRoot":"","sources":["../../../src/utils/monitorStream.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"monitorStream.d.ts","sourceRoot":"","sources":["../../../src/utils/monitorStream.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,EAClC,MAAM,EAAE,MAAM,IAAI,EAClB,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAChC,cAAc,CAAC,UAAU,CAAC,CA4D5B"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { DB_OPERATION_NAME, DB_QUERY_SUMMARY, DB_QUERY_TEXT } from '@sentry/conventions/attributes';
|
|
2
|
+
import type { SpanAttributes } from '@sentry/core';
|
|
1
3
|
/**
|
|
2
4
|
* Derives a low-cardinality summary from a SQL query for use as `db.query.summary`.
|
|
3
5
|
*
|
|
@@ -12,6 +14,12 @@
|
|
|
12
14
|
* @see https://opentelemetry.io/docs/specs/semconv/database/database-spans/#generating-a-summary-of-the-query
|
|
13
15
|
*/
|
|
14
16
|
export declare function getSqlQuerySummary(query: string | undefined): string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Derives `db.operation.name` from a SQL query: the first operation keyword, in its original case.
|
|
19
|
+
*
|
|
20
|
+
* @see https://opentelemetry.io/docs/specs/semconv/registry/attributes/db/#db-operation-name
|
|
21
|
+
*/
|
|
22
|
+
export declare function getSqlOperationName(query: string | undefined): string | undefined;
|
|
15
23
|
/**
|
|
16
24
|
* SQL dialect variants that matter for finding the end of a string literal:
|
|
17
25
|
* - `standard` (PostgreSQL, SQLite): `"` quotes identifiers, `''` is the only in-string escape,
|
|
@@ -41,13 +49,29 @@ export declare function toSqlDialect(system: unknown): SqlDialect;
|
|
|
41
49
|
* see {@link SqlDialect}.
|
|
42
50
|
*/
|
|
43
51
|
export declare function sanitizeSqlQuery(sqlQuery: string | undefined, dialect?: SqlDialect): string;
|
|
52
|
+
export interface SqlQueryAttributes {
|
|
53
|
+
[DB_QUERY_TEXT]: string | undefined;
|
|
54
|
+
[DB_QUERY_SUMMARY]: string | undefined;
|
|
55
|
+
[DB_OPERATION_NAME]: string | undefined;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Sanitizes a collected SQL statement into the query attributes the SQL integrations attach to
|
|
59
|
+
* their spans: `db.query.text`, `db.query.summary` and `db.operation.name`. All are `undefined`
|
|
60
|
+
* when there is no statement, so an empty query omits the attributes instead of reporting the
|
|
61
|
+
* sanitizer's fallback text.
|
|
62
|
+
*/
|
|
63
|
+
export declare function getSqlQueryAttributes(sqlQuery: string | undefined, dialect?: SqlDialect): SqlQueryAttributes;
|
|
64
|
+
/**
|
|
65
|
+
* Names a SQL span with a low-cardinality name: `db.query.summary`, falling back to `db.namespace`
|
|
66
|
+
* and then `db.system.name`. `fallback` is the integration's name for a span with none of those.
|
|
67
|
+
*
|
|
68
|
+
* New SQL integrations should name their spans with this regardless of span streaming.
|
|
69
|
+
*/
|
|
70
|
+
export declare function getLowCardinalitySqlSpanName(attributes: SpanAttributes, fallback: string): string;
|
|
44
71
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
72
|
+
* Names a SQL span from its attributes. Streamed span names have to be low cardinality (see
|
|
73
|
+
* {@link getLowCardinalitySqlSpanName}); otherwise the sanitized `db.query.text` is used, which
|
|
74
|
+
* existing integrations keep for spans that aren't streamed.
|
|
48
75
|
*/
|
|
49
|
-
export declare function
|
|
50
|
-
queryText: string | undefined;
|
|
51
|
-
querySummary: string | undefined;
|
|
52
|
-
};
|
|
76
|
+
export declare function getSqlSpanName(attributes: SpanAttributes, fallback: string): string;
|
|
53
77
|
//# sourceMappingURL=sql.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sql.d.ts","sourceRoot":"","sources":["../../../src/utils/sql.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sql.d.ts","sourceRoot":"","sources":["../../../src/utils/sql.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EAEd,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AA0CnD;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAmDhF;AAKD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAQjF;AAyFD;;;;;;;;;GASG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC;AAExD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAQxD;AAqJD;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,GAAE,UAAuB,GAAG,MAAM,CA2BvG;AAED,MAAM,WAAW,kBAAkB;IACjC,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,kBAAkB,CAO5G;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,UAAU,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEjG;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAMnF"}
|
|
@@ -9,8 +9,8 @@ export interface ServerRequestHandlerConfig {
|
|
|
9
9
|
options: ServerRequestOptions<Request, Response> | undefined;
|
|
10
10
|
/** Origin of the span, e.g. `auto.http.deno`. */
|
|
11
11
|
origin: string;
|
|
12
|
-
/** Mechanism of errors that the handler or the response stream throws. */
|
|
13
|
-
mechanism
|
|
12
|
+
/** Mechanism of errors that the handler or the response stream throws. Omit to not capture them. */
|
|
13
|
+
mechanism?: Mechanism;
|
|
14
14
|
/** The address and port of the socket, if the runtime knows them. */
|
|
15
15
|
getSocketAddress?: () => {
|
|
16
16
|
address: string;
|
|
@@ -20,6 +20,13 @@ export interface ServerRequestHandlerConfig {
|
|
|
20
20
|
routeName?: string;
|
|
21
21
|
/** Span attributes that only the runtime knows, e.g. the route parameters. */
|
|
22
22
|
attributes?: SpanAttributes;
|
|
23
|
+
/** Whether the response streams. Return `undefined` to use the default classification. */
|
|
24
|
+
isStreamingResponse?: (response: Response) => boolean | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Called once when the request is done: when the response is returned, when a streamed body
|
|
27
|
+
* finishes, or when the handler throws (then without a response).
|
|
28
|
+
*/
|
|
29
|
+
onDone?: (response: Response | undefined) => void;
|
|
23
30
|
}
|
|
24
31
|
/**
|
|
25
32
|
* Wraps a handler of a web `Request`, as used by `Deno.serve`, `Bun.serve` and Cloudflare Workers.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrapServerRequestHandler.d.ts","sourceRoot":"","sources":["../../../src/utils/wrapServerRequestHandler.ts"],"names":[],"mappings":"AAUA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