-
Notifications
You must be signed in to change notification settings - Fork 50
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
Issue with EventSource integration #44
Comments
Anton, what version of the SF SDK are our using? Regarding (2) we had a similar issue with one of the SF EventSources as well, but I believe that was also fixed a couple of releases ago. When you are saying the message is related to "EventSource logger", which EventSource does it refer to, exactly? Regarding (3) can you describe how you enabled Microsoft-Extensions-Logging EventSource? In particular, did you call AddEventSourceLogger() to enable that source in your app startup code? A standalone repro app that demonstrates the problem and that we could download from GitHub and play with would be very helpful |
Answers on 2 and 3 is same, this is OOB EventSource provider from ASP.NET Core https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?tabs=aspnetcore2x#eventsource |
Sorry for delay, here is info about Service Fabric API version: 2.8.219
|
well, sorry, my mistake - sample project already with the latest API. |
I cannot reproduce the issue using the project you provided, sorry. On my machine I did uninstall previous SF SDK and SF runtime, installed the latest one using Web Platform Installer & run the app. The only change that I made was to set the platform for the service project to x64, which is a common SF requirement as you probably know. Can you try on a different machine? |
Hm, this is interesting. So everything works for you including events in Diagnostic Events window in Visual Studio? |
@antonGritsenko that is correct |
Sorry for silence, I need some time to prepare new machine |
I do not know if I understand this article correctly, |
@wminos the name of the EventSource that EventSourceLogger is using is "Microsoft-Extensions-Logging". Can you confirm you have included that EventSource in the Diagnostic Events window configuration? |
You have to specify event source with leading asterisk to catch events. Something like '*Microsoft-Extensions-Logging' |
@mgrishkov no you don't, not inside Visual Studio. Visual Studio does not require the asterisk for Event Sources in the Diagnostic Events window. |
@karolz-ms Thank you.
|
These errors are usually transient and VS should be able to recover. Would it be possible for you to share an application that exhibits the problem, so that I can try to reproduce it myself? |
Environment
This error occurs too at shared project by antonGritsenko. The problem still occurs. |
Just custom logging cause the above error. (ETW LISTENER ERROR MESSAGE) For reference, the internal logs of the ASP.NET Core framework are displayed well as follows.
|
Sorry for late reply @wminos. I am able to reproduce the problem--looks like a bug in the VS diagnostics events window. Thank you for the report! I am going to pass this to the owners of the feature. |
I installed the latest version (Service Fabric SDK 3.1.262, Runtime 6.2.262), but there are still issues. |
Is this related to https://github.com/aspnet/Logging/issues/844 ? |
@kwaclaw to me aspnet/logging 844 looks like a separate issue. This kind of error message is usually a result of a bug in one of the EventSource's used by the application, and not an issue with the EventSourceLogger. The issue described here is a bug in Visual Studio. If you pick up the latest VS 2017 update (or install latest SF tools for VS 2015, i.e. 283 or later), you should get the fix and the problem should go away. |
It seems to work normally in ServiceFabric SDK 3.1.283. |
Hello all
We have Service Fabric project builds using ASP.NET Core template with .NET Framework 4.6. Inside of the project we using ILogger from ASP.NET Core and EventSource build-in logger. With regular project (out of Service Fabric) it works fine, but inside Service Fabric it kind of strange behavior:
(2) looks like related to this, but in full framework:
dotnet/coreclr#8942
https://github.com/dotnet/corefx/issues/15269
microsoft/ApplicationInsights-SDK-Labs#97
But I have no explanation for (3). Any inputs?
The text was updated successfully, but these errors were encountered: