Skip to content

Commit

Permalink
feat: 💥 use proper snake case for attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
jbleduigou committed Mar 26, 2024
1 parent 46a7c79 commit 17b352d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 17b352d

Please sign in to comment.