forked from cloudflare/raven-lua
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bd5842
commit 7918108
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,6 +159,12 @@ function _M.get_request_data() | |
return {} | ||
end | ||
|
||
--- This method can be used to tag a release in Sentry. | ||
-- Typically you can use it with a commit hash. | ||
function _M.get_release() | ||
return '' | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
cycomachead
Author
Member
|
||
end | ||
|
||
--- This table can be used to tune the message reporting. | ||
-- @field tags Tags for the message, they will be coalesced with the ones | ||
-- provided in the @{sentry_conf} table used in the constructor if any. In | ||
|
@@ -334,6 +340,7 @@ function raven_mt:send_report(json, conf) | |
|
||
json.request = _M.get_request_data() | ||
json.server_name = _M.get_server_name() | ||
json.releae = _M.get_release() | ||
|
||
local json_str = json_encode(json) | ||
local ok, err = self.sender:send(json_str) | ||
|
The implementation must return
nil
else Sentry will fire aboutrelease
field parsing error, because empty string is not an allowed value, butnull
is OK.