@sentry/server-utils 10.63.0 → 10.65.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 +125 -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 +86 -0
- package/build/cjs/graphql/utils.js.map +1 -0
- package/build/cjs/index.js +12 -9
- 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/anthropic.js +101 -0
- package/build/cjs/integrations/tracing-channel/anthropic.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/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/hapi-types.js +30 -0
- package/build/cjs/integrations/tracing-channel/hapi-types.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/hapi-utils.js +177 -0
- package/build/cjs/integrations/tracing-channel/hapi-utils.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/hapi.js +52 -0
- package/build/cjs/integrations/tracing-channel/hapi.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/ioredis.js +96 -0
- package/build/cjs/integrations/tracing-channel/ioredis.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/mysql.js +2 -1
- package/build/cjs/integrations/tracing-channel/mysql.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/openai.js +83 -0
- package/build/cjs/integrations/tracing-channel/openai.js.map +1 -0
- 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 +170 -0
- package/build/cjs/integrations/tracing-channel/postgres.js.map +1 -0
- 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 +25 -0
- package/build/cjs/integrations/tracing-channel/vercel-ai.js.map +1 -0
- package/build/cjs/mongoose/index.js +23 -0
- package/build/cjs/mongoose/index.js.map +1 -0
- package/build/cjs/mongoose/mongoose-dc-subscriber.js +97 -0
- package/build/cjs/mongoose/mongoose-dc-subscriber.js.map +1 -0
- 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/vite.js +3 -3
- package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
- package/build/cjs/orchestrion/channels.js +29 -2
- 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/anthropic-ai.js +43 -0
- package/build/cjs/orchestrion/config/anthropic-ai.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/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/hapi.js +26 -0
- package/build/cjs/orchestrion/config/hapi.js.map +1 -0
- package/build/cjs/orchestrion/config/index.js +48 -0
- package/build/cjs/orchestrion/config/index.js.map +1 -0
- package/build/cjs/orchestrion/config/ioredis.js +35 -0
- package/build/cjs/orchestrion/config/ioredis.js.map +1 -0
- package/build/cjs/orchestrion/config/lru-memoizer.js +17 -0
- package/build/cjs/orchestrion/config/lru-memoizer.js.map +1 -0
- package/build/cjs/orchestrion/config/mysql.js +16 -0
- package/build/cjs/orchestrion/config/mysql.js.map +1 -0
- package/build/cjs/orchestrion/config/openai.js +40 -0
- package/build/cjs/orchestrion/config/openai.js.map +1 -0
- package/build/cjs/orchestrion/config/pg.js +51 -0
- package/build/cjs/orchestrion/config/pg.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/redis.js +76 -0
- package/build/cjs/orchestrion/config/redis.js.map +1 -0
- package/build/cjs/orchestrion/config/vercel-ai.js +48 -0
- package/build/cjs/orchestrion/config/vercel-ai.js.map +1 -0
- package/build/cjs/orchestrion/detect.js +6 -1
- package/build/cjs/orchestrion/detect.js.map +1 -1
- package/build/cjs/orchestrion/index.js +44 -5
- package/build/cjs/orchestrion/index.js.map +1 -1
- package/build/cjs/orchestrion/runtime/register.js +10 -7
- package/build/cjs/orchestrion/runtime/register.js.map +1 -1
- 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/redis/redis-statement-serializer.js +34 -0
- package/build/cjs/redis/redis-statement-serializer.js.map +1 -0
- package/build/cjs/tracing-channel.js +8 -7
- package/build/cjs/tracing-channel.js.map +1 -1
- package/build/cjs/vercel-ai/util.js +123 -0
- package/build/cjs/vercel-ai/util.js.map +1 -0
- package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js +147 -76
- package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js +386 -0
- package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -0
- package/build/esm/graphql/graphql-dc-subscriber.js +118 -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 +81 -0
- package/build/esm/graphql/utils.js.map +1 -0
- package/build/esm/index.js +5 -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 +99 -0
- package/build/esm/integrations/tracing-channel/anthropic.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/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/hapi-types.js +25 -0
- package/build/esm/integrations/tracing-channel/hapi-types.js.map +1 -0
- package/build/esm/integrations/tracing-channel/hapi-utils.js +172 -0
- package/build/esm/integrations/tracing-channel/hapi-utils.js.map +1 -0
- package/build/esm/integrations/tracing-channel/hapi.js +50 -0
- package/build/esm/integrations/tracing-channel/hapi.js.map +1 -0
- package/build/esm/integrations/tracing-channel/ioredis.js +94 -0
- package/build/esm/integrations/tracing-channel/ioredis.js.map +1 -0
- package/build/esm/integrations/tracing-channel/mysql.js +3 -2
- package/build/esm/integrations/tracing-channel/mysql.js.map +1 -1
- package/build/esm/integrations/tracing-channel/openai.js +81 -0
- package/build/esm/integrations/tracing-channel/openai.js.map +1 -0
- 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 +168 -0
- package/build/esm/integrations/tracing-channel/postgres.js.map +1 -0
- 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 +23 -0
- package/build/esm/integrations/tracing-channel/vercel-ai.js.map +1 -0
- package/build/esm/mongoose/index.js +21 -0
- package/build/esm/mongoose/index.js.map +1 -0
- package/build/esm/mongoose/mongoose-dc-subscriber.js +89 -0
- package/build/esm/mongoose/mongoose-dc-subscriber.js.map +1 -0
- 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/vite.js +1 -1
- package/build/esm/orchestrion/channels.js +29 -2
- 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/anthropic-ai.js +40 -0
- package/build/esm/orchestrion/config/anthropic-ai.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/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/hapi.js +23 -0
- package/build/esm/orchestrion/config/hapi.js.map +1 -0
- package/build/esm/orchestrion/config/index.js +44 -0
- package/build/esm/orchestrion/config/index.js.map +1 -0
- package/build/esm/orchestrion/config/ioredis.js +32 -0
- package/build/esm/orchestrion/config/ioredis.js.map +1 -0
- package/build/esm/orchestrion/config/lru-memoizer.js +14 -0
- package/build/esm/orchestrion/config/lru-memoizer.js.map +1 -0
- package/build/esm/orchestrion/config/mysql.js +13 -0
- package/build/esm/orchestrion/config/mysql.js.map +1 -0
- package/build/esm/orchestrion/config/openai.js +37 -0
- package/build/esm/orchestrion/config/openai.js.map +1 -0
- package/build/esm/orchestrion/config/pg.js +48 -0
- package/build/esm/orchestrion/config/pg.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/redis.js +73 -0
- package/build/esm/orchestrion/config/redis.js.map +1 -0
- package/build/esm/orchestrion/config/vercel-ai.js +45 -0
- package/build/esm/orchestrion/config/vercel-ai.js.map +1 -0
- package/build/esm/orchestrion/detect.js +6 -2
- package/build/esm/orchestrion/detect.js.map +1 -1
- package/build/esm/orchestrion/index.js +33 -3
- package/build/esm/orchestrion/index.js.map +1 -1
- package/build/esm/orchestrion/runtime/register.js +8 -4
- package/build/esm/orchestrion/runtime/register.js.map +1 -1
- package/build/esm/package.json +1 -1
- 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/redis/redis-statement-serializer.js +32 -0
- package/build/esm/redis/redis-statement-serializer.js.map +1 -0
- package/build/esm/tracing-channel.js +9 -8
- package/build/esm/tracing-channel.js.map +1 -1
- package/build/esm/vercel-ai/util.js +116 -0
- package/build/esm/vercel-ai/util.js.map +1 -0
- package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js +122 -54
- package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js +384 -0
- 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 +40 -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/anthropic.d.ts +10 -0
- package/build/types/integrations/tracing-channel/anthropic.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/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/hapi-types.d.ts +53 -0
- package/build/types/integrations/tracing-channel/hapi-types.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/hapi-utils.d.ts +25 -0
- package/build/types/integrations/tracing-channel/hapi-utils.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/hapi.d.ts +9 -0
- package/build/types/integrations/tracing-channel/hapi.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/ioredis.d.ts +17 -0
- package/build/types/integrations/tracing-channel/ioredis.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/mysql.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/openai.d.ts +10 -0
- package/build/types/integrations/tracing-channel/openai.d.ts.map +1 -0
- 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 +15 -0
- package/build/types/integrations/tracing-channel/postgres.d.ts.map +1 -0
- 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 +13 -0
- package/build/types/integrations/tracing-channel/vercel-ai.d.ts.map +1 -0
- package/build/types/mongoose/index.d.ts +11 -0
- package/build/types/mongoose/index.d.ts.map +1 -0
- package/build/types/mongoose/mongoose-dc-subscriber.d.ts +63 -0
- package/build/types/mongoose/mongoose-dc-subscriber.d.ts.map +1 -0
- 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/channels.d.ts +55 -1
- 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/anthropic-ai.d.ts +31 -0
- package/build/types/orchestrion/config/anthropic-ai.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/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/hapi.d.ts +17 -0
- package/build/types/orchestrion/config/hapi.d.ts.map +1 -0
- package/build/types/orchestrion/{config.d.ts → config/index.d.ts} +1 -12
- package/build/types/orchestrion/config/index.d.ts.map +1 -0
- package/build/types/orchestrion/config/ioredis.d.ts +7 -0
- package/build/types/orchestrion/config/ioredis.d.ts.map +1 -0
- package/build/types/orchestrion/config/lru-memoizer.d.ts +16 -0
- package/build/types/orchestrion/config/lru-memoizer.d.ts.map +1 -0
- package/build/types/orchestrion/config/mysql.d.ts +16 -0
- package/build/types/orchestrion/config/mysql.d.ts.map +1 -0
- package/build/types/orchestrion/config/openai.d.ts +20 -0
- package/build/types/orchestrion/config/openai.d.ts.map +1 -0
- package/build/types/orchestrion/config/pg.d.ts +33 -0
- package/build/types/orchestrion/config/pg.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/redis.d.ts +37 -0
- package/build/types/orchestrion/config/redis.d.ts.map +1 -0
- package/build/types/orchestrion/config/vercel-ai.d.ts +12 -0
- package/build/types/orchestrion/config/vercel-ai.d.ts.map +1 -0
- package/build/types/orchestrion/detect.d.ts +10 -0
- package/build/types/orchestrion/detect.d.ts.map +1 -1
- package/build/types/orchestrion/index.d.ts +80 -3
- package/build/types/orchestrion/index.d.ts.map +1 -1
- package/build/types/orchestrion/runtime/register.d.ts.map +1 -1
- 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/redis/redis-statement-serializer.d.ts +6 -0
- package/build/types/redis/redis-statement-serializer.d.ts.map +1 -0
- 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 +32 -0
- package/build/types/vercel-ai/util.d.ts.map +1 -0
- package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts +15 -5
- package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
- package/build/types/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts +12 -0
- 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 +40 -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/anthropic.d.ts +10 -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/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/hapi-types.d.ts +65 -0
- package/build/types-ts3.8/integrations/tracing-channel/hapi-utils.d.ts +25 -0
- package/build/types-ts3.8/integrations/tracing-channel/hapi.d.ts +9 -0
- package/build/types-ts3.8/integrations/tracing-channel/ioredis.d.ts +17 -0
- package/build/types-ts3.8/integrations/tracing-channel/openai.d.ts +10 -0
- package/build/types-ts3.8/integrations/tracing-channel/postgres-js.d.ts +26 -0
- package/build/types-ts3.8/integrations/tracing-channel/postgres.d.ts +15 -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 +13 -0
- package/build/types-ts3.8/mongoose/index.d.ts +11 -0
- package/build/types-ts3.8/mongoose/mongoose-dc-subscriber.d.ts +63 -0
- 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/channels.d.ts +55 -1
- package/build/types-ts3.8/orchestrion/config/amqplib.d.ts +66 -0
- package/build/types-ts3.8/orchestrion/config/anthropic-ai.d.ts +31 -0
- package/build/types-ts3.8/orchestrion/config/express.d.ts +32 -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/hapi.d.ts +17 -0
- package/build/types-ts3.8/orchestrion/{config.d.ts → config/index.d.ts} +1 -12
- package/build/types-ts3.8/orchestrion/config/ioredis.d.ts +7 -0
- package/build/types-ts3.8/orchestrion/config/lru-memoizer.d.ts +16 -0
- package/build/types-ts3.8/orchestrion/config/mysql.d.ts +16 -0
- package/build/types-ts3.8/orchestrion/config/openai.d.ts +20 -0
- package/build/types-ts3.8/orchestrion/config/pg.d.ts +33 -0
- package/build/types-ts3.8/orchestrion/config/postgres.d.ts +9 -0
- package/build/types-ts3.8/orchestrion/config/redis.d.ts +37 -0
- package/build/types-ts3.8/orchestrion/config/vercel-ai.d.ts +12 -0
- package/build/types-ts3.8/orchestrion/detect.d.ts +10 -0
- package/build/types-ts3.8/orchestrion/index.d.ts +82 -3
- 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/redis/redis-statement-serializer.d.ts +6 -0
- package/build/types-ts3.8/tracing-channel.d.ts +5 -0
- package/build/types-ts3.8/vercel-ai/util.d.ts +32 -0
- package/build/types-ts3.8/vercel-ai/vercel-ai-dc-subscriber.d.ts +15 -5
- package/build/types-ts3.8/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts +12 -0
- package/package.json +9 -9
- package/build/cjs/orchestrion/config.js +0 -44
- package/build/cjs/orchestrion/config.js.map +0 -1
- package/build/esm/orchestrion/config.js +0 -40
- package/build/esm/orchestrion/config.js.map +0 -1
- package/build/types/orchestrion/config.d.ts.map +0 -1
package/build/types/index.d.ts
CHANGED
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
export {
|
|
7
|
-
export
|
|
6
|
+
export { graphqlIntegration } from './graphql';
|
|
7
|
+
export { mongooseIntegration } from './mongoose';
|
|
8
|
+
export { mysql2Integration } from './mysql2';
|
|
9
|
+
export { redisIntegration, type RedisDiagnosticChannelsOptions } from './redis';
|
|
10
|
+
export type { RedisDiagnosticChannelResponseHook } from './redis/redis-dc-subscriber';
|
|
11
|
+
export { defaultDbStatementSerializer } from './redis/redis-statement-serializer';
|
|
8
12
|
export { bindTracingChannelToSpan } from './tracing-channel';
|
|
9
13
|
export type { SentryTracingChannel, TracingChannelLifeCycleOptions, TracingChannelBindingHandle, TracingChannelPayloadWithSpan, } from './tracing-channel';
|
|
10
14
|
export { vercelAiIntegration } from './vercel-ai';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,KAAK,8BAA8B,EAAE,MAAM,SAAS,CAAC;AAChF,YAAY,EAAE,kCAAkC,EAAE,MAAM,6BAA6B,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,YAAY,EACV,oBAAoB,EACpB,8BAA8B,EAC9B,2BAA2B,EAC3B,6BAA6B,GAC9B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,EACL,kBAAkB,EAElB,kBAAkB,EAElB,iBAAiB,GAClB,MAAM,wCAAwC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EXPERIMENTAL: orchestrion-driven `amqplib` integration.
|
|
3
|
+
*
|
|
4
|
+
* Subscribes to the `orchestrion:amqplib:*` diagnostics_channels that the orchestrion code transform
|
|
5
|
+
* injects into `amqplib`'s channel/connection methods. Requires the orchestrion runtime hook or
|
|
6
|
+
* bundler plugin to be active.
|
|
7
|
+
*/
|
|
8
|
+
export declare const amqplibChannelIntegration: () => import("@sentry/core").Integration & {
|
|
9
|
+
name: "Amqplib";
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=amqplib.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"amqplib.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing-channel/amqplib.ts"],"names":[],"mappings":"AAqoBA;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB;;CAAgD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AnthropicAiOptions } from '@sentry/core';
|
|
2
|
+
/**
|
|
3
|
+
* EXPERIMENTAL — orchestrion-driven Anthropic integration. Subscribes to the `orchestrion:@anthropic-ai/sdk:*`
|
|
4
|
+
* diagnostics_channels injected into the SDK's chat (`messages`/`completions`/beta `messages`), `models`, and
|
|
5
|
+
* `messages.stream()` methods, so it requires the orchestrion runtime hook or bundler plugin.
|
|
6
|
+
*/
|
|
7
|
+
export declare const anthropicChannelIntegration: (options?: AnthropicAiOptions | undefined) => import("@sentry/core").Integration & {
|
|
8
|
+
name: "Anthropic_AI";
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=anthropic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing-channel/anthropic.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAgE,MAAM,cAAc,CAAC;AAgLrH;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;CAAkD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ExpressIntegrationOptions } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* EXPERIMENTAL — orchestrion-driven Express integration.
|
|
4
|
+
*
|
|
5
|
+
* Subscribes to the `orchestrion:express:handle` (Express v4) and
|
|
6
|
+
* `orchestrion:router:handle` (Express v5, via the `router` package)
|
|
7
|
+
* diagnostics_channels that the orchestrion code transform injects into the
|
|
8
|
+
* routing layer's request handler (`Layer.prototype.handle_request` /
|
|
9
|
+
* `handleRequest`). One span is opened per layer invocation — producing the
|
|
10
|
+
* same spans as the OTel Express instrumentation.
|
|
11
|
+
*
|
|
12
|
+
* Requires the orchestrion runtime hook or bundler plugin to be active — wire
|
|
13
|
+
* that up via `experimentalUseDiagnosticsChannelInjection()`.
|
|
14
|
+
*/
|
|
15
|
+
export declare const expressChannelIntegration: (options?: ExpressIntegrationOptions | undefined) => import("@sentry/core").Integration & {
|
|
16
|
+
name: "Express";
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/express/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAuBzD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,yBAAyB;;CAAgD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type * as diagnosticsChannel from 'node:diagnostics_channel';
|
|
2
|
+
import type { ExpressIntegrationOptions } from './types';
|
|
3
|
+
export declare function instrumentExpress(options: ExpressIntegrationOptions, tracingChannel: typeof diagnosticsChannel.tracingChannel): void;
|
|
4
|
+
//# sourceMappingURL=instrumentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing-channel/express/instrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,kBAAkB,MAAM,0BAA0B,CAAC;AA2BpE,OAAO,KAAK,EACV,yBAAyB,EAO1B,MAAM,SAAS,CAAC;AAcjB,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,yBAAyB,EAClC,cAAc,EAAE,OAAO,kBAAkB,CAAC,cAAc,GACvD,IAAI,CAgDN"}
|
|
@@ -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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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,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":"AAOA,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAC/C,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,IAAI,GAAG,SAAS,GAAG,CAAC,CAAC;AAE5C,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,KAAK,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC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Q,IAAI,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAC3D,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IACrD,IAAI,EAAE,WAAW,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,WAAW,GAAG,SAAS,CAAC;IAC9B,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AAED,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC;AAErC,MAAM,WAAW,QAAQ;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
|
|
@@ -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"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
declare const LIFECYCLE_EXT_POINTS: readonly ["onPreAuth", "onCredentials", "onPostAuth", "onPreHandler", "onPostHandler", "onPreResponse", "onRequest"];
|
|
2
|
+
export type ServerRequestExtType = (typeof LIFECYCLE_EXT_POINTS)[number];
|
|
3
|
+
export type LifecycleMethod = (request: unknown, h: unknown, err?: Error) => unknown;
|
|
4
|
+
export interface ServerRouteOptions {
|
|
5
|
+
handler?: LifecycleMethod | unknown;
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export interface ServerRoute {
|
|
9
|
+
path: string;
|
|
10
|
+
method: string;
|
|
11
|
+
handler?: LifecycleMethod | unknown;
|
|
12
|
+
options?: ((server: unknown) => ServerRouteOptions) | ServerRouteOptions;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
export interface ServerExtEventsObject {
|
|
16
|
+
type: string;
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
export interface ServerExtEventsRequestObject {
|
|
20
|
+
type: ServerRequestExtType;
|
|
21
|
+
method: LifecycleMethod;
|
|
22
|
+
[key: string]: unknown;
|
|
23
|
+
}
|
|
24
|
+
export interface ServerExtOptions {
|
|
25
|
+
[key: string]: unknown;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* This symbol is used to mark a Hapi route handler or server extension handler as
|
|
29
|
+
* already patched, since it's possible to use these handlers multiple times
|
|
30
|
+
* i.e. when allowing multiple versions of one plugin, or when registering a plugin
|
|
31
|
+
* multiple times on different servers.
|
|
32
|
+
*/
|
|
33
|
+
export declare const handlerPatched: unique symbol;
|
|
34
|
+
export type PatchableServerRoute = ServerRoute & {
|
|
35
|
+
[handlerPatched]?: boolean;
|
|
36
|
+
};
|
|
37
|
+
export type PatchableExtMethod = LifecycleMethod & {
|
|
38
|
+
[handlerPatched]?: boolean;
|
|
39
|
+
};
|
|
40
|
+
export type ServerExtDirectInput = [ServerRequestExtType, LifecycleMethod, (ServerExtOptions | undefined)?];
|
|
41
|
+
export declare const HapiLayerType: {
|
|
42
|
+
readonly ROUTER: "router";
|
|
43
|
+
readonly PLUGIN: "plugin";
|
|
44
|
+
readonly EXT: "server.ext";
|
|
45
|
+
};
|
|
46
|
+
export declare const HapiLifecycleMethodNames: Set<string>;
|
|
47
|
+
export declare enum AttributeNames {
|
|
48
|
+
HAPI_TYPE = "hapi.type",
|
|
49
|
+
PLUGIN_NAME = "hapi.plugin.name",
|
|
50
|
+
EXT_TYPE = "server.ext.type"
|
|
51
|
+
}
|
|
52
|
+
export {};
|
|
53
|
+
//# sourceMappingURL=hapi-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hapi-types.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing-channel/hapi-types.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,oBAAoB,sHAQhB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzE,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,KAAK,KAAK,OAAO,CAAC;AAErF,MAAM,WAAW,kBAAkB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vB,WAAW,qBAAqB;IAChC,QAAQ,oBAAoB;CAC7B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ServerRequestExtType, ServerRoute } from './hapi-types';
|
|
2
|
+
type SpanAttributes = Record<string, string | undefined>;
|
|
3
|
+
interface SpanMetadata {
|
|
4
|
+
attributes: SpanAttributes;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
/** Build the span name and attributes for a Hapi route. */
|
|
8
|
+
export declare const getRouteMetadata: (route: ServerRoute, pluginName?: string) => SpanMetadata;
|
|
9
|
+
/** Build the span name and attributes for a Hapi server extension. */
|
|
10
|
+
export declare const getExtMetadata: (extPoint: ServerRequestExtType, pluginName?: string, methodName?: string) => SpanMetadata;
|
|
11
|
+
/**
|
|
12
|
+
* Wrap the route handler(s) in the live `server.route` arguments array, mutating
|
|
13
|
+
* `args[0]` in place. `args[0]` is either a single route options object or an
|
|
14
|
+
* array of them. Idempotent via the `handlerPatched` marker.
|
|
15
|
+
*/
|
|
16
|
+
export declare function wrapRouteArguments(args: unknown[], pluginName?: string): void;
|
|
17
|
+
/**
|
|
18
|
+
* Wrap the extension method(s) in the live `server.ext` arguments array,
|
|
19
|
+
* mutating `args` in place. Handles the three accepted input shapes:
|
|
20
|
+
* `(eventsArray)`, `(lifecycleEventObject)`, and `(extTypeString, method, options)`.
|
|
21
|
+
* Idempotent via the `handlerPatched` marker.
|
|
22
|
+
*/
|
|
23
|
+
export declare function wrapExtArguments(args: unknown[], pluginName?: string): void;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=hapi-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hapi-utils.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing-channel/hapi-utils.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAOV,oBAAoB,EACpB,WAAW,EAEZ,MAAM,cAAc,CAAC;AAKtB,KAAK,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAEzD,UAAU,YAAY;IACpB,UAAU,EAAE,cAAc,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;CACd;AAgDD,2DAA2D;AAC3D,eAAO,MAAM,gBAAgB,GAAI,OAAO,WAAW,EAAE,aAAa,MAAM,KAAG,YAkB1E,CAAC;AAEF,sEAAsE;AACtE,eAAO,MAAM,cAAc,GACzB,UAAU,oBAAoB,EAC9B,aAAa,MAAM,EACnB,aAAa,MAAM,KAClB,YAuBF,CAAC;AAoFF;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAS7E;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAwB3E"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EXPERIMENTAL — orchestrion-driven hapi integration. Subscribes to the
|
|
3
|
+
* `orchestrion:@hapi/hapi:route` / `:ext` channels injected into `@hapi/hapi`'s
|
|
4
|
+
* `lib/server.js`. Requires the orchestrion runtime hook or bundler plugin.
|
|
5
|
+
*/
|
|
6
|
+
export declare const hapiChannelIntegration: () => import("@sentry/core").Integration & {
|
|
7
|
+
name: "Hapi";
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=hapi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hapi.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing-channel/hapi.ts"],"names":[],"mappings":"AAgEA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;CAA6C,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Span } from '@sentry/core';
|
|
2
|
+
/** Mirrors `@opentelemetry/instrumentation-ioredis`' response hook. Not called for failed commands. */
|
|
3
|
+
export type IORedisResponseHook = (span: Span, command: string, args: Array<string | Buffer>, result: unknown) => void;
|
|
4
|
+
export interface IORedisChannelIntegrationOptions {
|
|
5
|
+
responseHook?: IORedisResponseHook;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* EXPERIMENTAL — orchestrion-driven ioredis integration. Subscribes to
|
|
9
|
+
* `orchestrion:ioredis:command` / `:connect` (injected into ioredis' `<5.11.0`
|
|
10
|
+
* `sendCommand`/`connect`) and creates db spans matching
|
|
11
|
+
* `@opentelemetry/instrumentation-ioredis`. Requires the orchestrion runtime hook
|
|
12
|
+
* or bundler plugin.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ioredisChannelIntegration: (options?: IORedisChannelIntegrationOptions | undefined) => import("@sentry/core").Integration & {
|
|
15
|
+
name: "IORedis";
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=ioredis.d.ts.map
|
|
@@ -0,0 +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;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;AAmHD;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB;;CAAgD,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,10 @@
|
|
|
1
|
+
import type { OpenAiOptions } from '@sentry/core';
|
|
2
|
+
/**
|
|
3
|
+
* EXPERIMENTAL — orchestrion-driven OpenAI integration. Subscribes to the `orchestrion:openai:*`
|
|
4
|
+
* diagnostics_channels injected into `openai`'s `create` methods (chat completions, responses, embeddings,
|
|
5
|
+
* conversations), so it requires the orchestrion runtime hook or bundler plugin.
|
|
6
|
+
*/
|
|
7
|
+
export declare const openaiChannelIntegration: (options?: OpenAiOptions | undefined) => import("@sentry/core").Integration & {
|
|
8
|
+
name: "OpenAI";
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=openai.d.ts.map
|