From c497e8440ed4390cfa1de243f73f7114caff8782 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Wed, 15 Nov 2023 11:24:37 -0800 Subject: [PATCH] feat: add client side retry config for export service PiperOrigin-RevId: 582745175 --- google/devtools/cloudprofiler/v2/BUILD.bazel | 5 +++- .../v2/cloudprofiler_grpc_service_config.json | 11 ++++++++ .../cloudprofiler/v2/cloudprofiler_v2.yaml | 27 +++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) diff --git a/google/devtools/cloudprofiler/v2/BUILD.bazel b/google/devtools/cloudprofiler/v2/BUILD.bazel index 942f52ce87e34..25c23b4504f93 100644 --- a/google/devtools/cloudprofiler/v2/BUILD.bazel +++ b/google/devtools/cloudprofiler/v2/BUILD.bazel @@ -213,7 +213,9 @@ php_gapic_library( rest_numeric_enums = True, service_yaml = "cloudprofiler_v2.yaml", transport = "grpc+rest", - deps = [":cloudprofiler_php_proto"], + deps = [ + ":cloudprofiler_php_proto", + ], ) # Open Source Packages @@ -322,6 +324,7 @@ load( csharp_proto_library( name = "cloudprofiler_csharp_proto", + extra_opts = [], deps = [":cloudprofiler_proto"], ) diff --git a/google/devtools/cloudprofiler/v2/cloudprofiler_grpc_service_config.json b/google/devtools/cloudprofiler/v2/cloudprofiler_grpc_service_config.json index 096cc7ba7d6f6..4d0bae473ddfb 100644 --- a/google/devtools/cloudprofiler/v2/cloudprofiler_grpc_service_config.json +++ b/google/devtools/cloudprofiler/v2/cloudprofiler_grpc_service_config.json @@ -11,6 +11,17 @@ "retryableStatusCodes": ["UNAVAILABLE"] } }, + { + "name": [{"service": "google.devtools.cloudprofiler.v2.ExportService"}], + "timeout": "130s", + "retryPolicy": { + "maxAttempts": 3, + "initialBackoff": "1s", + "maxBackoff": "10s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNAVAILABLE"] + } + }, { "name": [ { diff --git a/google/devtools/cloudprofiler/v2/cloudprofiler_v2.yaml b/google/devtools/cloudprofiler/v2/cloudprofiler_v2.yaml index a487f43fcaa4c..45e3b0f12e7db 100644 --- a/google/devtools/cloudprofiler/v2/cloudprofiler_v2.yaml +++ b/google/devtools/cloudprofiler/v2/cloudprofiler_v2.yaml @@ -20,3 +20,30 @@ authentication: https://www.googleapis.com/auth/cloud-platform, https://www.googleapis.com/auth/monitoring, https://www.googleapis.com/auth/monitoring.write + +publishing: + new_issue_uri: https://issuetracker.google.com/issues/new?component=1227997&template=1161103 + documentation_uri: https://cloud.google.com/profiler/docs + api_short_name: cloudprofiler + github_label: 'api: cloudprofiler' + doc_tag_prefix: cloudprofiler + organization: CLOUD + library_settings: + - version: google.devtools.cloudprofiler.v2 + launch_stage: GA + java_settings: + common: + destinations: + - PACKAGE_MANAGER + python_settings: + common: + destinations: + - PACKAGE_MANAGER + node_settings: + common: + destinations: + - PACKAGE_MANAGER + go_settings: + common: + destinations: + - PACKAGE_MANAGER