Sorry this is one big PR. I've been meaning to try to upstream some changes for a while. If there's interest, consider this the start of a conversation — I can try to break this up as necessary.
Essentially, I've been using raven-lua pretty successfully in a Lapis (OpenResty) project. I've needed to extend this to support a few additional fields more common in traditional user-facing web apps.
Adds environment as a static property to the event payload, passed in during initialization
addsserver_name. Can be passed in or defined with get_server_name
adds release. Same deal as above. :)
Allows user and contexts tables to be passed to send_report
Now includes a default version of get_request_data which was contributed to my fork by danifbento
Sorry this is one big PR. I've been meaning to try to upstream some changes for a while. If there's interest, consider this the start of a conversation — I can try to break this up as necessary.
Essentially, I've been using raven-lua pretty successfully in a Lapis (OpenResty) project. I've needed to extend this to support a few additional fields more common in traditional user-facing web apps.
environment
as a static property to the event payload, passed in during initializationserver_name
. Can be passed in or defined withget_server_name
release
. Same deal as above. :)user
andcontexts
tables to be passed tosend_report
get_request_data
which was contributed to my fork by danifbento