From 2aaf439c430c799624144f02471c4eb8217eeda3 Mon Sep 17 00:00:00 2001 From: ywang Date: Thu, 27 Feb 2025 13:41:40 -0500 Subject: [PATCH] [NR-373715] add data endpoint settings --- .../mobile-sdk/configure-settings.mdx | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/src/content/docs/mobile-monitoring/new-relic-mobile/mobile-sdk/configure-settings.mdx b/src/content/docs/mobile-monitoring/new-relic-mobile/mobile-sdk/configure-settings.mdx index e61cd278a48..9d2dba3441c 100644 --- a/src/content/docs/mobile-monitoring/new-relic-mobile/mobile-sdk/configure-settings.mdx +++ b/src/content/docs/mobile-monitoring/new-relic-mobile/mobile-sdk/configure-settings.mdx @@ -88,6 +88,63 @@ NewRelic.withApplicationToken(NEW_RELIC_TOKEN) .start(this.getApplication()); ``` + ## Data endpoint settings [#android-data-endpoint-settings] + + + + + + + + + + + + + + + + + + + + + + + +
+ Description + + Example +
+ Enable or disable crash reporting, which appears on the [**Crash analysis** page](/docs/mobile-monitoring/mobile-monitoring-ui/crashes/crash-analysis-group-filter-your-crashes). + + Specifies the URI authority component of the harvest data upload endpoint. This endpoint is also used for handled exception uploads. + + To replace data endpoint the agent will use when reporting data harvests, add `andCollectorAddress:` to your `NewRelic.withApplicationToken(“”)` method call. + + Default value is `mobile-collector.newrelic.com`. + +```java +NewRelic.withApplicationToken(“”) + .usingCollectorAddress("harvest-upload.domain.com") + .usingCrashCollectorAddress("crash-upload.domain.com") +``` +
+ Specifies the authority component of the crash data upload URI. + + To replace data endpoint the agent will use when reporting crashes, add `andCrashCollectorAddress:` to your `NewRelic.withApplicationToken(“”)` method call. + + Default value is `mobile-crash.newrelic.com`. + +```java +NewRelic.withApplicationToken(“”) + .usingCollectorAddress("harvest-upload.domain.com") + .usingCrashCollectorAddress("crash-upload.domain.com") +``` +
+ + ## Analytics settings [#android-analytics-settings]