feat(telemetry): add request-driven metric export for Agent Engine - #6510
Merged
Conversation
copybara-service
Bot
force-pushed
the
copybara/952166383
branch
3 times, most recently
from
July 29, 2026 14:57
faf4f9e to
51cd5ca
Compare
On the Vertex AI Agent Runtime CPU is throttled the instant a request finishes, so a background periodic metric exporter is starved between requests and drops data. This adds a request-driven metric reader (and the span processor + middleware that drive it) that collects and exports metrics on the request path, where CPU is guaranteed, without adding latency to any request. The default GCP metric exporter is also switched to a raw OTLP push exporter over telemetry.googleapis.com. Co-authored-by: Max Ind <maxind@google.com> PiperOrigin-RevId: 955921308
copybara-service
Bot
force-pushed
the
copybara/952166383
branch
from
July 29, 2026 16:17
51cd5ca to
8930d9b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(telemetry): add request-driven metric export for Agent Engine
On the Vertex AI Agent Runtime CPU is throttled the instant a request
finishes, so a background periodic metric exporter is starved between
requests and drops data. This adds a request-driven metric
reader (and the span processor + middleware that drive it) that
collects and exports metrics on the request path, where CPU is
guaranteed, without adding latency to any request.
The default GCP metric exporter is also switched to a raw OTLP push exporter
over telemetry.googleapis.com.
Co-authored-by: Max Ind maxind@google.com