stackify-ruby-apm 1.8.0 → 1.10.4
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 +0 -24
- data/lib/stackify-ruby-apm-lambda.rb +1 -0
- data/lib/stackify_apm/agent.rb +4 -0
- data/lib/stackify_apm/config.rb +29 -7
- data/lib/stackify_apm/context.rb +8 -1
- data/lib/stackify_apm/helper/database_helper.rb +1 -1
- data/lib/stackify_apm/instrumenter_helper.rb +3 -4
- data/lib/stackify_apm/logger/log_device.rb +7 -5
- data/lib/stackify_apm/root_info.rb +13 -2
- data/lib/stackify_apm/spies/custom_instrumenter.rb +13 -1
- data/lib/stackify_apm/spies/delayed_job.rb +49 -0
- data/lib/stackify_apm/spies/sidekiq.rb +44 -0
- data/lib/stackify_apm/transport/agent_base.rb +23 -0
- data/lib/stackify_apm/transport/agent_http_client.rb +17 -11
- data/lib/stackify_apm/transport/aws_lambda_logging.rb +53 -0
- data/lib/stackify_apm/transport/unix_socket_client.rb +12 -5
- data/lib/stackify_apm/transport_selector.rb +2 -0
- data/lib/stackify_apm/version.rb +1 -1
- data/lib/stackify_ruby_apm.rb +1 -3
- data/lib/stackify_ruby_apm_lambda.rb +62 -0
- data/stackify-ruby-apm.gemspec +33 -2
- metadata +303 -25
- data/.gemignore +0 -8
- data/.gitignore +0 -76
- data/.rubocop.yml +0 -38
- data/.ruby-version +0 -1
- data/Gemfile.lock +0 -252
- data/docker-compose.yml +0 -46
data/.gemignore
DELETED
data/.gitignore
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
/.bundle/
|
2
|
-
/.yardoc
|
3
|
-
/_yardoc/
|
4
|
-
/coverage/
|
5
|
-
/doc/
|
6
|
-
/pkg/
|
7
|
-
/spec/reports/
|
8
|
-
/tmp/
|
9
|
-
|
10
|
-
# rspec failure tracking
|
11
|
-
.rspec_status
|
12
|
-
|
13
|
-
# Ignore bundler config.
|
14
|
-
/.bundle
|
15
|
-
|
16
|
-
# Ignore all logfiles and tempfiles.
|
17
|
-
/log/*
|
18
|
-
/tmp/*
|
19
|
-
!/log/.keep
|
20
|
-
!/tmp/.keep
|
21
|
-
|
22
|
-
# Ignore bundler config.
|
23
|
-
/.bundle
|
24
|
-
|
25
|
-
# Deps
|
26
|
-
node_modules
|
27
|
-
|
28
|
-
# IDE
|
29
|
-
.idea
|
30
|
-
|
31
|
-
# VS Code
|
32
|
-
.vscode
|
33
|
-
.vs
|
34
|
-
|
35
|
-
# Unnecessary since this will be a plugin
|
36
|
-
package-lock.json
|
37
|
-
|
38
|
-
# Folder config file
|
39
|
-
Desktop.ini
|
40
|
-
|
41
|
-
# Windows shortcuts
|
42
|
-
*.lnk
|
43
|
-
|
44
|
-
### OSX ###
|
45
|
-
/**/.DS_Store
|
46
|
-
/.DS_Store
|
47
|
-
.AppleDouble
|
48
|
-
.LSOverride
|
49
|
-
|
50
|
-
# Thumbnails
|
51
|
-
._*
|
52
|
-
|
53
|
-
# Files that might appear on external disk
|
54
|
-
.Spotlight-V100
|
55
|
-
.Trashes
|
56
|
-
|
57
|
-
### Linux ###
|
58
|
-
*~
|
59
|
-
|
60
|
-
# Windows image file caches
|
61
|
-
Thumbs.db
|
62
|
-
ehthumbs.db
|
63
|
-
|
64
|
-
# Ignore .byebug_history, .rspec, brakeman.html
|
65
|
-
.byebug_history
|
66
|
-
.rspec
|
67
|
-
brakeman.html
|
68
|
-
|
69
|
-
|
70
|
-
# Gem
|
71
|
-
*.gem
|
72
|
-
|
73
|
-
#bin
|
74
|
-
bin
|
75
|
-
bin/*
|
76
|
-
|
data/.rubocop.yml
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
AllCops:
|
2
|
-
RubyInterpreters:
|
3
|
-
- ruby
|
4
|
-
- macruby
|
5
|
-
- rake
|
6
|
-
- jruby
|
7
|
-
- rbx
|
8
|
-
|
9
|
-
Exclude:
|
10
|
-
- 'node_modules/**/*'
|
11
|
-
- 'vendor/**/*'
|
12
|
-
- '.git/**/*'
|
13
|
-
- 'spec/**/*'
|
14
|
-
|
15
|
-
Naming/FileName:
|
16
|
-
Exclude:
|
17
|
-
- 'lib/stackify-ruby-apm.rb'
|
18
|
-
|
19
|
-
Metrics/LineLength:
|
20
|
-
Max: 1000
|
21
|
-
|
22
|
-
Metrics/BlockLength:
|
23
|
-
Max: 1000
|
24
|
-
|
25
|
-
Metrics/MethodLength:
|
26
|
-
Enabled: false
|
27
|
-
|
28
|
-
Metrics/ClassLength:
|
29
|
-
Max: 1000
|
30
|
-
|
31
|
-
Style/RedundantFreeze:
|
32
|
-
Enabled: false
|
33
|
-
|
34
|
-
Style/SafeNavigation:
|
35
|
-
Enabled: false
|
36
|
-
|
37
|
-
Metrics/AbcSize:
|
38
|
-
Enabled: false
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.0.0-p648
|
data/Gemfile.lock
DELETED
@@ -1,252 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
stackify-ruby-apm (1.7.4)
|
5
|
-
concurrent-ruby (~> 1.0)
|
6
|
-
delegate_matcher (~> 0.4)
|
7
|
-
google-protobuf (= 3.5.0)
|
8
|
-
net_http_unix (~> 0.2)
|
9
|
-
rufus-scheduler (~> 3.5)
|
10
|
-
|
11
|
-
GEM
|
12
|
-
remote: https://rubygems.org/
|
13
|
-
specs:
|
14
|
-
actionmailer (4.2.11.1)
|
15
|
-
actionpack (= 4.2.11.1)
|
16
|
-
actionview (= 4.2.11.1)
|
17
|
-
activejob (= 4.2.11.1)
|
18
|
-
mail (~> 2.5, >= 2.5.4)
|
19
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
20
|
-
actionpack (4.2.11.1)
|
21
|
-
actionview (= 4.2.11.1)
|
22
|
-
activesupport (= 4.2.11.1)
|
23
|
-
rack (~> 1.6)
|
24
|
-
rack-test (~> 0.6.2)
|
25
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
26
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
27
|
-
actionview (4.2.11.1)
|
28
|
-
activesupport (= 4.2.11.1)
|
29
|
-
builder (~> 3.1)
|
30
|
-
erubis (~> 2.7.0)
|
31
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
32
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
33
|
-
activejob (4.2.11.1)
|
34
|
-
activesupport (= 4.2.11.1)
|
35
|
-
globalid (>= 0.3.0)
|
36
|
-
activemodel (4.2.11.1)
|
37
|
-
activesupport (= 4.2.11.1)
|
38
|
-
builder (~> 3.1)
|
39
|
-
activerecord (4.2.11.1)
|
40
|
-
activemodel (= 4.2.11.1)
|
41
|
-
activesupport (= 4.2.11.1)
|
42
|
-
arel (~> 6.0)
|
43
|
-
activesupport (4.2.11.1)
|
44
|
-
i18n (~> 0.7)
|
45
|
-
minitest (~> 5.1)
|
46
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
47
|
-
tzinfo (~> 1.1)
|
48
|
-
addressable (2.7.0)
|
49
|
-
public_suffix (>= 2.0.2, < 5.0)
|
50
|
-
arel (6.0.4)
|
51
|
-
ast (2.4.0)
|
52
|
-
bson (4.5.0)
|
53
|
-
builder (3.2.3)
|
54
|
-
concurrent-ruby (1.1.5)
|
55
|
-
crack (0.4.3)
|
56
|
-
safe_yaml (~> 1.0.0)
|
57
|
-
crass (1.0.5)
|
58
|
-
curb (0.9.8)
|
59
|
-
delegate_matcher (0.4.3)
|
60
|
-
proc_extensions (~> 0.2)
|
61
|
-
diff-lcs (1.3)
|
62
|
-
domain_name (0.5.20190701)
|
63
|
-
unf (>= 0.0.5, < 1.0.0)
|
64
|
-
erubis (2.7.0)
|
65
|
-
et-orbi (1.2.2)
|
66
|
-
tzinfo
|
67
|
-
fakeredis (0.7.0)
|
68
|
-
redis (>= 3.2, < 5.0)
|
69
|
-
faraday (0.17.1)
|
70
|
-
multipart-post (>= 1.2, < 3)
|
71
|
-
file-tail (1.2.0)
|
72
|
-
tins (~> 1.0)
|
73
|
-
fugit (1.3.3)
|
74
|
-
et-orbi (~> 1.1, >= 1.1.8)
|
75
|
-
raabro (~> 1.1)
|
76
|
-
globalid (0.4.2)
|
77
|
-
activesupport (>= 4.2.0)
|
78
|
-
google-protobuf (3.5.0)
|
79
|
-
hashdiff (1.0.0)
|
80
|
-
http (3.0.0)
|
81
|
-
addressable (~> 2.3)
|
82
|
-
http-cookie (~> 1.0)
|
83
|
-
http-form_data (>= 2.0.0.pre.pre2, < 3)
|
84
|
-
http_parser.rb (~> 0.6.0)
|
85
|
-
http-cookie (1.0.3)
|
86
|
-
domain_name (~> 0.5)
|
87
|
-
http-form_data (2.1.1)
|
88
|
-
http_parser.rb (0.6.0)
|
89
|
-
httpclient (2.8.3)
|
90
|
-
i18n (0.9.5)
|
91
|
-
concurrent-ruby (~> 1.0)
|
92
|
-
loofah (2.4.0)
|
93
|
-
crass (~> 1.0.2)
|
94
|
-
nokogiri (>= 1.5.9)
|
95
|
-
mail (2.7.1)
|
96
|
-
mini_mime (>= 0.1.1)
|
97
|
-
mini_mime (1.0.2)
|
98
|
-
mini_portile2 (2.1.0)
|
99
|
-
minitest (5.12.0)
|
100
|
-
mongo (2.10.2)
|
101
|
-
bson (>= 4.4.2, < 5.0.0)
|
102
|
-
multipart-post (2.1.1)
|
103
|
-
mysql2 (0.5.3)
|
104
|
-
net_http_unix (0.2.2)
|
105
|
-
nokogiri (1.6.8.1)
|
106
|
-
mini_portile2 (~> 2.1.0)
|
107
|
-
parallel (1.13.0)
|
108
|
-
parser (2.6.5.0)
|
109
|
-
ast (~> 2.4.0)
|
110
|
-
pg (0.21.0)
|
111
|
-
powerpack (0.1.2)
|
112
|
-
proc_extensions (0.2)
|
113
|
-
sourcify (~> 0.5)
|
114
|
-
public_suffix (2.0.5)
|
115
|
-
raabro (1.1.6)
|
116
|
-
rack (1.6.11)
|
117
|
-
rack-protection (1.5.5)
|
118
|
-
rack
|
119
|
-
rack-test (0.6.3)
|
120
|
-
rack (>= 1.0)
|
121
|
-
rails (4.2.11.1)
|
122
|
-
actionmailer (= 4.2.11.1)
|
123
|
-
actionpack (= 4.2.11.1)
|
124
|
-
actionview (= 4.2.11.1)
|
125
|
-
activejob (= 4.2.11.1)
|
126
|
-
activemodel (= 4.2.11.1)
|
127
|
-
activerecord (= 4.2.11.1)
|
128
|
-
activesupport (= 4.2.11.1)
|
129
|
-
bundler (>= 1.3.0, < 2.0)
|
130
|
-
railties (= 4.2.11.1)
|
131
|
-
sprockets-rails
|
132
|
-
rails-deprecated_sanitizer (1.0.3)
|
133
|
-
activesupport (>= 4.2.0.alpha)
|
134
|
-
rails-dom-testing (1.0.9)
|
135
|
-
activesupport (>= 4.2.0, < 5.0)
|
136
|
-
nokogiri (~> 1.6)
|
137
|
-
rails-deprecated_sanitizer (>= 1.0.1)
|
138
|
-
rails-html-sanitizer (1.3.0)
|
139
|
-
loofah (~> 2.3)
|
140
|
-
railties (4.2.11.1)
|
141
|
-
actionpack (= 4.2.11.1)
|
142
|
-
activesupport (= 4.2.11.1)
|
143
|
-
rake (>= 0.8.7)
|
144
|
-
thor (>= 0.18.1, < 2.0)
|
145
|
-
rainbow (2.2.2)
|
146
|
-
rake
|
147
|
-
rake (10.5.0)
|
148
|
-
redis (3.3.5)
|
149
|
-
rspec (3.9.0)
|
150
|
-
rspec-core (~> 3.9.0)
|
151
|
-
rspec-expectations (~> 3.9.0)
|
152
|
-
rspec-mocks (~> 3.9.0)
|
153
|
-
rspec-core (3.9.0)
|
154
|
-
rspec-support (~> 3.9.0)
|
155
|
-
rspec-expectations (3.9.0)
|
156
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
157
|
-
rspec-support (~> 3.9.0)
|
158
|
-
rspec-mocks (3.9.0)
|
159
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
160
|
-
rspec-support (~> 3.9.0)
|
161
|
-
rspec-support (3.9.0)
|
162
|
-
rubocop (0.50.0)
|
163
|
-
parallel (~> 1.10)
|
164
|
-
parser (>= 2.3.3.1, < 3.0)
|
165
|
-
powerpack (~> 0.1)
|
166
|
-
rainbow (>= 2.2.2, < 3.0)
|
167
|
-
ruby-progressbar (~> 1.7)
|
168
|
-
unicode-display_width (~> 1.0, >= 1.0.1)
|
169
|
-
ruby-progressbar (1.10.1)
|
170
|
-
ruby2ruby (2.4.4)
|
171
|
-
ruby_parser (~> 3.1)
|
172
|
-
sexp_processor (~> 4.6)
|
173
|
-
ruby_parser (3.14.0)
|
174
|
-
sexp_processor (~> 4.9)
|
175
|
-
rufus-scheduler (3.6.0)
|
176
|
-
fugit (~> 1.1, >= 1.1.6)
|
177
|
-
safe_yaml (1.0.5)
|
178
|
-
sequel (5.27.0)
|
179
|
-
sexp_processor (4.13.0)
|
180
|
-
sinatra (1.4.8)
|
181
|
-
rack (~> 1.5)
|
182
|
-
rack-protection (~> 1.4)
|
183
|
-
tilt (>= 1.3, < 3)
|
184
|
-
sinatra-activerecord (2.0.14)
|
185
|
-
activerecord (>= 3.2)
|
186
|
-
sinatra (>= 1.0)
|
187
|
-
sourcify (0.5.0)
|
188
|
-
file-tail (>= 1.0.5)
|
189
|
-
ruby2ruby (>= 1.2.5)
|
190
|
-
ruby_parser (>= 2.0.5)
|
191
|
-
sexp_processor (>= 3.0.5)
|
192
|
-
sprockets (3.7.2)
|
193
|
-
concurrent-ruby (~> 1.0)
|
194
|
-
rack (> 1, < 3)
|
195
|
-
sprockets-rails (3.2.1)
|
196
|
-
actionpack (>= 4.0)
|
197
|
-
activesupport (>= 4.0)
|
198
|
-
sprockets (>= 3.0.0)
|
199
|
-
sqlite3 (1.3.13)
|
200
|
-
stackify-api-ruby (1.1.0)
|
201
|
-
faraday (~> 0.8)
|
202
|
-
google-protobuf (~> 3.0)
|
203
|
-
net_http_unix (~> 0.2)
|
204
|
-
thor (0.20.3)
|
205
|
-
thread_safe (0.3.6)
|
206
|
-
tilt (2.0.10)
|
207
|
-
timecop (0.9.1)
|
208
|
-
tins (1.22.2)
|
209
|
-
to_bool (2.0.0)
|
210
|
-
tzinfo (1.2.5)
|
211
|
-
thread_safe (~> 0.1)
|
212
|
-
unf (0.1.4)
|
213
|
-
unf_ext
|
214
|
-
unf_ext (0.0.7.6)
|
215
|
-
unicode-display_width (1.6.0)
|
216
|
-
webmock (3.7.6)
|
217
|
-
addressable (>= 2.3.6)
|
218
|
-
crack (>= 0.3.2)
|
219
|
-
hashdiff (>= 0.4.0, < 2.0.0)
|
220
|
-
|
221
|
-
PLATFORMS
|
222
|
-
ruby
|
223
|
-
|
224
|
-
DEPENDENCIES
|
225
|
-
activerecord
|
226
|
-
bundler (~> 1.16)
|
227
|
-
curb (= 0.9.8)
|
228
|
-
fakeredis
|
229
|
-
google-protobuf (= 3.5.0)
|
230
|
-
http
|
231
|
-
httpclient
|
232
|
-
mongo
|
233
|
-
mysql2
|
234
|
-
net_http_unix (~> 0.2)
|
235
|
-
pg (~> 0.20)
|
236
|
-
rack-test
|
237
|
-
rails (~> 4.0)
|
238
|
-
rake (~> 10.0)
|
239
|
-
rspec (~> 3.0)
|
240
|
-
rubocop
|
241
|
-
sequel
|
242
|
-
sinatra
|
243
|
-
sinatra-activerecord
|
244
|
-
sqlite3 (= 1.3.13)
|
245
|
-
stackify-api-ruby
|
246
|
-
stackify-ruby-apm!
|
247
|
-
timecop
|
248
|
-
to_bool
|
249
|
-
webmock
|
250
|
-
|
251
|
-
BUNDLED WITH
|
252
|
-
1.17.3
|
data/docker-compose.yml
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
version: "3"
|
2
|
-
services:
|
3
|
-
|
4
|
-
dbpostgresql:
|
5
|
-
image: postgres
|
6
|
-
volumes:
|
7
|
-
- postgresdata:/var/lib/postgresql/data
|
8
|
-
ports:
|
9
|
-
- 5433:5432
|
10
|
-
environment:
|
11
|
-
POSTGRES_DB: PostgresTestDB
|
12
|
-
POSTGRES_USER: bob
|
13
|
-
POSTGRES_PASSWORD: password
|
14
|
-
container_name: sinatra_activerecord_postgres_test
|
15
|
-
|
16
|
-
dbmysql:
|
17
|
-
image: mysql:5.7
|
18
|
-
volumes:
|
19
|
-
- mysqldata:/var/lib/mysql
|
20
|
-
ports:
|
21
|
-
- 3305:3306
|
22
|
-
environment:
|
23
|
-
- MYSQL_ROOT_PASSWORD=secret
|
24
|
-
- MYSQL_USER=bob
|
25
|
-
- MYSQL_PASSWORD=password
|
26
|
-
- MYSQL_DATABASE=MysqlTestDB
|
27
|
-
container_name: sinatra_activerecord_mysql_test
|
28
|
-
|
29
|
-
dbmongo:
|
30
|
-
image: mongo:3.6
|
31
|
-
volumes:
|
32
|
-
- mongodata:/data/db
|
33
|
-
- mongodata_config:/data/configdb
|
34
|
-
ports:
|
35
|
-
- 27018:27017
|
36
|
-
container_name: sinatra_activerecord_mongo_test
|
37
|
-
|
38
|
-
volumes:
|
39
|
-
postgresdata:
|
40
|
-
driver: local
|
41
|
-
mysqldata:
|
42
|
-
driver: local
|
43
|
-
mongodata:
|
44
|
-
driver: local
|
45
|
-
mongodata_config:
|
46
|
-
driver: local
|