Skip to content

Commit

Permalink
Add data into ngx get_request_data
Browse files Browse the repository at this point in the history
  • Loading branch information
danifbento committed Apr 8, 2021
1 parent 29ef9b6 commit 096a385
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions raven/senders/ngx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,13 @@ function _M.get_request_data()
then
return {
caller = "nginx",
method = ngx.var.request_method or nil,
host = ngx.var.http_host or nil,
url = ngx.var.request_uri or nil,
query_string = ngx.var.query_string or nil,
env = {
REMOTE_ADDR = ngx.var.remote_addr or nil,
},
}
end
return {
Expand Down

0 comments on commit 096a385

Please sign in to comment.