-
Notifications
You must be signed in to change notification settings - Fork 16
Set Event.http.request.url on a best effort basis - 2 #104
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
Conversation
…te relative url 2. Update the logic to fetch http url in SpanEventViewGenerator
Codecov Report
@@ Coverage Diff @@
## main #104 +/- ##
============================================
- Coverage 68.63% 68.62% -0.01%
- Complexity 819 821 +2
============================================
Files 84 84
Lines 3475 3481 +6
Branches 367 367
============================================
+ Hits 2385 2389 +4
- Misses 946 948 +2
Partials 144 144
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
This comment has been minimized.
This comment has been minimized.
| try { | ||
| URL url = getNormalizedUrl(urlStr); | ||
| return url.toString().equals(urlStr); | ||
| } catch (MalformedURLException e) { |
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.
Can we add unit tests for these negative scenarios?(If possible)
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.
The java implementation for URL conversion seems to be able to parse all the strings! I will update the test, when I find one.
|
@rish691 So, if I understand it right, you're moving to a model where:
|
So, presently also
If we still see problems downstream which can not be solved with changes there itself, we can revisit the logic of setting |
Option 2 of #99
The changes include: