Skip to content

Commit de0c5e6

Browse files
committed
enable grpc metrics only env is set to false
1 parent 1801433 commit de0c5e6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerOptions.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,8 +919,7 @@ public boolean isEnableBuiltInMetrics() {
919919

920920
@Override
921921
public boolean isEnableGRPCBuiltInMetrics() {
922-
return !Boolean.parseBoolean(
923-
System.getenv(SPANNER_DISABLE_DIRECT_ACCESS_GRPC_BUILTIN_METRICS));
922+
return "false".equalsIgnoreCase(System.getenv(SPANNER_DISABLE_DIRECT_ACCESS_GRPC_BUILTIN_METRICS));
924923
}
925924

926925
@Override

0 commit comments

Comments
 (0)