Skip to content

Commit b0d0506

Browse files
authored
fix(o11y): add gen_ai.request.model attribute (#247)
Some LLM calls are missing the ⁠`gen_ai.request.model` attribute. This causes incorrect grouping and display issues in multiple charts within the agent monitoring dashboard.
1 parent 0c5e0f4 commit b0d0506

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/sdk/analyze.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ async function executeQuery(
217217
'gen_ai.operation.name': 'chat',
218218
'gen_ai.provider.name': 'anthropic',
219219
'gen_ai.agent.name': skillName,
220+
'gen_ai.request.model': modelId,
220221
'gen_ai.response.model': turn.model,
221222
'gen_ai.usage.input_tokens': totalInput,
222223
'gen_ai.usage.output_tokens': turn.outputTokens,

0 commit comments

Comments
 (0)