Skip to content
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

Add DiagnosticSource.Write<T> API to assist with trimming #76395

Merged
merged 4 commits into from
Oct 27, 2022

Conversation

eerhardt
Copy link
Member

Add strongly typed APIs to DiagnosticSource to help preserve the public properties of the args being written. This doesn't fully solve the trimming problem, but it assists developers by at least preserving the top level properties in their types.

Fix #50454

@dotnet-issue-labeler
Copy link

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

@ghost ghost assigned eerhardt Sep 29, 2022
@ghost
Copy link

ghost commented Sep 29, 2022

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

Issue Details

Add strongly typed APIs to DiagnosticSource to help preserve the public properties of the args being written. This doesn't fully solve the trimming problem, but it assists developers by at least preserving the top level properties in their types.

Fix #50454

Author: eerhardt
Assignees: -
Labels:

area-System.Diagnostics, new-api-needs-documentation

Milestone: -

@eerhardt
Copy link
Member Author

@tommcdon @noahfalk - any thoughts here?

Copy link
Member

@noahfalk noahfalk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@eerhardt eerhardt merged commit 8ddb0c4 into dotnet:main Oct 27, 2022
@eerhardt eerhardt deleted the Fix50454 branch October 27, 2022 15:37
@ghost ghost locked as resolved and limited conversation to collaborators Nov 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add DiagnosticSource.Write<T> API to assist with trimming
3 participants