@sentry/server-utils 10.64.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 +10 -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/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/ioredis.js +14 -14
- package/build/cjs/integrations/tracing-channel/ioredis.js.map +1 -1
- 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/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/channels.js +13 -1
- 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/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/index.js +15 -2
- package/build/cjs/orchestrion/config/index.js.map +1 -1
- 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 +18 -14
- package/build/cjs/orchestrion/config/vercel-ai.js.map +1 -1
- package/build/cjs/orchestrion/index.js +18 -1
- package/build/cjs/orchestrion/index.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/tracing-channel.js +7 -6
- 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 +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 +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 +3 -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/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/ioredis.js +15 -15
- package/build/esm/integrations/tracing-channel/ioredis.js.map +1 -1
- 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/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/channels.js +13 -1
- 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/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/index.js +15 -2
- package/build/esm/orchestrion/config/index.js.map +1 -1
- 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 +18 -14
- package/build/esm/orchestrion/config/vercel-ai.js.map +1 -1
- package/build/esm/orchestrion/index.js +14 -2
- package/build/esm/orchestrion/index.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/tracing-channel.js +8 -7
- 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 +112 -50
- 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 +40 -0
- package/build/types/graphql/utils.d.ts.map +1 -0
- package/build/types/index.d.ts +4 -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/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/ioredis.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/mysql.d.ts.map +1 -1
- 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/channels.d.ts +34 -0
- 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/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/index.d.ts.map +1 -1
- 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 +1 -0
- package/build/types/orchestrion/config/vercel-ai.d.ts.map +1 -1
- package/build/types/orchestrion/index.d.ts +31 -4
- package/build/types/orchestrion/index.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/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 +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 +40 -0
- package/build/types-ts3.8/index.d.ts +4 -2
- package/build/types-ts3.8/integrations/tracing-channel/amqplib.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/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/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/channels.d.ts +34 -0
- package/build/types-ts3.8/orchestrion/config/amqplib.d.ts +66 -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/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 +1 -0
- package/build/types-ts3.8/orchestrion/index.d.ts +33 -4
- 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 +32 -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 +2 -2
- 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
|
@@ -42,6 +42,11 @@ export interface TracingChannelLifeCycleOptions<TData extends object = object> {
|
|
|
42
42
|
/** Ends the span: `end()` on success, `end(error)` on failure. Idempotent. */
|
|
43
43
|
end: (error?: unknown) => void;
|
|
44
44
|
}) => boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Apply span/scope binding only if there is a parent span, similar to returning `undefined` in the `getSpan` callback.
|
|
47
|
+
* If you need to perform some conditional checking on the parent span before deciding, do it in the `getSpan` callback.
|
|
48
|
+
*/
|
|
49
|
+
requiresParentSpan?: boolean;
|
|
45
50
|
}
|
|
46
51
|
/** Returned by {@link bindTracingChannelToSpan}: the bound channel plus a teardown handle. */
|
|
47
52
|
export interface TracingChannelBindingHandle<TData extends object = object> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracing-channel.d.ts","sourceRoot":"","sources":["../../src/tracing-channel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAE1F,OAAO,KAAK,EAAE,kCAAkC,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"tracing-channel.d.ts","sourceRoot":"","sources":["../../src/tracing-channel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAE1F,OAAO,KAAK,EAAE,kCAAkC,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAa7E,MAAM,MAAM,6BAA6B,CAAC,KAAK,SAAS,MAAM,IAAI,KAAK,GAAG;IACxE;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;IAEnB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAKF,MAAM,WAAW,oBAAoB,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,IAAI,CAC/E,cAAc,CAAC,KAAK,EAAE,6BAA6B,CAAC,KAAK,CAAC,CAAC,EAC3D,WAAW,GAAG,aAAa,CAC5B;IACC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,yBAAyB,CAAC,6BAA6B,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IACvG,WAAW,CAAC,WAAW,EAAE,OAAO,CAAC,yBAAyB,CAAC,6BAA6B,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;CAC1G;AAED,MAAM,WAAW,8BAA8B,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM;IAC3E;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,6BAA6B,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IAEjF;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,OAAO,KAAK,kCAAkC,CAAC,CAAC;IAE9E;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE;QACpB,IAAI,EAAE,IAAI,CAAC;QACX,IAAI,EAAE,6BAA6B,CAAC,KAAK,CAAC,CAAC;QAC3C,8EAA8E;QAC9E,GAAG,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;KAChC,KAAK,OAAO,CAAC;IAEd;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,8FAA8F;AAC9F,MAAM,WAAW,2BAA2B,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM;IACxE;;OAEG;IACH,OAAO,EAAE,oBAAoB,CAAC,KAAK,CAAC,CAAC;IAErC;;;OAGG;IACH,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAID;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,SAAS,MAAM,EAC3D,OAAO,EAAE,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,EACrC,OAAO,EAAE,CAAC,IAAI,EAAE,6BAA6B,CAAC,KAAK,CAAC,KAAK,IAAI,GAAG,SAAS,EACzE,IAAI,CAAC,EAAE,8BAA8B,CAAC,KAAK,CAAC,GAC3C,2BAA2B,CAAC,KAAK,CAAC,CA0FpC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** Shared, state-free helpers for the Vercel AI (`ai`) channel subscribers, plus the streamed model-call tap. */
|
|
2
|
+
/** Narrow to a string, or `undefined` for anything else. */
|
|
3
|
+
export declare function asString(value: unknown): string | undefined;
|
|
4
|
+
/** Narrow to a finite number, or `undefined` for anything else (including `NaN`). */
|
|
5
|
+
export declare function asNumber(value: unknown): number | undefined;
|
|
6
|
+
/** Add two optional numbers, treating a missing operand as `0` but returning `undefined` when both are absent. */
|
|
7
|
+
export declare function sum(a: number | undefined, b: number | undefined): number | undefined;
|
|
8
|
+
/** Stringify a value, passing strings through and falling back to a placeholder on circular/unserializable input. */
|
|
9
|
+
export declare function safeStringify(value: unknown): string;
|
|
10
|
+
/** The aggregate handed back once a streamed model call finishes, in the shape `enrichSpanOnEnd` expects. */
|
|
11
|
+
export interface StreamedModelCallResult {
|
|
12
|
+
text?: string;
|
|
13
|
+
toolCalls: Array<Record<string, unknown>>;
|
|
14
|
+
usage?: unknown;
|
|
15
|
+
finishReason?: unknown;
|
|
16
|
+
responseId?: string;
|
|
17
|
+
responseModel?: string;
|
|
18
|
+
providerMetadata?: unknown;
|
|
19
|
+
}
|
|
20
|
+
/** A minimal structural check — the streamed model call exposes a web `ReadableStream` on `result.stream`. */
|
|
21
|
+
export declare function isReadableStream(value: unknown): value is ReadableStream<unknown>;
|
|
22
|
+
/**
|
|
23
|
+
* Wrap a streamed model call's `ReadableStream` so its chunks are observed as the SDK consumes them,
|
|
24
|
+
* without altering what the SDK sees. Returns a replacement stream to swap onto `result.stream`.
|
|
25
|
+
*
|
|
26
|
+
* `onFinal` runs exactly once when the stream drains cleanly; `onError` runs exactly once if it errors
|
|
27
|
+
* or is cancelled. Reading one source chunk per `pull` preserves the SDK's backpressure. The
|
|
28
|
+
* `try/catch` around every read guarantees the owning span is always ended — a leaked open span on a
|
|
29
|
+
* mid-stream failure would be worse than a slightly-less-enriched one.
|
|
30
|
+
*/
|
|
31
|
+
export declare function tapModelCallStream(stream: ReadableStream<unknown>, onFinal: (result: StreamedModelCallResult) => void, onError: (error: unknown) => void): ReadableStream<unknown>;
|
|
32
|
+
//# sourceMappingURL=util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/vercel-ai/util.ts"],"names":[],"mappings":"AAAA,iHAAiH;AAIjH,4DAA4D;AAC5D,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAE3D;AAED,qFAAqF;AACrF,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAE3D;AAED,kHAAkH;AAClH,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAEpF;AAED,qHAAqH;AACrH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CASpD;AAoCD,6GAA6G;AAC7G,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,8GAA8G;AAC9G,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAAC,OAAO,CAAC,CAMjF;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,cAAc,CAAC,OAAO,CAAC,EAC/B,OAAO,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,IAAI,EAClD,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAChC,cAAc,CAAC,OAAO,CAAC,CAkDzB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Span } from '@sentry/core';
|
|
2
2
|
import type { TracingChannel } from 'node:diagnostics_channel';
|
|
3
|
+
import { type StreamedModelCallResult } from './util';
|
|
3
4
|
/** Drop the per-operation `callId` maps once the owning top-level operation settles (success or error). */
|
|
4
5
|
export declare function clearOperationId(data: VercelAiChannelMessage): void;
|
|
5
6
|
/**
|
|
@@ -10,7 +11,7 @@ export declare function clearOperationId(data: VercelAiChannelMessage): void;
|
|
|
10
11
|
*/
|
|
11
12
|
export declare function clearOperationCallId(callId: string): void;
|
|
12
13
|
/** The lifecycle event types the `ai:telemetry` channel can carry. */
|
|
13
|
-
export type ChannelEventType = 'generateText' | 'streamText' | 'step' | 'languageModelCall' | 'executeTool' | 'embed' | 'embedMany' | 'rerank';
|
|
14
|
+
export type ChannelEventType = 'generateText' | 'streamText' | 'generateObject' | 'step' | 'languageModelCall' | 'executeTool' | 'embed' | 'embedMany' | 'rerank';
|
|
14
15
|
/**
|
|
15
16
|
* The context object the AI SDK passes through one tracing-channel call. It is the same object
|
|
16
17
|
* identity across `start`/`end`/`asyncEnd`/`error`, and Node's `tracingChannel` attaches
|
|
@@ -49,9 +50,11 @@ export interface VercelAiChannelOptions {
|
|
|
49
50
|
*
|
|
50
51
|
* Safe to always call: on `ai` versions that don't publish to the channel (e.g. < 7) nothing is
|
|
51
52
|
* ever emitted and this is inert, so there is no double-instrumentation against the OTel-based
|
|
52
|
-
* patcher.
|
|
53
|
+
* patcher. The integration's `setupOnce` guarantees this runs a single time.
|
|
53
54
|
*/
|
|
54
55
|
export declare function subscribeVercelAiTracingChannel(tracingChannel: VercelAiTracingChannelFactory, options?: VercelAiChannelOptions): void;
|
|
56
|
+
/** Map the tapped stream aggregate onto the `languageModelCall` result shape `enrichSpanOnEnd` reads. */
|
|
57
|
+
export declare function streamedResultToChannelResult(final: StreamedModelCallResult): Record<string, unknown>;
|
|
55
58
|
/**
|
|
56
59
|
* Transform a channel `start` payload into the span that should be active for the operation. For
|
|
57
60
|
* `step` we deliberately don't open a span (model calls and tool calls are siblings under the
|
|
@@ -65,4 +68,5 @@ export declare function createSpanFromMessage(data: VercelAiChannelMessage, chan
|
|
|
65
68
|
* we simply don't set the attribute rather than emit a malformed span.
|
|
66
69
|
*/
|
|
67
70
|
export declare function enrichSpanOnEnd(span: Span, data: VercelAiChannelMessage, channelOptions: VercelAiChannelOptions): void;
|
|
71
|
+
export declare function captureToolError(span: Span, data: VercelAiChannelMessage, error: unknown): void;
|
|
68
72
|
//# sourceMappingURL=vercel-ai-dc-subscriber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vercel-ai-dc-subscriber.d.ts","sourceRoot":"","sources":["../../../src/vercel-ai/vercel-ai-dc-subscriber.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"vercel-ai-dc-subscriber.d.ts","sourceRoot":"","sources":["../../../src/vercel-ai/vercel-ai-dc-subscriber.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAkBzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAKL,KAAK,uBAAuB,EAG7B,MAAM,QAAQ,CAAC;AAyDhB,2GAA2G;AAC3G,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,sBAAsB,GAAG,IAAI,CAQnE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAIzD;AA0CD,sEAAsE;AACtE,MAAM,MAAM,gBAAgB,GACxB,cAAc,GACd,YAAY,GACZ,gBAAgB,GAChB,MAAM,GACN,mBAAmB,GACnB,aAAa,GACb,OAAO,GACP,WAAW,GACX,QAAQ,CAAC;AAEb;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAErG,mHAAmH;AACnH,MAAM,WAAW,sBAAsB;IACrC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,+BAA+B,CAC7C,cAAc,EAAE,6BAA6B,EAC7C,OAAO,GAAE,sBAA2B,GACnC,IAAI,CAgBN;AAwCD,yGAAyG;AACzG,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAuBrG;AA4CD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,sBAAsB,EAC5B,cAAc,EAAE,sBAAsB,GACrC,IAAI,GAAG,SAAS,CAuDlB;AAiFD;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,sBAAsB,EAC5B,cAAc,EAAE,sBAAsB,GACrC,IAAI,CAsFN;AAuED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CA0B/F"}
|
|
@@ -9,4 +9,4 @@ import { type VercelAiChannelOptions, type VercelAiTracingChannelFactory } from
|
|
|
9
9
|
* subscribe time so we never look the integration up per event.
|
|
10
10
|
*/
|
|
11
11
|
export declare function subscribeVercelAiOrchestrionChannels(tracingChannel: VercelAiTracingChannelFactory, options?: VercelAiChannelOptions): void;
|
|
12
|
-
//# sourceMappingURL=vercel-ai-orchestrion-
|
|
12
|
+
//# sourceMappingURL=vercel-ai-orchestrion-subscriber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vercel-ai-orchestrion-subscriber.d.ts","sourceRoot":"","sources":["../../../src/vercel-ai/vercel-ai-orchestrion-subscriber.ts"],"names":[],"mappings":"AAMA,OAAO,EAQL,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,EACnC,MAAM,2BAA2B,CAAC;AA+FnC;;;;;;;;GAQG;AACH,wBAAgB,oCAAoC,CAClD,cAAc,EAAE,6BAA6B,EAC7C,OAAO,GAAE,sBAA2B,GACnC,IAAI,CA8DN"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { TracingChannel } from 'node:diagnostics_channel';
|
|
2
|
+
import { GraphqlDocumentNode } from './utils';
|
|
3
|
+
export declare const GRAPHQL_DC_CHANNEL_PARSE = "graphql:parse";
|
|
4
|
+
export declare const GRAPHQL_DC_CHANNEL_VALIDATE = "graphql:validate";
|
|
5
|
+
export declare const GRAPHQL_DC_CHANNEL_EXECUTE = "graphql:execute";
|
|
6
|
+
export declare const GRAPHQL_DC_CHANNEL_SUBSCRIBE = "graphql:subscribe";
|
|
7
|
+
export declare const GRAPHQL_DC_CHANNEL_RESOLVE = "graphql:resolve";
|
|
8
|
+
/** Context published on the sync-only `graphql:parse` channel. */
|
|
9
|
+
export interface GraphqlParseData {
|
|
10
|
+
source: string | {
|
|
11
|
+
body?: string;
|
|
12
|
+
};
|
|
13
|
+
result?: GraphqlDocumentNode;
|
|
14
|
+
error?: unknown;
|
|
15
|
+
}
|
|
16
|
+
/** Context published on the sync-only `graphql:validate` channel. */
|
|
17
|
+
export interface GraphqlValidateData {
|
|
18
|
+
document: GraphqlDocumentNode;
|
|
19
|
+
/** Validation errors returned by validation; an empty array means the document is valid. */
|
|
20
|
+
result?: ReadonlyArray<unknown>;
|
|
21
|
+
error?: unknown;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Context published on the `graphql:execute` and `graphql:subscribe` channels.
|
|
25
|
+
*
|
|
26
|
+
* `result` carries an `ExecutionResult` (or, for subscriptions, an async generator); GraphQL errors
|
|
27
|
+
* collected during execution surface on `result.errors` rather than as the channel's `error`
|
|
28
|
+
* lifecycle event, which only fires on an abrupt throw.
|
|
29
|
+
*/
|
|
30
|
+
export interface GraphqlOperationData {
|
|
31
|
+
document: GraphqlDocumentNode;
|
|
32
|
+
operationName?: string;
|
|
33
|
+
operationType?: string;
|
|
34
|
+
result?: unknown;
|
|
35
|
+
error?: unknown;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Context published on the per-field `graphql:resolve` channel.
|
|
39
|
+
*
|
|
40
|
+
* A resolver throw or rejection publishes the `error` lifecycle event here; the same failure also
|
|
41
|
+
* surfaces in the enclosing execution result.
|
|
42
|
+
*/
|
|
43
|
+
export interface GraphqlResolveData {
|
|
44
|
+
fieldName: string;
|
|
45
|
+
parentType: string;
|
|
46
|
+
fieldType: string;
|
|
47
|
+
fieldPath: string;
|
|
48
|
+
/** Whether the field is handled by graphql's default property resolver (vs. a user resolver). */
|
|
49
|
+
isDefaultResolver: boolean;
|
|
50
|
+
alias?: string;
|
|
51
|
+
args?: unknown;
|
|
52
|
+
result?: unknown;
|
|
53
|
+
error?: unknown;
|
|
54
|
+
}
|
|
55
|
+
/** Options controlling which graphql channels the subscriber emits spans for. */
|
|
56
|
+
export interface GraphqlDiagnosticChannelsOptions {
|
|
57
|
+
/**
|
|
58
|
+
* Do not create spans for resolvers. Resolver spans are per-field and can be very high volume.
|
|
59
|
+
* Defaults to `true`.
|
|
60
|
+
*/
|
|
61
|
+
ignoreResolveSpans?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* When resolver spans are enabled, do not create them for graphql's default property resolver
|
|
64
|
+
* (fields without a user-defined resolver), which are rarely interesting. Defaults to `true`.
|
|
65
|
+
*/
|
|
66
|
+
ignoreTrivialResolveSpans?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Rename the enclosing root span to include the operation name(s), e.g.
|
|
69
|
+
* `GET /graphql` -> `GET /graphql (query GetUser)`. Defaults to `true`.
|
|
70
|
+
*/
|
|
71
|
+
useOperationNameForRootSpan?: boolean;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Platform-provided factory that creates a native tracing channel for the given name. The
|
|
75
|
+
* subscriber binds the span and its lifecycle onto the channel via `bindTracingChannelToSpan`,
|
|
76
|
+
* which propagates the active span through the runtime's async context.
|
|
77
|
+
*
|
|
78
|
+
* Node passes `node:diagnostics_channel`'s `tracingChannel` directly.
|
|
79
|
+
*/
|
|
80
|
+
export type GraphqlTracingChannelFactory = <T extends object>(name: string) => TracingChannel<T, T>;
|
|
81
|
+
/**
|
|
82
|
+
* Subscribe Sentry span handlers to graphql's diagnostics-channel events
|
|
83
|
+
* (`graphql:parse`, `:validate`, `:execute`, `:subscribe`), published by graphql >= 17.0.0.
|
|
84
|
+
*
|
|
85
|
+
* On older graphql versions the channels are never published to, so the subscribers are inert —
|
|
86
|
+
* there is no double-instrumentation against the vendored OTel patcher, which is gated to `< 17`.
|
|
87
|
+
*
|
|
88
|
+
* The per-field `graphql:resolve` channel is only subscribed when `ignoreResolveSpans` is `false`:
|
|
89
|
+
* resolver spans are per-field and can be extremely high-volume, so they are off by default (matching
|
|
90
|
+
* the legacy OTel path). When enabled, `ignoreTrivialResolveSpans` (default `true`) additionally skips
|
|
91
|
+
* graphql's default property resolver.
|
|
92
|
+
*/
|
|
93
|
+
export declare function subscribeGraphqlDiagnosticChannels(tracingChannel: GraphqlTracingChannelFactory, options?: GraphqlDiagnosticChannelsOptions): void;
|
|
94
|
+
//# sourceMappingURL=graphql-dc-subscriber.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GraphqlDiagnosticChannelsOptions } from './graphql-dc-subscriber';
|
|
2
|
+
/**
|
|
3
|
+
* Auto-instrument the [graphql](https://www.npmjs.com/package/graphql) library via its native
|
|
4
|
+
* `node:diagnostics_channel` tracing channels (graphql >= 17).
|
|
5
|
+
*
|
|
6
|
+
* On older graphql versions the channels are never published to, so this integration is inert and
|
|
7
|
+
* the vendored OTel instrumentation (gated to `< 17`) handles instrumentation instead.
|
|
8
|
+
*/
|
|
9
|
+
export declare const graphqlIntegration: (options?: GraphqlDiagnosticChannelsOptions | undefined) => import("@sentry/core").Integration & {
|
|
10
|
+
name: "Graphql";
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Span } from '@sentry/core';
|
|
2
|
+
/** Minimal shape of a graphql-js lexer token, enough to locate literal spans for redaction. */
|
|
3
|
+
interface GraphqlToken {
|
|
4
|
+
kind: string;
|
|
5
|
+
start: number;
|
|
6
|
+
end: number;
|
|
7
|
+
next?: GraphqlToken | null;
|
|
8
|
+
}
|
|
9
|
+
/** Minimal shape of a parsed graphql-js `DocumentNode`, enough to read its source and tokens. */
|
|
10
|
+
export interface GraphqlDocumentNode {
|
|
11
|
+
loc?: {
|
|
12
|
+
startToken?: GraphqlToken;
|
|
13
|
+
source?: {
|
|
14
|
+
body?: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Rename the enclosing root span to include the operation name(s), e.g. `GET /graphql (query GetUser)`.
|
|
20
|
+
* Mirrors the legacy OTel `useOperationNameForRootSpan` behavior; `parseSpanDescription` reads the same
|
|
21
|
+
* `sentry.graphql.operation` attribute on the OTel export path.
|
|
22
|
+
*/
|
|
23
|
+
export declare function renameRootSpanWithOperation(span: Span, operationType: string, operationName?: string): void;
|
|
24
|
+
/**
|
|
25
|
+
* Span name follows the GraphQL semantic conventions: `<operation.type> <operation.name>` when both
|
|
26
|
+
* are available, `<operation.type>` when only the type is, otherwise a static fallback.
|
|
27
|
+
*/
|
|
28
|
+
export declare function getOperationSpanName(operationType: string | undefined, operationName: string | undefined, fallbackName: string): string;
|
|
29
|
+
/** Whether a graphql execution result carries GraphQL errors (returned on `result.errors`). */
|
|
30
|
+
export declare function hasResultErrors(result: unknown): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Serialize a parsed document into `graphql.document` while redacting every literal argument value:
|
|
33
|
+
* the original source text is preserved verbatim except that string/number literal spans are
|
|
34
|
+
* replaced (`"foo"` -> `"*"`, `42` -> `*`). graphql does not sanitize its channel payload, so this
|
|
35
|
+
* prevents raw inline values (potential PII) from leaving the process. Variable values are never
|
|
36
|
+
* included. Returns `undefined` (rather than throwing) on anything it cannot serialize.
|
|
37
|
+
*/
|
|
38
|
+
export declare function redactGraphqlDocument(document: GraphqlDocumentNode | undefined): string | undefined;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
|
+
export { graphqlIntegration } from './graphql';
|
|
7
8
|
export { mongooseIntegration } from './mongoose';
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
9
|
+
export { mysql2Integration } from './mysql2';
|
|
10
|
+
export { redisIntegration, RedisDiagnosticChannelsOptions } from './redis';
|
|
11
|
+
export { RedisDiagnosticChannelResponseHook } from './redis/redis-dc-subscriber';
|
|
10
12
|
export { defaultDbStatementSerializer } from './redis/redis-statement-serializer';
|
|
11
13
|
export { bindTracingChannelToSpan } from './tracing-channel';
|
|
12
14
|
export { SentryTracingChannel, TracingChannelLifeCycleOptions, TracingChannelBindingHandle, TracingChannelPayloadWithSpan, } from './tracing-channel';
|
|
@@ -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,18 @@
|
|
|
1
|
+
import { 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,4 @@
|
|
|
1
|
+
import * as diagnosticsChannel from 'node:diagnostics_channel';
|
|
2
|
+
import { ExpressIntegrationOptions } from './types';
|
|
3
|
+
export declare function instrumentExpress(options: ExpressIntegrationOptions, tracingChannel: typeof diagnosticsChannel.tracingChannel): void;
|
|
4
|
+
//# sourceMappingURL=instrumentation.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { 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,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,12 @@
|
|
|
1
|
+
import { 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,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,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,30 @@
|
|
|
1
|
+
import { 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) => Pick<import("@sentry/core").Integration & {
|
|
23
|
+
name: "Graphql";
|
|
24
|
+
}, Exclude<keyof (import("@sentry/core").Integration & {
|
|
25
|
+
name: "Graphql";
|
|
26
|
+
}), "name" | "setupOnce">> & {
|
|
27
|
+
name: "Graphql";
|
|
28
|
+
setupOnce: () => void | undefined;
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { 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,17 @@
|
|
|
1
|
+
import { Span } from '@sentry/core';
|
|
2
|
+
import { 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
|