Add Initialization Code to your Application
To add initialization code to your application, call UseAppDymamics() MauiProgram CreateMauiApp()
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseAppDynamics();
return builder.Build();
}
Get an EUM App Key
The EUM App Key is a unique identifier used to associate end user data which specific End-User Monitoring applications. Each .NET MAUI application is usually associated with one EUM App Key. For your applications to be monitored, you must add the EUM App Key to the MAUI Agent instrumentation package.
To get the EUM App Key in the Controller:
- Go to User Experience.
- Under the Mobile Apps tab, click Add App > Cross Platform.
- In Step 1, select a Mobile App Group.
- In Step 2, select the Xamarin framework.