Skip to content

Conversation

@FlorentinDUBOIS
Copy link

@FlorentinDUBOIS FlorentinDUBOIS commented Dec 23, 2025

Summary

Checklist

Related issues

relates #18119 #18118

@telegraf-tiger telegraf-tiger bot added the fix pr to fix corresponding bug label Dec 23, 2025
@mstrandboge mstrandboge changed the title fix(outputs/plugins/dynatrace): prevent retry on authentication failure fix(outputs.dynatrace): Prevent retry on authentication failure Jan 5, 2026
@telegraf-tiger telegraf-tiger bot added the plugin/output 1. Request for new output plugins 2. Issues/PRs that are related to out plugins label Jan 5, 2026
StatusCode: resp.StatusCode,
Retryable: false,
}
} else if resp.StatusCode < 200 || resp.StatusCode >= 300 {

Choose a reason for hiding this comment

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

Thank you for the PR, generally I don't think that 1xx status code should be treated as retry-able ones. Do you have some reasoning behind this decision?

Also, not all 5xx errors should be retry-ed. We need to be careful here as for example 501 or 505+ should not be in this category.

Copy link
Author

Choose a reason for hiding this comment

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

Hello @odubajDT, I agree with you that 1xx status code should not be retried, concerning the 501, 505 or even 400 how do you want to treat them? I can update the pull request to reflect that.

Thank you for the review

Copy link

@odubajDT odubajDT Jan 26, 2026

Choose a reason for hiding this comment

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

Generally deciding which status code will be retried is a longer process and requires a little bit of research, so I cannot answer you which codes specifically I would retry and which not...

Thank you!

Copy link
Author

Choose a reason for hiding this comment

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

ok, is there some place in the codebase at your knowledge where this has alrerady been done and we can use the same strategy?

Copy link
Author

Choose a reason for hiding this comment

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

I will propose a thing with what we discuss :D

@FlorentinDUBOIS FlorentinDUBOIS force-pushed the devel/fdubois/fix/outputs/dynatrace branch from 6dc0046 to 76de5aa Compare January 26, 2026 11:19
@telegraf-tiger
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix pr to fix corresponding bug plugin/output 1. Request for new output plugins 2. Issues/PRs that are related to out plugins

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants