-
Notifications
You must be signed in to change notification settings - Fork 26
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 RunAsync exceptions #15
Comments
Hi Ohad, Thank you for your suggestion. I think your suggestion is good and valid. For now, you can manually add that call in your RunAsync method. We will see how we can do that automatically from Application Insights SDK. |
@SergeyKanzhelev @Dmitry-Matveev Where can I read more about them? How to add them? If there are any specific type of applications they work on? How do they work? @ohadjas - I suspect this might be the answer here. Let's wait for the experts to comment. |
|
Cool! Closing this for now since this addresses automatic capturing of unhandled exceptions. I future we can take a holistic look at smart defaults - as in - what set of AI sdks should be added by default for service fabric projects (based on the type of project). For now the model is that the user would use AI.SF nuget package to compliment other AI sdks. The other sdks are added and configured by the user as they would do for non service fabric projects. This puts user in full control of opting-in into what they want to auto collect. The AI.SF sdk just ensures that the collected telemetry is decorated with the right SF context before being sent. |
oops - sorry! |
I see. Let me reactivate this issue so that it stays on the backlog. |
RunAsync exceptions can have various consequences:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.servicefabric.services.runtime.statelessservice.runasync?view=azure-dotnet.
It stands to reason that such exceptions would be automatically logged by
ApplicationInsights-ServiceFabric
usingTelemetryClient.TrackException
(similar to how request exceptions are tracked by the ASP.NET Application Insights SDKs).The text was updated successfully, but these errors were encountered: