From c2918211f82a84f91f8ee852e1b90a225f17f0b2 Mon Sep 17 00:00:00 2001 From: Max Ind Date: Tue, 7 Jul 2026 07:43:54 -0700 Subject: [PATCH] fix(telemetry): add 0 bucket boundary to per-invocation call count histograms Include 0 in the explicit bucket boundaries for the inference call count and tool call count histograms so invocations with 0 model/tool calls and 1 mode/tool calls can be differentiated. Co-authored-by: Max Ind PiperOrigin-RevId: 943888837 --- src/google/adk/telemetry/_metrics.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/google/adk/telemetry/_metrics.py b/src/google/adk/telemetry/_metrics.py index be5df9d494..4dbb27b358 100644 --- a/src/google/adk/telemetry/_metrics.py +++ b/src/google/adk/telemetry/_metrics.py @@ -99,6 +99,7 @@ unit="1", description="Number of inference (model) calls per agent invocation.", explicit_bucket_boundaries_advisory=[ + 0, 1, 2, 3, @@ -118,6 +119,7 @@ unit="1", description="Number of tool calls per agent invocation.", explicit_bucket_boundaries_advisory=[ + 0, 1, 2, 3,