From e93a32958a9763dd7f0274e28aea18211eec3fd1 Mon Sep 17 00:00:00 2001 From: ndesai Date: Thu, 23 Jan 2025 12:14:28 -0600 Subject: [PATCH 1/2] docs: android agent release --- .../configure-new-relic-gradle-plugin.mdx | 27 +++++++++++++++++++ .../android-release-notes/android-763.mdx | 21 +++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 src/content/docs/release-notes/mobile-release-notes/android-release-notes/android-763.mdx diff --git a/src/content/docs/mobile-monitoring/new-relic-mobile-android/install-configure/configure-new-relic-gradle-plugin.mdx b/src/content/docs/mobile-monitoring/new-relic-mobile-android/install-configure/configure-new-relic-gradle-plugin.mdx index 2a4579927d2..ce97c158f9f 100644 --- a/src/content/docs/mobile-monitoring/new-relic-mobile-android/install-configure/configure-new-relic-gradle-plugin.mdx +++ b/src/content/docs/mobile-monitoring/new-relic-mobile-android/install-configure/configure-new-relic-gradle-plugin.mdx @@ -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. + + + logInstrumentationEnabled + + Replaces Android Util Log Classes with NewRelic Log Method for log reporting + • Default: true + + Supported when used with Gradle 7.4 and higher. + + @@ -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 } ``` @@ -153,4 +166,18 @@ Here are some simple examples showing how to apply plugin configuration options } ``` + + + To disable log instrumentation + + ```gradle + newrelic { + // disable log instrumentation + logInstrumentationEnabled false + } + ``` + diff --git a/src/content/docs/release-notes/mobile-release-notes/android-release-notes/android-763.mdx b/src/content/docs/release-notes/mobile-release-notes/android-release-notes/android-763.mdx new file mode 100644 index 00000000000..250a220c9b7 --- /dev/null +++ b/src/content/docs/release-notes/mobile-release-notes/android-release-notes/android-763.mdx @@ -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). From a9971b7b5def302a363aa6d776be34f7a6796910 Mon Sep 17 00:00:00 2001 From: ndesai Date: Thu, 23 Jan 2025 17:50:59 -0600 Subject: [PATCH 2/2] docs: added deprecation message for xamarin agent --- .../monitor-your-xamarin-application.mdx | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/src/content/docs/mobile-monitoring/new-relic-mobile-xamarin/monitor-your-xamarin-application.mdx b/src/content/docs/mobile-monitoring/new-relic-mobile-xamarin/monitor-your-xamarin-application.mdx index 47f965aeeb1..fb540a8f7fd 100644 --- a/src/content/docs/mobile-monitoring/new-relic-mobile-xamarin/monitor-your-xamarin-application.mdx +++ b/src/content/docs/mobile-monitoring/new-relic-mobile-xamarin/monitor-your-xamarin-application.mdx @@ -9,6 +9,17 @@ metaDescription: "New Relic's Xamarin agent for Android and iOS: Features, compa freshnessValidatedDate: never --- + + 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. + + + + 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: * **Capture C# errors:** Identify and fix problems quickly. @@ -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); @@ -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"); @@ -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 **No HTTP data appears:** 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 **No HTTP data appears:** on the HTTP errors and HTTP requests UI pages, make sure you used `HttpMessageHandler` in `HttpClient`.