You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/observability/metrics.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,10 @@ When metrics are enabled, ADK automatically instruments the agent's lifecycle, w
28
28
|**`gen_ai.agent.request.size`**| Histogram | The size or complexity of the incoming request sent to the agent. |`gen_ai.agent.name`|
29
29
|**`gen_ai.agent.response.size`**| Histogram | The size or complexity of the final response generated by the agent. |`gen_ai.agent.name`|
30
30
|**`gen_ai.agent.workflow.steps`**| Histogram | Tracks the number of iterative steps or reasoning loops an agent takes to complete a workflow. |`gen_ai.agent.name`|
31
+
|**`gen_ai.client.operation.duration`***| Histogram | The duration of GenAI client operations (e.g., LLM calls). |`gen_ai.agent.name`, `gen_ai.agent.version`, `error.type`|
\***Note:** ADK natively emits `gen_ai.client.operation.duration` and `gen_ai.client.token.usage`. However, if the `opentelemetry-instrumentation-google-genai` package is installed, ADK suppresses its native emission of these metrics to avoid duplicates. In that case, the metrics will lack the agentic attributes (`gen_ai.agent.name`, `gen_ai.agent.version`).
0 commit comments