Skip to content
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

Track service/actor life cycle #17

Open
ohadschn opened this issue Aug 15, 2017 · 1 comment
Open

Track service/actor life cycle #17

ohadschn opened this issue Aug 15, 2017 · 1 comment

Comments

@ohadschn
Copy link

ohadschn commented Aug 15, 2017

It would be very handy to have automatic events tracked for the various life cycle events actors and services go through: registration, startup, shutdown, communication listener open/close, abort, etc.

For more information: https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-reliable-services-lifecycle.

@BoeseB
Copy link

BoeseB commented Apr 7, 2020

@ohadschn I just implemented some logging like this yesterday with the use of Autofac.DynamicProxies to decorate all service instances with logging.
A caveat is getting the async decoration right which we managed to get right with the help of this answer https://stackoverflow.com/a/39784559

I did not manage to decorate the hosting ActorService instance but only the actor classes them self.

Besides from that I am pretty happy with the logs generated and i can now see if any of the mentioned methods have performance problems etc.

Here is an example from the deployment yesterday afternoon:
image

I am afraid I can not share the actual code as it is from a customer project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants