-
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed an issue where data exclusion wildcards weren't being checked
* We are now checking data exclusion wildcards. * We are now flowing the ExceptionlessClient through the codebase and using it to get dependencies that we were not before (Add Object is now using the proper json serializer.
- Loading branch information
Showing
10 changed files
with
133 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,10 @@ public ActionResult Index() { | |
|
||
[HttpPost] | ||
public ViewResult Index(SomeModel model) { | ||
throw new ApplicationException("Error on form submit."); | ||
throw new MyApplicationException("Error on form submit.") { | ||
IgnoredProperty = "Index Test", | ||
RandomValue = Guid.NewGuid().ToString() | ||
}; | ||
} | ||
|
||
[HttpGet] | ||
|
@@ -72,15 +75,16 @@ public ActionResult CustomBoom() { | |
public ActionResult Boom25() { | ||
for (int i = 0; i < 25; i++) { | ||
try { | ||
throw new ApplicationException("Boom!"); | ||
throw new MyApplicationException("Boom!") { | ||
IgnoredProperty = "Test", | ||
RandomValue = Guid.NewGuid().ToString() | ||
}; | ||
} catch (Exception ex) { | ||
ex.ToExceptionless() | ||
ex.ToExceptionless() | ||
.SetUserIdentity("[email protected]") | ||
.AddRecentTraceLogEntries() | ||
.AddRequestInfo() | ||
.AddObject(new { | ||
Blah = "Hello" | ||
}, name: "Hello") | ||
.AddObject(new { Blah = "Hello" }, name: "Hello") | ||
.AddTags("SomeTag", "AnotherTag") | ||
.MarkAsCritical() | ||
.Submit(); | ||
|
@@ -92,9 +96,7 @@ public ActionResult Boom25() { | |
.SetUserDescription("[email protected]", "Some description.") | ||
.AddRecentTraceLogEntries() | ||
.AddRequestInfo() | ||
.AddObject(new { | ||
Blah = "Hello" | ||
}, name: "Hello", excludedPropertyNames: new[] { "Blah" }) | ||
.AddObject(new { Blah = "Hello" }, name: "Hello", excludedPropertyNames: new[] { "Blah" }) | ||
.AddTags("SomeTag", "AnotherTag") | ||
.MarkAsCritical() | ||
.Submit(); | ||
|
@@ -110,4 +112,12 @@ public ActionResult CreateRequestValidationException(string value) { | |
return RedirectToAction("Index"); | ||
} | ||
} | ||
|
||
public class MyApplicationException : ApplicationException { | ||
public MyApplicationException(string message) : base(message) {} | ||
|
||
public string IgnoredProperty { get; set; } | ||
|
||
public string RandomValue { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters