Sha256: 603108ebcbb1f15bc8390ef27684422850abdd3a8b01c691a20d2f5529f511bc

Contents?: true

Size: 697 Bytes

Versions: 6

Compression:

Stored size: 697 Bytes

Contents

Puma
====

Installation
------------

Install the SDK via Rubygems by adding it to your ``Gemfile``:

.. sourcecode:: ruby

    gem "sentry-raven"

Configuration
-------------

Puma provides a config option for handling low level errors.

.. sourcecode:: ruby

    # in your puma.rb config
    lowlevel_error_handler do |ex, env|
      Raven.capture_exception(
        ex,
        :message => ex.message,
        :extra => { :puma => env },
        :culprit => "Puma"
      )
      # note the below is just a Rack response
      [500, {}, ["An error has occurred, and engineers have been informed. Please reload the page. If you continue to have problems, contact support@example.com\n"]]
    end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sentry-raven-2.6.3 docs/integrations/puma.rst
sentry-raven-2.6.2 docs/integrations/puma.rst
sentry-raven-2.6.1 docs/integrations/puma.rst
sentry-raven-2.6.0 docs/integrations/puma.rst
sentry-raven-2.5.3 docs/integrations/puma.rst
sentry-raven-2.5.2 docs/integrations/puma.rst