Skip to content

Commit 881877b

Browse files
committed
Add missing trace log packs
1 parent 27cb88d commit 881877b

File tree

2 files changed

+8
-0
lines changed
  • libraries/matrix

2 files changed

+8
-0
lines changed

libraries/matrix/api/src/main/kotlin/io/element/android/libraries/matrix/api/tracing/TraceLogPack.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ enum class TraceLogPack(val key: String) {
2020
},
2121
NOTIFICATION_CLIENT("notification_client") {
2222
override val title: String = "Notification Client"
23+
},
24+
SYNC_PROFILING("sync_profiling") {
25+
override val title: String = "Sync Profiling"
26+
},
27+
LATEST_EVENTS("latest_events") {
28+
override val title = "Latest Events"
2329
};
2430

2531
abstract val title: String

libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/tracing/TraceLogPacksMapping.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ fun TraceLogPack.map(): RustTraceLogPack = when (this) {
1616
TraceLogPack.EVENT_CACHE -> RustTraceLogPack.EVENT_CACHE
1717
TraceLogPack.TIMELINE -> RustTraceLogPack.TIMELINE
1818
TraceLogPack.NOTIFICATION_CLIENT -> RustTraceLogPack.NOTIFICATION_CLIENT
19+
TraceLogPack.LATEST_EVENTS -> RustTraceLogPack.LATEST_EVENTS
20+
TraceLogPack.SYNC_PROFILING -> RustTraceLogPack.SYNC_PROFILING
1921
}
2022

2123
fun Collection<TraceLogPack>.map(): List<RustTraceLogPack> {

0 commit comments

Comments
 (0)