Skip to content

Commit b681ee0

Browse files
authored
feat: enable grpc.lb.locality label for client-side metrics (#2659)
1 parent 48e7a4c commit b681ee0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

google-cloud-storage/src/main/java/com/google/cloud/storage/OpenTelemetryBootstrappingUtils.java

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ static void enableGrpcMetrics(
102102
GrpcOpenTelemetry grpcOpenTelemetry =
103103
GrpcOpenTelemetry.newBuilder()
104104
.sdk(openTelemetrySdk)
105+
.addOptionalLabel("grpc.lb.locality")
105106
.enableMetrics(METRICS_TO_ENABLE)
106107
.build();
107108
ApiFunction<ManagedChannelBuilder, ManagedChannelBuilder> channelConfigurator =

0 commit comments

Comments
 (0)