You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
impl(storage): add ServerUnreachedMetrics recorder for OTel server.unreached counter - #16714
Adds the internal ServerUnreachedMetrics recorder for the gcp.storage.client.server.unreached OpenTelemetry counter (UInt64Counter, unit {request}).
Records failed attempts that did not reach Google Cloud Storage with the standard Storage base attributes (gcp.client.version, gcp.client.artifact, gcp.client.service, server.address) plus rpc.system.name, gcp.storage.operation, network.path, and error.type, propagating the explicit opentelemetry::context::Context and safely no-oping when the provider, meter, or instrument is null.
Also registers server_unreached_metrics.{h,cc,_test.cc} in Bazel and CMake build files.
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces the ServerUnreachedMetrics class to track and record failed requests that do not reach Google Cloud Storage, along with corresponding unit tests and build configuration updates. The review feedback suggests simplifying the implementation and tests by replacing the custom SemanticVersionString() helper with the existing google::cloud::version_string() function, which also ensures pre-release or development suffixes are correctly preserved.
The reason will be displayed to describe this comment to others. Learn more.
We can remove the redundant SemanticVersionString() helper function and use google::cloud::version_string() directly. This simplifies the code and ensures any pre-release or development suffixes are correctly preserved in the metrics.
❌ Patch coverage is 96.90722% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.78%. Comparing base (fa26249) to head (902964c).
❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
This branch has not been deployed
No deployments
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
api: storageIssues related to the Cloud Storage API.
1 participant
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.
Adds the internal
ServerUnreachedMetricsrecorder for thegcp.storage.client.server.unreachedOpenTelemetry counter (UInt64Counter, unit{request}).Records failed attempts that did not reach Google Cloud Storage with the standard Storage base attributes (
gcp.client.version,gcp.client.artifact,gcp.client.service,server.address) plusrpc.system.name,gcp.storage.operation,network.path, anderror.type, propagating the explicitopentelemetry::context::Contextand safely no-oping when the provider, meter, or instrument is null.Also registers
server_unreached_metrics.{h,cc,_test.cc}in Bazel and CMake build files.Created by cpriti-o11y-agent