-
1. Re: How to monitor/inspect the lra-coordinator
mmusgrov Oct 2, 2019 11:49 AM (in response to rafaelcba)1 of 1 people found this helpfulWe are focusing most of our efforts on implementing version 1 of the microprofile-lra spec. In version 2 we will be looking at metrics and tracing.
The lra-coordinator is the service that can expose information about an LRA but we only provide basic data:
this.lraId // a unique id for the LRA
this.clientId // client provided name for the LRA
this.status // the current status of the LRA (according to a simple state model) - permissible transitions are described in the spec
this.isTopLevel // LRAs can be nested
this.startTime // the UTC time in milliseconds when the LRA was created
this.finishTime // the UTC time in milliseconds when the LRA becomes eligible for cancellation
The coordinator listens on a REST endpoint so you can obtain the above information using something like curl: curl -X GET http://localhost:8080/lra-coordinator
In version 2 of the specification we will provide a java client API to obtain management information such as this. So then would be an excellent opportunity for you to get involved in defining which information would be useful.
We do not expose information about which participants are enlisted in the LRA (since that could be argued as being a security loophole).
The microprofile-lra spec and the narayana implementation are open source projects so if you would like have things included then just raise another request on this forum or raise an issue on the microprofile-lra issue tracker.
-
2. Re: How to monitor/inspect the lra-coordinator
rafaelcba Oct 3, 2019 5:22 PM (in response to mmusgrov)Hi mmusgrov!
Many thanks for the explanation. Very helpful. Good to know about the plans around spec version 2. I'll try to track there.