promenade 0.10.0 → 0.12.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/ci.yaml +1 -1
- data/Gemfile.lock +103 -93
- data/lib/promenade/client/rack/http_request_duration_collector.rb +3 -3
- data/lib/promenade/client/rack/http_request_queue_time_collector.rb +1 -1
- data/lib/promenade/version.rb +1 -1
- data/promenade.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7bc9e7a5eea7ac5b45433a918e6b54091707c782787222df5c55ec7cc58ce1ac
|
|
4
|
+
data.tar.gz: 35c5975acc909c8a5a7357b51456a18218f133071feb21085c761a0ab6dfa19e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7e129c3967cd01d47b1b35bd993063c0f39b691328ec4eef5c23240292e3eff55cf8a53acb2ef9e20651a310891fca04c2bb0bbccc65024688c4ed27fc10ae9c
|
|
7
|
+
data.tar.gz: 0cf13c348c38cfd1dba981ee2b6a0e9cae756bc5e7d6160675c326abb70353aa815eb97aad3f433e700e6547049c8549e5c7139b73eb7232c34d44084e22e1e6
|
data/.github/workflows/ci.yaml
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
promenade (0.
|
|
4
|
+
promenade (0.11.0)
|
|
5
5
|
actionpack
|
|
6
6
|
activesupport (> 6.0, < 8.0)
|
|
7
|
-
prometheus-client-mmap (~> 0.
|
|
7
|
+
prometheus-client-mmap (~> 0.28)
|
|
8
8
|
rack
|
|
9
9
|
|
|
10
10
|
GEM
|
|
11
11
|
remote: https://rubygems.org/
|
|
12
12
|
specs:
|
|
13
|
-
actioncable (7.0.
|
|
14
|
-
actionpack (= 7.0.
|
|
15
|
-
activesupport (= 7.0.
|
|
13
|
+
actioncable (7.0.6)
|
|
14
|
+
actionpack (= 7.0.6)
|
|
15
|
+
activesupport (= 7.0.6)
|
|
16
16
|
nio4r (~> 2.0)
|
|
17
17
|
websocket-driver (>= 0.6.1)
|
|
18
|
-
actionmailbox (7.0.
|
|
19
|
-
actionpack (= 7.0.
|
|
20
|
-
activejob (= 7.0.
|
|
21
|
-
activerecord (= 7.0.
|
|
22
|
-
activestorage (= 7.0.
|
|
23
|
-
activesupport (= 7.0.
|
|
18
|
+
actionmailbox (7.0.6)
|
|
19
|
+
actionpack (= 7.0.6)
|
|
20
|
+
activejob (= 7.0.6)
|
|
21
|
+
activerecord (= 7.0.6)
|
|
22
|
+
activestorage (= 7.0.6)
|
|
23
|
+
activesupport (= 7.0.6)
|
|
24
24
|
mail (>= 2.7.1)
|
|
25
25
|
net-imap
|
|
26
26
|
net-pop
|
|
27
27
|
net-smtp
|
|
28
|
-
actionmailer (7.0.
|
|
29
|
-
actionpack (= 7.0.
|
|
30
|
-
actionview (= 7.0.
|
|
31
|
-
activejob (= 7.0.
|
|
32
|
-
activesupport (= 7.0.
|
|
28
|
+
actionmailer (7.0.6)
|
|
29
|
+
actionpack (= 7.0.6)
|
|
30
|
+
actionview (= 7.0.6)
|
|
31
|
+
activejob (= 7.0.6)
|
|
32
|
+
activesupport (= 7.0.6)
|
|
33
33
|
mail (~> 2.5, >= 2.5.4)
|
|
34
34
|
net-imap
|
|
35
35
|
net-pop
|
|
36
36
|
net-smtp
|
|
37
37
|
rails-dom-testing (~> 2.0)
|
|
38
|
-
actionpack (7.0.
|
|
39
|
-
actionview (= 7.0.
|
|
40
|
-
activesupport (= 7.0.
|
|
41
|
-
rack (~> 2.0, >= 2.2.
|
|
38
|
+
actionpack (7.0.6)
|
|
39
|
+
actionview (= 7.0.6)
|
|
40
|
+
activesupport (= 7.0.6)
|
|
41
|
+
rack (~> 2.0, >= 2.2.4)
|
|
42
42
|
rack-test (>= 0.6.3)
|
|
43
43
|
rails-dom-testing (~> 2.0)
|
|
44
44
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
|
45
|
-
actiontext (7.0.
|
|
46
|
-
actionpack (= 7.0.
|
|
47
|
-
activerecord (= 7.0.
|
|
48
|
-
activestorage (= 7.0.
|
|
49
|
-
activesupport (= 7.0.
|
|
45
|
+
actiontext (7.0.6)
|
|
46
|
+
actionpack (= 7.0.6)
|
|
47
|
+
activerecord (= 7.0.6)
|
|
48
|
+
activestorage (= 7.0.6)
|
|
49
|
+
activesupport (= 7.0.6)
|
|
50
50
|
globalid (>= 0.6.0)
|
|
51
51
|
nokogiri (>= 1.8.5)
|
|
52
|
-
actionview (7.0.
|
|
53
|
-
activesupport (= 7.0.
|
|
52
|
+
actionview (7.0.6)
|
|
53
|
+
activesupport (= 7.0.6)
|
|
54
54
|
builder (~> 3.1)
|
|
55
55
|
erubi (~> 1.4)
|
|
56
56
|
rails-dom-testing (~> 2.0)
|
|
57
57
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
|
58
|
-
activejob (7.0.
|
|
59
|
-
activesupport (= 7.0.
|
|
58
|
+
activejob (7.0.6)
|
|
59
|
+
activesupport (= 7.0.6)
|
|
60
60
|
globalid (>= 0.3.6)
|
|
61
|
-
activemodel (7.0.
|
|
62
|
-
activesupport (= 7.0.
|
|
63
|
-
activerecord (7.0.
|
|
64
|
-
activemodel (= 7.0.
|
|
65
|
-
activesupport (= 7.0.
|
|
66
|
-
activestorage (7.0.
|
|
67
|
-
actionpack (= 7.0.
|
|
68
|
-
activejob (= 7.0.
|
|
69
|
-
activerecord (= 7.0.
|
|
70
|
-
activesupport (= 7.0.
|
|
61
|
+
activemodel (7.0.6)
|
|
62
|
+
activesupport (= 7.0.6)
|
|
63
|
+
activerecord (7.0.6)
|
|
64
|
+
activemodel (= 7.0.6)
|
|
65
|
+
activesupport (= 7.0.6)
|
|
66
|
+
activestorage (7.0.6)
|
|
67
|
+
actionpack (= 7.0.6)
|
|
68
|
+
activejob (= 7.0.6)
|
|
69
|
+
activerecord (= 7.0.6)
|
|
70
|
+
activesupport (= 7.0.6)
|
|
71
71
|
marcel (~> 1.0)
|
|
72
72
|
mini_mime (>= 1.1.0)
|
|
73
|
-
activesupport (7.0.
|
|
73
|
+
activesupport (7.0.6)
|
|
74
74
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
75
75
|
i18n (>= 1.6, < 2)
|
|
76
76
|
minitest (>= 5.1)
|
|
@@ -89,12 +89,13 @@ GEM
|
|
|
89
89
|
erubi (1.12.0)
|
|
90
90
|
globalid (1.1.0)
|
|
91
91
|
activesupport (>= 5.0)
|
|
92
|
-
i18n (1.
|
|
92
|
+
i18n (1.14.1)
|
|
93
93
|
concurrent-ruby (~> 1.0)
|
|
94
94
|
json (2.6.3)
|
|
95
|
-
|
|
95
|
+
language_server-protocol (3.17.0.3)
|
|
96
|
+
loofah (2.21.3)
|
|
96
97
|
crass (~> 1.0.2)
|
|
97
|
-
nokogiri (>= 1.
|
|
98
|
+
nokogiri (>= 1.12.0)
|
|
98
99
|
mail (2.8.1)
|
|
99
100
|
mini_mime (>= 0.1.1)
|
|
100
101
|
net-imap
|
|
@@ -103,9 +104,9 @@ GEM
|
|
|
103
104
|
marcel (1.0.2)
|
|
104
105
|
method_source (1.0.0)
|
|
105
106
|
mini_mime (1.1.2)
|
|
106
|
-
mini_portile2 (2.8.
|
|
107
|
-
minitest (5.
|
|
108
|
-
net-imap (0.3.
|
|
107
|
+
mini_portile2 (2.8.4)
|
|
108
|
+
minitest (5.18.1)
|
|
109
|
+
net-imap (0.3.6)
|
|
109
110
|
date
|
|
110
111
|
net-protocol
|
|
111
112
|
net-pop (0.1.2)
|
|
@@ -114,58 +115,63 @@ GEM
|
|
|
114
115
|
timeout
|
|
115
116
|
net-smtp (0.3.3)
|
|
116
117
|
net-protocol
|
|
117
|
-
nio4r (2.5.
|
|
118
|
-
nokogiri (1.
|
|
119
|
-
mini_portile2 (~> 2.8.
|
|
118
|
+
nio4r (2.5.9)
|
|
119
|
+
nokogiri (1.15.3)
|
|
120
|
+
mini_portile2 (~> 2.8.2)
|
|
120
121
|
racc (~> 1.4)
|
|
121
|
-
parallel (1.
|
|
122
|
-
parser (3.2.
|
|
122
|
+
parallel (1.23.0)
|
|
123
|
+
parser (3.2.2.3)
|
|
123
124
|
ast (~> 2.4.1)
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
racc
|
|
126
|
+
prometheus-client-mmap (0.28.1)
|
|
127
|
+
rb_sys (~> 0.9)
|
|
128
|
+
racc (1.7.1)
|
|
129
|
+
rack (2.2.7)
|
|
130
|
+
rack-test (2.1.0)
|
|
128
131
|
rack (>= 1.3)
|
|
129
|
-
rails (7.0.
|
|
130
|
-
actioncable (= 7.0.
|
|
131
|
-
actionmailbox (= 7.0.
|
|
132
|
-
actionmailer (= 7.0.
|
|
133
|
-
actionpack (= 7.0.
|
|
134
|
-
actiontext (= 7.0.
|
|
135
|
-
actionview (= 7.0.
|
|
136
|
-
activejob (= 7.0.
|
|
137
|
-
activemodel (= 7.0.
|
|
138
|
-
activerecord (= 7.0.
|
|
139
|
-
activestorage (= 7.0.
|
|
140
|
-
activesupport (= 7.0.
|
|
132
|
+
rails (7.0.6)
|
|
133
|
+
actioncable (= 7.0.6)
|
|
134
|
+
actionmailbox (= 7.0.6)
|
|
135
|
+
actionmailer (= 7.0.6)
|
|
136
|
+
actionpack (= 7.0.6)
|
|
137
|
+
actiontext (= 7.0.6)
|
|
138
|
+
actionview (= 7.0.6)
|
|
139
|
+
activejob (= 7.0.6)
|
|
140
|
+
activemodel (= 7.0.6)
|
|
141
|
+
activerecord (= 7.0.6)
|
|
142
|
+
activestorage (= 7.0.6)
|
|
143
|
+
activesupport (= 7.0.6)
|
|
141
144
|
bundler (>= 1.15.0)
|
|
142
|
-
railties (= 7.0.
|
|
143
|
-
rails-dom-testing (2.
|
|
144
|
-
activesupport (>=
|
|
145
|
+
railties (= 7.0.6)
|
|
146
|
+
rails-dom-testing (2.1.1)
|
|
147
|
+
activesupport (>= 5.0.0)
|
|
148
|
+
minitest
|
|
145
149
|
nokogiri (>= 1.6)
|
|
146
|
-
rails-html-sanitizer (1.
|
|
147
|
-
loofah (~> 2.
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
150
|
+
rails-html-sanitizer (1.6.0)
|
|
151
|
+
loofah (~> 2.21)
|
|
152
|
+
nokogiri (~> 1.14)
|
|
153
|
+
railties (7.0.6)
|
|
154
|
+
actionpack (= 7.0.6)
|
|
155
|
+
activesupport (= 7.0.6)
|
|
151
156
|
method_source
|
|
152
157
|
rake (>= 12.2)
|
|
153
158
|
thor (~> 1.0)
|
|
154
159
|
zeitwerk (~> 2.5)
|
|
155
160
|
rainbow (3.1.1)
|
|
156
161
|
rake (13.0.6)
|
|
157
|
-
|
|
162
|
+
rb_sys (0.9.84)
|
|
163
|
+
regexp_parser (2.8.1)
|
|
158
164
|
rexml (3.2.5)
|
|
159
165
|
rspec (3.12.0)
|
|
160
166
|
rspec-core (~> 3.12.0)
|
|
161
167
|
rspec-expectations (~> 3.12.0)
|
|
162
168
|
rspec-mocks (~> 3.12.0)
|
|
163
|
-
rspec-core (3.12.
|
|
169
|
+
rspec-core (3.12.2)
|
|
164
170
|
rspec-support (~> 3.12.0)
|
|
165
|
-
rspec-expectations (3.12.
|
|
171
|
+
rspec-expectations (3.12.3)
|
|
166
172
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
167
173
|
rspec-support (~> 3.12.0)
|
|
168
|
-
rspec-mocks (3.12.
|
|
174
|
+
rspec-mocks (3.12.6)
|
|
169
175
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
170
176
|
rspec-support (~> 3.12.0)
|
|
171
177
|
rspec-rails (5.1.2)
|
|
@@ -176,40 +182,44 @@ GEM
|
|
|
176
182
|
rspec-expectations (~> 3.10)
|
|
177
183
|
rspec-mocks (~> 3.10)
|
|
178
184
|
rspec-support (~> 3.10)
|
|
179
|
-
rspec-support (3.12.
|
|
180
|
-
rubocop (1.
|
|
185
|
+
rspec-support (3.12.1)
|
|
186
|
+
rubocop (1.54.2)
|
|
181
187
|
json (~> 2.3)
|
|
188
|
+
language_server-protocol (>= 3.17.0)
|
|
182
189
|
parallel (~> 1.10)
|
|
183
|
-
parser (>= 3.2.
|
|
190
|
+
parser (>= 3.2.2.3)
|
|
184
191
|
rainbow (>= 2.2.2, < 4.0)
|
|
185
192
|
regexp_parser (>= 1.8, < 3.0)
|
|
186
193
|
rexml (>= 3.2.5, < 4.0)
|
|
187
|
-
rubocop-ast (>= 1.
|
|
194
|
+
rubocop-ast (>= 1.28.0, < 2.0)
|
|
188
195
|
ruby-progressbar (~> 1.7)
|
|
189
196
|
unicode-display_width (>= 2.4.0, < 3.0)
|
|
190
|
-
rubocop-ast (1.
|
|
197
|
+
rubocop-ast (1.29.0)
|
|
191
198
|
parser (>= 3.2.1.0)
|
|
192
|
-
rubocop-capybara (2.
|
|
199
|
+
rubocop-capybara (2.18.0)
|
|
193
200
|
rubocop (~> 1.41)
|
|
194
|
-
rubocop-
|
|
201
|
+
rubocop-factory_bot (2.23.1)
|
|
202
|
+
rubocop (~> 1.33)
|
|
203
|
+
rubocop-performance (1.18.0)
|
|
195
204
|
rubocop (>= 1.7.0, < 2.0)
|
|
196
205
|
rubocop-ast (>= 0.4.0)
|
|
197
|
-
rubocop-rails (2.
|
|
206
|
+
rubocop-rails (2.20.2)
|
|
198
207
|
activesupport (>= 4.2.0)
|
|
199
208
|
rack (>= 1.1)
|
|
200
209
|
rubocop (>= 1.33.0, < 2.0)
|
|
201
|
-
rubocop-rspec (2.
|
|
210
|
+
rubocop-rspec (2.22.0)
|
|
202
211
|
rubocop (~> 1.33)
|
|
203
212
|
rubocop-capybara (~> 2.17)
|
|
204
|
-
|
|
213
|
+
rubocop-factory_bot (~> 2.22)
|
|
214
|
+
ruby-progressbar (1.13.0)
|
|
205
215
|
simplecov (0.21.2)
|
|
206
216
|
docile (~> 1.1)
|
|
207
217
|
simplecov-html (~> 0.11)
|
|
208
218
|
simplecov_json_formatter (~> 0.1)
|
|
209
219
|
simplecov-html (0.12.3)
|
|
210
220
|
simplecov_json_formatter (0.1.4)
|
|
211
|
-
thor (1.2.
|
|
212
|
-
timeout (0.
|
|
221
|
+
thor (1.2.2)
|
|
222
|
+
timeout (0.4.0)
|
|
213
223
|
tzinfo (2.0.6)
|
|
214
224
|
concurrent-ruby (~> 1.0)
|
|
215
225
|
unicode-display_width (2.4.2)
|
|
@@ -217,7 +227,7 @@ GEM
|
|
|
217
227
|
websocket-driver (0.7.5)
|
|
218
228
|
websocket-extensions (>= 0.1.0)
|
|
219
229
|
websocket-extensions (0.1.5)
|
|
220
|
-
zeitwerk (2.6.
|
|
230
|
+
zeitwerk (2.6.8)
|
|
221
231
|
|
|
222
232
|
PLATFORMS
|
|
223
233
|
ruby
|
|
@@ -240,4 +250,4 @@ DEPENDENCIES
|
|
|
240
250
|
webrick
|
|
241
251
|
|
|
242
252
|
BUNDLED WITH
|
|
243
|
-
2.
|
|
253
|
+
2.4.17
|
|
@@ -8,12 +8,12 @@ module Promenade
|
|
|
8
8
|
module Client
|
|
9
9
|
module Rack
|
|
10
10
|
class HTTPRequestDurationCollector < MiddlwareBase
|
|
11
|
-
REQUEST_DURATION_HISTOGRAM_NAME = :
|
|
11
|
+
REQUEST_DURATION_HISTOGRAM_NAME = :http_request_duration_seconds
|
|
12
12
|
|
|
13
13
|
# We specifically want to record a separate metric `http_requests_total` even
|
|
14
|
-
# though we know it is a duplicate of
|
|
14
|
+
# though we know it is a duplicate of http_request_duration_seconds_count.
|
|
15
15
|
# This is a very commonly used prometheus metric name, and is very useful
|
|
16
|
-
# e.g. for autoscaling. Using the
|
|
16
|
+
# e.g. for autoscaling. Using the http_request_duration_seconds_count in such
|
|
17
17
|
# queries can be confusing
|
|
18
18
|
REQUESTS_COUNTER_NAME = :http_requests_total
|
|
19
19
|
|
|
@@ -7,7 +7,7 @@ module Promenade
|
|
|
7
7
|
module Client
|
|
8
8
|
module Rack
|
|
9
9
|
class HTTPRequestQueueTimeCollector < MiddlwareBase
|
|
10
|
-
REQUEST_QUEUE_TIME_HISTOGRAM_NAME = :
|
|
10
|
+
REQUEST_QUEUE_TIME_HISTOGRAM_NAME = :http_request_queue_time_seconds
|
|
11
11
|
|
|
12
12
|
private_constant :REQUEST_QUEUE_TIME_HISTOGRAM_NAME
|
|
13
13
|
|
data/lib/promenade/version.rb
CHANGED
data/promenade.gemspec
CHANGED
|
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
|
26
26
|
|
|
27
27
|
spec.add_dependency "actionpack"
|
|
28
28
|
spec.add_dependency "activesupport", "> 6.0", "< 8.0"
|
|
29
|
-
spec.add_dependency "prometheus-client-mmap", "~> 0.
|
|
29
|
+
spec.add_dependency "prometheus-client-mmap", "~> 0.28"
|
|
30
30
|
spec.add_dependency "rack"
|
|
31
31
|
spec.add_development_dependency "bundler", "~> 2.0"
|
|
32
32
|
spec.add_development_dependency "byebug"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: promenade
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.12.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ed Robinson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-01-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actionpack
|
|
@@ -50,14 +50,14 @@ dependencies:
|
|
|
50
50
|
requirements:
|
|
51
51
|
- - "~>"
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: 0.
|
|
53
|
+
version: '0.28'
|
|
54
54
|
type: :runtime
|
|
55
55
|
prerelease: false
|
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
|
58
58
|
- - "~>"
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: 0.
|
|
60
|
+
version: '0.28'
|
|
61
61
|
- !ruby/object:Gem::Dependency
|
|
62
62
|
name: rack
|
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -323,7 +323,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
323
323
|
- !ruby/object:Gem::Version
|
|
324
324
|
version: '0'
|
|
325
325
|
requirements: []
|
|
326
|
-
rubygems_version: 3.
|
|
326
|
+
rubygems_version: 3.4.10
|
|
327
327
|
signing_key:
|
|
328
328
|
specification_version: 4
|
|
329
329
|
summary: Promenade makes it simple to instrument Ruby apps for prometheus scraping
|