yabeda-rails 0.10.0 → 0.11.0
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/.github/workflows/test.yml +2 -0
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/lib/yabeda/rails/version.rb +1 -1
- data/lib/yabeda/rails.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7319b68d8a8349187c4ce4dcdb77859f7ef63cfb3719d56e564c6ecef48daa3b
|
|
4
|
+
data.tar.gz: 8f77ef89f3aa1789cd6b6d37d973effc948721b0fefc200ed92f8b7dbfb29bfd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 43b35bd4aa50475c5891c74012f2bb7fc958de2efe98b3c05c22d9c9651be87ece0ab45178f29886816ce702476176244b9e98abdcf8fc3454265a4e25ae2948
|
|
7
|
+
data.tar.gz: 755e8a5a3ff85e6dceb833f15a1a400e6de916bc90e4d4a7eb9df2ca3793818be0b7837474e3105c0196d5d6fd752185a3bd5c10eadb162cd770c039c8d7b776
|
data/.github/workflows/test.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## 0.11.0 - 2025-12-03
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Ability to use procs and regexps in `ignore_actions` configuration. [@lewispb][] in [#34](https://github.com/yabeda-rb/yabeda-rails/pull/34), [@Envek][]
|
|
13
|
+
|
|
8
14
|
## 0.10.0 - 2025-09-09
|
|
9
15
|
|
|
10
16
|
### Added
|
data/README.md
CHANGED
|
@@ -84,7 +84,7 @@ Configuration is handled by [anyway_config] gem. With it you can load settings f
|
|
|
84
84
|
| ---------------------- | ------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
85
85
|
| `apdex_target` | integer | nil | Tolerable time for Apdex in seconds, exposed as gauge if set. |
|
|
86
86
|
| `controller_name_case` | symbol | :snake | Defines whether controller name is reported in camel case (:camel) or snake case (:snake). |
|
|
87
|
-
| `ignore_actions` | array
|
|
87
|
+
| `ignore_actions` | array or proc | [] | array of controller#action strings or a proc that receives the controller#action string and returns true if the action should be ignored. Controller should be in camel case, example `['HealthCheck::HealthCheckController#index']` or `->(controller_action) { controller_action.start_with?("HealthCheck") }` |
|
|
88
88
|
|
|
89
89
|
## Development
|
|
90
90
|
|
data/lib/yabeda/rails/version.rb
CHANGED
data/lib/yabeda/rails.rb
CHANGED
|
@@ -58,7 +58,9 @@ module Yabeda
|
|
|
58
58
|
ActiveSupport::Notifications.subscribe "process_action.action_controller" do |*args|
|
|
59
59
|
event = Yabeda::Rails::Event.new(*args)
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
# rubocop: disable Style/CaseEquality
|
|
62
|
+
next if Array(config.ignore_actions).any? { |action| action === event.controller_action }
|
|
63
|
+
# rubocop: enable Style/CaseEquality
|
|
62
64
|
|
|
63
65
|
rails_requests_total.increment(event.labels)
|
|
64
66
|
rails_request_duration.measure(event.labels, event.duration)
|