observability 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.md +15 -0
- data/README.md +13 -5
- data/lib/observability.rb +9 -1
- data/lib/observability/collector/rabbitmq.rb +196 -0
- data/lib/observability/collector/timescale.rb +1 -1
- data/lib/observability/instrumentation.rb +118 -0
- data/lib/observability/instrumentation/bunny.rb +24 -0
- data/lib/observability/instrumentation/grape.rb +22 -0
- data/lib/observability/instrumentation/rack.rb +23 -0
- data/lib/observability/instrumentation/sequel.rb +37 -0
- data/lib/observability/observer.rb +15 -9
- data/lib/observability/sender.rb +3 -1
- data/lib/observability/sender/udp_multicast.rb +114 -0
- data/spec/observability/instrumentation_spec.rb +48 -0
- data/spec/observability/observer_spec.rb +31 -1
- metadata +42 -123
- metadata.gz.sig +0 -0
- data/.document +0 -5
- data/.rdoc_options +0 -16
- data/.simplecov +0 -9
- data/ChangeLog +0 -139
- data/Manifest.txt +0 -31
- data/Rakefile +0 -102
- data/examples/basic-usage.rb +0 -18
metadata.gz.sig
CHANGED
Binary file
|
data/.document
DELETED
data/.rdoc_options
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
--- !ruby/object:RDoc::Options
|
2
|
-
encoding: UTF-8
|
3
|
-
static_path: []
|
4
|
-
rdoc_include:
|
5
|
-
- .
|
6
|
-
charset: UTF-8
|
7
|
-
exclude:
|
8
|
-
hyperlink_all: false
|
9
|
-
line_numbers: false
|
10
|
-
main_page: README.md
|
11
|
-
markup: markdown
|
12
|
-
show_hash: false
|
13
|
-
tab_width: 8
|
14
|
-
title: Observability Documentation
|
15
|
-
visibility: :protected
|
16
|
-
webcvs:
|
data/.simplecov
DELETED
data/ChangeLog
DELETED
@@ -1,139 +0,0 @@
|
|
1
|
-
2019-07-22 Michael Granger <ged@FaerieMUD.org>
|
2
|
-
|
3
|
-
@ * .hgignore, DevNotes.md, Manifest.txt, lib/observability.rb,
|
4
|
-
| lib/observability/event.rb, lib/observability/observer.rb,
|
5
|
-
| lib/observability/observer_hooks.rb, lib/observability/sender.rb,
|
6
|
-
| lib/observability/sender/logger.rb,
|
7
|
-
| lib/observability/sender/testing.rb,
|
8
|
-
| lib/observability/sender/udp.rb, spec/observability/event_spec.rb,
|
9
|
-
| spec/observability/observer_hooks_spec.rb,
|
10
|
-
| spec/observability/observer_spec.rb,
|
11
|
-
| spec/observability/sender/udp_spec.rb,
|
12
|
-
| spec/observability/sender_spec.rb, spec/observability_spec.rb:
|
13
|
-
| Add a bunch more work:
|
14
|
-
|
|
15
|
-
| - Add the beginnings of context
|
16
|
-
| - Refactor the sender to be more easily subclassed
|
17
|
-
| - Add a UDP sender
|
18
|
-
| - Refactor finishing around a block up to the Observer
|
19
|
-
| - Rename `observer` hook to `observability` to avoid colliding with
|
20
|
-
| observer-pattern systems.
|
21
|
-
| - Add pending specs for intended features
|
22
|
-
| - Removed unused `observed_system` DSL method
|
23
|
-
| - Concurrent logs to Observability logger
|
24
|
-
| [c206c306394e] [tip]
|
25
|
-
|
|
26
|
-
2019-07-19 Michael Granger <ged@FaerieMUD.org>
|
27
|
-
|
28
|
-
o * bin/observability-collector, experiments/postgres-events.sql,
|
29
|
-
| lib/observability.rb, lib/observability/collector.rb,
|
30
|
-
| lib/observability/collector/timescale.rb,
|
31
|
-
| lib/observability/event.rb, lib/observability/sender/logger.rb,
|
32
|
-
| spec/observability/sender/logger_spec.rb,
|
33
|
-
| spec/observability_spec.rb:
|
34
|
-
| More work on the collector spike, start adding callbacks to method
|
35
|
-
| wrappers
|
36
|
-
| [959d6bf1bdcd]
|
37
|
-
|
|
38
|
-
o * experiments/postgres-events.sql,
|
39
|
-
| lib/observability/collector/timescale.rb:
|
40
|
-
| Add more work on the timescale collector
|
41
|
-
| [f0056a02fa49]
|
42
|
-
|
|
43
|
-
2019-07-18 Michael Granger <ged@FaerieMUD.org>
|
44
|
-
|
45
|
-
o * experiments/singleton-prepend.rb, experiments/thread-closures.rb,
|
46
|
-
| lib/observability.rb, lib/observability/collector.rb,
|
47
|
-
| lib/observability/collector/timescale.rb,
|
48
|
-
| lib/observability/observer.rb, lib/observability/observer_hooks.rb,
|
49
|
-
| lib/observability/sender/logger.rb,
|
50
|
-
| spec/observability/event_spec.rb,
|
51
|
-
| spec/observability/observer_spec.rb, spec/observability_spec.rb:
|
52
|
-
| Start prototyping the collector, add observers for class methods
|
53
|
-
| [21f0ed971661]
|
54
|
-
|
|
55
|
-
o * .gems, .hgignore, DevNotes.md, lib/observability.rb,
|
56
|
-
| lib/observability/event.rb, lib/observability/observer.rb,
|
57
|
-
| lib/observability/observer_hooks.rb, lib/observability/sender.rb,
|
58
|
-
| lib/observability/sender/logger.rb, observability.gemspec,
|
59
|
-
| spec/observability/observer_spec.rb,
|
60
|
-
| spec/observability/sender/logger_spec.rb,
|
61
|
-
| spec/observability/sender_spec.rb:
|
62
|
-
| Add a bit more work on event and senders
|
63
|
-
| [4413e7b15a86]
|
64
|
-
|
|
65
|
-
2019-07-17 Michael Granger <ged@FaerieMUD.org>
|
66
|
-
|
67
|
-
o * .gems, DevNotes.md, lib/observability.rb,
|
68
|
-
| lib/observability/event.rb, lib/observability/observer.rb,
|
69
|
-
| lib/observability/observer_hooks.rb,
|
70
|
-
| spec/observability/event_spec.rb,
|
71
|
-
| spec/observability/observer_hooks_spec.rb,
|
72
|
-
| spec/observability/observer_spec.rb, spec/observability_spec.rb,
|
73
|
-
| spec/spec_helper.rb:
|
74
|
-
| Add base observation system
|
75
|
-
| [f1670098182b]
|
76
|
-
|
|
77
|
-
2019-07-16 Michael Granger <ged@FaerieMUD.org>
|
78
|
-
|
79
|
-
o * lib/observability.rb, lib/observability/event.rb,
|
80
|
-
| lib/observability/observer.rb, lib/observability/sender/testing.rb,
|
81
|
-
| spec/observability/observer_spec.rb, spec/spec_helper.rb:
|
82
|
-
| Checkpoint of more spec work
|
83
|
-
| [bb75996b36b1]
|
84
|
-
|
|
85
|
-
2019-07-15 Michael Granger <ged@FaerieMUD.org>
|
86
|
-
|
87
|
-
o * .gems, Rakefile, lib/observability.rb,
|
88
|
-
| lib/observability/observer.rb, lib/observability/observer_hooks.rb,
|
89
|
-
| spec/observability_spec.rb, spec/spec_helper.rb:
|
90
|
-
| Refine observer->sender and start working on specs
|
91
|
-
| [afada6860d6b]
|
92
|
-
|
|
93
|
-
o * Rakefile, lib/observability.rb, lib/observability/event.rb,
|
94
|
-
| lib/observability/sender.rb, lib/observability/sender/null.rb:
|
95
|
-
| Add the base and default sender classes
|
96
|
-
| [cb5a39a73863]
|
97
|
-
|
|
98
|
-
2019-07-13 Michael Granger <ged@FaerieMUD.org>
|
99
|
-
|
100
|
-
o * Rakefile, lib/observability.rb, lib/observability/event.rb,
|
101
|
-
| lib/observability/observer.rb, lib/observability/observer_hooks.rb,
|
102
|
-
| observability.gemspec:
|
103
|
-
| Add more spike work
|
104
|
-
| [9ac3e587898e]
|
105
|
-
|
|
106
|
-
2019-07-12 Michael Granger <ged@FaerieMUD.org>
|
107
|
-
|
108
|
-
o * experiments/superstar.rb, lib/observability.rb:
|
109
|
-
| Flesh out more of the spike implementation
|
110
|
-
| [50b6c0061b4a]
|
111
|
-
|
|
112
|
-
2019-07-11 Michael Granger <ged@FaerieMUD.org>
|
113
|
-
|
114
|
-
o * .gems, Rakefile, experiments/actors.rb, lib/observability.rb,
|
115
|
-
| lib/observability/observer.rb, observability.gemspec:
|
116
|
-
| Checkpoint of more spike code
|
117
|
-
| [0b903d4090c9]
|
118
|
-
|
|
119
|
-
2019-07-09 Michael Granger <ged@FaerieMUD.org>
|
120
|
-
|
121
|
-
o * .gems, DevNotes.md, experiments/actors.rb, lib/observability.rb,
|
122
|
-
| lib/observability/observer.rb, spec/observability_spec.rb,
|
123
|
-
| spec/spec_helper.rb:
|
124
|
-
| Checkpoint of notes and experiments
|
125
|
-
| [0a1d6c04a68d]
|
126
|
-
|
|
127
|
-
2019-07-05 Michael Granger <ged@FaerieMUD.org>
|
128
|
-
|
129
|
-
o * DevNotes.md, examples/basic-usage.rb, lib/observability.rb:
|
130
|
-
| Add notes and start of first example
|
131
|
-
| [9851c06beeb7]
|
132
|
-
|
|
133
|
-
o * .document, .editorconfig, .gems, .hgignore, .pryrc, .rdoc_options,
|
134
|
-
.ruby-gemset, .ruby-version, .simplecov, Gemfile, History.md,
|
135
|
-
LICENSE.txt, Manifest.txt, README.md, Rakefile, certs/ged.pem,
|
136
|
-
lib/observability.rb, spec/observability_spec.rb,
|
137
|
-
spec/spec_helper.rb:
|
138
|
-
Initial commit
|
139
|
-
[2f9f3818be0c]
|
data/Manifest.txt
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
.document
|
2
|
-
.rdoc_options
|
3
|
-
.simplecov
|
4
|
-
ChangeLog
|
5
|
-
DevNotes.md
|
6
|
-
History.md
|
7
|
-
LICENSE.txt
|
8
|
-
Manifest.txt
|
9
|
-
README.md
|
10
|
-
Rakefile
|
11
|
-
bin/observability-collector
|
12
|
-
examples/basic-usage.rb
|
13
|
-
lib/observability.rb
|
14
|
-
lib/observability/collector.rb
|
15
|
-
lib/observability/collector/timescale.rb
|
16
|
-
lib/observability/event.rb
|
17
|
-
lib/observability/observer.rb
|
18
|
-
lib/observability/observer_hooks.rb
|
19
|
-
lib/observability/sender.rb
|
20
|
-
lib/observability/sender/logger.rb
|
21
|
-
lib/observability/sender/null.rb
|
22
|
-
lib/observability/sender/testing.rb
|
23
|
-
lib/observability/sender/udp.rb
|
24
|
-
spec/observability/event_spec.rb
|
25
|
-
spec/observability/observer_hooks_spec.rb
|
26
|
-
spec/observability/observer_spec.rb
|
27
|
-
spec/observability/sender/logger_spec.rb
|
28
|
-
spec/observability/sender/udp_spec.rb
|
29
|
-
spec/observability/sender_spec.rb
|
30
|
-
spec/observability_spec.rb
|
31
|
-
spec/spec_helper.rb
|
data/Rakefile
DELETED
@@ -1,102 +0,0 @@
|
|
1
|
-
#!/usr/bin/env rake
|
2
|
-
|
3
|
-
begin
|
4
|
-
require 'hoe'
|
5
|
-
rescue LoadError
|
6
|
-
abort "This Rakefile requires hoe (gem install hoe)"
|
7
|
-
end
|
8
|
-
|
9
|
-
GEMSPEC = 'observability.gemspec'
|
10
|
-
|
11
|
-
|
12
|
-
Hoe.plugin :mercurial
|
13
|
-
Hoe.plugin :signing
|
14
|
-
Hoe.plugin :deveiate
|
15
|
-
|
16
|
-
Hoe.plugins.delete :rubyforge
|
17
|
-
|
18
|
-
hoespec = Hoe.spec 'observability' do |spec|
|
19
|
-
spec.readme_file = 'README.md'
|
20
|
-
spec.history_file = 'History.md'
|
21
|
-
|
22
|
-
spec.extra_rdoc_files = FileList[ '*.rdoc', '*.md' ]
|
23
|
-
spec.license 'BSD-3-Clause'
|
24
|
-
spec.urls = {
|
25
|
-
home: 'http://bitbucket.org/ged/observability',
|
26
|
-
code: 'http://bitbucket.org/ged/observability',
|
27
|
-
docs: 'http://deveiate.org/code/observability',
|
28
|
-
github: 'http://github.com/ged/observability',
|
29
|
-
}
|
30
|
-
|
31
|
-
spec.developer 'Michael Granger', 'ged@FaerieMUD.org'
|
32
|
-
|
33
|
-
spec.dependency 'concurrent-ruby', '~> 1.1.5'
|
34
|
-
spec.dependency 'concurrent-ruby-ext', '~> 1.1.5'
|
35
|
-
spec.dependency 'loggability', '~> 0.11'
|
36
|
-
spec.dependency 'configurability', '~> 3.3'
|
37
|
-
spec.dependency 'pluggability', '~> 0.6'
|
38
|
-
spec.dependency 'msgpack', '~> 1.3'
|
39
|
-
|
40
|
-
spec.dependency 'timecop', '~> 0.9', :developer
|
41
|
-
spec.dependency 'hoe-deveiate', '~> 0.3', :developer
|
42
|
-
spec.dependency 'simplecov', '~> 0.7', :developer
|
43
|
-
spec.dependency 'rdoc-generator-fivefish', '~> 0.1', :developer
|
44
|
-
|
45
|
-
spec.require_ruby_version( '>=2.4.0' )
|
46
|
-
spec.hg_sign_tags = true if spec.respond_to?( :hg_sign_tags= )
|
47
|
-
spec.check_history_on_release = true if spec.respond_to?( :check_history_on_release= )
|
48
|
-
|
49
|
-
self.rdoc_locations << "deveiate:/usr/local/www/public/code/#{remote_rdoc_dir}"
|
50
|
-
end
|
51
|
-
|
52
|
-
|
53
|
-
ENV['VERSION'] ||= hoespec.spec.version.to_s
|
54
|
-
|
55
|
-
# Run the tests before checking in
|
56
|
-
task 'hg:precheckin' => [ :check_history, :check_manifest, :gemspec, :spec ]
|
57
|
-
|
58
|
-
task :test => :spec
|
59
|
-
|
60
|
-
# Rebuild the ChangeLog immediately before release
|
61
|
-
task :prerelease => 'ChangeLog'
|
62
|
-
CLOBBER.include( 'ChangeLog' )
|
63
|
-
|
64
|
-
desc "Build a coverage report"
|
65
|
-
task :coverage do
|
66
|
-
ENV["COVERAGE"] = 'yes'
|
67
|
-
Rake::Task[:spec].invoke
|
68
|
-
end
|
69
|
-
CLOBBER.include( 'coverage' )
|
70
|
-
|
71
|
-
|
72
|
-
# Use the fivefish formatter for docs generated from development checkout
|
73
|
-
if File.directory?( '.hg' )
|
74
|
-
require 'rdoc/task'
|
75
|
-
|
76
|
-
Rake::Task[ 'docs' ].clear
|
77
|
-
RDoc::Task.new( 'docs' ) do |rdoc|
|
78
|
-
rdoc.main = "README.rdoc"
|
79
|
-
rdoc.markup = 'markdown'
|
80
|
-
rdoc.rdoc_files.include( "*.rdoc", "ChangeLog", "lib/**/*.rb" )
|
81
|
-
rdoc.generator = :fivefish
|
82
|
-
rdoc.title = 'Observability'
|
83
|
-
rdoc.rdoc_dir = 'doc'
|
84
|
-
end
|
85
|
-
end
|
86
|
-
|
87
|
-
task :gemspec => GEMSPEC
|
88
|
-
file GEMSPEC => __FILE__
|
89
|
-
task GEMSPEC do |task|
|
90
|
-
spec = $hoespec.spec
|
91
|
-
spec.files.delete( '.gemtest' )
|
92
|
-
spec.signing_key = nil
|
93
|
-
spec.cert_chain = ['certs/ged.pem']
|
94
|
-
spec.version = "#{spec.version.bump}.0.pre#{Time.now.strftime("%Y%m%d%H%M%S")}"
|
95
|
-
File.open( task.name, 'w' ) do |fh|
|
96
|
-
fh.write( spec.to_ruby )
|
97
|
-
end
|
98
|
-
end
|
99
|
-
CLOBBER.include( GEMSPEC.to_s )
|
100
|
-
|
101
|
-
task :default => :gemspec
|
102
|
-
|
data/examples/basic-usage.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# -*- ruby -*-
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require 'observability'
|
5
|
-
|
6
|
-
|
7
|
-
class Server
|
8
|
-
extend Observability
|
9
|
-
|
10
|
-
|
11
|
-
observer 'udp://10.2.0.250:11311'
|
12
|
-
|
13
|
-
observe_around :handle_request
|
14
|
-
observe_around :handle_
|
15
|
-
|
16
|
-
|
17
|
-
end # class Server
|
18
|
-
|