eureka
eureka copied to clipboard
Add debug log for sending registry information in Eureka server
Description
Add logs for debugging on the side that sends the registry information.
Background
Sometimes when I give a setting like eureka.client.registry-fetch-interval-seconds
, I want to know that it works.
On the Eureka client, it displays the message Getting all instance registry info from the eureka server
.
But not on the server.
And it's not easy to find the corresponding code on the client.
Corresponding class and method name
client | server |
---|---|
DiscoveryClient.fetchRegistry(..) |
ApplicationsResource.getContainers(..) |
If we had a single line of log, it would have been much easier to figure this out.
Purpose
For debugging, to know where and when Registry information was returned.
To know when the Eureka server sent registry information and which class is responsible for that.
We expect this log to be informative for open source contributors as well.