Skip to content

Commit 43e8951

Browse files
capture reasoning effort openai
1 parent ddb1241 commit 43e8951

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/instrumentation-openai/src/instrumentation.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,9 @@ export class OpenAIInstrumentation extends InstrumentationBase {
322322
if (params.temperature) {
323323
attributes[ATTR_GEN_AI_REQUEST_TEMPERATURE] = params.temperature;
324324
}
325+
if ('reasoning_effort' in params){
326+
attributes["gen_ai.request.reasoning_effort"] = params.reasoning_effort as string;
327+
}
325328
if (params.top_p) {
326329
attributes[ATTR_GEN_AI_REQUEST_TOP_P] = params.top_p;
327330
}

0 commit comments

Comments
 (0)