observability 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.document +5 -0
- data/.rdoc_options +16 -0
- data/.simplecov +9 -0
- data/ChangeLog +139 -0
- data/DevNotes.md +103 -0
- data/History.md +4 -0
- data/LICENSE.txt +20 -0
- data/Manifest.txt +31 -0
- data/README.md +93 -0
- data/Rakefile +102 -0
- data/bin/observability-collector +16 -0
- data/examples/basic-usage.rb +18 -0
- data/lib/observability.rb +122 -0
- data/lib/observability/collector.rb +61 -0
- data/lib/observability/collector/timescale.rb +140 -0
- data/lib/observability/event.rb +103 -0
- data/lib/observability/observer.rb +296 -0
- data/lib/observability/observer_hooks.rb +28 -0
- data/lib/observability/sender.rb +127 -0
- data/lib/observability/sender/logger.rb +37 -0
- data/lib/observability/sender/null.rb +30 -0
- data/lib/observability/sender/testing.rb +56 -0
- data/lib/observability/sender/udp.rb +88 -0
- data/spec/observability/event_spec.rb +106 -0
- data/spec/observability/observer_hooks_spec.rb +47 -0
- data/spec/observability/observer_spec.rb +292 -0
- data/spec/observability/sender/logger_spec.rb +28 -0
- data/spec/observability/sender/udp_spec.rb +86 -0
- data/spec/observability/sender_spec.rb +77 -0
- data/spec/observability_spec.rb +132 -0
- data/spec/spec_helper.rb +155 -0
- metadata +325 -0
- metadata.gz.sig +1 -0
metadata
ADDED
@@ -0,0 +1,325 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: observability
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Michael Granger
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIENDCCApygAwIBAgIBATANBgkqhkiG9w0BAQsFADAiMSAwHgYDVQQDDBdnZWQv
|
14
|
+
REM9RmFlc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
29
|
+
ovvczP53X6pQP2RSZgxF6Lblvy8y11RziUTVRG/Z2aJHsElo6gI7vQznE/OSDrhC
|
30
|
+
gEhr8uaIUt7D+HZWRbU0+MkKPpL5uMqaFuJbqXEvSwPTuUuYkDfNfsjQO7ruWBac
|
31
|
+
bxHCrvpZ6Tijc0nrlyXi6gPOCLeaqhau2xFnlvKgELwsGYSoKBJyDwqtQ5kwrOlU
|
32
|
+
tkSyLrfZ+RZcH535Hyvif7ZxB0v5OxXXoec+N2vrUsEUMRDL9dg4/WFdN8hIOixF
|
33
|
+
3IPKpZ1ho0Ya5q7yhygtBK9/NBFHw+nbJjcltfPDBXleRe8u73gnQo8AZIhStYSP
|
34
|
+
v4qqqa27Bs468d6SoPxjSm8a2mM9HZ4OdWhq4tFsbTeXDVquCfi64OTEaTt2xQdR
|
35
|
+
JnC4lpJfCP6aCXa5h2XAQfPSH636cQap
|
36
|
+
-----END CERTIFICATE-----
|
37
|
+
date: 2019-07-24 00:00:00.000000000 Z
|
38
|
+
dependencies:
|
39
|
+
- !ruby/object:Gem::Dependency
|
40
|
+
name: concurrent-ruby
|
41
|
+
requirement: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
43
|
+
- - "~>"
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.1.5
|
46
|
+
type: :runtime
|
47
|
+
prerelease: false
|
48
|
+
version_requirements: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - "~>"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 1.1.5
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: concurrent-ruby-ext
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 1.1.5
|
60
|
+
type: :runtime
|
61
|
+
prerelease: false
|
62
|
+
version_requirements: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - "~>"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 1.1.5
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: loggability
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - "~>"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0.11'
|
74
|
+
type: :runtime
|
75
|
+
prerelease: false
|
76
|
+
version_requirements: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - "~>"
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0.11'
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: configurability
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - "~>"
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '3.3'
|
88
|
+
type: :runtime
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - "~>"
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '3.3'
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: pluggability
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - "~>"
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0.6'
|
102
|
+
type: :runtime
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - "~>"
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0.6'
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
name: msgpack
|
111
|
+
requirement: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - "~>"
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '1.3'
|
116
|
+
type: :runtime
|
117
|
+
prerelease: false
|
118
|
+
version_requirements: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - "~>"
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '1.3'
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: hoe-mercurial
|
125
|
+
requirement: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '1.4'
|
130
|
+
type: :development
|
131
|
+
prerelease: false
|
132
|
+
version_requirements: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - "~>"
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '1.4'
|
137
|
+
- !ruby/object:Gem::Dependency
|
138
|
+
name: hoe-deveiate
|
139
|
+
requirement: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - "~>"
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0.10'
|
144
|
+
type: :development
|
145
|
+
prerelease: false
|
146
|
+
version_requirements: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - "~>"
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0.10'
|
151
|
+
- !ruby/object:Gem::Dependency
|
152
|
+
name: hoe-highline
|
153
|
+
requirement: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - "~>"
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0.2'
|
158
|
+
type: :development
|
159
|
+
prerelease: false
|
160
|
+
version_requirements: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - "~>"
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0.2'
|
165
|
+
- !ruby/object:Gem::Dependency
|
166
|
+
name: timecop
|
167
|
+
requirement: !ruby/object:Gem::Requirement
|
168
|
+
requirements:
|
169
|
+
- - "~>"
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: '0.9'
|
172
|
+
type: :development
|
173
|
+
prerelease: false
|
174
|
+
version_requirements: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - "~>"
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: '0.9'
|
179
|
+
- !ruby/object:Gem::Dependency
|
180
|
+
name: simplecov
|
181
|
+
requirement: !ruby/object:Gem::Requirement
|
182
|
+
requirements:
|
183
|
+
- - "~>"
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: '0.7'
|
186
|
+
type: :development
|
187
|
+
prerelease: false
|
188
|
+
version_requirements: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - "~>"
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '0.7'
|
193
|
+
- !ruby/object:Gem::Dependency
|
194
|
+
name: rdoc-generator-fivefish
|
195
|
+
requirement: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - "~>"
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '0.1'
|
200
|
+
type: :development
|
201
|
+
prerelease: false
|
202
|
+
version_requirements: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - "~>"
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '0.1'
|
207
|
+
- !ruby/object:Gem::Dependency
|
208
|
+
name: rdoc
|
209
|
+
requirement: !ruby/object:Gem::Requirement
|
210
|
+
requirements:
|
211
|
+
- - ">="
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: '4.0'
|
214
|
+
- - "<"
|
215
|
+
- !ruby/object:Gem::Version
|
216
|
+
version: '7'
|
217
|
+
type: :development
|
218
|
+
prerelease: false
|
219
|
+
version_requirements: !ruby/object:Gem::Requirement
|
220
|
+
requirements:
|
221
|
+
- - ">="
|
222
|
+
- !ruby/object:Gem::Version
|
223
|
+
version: '4.0'
|
224
|
+
- - "<"
|
225
|
+
- !ruby/object:Gem::Version
|
226
|
+
version: '7'
|
227
|
+
- !ruby/object:Gem::Dependency
|
228
|
+
name: hoe
|
229
|
+
requirement: !ruby/object:Gem::Requirement
|
230
|
+
requirements:
|
231
|
+
- - "~>"
|
232
|
+
- !ruby/object:Gem::Version
|
233
|
+
version: '3.17'
|
234
|
+
type: :development
|
235
|
+
prerelease: false
|
236
|
+
version_requirements: !ruby/object:Gem::Requirement
|
237
|
+
requirements:
|
238
|
+
- - "~>"
|
239
|
+
- !ruby/object:Gem::Version
|
240
|
+
version: '3.17'
|
241
|
+
description: "Observability is a toolkit for instrumenting code to make it more observable,\nfollowing
|
242
|
+
the principle of Observability-Oriented Design as expressed by Charity\nMajors (@mipsytipsy).\n\nIts
|
243
|
+
goals are [stolen from https://charity.wtf/2019/02/05/logs-vs-structured-events/]:\n\n*
|
244
|
+
Emit a rich record from the perspective of a single action as the code is\n executing.\n*
|
245
|
+
Emit a single event per action per system that it occurs in. Write it out just\n
|
246
|
+
\ before the action completes or errors.\n* Bypass local disk entirely, write to
|
247
|
+
a remote service.\n* Sample if needed for cost or resource constraints. Practice
|
248
|
+
dynamic sampling.\n* Treat this like operational data, not transactional data. Be
|
249
|
+
profligate and\n disposable.\n* Feed this data into a columnar store or honeycomb
|
250
|
+
or similar\n* Now use it every day. Not just as a last resort. Get knee deep in
|
251
|
+
production\n every single day. Explore. Ask and answer rich questions about your
|
252
|
+
systems,\n system quality, system behavior, outliers, error conditions, etc. You
|
253
|
+
will be\n absolutely amazed how useful it is … and appalled by what you turn up.
|
254
|
+
\U0001F642"
|
255
|
+
email:
|
256
|
+
- ged@FaerieMUD.org
|
257
|
+
executables:
|
258
|
+
- observability-collector
|
259
|
+
extensions: []
|
260
|
+
extra_rdoc_files:
|
261
|
+
- DevNotes.md
|
262
|
+
- History.md
|
263
|
+
- LICENSE.txt
|
264
|
+
- Manifest.txt
|
265
|
+
- README.md
|
266
|
+
files:
|
267
|
+
- ".document"
|
268
|
+
- ".rdoc_options"
|
269
|
+
- ".simplecov"
|
270
|
+
- ChangeLog
|
271
|
+
- DevNotes.md
|
272
|
+
- History.md
|
273
|
+
- LICENSE.txt
|
274
|
+
- Manifest.txt
|
275
|
+
- README.md
|
276
|
+
- Rakefile
|
277
|
+
- bin/observability-collector
|
278
|
+
- examples/basic-usage.rb
|
279
|
+
- lib/observability.rb
|
280
|
+
- lib/observability/collector.rb
|
281
|
+
- lib/observability/collector/timescale.rb
|
282
|
+
- lib/observability/event.rb
|
283
|
+
- lib/observability/observer.rb
|
284
|
+
- lib/observability/observer_hooks.rb
|
285
|
+
- lib/observability/sender.rb
|
286
|
+
- lib/observability/sender/logger.rb
|
287
|
+
- lib/observability/sender/null.rb
|
288
|
+
- lib/observability/sender/testing.rb
|
289
|
+
- lib/observability/sender/udp.rb
|
290
|
+
- spec/observability/event_spec.rb
|
291
|
+
- spec/observability/observer_hooks_spec.rb
|
292
|
+
- spec/observability/observer_spec.rb
|
293
|
+
- spec/observability/sender/logger_spec.rb
|
294
|
+
- spec/observability/sender/udp_spec.rb
|
295
|
+
- spec/observability/sender_spec.rb
|
296
|
+
- spec/observability_spec.rb
|
297
|
+
- spec/spec_helper.rb
|
298
|
+
homepage: http://bitbucket.org/ged/observability
|
299
|
+
licenses:
|
300
|
+
- BSD-3-Clause
|
301
|
+
metadata: {}
|
302
|
+
post_install_message:
|
303
|
+
rdoc_options:
|
304
|
+
- "--main"
|
305
|
+
- README.md
|
306
|
+
require_paths:
|
307
|
+
- lib
|
308
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
309
|
+
requirements:
|
310
|
+
- - ">="
|
311
|
+
- !ruby/object:Gem::Version
|
312
|
+
version: 2.4.0
|
313
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
314
|
+
requirements:
|
315
|
+
- - ">="
|
316
|
+
- !ruby/object:Gem::Version
|
317
|
+
version: '0'
|
318
|
+
requirements: []
|
319
|
+
rubygems_version: 3.0.3
|
320
|
+
signing_key:
|
321
|
+
specification_version: 4
|
322
|
+
summary: Observability is a toolkit for instrumenting code to make it more observable,
|
323
|
+
following the principle of Observability-Oriented Design as expressed by Charity
|
324
|
+
Majors (@mipsytipsy)
|
325
|
+
test_files: []
|
metadata.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
��Tk�����{}V���_�j���!魬�T.��mhr>D(�3K!�0K?E��s���b��_~.��L�Dy�r�B���'��ջ�e�:�$���O=�6�l�b��1��?��7�9�� ����wե��Đꛗ��P���ɡMR��<:��j��ۊW͖=�3����3�sW�2�����/��h���A�B���������
|