prosopite 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +11 -4
- data/lib/prosopite/middleware/rack.rb +4 -1
- data/lib/prosopite/middleware/sidekiq.rb +1 -1
- data/lib/prosopite/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0509715095d0797998d5bd88ad33bf6390bbc68d5da7f34a10ada120bbcbe96d'
|
|
4
|
+
data.tar.gz: 3e05d4ae63f68955c002853d5820bac19ab239b7d4987576bf1d7b9dd85f7d06
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 63408215134ec404aba9cd4728ae2bdbb57b0924c08449a1cccc1f72d46cfdedec33685643b452eac0a23ff05abbb0fc74f96954b0ec874b94aef974f46d2ed0
|
|
7
|
+
data.tar.gz: d1b9a6d908bf2b17bbe9710b446a0c7b3f66a1a5b0468aaabb37b085d152d609a973faec5ae529d859ecea8c297d93ff3128917344ae6ff0159fb4fc5041a10b
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -214,19 +214,19 @@ implementing auto detect for all controllers.
|
|
|
214
214
|
Add the following line into your `config/initializers/prosopite.rb` file.
|
|
215
215
|
|
|
216
216
|
```ruby
|
|
217
|
-
unless Rails.production?
|
|
217
|
+
unless Rails.env.production?
|
|
218
218
|
require 'prosopite/middleware/rack'
|
|
219
219
|
Rails.configuration.middleware.use(Prosopite::Middleware::Rack)
|
|
220
220
|
end
|
|
221
|
-
|
|
221
|
+
```
|
|
222
222
|
|
|
223
223
|
### Sidekiq
|
|
224
|
-
We also provide a middleware for sidekiq so that you can auto detect n+1 queries that may occur in a sidekiq job.
|
|
224
|
+
We also provide a middleware for sidekiq `6.5.0+` so that you can auto detect n+1 queries that may occur in a sidekiq job.
|
|
225
225
|
You just need to add the following to your sidekiq initializer.
|
|
226
226
|
|
|
227
227
|
```ruby
|
|
228
228
|
Sidekiq.configure_server do |config|
|
|
229
|
-
unless Rails.production?
|
|
229
|
+
unless Rails.env.production?
|
|
230
230
|
config.server_middleware do |chain|
|
|
231
231
|
require 'prosopite/middleware/sidekiq'
|
|
232
232
|
chain.add(Prosopite::Middleware::Sidekiq)
|
|
@@ -235,6 +235,13 @@ Sidekiq.configure_server do |config|
|
|
|
235
235
|
end
|
|
236
236
|
```
|
|
237
237
|
|
|
238
|
+
For applications running sidekiq < `6.5.0` but want to add the snippet, you can guard the snippet with something like this and remove it once you upgrade sidekiq:
|
|
239
|
+
```ruby
|
|
240
|
+
if Sidekiq::VERSION >= '6.5.0' && (Rails.env.development? || Rails.env.test?)
|
|
241
|
+
.....
|
|
242
|
+
end
|
|
243
|
+
```
|
|
244
|
+
|
|
238
245
|
## Allow list
|
|
239
246
|
|
|
240
247
|
Ignore notifications for call stacks containing one or more substrings / regex:
|
data/lib/prosopite/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: prosopite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mpampis Kostas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-12-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pry
|