Refactor: moved exception check to Span.__exit__#83
Conversation
kezhenxu94
left a comment
There was a problem hiding this comment.
Hey @tom-pytel, thanks very much for noticing this, I have only one question inline
There was a problem hiding this comment.
@tom-pytel could you please kindly refactor the counterpart in context.new_entry_span as well? Now you just refactored the context.new_exit_span, really appreciate 🙇
e.g.
skywalking-python/skywalking/plugins/sw_rabbitmq.py
Lines 94 to 101 in 3b74010
The exception checking is in class |
I meant removing the |
No problem 😃 |
Moved exception check for spans into Span.exit from multiple individual locations in individual plugins. This should also catch other errors that may not be recognized otherwise. Is there any reason not to do it like this?