Skip to content

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

Merged
jeffschwMSFT merged 1 commit into
release/6.0from
backport/pr-58145-to-release/6.0
Aug 27, 2021
Merged

[release/6.0] Handle shadowed property names in DiagnosticsSourceEventSource#58212
jeffschwMSFT merged 1 commit into
release/6.0from
backport/pr-58145-to-release/6.0

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Aug 26, 2021

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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:-

@josalemjosalem self-assigned this Aug 26, 2021
@josalemjosalem added this to the 6.0.0 milestone Aug 26, 2021

@jeffschwMSFTjeffschwMSFT left a comment

Copy link
Copy Markdown
Member

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.0Aug 27, 2021
@akoeplinger
akoeplinger deleted the backport/pr-58145-to-release/6.0 branch August 28, 2021 22:03
@ghostghost locked as resolved and limited conversation to collaborators Sep 27, 2021
Sign up for freeto 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

@jeffschwMSFT@davmason@hoyosjs@josalem