Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add block variant of add_on_error #824

Merged
merged 1 commit into from
May 23, 2024
Merged

Add block variant of add_on_error #824

merged 1 commit into from
May 23, 2024

Conversation

imjoehaines
Copy link
Contributor

@imjoehaines imjoehaines commented May 22, 2024

Goal

Add a block variant of add_on_error

Usage:

Bugsnag.configure do |configuration|
  configuration.on_error do |event|
    event.add_metadata(:information, { a: 1 })
  end
end

# or

Bugsnag.on_error do |event|
  event.add_metadata(:information, { b: 2 })
end

Usage:

  Bugsnag.on_error do |event|
    event.add_metadata(:info, { a: 1 })
  end
@imjoehaines imjoehaines merged commit 4d59450 into next May 23, 2024
137 checks passed
@imjoehaines imjoehaines deleted the block-on-error branch May 23, 2024 08:15
@imjoehaines imjoehaines mentioned this pull request May 23, 2024
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