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

feat(sumologicexporter): do not retry on '400 Bad Request' response #661

Merged
merged 1 commit into from
Jul 12, 2022

Conversation

andrzej-stencel
Copy link
Contributor

@andrzej-stencel andrzej-stencel commented Jul 11, 2022

If the server responds with '400 Bad Request', the exporter should not retry the request.
This is in line what the upstream OTLP HTTP exporter does:
https://github.com/open-telemetry/opentelemetry-collector/blob/v0.55.0/exporter/otlphttpexporter/otlp.go#L181-L184

@github-actions github-actions bot added the go label Jul 11, 2022
@andrzej-stencel andrzej-stencel changed the title feat(sumologicexporter): make '400 Bad Request' a permanent error feat(sumologicexporter): do not retry on '400 Bad Request' response Jul 11, 2022
If the server responds with '400 Bad Request', the exporter should not retry the request.
This is in line what the upstream OTLP HTTP exporter does:
https://github.com/open-telemetry/opentelemetry-collector/blob/v0.55.0/exporter/otlphttpexporter/otlp.go#L181-L184
@andrzej-stencel andrzej-stencel force-pushed the bad-request-permanent-error branch from 39cc6c9 to 58f2d60 Compare July 11, 2022 14:23
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jul 11, 2022
@andrzej-stencel andrzej-stencel marked this pull request as ready for review July 11, 2022 14:24
@andrzej-stencel andrzej-stencel requested a review from a team as a code owner July 11, 2022 14:24
@andrzej-stencel andrzej-stencel merged commit 6239f92 into main Jul 12, 2022
@andrzej-stencel andrzej-stencel deleted the bad-request-permanent-error branch July 12, 2022 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation go
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants