Skip to content
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

docs: android agent release #19791

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ The New Relic Gradle plugin extension allows you to configure the behavior of pl
Supported when used with Gradle 7.4 and higher.
</td>
</tr>

<tr>
<td><code>logInstrumentationEnabled</code></td>
<td>
Replaces Android Util Log Classes with NewRelic Log Method for log reporting
• Default: true

Supported when used with Gradle 7.4 and higher.
</td>
</tr>
</tbody>
</table>

Expand All @@ -94,6 +104,9 @@ Here are some simple examples showing how to apply plugin configuration options

// Exclude sample classes from instrumentation (regexp supported)
excludePackageInstrumentation("")

// Enable log instrumentation
logInstrumentationEnabled true
}
```
</Collapser>
Expand Down Expand Up @@ -153,4 +166,18 @@ Here are some simple examples showing how to apply plugin configuration options
}
```
</Collapser>

<Collapser
id="app-level"
title="Disable log instrumentation"
>
To disable log instrumentation

```gradle
newrelic {
// disable log instrumentation
logInstrumentationEnabled false
}
```
</Collapser>
</CollapserGroup>
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ metaDescription: "New Relic's Xamarin agent for Android and iOS: Features, compa
freshnessValidatedDate: never
---

<Callout variant="important">
Deprecation and end of support for NewRelic Xamarin NuGet package
On May 1, 2024, Microsoft will end support for all Xamarin SDKs. For this reason, we're deprecating the NewRelic Xamarin NuGet package in July 2024. We will let you know in which upcoming package version we will be only fixing bugs and addressing important security issues.

Also, in accordance with the NewRelic Support Policy, we will end support for the NewRelic Xamarin NuGet package in July 2025.

We recommend that you upgrade your Xamarin projects to .NET and use the NewRelic .NET MAUI NuGet package instead of the deprecated Xamarin NuGet package.

</Callout>


Our New Relic Xamarin agent monitors your Xamarin mobile app and provides deep insights into your app's performance, errors, and user experience. Once you install and configure the Xamarin agent, you'll be able to:

* <DNT>**Capture C# errors:**</DNT> Identify and fix problems quickly.
Expand Down Expand Up @@ -88,11 +99,11 @@ If you need to install the agent manually, follow these steps:
Application.Current.PageDisappearing += PageDisappearing;
CrossNewRelicClient.Current.HandleUncaughtException();
CrossNewRelicClient.Current.TrackShellNavigatedEvents();

// Set optional agent configuration
// Options are: crashReportingEnabled, loggingEnabled, logLevel, collectorAddress,
// crashCollectorAddress, analyticsEventEnabled, networkErrorRequestEnabled,
// networkRequestEnabled, interactionTracingEnabled, webViewInstrumentation, fedRampEnabled,
// Options are: crashReportingEnabled, loggingEnabled, logLevel, collectorAddress,
// crashCollectorAddress, analyticsEventEnabled, networkErrorRequestEnabled,
// networkRequestEnabled, interactionTracingEnabled, webViewInstrumentation, fedRampEnabled,
// offlineStorageEnabled, newEventSystemEnabled, backgroundReportingEnabled
// AgentStartConfiguration agentConfig = new AgentStartConfiguration(crashReportingEnabled:false);

Expand All @@ -101,7 +112,7 @@ If you need to install the agent manually, follow these steps:
CrossNewRelicClient.Current.Start("YOUR_APP_TOKEN");
// Start with optional agent configuration
// CrossNewRelicClient.Current.Start("YOUR_APP_TOKEN", agentConfig);
}
}
else if (Device.RuntimePlatform == Device.iOS)
{
CrossNewRelicClient.Current.Start("YOUR_APP_TOKEN");
Expand Down Expand Up @@ -258,4 +269,4 @@ The following customizations are available for the Xamarin agent.

Missing HTTP data in the UI?

After installing the .NET MAUI agent, wait at least 5 minutes. If <DNT>**No HTTP data appears:**</DNT> on the HTTP errors and HTTP requests UI pages, make sure you used `HttpMessageHandler` in `HttpClient`.
After installing the Xamarin agent, wait at least 5 minutes. If <DNT>**No HTTP data appears:**</DNT> on the HTTP errors and HTTP requests UI pages, make sure you used `HttpMessageHandler` in `HttpClient`.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
subject: Android agent
releaseDate: '2025-01-24'
version: 7.6.3
downloadLink: 'https://download.newrelic.com/android_agent/ant/NewRelic_Android_Agent_7.6.3.zip'
---


## New Features
- Introduced build-time feature flag for LogInstrumentation
- Enhanced logging by including Session Attributes as Log Attributes

## Bug Fixes
- Resolved missed session events in background reporting feature
- Fixed memory leak related to mobile handled exceptions during network unavailability
- Corrected application crash scenario during agent shutdown


## Support statement

We recommend updating the agent at least every three months. Find specific policies and dates for Android agent support in the [Mobile Monitoring Agents EOL Policy](/docs/mobile-monitoring/new-relic-mobile/get-started/mobile-agents-eol-policy/#android-eol).
Loading