Skip to content

Commit

Permalink
Merge pull request #2 from jbleduigou/1-replace-dash-case-by-snake-case
Browse files Browse the repository at this point in the history
feat: 💥 use proper snake case for attributes
  • Loading branch information
jbleduigou committed Mar 26, 2024
2 parents 46a7c79 + 17b352d commit c6cfde7
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 c6cfde7

Please sign in to comment.