Skip to content

[pull] main from google:main#397

Merged
pull[bot] merged 1 commit into
CrazyForks:mainfrom
google:main
Jul 2, 2026
Merged

[pull] main from google:main#397
pull[bot] merged 1 commit into
CrazyForks:mainfrom
google:main

Conversation

@pull

@pull pull Bot commented Jul 2, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Adds the two per-invocation call-count metrics from semconv #336
(open-telemetry/semantic-conventions-genai#336):

* gen_ai.invoke_agent.inference_calls: model calls in one invoke_agent span.
* gen_ai.invoke_agent.tool_calls: tool calls in one invoke_agent span.

Both are counted on the per-span TelemetryContext at the call sites
(record_inference_telemetry, record_tool_execution) and flushed in
record_agent_invocation, keyed by gen_ai.agent.name. The active span's
TelemetryContext is carried in the OpenTelemetry context. One point per
invoke_agent span, so a multi-agent invocation does not double count. Failed
calls still count; only client-side tool calls count. Always emitted (a no-op
without a MeterProvider).

PiperOrigin-RevId: 941818886
@pull pull Bot locked and limited conversation to collaborators Jul 2, 2026
@pull pull Bot added the ⤵️ pull label Jul 2, 2026
@pull pull Bot merged commit dec2182 into CrazyForks:main Jul 2, 2026
1 of 16 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant