File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/core/src/utils/openai Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,11 @@ function extractRequestAttributes(args: unknown[], methodPath: string): Record<s
5050 const attributes : Record < string , unknown > = {
5151 [ GEN_AI_SYSTEM_ATTRIBUTE ] : 'openai' ,
5252 [ GEN_AI_OPERATION_NAME_ATTRIBUTE ] : getOperationName ( methodPath ) ,
53+ < << << << HEAD
5354 [ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.function.openai' ,
55+ = === ===
56+ [ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.ai.openai' ,
57+ > >>> >>> c3e94e7d9 ( update type to trace origin , set origin )
5458 } ;
5559
5660 // Chat completion API accepts web_search_options and tools as parameters
@@ -258,7 +262,7 @@ function instrumentMethod<T extends unknown[], R>(
258262 captureException ( error , {
259263 mechanism : {
260264 handled : false ,
261- type : 'openai.stream' ,
265+ type : 'auto.ai. openai.stream' ,
262266 data : {
263267 function : methodPath ,
264268 } ,
@@ -290,7 +294,7 @@ function instrumentMethod<T extends unknown[], R>(
290294 captureException ( error , {
291295 mechanism : {
292296 handled : false ,
293- type : 'openai' ,
297+ type : 'auto.ai. openai' ,
294298 data : {
295299 function : methodPath ,
296300 } ,
You can’t perform that action at this time.
0 commit comments