-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Metric Bug Fix: Strip out Query and Fragment in extractAPIPathValue L…
…ogic (#36) *Issue #, if available:* - `httpTarget` can be of the form `/pathname?q=query#fragment`. - extractAPIPathValue(httpTarget) will include the query or the fragment parts, which we do not want. - This isn't caught with the existing unit test (`/users/1/pet?query#fragment`) because the query+fragment is removed after the extractAPIPathValue Logic splits the slashes. *Description of changes:* - In this PR, we remove the query and fragment. Testing: - Unit tests - Observed removal of query and fragment from Console Span Exporter. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
- Loading branch information
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters