Skip to content

Commit f3c95e9

Browse files
committed
.
1 parent ccf376d commit f3c95e9

5 files changed

Lines changed: 2 additions & 8 deletions

File tree

packages/core/src/tracing/ai/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface AIRecordingOptions {
2222
* which gen_ai operation it maps to and whether it is intrinsically streaming.
2323
*/
2424
export interface InstrumentedMethodEntry {
25-
/** Operation name (e.g. 'chat', 'embeddings', 'generate_content'). Omit for factory methods that only need result proxying. */
25+
/** Operation name (e.g. 'chat', 'embeddings', 'generate_content') */
2626
operation?: string;
2727
/** True if the method itself is always streaming (not param-based) */
2828
streaming?: boolean;

packages/core/src/tracing/anthropic-ai/types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { ANTHROPIC_METHOD_REGISTRY } from './constants';
22

3-
43
export interface AnthropicAiOptions {
54
/**
65
* Enable or disable input recording.
@@ -90,7 +89,6 @@ export interface AnthropicAiIntegration {
9089
*/
9190
export type AnthropicAiInstrumentedMethod = keyof typeof ANTHROPIC_METHOD_REGISTRY;
9291

93-
9492
/**
9593
* Message type for Anthropic AI
9694
*/

packages/core/src/tracing/google-genai/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,7 @@ function createDeepProxy<T extends object>(target: T, currentPath = '', options:
328328
const value = Reflect.get(t, prop, receiver);
329329
const methodPath = buildMethodPath(currentPath, String(prop));
330330

331-
const instrumentedMethod =
332-
GOOGLE_GENAI_METHOD_REGISTRY[methodPath as keyof typeof GOOGLE_GENAI_METHOD_REGISTRY];
331+
const instrumentedMethod = GOOGLE_GENAI_METHOD_REGISTRY[methodPath as keyof typeof GOOGLE_GENAI_METHOD_REGISTRY];
333332
if (typeof value === 'function' && instrumentedMethod) {
334333
// If an operation is specified, we need to instrument the method itself
335334
const wrappedMethod = instrumentedMethod.operation

packages/core/src/tracing/google-genai/types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { GOOGLE_GENAI_METHOD_REGISTRY } from './constants';
22

3-
43
export interface GoogleGenAIOptions {
54
/**
65
* Enable or disable input recording.
@@ -185,6 +184,5 @@ export interface GoogleGenAIChat {
185184
*/
186185
export type GoogleGenAIIstrumentedMethod = keyof typeof GOOGLE_GENAI_METHOD_REGISTRY;
187186

188-
189187
// Export the response type for use in instrumentation
190188
export type GoogleGenAIResponse = GenerateContentResponse;

packages/core/src/tracing/openai/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { OPENAI_METHOD_REGISTRY } from './constants';
22

3-
43
/**
54
* Attribute values may be any non-nullish primitive value except an object.
65
*

0 commit comments

Comments
 (0)