rookout 0.1.49 → 0.1.51
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rookout/augs/aug.rb +4 -1
- data/lib/rookout/augs/limits_manager.rb +3 -2
- data/lib/rookout/commit.rb +1 -1
- data/lib/rookout/config.rb +3 -3
- data/lib/rookout/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b71e6bd18d01e029f8cf4af94972d381ba85e009c585faaefa68bc3a92a02760
|
4
|
+
data.tar.gz: 271feda072ee3e05830a9546c75c55c2c6972f61bc9adefd2391d53ffc39d533
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0d3e4756e6ffeae753cb793b192ddaf14cb23bfce6e3e9ffb1685a88f12afb03fb2fc4dbc7cc3d419f03d34c288166da3b18baa01ce402bcc694f261605ce28
|
7
|
+
data.tar.gz: 72f0f299569c7b88de968c91b35df48248bb9430c8c1166db662e305ab069c80f7d85366815f05d8ad15f35c1daea5fd5e51ae777202e2f4a3a4019174f0a515
|
data/lib/rookout/augs/aug.rb
CHANGED
@@ -16,6 +16,7 @@ module Rookout
|
|
16
16
|
@condition = condition
|
17
17
|
@limits_manager = limits_manager
|
18
18
|
|
19
|
+
@executed = false
|
19
20
|
@enabled = true
|
20
21
|
@status = nil
|
21
22
|
@log_cache = []
|
@@ -34,7 +35,9 @@ module Rookout
|
|
34
35
|
namespace = create_namespaces frame, extracted
|
35
36
|
return if @condition && !@condition.evaluate(namespace)
|
36
37
|
|
37
|
-
@
|
38
|
+
should_skip_limiters = @condition.nil? && !@executed
|
39
|
+
@limits_manager.with_limit should_skip_limiters do
|
40
|
+
@executed = true
|
38
41
|
report_id = Utils.uuid
|
39
42
|
Logger.instance.info "Executing aug-\t#{id} (msg ID #{report_id})"
|
40
43
|
@action.execute @id, report_id, namespace, output
|
@@ -5,13 +5,14 @@ module Rookout
|
|
5
5
|
@limiters = limiters
|
6
6
|
end
|
7
7
|
|
8
|
-
def with_limit start_time = nil
|
8
|
+
def with_limit skip_limiters, start_time = nil
|
9
9
|
start_time ||= Time.now
|
10
10
|
can_execute = true
|
11
11
|
after_execute = []
|
12
12
|
|
13
13
|
@limiters.each do |limiter|
|
14
|
-
|
14
|
+
limiter_passed = limiter.before_run start_time
|
15
|
+
if limiter_passed || skip_limiters
|
15
16
|
after_execute.append -> { limiter.after_run start_time }
|
16
17
|
else
|
17
18
|
can_execute = false
|
data/lib/rookout/commit.rb
CHANGED
data/lib/rookout/config.rb
CHANGED
@@ -34,7 +34,7 @@ module Rookout
|
|
34
34
|
Rookout::Config.agent_com_ping_interval = 10
|
35
35
|
Rookout::Config.agent_com_ping_timeout = 30
|
36
36
|
Rookout::Config.agent_com_flush_timeout = 3
|
37
|
-
Rookout::Config.agent_com_max_queued_messages =
|
37
|
+
Rookout::Config.agent_com_max_queued_messages = 1000
|
38
38
|
|
39
39
|
attr_accessor :backoff_factor
|
40
40
|
attr_accessor :backoff_reset_time
|
@@ -50,9 +50,9 @@ module Rookout
|
|
50
50
|
attr_accessor :output_bucket_refresh_rate
|
51
51
|
|
52
52
|
Rookout::Config.output_max_status_updates = 200
|
53
|
-
Rookout::Config.output_max_aug_messages =
|
53
|
+
Rookout::Config.output_max_aug_messages = 1000
|
54
54
|
Rookout::Config.output_max_log_items = 200
|
55
|
-
Rookout::Config.output_bucket_refresh_rate =
|
55
|
+
Rookout::Config.output_bucket_refresh_rate = 5
|
56
56
|
|
57
57
|
attr_accessor :instrumentation_max_aug_time
|
58
58
|
|
data/lib/rookout/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rookout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.51
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liran Haimovitch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: binding_of_caller
|
@@ -301,7 +301,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
301
301
|
- !ruby/object:Gem::Version
|
302
302
|
version: '0'
|
303
303
|
requirements: []
|
304
|
-
rubygems_version: 3.3.
|
304
|
+
rubygems_version: 3.3.26
|
305
305
|
signing_key:
|
306
306
|
specification_version: 4
|
307
307
|
summary: rookout is the Ruby SDK for the Rookout Debugging Platform
|