Skip to content

set raven context #18

@microstudi

Description

@microstudi

before_action :set_raven_context

private

def set_raven_context
return if ENV["SENTRY_ENABLED"].blank?

Sentry.set_user({ id: try(:current_user).try(:id) }.merge(session))
Sentry.set_extras(params: params.to_unsafe_h, url: request.url)

end

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