Skip to content

Commit

Permalink
chanlog,readme,version
Browse files Browse the repository at this point in the history
  • Loading branch information
0exp committed Aug 15, 2024
1 parent f7eccfe commit 98f6582
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.10.0

* Add an ability to insert Lamian's middleware inside the rails initialization process manually (`Lamian.config.middleware_autoset = true/false`)

## 1.9.0

* Add `max_log_lines` config option to limit number of most recent log lines stored in the log device
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,19 @@ It automatically redefines `Sentry.configuration.before_send` callback
if Sentry initialization is completed. If `before_send` is already defined
it wraps custom callback.

If you work with rails the `Lamian::Engine` will be automatically required, that additionally
adds `Lamian::Middleware` in the first position in your Rails Application middleware stack.

If you need to manually configure the middleware stack use `Lamian.config.middleware_autoset=false.

```ruby
Lamian.configure do |config|
config.middleware_autoset = false
end

Rails.configuration.middleware.use_after(YourSignificantMiddlewareInStack, Lamian::Middleware)
```

### Usage with Sidekiq

You should add Lamian middleware to the Sidekiq initializer like this:
Expand Down
2 changes: 1 addition & 1 deletion lib/lamian/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ module Lamian
# According to this, it is enough to specify '~> a.b'
# if private API was not used and to specify '~> a.b.c' if it was

VERSION = "1.9.0"
VERSION = "1.10.0"
end

0 comments on commit 98f6582

Please sign in to comment.