From da13327466fcf5dc01adb1f0e0777afc34bbfc29 Mon Sep 17 00:00:00 2001 From: Sven Rebhan Date: Thu, 3 Aug 2023 18:45:38 +0200 Subject: [PATCH] Add debug message --- plugins/outputs/timestream/timestream.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/outputs/timestream/timestream.go b/plugins/outputs/timestream/timestream.go index f5fe7ab993137..e08ce15bafab8 100644 --- a/plugins/outputs/timestream/timestream.go +++ b/plugins/outputs/timestream/timestream.go @@ -274,6 +274,8 @@ func (t *Timestream) Write(metrics []telegraf.Metric) error { func (t *Timestream) writeToTimestream(writeRecordsInput *timestreamwrite.WriteRecordsInput, resourceNotFoundRetry bool) error { _, err := t.svc.WriteRecords(context.Background(), writeRecordsInput) if err != nil { + t.Log.Debugf("Received error %v (%T)", err, err) + // Telegraf will retry ingesting the metrics if an error is returned from the plugin. // Therefore, return error only for retryable exceptions: ThrottlingException and 5xx exceptions. var notFound *types.ResourceNotFoundException