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

Remove AppInsights from Error Stack #464

Merged
merged 2 commits into from Dec 11, 2018
Merged

Conversation

markwolff
Copy link
Contributor

  • Remove Zone artifacts from Error stack shown in console
  • Modify error pointer shown in console to inform user that the error was rethrown and originated elsewhere

@@ -244,6 +244,9 @@ export class CorrelationContextManager {
if (stackFrames.length > 3) {
if (stackFrames[2].trim().indexOf("at Error.AppInsightsAsyncCorrelatedErrorWrapper") === 0) {
stackFrames.splice(2, 1);
} else if (stackFrames[1].trim().indexOf("at AppInsightsAsyncCorrelatedErrorWrapper.ZoneAwareError") === 0
Copy link
Member

Choose a reason for hiding this comment

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

Was this logic previously covered by unit tests? If so, extra cases should be added for this.

@markwolff
Copy link
Contributor Author

@OsvaldoRosado Do we want to drop this PR if considering zone --> cls?

@OsvaldoRosado
Copy link
Member

@markwolff I think this will be useful in the meantime before that change happens, especially since it's a fairly trivial change with a lot of positive impact.

@GuyHarwood
Copy link

Any idea when this is likely to be released? very welcome change 💯

@markwolff markwolff merged commit 82c2145 into develop Dec 11, 2018
@markwolff markwolff deleted the markwolff/zone_errorstack branch December 11, 2018 18:54
@markwolff
Copy link
Contributor Author

@GuyHarwood just published 1.0.8

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.

None yet

3 participants