Skip to content

Allow access to controller context/methods in exception_reporter#167

Merged
pond merged 1 commit into
pond:mainfrom
bcroesch:feature/execption-reporter-controller-context
Feb 15, 2026
Merged

Allow access to controller context/methods in exception_reporter#167
pond merged 1 commit into
pond:mainfrom
bcroesch:feature/execption-reporter-controller-context

Conversation

@bcroesch

@bcroesch bcroesch commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

This PR updates how Scimitar.engine_configuration.exception_reporter is called to allow access to info about the controller action/params. For example:

exception_reporter: Proc.new do |exception|
  Airbrake.notify(exception, {
    action: action_name,
    request_url: request.url,
    example_id: params[:example_id],
  })
end

@pond

pond commented Feb 15, 2026

Copy link
Copy Markdown
Owner

Thanks! That's great. I hope to do a release soon, ish; busy period, not much spare time. You can of course set your Gemfile to pull from GitHub on main if you don't want to wait.

@pond pond merged commit 759ae52 into pond:main Feb 15, 2026
6 checks passed
@pond

pond commented Mar 5, 2026

Copy link
Copy Markdown
Owner

This is now available in v2.15.0. Thanks again!

@bcroesch

bcroesch commented Mar 5, 2026

Copy link
Copy Markdown
Contributor Author

@pond - awesome, thanks! And thanks for the great gem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants