Skip to content

Commit 22f5f76

Browse files
committed
Rename attribute name
1 parent bdc63bd commit 22f5f76

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Backtrace/Model/BacktraceReport.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public class BacktraceReport
9393

9494
internal readonly bool _reflectionMethodName;
9595

96-
private const string ERROR_TYPE_VALUE = "error.type";
96+
private const string ERROR_TYPE_ATTRIBUTE = "error.type";
9797

9898
/// <summary>
9999
/// Create new instance of Backtrace report to sending a report with custom client message
@@ -110,7 +110,7 @@ public BacktraceReport(
110110
: this(null as Exception, attributes, attachmentPaths, reflectionMethodName)
111111
{
112112
Message = message;
113-
if (!Attributes.ContainsKey(ERROR_TYPE_VALUE))
113+
if (!Attributes.ContainsKey(ERROR_TYPE_ATTRIBUTE))
114114
{
115115
SetReportErrorType("Message");
116116
}
@@ -137,7 +137,7 @@ public BacktraceReport(
137137
_reflectionMethodName = reflectionMethodName;
138138
Message = ExceptionTypeReport ? exception.Message : string.Empty;
139139
SetCallingAssemblyInformation();
140-
if (ExceptionTypeReport && !Attributes.ContainsKey(ERROR_TYPE_VALUE))
140+
if (ExceptionTypeReport && !Attributes.ContainsKey(ERROR_TYPE_ATTRIBUTE))
141141
{
142142
SetReportErrorType("Exception");
143143
}
@@ -206,7 +206,7 @@ internal BacktraceReport CreateInnerReport()
206206

207207
internal void SetReportErrorType(string errorType)
208208
{
209-
Attributes[ERROR_TYPE_VALUE] = errorType;
209+
Attributes[ERROR_TYPE_ATTRIBUTE] = errorType;
210210
}
211211
}
212212
}

0 commit comments

Comments
 (0)