Skip to content
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

[fixbug] Fix the problem of no data for springboot3 monitoring #1961

Merged
merged 19 commits into from
May 11, 2024
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[bugfix] fix HTTP API bug #1895 (#1909)
  • Loading branch information
Aias00 authored and zhangshenghang committed May 4, 2024
commit 472604c883006ed352eab69de675a8caed8168dd
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 199,8 @@ private void validateParams(Metrics metrics) throws Exception {
HttpProtocol httpProtocol = metrics.getHttp();
String url = httpProtocol.getUrl();

if (StringUtils.hasText(url) || !url.startsWith(RIGHT_DASH)) {
httpProtocol.setUrl(url == null ? RIGHT_DASH : RIGHT_DASH url.trim());
if (!StringUtils.hasText(url) || !url.startsWith(RIGHT_DASH)) {
httpProtocol.setUrl(StringUtils.hasText(url) ? RIGHT_DASH url.trim() : RIGHT_DASH);
}

if (CollectionUtils.isEmpty(httpProtocol.getSuccessCodes())) {
Expand Down