From 0e9f78c7ee715f2018331678ad5ae28b26e8ce43 Mon Sep 17 00:00:00 2001 From: Hanzhen Yi <33737743+hzyi-google@users.noreply.github.com> Date: Tue, 5 Jun 2018 15:28:38 -0700 Subject: [PATCH] Add watchdog interceptor (#3346) --- .../cloud/spanner/spi/v1/SpannerInterceptorProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/SpannerInterceptorProvider.java b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/SpannerInterceptorProvider.java index 97c728ae2d83..09e625e2107a 100644 --- a/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/SpannerInterceptorProvider.java +++ b/google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/SpannerInterceptorProvider.java @@ -32,7 +32,8 @@ class SpannerInterceptorProvider implements GrpcInterceptorProvider { private static final List clientInterceptors = ImmutableList.of( new SpannerErrorInterceptor(), - new LoggingInterceptor(Logger.getLogger(GrpcSpannerRpc.class.getName()), Level.FINER)); + new LoggingInterceptor(Logger.getLogger(GrpcSpannerRpc.class.getName()), Level.FINER), + WatchdogInterceptor.newDefaultWatchdogInterceptor()); @Override public List getInterceptors() {