Skip to content

Commit 94e8161

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -919,8 +919,8 @@ 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"
923+
.equalsIgnoreCase(System.getenv(SPANNER_DISABLE_DIRECT_ACCESS_GRPC_BUILTIN_METRICS));
924924
}
925925

926926
@Override

0 commit comments

Comments
 (0)