Skip to content

Commit 7443231

Browse files
committed
null exception
1 parent d7a2a88 commit 7443231

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/HeaderInterceptor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ private void processHeader(
169169

170170
spannerRpcMetrics.recordGfeLatency(gfeLatency, attributes);
171171
spannerRpcMetrics.recordGfeHeaderMissingCount(0L, attributes);
172-
compositeTracer.recordGFELatency(gfeLatency);
172+
if (compositeTracer != null) {
173+
compositeTracer.recordGFELatency(gfeLatency);
174+
}
173175

174176
if (span != null) {
175177
span.setAttribute("gfe_latency", String.valueOf(gfeLatency));

0 commit comments

Comments
 (0)