Skip to content

Avoid recreating existing metric descriptors in MetricsCollector#294

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_953447159
Jul 24, 2026
Merged

Avoid recreating existing metric descriptors in MetricsCollector#294
copybara-service[bot] merged 1 commit into
mainfrom
test_953447159

Conversation

@copybara-service

Copy link
Copy Markdown

Avoid recreating existing metric descriptors in MetricsCollector

Before creating a metric descriptor, the MetricsCollector now checks if it already exists using get_metric_descriptor. If the descriptor is found, creation is skipped to avoid redundant API calls.

Before creating a metric descriptor, the MetricsCollector now checks if it already exists using get_metric_descriptor. If the descriptor is found, creation is skipped to avoid redundant API calls.

PiperOrigin-RevId: 953471222
@copybara-service
copybara-service Bot merged commit 7acdefd into main Jul 24, 2026
@copybara-service
copybara-service Bot deleted the test_953447159 branch July 24, 2026 18:29
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