newrelic-cql 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7df9f12f522d3af590f4f27ee6b371f44b0d4bd8
4
+ data.tar.gz: ec50ebe5c7c0eec35b8d74cc559dc8e6409f2578
5
+ SHA512:
6
+ metadata.gz: 15a6fb660585590038bb34b2d714317e7add4f5bdfcc6e5427fedbecdf785f4c53ef27cb234591795c40a14916d54e371a6bb6b68544fecc2f08ed3575dea75b
7
+ data.tar.gz: 0089ba93f64d7df37873459fffb2f65824e262ebe860438b1cc4b6496a0173e0632413b6aba05d6793c9c8c594b93daa485c166f4e92842c2a6467af6b20aac9
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Change.org, Inc
2
+
3
+ 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.
data/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # NewRelic for cql-rb
2
+
3
+ Unofficial [NewRelic](http://newrelic.com/) instrumentation for the
4
+ [cql-rb](https://github.com/iconara/cql-rb) Cassandra database ruby gem.
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ gem 'newrelic-cql'
11
+
12
+ And then execute:
13
+
14
+ $ bundle
15
+
16
+ Or install it yourself with:
17
+
18
+ $ gem install newrelic-cql
19
+
20
+ ## Contributing
21
+
22
+ 1. Fork it
23
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
24
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
25
+ 4. Push to the branch (`git push origin my-new-feature`)
26
+ 5. Create new Pull Request
@@ -0,0 +1,2 @@
1
+ require 'newrelic-cql/instrumentation'
2
+ require 'newrelic-cql/version'
@@ -0,0 +1,25 @@
1
+ # encoding: utf-8
2
+ require 'new_relic/agent/method_tracer'
3
+
4
+ DependencyDetection.defer do
5
+ @name = :cql
6
+
7
+ executes do
8
+ ::NewRelic::Agent.logger.info 'Installing Cassandra Cql instrumentation'
9
+ end
10
+
11
+ depends_on do
12
+ defined?(Cql)
13
+ end
14
+
15
+ executes do
16
+ [Cql::Client::AsynchronousClient, Cql::Client::SynchronousClient].each do |klass|
17
+ klass.class_eval do
18
+ include ::NewRelic::Agent::MethodTracer
19
+ add_method_tracer :prepare, 'Database/Cql/prepare'
20
+ add_method_tracer :execute, 'Database/Cql/execute'
21
+ add_method_tracer :batch, 'Database/Cql/batch'
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,3 @@
1
+ module NewrelicCql
2
+ VERSION = '0.0.1'
3
+ end
metadata ADDED
@@ -0,0 +1,63 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: newrelic-cql
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Kyle VanderBeek
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-06-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: newrelic_rpm
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 3.5.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 3.5.0
27
+ description: Unofficial New Relic instrumentation for cql-rb
28
+ email:
29
+ - kyle@change.org
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - lib/newrelic-cql/instrumentation.rb
35
+ - lib/newrelic-cql/version.rb
36
+ - lib/newrelic-cql.rb
37
+ - LICENSE
38
+ - README.md
39
+ homepage: http://github.com/change/newrelic-cql
40
+ licenses:
41
+ - MIT
42
+ metadata: {}
43
+ post_install_message:
44
+ rdoc_options: []
45
+ require_paths:
46
+ - lib
47
+ required_ruby_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - '>='
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ requirements: []
58
+ rubyforge_project:
59
+ rubygems_version: 2.0.14
60
+ signing_key:
61
+ specification_version: 4
62
+ summary: Unofficial New Relic instrumentation for cql-rb
63
+ test_files: []