From ddbd9b553e79c9f1bddf9fbcfa8a7be71b0ab18e Mon Sep 17 00:00:00 2001 From: Darioush Jalali Date: Tue, 28 May 2024 15:39:15 -0700 Subject: [PATCH] fix log ingestion in Datadog --- log/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log/handler.go b/log/handler.go index 8ff6c178fb..3b2dccbfba 100644 --- a/log/handler.go +++ b/log/handler.go @@ -156,9 +156,9 @@ func builtinReplace(_ []string, attr slog.Attr, logfmt bool) slog.Attr { case slog.TimeKey: if attr.Value.Kind() == slog.KindTime { if logfmt { - return slog.String("t", attr.Value.Time().Format(timeFormat)) + return slog.String("timestamp", attr.Value.Time().Format(timeFormat)) } else { - return slog.Attr{Key: "t", Value: attr.Value} + return slog.Attr{Key: "timestamp", Value: attr.Value} } } case slog.LevelKey: