Sha256: 116ba2f98518c6e0f76c22d5f507f915c39efde62eb24ab92cb201fcc657bdc3
Contents?: true
Size: 1.21 KB
Versions: 6
Compression:
Stored size: 1.21 KB
Contents
appsignal ================= ## Pull requests / issues New features should be made in an issue or pullrequest. Title format is as follows: name [request_count] example tagging [2] ## Event payload sanitizer Appsignal logs Rails [ActiveSupport::Notification](http://api.rubyonrails.org/classes/ActiveSupport/Notifications.html)-events to appsignal.com over SSL. These events contain basic metadata such as a name and timestamps, and additional 'payload' log data. By default, appsignal will transmit all payload data. If you want to restrict the amount of payload data that gets sent to <https://appsignal.com>, you can define your own event payload sanitizer in `config/environment/my_env.rb`. The `event_payload_sanitizer` needs to be a callable object that returns a JSON-serializable hash. ### Examples #### Pass through the entire payload unmodified (default) ```ruby Appsignal.event_payload_sanitizer = proc { |event| event.payload } ``` #### Delete the entire event payload ```ruby Appsignal.event_payload_sanitizer = proc { {} } ``` #### Conditional modification of the payload ```ruby Appsignal.event_payload_sanitizer = proc do |event| if event.name == 'interesting' event.payload else {} end end ```
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
appsignal-0.4.7 | README.md |
appsignal-0.4.6 | README.md |
appsignal-0.4.5 | README.md |
appsignal-0.4.4 | README.md |
appsignal-0.4.3 | README.md |
appsignal-0.4.0 | README.md |