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 unused properties in exceptions for request instrumentation #190

Merged
merged 3 commits into from
Nov 23, 2020

Conversation

lzchen
Copy link
Contributor

@lzchen lzchen commented Nov 17, 2020

@lzchen lzchen requested review from a team, owais and ocelotl and removed request for a team November 17, 2020 18:33
@@ -158,9 +154,6 @@ def _instrumented_requests_call(
result = call_wrapped() # *** PROCEED
except Exception as exc: # pylint: disable=W0703
exception = exc
setattr(
exception, EXCEPTION_STATUS_FIELD, StatusCode.ERROR,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain a bit more about why this is being removed or why this was here in the first place?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe from this pr, the purpose was get the status code that was returned from a failed instrumentation, but now since we don't track statuscanonicalcode anymore, we don't need this.

Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

Thanks for clarifying! 👍

@lzchen lzchen merged commit 4b9422e into open-telemetry:master Nov 23, 2020
@lzchen lzchen deleted the req branch November 23, 2020 20:05
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