File tree Expand file tree Collapse file tree 4 files changed +6
-1
lines changed
core/src/main/java/com/segment/analytics/kotlin/core Expand file tree Collapse file tree 4 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ open class Analytics protected constructor(
98
98
Telemetry .INVOKE_ERROR_METRIC , t.stackTraceToString()) {
99
99
it[" error" ] = t.toString()
100
100
it[" message" ] = " Exception in Analytics Scope"
101
+ it[" caller" ] = t.stackTrace[0 ].toString()
101
102
}
102
103
}
103
104
override val analyticsScope = CoroutineScope (SupervisorJob () + exceptionHandler)
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ class HTTPClient(
39
39
it[" error" ] = e.toString()
40
40
it[" writekey" ] = writeKey
41
41
it[" message" ] = " Malformed url"
42
+ it[" caller" ] = e.stackTrace[0 ].toString()
42
43
}
43
44
throw error
44
45
}
Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ internal fun Analytics.fetchSettings(
124
124
it[" error" ] = ex.toString()
125
125
it[" writekey" ] = writeKey
126
126
it[" message" ] = " Error retrieving settings"
127
+ it[" caller" ] = ex.stackTrace[0 ].toString()
127
128
}
128
129
configuration.defaultSettings
129
130
}
Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ internal class Mediator(internal var plugins: CopyOnWriteArrayList<Plugin> = Cop
62
62
it[" plugin" ] = " ${plugin.type} -${plugin.javaClass} "
63
63
}
64
64
it[" writekey" ] = plugin.analytics.configuration.writeKey
65
- it[" message" ] = " Exception executing plugin"
65
+ it[" message" ] = " Exception executing plugin"
66
+ it[" caller" ] = t.stackTrace[0 ].toString()
66
67
}
67
68
}
68
69
}
@@ -87,6 +88,7 @@ internal class Mediator(internal var plugins: CopyOnWriteArrayList<Plugin> = Cop
87
88
}
88
89
it[" writekey" ] = plugin.analytics.configuration.writeKey
89
90
it[" message" ] = " Exception executing plugin"
91
+ it[" caller" ] = t.stackTrace[0 ].toString()
90
92
}
91
93
}
92
94
}
You can’t perform that action at this time.
0 commit comments