-
Notifications
You must be signed in to change notification settings - Fork 612
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
Improve benchmark output from vespa-feed-client #33157
base: master
Are you sure you want to change the base?
Conversation
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.
👍
return responsesByCode; | ||
} | ||
/** Statistics per response code. */ | ||
public Map<Integer, Response> statsByCode() { return statsByCode; } |
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.
Would it make sense to add a convenience wrapper statsByCode(int code)
which returns e.g. an Optional<Response>
?
vessel.complete(HttpResponse.of(statusCode, "body".getBytes(StandardCharsets.UTF_8))); | ||
return null; | ||
} | ||
} |
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.
Nit: missing line break
The extended output format is gated behind an environment variable.
Example: