newrelic-cassandra 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ *.gem
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Ryan Graham
2
+
3
+ The MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,11 @@
1
+ = newrelic-cassandra
2
+
3
+ * http://github.com/ryangraham/newrelic-cassandra
4
+
5
+ == DESCRIPTION:
6
+
7
+ Cassandra instrumentation for Newrelic.
8
+
9
+ == INSTALL:
10
+
11
+ * gem install newrelic-cassandra
File without changes
@@ -0,0 +1 @@
1
+ require 'newrelic_cassandra/instrumentation'
@@ -0,0 +1,11 @@
1
+ require 'new_relic/agent/method_tracer'
2
+
3
+ ::Cassandra.class_eval do
4
+ add_method_tracer :insert, 'Database/Cassandra/insert'
5
+ add_method_tracer :remove, 'Database/Cassandra/remove'
6
+ add_method_tracer :get, 'Database/Cassandra/get'
7
+ add_method_tracer :multi_get, 'Database/Cassandra/multi_get'
8
+ add_method_tracer :exists?, 'Database/Cassandra/exists?'
9
+ add_method_tracer :get_range, 'Database/Cassandra/get_range'
10
+ add_method_tracer :batch, 'Database/Cassandra/batch'
11
+ end
@@ -0,0 +1,3 @@
1
+ class NewRelicCassandra
2
+ VERSION = '0.0.1'
3
+ end
@@ -0,0 +1,16 @@
1
+ require File.expand_path('../lib/newrelic_cassandra/version.rb', __FILE__)
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'newrelic-cassandra'
5
+ s.version = NewRelicCassandra::VERSION
6
+ s.date = "2013-01-28"
7
+ s.description = "Cassandra instrumentation for Newrelic."
8
+ s.summary = "Cassandra instrumentation for Newrelic."
9
+ s.authors = ["Ryan Graham"]
10
+ s.email = "ryan.graham@gmail.com"
11
+ s.homepage = "http://github.com/ryangraham/newrelic-cassandra"
12
+ s.require_paths = ["lib"]
13
+ s.files = [".gitignore", "Gemfile", "README.rdoc", "LICENSE", "Rakefile", "lib/newrelic-cassandra.rb", "lib/newrelic_cassandra/instrumentation.rb", "lib/newrelic_cassandra/version.rb", "newrelic-cassandra.gemspec"]
14
+
15
+ s.add_runtime_dependency "cassandra"
16
+ end
metadata ADDED
@@ -0,0 +1,64 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: newrelic-cassandra
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Ryan Graham
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-01-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: cassandra
16
+ requirement: &77602260 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *77602260
25
+ description: Cassandra instrumentation for Newrelic.
26
+ email: ryan.graham@gmail.com
27
+ executables: []
28
+ extensions: []
29
+ extra_rdoc_files: []
30
+ files:
31
+ - .gitignore
32
+ - Gemfile
33
+ - README.rdoc
34
+ - LICENSE
35
+ - Rakefile
36
+ - lib/newrelic-cassandra.rb
37
+ - lib/newrelic_cassandra/instrumentation.rb
38
+ - lib/newrelic_cassandra/version.rb
39
+ - newrelic-cassandra.gemspec
40
+ homepage: http://github.com/ryangraham/newrelic-cassandra
41
+ licenses: []
42
+ post_install_message:
43
+ rdoc_options: []
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ none: false
48
+ requirements:
49
+ - - ! '>='
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ! '>='
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ requirements: []
59
+ rubyforge_project:
60
+ rubygems_version: 1.8.11
61
+ signing_key:
62
+ specification_version: 3
63
+ summary: Cassandra instrumentation for Newrelic.
64
+ test_files: []