Skip to content

[Exceptions] Simplify Types in Plain Text Representation #5017

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

kkeirstead
Copy link
Member

@kkeirstead kkeirstead commented Jul 28, 2023

Summary

In Plain Text, generic type args and method parameters are now trimmed to improve readability; the JSON format stays the same for machine readability. There are currently a few rough edges (one of which being the logic for getting the namespace in the profiler - if anyone has guidance there, let me know), so I'll likely be pushing some small changes before taking this out of draft.

Text (Before)

First chance exception at 2023-08-01T17:45:22.5728285Z
System.NullReferenceException: Oh no something was null!
   at StartupHookTestAppConsole.Program.RandomGeneric[StartupHookTestAppConsole.Program+T,StartupHookTestAppConsole.Program+U,StartupHookTestAppConsole.Program+V](System.String)
   at StartupHookTestAppConsole.Program.Main(System.String[])

Text (After)

First chance exception at 2023-08-01T17:49:57.6324409Z
System.NullReferenceException: Oh no something was null!
   at StartupHookTestAppConsole.Program.RandomGeneric[Program+T,Program+U,Program+V](String)
   at StartupHookTestAppConsole.Program.Main(String[])

Closes #4714

Release Notes Entry

@ghost ghost added the needs-review label Jul 28, 2023
@ghost ghost removed the needs-review label Jul 28, 2023
@ghost ghost added the needs-review label Aug 1, 2023
@ghost ghost removed the needs-review label Aug 2, 2023
@ghost ghost added the needs-review label Aug 2, 2023
@ghost ghost removed the needs-review label Aug 2, 2023
@ghost ghost added the needs-review label Aug 2, 2023
@kkeirstead kkeirstead marked this pull request as ready for review August 3, 2023 19:26
@kkeirstead kkeirstead requested a review from a team as a code owner August 3, 2023 19:26
@ghost ghost removed the needs-review label Aug 4, 2023
@ghost ghost added the needs-review label Aug 9, 2023
@ghost ghost removed the needs-review label Aug 11, 2023
@kkeirstead kkeirstead merged commit fe9a300 into dotnet:release/7.x Aug 14, 2023
wiktork pushed a commit to wiktork/dotnet-monitor that referenced this pull request Jan 24, 2024
wiktork added a commit that referenced this pull request Jan 30, 2024
#5017) (#5882)

* [Exceptions] Simplify Types in Plain Text Representation (#5017)

* Fixup build errors

* Fix unit tests

* Fix name cache

* Fix whitespace

---------

Co-authored-by: kkeirstead <[email protected]>
github-actions bot pushed a commit that referenced this pull request Jan 30, 2024
#5017) (#5882)

* [Exceptions] Simplify Types in Plain Text Representation (#5017)

* Fixup build errors

* Fix unit tests

* Fix name cache

* Fix whitespace

---------

Co-authored-by: kkeirstead <[email protected]>
wiktork added a commit that referenced this pull request Jan 30, 2024
#5017) (#5882) (#5920)

* [Exceptions] Simplify Types in Plain Text Representation (#5017)

* Fixup build errors

* Fix unit tests

* Fix name cache

* Fix whitespace

---------

Co-authored-by: Wiktor Kopec <[email protected]>
Co-authored-by: kkeirstead <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants