Skip to content

Add client uptime metric#13261

Open
mgarolera wants to merge 1 commit into
googleapis:mainfrom
mgarolera:add-client-uptime-metric
Open

Add client uptime metric#13261
mgarolera wants to merge 1 commit into
googleapis:mainfrom
mgarolera:add-client-uptime-metric

Conversation

@mgarolera
Copy link
Copy Markdown

Add reporting for client uptime to help with observability and troubleshooting

@mgarolera mgarolera requested review from a team as code owners May 25, 2026 00:06
Copy link
Copy Markdown
Contributor

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

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 a new internal metric, bigtable.googleapis.com/internal/client/uptime, to track the total duration a Bigtable client is active. The changes include the definition of the ClientUptime metric class, its integration into the MetricRegistry and RecorderRegistry, and lifecycle management within MetricsImpl using a Stopwatch. A new test case has also been added to verify that the client uptime is correctly recorded and exported. I have no feedback to provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant