#BAEL-3027:fix bug (#13553)
Co-authored-by: h_sharifi <h_sharifi@modernisc.com>
This commit is contained in:
committed by
GitHub
parent
68c8aa2bb1
commit
101f848d99
+2
-3
@@ -51,11 +51,10 @@ public class RatingServiceApplication {
|
||||
@Override
|
||||
public void report(Span span) {
|
||||
InstanceInfo instance = eurekaClient.getNextServerFromEureka("zipkin", false);
|
||||
if (!(baseUrl != null && instance.getHomePageUrl().equals(baseUrl))) {
|
||||
if (baseUrl == null || !instance.getHomePageUrl().equals(baseUrl)) {
|
||||
baseUrl = instance.getHomePageUrl();
|
||||
delegate = new HttpZipkinSpanReporter(new RestTemplate(), baseUrl, zipkinProperties.getFlushInterval(), spanMetricReporter);
|
||||
if (!span.name.matches(skipPattern)) delegate.report(span);
|
||||
}
|
||||
delegate = new HttpZipkinSpanReporter(new RestTemplate(), baseUrl, zipkinProperties.getFlushInterval(), spanMetricReporter);
|
||||
if (!span.name.matches(skipPattern)) delegate.report(span);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user