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

config: enable performance_stats by default #485

Merged
merged 1 commit into from Jun 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,8 @@ Airbrake Ruby Changelog
* Fixed `AsyncSender` returning `nil` instead of a rejected promise when it
reaches its capacity
([#484](https://github.com/airbrake/airbrake-ruby/pull/484))
* Enabled `performance_stats` by default
([#485](https://github.com/airbrake/airbrake-ruby/pull/485))

### [v4.4.0][v4.4.0] (May 9, 2019)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -362,7 +362,7 @@ all accounts. Please <a href="mailto:support@airbrake.io?subject=Perfomance Moni

Configures performance statistics collection (routes, SQL queries) This
statistics is displayed on the Performance tab of your project. By default, it's
disabled.
enabled.

The statistics is sent via:

Expand All @@ -371,7 +371,7 @@ The statistics is sent via:

```ruby
Airbrake.configure do |c|
c.performance_stats = true
c.performance_stats = false
end
```

Expand Down
2 changes: 1 addition & 1 deletion lib/airbrake-ruby/config.rb
Expand Up @@ -130,7 +130,7 @@ def initialize(user_config = {})
)

self.versions = {}
self.performance_stats = false
self.performance_stats = true
self.performance_stats_flush_period = 15

merge(user_config)
Expand Down
2 changes: 1 addition & 1 deletion spec/config_spec.rb
Expand Up @@ -19,7 +19,7 @@
its(:timeout) { is_expected.to be_nil }
its(:blacklist_keys) { is_expected.to be_empty }
its(:whitelist_keys) { is_expected.to be_empty }
its(:performance_stats) { is_expected.to be_falsey }
its(:performance_stats) { is_expected.to eq(true) }
its(:performance_stats_flush_period) { is_expected.to eq(15) }

describe "#new" do
Expand Down