From d69f1a4f25dfb5ab260cf0e575ea8f4bd15b8d2b Mon Sep 17 00:00:00 2001 From: rghetia Date: Wed, 14 Nov 2018 14:49:17 -0500 Subject: [PATCH] increase reporting interval. (#96) also fixed a bug in SD export registration in Ads. --- .../src/main/java/hipstershop/AdService.java | 22 +++++++++++++------ src/checkoutservice/main.go | 1 + src/frontend/main.go | 1 + src/productcatalogservice/server.go | 1 + src/shippingservice/main.go | 1 + 5 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/adservice/src/main/java/hipstershop/AdService.java b/src/adservice/src/main/java/hipstershop/AdService.java index 9ba3329..1224efe 100644 --- a/src/adservice/src/main/java/hipstershop/AdService.java +++ b/src/adservice/src/main/java/hipstershop/AdService.java @@ -207,16 +207,24 @@ public class AdService { // Registers logging trace exporter. LoggingTraceExporter.register(); long sleepTime = 10; /* seconds */ - int maxAttempts = 3; + int maxAttempts = 5; + boolean statsExporterRegistered = false; + boolean traceExporterRegistered = false; for (int i=0; i