-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
7403 - Allow to collect HTTP Headers thanks to http_response #7405
7403 - Allow to collect HTTP Headers thanks to http_response #7405
Conversation
What do you think about making this look more similar to the new |
@danielnelson thx for the feedback, here is a new version based on what has been done in the |
@danielnelson could you please tell me if this new version of the PR is what you had in mind? |
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.
Looks good, just one minor change if you could
@@ -239,6 +245,14 @@ func (h *HTTPResponse) httpGather(u string) (map[string]interface{}, map[string] | |||
resp, err := h.client.Do(request) | |||
response_time := time.Since(start).Seconds() | |||
|
|||
// Add the response headers | |||
for headerName, measurementName := range h.HTTPHeaderTags { |
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.
Rename measurementName
-> tagKey
or just tag
. This will reduce confusion against the metric measurement/name.
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.
@danielnelson done, please check again
@danielnelson thanks :-) |
fixes #7403
Required for all PRs: