From f5bf86b08dfa99586e82c22b4ddcb2ae4fd266a9 Mon Sep 17 00:00:00 2001 From: Charlie Getzen Date: Thu, 24 Jul 2025 23:29:44 -0400 Subject: [PATCH 1/2] chore: Accept all 2xx from FluentD responses --- integrations/event-handler/fluentd_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/event-handler/fluentd_client.go b/integrations/event-handler/fluentd_client.go index 32d18c31755af..ad3d9913cae85 100644 --- a/integrations/event-handler/fluentd_client.go +++ b/integrations/event-handler/fluentd_client.go @@ -129,7 +129,7 @@ func (f *FluentdClient) Send(ctx context.Context, url string, b []byte) error { } defer r.Body.Close() - if r.StatusCode != http.StatusOK { + if r.StatusCode < 200 || r.StatusCode >= 300 { return trace.Errorf("Failed to send event to fluentd (HTTP %v)", r.StatusCode) } From 9abb653826e502160f6ddc02bf27bc784585e1b7 Mon Sep 17 00:00:00 2001 From: Charlie Getzen Date: Fri, 1 Aug 2025 09:32:10 -0400 Subject: [PATCH 2/2] Address feedback --- integrations/event-handler/fluentd_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/event-handler/fluentd_client.go b/integrations/event-handler/fluentd_client.go index ad3d9913cae85..f9e937a2f9abd 100644 --- a/integrations/event-handler/fluentd_client.go +++ b/integrations/event-handler/fluentd_client.go @@ -129,7 +129,7 @@ func (f *FluentdClient) Send(ctx context.Context, url string, b []byte) error { } defer r.Body.Close() - if r.StatusCode < 200 || r.StatusCode >= 300 { + if r.StatusCode != http.StatusOK && r.StatusCode != http.StatusNoContent { return trace.Errorf("Failed to send event to fluentd (HTTP %v)", r.StatusCode) }