Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,10 @@ export type {
GoogleGenAIClient,
GoogleGenAIChat,
GoogleGenAIOptions,
GoogleGenAIIstrumentedMethod,
GoogleGenAIInstrumentedMethod,
} from './tracing/google-genai/types';
// eslint-disable-next-line deprecation/deprecation
export type { GoogleGenAIIstrumentedMethod } from './tracing/google-genai/types';

export { SpanBuffer } from './tracing/spans/spanBuffer';
export { hasSpanStreamingEnabled } from './tracing/spans/hasSpanStreamingEnabled';
Expand Down
8 changes: 6 additions & 2 deletions packages/core/src/tracing/google-genai/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,14 @@ export interface GoogleGenAIChat {
sendMessageStream: (...args: unknown[]) => Promise<AsyncGenerator<GenerateContentResponse, any, unknown>>;
}

export type GoogleGenAIInstrumentedMethod = keyof typeof GOOGLE_GENAI_METHOD_REGISTRY;

/**
* @deprecated This type is no longer used and will be removed in the next major version.
* @deprecated Use {@link GoogleGenAIInstrumentedMethod} instead. This alias
* preserves backwards compatibility with the misspelled name and will be
* removed in the next major version.
*/
export type GoogleGenAIIstrumentedMethod = keyof typeof GOOGLE_GENAI_METHOD_REGISTRY;
export type GoogleGenAIIstrumentedMethod = GoogleGenAIInstrumentedMethod;

// Export the response type for use in instrumentation
export type GoogleGenAIResponse = GenerateContentResponse;
Loading