From 9bef49c8464a2e91d1cef35769fd863476696cb9 Mon Sep 17 00:00:00 2001 From: Mateusz Rzeszutek Date: Tue, 11 Oct 2022 19:30:01 +0200 Subject: [PATCH] Minor API fix (#377) --- .../main/java/com/splunk/rum/SplunkRum.java | 22 +++++++++---------- .../java/com/splunk/rum/SplunkRumBuilder.java | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/splunk-otel-android/src/main/java/com/splunk/rum/SplunkRum.java b/splunk-otel-android/src/main/java/com/splunk/rum/SplunkRum.java index c6065163b..4da90ac36 100644 --- a/splunk-otel-android/src/main/java/com/splunk/rum/SplunkRum.java +++ b/splunk-otel-android/src/main/java/com/splunk/rum/SplunkRum.java @@ -137,6 +137,17 @@ public static SplunkRum getInstance() { return INSTANCE; } + /** + * Initialize a no-op version of the SplunkRum API, including the instance of OpenTelemetry that + * is available. This can be useful for testing, or configuring your app without RUM enabled, + * but still using the APIs. + * + * @return A no-op instance of {@link SplunkRum} + */ + public static SplunkRum noop() { + return NoOpSplunkRum.INSTANCE; + } + /** * Wrap the provided {@link OkHttpClient} with OpenTelemetry and RUM instrumentation. Since * {@link Call.Factory} is the primary useful interface implemented by the OkHttpClient, this @@ -310,17 +321,6 @@ void flushSpans() { openTelemetrySdk.getSdkTracerProvider().forceFlush().join(1, TimeUnit.SECONDS); } - /** - * Initialize a no-op version of the SplunkRum API, including the instance of OpenTelemetry that - * is available. This can be useful for testing, or configuring your app without RUM enabled, - * but still using the APIs. - * - * @return A no-op instance of {@link SplunkRum} - */ - public static SplunkRum noop() { - return NoOpSplunkRum.INSTANCE; - } - /** * This method will enable Splunk Browser-based RUM to integrate with the current Android RUM * Session. It injects a javascript object named "SplunkRumNative" into your WebView which diff --git a/splunk-otel-android/src/main/java/com/splunk/rum/SplunkRumBuilder.java b/splunk-otel-android/src/main/java/com/splunk/rum/SplunkRumBuilder.java index 41737354f..bededf94d 100644 --- a/splunk-otel-android/src/main/java/com/splunk/rum/SplunkRumBuilder.java +++ b/splunk-otel-android/src/main/java/com/splunk/rum/SplunkRumBuilder.java @@ -160,7 +160,7 @@ public SplunkRumBuilder disableCrashReporting() { * * @return {@code this} */ - public SplunkRumBuilder disableNetworkMonitorEnabled() { + public SplunkRumBuilder disableNetworkMonitor() { this.networkMonitorEnabled = false; return this; }