statsd-instrument 4.0.0 → 4.1.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/CODEOWNERS +1 -1
- data/.github/workflows/benchmark.yml +1 -1
- data/.github/workflows/lint.yml +1 -1
- data/CHANGELOG.md +12 -0
- data/README.md +43 -0
- data/lib/statsd/instrument/aggregator.rb +14 -4
- data/lib/statsd/instrument/client.rb +11 -2
- data/lib/statsd/instrument/compiled_metric.rb +9 -9
- data/lib/statsd/instrument/datagram.rb +3 -3
- data/lib/statsd/instrument/datagram_builder.rb +20 -14
- data/lib/statsd/instrument/dogstatsd_datagram.rb +11 -11
- data/lib/statsd/instrument/dogstatsd_datagram_builder.rb +1 -1
- data/lib/statsd/instrument/environment.rb +4 -0
- data/lib/statsd/instrument/sanitization.rb +34 -0
- data/lib/statsd/instrument/version.rb +1 -1
- data/lib/statsd/instrument.rb +1 -0
- data/test/aggregator_test.rb +98 -0
- data/test/client_test.rb +31 -0
- data/test/datagram_builder_test.rb +16 -0
- data/test/environment_test.rb +13 -0
- data/test/newline_normalization_test.rb +262 -0
- data/test/rubocop/singleton_configuration_test.rb +1 -3
- data/test/sanitization_test.rb +49 -0
- metadata +158 -152
metadata
CHANGED
|
@@ -1,178 +1,184 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: statsd-instrument
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- Jesse Storimer
|
|
8
|
-
- Tobias Lutke
|
|
9
|
-
- Willem van Bergen
|
|
7
|
+
- Jesse Storimer
|
|
8
|
+
- Tobias Lutke
|
|
9
|
+
- Willem van Bergen
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
|
-
description: A StatsD client for Ruby apps. Provides metaprogramming methods to inject
|
|
15
|
-
StatsD instrumentation into your code.
|
|
14
|
+
description: A StatsD client for Ruby apps. Provides metaprogramming methods to inject StatsD instrumentation into your code.
|
|
16
15
|
email:
|
|
17
|
-
- jesse@shopify.com
|
|
16
|
+
- jesse@shopify.com
|
|
18
17
|
executables: []
|
|
19
18
|
extensions: []
|
|
20
19
|
extra_rdoc_files: []
|
|
21
20
|
files:
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
- CHANGELOG.md
|
|
33
|
-
- CONTRIBUTING.md
|
|
34
|
-
- Gemfile
|
|
35
|
-
- LICENSE
|
|
36
|
-
- Makefile
|
|
37
|
-
- README.md
|
|
38
|
-
- Rakefile
|
|
39
|
-
- benchmark/README.md
|
|
40
|
-
- benchmark/local-udp-throughput
|
|
41
|
-
- benchmark/send-metrics-to-dev-null-log
|
|
42
|
-
- benchmark/send-metrics-to-local-udp-receiver
|
|
43
|
-
- bin/rake
|
|
44
|
-
- bin/rubocop
|
|
45
|
-
- lib/statsd-instrument.rb
|
|
46
|
-
- lib/statsd/instrument.rb
|
|
47
|
-
- lib/statsd/instrument/aggregator.rb
|
|
48
|
-
- lib/statsd/instrument/assertions.rb
|
|
49
|
-
- lib/statsd/instrument/batched_sink.rb
|
|
50
|
-
- lib/statsd/instrument/capture_sink.rb
|
|
51
|
-
- lib/statsd/instrument/client.rb
|
|
52
|
-
- lib/statsd/instrument/compiled_metric.rb
|
|
53
|
-
- lib/statsd/instrument/connection_behavior.rb
|
|
54
|
-
- lib/statsd/instrument/datagram.rb
|
|
55
|
-
- lib/statsd/instrument/datagram_builder.rb
|
|
56
|
-
- lib/statsd/instrument/dogstatsd_datagram.rb
|
|
57
|
-
- lib/statsd/instrument/dogstatsd_datagram_builder.rb
|
|
58
|
-
- lib/statsd/instrument/environment.rb
|
|
59
|
-
- lib/statsd/instrument/expectation.rb
|
|
60
|
-
- lib/statsd/instrument/helpers.rb
|
|
61
|
-
- lib/statsd/instrument/log_sink.rb
|
|
62
|
-
- lib/statsd/instrument/matchers.rb
|
|
63
|
-
- lib/statsd/instrument/null_sink.rb
|
|
64
|
-
- lib/statsd/instrument/railtie.rb
|
|
65
|
-
- lib/statsd/instrument/rubocop.rb
|
|
66
|
-
- lib/statsd/instrument/rubocop/measure_as_dist_argument.rb
|
|
67
|
-
- lib/statsd/instrument/rubocop/metaprogramming_positional_arguments.rb
|
|
68
|
-
- lib/statsd/instrument/rubocop/metric_prefix_argument.rb
|
|
69
|
-
- lib/statsd/instrument/rubocop/metric_return_value.rb
|
|
70
|
-
- lib/statsd/instrument/rubocop/metric_value_keyword_argument.rb
|
|
71
|
-
- lib/statsd/instrument/rubocop/positional_arguments.rb
|
|
72
|
-
- lib/statsd/instrument/rubocop/singleton_configuration.rb
|
|
73
|
-
- lib/statsd/instrument/rubocop/splat_arguments.rb
|
|
74
|
-
- lib/statsd/instrument/
|
|
75
|
-
- lib/statsd/instrument/
|
|
76
|
-
- lib/statsd/instrument/
|
|
77
|
-
- lib/statsd/instrument/
|
|
78
|
-
- lib/statsd/instrument/
|
|
79
|
-
- lib/statsd/instrument/
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
- test/
|
|
84
|
-
- test/
|
|
85
|
-
- test/benchmark/
|
|
86
|
-
- test/benchmark/
|
|
87
|
-
- test/
|
|
88
|
-
- test/
|
|
89
|
-
- test/
|
|
90
|
-
- test/
|
|
91
|
-
- test/compiled_metric/
|
|
92
|
-
- test/compiled_metric/
|
|
93
|
-
- test/
|
|
94
|
-
- test/
|
|
95
|
-
- test/
|
|
96
|
-
- test/
|
|
97
|
-
- test/
|
|
98
|
-
- test/
|
|
99
|
-
- test/
|
|
100
|
-
- test/
|
|
101
|
-
- test/
|
|
102
|
-
- test/
|
|
103
|
-
- test/
|
|
104
|
-
- test/
|
|
105
|
-
- test/
|
|
106
|
-
- test/
|
|
107
|
-
- test/rubocop/
|
|
108
|
-
- test/rubocop/
|
|
109
|
-
- test/rubocop/
|
|
110
|
-
- test/rubocop/
|
|
111
|
-
- test/rubocop/
|
|
112
|
-
- test/rubocop/
|
|
113
|
-
- test/
|
|
114
|
-
- test/
|
|
115
|
-
- test/
|
|
116
|
-
- test/
|
|
117
|
-
- test/
|
|
118
|
-
- test/
|
|
119
|
-
|
|
21
|
+
- .github/CODEOWNERS
|
|
22
|
+
- .github/pull_request_template.md
|
|
23
|
+
- .github/workflows/benchmark.yml
|
|
24
|
+
- .github/workflows/cla.yml
|
|
25
|
+
- .github/workflows/lint.yml
|
|
26
|
+
- .github/workflows/tests.yml
|
|
27
|
+
- .gitignore
|
|
28
|
+
- .rubocop.yml
|
|
29
|
+
- .ruby-version
|
|
30
|
+
- .yardopts
|
|
31
|
+
- CHANGELOG.md
|
|
32
|
+
- CONTRIBUTING.md
|
|
33
|
+
- Gemfile
|
|
34
|
+
- LICENSE
|
|
35
|
+
- Makefile
|
|
36
|
+
- README.md
|
|
37
|
+
- Rakefile
|
|
38
|
+
- benchmark/README.md
|
|
39
|
+
- benchmark/local-udp-throughput
|
|
40
|
+
- benchmark/send-metrics-to-dev-null-log
|
|
41
|
+
- benchmark/send-metrics-to-local-udp-receiver
|
|
42
|
+
- bin/rake
|
|
43
|
+
- bin/rubocop
|
|
44
|
+
- lib/statsd-instrument.rb
|
|
45
|
+
- lib/statsd/instrument.rb
|
|
46
|
+
- lib/statsd/instrument/aggregator.rb
|
|
47
|
+
- lib/statsd/instrument/assertions.rb
|
|
48
|
+
- lib/statsd/instrument/batched_sink.rb
|
|
49
|
+
- lib/statsd/instrument/capture_sink.rb
|
|
50
|
+
- lib/statsd/instrument/client.rb
|
|
51
|
+
- lib/statsd/instrument/compiled_metric.rb
|
|
52
|
+
- lib/statsd/instrument/connection_behavior.rb
|
|
53
|
+
- lib/statsd/instrument/datagram.rb
|
|
54
|
+
- lib/statsd/instrument/datagram_builder.rb
|
|
55
|
+
- lib/statsd/instrument/dogstatsd_datagram.rb
|
|
56
|
+
- lib/statsd/instrument/dogstatsd_datagram_builder.rb
|
|
57
|
+
- lib/statsd/instrument/environment.rb
|
|
58
|
+
- lib/statsd/instrument/expectation.rb
|
|
59
|
+
- lib/statsd/instrument/helpers.rb
|
|
60
|
+
- lib/statsd/instrument/log_sink.rb
|
|
61
|
+
- lib/statsd/instrument/matchers.rb
|
|
62
|
+
- lib/statsd/instrument/null_sink.rb
|
|
63
|
+
- lib/statsd/instrument/railtie.rb
|
|
64
|
+
- lib/statsd/instrument/rubocop.rb
|
|
65
|
+
- lib/statsd/instrument/rubocop/measure_as_dist_argument.rb
|
|
66
|
+
- lib/statsd/instrument/rubocop/metaprogramming_positional_arguments.rb
|
|
67
|
+
- lib/statsd/instrument/rubocop/metric_prefix_argument.rb
|
|
68
|
+
- lib/statsd/instrument/rubocop/metric_return_value.rb
|
|
69
|
+
- lib/statsd/instrument/rubocop/metric_value_keyword_argument.rb
|
|
70
|
+
- lib/statsd/instrument/rubocop/positional_arguments.rb
|
|
71
|
+
- lib/statsd/instrument/rubocop/singleton_configuration.rb
|
|
72
|
+
- lib/statsd/instrument/rubocop/splat_arguments.rb
|
|
73
|
+
- lib/statsd/instrument/sanitization.rb
|
|
74
|
+
- lib/statsd/instrument/sink.rb
|
|
75
|
+
- lib/statsd/instrument/statsd_datagram_builder.rb
|
|
76
|
+
- lib/statsd/instrument/strict.rb
|
|
77
|
+
- lib/statsd/instrument/udp_connection.rb
|
|
78
|
+
- lib/statsd/instrument/uds_connection.rb
|
|
79
|
+
- lib/statsd/instrument/version.rb
|
|
80
|
+
- shipit.rubygems.yml
|
|
81
|
+
- statsd-instrument.gemspec
|
|
82
|
+
- test/aggregator_test.rb
|
|
83
|
+
- test/assertions_test.rb
|
|
84
|
+
- test/benchmark/clock_gettime.rb
|
|
85
|
+
- test/benchmark/metrics.rb
|
|
86
|
+
- test/benchmark/tags.rb
|
|
87
|
+
- test/capture_sink_test.rb
|
|
88
|
+
- test/changelog_test.rb
|
|
89
|
+
- test/client_test.rb
|
|
90
|
+
- test/compiled_metric/counter_test.rb
|
|
91
|
+
- test/compiled_metric/distribution_test.rb
|
|
92
|
+
- test/compiled_metric/gauge_test.rb
|
|
93
|
+
- test/compiled_metric_test.rb
|
|
94
|
+
- test/datagram_builder_test.rb
|
|
95
|
+
- test/datagram_test.rb
|
|
96
|
+
- test/dispatcher_stats_test.rb
|
|
97
|
+
- test/dogstatsd_datagram_builder_test.rb
|
|
98
|
+
- test/environment_test.rb
|
|
99
|
+
- test/helpers/rubocop_helper.rb
|
|
100
|
+
- test/helpers_test.rb
|
|
101
|
+
- test/integration_test.rb
|
|
102
|
+
- test/log_sink_test.rb
|
|
103
|
+
- test/matchers_test.rb
|
|
104
|
+
- test/newline_normalization_test.rb
|
|
105
|
+
- test/null_sink_test.rb
|
|
106
|
+
- test/rubocop/measure_as_dist_argument_test.rb
|
|
107
|
+
- test/rubocop/metaprogramming_positional_arguments_test.rb
|
|
108
|
+
- test/rubocop/metric_prefix_argument_test.rb
|
|
109
|
+
- test/rubocop/metric_return_value_test.rb
|
|
110
|
+
- test/rubocop/metric_value_keyword_argument_test.rb
|
|
111
|
+
- test/rubocop/positional_arguments_test.rb
|
|
112
|
+
- test/rubocop/singleton_configuration_test.rb
|
|
113
|
+
- test/rubocop/splat_arguments_test.rb
|
|
114
|
+
- test/sanitization_test.rb
|
|
115
|
+
- test/statsd_datagram_builder_test.rb
|
|
116
|
+
- test/statsd_instrumentation_test.rb
|
|
117
|
+
- test/statsd_test.rb
|
|
118
|
+
- test/test_helper.rb
|
|
119
|
+
- test/udp_sink_test.rb
|
|
120
|
+
- test/uds_sink_test.rb
|
|
121
|
+
homepage: "https://github.com/Shopify/statsd-instrument"
|
|
120
122
|
licenses:
|
|
121
|
-
- MIT
|
|
123
|
+
- MIT
|
|
122
124
|
metadata:
|
|
123
|
-
allowed_push_host: https://rubygems.org
|
|
125
|
+
allowed_push_host: "https://rubygems.org"
|
|
124
126
|
rdoc_options: []
|
|
125
127
|
require_paths:
|
|
126
|
-
- lib
|
|
128
|
+
- lib
|
|
127
129
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
128
130
|
requirements:
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
-
|
|
132
|
+
- ">="
|
|
133
|
+
- !ruby/object:Gem::Version
|
|
134
|
+
version: 2.6.0
|
|
132
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
136
|
requirements:
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
+
-
|
|
138
|
+
- ">="
|
|
139
|
+
- !ruby/object:Gem::Version
|
|
140
|
+
version: "0"
|
|
137
141
|
requirements: []
|
|
138
|
-
rubygems_version: 4.0
|
|
142
|
+
rubygems_version: 4.1.0
|
|
139
143
|
specification_version: 4
|
|
140
144
|
summary: A StatsD client for Ruby apps
|
|
141
145
|
test_files:
|
|
142
|
-
- test/aggregator_test.rb
|
|
143
|
-
- test/assertions_test.rb
|
|
144
|
-
- test/benchmark/clock_gettime.rb
|
|
145
|
-
- test/benchmark/metrics.rb
|
|
146
|
-
- test/benchmark/tags.rb
|
|
147
|
-
- test/capture_sink_test.rb
|
|
148
|
-
- test/changelog_test.rb
|
|
149
|
-
- test/client_test.rb
|
|
150
|
-
- test/compiled_metric/counter_test.rb
|
|
151
|
-
- test/compiled_metric/distribution_test.rb
|
|
152
|
-
- test/compiled_metric/gauge_test.rb
|
|
153
|
-
- test/compiled_metric_test.rb
|
|
154
|
-
- test/datagram_builder_test.rb
|
|
155
|
-
- test/datagram_test.rb
|
|
156
|
-
- test/dispatcher_stats_test.rb
|
|
157
|
-
- test/dogstatsd_datagram_builder_test.rb
|
|
158
|
-
- test/environment_test.rb
|
|
159
|
-
- test/helpers/rubocop_helper.rb
|
|
160
|
-
- test/helpers_test.rb
|
|
161
|
-
- test/integration_test.rb
|
|
162
|
-
- test/log_sink_test.rb
|
|
163
|
-
- test/matchers_test.rb
|
|
164
|
-
- test/
|
|
165
|
-
- test/
|
|
166
|
-
- test/rubocop/
|
|
167
|
-
- test/rubocop/
|
|
168
|
-
- test/rubocop/
|
|
169
|
-
- test/rubocop/
|
|
170
|
-
- test/rubocop/
|
|
171
|
-
- test/rubocop/
|
|
172
|
-
- test/rubocop/
|
|
173
|
-
- test/
|
|
174
|
-
- test/
|
|
175
|
-
- test/
|
|
176
|
-
- test/
|
|
177
|
-
- test/
|
|
178
|
-
- test/
|
|
146
|
+
- test/aggregator_test.rb
|
|
147
|
+
- test/assertions_test.rb
|
|
148
|
+
- test/benchmark/clock_gettime.rb
|
|
149
|
+
- test/benchmark/metrics.rb
|
|
150
|
+
- test/benchmark/tags.rb
|
|
151
|
+
- test/capture_sink_test.rb
|
|
152
|
+
- test/changelog_test.rb
|
|
153
|
+
- test/client_test.rb
|
|
154
|
+
- test/compiled_metric/counter_test.rb
|
|
155
|
+
- test/compiled_metric/distribution_test.rb
|
|
156
|
+
- test/compiled_metric/gauge_test.rb
|
|
157
|
+
- test/compiled_metric_test.rb
|
|
158
|
+
- test/datagram_builder_test.rb
|
|
159
|
+
- test/datagram_test.rb
|
|
160
|
+
- test/dispatcher_stats_test.rb
|
|
161
|
+
- test/dogstatsd_datagram_builder_test.rb
|
|
162
|
+
- test/environment_test.rb
|
|
163
|
+
- test/helpers/rubocop_helper.rb
|
|
164
|
+
- test/helpers_test.rb
|
|
165
|
+
- test/integration_test.rb
|
|
166
|
+
- test/log_sink_test.rb
|
|
167
|
+
- test/matchers_test.rb
|
|
168
|
+
- test/newline_normalization_test.rb
|
|
169
|
+
- test/null_sink_test.rb
|
|
170
|
+
- test/rubocop/measure_as_dist_argument_test.rb
|
|
171
|
+
- test/rubocop/metaprogramming_positional_arguments_test.rb
|
|
172
|
+
- test/rubocop/metric_prefix_argument_test.rb
|
|
173
|
+
- test/rubocop/metric_return_value_test.rb
|
|
174
|
+
- test/rubocop/metric_value_keyword_argument_test.rb
|
|
175
|
+
- test/rubocop/positional_arguments_test.rb
|
|
176
|
+
- test/rubocop/singleton_configuration_test.rb
|
|
177
|
+
- test/rubocop/splat_arguments_test.rb
|
|
178
|
+
- test/sanitization_test.rb
|
|
179
|
+
- test/statsd_datagram_builder_test.rb
|
|
180
|
+
- test/statsd_instrumentation_test.rb
|
|
181
|
+
- test/statsd_test.rb
|
|
182
|
+
- test/test_helper.rb
|
|
183
|
+
- test/udp_sink_test.rb
|
|
184
|
+
- test/uds_sink_test.rb
|