From 17b352d5673205e45cfa1e767fe6bb2991710f6f Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Le Duigou Date: Tue, 26 Mar 2024 19:58:57 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=92=A5=20use=20proper=20snake=20c?= =?UTF-8?q?ase=20for=20attributes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handler.go b/handler.go index 76025eb..41abea2 100644 --- a/handler.go +++ b/handler.go @@ -29,8 +29,8 @@ func NewAWSLambdaHandler(ctx context.Context, opts *slog.HandlerOptions) slog.Ha // Create the Handler using the attributes from lambda context return slog.NewJSONHandler(os.Stdout, opts). - WithAttrs([]slog.Attr{slog.String("function-arn", arn)}). - WithAttrs([]slog.Attr{slog.String("request-id", requestID)}) + WithAttrs([]slog.Attr{slog.String("function_arn", arn)}). + WithAttrs([]slog.Attr{slog.String("request_id", requestID)}) } func getLogLevel() slog.Leveler {