Skip to content

Commit 338b893

Browse files
committed
Add AI manual instrumentation exports to Node
1 parent 0c4875e commit 338b893

7 files changed

Lines changed: 46 additions & 0 deletions

File tree

packages/astro/src/index.server.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ export {
150150
supabaseIntegration,
151151
instrumentSupabaseClient,
152152
instrumentOpenAiClient,
153+
instrumentAnthropicAiClient,
154+
instrumentGoogleGenAIClient,
155+
instrumentLangGraph,
156+
instrumentStateGraphCompile,
153157
zodErrorsIntegration,
154158
profiler,
155159
logger,

packages/aws-serverless/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ export {
132132
supabaseIntegration,
133133
instrumentSupabaseClient,
134134
instrumentOpenAiClient,
135+
instrumentAnthropicAiClient,
136+
instrumentGoogleGenAIClient,
137+
instrumentLangGraph,
138+
instrumentStateGraphCompile,
135139
zodErrorsIntegration,
136140
profiler,
137141
amqplibIntegration,

packages/bun/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ export {
152152
supabaseIntegration,
153153
instrumentSupabaseClient,
154154
instrumentOpenAiClient,
155+
instrumentAnthropicAiClient,
156+
instrumentGoogleGenAIClient,
157+
instrumentLangGraph,
158+
instrumentStateGraphCompile,
155159
zodErrorsIntegration,
156160
profiler,
157161
amqplibIntegration,

packages/google-cloud-serverless/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ export {
130130
systemErrorIntegration,
131131
instrumentSupabaseClient,
132132
instrumentOpenAiClient,
133+
instrumentAnthropicAiClient,
134+
instrumentGoogleGenAIClient,
135+
instrumentLangGraph,
136+
instrumentStateGraphCompile,
133137
zodErrorsIntegration,
134138
profiler,
135139
amqplibIntegration,

packages/node/src/index.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ export {
131131
supabaseIntegration,
132132
instrumentSupabaseClient,
133133
instrumentOpenAiClient,
134+
instrumentAnthropicAiClient,
135+
instrumentGoogleGenAIClient,
134136
zodErrorsIntegration,
135137
profiler,
136138
consoleLoggingIntegration,
@@ -139,6 +141,8 @@ export {
139141
wrapMcpServerWithSentry,
140142
featureFlagsIntegration,
141143
createLangChainCallbackHandler,
144+
instrumentLangGraph,
145+
instrumentStateGraphCompile,
142146
} from '@sentry/core';
143147

144148
export type {
@@ -164,6 +168,24 @@ export type {
164168
FeatureFlagsIntegration,
165169
ExclusiveEventHintOrCaptureContext,
166170
CaptureContext,
171+
// AI SDK types
172+
OpenAiClient,
173+
OpenAiOptions,
174+
InstrumentedMethod,
175+
AnthropicAiClient,
176+
AnthropicAiOptions,
177+
AnthropicAiInstrumentedMethod,
178+
AnthropicAiResponse,
179+
GoogleGenAIClient,
180+
GoogleGenAIChat,
181+
GoogleGenAIOptions,
182+
GoogleGenAIIstrumentedMethod,
183+
GoogleGenAIResponse,
184+
LangChainOptions,
185+
LangChainIntegration,
186+
LangGraphOptions,
187+
LangGraphIntegration,
188+
CompiledGraph,
167189
} from '@sentry/core';
168190

169191
export {

packages/remix/src/server/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ export {
122122
supabaseIntegration,
123123
instrumentSupabaseClient,
124124
instrumentOpenAiClient,
125+
instrumentAnthropicAiClient,
126+
instrumentGoogleGenAIClient,
127+
instrumentLangGraph,
128+
instrumentStateGraphCompile,
125129
zodErrorsIntegration,
126130
logger,
127131
consoleLoggingIntegration,

packages/sveltekit/src/server/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ export {
124124
supabaseIntegration,
125125
instrumentSupabaseClient,
126126
instrumentOpenAiClient,
127+
instrumentAnthropicAiClient,
128+
instrumentGoogleGenAIClient,
129+
instrumentLangGraph,
130+
instrumentStateGraphCompile,
127131
zodErrorsIntegration,
128132
logger,
129133
consoleLoggingIntegration,

0 commit comments

Comments
 (0)