File tree Expand file tree Collapse file tree 3 files changed +2
-9
lines changed
Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import {
2222 getTruncatedJsonString ,
2323 resolveAIRecordingOptions ,
2424 wrapPromiseWithMethods ,
25+ buildMethodPath ,
2526} from '../ai/utils' ;
2627import { instrumentStream } from './streaming' ;
2728import type {
@@ -37,7 +38,6 @@ import {
3738 addConversationAttributes ,
3839 addEmbeddingsAttributes ,
3940 addResponsesApiAttributes ,
40- buildMethodPath ,
4141 extractRequestParameters ,
4242 getOperationName ,
4343 getSpanOperation ,
Original file line number Diff line number Diff line change @@ -69,13 +69,6 @@ export function shouldInstrument(methodPath: string): methodPath is Instrumented
6969 return INSTRUMENTED_METHODS . includes ( methodPath as InstrumentedMethod ) ;
7070}
7171
72- /**
73- * Build method path from current traversal
74- */
75- export function buildMethodPath ( currentPath : string , prop : string ) : string {
76- return currentPath ? `${ currentPath } .${ prop } ` : prop ;
77- }
78-
7972/**
8073 * Check if response is a Chat Completion object
8174 */
Original file line number Diff line number Diff line change 11import { describe , expect , it } from 'vitest' ;
2+ import { buildMethodPath } from '../../../src/tracing/ai/utils' ;
23import {
3- buildMethodPath ,
44 getOperationName ,
55 getSpanOperation ,
66 isChatCompletionChunk ,
You can’t perform that action at this time.
0 commit comments