fix(storage): Add telemetry tracing support for async stream Close() by kalragauri · Pull Request #16118 · googleapis/google-cloud-cpp · GitHub
Skip to content

fix(storage): Add telemetry tracing support for async stream Close()#16118

Merged
kalragauri merged 3 commits into
googleapis:mainfrom
kalragauri:feature/appendable-close
Jun 5, 2026
Merged

fix(storage): Add telemetry tracing support for async stream Close()#16118
kalragauri merged 3 commits into
googleapis:mainfrom
kalragauri:feature/appendable-close

Conversation

@kalragauri

Copy link
Copy Markdown
Contributor

This PR introduces OpenTelemetry tracing support for the newly introduced GCS Close() operation in the connection wrapper, ensuring end-to-end observability on connection half-close teardowns. This is a follow-up to #16112.

@product-auto-label product-auto-label Bot added the api: storage Issues related to the Cloud Storage API. label May 27, 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 implements the Close method override in AsyncWriterConnectionTracing to enable OpenTelemetry tracing for close operations. It captures metadata such as message type, message ID, thread ID, and payload size, and logs a "gl-cpp.close" event. Additionally, corresponding unit tests (Close and CloseError) have been added to verify successful and failed close operations and their tracing events. I have no feedback to provide as there are no review comments.

@codecov

codecov Bot commented May 27, 2026

Copy link
Copy Markdown

@kalragauri kalragauri marked this pull request as ready for review May 27, 2026 07:03
@kalragauri kalragauri requested review from a team as code owners May 27, 2026 07:03
@kalragauri kalragauri requested a review from v-pratap May 27, 2026 07:03
@kalragauri kalragauri merged commit 0d6909f into googleapis:main Jun 5, 2026
56 of 60 checks passed
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.

2 participants