Token and Cost Metrics not getting displayed in Dashboard #1417
KalidasKalimuthu
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I created a simple customer-service-agent (https://github.com/cuppibla/adk_eval_starter/blob/main/customer_service_agent/agent.py) using google adk and gemini-2.5-flash-lite as LLM and python 3.13 .
I am able to successfully integrate the agent with agentops and able to view the Session, LLM Calls, Tool Calls in the dashboard ,however tokens and costs are not getting displayed. Could you pls help to address the issue?
Trace Output:
🖇 AgentOps: Validating spans for trace ID: d381e4650f9748c6fd34d213c2e38767
🖇 AgentOps: Found 12 span(s) in trace
🖇 AgentOps: Trace metrics - Total tokens: 0, Cost: $0.0000000
🖇 AgentOps: No LLM spans found via attribute inspection
❌ Error validating spans: No LLM activity detected in trace d381e4650f9748c6fd34d213c2e38767. Found spans: ['adk.agent.customer_service_agent', 'adk.llm.gemini-2.5-flash-lite', 'adk.agent.customer_service_agent', 'adk.llm.gemini-2.5-flash-lite', 'adk.agent.customer_service_agent', 'adk.llm.gemini-2.5-flash-lite', 'adk.tool.get_purchase_history', 'adk.llm.gemini-2.5-flash-lite', 'adk.agent.customer_service_agent', 'adk.llm.gemini-2.5-flash-lite', 'adk.tool.issue_refund', 'adk.llm.gemini-2.5-flash-lite'], Token usage: 0
Beta Was this translation helpful? Give feedback.
All reactions