Commit c32db12
authored
Update amplitude destination to retain session ID (#6)
* Update amplitude destination to retain session ID
According to amplitude docs, a session should include all events within 5 minutes of each other. This changes the previous implementation's behavior of creating a new session ID ever 5 minutes.
* Fixing type comparison error
* Adding an optional configuration for amplitude session timeout, tested manually on android emulator1 parent 28a69df commit c32db12
File tree
1 file changed
+15
-10
lines changed- lib/src/main/java/com/segment/analytics/kotlin/destinations/amplitude
1 file changed
+15
-10
lines changedLines changed: 15 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
99 | | - | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
106 | 114 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 115 | + | |
111 | 116 | | |
| 117 | + | |
112 | 118 | | |
113 | | - | |
114 | 119 | | |
115 | 120 | | |
116 | 121 | | |
| |||
122 | 127 | | |
123 | 128 | | |
124 | 129 | | |
125 | | - | |
| 130 | + | |
0 commit comments