CHANGELOG.md in tobox-0.3.2 vs CHANGELOG.md in tobox-0.4.0
- old
+ new
@@ -1,14 +1,50 @@
## [Unreleased]
+## [0.4.0] - 2023-05-19
-## [0.3.2] - 2022-03-06
+### Features
+#### `:stats` plugin
+
+The `:stats` plugin collects statistics related with the outbox table periodically, and exposes them to app code (which can then relay them to a statsD collector, or similar tool).
+
+
+```ruby
+plugin(:stats)
+on_stats(5) do |stats_collector| # every 5 seconds
+ stats = stats_collector.collect
+ StatsD.gauge('outbox_pending_backlog', stats[:pending_count])
+end
+```
+
+Read more about it in [the project README](https://gitlab.com/os85/tobox#stats).
+
+#### on_start/on_stop callbacks
+
+The `on_start` and `on_stop` callbacks can now be defined in `tobox` configuration:
+
+```ruby
+# tobox.rb
+on_start do
+ puts "tobox is starting..."
+end
+on_stop do
+ puts "tobox is stopping..."
+end
+```
+
### Bugfixes
+* tobox configuration file is now only loaded after everything else, so access to application code is guaranteed.
+
+## [0.3.2] - 2023-03-06
+
+### Bugfixes
+
* allow sentry error capture if `report_after_retries` option is turned off.
-## [0.3.1] - 2022-03-03
+## [0.3.1] - 2023-03-03
### Bugfixes
In Sentry plugin, exception capturing is no longer dependent on transaction monitoring being enabled (if `traces_sampling_rate` would be set to 0, exceptions wouldn't be capture; now they are).