Skip to content

Commit ec4ffe6

Browse files
authored
Enable disk buffering by default in the demo app (#988)
1 parent 267b375 commit ec4ffe6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

demo-app/src/main/java/io/opentelemetry/android/demo/OtelDemoApplication.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ class OtelDemoApplication : Application() {
3838

3939
// 10.0.2.2 is apparently a special binding to the host running the emulator
4040
try {
41-
rum = OpenTelemetryRumInitializer.initialize(this, "http://10.0.2.2:4318")
41+
rum = OpenTelemetryRumInitializer.initialize(
42+
application = this,
43+
endpointBaseUrl = "http://10.0.2.2:4318",
44+
rumConfig = config
45+
)
4246
Log.d(TAG, "RUM session started: " + rum!!.rumSessionId)
4347
} catch (e: Exception) {
4448
Log.e(TAG, "Oh no!", e)

0 commit comments

Comments
 (0)