This is a migrated thread and some comments may be shown as answers.

Suggested Change to WPF Sample

1 Answer 34 Views
Monitor integration
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mark
Top achievements
Rank 1
Mark asked on 15 Dec 2014, 10:15 AM

Presently, the WPF Sample integration code does not catch exceptions like the winforms sample - this is pretty much the entire reason I want to use Analytics.

I suggest changing the OnStartup method to:
protected override void OnStartup(StartupEventArgs e)
        {
            // your existing startup logic
            Monitor = AnalyticsMonitorFactory.CreateMonitor("<ID>");
            Monitor.Start();
 
            AppDomain.CurrentDomain.UnhandledException += (s, ev) =>
            {
                Monitor.TrackException((Exception)ev.ExceptionObject);
            };
        }


1 Answer, 1 is accepted

Sort by
0
Richard Flamsholt
Telerik team
answered on 16 Dec 2014, 10:19 AM
Hi Mark,

Thanks for the input!

So far we have largely let each user decide how precisely to use the monitor and what kind of exceptions to track.

In the next release we'll take a much different approach and instead aim to automate as much as possible. That includes tracking this particular unhandled exception as well as several others, like e.g. Application.ThreadException. Your comment underlines this need so it's very welcome.

And no, I'm afraid I don't have an exact date for when this next monitor version will be released.

Regards,
Richard Flamsholt
Telerik
 
EQATEC Application Analytics is now Telerik Analytics. For more information on the new name, plus what's new in Telerik Analytics, please, check out the Analytics Service Announcement.
 
Tags
Monitor integration
Asked by
Mark
Top achievements
Rank 1
Answers by
Richard Flamsholt
Telerik team
Share this question
or