From df67a914d7ee892ce73468095662209adee27ceb Mon Sep 17 00:00:00 2001 From: Frank Natividad Date: Thu, 1 Aug 2024 11:53:53 -0700 Subject: [PATCH] feat: enable grpc.lb.locality label for client-side metrics --- .../google/cloud/storage/OpenTelemetryBootstrappingUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/google-cloud-storage/src/main/java/com/google/cloud/storage/OpenTelemetryBootstrappingUtils.java b/google-cloud-storage/src/main/java/com/google/cloud/storage/OpenTelemetryBootstrappingUtils.java index ed0ba544e5..fcf1440b49 100644 --- a/google-cloud-storage/src/main/java/com/google/cloud/storage/OpenTelemetryBootstrappingUtils.java +++ b/google-cloud-storage/src/main/java/com/google/cloud/storage/OpenTelemetryBootstrappingUtils.java @@ -102,6 +102,7 @@ static void enableGrpcMetrics( GrpcOpenTelemetry grpcOpenTelemetry = GrpcOpenTelemetry.newBuilder() .sdk(openTelemetrySdk) + .addOptionalLabel("grpc.lb.locality") .enableMetrics(METRICS_TO_ENABLE) .build(); ApiFunction channelConfigurator =