-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing InstanceId into fargo.Instance struct #39
Comments
I see that this behavior changed in Eureka since my company took our internal fork from the upstream source. In our fork, Eureka extracts the instance ID from the "data center info" structure if its corresponding Java representation implements In our fork one can't supply an instance ID like you're proposing above without changing the Eureka server code—defining a new data center info type that implements |
With Eureka 1.3.1, I try to use this InstanceId without success. For my point of view, The only correct way (that I found) is to add below line into Instance struct. InstanceID string `xml:"instanceId,omitempty" json:"instanceId,omitempty"` Is it possible to add this? |
That's not where the Eureka server is going to look for an instance ID, though. The server will consult My reading of the current Eureka code shows the client acquiring its instance ID using the field you mention, but not the server honoring it. I'd need to hear more about your usage scenario to figure out why you're finding success using it. |
I have to plug my Go application with Spring Cloud Netflix Eureka server that already exists. With |
Hello,
Is it possible to add into fargo.Instance this field:
because if I use UniqueID func(i Instance) string
xml:"-" json:"-"
I have this error into eureka console:
Thx in adv
The text was updated successfully, but these errors were encountered: