Skip to content

Commit c291821

Browse files
RKestcopybara-github
authored andcommitted
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 <maxind@google.com> PiperOrigin-RevId: 943888837
1 parent 44d747e commit c291821

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/google/adk/telemetry/_metrics.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
unit="1",
100100
description="Number of inference (model) calls per agent invocation.",
101101
explicit_bucket_boundaries_advisory=[
102+
0,
102103
1,
103104
2,
104105
3,
@@ -118,6 +119,7 @@
118119
unit="1",
119120
description="Number of tool calls per agent invocation.",
120121
explicit_bucket_boundaries_advisory=[
122+
0,
121123
1,
122124
2,
123125
3,

0 commit comments

Comments
 (0)