Dynatrace provides comprehensive app performance monitoring for MAUI applications. This includes tracking app startup times, monitoring navigation between screens, and capturing view-level metrics that help you understand user experience and identify performance bottlenecks.
The app start event is automatically captured by the native OneAgent when your application launches. This event provides insights into how long it takes for your app to become usable.
The native Android and iOS agents automatically capture:
App start monitoring is enabled by default. No additional configuration is required in your .NET MAUI code. The native agents handle this automatically.
Views represent individual screens of content in your application. Tracking views helps you understand user navigation patterns, identify slow-loading screens, and contextualize errors and performance issues.
MAUI only supports manual instrumentation of views at this time.
Use the StartView() method to manually track when a user enters a new screen:
using Dynatrace.MAUI;public partial class MainPage : ContentPage{public ProductDetailPage(){InitializeComponent();Agent.Instance.StartView("ProductDetailPage");}}
Use consistent, meaningful view names across your application. For example: HomePage, ProductListPage, ProductDetailPage, CheckoutPage, OrderConfirmationPage.
StartView() are associated with that view until another view is started.StartView() with an empty string are ignored.Application Not Responding (ANR) errors occur when the main thread is blocked for too long, causing the app to become unresponsive. Dynatrace automatically captures ANR events.
ANR reporting is enabled by default. To disable it, update your dynatrace.config.json:
{"android": {"autoStart": {"beaconUrl": "https://...","applicationId": "..."},"anrReporting": false},"ios": {"DTXBeaconUrl": "https://...","DTXApplicationId": "...","DTXANRReportingEnabled": false}}
ANR events are only sent if the user restarts the app within 10 minutes of the ANR occurring.