Skip to content

Commit b665589

Browse files
committed
Move ai integrations from utils to tracing
1 parent 0f4c190 commit b665589

30 files changed

+20
-20
lines changed

packages/core/src/index.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -135,31 +135,31 @@ export {
135135
export * as metrics from './metrics/public-api';
136136
export type { MetricOptions } from './metrics/public-api';
137137
export { createConsolaReporter } from './integrations/consola';
138-
export { addVercelAiProcessors } from './utils/vercel-ai';
139-
export { _INTERNAL_getSpanForToolCallId, _INTERNAL_cleanupToolCallSpan } from './utils/vercel-ai/utils';
140-
export { instrumentOpenAiClient } from './utils/openai';
141-
export { OPENAI_INTEGRATION_NAME } from './utils/openai/constants';
142-
export { instrumentAnthropicAiClient } from './utils/anthropic-ai';
143-
export { ANTHROPIC_AI_INTEGRATION_NAME } from './utils/anthropic-ai/constants';
144-
export { instrumentGoogleGenAIClient } from './utils/google-genai';
145-
export { GOOGLE_GENAI_INTEGRATION_NAME } from './utils/google-genai/constants';
146-
export type { GoogleGenAIResponse } from './utils/google-genai/types';
147-
export { createLangChainCallbackHandler } from './utils/langchain';
148-
export { LANGCHAIN_INTEGRATION_NAME } from './utils/langchain/constants';
149-
export type { LangChainOptions, LangChainIntegration } from './utils/langchain/types';
150-
export type { OpenAiClient, OpenAiOptions, InstrumentedMethod } from './utils/openai/types';
138+
export { addVercelAiProcessors } from './tracing/vercel-ai';
139+
export { _INTERNAL_getSpanForToolCallId, _INTERNAL_cleanupToolCallSpan } from './tracing/vercel-ai/utils';
140+
export { instrumentOpenAiClient } from './tracing/openai';
141+
export { OPENAI_INTEGRATION_NAME } from './tracing/openai/constants';
142+
export { instrumentAnthropicAiClient } from './tracing/anthropic-ai';
143+
export { ANTHROPIC_AI_INTEGRATION_NAME } from './tracing/anthropic-ai/constants';
144+
export { instrumentGoogleGenAIClient } from './tracing/google-genai';
145+
export { GOOGLE_GENAI_INTEGRATION_NAME } from './tracing/google-genai/constants';
146+
export type { GoogleGenAIResponse } from './tracing/google-genai/types';
147+
export { createLangChainCallbackHandler } from './tracing/langchain';
148+
export { LANGCHAIN_INTEGRATION_NAME } from './tracing/langchain/constants';
149+
export type { LangChainOptions, LangChainIntegration } from './tracing/langchain/types';
150+
export type { OpenAiClient, OpenAiOptions, InstrumentedMethod } from './tracing/openai/types';
151151
export type {
152152
AnthropicAiClient,
153153
AnthropicAiOptions,
154154
AnthropicAiInstrumentedMethod,
155155
AnthropicAiResponse,
156-
} from './utils/anthropic-ai/types';
156+
} from './tracing/anthropic-ai/types';
157157
export type {
158158
GoogleGenAIClient,
159159
GoogleGenAIChat,
160160
GoogleGenAIOptions,
161161
GoogleGenAIIstrumentedMethod,
162-
} from './utils/google-genai/types';
162+
} from './tracing/google-genai/types';
163163
export type { FeatureFlag } from './utils/featureFlags';
164164

165165
export {
File renamed without changes.

packages/core/src/utils/anthropic-ai/index.ts renamed to packages/core/src/tracing/anthropic-ai/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {
3030
getTruncatedJsonString,
3131
setTokenUsageAttributes,
3232
} from '../ai/utils';
33-
import { handleCallbackErrors } from '../handleCallbackErrors';
33+
import { handleCallbackErrors } from '../../utils/handleCallbackErrors';
3434
import { instrumentAsyncIterableStream, instrumentMessageStream } from './streaming';
3535
import type {
3636
AnthropicAiInstrumentedMethod,

0 commit comments

Comments
 (0)