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

[release/6.0] Handle shadowed property names in DiagnosticsSourceEventSource #58212

Merged
merged 1 commit into from
Aug 27, 2021

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 26, 2021

Backport of #58145 to release/6.0

/cc @josalem

fixes #57709

Customer Impact

If a class, such as SqlLiteCommand, has a shadowed property name, such as SqlLiteCommand.Connection and DbCommand.Connection, the logic in DiagnosticSourceEventSource will throw an ambiguous match exception when trying to resolve a property with that name.

This causes the database collector in VS and potentially others to cause the target to throw and exception.

Testing

Added a test as part of the patch that tests the scenario intended to fix. Currently collecting offline confirmation from VS that this indeed fixes their scenario.

Risk

Minimal. This patch enables the new metrics functionality added in 6 while fixing a regression from previous versions.


CC @davidmikh @tarekgh @davmason

@ghost
Copy link

ghost commented Aug 26, 2021

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

Issue Details

Backport of #58145 to release/6.0

/cc @josalem

Customer Impact

Testing

Risk

Author: github-actions[bot]
Assignees: -
Labels:

area-System.Diagnostics.Tracing

Milestone: -

@josalem josalem self-assigned this Aug 26, 2021
@josalem josalem added this to the 6.0.0 milestone Aug 26, 2021
Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

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

Approved. Please request a code review and once there is a green CI we can merge.

@jeffschwMSFT jeffschwMSFT merged commit e1b407b into release/6.0 Aug 27, 2021
@akoeplinger akoeplinger deleted the backport/pr-58145-to-release/6.0 branch August 28, 2021 22:03
@ghost ghost locked as resolved and limited conversation to collaborators Sep 27, 2021
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.

4 participants