-
Notifications
You must be signed in to change notification settings - Fork 539
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(instrumentation-undici): fix a possible crash if the request path is a full URL #2518
Conversation
test failure without the fixHere is what the added test would have looked like failing if the fix wasn't included:
|
diag.warn if the
|
Note that I haven't added a test case for this diag.warn case. I don't immediately know of way to (a) make an undici request that passes undici's guards but (b) fails this one. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2518 +/- ##
==========================================
- Coverage 90.77% 90.51% -0.27%
==========================================
Files 169 164 -5
Lines 8015 7707 -308
Branches 1632 1591 -41
==========================================
- Hits 7276 6976 -300
+ Misses 739 731 -8
|
did you mean a unique warn per error type or maybe one warn per bad URL? IMO second would be preferable because in this specific case bad URLs may come from different code paths
I think that this might be possible with a non supported version of |
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.
Thanks for working on this 🙂
Closes: #2471