Skip to content

Commit c67de20

Browse files
committed
Additional unhandled information + is debug attribute
1 parent efc4676 commit c67de20

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/BacktraceClient.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,12 @@ public void Send(BacktraceReport report, Action<BacktraceResult> sendCallback =
197197
public void HandleUnhandledExceptions()
198198
{
199199
Application.logMessageReceived += HandleException;
200+
Application.logMessageReceivedThreaded += HandleException;
200201
}
201202

202203
private void HandleException(string condition, string stackTrace, LogType type)
203204
{
204-
if (type == LogType.Exception)
205+
if (type == LogType.Exception || type == LogType.Error)
205206
{
206207
var exception = new BacktraceUnhandledException(condition, stackTrace);
207208
var report = new BacktraceReport(exception);

src/Model/JsonData/BacktraceAttributes.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ private void SetLibraryAttributes(BacktraceReport report)
9999
Attributes["application.system.language"] = Application.systemLanguage.ToString();
100100
Attributes["application.unity.version"] = Application.unityVersion;
101101
Attributes["application.temporary_cache"] = Application.temporaryCachePath;
102+
Attributes["applicaiton.debug"] = Debug.isDebugBuild;
102103
}
103104

104105
/// <summary>
@@ -274,6 +275,10 @@ private void SetMachineAttributes()
274275

275276
//The hostname of the crashing system.
276277
Attributes["hostname"] = Environment.MachineName;
278+
if (SystemInfo.systemMemorySize != 0)
279+
{
280+
Attributes["vm.rss.size"] = SystemInfo.systemMemorySize * 1048576L;
281+
}
277282
}
278283
}
279284
}

0 commit comments

Comments
 (0)