M
Mastra•4w ago
kosukeoya

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
Mastra Triager
Mastra Triager•4w ago
šŸ“ 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!
_roamin_
_roamin_•4w ago
Hey @kosukeoya ! I'm not sure that's feasbile at the moment, cc @Eric
Eric
Eric•4w ago
@kosukeoya I'm assuming this question is specific to the OtelExporter?
kosukeoya
kosukeoyaOP•4w ago
yes!
Eric
Eric•4w ago
thanks for confirming @kosukeoya . Can I also ask which version of mastra you are currently using?
kosukeoya
kosukeoyaOP•4w ago
mastra/core:0.24.1 mastra/otel-exporter:0.3.3 Should I use v1beta?
Eric
Eric•4w ago
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.
kosukeoya
kosukeoyaOP•4w ago
It would be great if you could add to the 0.x versions.
Eric
Eric•3w ago
i can do that. Please follow the status in the issue above. I should hopefully have it fixed for next week's release.
kosukeoya
kosukeoyaOP•3w ago
thanks!

Did you find this page helpful?