I want to assign agent_id to the span of `chat {model}` as well.
Agent Runs Span has agent_id but not gen_ai.usage. LLM Operations `chat {model} has gen_ai.usage but not agent_id.
What is the best way to aggregate gen_ai.usage by agent_id?
10 Replies
š Created GitHub issue: https://github.com/mastra-ai/mastra/issues/10230
š If you're experiencing an error, please provide a minimal reproducible example to help us resolve it quickly.
š Thank you @kosukeoya for helping us improve Mastra!
Hey @kosukeoya ! I'm not sure that's feasbile at the moment, cc @Eric
@kosukeoya I'm assuming this question is specific to the OtelExporter?
yes!
thanks for confirming @kosukeoya . Can I also ask which version of mastra you are currently using?
mastra/core:0.24.1
mastra/otel-exporter:0.3.3
Should I use v1beta?
this is also not available in v1beta... I was just asking so I could know if I should also apply the addition to the 0.x versions.
It would be great if you could add to the 0.x versions.
i can do that. Please follow the status in the issue above. I should hopefully have it fixed for next week's release.
thanks!