From 338b893fc1932edf37da7cab6bf2f3dc5d53cf60 Mon Sep 17 00:00:00 2001 From: RulaKhaled Date: Wed, 28 Jan 2026 16:45:27 +0100 Subject: [PATCH 1/2] Add AI manual instrumentation exports to Node --- packages/astro/src/index.server.ts | 4 ++++ packages/aws-serverless/src/index.ts | 4 ++++ packages/bun/src/index.ts | 4 ++++ packages/google-cloud-serverless/src/index.ts | 4 ++++ packages/node/src/index.ts | 22 +++++++++++++++++++ packages/remix/src/server/index.ts | 4 ++++ packages/sveltekit/src/server/index.ts | 4 ++++ 7 files changed, 46 insertions(+) diff --git a/packages/astro/src/index.server.ts b/packages/astro/src/index.server.ts index 7005fcf26b86..ac01ff0647a7 100644 --- a/packages/astro/src/index.server.ts +++ b/packages/astro/src/index.server.ts @@ -150,6 +150,10 @@ export { supabaseIntegration, instrumentSupabaseClient, instrumentOpenAiClient, + instrumentAnthropicAiClient, + instrumentGoogleGenAIClient, + instrumentLangGraph, + instrumentStateGraphCompile, zodErrorsIntegration, profiler, logger, diff --git a/packages/aws-serverless/src/index.ts b/packages/aws-serverless/src/index.ts index 34889236032c..1c980e4cae2d 100644 --- a/packages/aws-serverless/src/index.ts +++ b/packages/aws-serverless/src/index.ts @@ -132,6 +132,10 @@ export { supabaseIntegration, instrumentSupabaseClient, instrumentOpenAiClient, + instrumentAnthropicAiClient, + instrumentGoogleGenAIClient, + instrumentLangGraph, + instrumentStateGraphCompile, zodErrorsIntegration, profiler, amqplibIntegration, diff --git a/packages/bun/src/index.ts b/packages/bun/src/index.ts index 5f2d628ce983..9aac9dce7589 100644 --- a/packages/bun/src/index.ts +++ b/packages/bun/src/index.ts @@ -152,6 +152,10 @@ export { supabaseIntegration, instrumentSupabaseClient, instrumentOpenAiClient, + instrumentAnthropicAiClient, + instrumentGoogleGenAIClient, + instrumentLangGraph, + instrumentStateGraphCompile, zodErrorsIntegration, profiler, amqplibIntegration, diff --git a/packages/google-cloud-serverless/src/index.ts b/packages/google-cloud-serverless/src/index.ts index 636852d722d3..9478b98f5a58 100644 --- a/packages/google-cloud-serverless/src/index.ts +++ b/packages/google-cloud-serverless/src/index.ts @@ -130,6 +130,10 @@ export { systemErrorIntegration, instrumentSupabaseClient, instrumentOpenAiClient, + instrumentAnthropicAiClient, + instrumentGoogleGenAIClient, + instrumentLangGraph, + instrumentStateGraphCompile, zodErrorsIntegration, profiler, amqplibIntegration, diff --git a/packages/node/src/index.ts b/packages/node/src/index.ts index e96a28483174..4f3a50bc5fdd 100644 --- a/packages/node/src/index.ts +++ b/packages/node/src/index.ts @@ -131,6 +131,8 @@ export { supabaseIntegration, instrumentSupabaseClient, instrumentOpenAiClient, + instrumentAnthropicAiClient, + instrumentGoogleGenAIClient, zodErrorsIntegration, profiler, consoleLoggingIntegration, @@ -139,6 +141,8 @@ export { wrapMcpServerWithSentry, featureFlagsIntegration, createLangChainCallbackHandler, + instrumentLangGraph, + instrumentStateGraphCompile, } from '@sentry/core'; export type { @@ -164,6 +168,24 @@ export type { FeatureFlagsIntegration, ExclusiveEventHintOrCaptureContext, CaptureContext, + // AI SDK types + OpenAiClient, + OpenAiOptions, + InstrumentedMethod, + AnthropicAiClient, + AnthropicAiOptions, + AnthropicAiInstrumentedMethod, + AnthropicAiResponse, + GoogleGenAIClient, + GoogleGenAIChat, + GoogleGenAIOptions, + GoogleGenAIIstrumentedMethod, + GoogleGenAIResponse, + LangChainOptions, + LangChainIntegration, + LangGraphOptions, + LangGraphIntegration, + CompiledGraph, } from '@sentry/core'; export { diff --git a/packages/remix/src/server/index.ts b/packages/remix/src/server/index.ts index 181c9fd36d16..1533a1ca7221 100644 --- a/packages/remix/src/server/index.ts +++ b/packages/remix/src/server/index.ts @@ -122,6 +122,10 @@ export { supabaseIntegration, instrumentSupabaseClient, instrumentOpenAiClient, + instrumentAnthropicAiClient, + instrumentGoogleGenAIClient, + instrumentLangGraph, + instrumentStateGraphCompile, zodErrorsIntegration, logger, consoleLoggingIntegration, diff --git a/packages/sveltekit/src/server/index.ts b/packages/sveltekit/src/server/index.ts index 47c4cfa7d3f8..d42975ef7876 100644 --- a/packages/sveltekit/src/server/index.ts +++ b/packages/sveltekit/src/server/index.ts @@ -124,6 +124,10 @@ export { supabaseIntegration, instrumentSupabaseClient, instrumentOpenAiClient, + instrumentAnthropicAiClient, + instrumentGoogleGenAIClient, + instrumentLangGraph, + instrumentStateGraphCompile, zodErrorsIntegration, logger, consoleLoggingIntegration, From 516ddb92e41d5f30637522e20607f38f1908057b Mon Sep 17 00:00:00 2001 From: RulaKhaled Date: Wed, 28 Jan 2026 16:52:33 +0100 Subject: [PATCH 2/2] yah we dont need this --- packages/node/src/index.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/packages/node/src/index.ts b/packages/node/src/index.ts index 4f3a50bc5fdd..8458dee5f6a7 100644 --- a/packages/node/src/index.ts +++ b/packages/node/src/index.ts @@ -168,24 +168,6 @@ export type { FeatureFlagsIntegration, ExclusiveEventHintOrCaptureContext, CaptureContext, - // AI SDK types - OpenAiClient, - OpenAiOptions, - InstrumentedMethod, - AnthropicAiClient, - AnthropicAiOptions, - AnthropicAiInstrumentedMethod, - AnthropicAiResponse, - GoogleGenAIClient, - GoogleGenAIChat, - GoogleGenAIOptions, - GoogleGenAIIstrumentedMethod, - GoogleGenAIResponse, - LangChainOptions, - LangChainIntegration, - LangGraphOptions, - LangGraphIntegration, - CompiledGraph, } from '@sentry/core'; export {