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

Report any 2xx reponse as successful request #8

Merged
merged 1 commit into from
Nov 30, 2021
Merged

Conversation

chaudum
Copy link
Collaborator

@chaudum chaudum commented Nov 29, 2021

Loki requests return with HTTP 204 (No Content) when pushing logs.
Any 2xx status code indicates a successful HTTP response, see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#successful_responses

Signed-off-by: Christian Haudum christian.haudum@gmail.com

Loki requests return with HTTP 204 (No Content) when pushing logs.
Any 2xx status code indicates a successful HTTP response, see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#successful_responses

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Copy link

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@mstoykov
Copy link
Contributor

I wonder if you shouldn't include 302(3xx in general) as k6 does by default for HTTP requests as I would expect somewhere in the future that you will test a loki behind an LB using redirects (for example) and then you will need a change again?

@chaudum
Copy link
Collaborator Author

chaudum commented Nov 30, 2021

I wonder if you shouldn't include 302(3xx in general) as k6 does by default for HTTP requests as I would expect somewhere in the future that you will test a loki behind an LB using redirects (for example) and then you will need a change again?

Not sure if I'd expect a redirect, certainly not from a write request (even though 307 would allow POST redirects).

@chaudum chaudum merged commit 9702403 into main Nov 30, 2021
@chaudum chaudum deleted the chaudum/accept-2xx branch November 30, 2021 08:37
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

Successfully merging this pull request may close these issues.

None yet

3 participants