newrelic_kafka 0.0.2

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: 72b2ef0f1ab8d6e616ad8487ff9be81fe1afd5e3
4
+ data.tar.gz: 3254d682feeabdfab0e7f16def19133042245f88
5
+ SHA512:
6
+ metadata.gz: ef0e852f9effdb7e50a1c6b4a5702556aa010de461b33414e16031fe7c2030561b7e001667e95904777737e1b93a263e824a5c3eec1b8ac4decbf5b6c4b419c1
7
+ data.tar.gz: 62e9a991b26b25242e01a2d63198506f9f0fb119bd992b918f1f82317b1ea04c8433ddc09a4794165ea7e471df251ef9d86216e2c859299ba42b7adfdc7786e5
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2016 Apptentive
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,41 @@
1
+ # NewRelic for Kafka ruby-kafka
2
+
3
+ Unofficial [NewRelic](http://newrelic.com/) instrumentation for the
4
+ [ruby-kafka](https://github.com/zendesk/ruby-kafka) gem.
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ gem 'newrelic_kafka'
11
+
12
+ And then execute:
13
+
14
+ $ bundle
15
+
16
+ Or install it yourself with:
17
+
18
+ $ gem install newrelic_kafka
19
+
20
+ ## Releases
21
+ * 0.0.1 Support for synchronous `produce` in the [ruby-kafka](https://github.com/zendesk/ruby-kafka) gem
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
30
+
31
+ ## License
32
+
33
+ The MIT License (MIT)
34
+
35
+ Copyright (c) 2016 Apptentive
36
+
37
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
38
+
39
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
40
+
41
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,24 @@
1
+ # encoding: utf-8
2
+ require "new_relic/agent"
3
+
4
+ DependencyDetection.defer do
5
+ named :kafka
6
+
7
+ # skipping async for now
8
+ # Kafka::Client::AsyncProducer
9
+ depends_on do
10
+ defined?(Kafka::Producer)
11
+ end
12
+
13
+ executes do
14
+ ::NewRelic::Agent.logger.info "Installing Kafka ruby-kafka instrumentation"
15
+ end
16
+
17
+ executes do
18
+ require "new_relic/agent/datastores"
19
+
20
+ [Kafka::Producer].each do |klass|
21
+ NewRelic::Agent::Datastores.trace klass, :produce, "Kafka"
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,3 @@
1
+ module NewrelicKafka
2
+ VERSION = "0.0.2"
3
+ end
@@ -0,0 +1,2 @@
1
+ require "newrelic-kafka/instrumentation"
2
+ require "newrelic-kafka/version"
metadata ADDED
@@ -0,0 +1,70 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: newrelic_kafka
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Joel Stimson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-07-23 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.11'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 3.11.0.283
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '3.11'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 3.11.0.283
33
+ description: Unofficial New Relic instrumentation for ruby-kafka Producer
34
+ email:
35
+ - joel@apptentive.com
36
+ executables: []
37
+ extensions: []
38
+ extra_rdoc_files: []
39
+ files:
40
+ - LICENSE
41
+ - README.md
42
+ - lib/newrelic_kafka.rb
43
+ - lib/newrelic_kafka/instrumentation.rb
44
+ - lib/newrelic_kafka/version.rb
45
+ homepage: http://github.com/apptentive-engineering/newrelic_kafka
46
+ licenses:
47
+ - MIT
48
+ metadata: {}
49
+ post_install_message:
50
+ rdoc_options: []
51
+ require_paths:
52
+ - lib
53
+ required_ruby_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ requirements: []
64
+ rubyforge_project:
65
+ rubygems_version: 2.4.5.1
66
+ signing_key:
67
+ specification_version: 4
68
+ summary: Unofficial New Relic instrumentation for ruby-kafka Producer
69
+ test_files: []
70
+ has_rdoc: