Skip to content

Latest commit

 

History

History
378 lines (319 loc) · 14.3 KB

CHANGELOG.md

File metadata and controls

378 lines (319 loc) · 14.3 KB

Change Log

All notable changes to this project will be documented in this file. See Keep a CHANGELOG for how to update this file. This project adheres to Semantic Versioning.

[Unreleased]

Added

  • The exception cause may now be set using an optional :cause option when calling Honeybadger.notify. If not present, the exception's cause will be used, or the global $! exception if available.
  • Any object can now act as context using the #to_honeybadger_context method. The method should have no arguments and return a Hash of context data. Context from exceptions which define this method will automatically be included in error reports.
  • Final object representations in Honeybadger (normally the value of #to_s for unknown types) can be changed by defining the #to_honeybadger method. If the method is defined, the return value of that method will be sent to Honeybadger instead of the #to_s value (for context values, local variables, etc.).
  • BasicObject, which previously could not be serialized, is now serialized as "#<BasicObject>".
  • Objects which explicitly alias #to_s to #inspect (such as OpenStruct) are now sanitized. '#<OpenStruct attribute="value">' becomes '#<OpenStruct>'. If you pass the value of #inspect (as a String) directly to Honeybadger (or return it from #to_honeybadger), the value will not be sanitized.
  • We're now using String(object) instead of object.to_s as the last resort during sanitization.
  • '[RAISED]' is returned when object.to_honeybadger or String(object) fails.

Fixed

  • We no longer use "/dev/null" as the default log device as it doesn't exist on Windows.
  • Logs when reporting errors in development mode now mention that the error wasn't actually reported. :)
  • Support new Sidekiq job params key.
  • Move at_exit callback to an appropriate place for sinatra apps, so that it does not prematurely stop honeybadger workers.

[3.1.2] - 2017-04-20

Fixed

  • Fixed a bug in the Resque plugin which prevented error reports from being sent. The issue was that the Resque's callbacks were executed in an unexpected order which caused the queue to be flushed before error notification instead of after.

[3.1.1] - 2017-04-13

Fixed

  • honeybadger deploy cli command now reads default environment from honeybadger.yml/environment variable.
  • Fixed a conflict with the web-console gem.

[3.1.0] - 2017-03-01

Changed

  • Exceptions encountered while loading/evaluating honeybadger.yml are now raised instead of logged.

Added

  • Friendlier backtraces for exceptions originating in honeybadger.yml.
  • Notify errors in Shoryuken batches -@phstc

Fixed

  • Rails environment is now loaded when running honeybadger cli from a Rails root. This fixes an issue where programmatic configuration from Rails was not loaded.
  • Fixed logger isn't being overridden properly when configuring with Honeybadger.configure -@anujbiyani

[3.0.2] - 2017-02-16

Fixed

  • Fixed a bug caused by an interaction with the semantic_logger gem.

[3.0.1] - 2017-02-10

Fixed

  • Fixed a bug which caused a NoMethodError (undefined method `start_with?') when Rack env contained non-string keys.

[3.0.0] - 2017-02-06

Added

  • You may now require 'honeybadger/ruby' instead of 'honeybadger' to get the agent without the integrations (no railtie, plugins or monkey patching).
  • You can now create multiple instances of the Honeybadger agent with different configurations (many classes in the library can be composed).
  • Honeybadger.configure works again -- use it to configure the library from Ruby! (we still default to honeybadger.yml in our installer)
  • Our test suite is now leaner and meaner (which means we can add new features faster). Reduced typical build times from up to 2 minutes to 20 seconds.
  • We've rebuilt the CLI from scratch. The new CLI features super verbose error messages with (hopefully) helpful suggestions, some new commands, and better framework detection in the install and test commands.
  • Use honeybadger exec your_command from the command line to report the error when the command fails due to a non-zero exit status or standard error output. (Use it to report failures in cron!) See honeybadger help exec.
  • Use honeybadger notify from the command line to report custom errors to Honeybadger. See honeybadger help notify.
  • ~/honeybadger.yml is now a default config path for the CLI and standalone-ruby installations.
  • Honeybadger.notify now converts arguments which are not Exception or Hash types to strings and assigns them as the error message. Example: Honeybadger.notify("Something went wrong").
  • The currently deployed git revision is now detected automatically and sent with error reports.

Changed

  • Honeybadger.start has been deprecated and has no effect.
  • We've changed some of the underlying code of the library. If you depend on internal APIs (such as thread local variable names or any functions not marked public in the code comments) then you may need to update your code. If you are developing 3rd-party integrations with our gem let us know so that we can work with you to build the public APIs you need.
  • All Rack middleware no longer require an argument (which used to be a Honeybadger::Config instance) when using them. They now default to the global agent and accept an optional argument which expects an alternate Honeybadger::Agent instance.
  • The plugins.skip config option has been renamed to skipped_plugins.
  • The sidekiq.use_component config option is now true by default. To get the old behavior, set it to false. When enabled, the Sidekiq plugin will automatically set the component to the class of the job, which helps with grouping.
  • The request.filter_keys option now includes partial matches: with the filter value "password", keys such as "password" and "otherpassword" will be filtered.
  • CGI variables are now whitelisted when sending the Rack environment to Honeybadger to prevent sensitive data leakage.
  • Honeybadger.notify now raises an exception in development mode when called without the required arguments. It logs outside of development and continues to send a generic error report.

Removed

  • Ruby 1.9.3 and 2.0.x are no longer supported.
  • Honeybadger.notify_or_ignore has been removed. Use Honeybadger.notify(e) and Honeybadger.notify(e, force: true) (to skip ignore filters).
  • The CLI command honeybadger config has been removed.
  • All deprecated Rails controller methods (from version 1.x) have been removed.
  • The deprecated Honeybadger::Rack::MetricsReporter middleware has been removed.

Fixed

  • Arrays are no longer compacted during sanitization (nil values will be sent as they originally appeared).
  • Resque plugin now reports Resque::DirtyExit exceptions.

[2.7.2] - 2016-12-12

Fixed

  • Pass whole exception to notify_or_ignore (includes causes). -@CGamesPlay

[2.7.1] - 2016-11-16

Fixed

  • Fix a Sinatra bug where RACK_ENV default was not used as default env.
  • Fixed an error when accessing notice request data from exception_fingerprint callback.

[2.7.0] - 2016-10-20

Added

  • Support Sinatra 2.0.
  • Source snippets are now sent for every line of the backtrace.

Changed

[2.6.1] - 2016-08-24

Added

  • shoryuken plugin. -@ivanvc

Fixed

  • Handle Errno::ENETUNREACH error when contacting server. -@tank-bohr
  • Remove ActionDispatch::Http::Headers from trace payload (fixes IOError when JSON encoding traces in Rails 5).
  • Fix "invoke("git:set_current_revision") already invoked" warning in Capistrano 3.6.

[2.6.0] - 2016-04-22

Added

  • Automatically report unhandled exceptions at exit.
  • Add Honeybadger.get_context method. -@homanchou

Changed

  • Filter Authorization header (HTTP_AUTHORIZATION) by default.

Fixed

  • Always convert to string when sanitizing strings.
  • Fix potential performance issue due to and ensure block. See #186.

[2.5.3] - 2016-03-10

Fixed

  • Squashed a bug where the wrong source extract was sent for some instances of ActionView::Template::Error.

[2.5.2] - 2016-03-08

Fixed

  • Allow plugin names in config to be symbols or strings (#177).
  • Fix bug in resque-retry logic. -@davidguthu

[2.5.1] - 2016-02-22

Fixed

  • Fix bug in resque-retry logic. -@davidguthu

[2.5.0] - 2016-02-19

Added

  • Configuration option max_queue_size for maximum worker queue size.
  • Add resque.resque_retry.send_exceptions_when_retrying config option. -@davidguthu

[2.4.1] - 2016-02-04

Fixed

  • Never send traces or metrics when disabled by plan or config.

[2.4.0] - 2016-02-02

Added

[2.3.3] - 2016-01-06

Fixed

  • Fixed a bug which caused a Passenger-related error message when booting a heroku console.

[2.3.2] - 2015-12-15

Fixed

  • Be stricter when sanitizing recursive objects (allow only Hash, Array, Set). This fixes a bug where some gems (such as the dropbox gem) monkeypatch #to_hash on Array.

[2.3.1] - 2015-11-20

Fixed

  • Handle invalid utf8 in ActiveRecord SQL queries.

[2.3.0] - 2015-11-12

Added

  • Rails 5 support.
  • Support overriding TTY behavior in rake reporter.

Fixed

  • Capistrano 3 undefined method verbosity'` bugfix.
  • Fixed "uninitialized constant Set" error when Set is not previously required.

[2.2.0] - 2015-10-29

Added

  • Added a config option to automatically set the component to the class name of the Sidekiq job where an error originated. Causes errors to be grouped by worker in addition to class name/location.

Fixed

  • Always refresh capistrano revision during deploy notification.
  • Support capistrano-chruby. -Kyle Rippey
  • Send the wrapped class name for Sidekiq traces when using a wrapper such as ActiveJob.
  • Performance tuning for Sidekiq plugin.

[2.1.5] - 2015-09-23

Fixed

  • Apply parameter filters to local variables.

[2.1.4] - 2015-09-02

Fixed

  • Support windows paths when loading plugins. -@aharpervc

[2.1.3] - 2015-07-24

Added

  • Don't send empty local_variables in payload when disabled.
  • Better logging of reason when API requests are denied.
  • Truncate long queries in traces rather than tossing them.

Fixed

  • Missing vendor libs.

[2.1.2][yanked]

[2.1.1] - 2015-07-15

Added

  • Update heroku cli deprecations. -@adamkuipers
  • Don't insert middleware if they're disabled. -Bradley Priest
  • Don't send RAW_POST_DATA.
  • Filter HTTP_COOKIE in request cgi_data. -Sam McTaggart
  • Support for extracting the correct component & action for Rails Active Jobs (previously all Active Jobs where reported as 'ActiveJob::QueueAdapters::DelayedJobAdapter::JobWrapper'). -Panos Korros

Fixed

  • Fix breakage relating to Exceptions containing a :cause attribute which is not itself an Exception. -Gabe da Silveira

[2.1.0] - 2015-06-04

Added

  • Add events to instrumented traces (i.e. in background jobs).
  • Restart workers once per hour when shutdown due to 40x.
  • Send request data with traces.
  • Support Resque natively.
  • Configure sidekiq.attempt_threshold to suppress notifications until retry threshold is reached.
  • Add exceptions.unwrap to config.

Changed

  • Trim all sanitized strings to 2k.
  • Ditch per-controller metrics and add render_partial event to traces. -Benjamin Curtis
  • Exit with 1 from deploy command when request fails but ignore the failures in the capistrano task.
  • Update default ignored exceptions to include the latest Rails rescue responses. (see issue #107)
  • Exceptions with the same type but caused within different delayed jobs are not grouped together. They have their component and action set so that the application class name and excecuted action is displayed in the UI. -Panos Korros
  • All events logged within a delayed_job even those logged by Honeybadger.notify inherit the context of the delayed job and include the job_id, attempts, last_error and queue. -Panos Korros

Fixed

  • Allow API key to be overridden from Honeybadger.notify.
  • Fix a tracing issue with net/http requests.
  • Disable local variables when BetterErrors is detected.
  • Prevent Sinatra from using the same middleware more than once and add sinatra.enabled setting (default true) to disable auto-initialization of Sinatra.
  • Catch Errno::ENFILE when reading system stats. -Dmitry Polushkin
  • Use explicit types for config options when casting from ENV.

[2.0.12] - 2015-04-27

Fixed

  • Fix bug when processing source extract for action_view templates.

[2.0.11] - 2015-04-02

Fixed

  • Don't access secrets before Rails initialization.
  • Fix a bug which introduced a hard-dependency on Rack.

[2.0.10] - 2015-03-24

Added

  • Add support for honeybadger_user with Capistrano 2. -Nathan Fixler

Fixed

  • Fix a bug in ping where JSON was double-quoted.

[2.0.9] - 2015-03-15

Fixed

  • Fixed a bug introduced in v2.0.8 which applied params filters to backtrace.
  • Fail gracefully when honeybadger.yml is empty or invalid.

[2.0.8] - 2015-03-11

Added

  • Include full backtrace when logging worker exceptions.
  • Always send a test notice on install.
  • Send the id of the current process with error reports.

Fixed

  • Handle bad encodings in exception payloads.

[2.0.7][yanked] - 2015-03-11

[2.0.6] - 2015-02-16

Fixed

  • Don't sub partial project root in backtrace lines.

[2.0.5] - 2015-02-12

Added

  • Merge exceptions.ignore config values with default ignored exception class names and add exceptions.ignore_only option to override.

[2.0.4] - 2015-02-10

Added

  • Support for capistrano-rbenv gem in Capistrano task. -Chris Gunther

[2.0.3] - 2015-02-10

Fixed

  • Support for capistrano-rvm gem in Capistrano task. -Kyle Rippey
  • Don't require honeybadger.yml to be writable when reading.

[2.0.2] - 2015-02-04

Fixed

  • Detect ActionDispatch::TestProcess being included globally, fix issue locally, warn the user.
  • Fix a nil logger bug when a config error occurs.

[2.0.1] - 2015-01-30

Fixed

  • Don't instrument metrics and traces in Rails when features are not available on account.
  • Don't send error reports when disabled via configuration.