-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Application Performance Monitoring Integration #23
Comments
based on conversation just had on WPF\Winforms\UWP parity on Visual Studio App Center microsoft/appcenter-sdk-dotnet#620 |
@paulcbetts comments in slack
|
I definitely think this is useful. I have a similar AppCenter implementation that I use that is based on an
I would think some extension methods, but really should be a separate package that can stand on it's own. This has value outside just the boundaries of ReactiveUI and Splat. So if it is possible to publish a package that doesn't take dependencies on ReactiveUI or Splat that would be ideal to me.
costings meaning the overhead on performance? |
Definitely separate nuget package is what we want, whether we put that under the Splat brand not sure. Most likely just so users don't have to hunt it down. |
I think I would advocate for its own branding. That will be dependant on how decoupled it is from Splat though. |
financial and performance. application insights for example had legacy pricing model which is per node\device where now it is volume of data. but application insights is a valid target for https://github.com/worldbeater/ReactiveUI.RazorExample I wouldn't expect to support hockeyapp as it's migrating to appcenter. Probably worth building up a table of event types. (Global Error Handling, View Navigation, Feature Usage, etc) and agreeing which is the most appropriate. for example https://docs.microsoft.com/en-us/azure/azure-monitor/app/api-custom-events-metrics In theory you could treat everything as a page view with a url format /namespace/class/property - not that i'm advocating that approach :) |
My opinion Let's keep splat our generic utility library that is rx unaware. We should have this 100% as a separate nuget like our adapters but might be worth having a interface to the concept in the main splat nuget. It's fairly lightweight so not something I can see as standalone. |
bit more reading for .net core and desktop to application insights
|
AppCenter 2.2 preview now supports Winforms and WPF https://github.com/microsoft/appcenter-sdk-dotnet/releases/tag/2.2.1-preview
|
Application Performance Monitoring Integration
Summary
To offer Application Performance Monitoring integration similar to how the Logging integration works.
Motivation
Scenarios
As a developer I want to know how often a command\event subscription is used. The duration and success rate
As a developer I want to know of failures
As a developer I want to be able to group events by feature/subfeature (with subfeature recursion)
I appreciate the examples are focused at ReactiveCommand. But you could define a feature as being a view\viewmodel.
Part of this belongs at the splat level as the APM toolset could be a direct target of the ILogger, depending on the features offered by the APM library.
Detailed design
When I played with the concept I used a disposable class so start event happened at construction. End event happened as dispose. I could call the error method as required (Ie exception). Alternatively I could just use generic helper methods and never touch the IDisposable wrapper.
The idea would be either to have a feature usage tracking aware subclass to reactive object or allow an IEnableFeatureUsageTracking extension interface. You could then hook up a reactive command that is aware of the parent feature and allows specifying the subfeature details.
Possible consumers
Visual Studio App Center (with appreciation wpf\winforms etc still trailing on support)
New relic
Application insights
Exceptionless
There was an interface for the target framework to have flexibility on how it works
There were interfaces so ReactiveUI and other consumers wouldn't get bogged down in the design details of the target framework
A sample implementation for App Insights
How we teach this
In terms of Splat have some wrappers that show simple usage. Doesn't necessarily need the IDisposable pattern.
ReactiveUI integration into the ReactiveCommand itself. Or show how to use the Splat helpers inside the executing subscription. Draw back to this is multiple try\catch.
Aside from Feature Usage Tracking. There is also the error\crash reporting piece, we could report UnhandledExceptions at the RxApp level. You then have a training piece available that as part of testing and development people can use an APM tool to see the list of Exceptions getting down to the core.
Feature: The top level ViewModel.
SubFeature: ReactiveCommand, Event, Possibly even the IViewFor<>
It can be sold as an opt-in feature to new and existing users. Same way the logging works.
In terms of ReactiveCommands. do you want an optional string argument for the feature name that dictates if a command even uses this?
Drawbacks
source: https://docs.microsoft.com/en-us/appcenter/analytics/event-metrics
source: https://docs.microsoft.com/en-us/appcenter/sdk/analytics/uwp
Might need something like the code below. But dictating to users how to Feature Usage Tracking in a pre-defined format?
Alternatives
Offer interfaces but not the end integrations and patterns of implementations.
Or have ways to overload.
Unresolved questions
Is it actually useful \ desirable?
What level of integration for Splat\ReactiveUI?
How to avoid overcomplicating ReactiveObject and making this opt in? or just treat the inheriting classname as the default featurename? if so, use weaving etc rather than reflection?
People need to be aware of the costings of the APM tool they choose. This is around giving the facilities to make decisions based on what users are experiencing.
The text was updated successfully, but these errors were encountered: