File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/core/src/utils/openai Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ function instrumentMethod<T extends unknown[], R>(
183
183
if ( isStream ( result ) ) {
184
184
return startSpanManual (
185
185
{
186
- name : `${ operationName } ${ model } ` ,
186
+ name : `${ operationName } ${ model } stream-response ` ,
187
187
op : getSpanOperation ( methodPath ) ,
188
188
attributes : requestAttributes as Record < string , SpanAttributeValue > ,
189
189
} ,
@@ -199,6 +199,7 @@ function instrumentMethod<T extends unknown[], R>(
199
199
finalOptions . recordOutputs ?? false ,
200
200
finish ,
201
201
) as unknown as R ;
202
+
202
203
} catch ( error ) {
203
204
captureException ( error ) ;
204
205
finish ( ) ;
@@ -207,6 +208,7 @@ function instrumentMethod<T extends unknown[], R>(
207
208
} ,
208
209
) ;
209
210
} else {
211
+ // Non-streaming responses
210
212
return startSpan (
211
213
{
212
214
name : `${ operationName } ${ model } ` ,
You can’t perform that action at this time.
0 commit comments