Skip to content

Commit

Permalink
fix: docs changes for maui plugin and release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
ndesai-newrelic committed Feb 22, 2024
1 parent 90ea8b4 commit 2a49e22
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 81 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ First, you'll need to add our agent, a NuGet package, to your MAUI project:
</Step>
<Step>
### Copy your application token from the UI [#app-token]
The application token is used for New Relic to authenticate your .NET MAUI app's data.
The application token is used for New Relic to authenticate your .NET MAUI app's data.
To view and copy your application token in the New Relic UI:
1. Go to **[one.newrelic.com](https://one.newrelic.com/all-capabilities)**, click **Add data**, then click **Mobile**.
2. Select your .NET MAUI app.
2. Select your .NET MAUI app.
3. Go to **Settings > Application** and copy the displayed **Application token**.


Expand All @@ -77,21 +77,21 @@ using NewRelic.MAUI.Plugin;
{
InitializeComponent();
MainPage = new AppShell();

CrossNewRelic.Current.HandleUncaughtException();
CrossNewRelic.Current.TrackShellNavigatedEvents();
// Set optional agent configuration
// Options are: crashReportingEnabled, loggingEnabled, logLevel, collectorAddress, crashCollectorAddress
// AgentStartConfiguration agentConfig = new AgentStartConfiguration(true, true, LogLevel.INFO, "mobile-collector.newrelic.com", "mobile-crash.newrelic.com");
// Options are: crashReportingEnabled, loggingEnabled, logLevel, collectorAddress, crashCollectorAddress,analyticsEventEnabled, networkErrorRequestEnabled, networkRequestEnabled, interactionTracingEnabled,webViewInstrumentation, fedRampEnabled
// AgentStartConfiguration agentConfig = new AgentStartConfiguration(crashReportingEnabled:false);
if (DeviceInfo.Current.Platform == DevicePlatform.Android)
{
CrossNewRelic.Current.Start("<YOUR_APP_TOKEN>");
// Start with optional agent configuration
// Start with optional agent configuration
// CrossNewRelic.Current.Start("<YOUR_APP_TOKEN>", agentConfig);
} else if (DeviceInfo.Current.Platform == DevicePlatform.iOS)
{
CrossNewRelic.Current.Start("<YOUR_APP_TOKEN>");
// Start with optional agent configuration
// Start with optional agent configuration
// CrossNewRelic.Current.Start("<YOUR_APP_TOKEN>", agentConfig);
}
}
Expand Down Expand Up @@ -239,4 +239,4 @@ The following customizations are available for the .NET MAUI agent.

Missing HTTP data in the UI?

After installing the .NET MAUI agent, wait at least 5 minutes. If no HTTP data appears on the HTTP errors and HTTP requests UI pages, make sure you used `HttpMessageHandler` in `HttpClient`.
After installing the .NET MAUI agent, wait at least 5 minutes. If no HTTP data appears on the HTTP errors and HTTP requests UI pages, make sure you used `HttpMessageHandler` in `HttpClient`.

0 comments on commit 2a49e22

Please sign in to comment.