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

improve config exception #1195

Merged
merged 6 commits into from
Aug 23, 2019
Merged

improve config exception #1195

merged 6 commits into from
Aug 23, 2019

Conversation

TimothyMothra
Copy link
Member

@TimothyMothra TimothyMothra commented Aug 22, 2019

Fix Issue #1194

Change to TelemetryConfigurationFactory to throw an exception message specifying the name of the property that could not be parsed.
This is to improve supportability. We know at run time the exact property that could not be parsed and we should specify that for users.

  • I ran Unit Tests locally.

For significant contributions please make sure you have completed the following items:

  • Design discussion issue #

  • Changes in public surface reviewed

  • CHANGELOG.md updated with one line description of the fix, and a link to the original issue.

  • The PR will trigger build, unit tests, and functional tests automatically. If your PR was submitted from fork - mention one of committers to initiate the build for you.
    If you want to to re-run the build/tests, the easiest way is to simply Close and Re-Open this same PR. (Just click 'close pull request' followed by 'open pull request' buttons at the bottom of the PR)

  • Please follow [these] (https://github.com/Microsoft/ApplicationInsights-dotnet/blob/develop/.github/CONTRIBUTING.md) instructions to build and test locally.

@TimothyMothra TimothyMothra added this to the 2.11 milestone Aug 22, 2019
Copy link
Contributor

@cijothomas cijothomas left a comment

Choose a reason for hiding this comment

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

i'd love to see a full test with new TelemetryClent() throwing as expected.

CHANGELOG.md Outdated
@@ -9,6 +9,7 @@ This changelog will be used to generate documentation on [release notes page](ht
- [Metric Aggregator background thread safeguards added to never throw unhandled exception.](https://github.com/microsoft/ApplicationInsights-dotnet/issues/1179)
- [Updated version of System.Diagnostics.DiagnosticSource to 4.6.0-preview7.19362.9. Also remove marking SDK as CLS-Compliant](https://github.com/microsoft/ApplicationInsights-dotnet/pull/1183)
- [Make BaseSDK use W3C Trace Context based correlation by default. Set TelemetryConfiguration.EnableW3CCorrelation=false to disable this.](https://github.com/microsoft/ApplicationInsights-dotnet/pull/1193)
- [Enhancement: TelemetryConfiguration will specify the name of the property that could not be parsed from a config file.](https://github.com/microsoft/ApplicationInsights-dotnet/issues/1194)
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: make it obvious that the exception message improvement is the enhancement here.

@TimothyMothra TimothyMothra reopened this Aug 23, 2019
@TimothyMothra TimothyMothra merged commit 521a84d into develop Aug 23, 2019
@TimothyMothra TimothyMothra deleted the tilee/config_exception branch August 23, 2019 22:54
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