Skip to content

Best Practice with PUMA 'lowlevel_error_handler` #1187

@syafiqfaiz

Description

@syafiqfaiz

HI Team.

We are trying to customize error reporting by Rollbar in Puma to include more data.

in puma.rb, this how its suggested in the docs.

lowlevel_error_handler do |error, env, status|
  Rollbar.error(error)
end

The question is, is it a good idea to send the whole env as well into Rollbar

  Rollbar.error(error, env)

I am not concerned as much with accidentally sending sensitive information as Rollbar should automatically scrub it. My concern was more on the data size in rack, because it might include file upload, or stream of data.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions