instrument_all_the_things 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/lint.yaml +21 -0
- data/.github/workflows/test.yaml +32 -0
- data/.gitignore +2 -0
- data/.rubocop-https---raw-githubusercontent-com-GetTerminus-ruby-shared-configs-master--rubocop-yml +91 -0
- data/.ruby-version +1 -1
- data/Gemfile.lock +32 -32
- data/instrument_all_the_things.gemspec +2 -2
- data/lib/instrument_all_the_things/method_instrumentor.rb +2 -2
- data/lib/instrument_all_the_things/version.rb +1 -1
- data/vendor/cache/benchmark-ips-2.10.0.gem +0 -0
- data/vendor/cache/ddtrace-0.54.2.gem +0 -0
- data/vendor/cache/debase-ruby_core_source-0.10.14.gem +0 -0
- data/vendor/cache/diff-lcs-1.5.0.gem +0 -0
- data/vendor/cache/dogstatsd-ruby-5.5.0.gem +0 -0
- data/vendor/cache/msgpack-1.6.0.gem +0 -0
- data/vendor/cache/parallel-1.22.1.gem +0 -0
- data/vendor/cache/parser-3.1.2.0.gem +0 -0
- data/vendor/cache/rainbow-3.1.1.gem +0 -0
- data/vendor/cache/regexp_parser-2.5.0.gem +0 -0
- data/vendor/cache/rspec-3.11.0.gem +0 -0
- data/vendor/cache/rspec-core-3.11.0.gem +0 -0
- data/vendor/cache/rspec-expectations-3.11.0.gem +0 -0
- data/vendor/cache/rspec-mocks-3.11.1.gem +0 -0
- data/vendor/cache/rspec-support-3.11.0.gem +0 -0
- data/vendor/cache/rubocop-1.30.1.gem +0 -0
- data/vendor/cache/rubocop-ast-1.18.0.gem +0 -0
- data/vendor/cache/simplecov_json_formatter-0.1.4.gem +0 -0
- metadata +28 -24
- data/.drone.yml +0 -14
- data/vendor/cache/benchmark-ips-2.9.1.gem +0 -0
- data/vendor/cache/ddtrace-0.52.0.gem +0 -0
- data/vendor/cache/diff-lcs-1.4.4.gem +0 -0
- data/vendor/cache/dogstatsd-ruby-5.2.0.gem +0 -0
- data/vendor/cache/ffi-1.15.4.gem +0 -0
- data/vendor/cache/msgpack-1.4.2.gem +0 -0
- data/vendor/cache/parallel-1.21.0.gem +0 -0
- data/vendor/cache/parser-3.0.2.0.gem +0 -0
- data/vendor/cache/rainbow-3.0.0.gem +0 -0
- data/vendor/cache/regexp_parser-2.1.1.gem +0 -0
- data/vendor/cache/rspec-3.10.0.gem +0 -0
- data/vendor/cache/rspec-core-3.10.1.gem +0 -0
- data/vendor/cache/rspec-expectations-3.10.1.gem +0 -0
- data/vendor/cache/rspec-mocks-3.10.2.gem +0 -0
- data/vendor/cache/rspec-support-3.10.2.gem +0 -0
- data/vendor/cache/simplecov_json_formatter-0.1.3.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21d7874b84243972b1092d6bfca2a524facde48e0a5797fdbe3d9087613c40a0
|
4
|
+
data.tar.gz: f4c586e04169e0e3ed8f7138c1da19fff4ec3df157aceca3a8c0ea1de119b9dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e0dd9e0cedd792983de20e7976e00d6f7942ec0b0e27e146bd56d0b78ffba37399799770fa1e58665dfa93cb4295c599a2619a4f54efaa1e362911e2eb37fc7
|
7
|
+
data.tar.gz: 369c07b601beb50ca043ef68f88431301dcab33ef2ae1f84f9e691a8521f4dbed3c1f90f2ffc7bce4c88397ce46de5944e42af16aab5f061ab25f6cc5f406da8
|
@@ -0,0 +1,21 @@
|
|
1
|
+
name: 'Lint'
|
2
|
+
|
3
|
+
on: push
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
run-rubocop:
|
7
|
+
name: Lint code
|
8
|
+
strategy:
|
9
|
+
fail-fast: false
|
10
|
+
matrix:
|
11
|
+
rubyVersion: ["2.7.6"]
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v3
|
15
|
+
- uses: ruby/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: ${{ matrix.rubyVersion }}
|
18
|
+
bundler-cache: true
|
19
|
+
cache-version: "${{ matrix.rubyVersion }}-v1x-0"
|
20
|
+
- name: Run RuboCop
|
21
|
+
run: bundle exec rubocop
|
@@ -0,0 +1,32 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on: push
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
run-tests:
|
7
|
+
name: Test code
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
strategy:
|
10
|
+
fail-fast: false
|
11
|
+
matrix:
|
12
|
+
ruby:
|
13
|
+
- 3.1.2
|
14
|
+
- 3.0.4
|
15
|
+
- 2.7.6
|
16
|
+
- 2.6.10
|
17
|
+
steps:
|
18
|
+
- uses: actions/checkout@v2
|
19
|
+
- uses: ruby/setup-ruby@v1
|
20
|
+
with:
|
21
|
+
ruby-version: ${{ matrix.ruby }}
|
22
|
+
bundler-cache: true
|
23
|
+
cache-version: "${{ matrix.rubyVersion }}-v1x-0"
|
24
|
+
- name: Run RSpec
|
25
|
+
env:
|
26
|
+
CI: true
|
27
|
+
run: bundle exec rspec
|
28
|
+
- name: Coveralls
|
29
|
+
uses: coverallsapp/github-action@v1.1.2
|
30
|
+
continue-on-error: true
|
31
|
+
with:
|
32
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
data/.gitignore
CHANGED
data/.rubocop-https---raw-githubusercontent-com-GetTerminus-ruby-shared-configs-master--rubocop-yml
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
AllCops:
|
2
|
+
Exclude:
|
3
|
+
- Makefile
|
4
|
+
- vendor/**/*
|
5
|
+
- bin/**/*
|
6
|
+
|
7
|
+
Layout/EndOfLine:
|
8
|
+
Enabled: false
|
9
|
+
|
10
|
+
Style/DateTime:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
Style/Documentation:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
Lint/Debugger:
|
17
|
+
Enabled: true
|
18
|
+
|
19
|
+
Style/FrozenStringLiteralComment:
|
20
|
+
Enabled: true
|
21
|
+
EnforcedStyle: always
|
22
|
+
|
23
|
+
Style/TrailingCommaInHashLiteral:
|
24
|
+
Enabled: true
|
25
|
+
EnforcedStyleForMultiline: comma
|
26
|
+
|
27
|
+
Style/TrailingCommaInArrayLiteral:
|
28
|
+
Enabled: true
|
29
|
+
EnforcedStyleForMultiline: comma
|
30
|
+
|
31
|
+
Style/TrailingCommaInArguments:
|
32
|
+
Enabled: true
|
33
|
+
EnforcedStyleForMultiline: comma
|
34
|
+
|
35
|
+
Lint/UnusedMethodArgument:
|
36
|
+
AllowUnusedKeywordArguments: true
|
37
|
+
|
38
|
+
Layout/LineLength:
|
39
|
+
Enabled: true
|
40
|
+
Max: 280
|
41
|
+
IgnoreCopDirectives: true
|
42
|
+
IgnoredPatterns: ['\A#', '\A\s*sig { .* }\Z']
|
43
|
+
Exclude:
|
44
|
+
- '**/*_pb.rb'
|
45
|
+
|
46
|
+
Metrics/AbcSize:
|
47
|
+
Enabled: true
|
48
|
+
Max: 48
|
49
|
+
|
50
|
+
Metrics/CyclomaticComplexity:
|
51
|
+
Max: 9
|
52
|
+
|
53
|
+
Metrics/MethodLength:
|
54
|
+
Enabled: true
|
55
|
+
Max: 32
|
56
|
+
|
57
|
+
Layout/ParameterAlignment:
|
58
|
+
Enabled: true
|
59
|
+
EnforcedStyle: with_fixed_indentation
|
60
|
+
|
61
|
+
Naming/MethodParameterName:
|
62
|
+
Enabled: true
|
63
|
+
AllowedNames: ['io', 'id', 'to', 'by', 'on', 'in', 'at', '_'] # Defaults + _
|
64
|
+
|
65
|
+
Layout/MultilineMethodCallIndentation:
|
66
|
+
Enabled: true
|
67
|
+
EnforcedStyle: indented
|
68
|
+
|
69
|
+
Style/ParallelAssignment:
|
70
|
+
Enabled: true
|
71
|
+
|
72
|
+
Metrics/ClassLength:
|
73
|
+
Max: 240
|
74
|
+
|
75
|
+
Metrics/BlockLength:
|
76
|
+
Max: 30
|
77
|
+
Exclude:
|
78
|
+
- spec/**/*.rb
|
79
|
+
- '**/*_pb.rb'
|
80
|
+
|
81
|
+
Metrics/ParameterLists:
|
82
|
+
Max: 6
|
83
|
+
|
84
|
+
Lint/AmbiguousBlockAssociation:
|
85
|
+
Exclude:
|
86
|
+
- spec/**/*.rb
|
87
|
+
|
88
|
+
Style/BlockDelimiters:
|
89
|
+
Enabled: true
|
90
|
+
Exclude:
|
91
|
+
- spec/**/*
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.7.6
|
data/Gemfile.lock
CHANGED
@@ -1,66 +1,66 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
instrument_all_the_things (1.
|
5
|
-
ddtrace
|
4
|
+
instrument_all_the_things (1.4.0)
|
5
|
+
ddtrace (< 1)
|
6
6
|
dogstatsd-ruby
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
11
|
ast (2.4.2)
|
12
|
-
benchmark-ips (2.
|
12
|
+
benchmark-ips (2.10.0)
|
13
13
|
coderay (1.1.3)
|
14
|
-
ddtrace (0.
|
15
|
-
|
14
|
+
ddtrace (0.54.2)
|
15
|
+
debase-ruby_core_source (<= 0.10.14)
|
16
16
|
msgpack
|
17
|
-
|
17
|
+
debase-ruby_core_source (0.10.14)
|
18
|
+
diff-lcs (1.5.0)
|
18
19
|
docile (1.4.0)
|
19
|
-
dogstatsd-ruby (5.
|
20
|
-
ffi (1.15.4)
|
20
|
+
dogstatsd-ruby (5.5.0)
|
21
21
|
method_source (1.0.0)
|
22
|
-
msgpack (1.
|
23
|
-
parallel (1.
|
24
|
-
parser (3.
|
22
|
+
msgpack (1.6.0)
|
23
|
+
parallel (1.22.1)
|
24
|
+
parser (3.1.2.0)
|
25
25
|
ast (~> 2.4.1)
|
26
26
|
pry (0.14.1)
|
27
27
|
coderay (~> 1.1)
|
28
28
|
method_source (~> 1.0)
|
29
|
-
rainbow (3.
|
29
|
+
rainbow (3.1.1)
|
30
30
|
rake (10.5.0)
|
31
|
-
regexp_parser (2.
|
31
|
+
regexp_parser (2.5.0)
|
32
32
|
rexml (3.2.5)
|
33
|
-
rspec (3.
|
34
|
-
rspec-core (~> 3.
|
35
|
-
rspec-expectations (~> 3.
|
36
|
-
rspec-mocks (~> 3.
|
37
|
-
rspec-core (3.
|
38
|
-
rspec-support (~> 3.
|
39
|
-
rspec-expectations (3.
|
33
|
+
rspec (3.11.0)
|
34
|
+
rspec-core (~> 3.11.0)
|
35
|
+
rspec-expectations (~> 3.11.0)
|
36
|
+
rspec-mocks (~> 3.11.0)
|
37
|
+
rspec-core (3.11.0)
|
38
|
+
rspec-support (~> 3.11.0)
|
39
|
+
rspec-expectations (3.11.0)
|
40
40
|
diff-lcs (>= 1.2.0, < 2.0)
|
41
|
-
rspec-support (~> 3.
|
42
|
-
rspec-mocks (3.
|
41
|
+
rspec-support (~> 3.11.0)
|
42
|
+
rspec-mocks (3.11.1)
|
43
43
|
diff-lcs (>= 1.2.0, < 2.0)
|
44
|
-
rspec-support (~> 3.
|
45
|
-
rspec-support (3.
|
46
|
-
rubocop (1.
|
44
|
+
rspec-support (~> 3.11.0)
|
45
|
+
rspec-support (3.11.0)
|
46
|
+
rubocop (1.30.1)
|
47
47
|
parallel (~> 1.10)
|
48
|
-
parser (>= 3.
|
48
|
+
parser (>= 3.1.0.0)
|
49
49
|
rainbow (>= 2.2.2, < 4.0)
|
50
50
|
regexp_parser (>= 1.8, < 3.0)
|
51
|
-
rexml
|
52
|
-
rubocop-ast (>= 1.
|
51
|
+
rexml (>= 3.2.5, < 4.0)
|
52
|
+
rubocop-ast (>= 1.18.0, < 2.0)
|
53
53
|
ruby-progressbar (~> 1.7)
|
54
54
|
unicode-display_width (>= 1.4.0, < 3.0)
|
55
|
-
rubocop-ast (1.
|
56
|
-
parser (>= 3.
|
55
|
+
rubocop-ast (1.18.0)
|
56
|
+
parser (>= 3.1.1.0)
|
57
57
|
ruby-progressbar (1.11.0)
|
58
58
|
simplecov (0.21.2)
|
59
59
|
docile (~> 1.1)
|
60
60
|
simplecov-html (~> 0.11)
|
61
61
|
simplecov_json_formatter (~> 0.1)
|
62
62
|
simplecov-html (0.12.3)
|
63
|
-
simplecov_json_formatter (0.1.
|
63
|
+
simplecov_json_formatter (0.1.4)
|
64
64
|
unicode-display_width (2.1.0)
|
65
65
|
|
66
66
|
PLATFORMS
|
@@ -78,4 +78,4 @@ DEPENDENCIES
|
|
78
78
|
simplecov
|
79
79
|
|
80
80
|
BUNDLED WITH
|
81
|
-
2.
|
81
|
+
2.3.12
|
@@ -28,9 +28,9 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.bindir = 'exe'
|
29
29
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
30
|
spec.require_paths = ['lib']
|
31
|
-
spec.required_ruby_version = '>= 2.6.0'
|
31
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.6.0')
|
32
32
|
|
33
|
-
spec.add_dependency 'ddtrace'
|
33
|
+
spec.add_dependency 'ddtrace', '< 1'
|
34
34
|
spec.add_dependency 'dogstatsd-ruby'
|
35
35
|
|
36
36
|
spec.add_development_dependency 'benchmark-ips'
|
@@ -15,9 +15,9 @@ module InstrumentAllTheThings
|
|
15
15
|
|
16
16
|
DEFAULT_OPTIONS = {
|
17
17
|
trace: true,
|
18
|
-
gc_stats:
|
18
|
+
gc_stats: false,
|
19
19
|
error_logging: true,
|
20
|
-
execution_counts_and_timing:
|
20
|
+
execution_counts_and_timing: false,
|
21
21
|
}.freeze
|
22
22
|
|
23
23
|
attr_accessor :options, :instrumentor
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: instrument_all_the_things
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Malinconico
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ddtrace
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "<"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "<"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: dogstatsd-ruby
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -143,9 +143,11 @@ executables: []
|
|
143
143
|
extensions: []
|
144
144
|
extra_rdoc_files: []
|
145
145
|
files:
|
146
|
-
- ".
|
146
|
+
- ".github/workflows/lint.yaml"
|
147
|
+
- ".github/workflows/test.yaml"
|
147
148
|
- ".gitignore"
|
148
149
|
- ".rspec"
|
150
|
+
- ".rubocop-https---raw-githubusercontent-com-GetTerminus-ruby-shared-configs-master--rubocop-yml"
|
149
151
|
- ".rubocop.yml"
|
150
152
|
- ".ruby-version"
|
151
153
|
- ".travis.yml"
|
@@ -175,31 +177,33 @@ files:
|
|
175
177
|
- lib/instrument_all_the_things/version.rb
|
176
178
|
- logo.jpg
|
177
179
|
- vendor/cache/ast-2.4.2.gem
|
178
|
-
- vendor/cache/benchmark-ips-2.
|
180
|
+
- vendor/cache/benchmark-ips-2.10.0.gem
|
179
181
|
- vendor/cache/coderay-1.1.3.gem
|
180
|
-
- vendor/cache/ddtrace-0.
|
181
|
-
- vendor/cache/
|
182
|
+
- vendor/cache/ddtrace-0.54.2.gem
|
183
|
+
- vendor/cache/debase-ruby_core_source-0.10.14.gem
|
184
|
+
- vendor/cache/diff-lcs-1.5.0.gem
|
182
185
|
- vendor/cache/docile-1.4.0.gem
|
183
|
-
- vendor/cache/dogstatsd-ruby-5.
|
184
|
-
- vendor/cache/ffi-1.15.4.gem
|
186
|
+
- vendor/cache/dogstatsd-ruby-5.5.0.gem
|
185
187
|
- vendor/cache/method_source-1.0.0.gem
|
186
|
-
- vendor/cache/msgpack-1.
|
187
|
-
- vendor/cache/parallel-1.
|
188
|
-
- vendor/cache/parser-3.
|
188
|
+
- vendor/cache/msgpack-1.6.0.gem
|
189
|
+
- vendor/cache/parallel-1.22.1.gem
|
190
|
+
- vendor/cache/parser-3.1.2.0.gem
|
189
191
|
- vendor/cache/pry-0.14.1.gem
|
190
|
-
- vendor/cache/rainbow-3.
|
192
|
+
- vendor/cache/rainbow-3.1.1.gem
|
191
193
|
- vendor/cache/rake-10.5.0.gem
|
192
|
-
- vendor/cache/regexp_parser-2.
|
194
|
+
- vendor/cache/regexp_parser-2.5.0.gem
|
193
195
|
- vendor/cache/rexml-3.2.5.gem
|
194
|
-
- vendor/cache/rspec-3.
|
195
|
-
- vendor/cache/rspec-core-3.
|
196
|
-
- vendor/cache/rspec-expectations-3.
|
197
|
-
- vendor/cache/rspec-mocks-3.
|
198
|
-
- vendor/cache/rspec-support-3.
|
196
|
+
- vendor/cache/rspec-3.11.0.gem
|
197
|
+
- vendor/cache/rspec-core-3.11.0.gem
|
198
|
+
- vendor/cache/rspec-expectations-3.11.0.gem
|
199
|
+
- vendor/cache/rspec-mocks-3.11.1.gem
|
200
|
+
- vendor/cache/rspec-support-3.11.0.gem
|
201
|
+
- vendor/cache/rubocop-1.30.1.gem
|
202
|
+
- vendor/cache/rubocop-ast-1.18.0.gem
|
199
203
|
- vendor/cache/ruby-progressbar-1.11.0.gem
|
200
204
|
- vendor/cache/simplecov-0.21.2.gem
|
201
205
|
- vendor/cache/simplecov-html-0.12.3.gem
|
202
|
-
- vendor/cache/simplecov_json_formatter-0.1.
|
206
|
+
- vendor/cache/simplecov_json_formatter-0.1.4.gem
|
203
207
|
- vendor/cache/unicode-display_width-2.1.0.gem
|
204
208
|
homepage: https://github.com/GetTerminus/instrument-all-the-things
|
205
209
|
licenses: []
|
@@ -222,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
226
|
- !ruby/object:Gem::Version
|
223
227
|
version: '0'
|
224
228
|
requirements: []
|
225
|
-
rubygems_version: 3.
|
229
|
+
rubygems_version: 3.1.6
|
226
230
|
signing_key:
|
227
231
|
specification_version: 4
|
228
232
|
summary: Make instrumentation with DataDog easy peasy
|
data/.drone.yml
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
kind: pipeline
|
2
|
-
name: default
|
3
|
-
|
4
|
-
steps:
|
5
|
-
- name: test-ruby
|
6
|
-
image: getterminus/ruby-ci-image:2.6-je-20190205
|
7
|
-
group: bundler
|
8
|
-
volumes:
|
9
|
-
- name: bundledir
|
10
|
-
path: /usr/local/bundle
|
11
|
-
commands:
|
12
|
-
- bundle check --path=/usr/local/bundle || bundle --local --path=/usr/local/bundle
|
13
|
-
- bundle exec rspec
|
14
|
-
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/cache/ffi-1.15.4.gem
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|