@sentry/server-utils 10.64.0 → 10.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/graphql/graphql-dc-subscriber.js +123 -0
- package/build/cjs/graphql/graphql-dc-subscriber.js.map +1 -0
- package/build/cjs/graphql/index.js +23 -0
- package/build/cjs/graphql/index.js.map +1 -0
- package/build/cjs/graphql/utils.js +92 -0
- package/build/cjs/graphql/utils.js.map +1 -0
- package/build/cjs/index.js +13 -11
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/amqplib.js +420 -0
- package/build/cjs/integrations/tracing-channel/amqplib.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/dataloader.js +95 -0
- package/build/cjs/integrations/tracing-channel/dataloader.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/express/index.js +24 -0
- package/build/cjs/integrations/tracing-channel/express/index.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/express/instrumentation.js +173 -0
- package/build/cjs/integrations/tracing-channel/express/instrumentation.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/express/route.js +76 -0
- package/build/cjs/integrations/tracing-channel/express/route.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/fastify/instrumentation.js +1 -1
- package/build/cjs/integrations/tracing-channel/fastify/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/generic-pool.js +34 -0
- package/build/cjs/integrations/tracing-channel/generic-pool.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/google-genai.js +96 -0
- package/build/cjs/integrations/tracing-channel/google-genai.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/graphql/constants.js +26 -0
- package/build/cjs/integrations/tracing-channel/graphql/constants.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/graphql/index.js +66 -0
- package/build/cjs/integrations/tracing-channel/graphql/index.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/graphql/resolvers.js +168 -0
- package/build/cjs/integrations/tracing-channel/graphql/resolvers.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/graphql/spans.js +102 -0
- package/build/cjs/integrations/tracing-channel/graphql/spans.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/ioredis.js +35 -32
- package/build/cjs/integrations/tracing-channel/ioredis.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/kafkajs/consumer.js +71 -0
- package/build/cjs/integrations/tracing-channel/kafkajs/consumer.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/kafkajs/index.js +70 -0
- package/build/cjs/integrations/tracing-channel/kafkajs/index.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/kafkajs/semconv.js +22 -0
- package/build/cjs/integrations/tracing-channel/kafkajs/semconv.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/kafkajs/spans.js +119 -0
- package/build/cjs/integrations/tracing-channel/kafkajs/spans.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/knex.js +188 -0
- package/build/cjs/integrations/tracing-channel/knex.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/mysql.js +1 -1
- package/build/cjs/integrations/tracing-channel/mysql.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/mysql2.js +83 -0
- package/build/cjs/integrations/tracing-channel/mysql2.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/openai.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/postgres-js.js +191 -0
- package/build/cjs/integrations/tracing-channel/postgres-js.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/postgres.js +5 -5
- package/build/cjs/integrations/tracing-channel/postgres.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/redis.js +227 -0
- package/build/cjs/integrations/tracing-channel/redis.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/vercel-ai.js +2 -2
- package/build/cjs/integrations/tracing-channel/vercel-ai.js.map +1 -1
- package/build/cjs/mongoose/mongoose-dc-subscriber.js +1 -1
- package/build/cjs/mongoose/mongoose-dc-subscriber.js.map +1 -1
- package/build/cjs/mysql2/index.js +23 -0
- package/build/cjs/mysql2/index.js.map +1 -0
- package/build/cjs/mysql2/mysql2-dc-subscriber.js +68 -0
- package/build/cjs/mysql2/mysql2-dc-subscriber.js.map +1 -0
- package/build/cjs/orchestrion/bundler/esbuild.js +11 -0
- package/build/cjs/orchestrion/bundler/esbuild.js.map +1 -0
- package/build/cjs/orchestrion/bundler/options.js +15 -0
- package/build/cjs/orchestrion/bundler/options.js.map +1 -0
- package/build/cjs/orchestrion/bundler/rollup.js +11 -0
- package/build/cjs/orchestrion/bundler/rollup.js.map +1 -0
- package/build/cjs/orchestrion/bundler/vite.js +4 -21
- package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
- package/build/cjs/orchestrion/bundler/webpack.js +32 -0
- package/build/cjs/orchestrion/bundler/webpack.js.map +1 -0
- package/build/cjs/orchestrion/channels.js +53 -11
- package/build/cjs/orchestrion/channels.js.map +1 -1
- package/build/cjs/orchestrion/config/amqplib.js +81 -0
- package/build/cjs/orchestrion/config/amqplib.js.map +1 -0
- package/build/cjs/orchestrion/config/dataloader.js +53 -0
- package/build/cjs/orchestrion/config/dataloader.js.map +1 -0
- package/build/cjs/orchestrion/config/express.js +76 -0
- package/build/cjs/orchestrion/config/express.js.map +1 -0
- package/build/cjs/orchestrion/config/firebase.js +8 -0
- package/build/cjs/orchestrion/config/firebase.js.map +1 -0
- package/build/cjs/orchestrion/config/generic-pool.js +21 -0
- package/build/cjs/orchestrion/config/generic-pool.js.map +1 -0
- package/build/cjs/orchestrion/config/google-genai.js +38 -0
- package/build/cjs/orchestrion/config/google-genai.js.map +1 -0
- package/build/cjs/orchestrion/config/graphql.js +28 -0
- package/build/cjs/orchestrion/config/graphql.js.map +1 -0
- package/build/cjs/orchestrion/config/index.js +59 -14
- package/build/cjs/orchestrion/config/index.js.map +1 -1
- package/build/cjs/orchestrion/config/kafkajs.js +30 -0
- package/build/cjs/orchestrion/config/kafkajs.js.map +1 -0
- package/build/cjs/orchestrion/config/knex.js +43 -0
- package/build/cjs/orchestrion/config/knex.js.map +1 -0
- package/build/cjs/orchestrion/config/langchain.js +8 -0
- package/build/cjs/orchestrion/config/langchain.js.map +1 -0
- package/build/cjs/orchestrion/config/langgraph.js +8 -0
- package/build/cjs/orchestrion/config/langgraph.js.map +1 -0
- package/build/cjs/orchestrion/config/mongodb.js +8 -0
- package/build/cjs/orchestrion/config/mongodb.js.map +1 -0
- package/build/cjs/orchestrion/config/mongoose.js +8 -0
- package/build/cjs/orchestrion/config/mongoose.js.map +1 -0
- package/build/cjs/orchestrion/config/mysql2.js +32 -0
- package/build/cjs/orchestrion/config/mysql2.js.map +1 -0
- package/build/cjs/orchestrion/config/nestjs.js +122 -0
- package/build/cjs/orchestrion/config/nestjs.js.map +1 -0
- package/build/cjs/orchestrion/config/postgres.js +50 -0
- package/build/cjs/orchestrion/config/postgres.js.map +1 -0
- package/build/cjs/orchestrion/config/prisma.js +8 -0
- package/build/cjs/orchestrion/config/prisma.js.map +1 -0
- package/build/cjs/orchestrion/config/react-router.js +8 -0
- package/build/cjs/orchestrion/config/react-router.js.map +1 -0
- package/build/cjs/orchestrion/config/redis.js +76 -0
- package/build/cjs/orchestrion/config/redis.js.map +1 -0
- package/build/cjs/orchestrion/config/remix.js +8 -0
- package/build/cjs/orchestrion/config/remix.js.map +1 -0
- package/build/cjs/orchestrion/config/tedious.js +8 -0
- package/build/cjs/orchestrion/config/tedious.js.map +1 -0
- package/build/cjs/orchestrion/config/vercel-ai.js +18 -14
- package/build/cjs/orchestrion/config/vercel-ai.js.map +1 -1
- package/build/cjs/orchestrion/detect.js +12 -11
- package/build/cjs/orchestrion/detect.js.map +1 -1
- package/build/cjs/orchestrion/index.js +33 -1
- package/build/cjs/orchestrion/index.js.map +1 -1
- package/build/cjs/orchestrion/runtime/register.js +25 -14
- package/build/cjs/orchestrion/runtime/register.js.map +1 -1
- package/build/cjs/prisma/global.js +14 -0
- package/build/cjs/prisma/global.js.map +1 -0
- package/build/cjs/prisma/index.js +27 -0
- package/build/cjs/prisma/index.js.map +1 -0
- package/build/cjs/prisma/tracing-helper.js +211 -0
- package/build/cjs/prisma/tracing-helper.js.map +1 -0
- package/build/cjs/redis/index.js +23 -0
- package/build/cjs/redis/index.js.map +1 -0
- package/build/cjs/redis/redis-dc-subscriber.js +23 -35
- package/build/cjs/redis/redis-dc-subscriber.js.map +1 -1
- package/build/cjs/tracing-channel.js +7 -6
- package/build/cjs/tracing-channel.js.map +1 -1
- package/build/cjs/vercel-ai/util.js +112 -0
- package/build/cjs/vercel-ai/util.js.map +1 -0
- package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js +138 -74
- package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/cjs/vercel-ai/{vercel-ai-orchestrion-v6-subscriber.js → vercel-ai-orchestrion-subscriber.js} +153 -23
- package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -0
- package/build/esm/graphql/graphql-dc-subscriber.js +116 -0
- package/build/esm/graphql/graphql-dc-subscriber.js.map +1 -0
- package/build/esm/graphql/index.js +21 -0
- package/build/esm/graphql/index.js.map +1 -0
- package/build/esm/graphql/utils.js +87 -0
- package/build/esm/graphql/utils.js.map +1 -0
- package/build/esm/index.js +4 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/integrations/tracing-channel/amqplib.js +418 -0
- package/build/esm/integrations/tracing-channel/amqplib.js.map +1 -0
- package/build/esm/integrations/tracing-channel/anthropic.js +1 -1
- package/build/esm/integrations/tracing-channel/dataloader.js +93 -0
- package/build/esm/integrations/tracing-channel/dataloader.js.map +1 -0
- package/build/esm/integrations/tracing-channel/express/index.js +22 -0
- package/build/esm/integrations/tracing-channel/express/index.js.map +1 -0
- package/build/esm/integrations/tracing-channel/express/instrumentation.js +171 -0
- package/build/esm/integrations/tracing-channel/express/instrumentation.js.map +1 -0
- package/build/esm/integrations/tracing-channel/express/route.js +68 -0
- package/build/esm/integrations/tracing-channel/express/route.js.map +1 -0
- package/build/esm/integrations/tracing-channel/fastify/instrumentation.js +2 -2
- package/build/esm/integrations/tracing-channel/fastify/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing-channel/generic-pool.js +32 -0
- package/build/esm/integrations/tracing-channel/generic-pool.js.map +1 -0
- package/build/esm/integrations/tracing-channel/google-genai.js +94 -0
- package/build/esm/integrations/tracing-channel/google-genai.js.map +1 -0
- package/build/esm/integrations/tracing-channel/graphql/constants.js +14 -0
- package/build/esm/integrations/tracing-channel/graphql/constants.js.map +1 -0
- package/build/esm/integrations/tracing-channel/graphql/index.js +63 -0
- package/build/esm/integrations/tracing-channel/graphql/index.js.map +1 -0
- package/build/esm/integrations/tracing-channel/graphql/resolvers.js +164 -0
- package/build/esm/integrations/tracing-channel/graphql/resolvers.js.map +1 -0
- package/build/esm/integrations/tracing-channel/graphql/spans.js +96 -0
- package/build/esm/integrations/tracing-channel/graphql/spans.js.map +1 -0
- package/build/esm/integrations/tracing-channel/ioredis.js +36 -34
- package/build/esm/integrations/tracing-channel/ioredis.js.map +1 -1
- package/build/esm/integrations/tracing-channel/kafkajs/consumer.js +67 -0
- package/build/esm/integrations/tracing-channel/kafkajs/consumer.js.map +1 -0
- package/build/esm/integrations/tracing-channel/kafkajs/index.js +68 -0
- package/build/esm/integrations/tracing-channel/kafkajs/index.js.map +1 -0
- package/build/esm/integrations/tracing-channel/kafkajs/semconv.js +12 -0
- package/build/esm/integrations/tracing-channel/kafkajs/semconv.js.map +1 -0
- package/build/esm/integrations/tracing-channel/kafkajs/spans.js +112 -0
- package/build/esm/integrations/tracing-channel/kafkajs/spans.js.map +1 -0
- package/build/esm/integrations/tracing-channel/knex.js +186 -0
- package/build/esm/integrations/tracing-channel/knex.js.map +1 -0
- package/build/esm/integrations/tracing-channel/mysql.js +2 -2
- package/build/esm/integrations/tracing-channel/mysql.js.map +1 -1
- package/build/esm/integrations/tracing-channel/mysql2.js +81 -0
- package/build/esm/integrations/tracing-channel/mysql2.js.map +1 -0
- package/build/esm/integrations/tracing-channel/openai.js +1 -1
- package/build/esm/integrations/tracing-channel/openai.js.map +1 -1
- package/build/esm/integrations/tracing-channel/postgres-js.js +189 -0
- package/build/esm/integrations/tracing-channel/postgres-js.js.map +1 -0
- package/build/esm/integrations/tracing-channel/postgres.js +6 -6
- package/build/esm/integrations/tracing-channel/postgres.js.map +1 -1
- package/build/esm/integrations/tracing-channel/redis.js +225 -0
- package/build/esm/integrations/tracing-channel/redis.js.map +1 -0
- package/build/esm/integrations/tracing-channel/vercel-ai.js +1 -1
- package/build/esm/integrations/tracing-channel/vercel-ai.js.map +1 -1
- package/build/esm/mongoose/mongoose-dc-subscriber.js +2 -2
- package/build/esm/mongoose/mongoose-dc-subscriber.js.map +1 -1
- package/build/esm/mysql2/index.js +21 -0
- package/build/esm/mysql2/index.js.map +1 -0
- package/build/esm/mysql2/mysql2-dc-subscriber.js +62 -0
- package/build/esm/mysql2/mysql2-dc-subscriber.js.map +1 -0
- package/build/esm/orchestrion/bundler/esbuild.js +9 -0
- package/build/esm/orchestrion/bundler/esbuild.js.map +1 -0
- package/build/esm/orchestrion/bundler/options.js +13 -0
- package/build/esm/orchestrion/bundler/options.js.map +1 -0
- package/build/esm/orchestrion/bundler/rollup.js +9 -0
- package/build/esm/orchestrion/bundler/rollup.js.map +1 -0
- package/build/esm/orchestrion/bundler/vite.js +5 -22
- package/build/esm/orchestrion/bundler/vite.js.map +1 -1
- package/build/esm/orchestrion/bundler/webpack.js +27 -0
- package/build/esm/orchestrion/bundler/webpack.js.map +1 -0
- package/build/esm/orchestrion/channels.js +53 -11
- package/build/esm/orchestrion/channels.js.map +1 -1
- package/build/esm/orchestrion/config/amqplib.js +78 -0
- package/build/esm/orchestrion/config/amqplib.js.map +1 -0
- package/build/esm/orchestrion/config/dataloader.js +50 -0
- package/build/esm/orchestrion/config/dataloader.js.map +1 -0
- package/build/esm/orchestrion/config/express.js +73 -0
- package/build/esm/orchestrion/config/express.js.map +1 -0
- package/build/esm/orchestrion/config/firebase.js +5 -0
- package/build/esm/orchestrion/config/firebase.js.map +1 -0
- package/build/esm/orchestrion/config/generic-pool.js +18 -0
- package/build/esm/orchestrion/config/generic-pool.js.map +1 -0
- package/build/esm/orchestrion/config/google-genai.js +35 -0
- package/build/esm/orchestrion/config/google-genai.js.map +1 -0
- package/build/esm/orchestrion/config/graphql.js +25 -0
- package/build/esm/orchestrion/config/graphql.js.map +1 -0
- package/build/esm/orchestrion/config/index.js +59 -15
- package/build/esm/orchestrion/config/index.js.map +1 -1
- package/build/esm/orchestrion/config/kafkajs.js +27 -0
- package/build/esm/orchestrion/config/kafkajs.js.map +1 -0
- package/build/esm/orchestrion/config/knex.js +40 -0
- package/build/esm/orchestrion/config/knex.js.map +1 -0
- package/build/esm/orchestrion/config/langchain.js +5 -0
- package/build/esm/orchestrion/config/langchain.js.map +1 -0
- package/build/esm/orchestrion/config/langgraph.js +5 -0
- package/build/esm/orchestrion/config/langgraph.js.map +1 -0
- package/build/esm/orchestrion/config/mongodb.js +5 -0
- package/build/esm/orchestrion/config/mongodb.js.map +1 -0
- package/build/esm/orchestrion/config/mongoose.js +5 -0
- package/build/esm/orchestrion/config/mongoose.js.map +1 -0
- package/build/esm/orchestrion/config/mysql2.js +29 -0
- package/build/esm/orchestrion/config/mysql2.js.map +1 -0
- package/build/esm/orchestrion/config/nestjs.js +119 -0
- package/build/esm/orchestrion/config/nestjs.js.map +1 -0
- package/build/esm/orchestrion/config/postgres.js +47 -0
- package/build/esm/orchestrion/config/postgres.js.map +1 -0
- package/build/esm/orchestrion/config/prisma.js +5 -0
- package/build/esm/orchestrion/config/prisma.js.map +1 -0
- package/build/esm/orchestrion/config/react-router.js +5 -0
- package/build/esm/orchestrion/config/react-router.js.map +1 -0
- package/build/esm/orchestrion/config/redis.js +73 -0
- package/build/esm/orchestrion/config/redis.js.map +1 -0
- package/build/esm/orchestrion/config/remix.js +5 -0
- package/build/esm/orchestrion/config/remix.js.map +1 -0
- package/build/esm/orchestrion/config/tedious.js +5 -0
- package/build/esm/orchestrion/config/tedious.js.map +1 -0
- package/build/esm/orchestrion/config/vercel-ai.js +18 -14
- package/build/esm/orchestrion/config/vercel-ai.js.map +1 -1
- package/build/esm/orchestrion/detect.js +13 -12
- package/build/esm/orchestrion/detect.js.map +1 -1
- package/build/esm/orchestrion/index.js +23 -2
- package/build/esm/orchestrion/index.js.map +1 -1
- package/build/esm/orchestrion/runtime/register.js +27 -16
- package/build/esm/orchestrion/runtime/register.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/prisma/global.js +12 -0
- package/build/esm/prisma/global.js.map +1 -0
- package/build/esm/prisma/index.js +24 -0
- package/build/esm/prisma/index.js.map +1 -0
- package/build/esm/prisma/tracing-helper.js +209 -0
- package/build/esm/prisma/tracing-helper.js.map +1 -0
- package/build/esm/redis/index.js +21 -0
- package/build/esm/redis/index.js.map +1 -0
- package/build/esm/redis/redis-dc-subscriber.js +24 -36
- package/build/esm/redis/redis-dc-subscriber.js.map +1 -1
- package/build/esm/tracing-channel.js +8 -7
- package/build/esm/tracing-channel.js.map +1 -1
- package/build/esm/vercel-ai/util.js +106 -0
- package/build/esm/vercel-ai/util.js.map +1 -0
- package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js +121 -59
- package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/esm/vercel-ai/{vercel-ai-orchestrion-v6-subscriber.js → vercel-ai-orchestrion-subscriber.js} +153 -23
- package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -0
- package/build/types/graphql/graphql-dc-subscriber.d.ts +94 -0
- package/build/types/graphql/graphql-dc-subscriber.d.ts.map +1 -0
- package/build/types/graphql/index.d.ts +12 -0
- package/build/types/graphql/index.d.ts.map +1 -0
- package/build/types/graphql/utils.d.ts +36 -0
- package/build/types/graphql/utils.d.ts.map +1 -0
- package/build/types/index.d.ts +6 -2
- package/build/types/index.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/amqplib.d.ts +11 -0
- package/build/types/integrations/tracing-channel/amqplib.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/dataloader.d.ts +11 -0
- package/build/types/integrations/tracing-channel/dataloader.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/express/index.d.ts +18 -0
- package/build/types/integrations/tracing-channel/express/index.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/express/instrumentation.d.ts +4 -0
- package/build/types/integrations/tracing-channel/express/instrumentation.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/express/route.d.ts +28 -0
- package/build/types/integrations/tracing-channel/express/route.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/express/types.d.ts +64 -0
- package/build/types/integrations/tracing-channel/express/types.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/fastify/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/generic-pool.d.ts +10 -0
- package/build/types/integrations/tracing-channel/generic-pool.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/google-genai.d.ts +12 -0
- package/build/types/integrations/tracing-channel/google-genai.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/graphql/constants.d.ts +12 -0
- package/build/types/integrations/tracing-channel/graphql/constants.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/graphql/graphql-types.d.ts +135 -0
- package/build/types/integrations/tracing-channel/graphql/graphql-types.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/graphql/index.d.ts +28 -0
- package/build/types/integrations/tracing-channel/graphql/index.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/graphql/resolvers.d.ts +13 -0
- package/build/types/integrations/tracing-channel/graphql/resolvers.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/graphql/spans.d.ts +17 -0
- package/build/types/integrations/tracing-channel/graphql/spans.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/graphql/types.d.ts +25 -0
- package/build/types/integrations/tracing-channel/graphql/types.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/ioredis.d.ts +20 -0
- package/build/types/integrations/tracing-channel/ioredis.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/kafkajs/consumer.d.ts +8 -0
- package/build/types/integrations/tracing-channel/kafkajs/consumer.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/kafkajs/index.d.ts +17 -0
- package/build/types/integrations/tracing-channel/kafkajs/index.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/kafkajs/semconv.d.ts +10 -0
- package/build/types/integrations/tracing-channel/kafkajs/semconv.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/kafkajs/spans.d.ts +38 -0
- package/build/types/integrations/tracing-channel/kafkajs/spans.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/kafkajs/types.d.ts +40 -0
- package/build/types/integrations/tracing-channel/kafkajs/types.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/knex.d.ts +11 -0
- package/build/types/integrations/tracing-channel/knex.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/mysql.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/mysql2.d.ts +15 -0
- package/build/types/integrations/tracing-channel/mysql2.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/openai.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/postgres-js.d.ts +26 -0
- package/build/types/integrations/tracing-channel/postgres-js.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/postgres.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/redis.d.ts +16 -0
- package/build/types/integrations/tracing-channel/redis.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/vercel-ai.d.ts +1 -1
- package/build/types/mongoose/mongoose-dc-subscriber.d.ts.map +1 -1
- package/build/types/mysql2/index.d.ts +11 -0
- package/build/types/mysql2/index.d.ts.map +1 -0
- package/build/types/mysql2/mysql2-dc-subscriber.d.ts +59 -0
- package/build/types/mysql2/mysql2-dc-subscriber.d.ts.map +1 -0
- package/build/types/orchestrion/bundler/esbuild.d.ts +21 -0
- package/build/types/orchestrion/bundler/esbuild.d.ts.map +1 -0
- package/build/types/orchestrion/bundler/options.d.ts +19 -0
- package/build/types/orchestrion/bundler/options.d.ts.map +1 -0
- package/build/types/orchestrion/bundler/rollup.d.ts +17 -0
- package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -0
- package/build/types/orchestrion/bundler/vite.d.ts +4 -17
- package/build/types/orchestrion/bundler/vite.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/webpack.d.ts +19 -0
- package/build/types/orchestrion/bundler/webpack.d.ts.map +1 -0
- package/build/types/orchestrion/channels.d.ts +71 -10
- package/build/types/orchestrion/channels.d.ts.map +1 -1
- package/build/types/orchestrion/config/amqplib.d.ts +66 -0
- package/build/types/orchestrion/config/amqplib.d.ts.map +1 -0
- package/build/types/orchestrion/config/dataloader.d.ts +46 -0
- package/build/types/orchestrion/config/dataloader.d.ts.map +1 -0
- package/build/types/orchestrion/config/express.d.ts +32 -0
- package/build/types/orchestrion/config/express.d.ts.map +1 -0
- package/build/types/orchestrion/config/firebase.d.ts +4 -0
- package/build/types/orchestrion/config/firebase.d.ts.map +1 -0
- package/build/types/orchestrion/config/generic-pool.d.ts +31 -0
- package/build/types/orchestrion/config/generic-pool.d.ts.map +1 -0
- package/build/types/orchestrion/config/google-genai.d.ts +30 -0
- package/build/types/orchestrion/config/google-genai.d.ts.map +1 -0
- package/build/types/orchestrion/config/graphql.d.ts +29 -0
- package/build/types/orchestrion/config/graphql.d.ts.map +1 -0
- package/build/types/orchestrion/config/index.d.ts +18 -5
- package/build/types/orchestrion/config/index.d.ts.map +1 -1
- package/build/types/orchestrion/config/kafkajs.d.ts +17 -0
- package/build/types/orchestrion/config/kafkajs.d.ts.map +1 -0
- package/build/types/orchestrion/config/knex.d.ts +9 -0
- package/build/types/orchestrion/config/knex.d.ts.map +1 -0
- package/build/types/orchestrion/config/langchain.d.ts +4 -0
- package/build/types/orchestrion/config/langchain.d.ts.map +1 -0
- package/build/types/orchestrion/config/langgraph.d.ts +4 -0
- package/build/types/orchestrion/config/langgraph.d.ts.map +1 -0
- package/build/types/orchestrion/config/mongodb.d.ts +4 -0
- package/build/types/orchestrion/config/mongodb.d.ts.map +1 -0
- package/build/types/orchestrion/config/mongoose.d.ts +4 -0
- package/build/types/orchestrion/config/mongoose.d.ts.map +1 -0
- package/build/types/orchestrion/config/mysql2.d.ts +18 -0
- package/build/types/orchestrion/config/mysql2.d.ts.map +1 -0
- package/build/types/orchestrion/config/nestjs.d.ts +24 -0
- package/build/types/orchestrion/config/nestjs.d.ts.map +1 -0
- package/build/types/orchestrion/config/postgres.d.ts +9 -0
- package/build/types/orchestrion/config/postgres.d.ts.map +1 -0
- package/build/types/orchestrion/config/prisma.d.ts +4 -0
- package/build/types/orchestrion/config/prisma.d.ts.map +1 -0
- package/build/types/orchestrion/config/react-router.d.ts +4 -0
- package/build/types/orchestrion/config/react-router.d.ts.map +1 -0
- package/build/types/orchestrion/config/redis.d.ts +37 -0
- package/build/types/orchestrion/config/redis.d.ts.map +1 -0
- package/build/types/orchestrion/config/remix.d.ts +4 -0
- package/build/types/orchestrion/config/remix.d.ts.map +1 -0
- package/build/types/orchestrion/config/tedious.d.ts +4 -0
- package/build/types/orchestrion/config/tedious.d.ts.map +1 -0
- package/build/types/orchestrion/config/vercel-ai.d.ts +1 -0
- package/build/types/orchestrion/config/vercel-ai.d.ts.map +1 -1
- package/build/types/orchestrion/detect.d.ts +3 -10
- package/build/types/orchestrion/detect.d.ts.map +1 -1
- package/build/types/orchestrion/index.d.ts +55 -4
- package/build/types/orchestrion/index.d.ts.map +1 -1
- package/build/types/orchestrion/runtime/register.d.ts +11 -9
- package/build/types/orchestrion/runtime/register.d.ts.map +1 -1
- package/build/types/prisma/global.d.ts +5 -0
- package/build/types/prisma/global.d.ts.map +1 -0
- package/build/types/prisma/index.d.ts +45 -0
- package/build/types/prisma/index.d.ts.map +1 -0
- package/build/types/prisma/tracing-helper.d.ts +46 -0
- package/build/types/prisma/tracing-helper.d.ts.map +1 -0
- package/build/types/prisma/types.d.ts +37 -0
- package/build/types/prisma/types.d.ts.map +1 -0
- package/build/types/redis/index.d.ts +18 -0
- package/build/types/redis/index.d.ts.map +1 -0
- package/build/types/redis/redis-dc-subscriber.d.ts +0 -5
- package/build/types/redis/redis-dc-subscriber.d.ts.map +1 -1
- package/build/types/tracing-channel.d.ts +5 -0
- package/build/types/tracing-channel.d.ts.map +1 -1
- package/build/types/vercel-ai/util.d.ts +30 -0
- package/build/types/vercel-ai/util.d.ts.map +1 -0
- package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts +6 -2
- package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
- package/build/types/vercel-ai/{vercel-ai-orchestrion-v6-subscriber.d.ts → vercel-ai-orchestrion-subscriber.d.ts} +1 -1
- package/build/types/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts.map +1 -0
- package/build/types-ts3.8/graphql/graphql-dc-subscriber.d.ts +94 -0
- package/build/types-ts3.8/graphql/index.d.ts +12 -0
- package/build/types-ts3.8/graphql/utils.d.ts +36 -0
- package/build/types-ts3.8/index.d.ts +6 -2
- package/build/types-ts3.8/integrations/tracing-channel/amqplib.d.ts +11 -0
- package/build/types-ts3.8/integrations/tracing-channel/dataloader.d.ts +11 -0
- package/build/types-ts3.8/integrations/tracing-channel/express/index.d.ts +18 -0
- package/build/types-ts3.8/integrations/tracing-channel/express/instrumentation.d.ts +4 -0
- package/build/types-ts3.8/integrations/tracing-channel/express/route.d.ts +28 -0
- package/build/types-ts3.8/integrations/tracing-channel/express/types.d.ts +64 -0
- package/build/types-ts3.8/integrations/tracing-channel/generic-pool.d.ts +10 -0
- package/build/types-ts3.8/integrations/tracing-channel/google-genai.d.ts +12 -0
- package/build/types-ts3.8/integrations/tracing-channel/graphql/constants.d.ts +12 -0
- package/build/types-ts3.8/integrations/tracing-channel/graphql/graphql-types.d.ts +135 -0
- package/build/types-ts3.8/integrations/tracing-channel/graphql/index.d.ts +30 -0
- package/build/types-ts3.8/integrations/tracing-channel/graphql/resolvers.d.ts +13 -0
- package/build/types-ts3.8/integrations/tracing-channel/graphql/spans.d.ts +17 -0
- package/build/types-ts3.8/integrations/tracing-channel/graphql/types.d.ts +25 -0
- package/build/types-ts3.8/integrations/tracing-channel/ioredis.d.ts +20 -0
- package/build/types-ts3.8/integrations/tracing-channel/kafkajs/consumer.d.ts +8 -0
- package/build/types-ts3.8/integrations/tracing-channel/kafkajs/index.d.ts +17 -0
- package/build/types-ts3.8/integrations/tracing-channel/kafkajs/semconv.d.ts +10 -0
- package/build/types-ts3.8/integrations/tracing-channel/kafkajs/spans.d.ts +38 -0
- package/build/types-ts3.8/integrations/tracing-channel/kafkajs/types.d.ts +40 -0
- package/build/types-ts3.8/integrations/tracing-channel/knex.d.ts +11 -0
- package/build/types-ts3.8/integrations/tracing-channel/mysql2.d.ts +15 -0
- package/build/types-ts3.8/integrations/tracing-channel/postgres-js.d.ts +26 -0
- package/build/types-ts3.8/integrations/tracing-channel/redis.d.ts +16 -0
- package/build/types-ts3.8/integrations/tracing-channel/vercel-ai.d.ts +1 -1
- package/build/types-ts3.8/mysql2/index.d.ts +11 -0
- package/build/types-ts3.8/mysql2/mysql2-dc-subscriber.d.ts +59 -0
- package/build/types-ts3.8/orchestrion/bundler/esbuild.d.ts +21 -0
- package/build/types-ts3.8/orchestrion/bundler/options.d.ts +19 -0
- package/build/types-ts3.8/orchestrion/bundler/rollup.d.ts +17 -0
- package/build/types-ts3.8/orchestrion/bundler/vite.d.ts +4 -17
- package/build/types-ts3.8/orchestrion/bundler/webpack.d.ts +19 -0
- package/build/types-ts3.8/orchestrion/channels.d.ts +71 -10
- package/build/types-ts3.8/orchestrion/config/amqplib.d.ts +66 -0
- package/build/types-ts3.8/orchestrion/config/dataloader.d.ts +46 -0
- package/build/types-ts3.8/orchestrion/config/express.d.ts +32 -0
- package/build/types-ts3.8/orchestrion/config/firebase.d.ts +4 -0
- package/build/types-ts3.8/orchestrion/config/generic-pool.d.ts +31 -0
- package/build/types-ts3.8/orchestrion/config/google-genai.d.ts +30 -0
- package/build/types-ts3.8/orchestrion/config/graphql.d.ts +29 -0
- package/build/types-ts3.8/orchestrion/config/index.d.ts +18 -5
- package/build/types-ts3.8/orchestrion/config/kafkajs.d.ts +17 -0
- package/build/types-ts3.8/orchestrion/config/knex.d.ts +9 -0
- package/build/types-ts3.8/orchestrion/config/langchain.d.ts +4 -0
- package/build/types-ts3.8/orchestrion/config/langgraph.d.ts +4 -0
- package/build/types-ts3.8/orchestrion/config/mongodb.d.ts +4 -0
- package/build/types-ts3.8/orchestrion/config/mongoose.d.ts +4 -0
- package/build/types-ts3.8/orchestrion/config/mysql2.d.ts +18 -0
- package/build/types-ts3.8/orchestrion/config/nestjs.d.ts +24 -0
- package/build/types-ts3.8/orchestrion/config/postgres.d.ts +9 -0
- package/build/types-ts3.8/orchestrion/config/prisma.d.ts +4 -0
- package/build/types-ts3.8/orchestrion/config/react-router.d.ts +4 -0
- package/build/types-ts3.8/orchestrion/config/redis.d.ts +37 -0
- package/build/types-ts3.8/orchestrion/config/remix.d.ts +4 -0
- package/build/types-ts3.8/orchestrion/config/tedious.d.ts +4 -0
- package/build/types-ts3.8/orchestrion/config/vercel-ai.d.ts +1 -0
- package/build/types-ts3.8/orchestrion/detect.d.ts +3 -10
- package/build/types-ts3.8/orchestrion/index.d.ts +57 -4
- package/build/types-ts3.8/orchestrion/runtime/register.d.ts +11 -9
- package/build/types-ts3.8/prisma/global.d.ts +5 -0
- package/build/types-ts3.8/prisma/index.d.ts +45 -0
- package/build/types-ts3.8/prisma/tracing-helper.d.ts +52 -0
- package/build/types-ts3.8/prisma/types.d.ts +40 -0
- package/build/types-ts3.8/redis/index.d.ts +18 -0
- package/build/types-ts3.8/redis/redis-dc-subscriber.d.ts +0 -5
- package/build/types-ts3.8/tracing-channel.d.ts +5 -0
- package/build/types-ts3.8/vercel-ai/util.d.ts +30 -0
- package/build/types-ts3.8/vercel-ai/vercel-ai-dc-subscriber.d.ts +6 -2
- package/build/types-ts3.8/vercel-ai/{vercel-ai-orchestrion-v6-subscriber.d.ts → vercel-ai-orchestrion-subscriber.d.ts} +1 -1
- package/package.json +41 -8
- package/build/cjs/vercel-ai/vercel-ai-orchestrion-v6-subscriber.js.map +0 -1
- package/build/esm/vercel-ai/vercel-ai-orchestrion-v6-subscriber.js.map +0 -1
- package/build/types/vercel-ai/vercel-ai-orchestrion-v6-subscriber.d.ts.map +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ExpressLayer, ExpressRequest } from './types';
|
|
2
|
+
/** Record the path pattern a layer was registered with. */
|
|
3
|
+
export declare function setLayerRegisteredPath(layer: ExpressLayer, path: string | undefined): void;
|
|
4
|
+
/** Read the path pattern a layer was registered with, if any. */
|
|
5
|
+
export declare function getLayerRegisteredPath(layer: ExpressLayer): string | undefined;
|
|
6
|
+
/** Push a layer's registered path onto the request's chain. */
|
|
7
|
+
export declare function pushLayerPath(req: ExpressRequest, path: string): void;
|
|
8
|
+
/** Pop the most recently pushed layer path off the request's chain. */
|
|
9
|
+
export declare function popLayerPath(req: ExpressRequest): void;
|
|
10
|
+
/**
|
|
11
|
+
* The path pattern a `route`/`use` call registered, derived from its arguments.
|
|
12
|
+
* A leading string/RegExp/number path becomes the pattern (arrays are joined
|
|
13
|
+
* with `,`); a bare handler function yields `undefined`. Kept in sync with
|
|
14
|
+
* `@sentry/core`'s Express `getLayerPath`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function getLayerPath(args: unknown[]): string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Concatenate the stored layer paths into the full route pattern (parameters
|
|
19
|
+
* preserved), e.g. `/api/:version/user`. Mirrors `@sentry/core`.
|
|
20
|
+
*/
|
|
21
|
+
export declare function getConstructedRoute(req: ExpressRequest): string;
|
|
22
|
+
/**
|
|
23
|
+
* Validate the constructed route against the request URL, returning it only
|
|
24
|
+
* when it plausibly corresponds to a real match (otherwise `undefined`). Mirrors
|
|
25
|
+
* `@sentry/core`'s `getActualMatchedRoute` — used for the `http.route` attribute.
|
|
26
|
+
*/
|
|
27
|
+
export declare function getActualMatchedRoute(req: ExpressRequest, constructedRoute: string): string | undefined;
|
|
28
|
+
//# sourceMappingURL=route.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/express/route.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAc5D,2DAA2D;AAC3D,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAE1F;AAED,iEAAiE;AACjE,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,GAAG,SAAS,CAE9E;AAoBD,+DAA+D;AAC/D,wBAAgB,aAAa,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAErE;AAED,uEAAuE;AACvE,wBAAgB,YAAY,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI,CAEtD;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,GAAG,SAAS,CAMhE;AAUD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,MAAM,CAY/D;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAoCvG"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export type ExpressLayerType = 'router' | 'middleware' | 'request_handler';
|
|
2
|
+
/**
|
|
3
|
+
* The subset of an Express routing `Layer` we read at handle time. `handle` is
|
|
4
|
+
* the user's middleware/handler; `route` is only set on route-dispatch layers
|
|
5
|
+
* (and carries the parameterized path).
|
|
6
|
+
*/
|
|
7
|
+
export interface ExpressLayer {
|
|
8
|
+
handle?: {
|
|
9
|
+
length?: number;
|
|
10
|
+
};
|
|
11
|
+
name?: string;
|
|
12
|
+
path?: string;
|
|
13
|
+
route?: {
|
|
14
|
+
path?: unknown;
|
|
15
|
+
};
|
|
16
|
+
method?: string;
|
|
17
|
+
}
|
|
18
|
+
/** Minimal Express request/response shapes — avoids a hard dep on `node:http`. */
|
|
19
|
+
export interface ExpressRequest {
|
|
20
|
+
method?: string;
|
|
21
|
+
baseUrl?: string;
|
|
22
|
+
originalUrl?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ExpressResponse {
|
|
25
|
+
once(event: string, listener: () => void): unknown;
|
|
26
|
+
removeListener(event: string, listener: () => void): unknown;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The shape orchestrion's transform attaches to the tracing-channel `context`
|
|
30
|
+
* object for `Layer.prototype.handle_request`/`handleRequest`: `self` is the
|
|
31
|
+
* Layer the method was invoked on and `arguments` are `[req, res, next]`.
|
|
32
|
+
*
|
|
33
|
+
* `_sentryCleanup` is ours: a teardown for the `res.on('finish')` listener we
|
|
34
|
+
* register, invoked from `beforeSpanEnd` when the span ends via `next()`.
|
|
35
|
+
* `_sentryStoredLayer` marks that this invocation pushed a layer path (so the
|
|
36
|
+
* matching pop on `asyncStart` stays symmetric).
|
|
37
|
+
*/
|
|
38
|
+
export interface HandleChannelContext {
|
|
39
|
+
self?: ExpressLayer;
|
|
40
|
+
arguments?: unknown[];
|
|
41
|
+
_sentryCleanup?: () => void;
|
|
42
|
+
_sentryStoredLayer?: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The context orchestrion attaches to the `route`/`use` registration channels:
|
|
46
|
+
* `self` is the router the method was invoked on (its freshly-pushed layer is
|
|
47
|
+
* the last entry in `stack`) and `arguments` are the registration args (the
|
|
48
|
+
* first of which is the path pattern).
|
|
49
|
+
*/
|
|
50
|
+
export interface RegistrationChannelContext {
|
|
51
|
+
self?: {
|
|
52
|
+
stack?: ExpressLayer[];
|
|
53
|
+
};
|
|
54
|
+
arguments?: unknown[];
|
|
55
|
+
}
|
|
56
|
+
type IgnoreMatcher = string | RegExp | ((name: string) => boolean);
|
|
57
|
+
export interface ExpressIntegrationOptions {
|
|
58
|
+
/** Ignore specific based on their name */
|
|
59
|
+
ignoreLayers?: IgnoreMatcher[];
|
|
60
|
+
/** Ignore specific layers based on their type */
|
|
61
|
+
ignoreLayersType?: ExpressLayerType[];
|
|
62
|
+
}
|
|
63
|
+
export {};
|
|
64
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/express/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,YAAY,GAAG,iBAAiB,CAAC;AAE3E;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAG3B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,kFAAkF;AAClF,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AACD,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC;IACnD,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC;CAC9D;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;;;;GAKG;AACH,MAAM,WAAW,0BAA0B;IACzC,IAAI,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;CACvB;AAED,KAAK,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC;AACnE,MAAM,WAAW,yBAAyB;IACxC,0CAA0C;IAC1C,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC;IAC/B,iDAAiD;IACjD,gBAAgB,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/fastify/instrumentation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/fastify/instrumentation.ts"],"names":[],"mappings":"AAgYA;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,SACE,IAAI;;CAmBnC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EXPERIMENTAL — orchestrion-driven generic-pool integration. Subscribes to
|
|
3
|
+
* `orchestrion:generic-pool:acquire` (injected into `generic-pool/lib/Pool.js`'s
|
|
4
|
+
* `Pool.prototype.acquire`). Creates a `generic-pool.acquire` span for each
|
|
5
|
+
* acquisition. Requires the orchestrion runtime hook or bundler plugin.
|
|
6
|
+
*/
|
|
7
|
+
export declare const genericPoolChannelIntegration: () => import("@sentry/core").Integration & {
|
|
8
|
+
name: "GenericPool";
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=generic-pool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generic-pool.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing-channel/generic-pool.ts"],"names":[],"mappings":"AAiCA;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B;;CAAoD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { GoogleGenAIOptions } from '@sentry/core';
|
|
2
|
+
/**
|
|
3
|
+
* EXPERIMENTAL — orchestrion-driven Google GenAI integration. Subscribes to the
|
|
4
|
+
* `orchestrion:@google/genai:*` diagnostics_channels injected into the SDK's `Models`
|
|
5
|
+
* (`generateContent`/`generateContentStream`/`embedContent`) and `Chat`
|
|
6
|
+
* (`sendMessage`/`sendMessageStream`) methods, so it requires the orchestrion runtime hook or
|
|
7
|
+
* bundler plugin.
|
|
8
|
+
*/
|
|
9
|
+
export declare const googleGenAIChannelIntegration: (options?: GoogleGenAIOptions | undefined) => import("@sentry/core").Integration & {
|
|
10
|
+
name: "Google_GenAI";
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=google-genai.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-genai.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing-channel/google-genai.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAA4C,MAAM,cAAc,CAAC;AAiKjG;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B;;CAAoD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const ORIGIN = "auto.graphql.diagnostic_channel";
|
|
2
|
+
export declare const SPAN_NAME_PARSE = "graphql.parse";
|
|
3
|
+
export declare const SPAN_NAME_VALIDATE = "graphql.validate";
|
|
4
|
+
export declare const SPAN_NAME_EXECUTE = "graphql.execute";
|
|
5
|
+
export declare const SPAN_NAME_RESOLVE = "graphql.resolve";
|
|
6
|
+
export declare const GRAPHQL_FIELD_NAME = "graphql.field.name";
|
|
7
|
+
export declare const GRAPHQL_FIELD_PATH = "graphql.field.path";
|
|
8
|
+
export declare const GRAPHQL_FIELD_TYPE = "graphql.field.type";
|
|
9
|
+
export declare const GRAPHQL_PARENT_NAME = "graphql.parent.name";
|
|
10
|
+
export declare const GRAPHQL_DATA_SYMBOL: unique symbol;
|
|
11
|
+
export declare const GRAPHQL_PATCHED_SYMBOL: unique symbol;
|
|
12
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/graphql/constants.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,MAAM,oCAAoC,CAAC;AAExD,eAAO,MAAM,eAAe,kBAAkB,CAAC;AAC/C,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AACrD,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AACnD,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AAGnD,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"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
export type PromiseOrValue<T> = T | Promise<T>;
|
|
2
|
+
export type Maybe<T> = null | undefined | T;
|
|
3
|
+
export interface Location {
|
|
4
|
+
start: number;
|
|
5
|
+
end: number;
|
|
6
|
+
startToken: Token;
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export interface Token {
|
|
10
|
+
kind: string;
|
|
11
|
+
start: number;
|
|
12
|
+
end: number;
|
|
13
|
+
line: number;
|
|
14
|
+
column: number;
|
|
15
|
+
value: string;
|
|
16
|
+
prev: Token | null;
|
|
17
|
+
next: Token | null;
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
}
|
|
20
|
+
export interface Source {
|
|
21
|
+
body: string;
|
|
22
|
+
name: string;
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
}
|
|
25
|
+
export interface DocumentNode {
|
|
26
|
+
kind: string;
|
|
27
|
+
definitions: ReadonlyArray<DefinitionNode>;
|
|
28
|
+
loc?: Location;
|
|
29
|
+
[key: string]: unknown;
|
|
30
|
+
}
|
|
31
|
+
export interface DefinitionNode {
|
|
32
|
+
kind: string;
|
|
33
|
+
operation?: string;
|
|
34
|
+
name?: {
|
|
35
|
+
kind: string;
|
|
36
|
+
value: string;
|
|
37
|
+
loc?: Location;
|
|
38
|
+
};
|
|
39
|
+
loc?: Location;
|
|
40
|
+
[key: string]: unknown;
|
|
41
|
+
}
|
|
42
|
+
export interface OperationDefinitionNode extends DefinitionNode {
|
|
43
|
+
operation: string;
|
|
44
|
+
name?: {
|
|
45
|
+
kind: string;
|
|
46
|
+
value: string;
|
|
47
|
+
loc?: Location;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export interface ParseOptions {
|
|
51
|
+
noLocation?: boolean;
|
|
52
|
+
[key: string]: unknown;
|
|
53
|
+
}
|
|
54
|
+
export interface ExecutionArgs {
|
|
55
|
+
schema: GraphQLSchema;
|
|
56
|
+
document: DocumentNode;
|
|
57
|
+
rootValue?: unknown;
|
|
58
|
+
contextValue?: unknown;
|
|
59
|
+
variableValues?: Maybe<Record<string, unknown>>;
|
|
60
|
+
operationName?: Maybe<string>;
|
|
61
|
+
fieldResolver?: Maybe<GraphQLFieldResolver>;
|
|
62
|
+
typeResolver?: Maybe<GraphQLTypeResolver>;
|
|
63
|
+
[key: string]: unknown;
|
|
64
|
+
}
|
|
65
|
+
export interface ExecutionResult {
|
|
66
|
+
errors?: ReadonlyArray<GraphQLError>;
|
|
67
|
+
data?: Record<string, unknown> | null;
|
|
68
|
+
[key: string]: unknown;
|
|
69
|
+
}
|
|
70
|
+
export interface GraphQLError {
|
|
71
|
+
message: string;
|
|
72
|
+
[key: string]: unknown;
|
|
73
|
+
}
|
|
74
|
+
export interface GraphQLSchema {
|
|
75
|
+
getQueryType(): GraphQLObjectType | undefined | null;
|
|
76
|
+
getMutationType(): GraphQLObjectType | undefined | null;
|
|
77
|
+
[key: string]: unknown;
|
|
78
|
+
}
|
|
79
|
+
export interface GraphQLObjectType {
|
|
80
|
+
name: string;
|
|
81
|
+
getFields(): Record<string, GraphQLField | undefined>;
|
|
82
|
+
[key: string]: unknown;
|
|
83
|
+
}
|
|
84
|
+
export interface GraphQLField {
|
|
85
|
+
name: string;
|
|
86
|
+
type: GraphQLOutputType;
|
|
87
|
+
resolve?: GraphQLFieldResolver;
|
|
88
|
+
[key: string]: unknown;
|
|
89
|
+
}
|
|
90
|
+
export type GraphQLOutputType = GraphQLNamedOutputType | GraphQLWrappingType;
|
|
91
|
+
interface GraphQLNamedOutputType {
|
|
92
|
+
name?: string;
|
|
93
|
+
[key: string]: unknown;
|
|
94
|
+
}
|
|
95
|
+
interface GraphQLWrappingType {
|
|
96
|
+
ofType: GraphQLOutputType;
|
|
97
|
+
[key: string]: unknown;
|
|
98
|
+
}
|
|
99
|
+
export interface GraphQLUnionType {
|
|
100
|
+
name: string;
|
|
101
|
+
getTypes(): ReadonlyArray<GraphQLObjectType>;
|
|
102
|
+
[key: string]: unknown;
|
|
103
|
+
}
|
|
104
|
+
export type GraphQLType = GraphQLOutputType | GraphQLUnionType;
|
|
105
|
+
export type GraphQLFieldResolver<TSource = unknown, TContext = unknown, TArgs = unknown> = (source: TSource, args: TArgs, context: TContext, info: GraphQLResolveInfo) => unknown;
|
|
106
|
+
export type GraphQLTypeResolver<TSource = unknown, TContext = unknown> = (value: TSource, context: TContext, info: GraphQLResolveInfo, abstractType: unknown) => unknown;
|
|
107
|
+
export interface GraphQLResolveInfo {
|
|
108
|
+
fieldName: string;
|
|
109
|
+
fieldNodes: ReadonlyArray<{
|
|
110
|
+
kind: string;
|
|
111
|
+
loc?: Location;
|
|
112
|
+
[key: string]: unknown;
|
|
113
|
+
}>;
|
|
114
|
+
returnType: {
|
|
115
|
+
toString(): string;
|
|
116
|
+
[key: string]: unknown;
|
|
117
|
+
};
|
|
118
|
+
parentType: {
|
|
119
|
+
name: string;
|
|
120
|
+
[key: string]: unknown;
|
|
121
|
+
};
|
|
122
|
+
path: GraphQLPath;
|
|
123
|
+
[key: string]: unknown;
|
|
124
|
+
}
|
|
125
|
+
export interface GraphQLPath {
|
|
126
|
+
prev: GraphQLPath | undefined;
|
|
127
|
+
key: string | number;
|
|
128
|
+
typename?: string | undefined;
|
|
129
|
+
}
|
|
130
|
+
export type ValidationRule = unknown;
|
|
131
|
+
export interface TypeInfo {
|
|
132
|
+
[key: string]: unknown;
|
|
133
|
+
}
|
|
134
|
+
export {};
|
|
135
|
+
//# sourceMappingURL=graphql-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphql-types.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/graphql/graphql-types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { GraphqlDiagnosticChannelsOptions } from '../../../graphql/graphql-dc-subscriber';
|
|
2
|
+
/**
|
|
3
|
+
* EXPERIMENTAL — orchestrion-driven graphql integration for graphql v14–16 (v17 publishes native
|
|
4
|
+
* `diagnostics_channel` events handled by `@sentry/server-utils`'s graphql integration instead).
|
|
5
|
+
*
|
|
6
|
+
* Subscribes to the `orchestrion:graphql:{parse,validate,execute}` channels the orchestrion code
|
|
7
|
+
* transform injects into `graphql`'s `language/parser.js`, `validation/validate.js` and
|
|
8
|
+
* `execution/execute.js`, emitting spans identical to the native path. Requires the orchestrion
|
|
9
|
+
* runtime hook or bundler plugin — wire it up via `experimentalUseDiagnosticsChannelInjection()`.
|
|
10
|
+
*
|
|
11
|
+
* @experimental
|
|
12
|
+
*/
|
|
13
|
+
export declare const graphqlChannelIntegration: (options?: GraphqlDiagnosticChannelsOptions | undefined) => import("@sentry/core").Integration & {
|
|
14
|
+
name: "Graphql";
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The complete graphql diagnostics-channel integration: the native subscriber (graphql v17) composed
|
|
18
|
+
* with the orchestrion subscriber (v14–16), so opting into injection instruments every supported
|
|
19
|
+
* version via diagnostics channels without the OTel patcher. Reuses the OTel `Graphql` name so
|
|
20
|
+
* enabling injection swaps this in for it.
|
|
21
|
+
*/
|
|
22
|
+
export declare const graphqlDiagnosticsChannelIntegration: (options?: GraphqlDiagnosticChannelsOptions) => Omit<import("@sentry/core").Integration & {
|
|
23
|
+
name: "Graphql";
|
|
24
|
+
}, "name" | "setupOnce"> & {
|
|
25
|
+
name: "Graphql";
|
|
26
|
+
setupOnce: () => void | undefined;
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/graphql/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AA8E/F;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB;;CAAgD,CAAC;AAEvF;;;;;GAKG;AACH,eAAO,MAAM,oCAAoC,GAAI,UAAU,gCAAgC;;;;;CAM9F,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DefinitionNode, DocumentNode, GraphQLFieldResolver, GraphQLObjectType, GraphqlResolvedConfig, Maybe, Patched } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Walks the query/mutation type tree and swaps each field's `resolve` for a span-creating proxy.
|
|
4
|
+
* Idempotent per type via {@link GRAPHQL_PATCHED_SYMBOL}.
|
|
5
|
+
*/
|
|
6
|
+
export declare function wrapFields(type: Maybe<GraphQLObjectType & Patched>, getConfig: () => GraphqlResolvedConfig): void;
|
|
7
|
+
export declare function wrapFieldResolver(getConfig: () => GraphqlResolvedConfig, fieldResolver: Maybe<GraphQLFieldResolver & Patched>, isDefaultResolver?: boolean): GraphQLFieldResolver & Patched;
|
|
8
|
+
/**
|
|
9
|
+
* Returns the operation definition for `operationName` (or the first operation) from a parsed
|
|
10
|
+
* document, or `undefined` for schema documents / when no operation is present.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getOperation(document: DocumentNode, operationName?: Maybe<string>): DefinitionNode | undefined;
|
|
13
|
+
//# sourceMappingURL=resolvers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/graphql/resolvers.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EAMjB,qBAAqB,EACrB,KAAK,EAEL,OAAO,EACR,MAAM,SAAS,CAAC;AAMjB;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,iBAAiB,GAAG,OAAO,CAAC,EAAE,SAAS,EAAE,MAAM,qBAAqB,GAAG,IAAI,CAwBjH;AAED,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,MAAM,qBAAqB,EACtC,aAAa,EAAE,KAAK,CAAC,oBAAoB,GAAG,OAAO,CAAC,EACpD,iBAAiB,UAAQ,GACxB,oBAAoB,GAAG,OAAO,CAqEhC;AA6FD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,YAAY,EAAE,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,cAAc,GAAG,SAAS,CAa9G"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Span } from '@sentry/core';
|
|
2
|
+
import type { GraphqlResolvedConfig } from './types';
|
|
3
|
+
export declare function startParseSpan(): Span;
|
|
4
|
+
/** `documentAST` is the 2nd argument to `validate(schema, documentAST, …)`. */
|
|
5
|
+
export declare function startValidateSpan(documentAST: unknown): Span;
|
|
6
|
+
/** `result` is validation's return value: a (possibly empty) array of errors. */
|
|
7
|
+
export declare function finalizeValidateSpan(span: Span, result: unknown): void;
|
|
8
|
+
/**
|
|
9
|
+
* Opens the execute span and, unless resolver spans are disabled, swaps the schema's field resolvers
|
|
10
|
+
* (and the default field resolver) for span-creating proxies — mutating the live `arguments` in place
|
|
11
|
+
* so the wrapped `execute` call runs with them. Always returns a span; the caller guards against
|
|
12
|
+
* throws (see `safe` in `index.ts`).
|
|
13
|
+
*/
|
|
14
|
+
export declare function startExecuteSpan(argsArray: unknown[], self: unknown, config: GraphqlResolvedConfig, getConfig: () => GraphqlResolvedConfig): Span;
|
|
15
|
+
/** `result` is the settled `ExecutionResult`; GraphQL errors surface on `result.errors`, not a throw. */
|
|
16
|
+
export declare function finalizeExecuteSpan(span: Span, result: unknown): void;
|
|
17
|
+
//# sourceMappingURL=spans.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spans.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/graphql/spans.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAgBzC,OAAO,KAAK,EAIV,qBAAqB,EAGtB,MAAM,SAAS,CAAC;AAOjB,wBAAgB,cAAc,IAAI,IAAI,CAErC;AAED,+EAA+E;AAC/E,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAK5D;AAED,iFAAiF;AACjF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAItE;AA6DD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,OAAO,EAAE,EACpB,IAAI,EAAE,OAAO,EACb,MAAM,EAAE,qBAAqB,EAC7B,SAAS,EAAE,MAAM,qBAAqB,GACrC,IAAI,CAgDN;AAED,yGAAyG;AACzG,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAIrE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Span } from '@sentry/core';
|
|
2
|
+
import type { GRAPHQL_DATA_SYMBOL, GRAPHQL_PATCHED_SYMBOL } from './constants';
|
|
3
|
+
import type { DocumentNode } from './graphql-types';
|
|
4
|
+
export type * from './graphql-types';
|
|
5
|
+
/** Bookkeeping we attach to `contextValue` to parent resolver spans under the execute span. */
|
|
6
|
+
interface GraphQLSpanData {
|
|
7
|
+
source?: DocumentNode;
|
|
8
|
+
span: Span;
|
|
9
|
+
fields: Record<string, {
|
|
10
|
+
span: Span;
|
|
11
|
+
} | undefined>;
|
|
12
|
+
}
|
|
13
|
+
export interface ObjectWithGraphQLData {
|
|
14
|
+
[GRAPHQL_DATA_SYMBOL]?: GraphQLSpanData;
|
|
15
|
+
}
|
|
16
|
+
export interface Patched {
|
|
17
|
+
[GRAPHQL_PATCHED_SYMBOL]?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/** Resolved integration config (defaults applied), shared by the span + resolver builders. */
|
|
20
|
+
export interface GraphqlResolvedConfig {
|
|
21
|
+
ignoreResolveSpans: boolean;
|
|
22
|
+
ignoreTrivialResolveSpans: boolean;
|
|
23
|
+
useOperationNameForRootSpan: boolean;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/graphql/types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,mBAAmB,iBAAiB,CAAC;AAErC,+FAA+F;AAC/F,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE,GAAG,SAAS,CAAC,CAAC;CACpD;AAED,MAAM,WAAW,qBAAqB;IACpC,CAAC,mBAAmB,CAAC,CAAC,EAAE,eAAe,CAAC;CACzC;AAED,MAAM,WAAW,OAAO;IACtB,CAAC,sBAAsB,CAAC,CAAC,EAAE,OAAO,CAAC;CACpC;AAED,8FAA8F;AAC9F,MAAM,WAAW,qBAAqB;IACpC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,yBAAyB,EAAE,OAAO,CAAC;IACnC,2BAA2B,EAAE,OAAO,CAAC;CACtC"}
|
|
@@ -4,6 +4,25 @@ export type IORedisResponseHook = (span: Span, command: string, args: Array<stri
|
|
|
4
4
|
export interface IORedisChannelIntegrationOptions {
|
|
5
5
|
responseHook?: IORedisResponseHook;
|
|
6
6
|
}
|
|
7
|
+
interface RedisClientLike {
|
|
8
|
+
options?: {
|
|
9
|
+
host?: string;
|
|
10
|
+
port?: number;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
interface IORedisCommandContext {
|
|
14
|
+
arguments?: unknown[];
|
|
15
|
+
self?: RedisClientLike;
|
|
16
|
+
result?: unknown;
|
|
17
|
+
error?: unknown;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Builds the db span for an `orchestrion:ioredis:command` payload, or returns `undefined` to skip
|
|
21
|
+
* it: for a non-command payload, or the offline-queue re-send of an already-traced command.
|
|
22
|
+
*
|
|
23
|
+
* Exported for unit testing.
|
|
24
|
+
*/
|
|
25
|
+
export declare function startIORedisCommandSpan(data: IORedisCommandContext): Span | undefined;
|
|
7
26
|
/**
|
|
8
27
|
* EXPERIMENTAL — orchestrion-driven ioredis integration. Subscribes to
|
|
9
28
|
* `orchestrion:ioredis:command` / `:connect` (injected into ioredis' `<5.11.0`
|
|
@@ -14,4 +33,5 @@ export interface IORedisChannelIntegrationOptions {
|
|
|
14
33
|
export declare const ioredisChannelIntegration: (options?: IORedisChannelIntegrationOptions | undefined) => import("@sentry/core").Integration & {
|
|
15
34
|
name: "IORedis";
|
|
16
35
|
};
|
|
36
|
+
export {};
|
|
17
37
|
//# sourceMappingURL=ioredis.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ioredis.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing-channel/ioredis.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAiB,IAAI,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"ioredis.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing-channel/ioredis.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAiB,IAAI,EAAE,MAAM,cAAc,CAAC;AAuBxD,uGAAuG;AACvG,MAAM,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;AAEvH,MAAM,WAAW,gCAAgC;IAC/C,YAAY,CAAC,EAAE,mBAAmB,CAAC;CACpC;AAQD,UAAU,eAAe;IACvB,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5C;AAED,UAAU,qBAAqB;IAC7B,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;IACtB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAuBD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,qBAAqB,GAAG,IAAI,GAAG,SAAS,CAiBrF;AAkED;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB;;CAAgD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EachBatchHandler, EachMessageHandler } from './types';
|
|
2
|
+
/** Whether `fn` is a callback this module already wrapped, so callers skip re-wrapping it. */
|
|
3
|
+
export declare function isWrappedConsumerCallback(fn: unknown): boolean;
|
|
4
|
+
/** Wraps `eachMessage` so each processed message becomes a consumer span parented to the message's producer. */
|
|
5
|
+
export declare function wrapEachMessage(original: EachMessageHandler): EachMessageHandler;
|
|
6
|
+
/** Wraps `eachBatch` so the batch pull becomes a fresh-root receiving span with a process span per message. */
|
|
7
|
+
export declare function wrapEachBatch(original: EachBatchHandler): EachBatchHandler;
|
|
8
|
+
//# sourceMappingURL=consumer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumer.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/kafkajs/consumer.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAgB,MAAM,SAAS,CAAC;AASlF,8FAA8F;AAC9F,wBAAgB,yBAAyB,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,CAE9D;AAED,gHAAgH;AAChH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,kBAAkB,GAAG,kBAAkB,CAsBhF;AAED,+GAA+G;AAC/G,wBAAgB,aAAa,CAAC,QAAQ,EAAE,gBAAgB,GAAG,gBAAgB,CAsC1E"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EXPERIMENTAL — orchestrion-driven kafkajs integration.
|
|
3
|
+
*
|
|
4
|
+
* Subscribes to the `orchestrion:kafkajs:*` diagnostics_channels that the orchestrion code transform
|
|
5
|
+
* injects into `kafkajs`'s `producer/messageProducer.js` (`sendBatch`) and `consumer/index.js` (`run`).
|
|
6
|
+
* Requires the orchestrion runtime hook or bundler plugin to be active — wire that up via
|
|
7
|
+
* `experimentalUseDiagnosticsChannelInjection`.
|
|
8
|
+
*
|
|
9
|
+
* Known limitation vs. the OTel integration it replaces: the wrapping producer-`transaction` span is
|
|
10
|
+
* not emitted (the transformer can't replace `transaction()`'s return value to patch commit/abort).
|
|
11
|
+
* Transactional `send`/`sendBatch` calls still produce producer spans, since they route through the
|
|
12
|
+
* same instrumented `sendBatch`.
|
|
13
|
+
*/
|
|
14
|
+
export declare const kafkajsChannelIntegration: () => import("@sentry/core").Integration & {
|
|
15
|
+
name: "Kafka";
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/kafkajs/index.ts"],"names":[],"mappings":"AAmGA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,yBAAyB;;CAAgD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const ATTR_MESSAGING_DESTINATION_PARTITION_ID: "messaging.destination.partition.id";
|
|
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";
|
|
5
|
+
export declare const MESSAGING_OPERATION_TYPE_VALUE_PROCESS: "process";
|
|
6
|
+
export declare const MESSAGING_OPERATION_TYPE_VALUE_RECEIVE: "receive";
|
|
7
|
+
export declare const MESSAGING_OPERATION_TYPE_VALUE_SEND: "send";
|
|
8
|
+
export declare const MESSAGING_SYSTEM_VALUE_KAFKA: "kafka";
|
|
9
|
+
export declare const ERROR_TYPE_VALUE_OTHER: "_OTHER";
|
|
10
|
+
//# sourceMappingURL=semconv.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semconv.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/kafkajs/semconv.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,uCAAuC,EAAG,oCAA6C,CAAC;AACrG,eAAO,MAAM,gCAAgC,EAAG,6BAAsC,CAAC;AACvF,eAAO,MAAM,sCAAsC,EAAG,mCAA4C,CAAC;AACnG,eAAO,MAAM,2BAA2B,EAAG,wBAAiC,CAAC;AAC7E,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"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Span, SpanAttributes, SpanLink } from '@sentry/core';
|
|
2
|
+
import type { KafkaMessage, Message } from './types';
|
|
3
|
+
interface ConsumerSpanOptions {
|
|
4
|
+
topic: string;
|
|
5
|
+
message: KafkaMessage | undefined;
|
|
6
|
+
operationType: string;
|
|
7
|
+
attributes: SpanAttributes;
|
|
8
|
+
links?: SpanLink[];
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Reads a header value off a kafkajs message as a string. kafkajs delivers headers as `Buffer`s (or
|
|
12
|
+
* arrays of them), so we normalize to a string before handing them to Sentry's trace helpers.
|
|
13
|
+
*/
|
|
14
|
+
export declare function getHeaderAsString(headers: KafkaMessage['headers'], key: string): string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Builds a span link to the producer span carried in the message headers, mirroring the upstream
|
|
17
|
+
* behavior of linking each batch-processed message to its originating producer span.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getLinksFromHeaders(headers: KafkaMessage['headers']): SpanLink[] | undefined;
|
|
20
|
+
/** Starts an inactive consumer (process/receive) span carrying the kafkajs messaging attributes. */
|
|
21
|
+
export declare function startConsumerSpan({ topic, message, operationType, links, attributes }: ConsumerSpanOptions): Span;
|
|
22
|
+
/** Starts an inactive producer span and propagates its trace into the message headers. */
|
|
23
|
+
export declare function startProducerSpan(topic: string, message: Message): Span;
|
|
24
|
+
/**
|
|
25
|
+
* Marks all `spans` with the error status and `error.type` derived from a settle-time `reason`,
|
|
26
|
+
* WITHOUT ending them. Mirrors the vendored `endSpansOnPromise` catch block. The producer path (which
|
|
27
|
+
* receives discrete `error`/`asyncEnd` channel events) applies the error on `error` and ends on
|
|
28
|
+
* `asyncEnd`; the consumer path folds this into `endSpansOnPromise`.
|
|
29
|
+
*/
|
|
30
|
+
export declare function applyErrorToSpans(spans: Span[], reason: unknown): void;
|
|
31
|
+
/**
|
|
32
|
+
* Resolves once `promise` settles, applying the error status to all `spans` on failure and ending
|
|
33
|
+
* them regardless. Used by the consumer path, which invokes the user callback directly (and so holds a
|
|
34
|
+
* real promise). Verbatim from the vendored `endSpansOnPromise`.
|
|
35
|
+
*/
|
|
36
|
+
export declare function endSpansOnPromise<T>(spans: Span[], promise: Promise<T>): Promise<T>;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=spans.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spans.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/kafkajs/spans.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AASnE,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAmBrD,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,YAAY,GAAG,SAAS,CAAC;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,cAAc,CAAC;IAC3B,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAMnG;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG,QAAQ,EAAE,GAAG,SAAS,CAwB5F;AAED,oGAAoG;AACpG,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,mBAAmB,GAAG,IAAI,CAwBjH;AAED,0FAA0F;AAC1F,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CA6BvE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CActE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CASnF"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface Message {
|
|
2
|
+
key?: Buffer | string | null;
|
|
3
|
+
value: Buffer | string | null;
|
|
4
|
+
partition?: number;
|
|
5
|
+
headers?: Record<string, Buffer | string | (Buffer | string)[] | undefined>;
|
|
6
|
+
timestamp?: string;
|
|
7
|
+
}
|
|
8
|
+
export type KafkaMessage = {
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
} & Message;
|
|
11
|
+
/** A single `{ topic, messages }` entry of a `sendBatch({ topicMessages })` call. */
|
|
12
|
+
export interface TopicMessages {
|
|
13
|
+
topic: string;
|
|
14
|
+
messages: Message[];
|
|
15
|
+
}
|
|
16
|
+
/** The `sendBatch`/`send` argument shape after kafkajs normalizes `send` into `sendBatch`. */
|
|
17
|
+
export interface ProducerBatch {
|
|
18
|
+
topicMessages?: TopicMessages[];
|
|
19
|
+
}
|
|
20
|
+
export interface EachMessagePayload {
|
|
21
|
+
topic: string;
|
|
22
|
+
partition: number;
|
|
23
|
+
message: KafkaMessage;
|
|
24
|
+
}
|
|
25
|
+
export interface Batch {
|
|
26
|
+
topic: string;
|
|
27
|
+
partition: number;
|
|
28
|
+
messages: KafkaMessage[];
|
|
29
|
+
}
|
|
30
|
+
export interface EachBatchPayload {
|
|
31
|
+
batch: Batch;
|
|
32
|
+
}
|
|
33
|
+
export type EachMessageHandler = (payload: EachMessagePayload) => Promise<void>;
|
|
34
|
+
export type EachBatchHandler = (payload: EachBatchPayload) => Promise<void>;
|
|
35
|
+
/** The `consumer.run(config)` argument shape; only the two callbacks are read/swapped. */
|
|
36
|
+
export interface ConsumerRunConfig {
|
|
37
|
+
eachMessage?: EachMessageHandler | null;
|
|
38
|
+
eachBatch?: EachBatchHandler | null;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/kafkajs/types.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,OAAO;IACtB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC7B,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,YAAY,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC;AAEhE,qFAAqF;AACrF,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB;AAED,8FAA8F;AAC9F,MAAM,WAAW,aAAa;IAC5B,aAAa,CAAC,EAAE,aAAa,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,YAAY,CAAC;CACvB;AAED,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,YAAY,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC;CACd;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,EAAE,kBAAkB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAChF,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAE5E,0FAA0F;AAC1F,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACrC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EXPERIMENTAL - orchestrion-driven knex integration.
|
|
3
|
+
*
|
|
4
|
+
* Subscribes to the `orchestrion:knex:*` diagnostics_channels that the orchestrion code transform
|
|
5
|
+
* injects into knex's `Runner.query` (span) and `Client.queryBuilder`/`schemaBuilder`/`raw` (parent-span
|
|
6
|
+
* bookkeeping). Requires the orchestrion runtime hook or bundler plugin to be active.
|
|
7
|
+
*/
|
|
8
|
+
export declare const knexChannelIntegration: () => import("@sentry/core").Integration & {
|
|
9
|
+
name: "Knex";
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=knex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knex.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing-channel/knex.ts"],"names":[],"mappings":"AAkTA;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;;CAA6C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing-channel/mysql.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing-channel/mysql.ts"],"names":[],"mappings":"AA0KA;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB;;CAA8C,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Orchestrion-driven mysql2 integration.
|
|
3
|
+
*
|
|
4
|
+
* Adds Sentry tracing instrumentation for the [mysql2](https://www.npmjs.com/package/mysql2) library
|
|
5
|
+
* via diagnostics-channel injection. See {@link instrumentMysql2} for how the two mysql2 version
|
|
6
|
+
* ranges are covered.
|
|
7
|
+
*
|
|
8
|
+
* Known limitation vs. the OTel integration it replaces: the callback-less streaming form
|
|
9
|
+
* (`connection.query(sql).on('result', ...)`) is not traced — see the `mysql2` orchestrion config for
|
|
10
|
+
* why. The callback and promise forms (the common case) are fully instrumented.
|
|
11
|
+
*/
|
|
12
|
+
export declare const mysql2ChannelIntegration: () => import("@sentry/core").Integration & {
|
|
13
|
+
name: "Mysql2";
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=mysql2.d.ts.map
|