Skip to content

feat(storage): add internal payload timestamp plumbing for range reads - #16345

Open
kalragauri wants to merge 2 commits into
googleapis:feat/storage-experimental-metricsfrom
kalragauri:feat/storage-experimental-metrics
Open

feat(storage): add internal payload timestamp plumbing for range reads#16345
kalragauri wants to merge 2 commits into
googleapis:feat/storage-experimental-metricsfrom
kalragauri:feat/storage-experimental-metrics

Conversation

@kalragauri

Copy link
Copy Markdown
Contributor

This PR introduces internal timestamping logic to calculate latency components for Bidi-read ranges (AsyncReaderConnection::Read()). This PR acts as foundational plumbing. A follow-up PR will utilize these internal t4-t6 timestamps in object_descriptor_reader_tracing to construct and export OpenTelemetry metric histograms and span events.

@product-auto-label product-auto-label Bot added the api: storage Issues related to the Cloud Storage API. label Aug 12, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces telemetry timestamps (t4_, t5_, t6_) under conditional compilation to track latency in the asynchronous read path. The review feedback correctly highlights a severe ABI stability risk caused by adding these conditionally-compiled member variables directly to the public ReadPayload class. The reviewer recommends moving these fields into the internal implementation class (impl_) to preserve ABI stability across different build configurations.

Comment thread google/cloud/storage/async/object_responses.h Outdated
Comment thread google/cloud/storage/internal/async/read_payload_impl.h Outdated
@kalragauri
kalragauri marked this pull request as ready for review August 12, 2026 11:52
@kalragauri
kalragauri requested review from a team as code owners August 12, 2026 11:52
@kalragauri
kalragauri requested a review from v-pratap August 12, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant