-
Notifications
You must be signed in to change notification settings - Fork 803
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
fix(http-plugin): ensure exceptions are handled #273
fix(http-plugin): ensure exceptions are handled #273
Conversation
94e98d1
to
82b4110
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Side question: I think this is out of the scope of this PR but do we also need to handle 'error'
and 'aborted'
events for this plugin's event listener? I see only 'response'
is listened to currently, or am I missing something?
we use error as well on
|
I pinged @Flarna to have a look as well |
Codecov Report
@@ Coverage Diff @@
## master #273 +/- ##
==========================================
+ Coverage 98.86% 98.87% +0.01%
==========================================
Files 69 70 +1
Lines 2732 2856 +124
Branches 193 194 +1
==========================================
+ Hits 2701 2824 +123
- Misses 31 32 +1
|
I think a Similar |
Do you have a use case / exemple ? Right now, I don't see how I could reproduce the behaviour you mention. We check Thanks in advance. |
The plugin does not verify all data finally used by node http, it just checks the part needed by the plugin and the type of the object. |
If you have other use cases please let me know. |
fae5a7e
to
1327ff8
Compare
1327ff8
to
8795ec1
Compare
d574612
to
56624e3
Compare
refactor(test): remove unnecessary code add tests closes open-telemetry#222 Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
56624e3
to
40dcc9f
Compare
Which problem is this PR solving?
Ensure exceptions are properly handled.
Short description of the changes