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

grouping requests after redirect #251

Closed
mblakele opened this issue Mar 5, 2015 · 2 comments
Closed

grouping requests after redirect #251

mblakele opened this issue Mar 5, 2015 · 2 comments

Comments

@mblakele
Copy link

mblakele commented Mar 5, 2015

#228 asked a similar question, but I don't think it handles the use case where a request redirects.

self.get('/fubar/') # redirects to /fubar/1234/abcd

I don't know what the redirect will look like in advance, so I can't skip it. But I'd like to group all those requests under one path, because the trailing segments are different for every locust. Adding name=/fubar/ to the initial request didn't seem to do this. Is there another way?

Operationally, I think it would make sense to configure the client in on_start so that all requests matching some pattern will be reported as /fubar/baz.

@cyberw
Copy link
Collaborator

cyberw commented Oct 18, 2019

Closing this due to lack of activity. Let me know if you want to reopen.

@cyberw cyberw closed this as completed Oct 18, 2019
@heyman
Copy link
Member

heyman commented Oct 21, 2019

If you let requests follow the redirect automatically (the default behaviour) all the actual requests will be grouped under a single stats entry (and the response time will be for the whole redirect chain) named after either the first URL, or the name parameter if it was specified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants