File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,11 @@ SplunkRum initialize(Looper mainLooper) {
105
105
}
106
106
107
107
config .disableScreenAttributes ();
108
+ // We are installing the crash reporter ourselves in installCrashReporter.
109
+ // Disabling this one to prevent duplicate spans
110
+ config .disableCrashReporting ();
111
+ config .disableAnrDetection (); // Same with ANR
112
+
108
113
OpenTelemetryRumBuilder otelRumBuilder = OpenTelemetryRum .builder (application , config );
109
114
110
115
otelRumBuilder .mergeResource (createSplunkResource ());
Original file line number Diff line number Diff line change 59
59
import org .junit .jupiter .api .extension .ExtendWith ;
60
60
import org .mockito .Mock ;
61
61
import org .mockito .junit .jupiter .MockitoExtension ;
62
+ import org .mockito .junit .jupiter .MockitoSettings ;
63
+ import org .mockito .quality .Strictness ;
62
64
import zipkin2 .reporter .okhttp3 .OkHttpSender ;
63
65
64
66
@ ExtendWith (MockitoExtension .class )
67
+ @ MockitoSettings (strictness = Strictness .LENIENT )
65
68
class RumInitializerTest {
66
69
67
70
static final String APP_NAME = "Sick test app" ;
You can’t perform that action at this time.
0 commit comments