Skip to content

Commit 0a2622d

Browse files
committed
Fix lint error
1 parent a982c69 commit 0a2622d

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

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

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,7 @@ public static class Builder
829829
private boolean enableApiTracing = SpannerOptions.environment.isEnableApiTracing();
830830
private boolean enableExtendedTracing = SpannerOptions.environment.isEnableExtendedTracing();
831831
private boolean enableBuiltInMetrics = SpannerOptions.environment.isEnableBuiltInMetrics();
832-
private boolean enableEndToEndTracing =
833-
SpannerOptions.environment.isEnableEndToEndTracing();
832+
private boolean enableEndToEndTracing = SpannerOptions.environment.isEnableEndToEndTracing();
834833

835834
private static String createCustomClientLibToken(String token) {
836835
return token + " " + ServiceOptions.getGoogApiClientLibName();
@@ -1432,10 +1431,10 @@ public Builder setEnableExtendedTracing(boolean enableExtendedTracing) {
14321431
}
14331432

14341433
/**
1435-
* Sets whether to enable end to end tracing. Enabling this option will create the
1436-
* trace spans at the Spanner layer. By default, end to end tracing is disabled.
1437-
* Enabling end to end tracing requires OpenTelemetry to be set up. Simply enabling
1438-
* this option won't generate traces at Spanner layer.
1434+
* Sets whether to enable end to end tracing. Enabling this option will create the trace spans
1435+
* at the Spanner layer. By default, end to end tracing is disabled. Enabling end to end tracing
1436+
* requires OpenTelemetry to be set up. Simply enabling this option won't generate traces at
1437+
* Spanner layer.
14391438
*/
14401439
public Builder setEnableEndToEndTracing(boolean enableEndToEndTracing) {
14411440
this.enableEndToEndTracing = enableEndToEndTracing;
@@ -1774,8 +1773,8 @@ public boolean isEnableExtendedTracing() {
17741773
}
17751774

17761775
/**
1777-
* Returns whether end to end tracing is enabled. If this option is enabled then trace spans
1778-
* will be created at the Spanner layer.
1776+
* Returns whether end to end tracing is enabled. If this option is enabled then trace spans will
1777+
* be created at the Spanner layer.
17791778
*/
17801779
public boolean isEndToEndTracingEnabled() {
17811780
return enableEndToEndTracing;

google-cloud-spanner/src/test/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpcTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,7 @@ public <ReqT, RespT> ServerCall.Listener<ReqT> interceptCall(
223223
isRouteToLeader =
224224
(routeToLeaderHeader != null && routeToLeaderHeader.equals("true"));
225225
isEndToEndTracing =
226-
(endToEndTracingHeader != null
227-
&& endToEndTracingHeader.equals("true"));
226+
(endToEndTracingHeader != null && endToEndTracingHeader.equals("true"));
228227
}
229228
return Contexts.interceptCall(Context.current(), call, headers, next);
230229
}

0 commit comments

Comments
 (0)