File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
android/measure/src/main/java/sh/measure/android Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ internal class MeasureInternal(private val measure: MeasureInitializer) : AppLif
4242 // is triggered.
4343 measure.signalProcessor.track(
4444 SessionStartData ,
45- timestamp = measure.timeProvider.now (),
45+ timestamp = measure.sessionManager.getSessionStartTime (),
4646 type = EventType .SESSION_START ,
4747 sessionId = sessionId,
4848 // always sample session start event
Original file line number Diff line number Diff line change 11package sh.measure.android.attributes
22
33import sh.measure.android.SessionManager
4+ import sh.measure.android.utils.iso8601Timestamp
45
56/* *
67 * Generates the session start time attribute. This attribute changes when a new session is created,
@@ -10,6 +11,9 @@ internal class SessionAttributeProcessor(
1011 private val sessionManager : SessionManager ,
1112) : AttributeProcessor {
1213 override fun appendAttributes (attributes : MutableMap <String , Any ?>) {
13- attributes.put(Attribute .SESSION_START_TIME_KEY , sessionManager.getSessionStartTime())
14+ attributes.put(
15+ Attribute .SESSION_START_TIME_KEY ,
16+ sessionManager.getSessionStartTime().iso8601Timestamp(),
17+ )
1418 }
1519}
You can’t perform that action at this time.
0 commit comments