Skip to content

Support for per-request custom data #17

@austenito

Description

@austenito

It would be great to support sending data per-request with a nice hook like https://bugsnag.com/docs/notifiers/ruby#sending-custom-data-with-exceptions

After reading the source, I'm able to send custom data by overriding the errplane_request_data in ApplicationController

  def errplane_request_data
    request_data = super
    request_data[:custom_data] = {}
    request_data[:custom_data][:more_data] = { user_id: 123 } 
    request_data
  end

This doesn't seem like the best way to hook into errplane. Are there any hooks currently in the works for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions