raven-transports-fluentd 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/fluent/plugin/out_raven.rb +10 -16
- data/raven-transports-fluentd.gemspec +1 -2
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f470aa454b5522184c734a77491442b921b8965
|
4
|
+
data.tar.gz: ceb7642afa88fb4c2db9cf9b683c4d00b98795f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60e8967ba6ec2e9334a53a8d68dd138e116253c49647643176770c62e2f5c07c6418853e5a23b44c001ccb8c25461e5d1ddaa575ba262879fd5e8b88a5517a7a
|
7
|
+
data.tar.gz: 622d3fec2c796e5747d1e207ec55294c3f251cdee434dde64af3b0b3713e9436a1e1c12fd6c01abba94b086414a281d33ef38974d099500ffab80d6c28e70d4a
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
require 'raven'
|
2
|
-
require 'hashie'
|
3
|
-
require 'uri'
|
4
2
|
|
5
3
|
module Fluent
|
6
4
|
class RavenOutput < BufferedOutput
|
@@ -14,18 +12,14 @@ module Fluent
|
|
14
12
|
|
15
13
|
def configure(conf)
|
16
14
|
super
|
17
|
-
uri = URI.parse(conf['server'])
|
18
|
-
project_id = uri.path.slice(/\d+/)
|
19
15
|
|
20
|
-
@base_configuration =
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
open_timeout: conf['open_timeout'],
|
28
|
-
)
|
16
|
+
@base_configuration = Raven::Configuration.new
|
17
|
+
@base_configuration.server = conf['server']
|
18
|
+
@base_configuration.public_key = 'not_used'
|
19
|
+
@base_configuration.secret_key = 'not_used'
|
20
|
+
@base_configuration.ssl_verification = conf['ssl_verification']
|
21
|
+
@base_configuration.timeout = conf['timeout']
|
22
|
+
@base_configuration.open_timeout = conf['open_timeout']
|
29
23
|
|
30
24
|
Raven.configure do |config|
|
31
25
|
config.logger = Logger.new(conf['raven_log_path'])
|
@@ -57,9 +51,9 @@ module Fluent
|
|
57
51
|
private
|
58
52
|
|
59
53
|
def send_to_sentry(auth_header, data, project_id, options)
|
60
|
-
|
61
|
-
|
62
|
-
)
|
54
|
+
config = @base_configuration.dup
|
55
|
+
config.project_id = project_id
|
56
|
+
transport = ::Raven::Transports::HTTP.new(config)
|
63
57
|
transport.send(auth_header, data, options)
|
64
58
|
end
|
65
59
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "raven-transports-fluentd"
|
7
|
-
spec.version = '0.1.
|
7
|
+
spec.version = '0.1.2'
|
8
8
|
spec.authors = ["Naoto Takai", "Kohei Suzuki"]
|
9
9
|
spec.email = ["takai@cookpad.com", "kohei-suzuki@cookpad.com"]
|
10
10
|
spec.summary = %q{Send error logs to sentry via fluentd.}
|
@@ -21,6 +21,5 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_development_dependency "rake"
|
22
22
|
|
23
23
|
spec.add_dependency "fluent-logger"
|
24
|
-
spec.add_dependency "hashie"
|
25
24
|
spec.add_dependency "sentry-raven", ">= 0.10.1"
|
26
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raven-transports-fluentd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naoto Takai
|
@@ -53,20 +53,6 @@ dependencies:
|
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: hashie
|
58
|
-
requirement: !ruby/object:Gem::Requirement
|
59
|
-
requirements:
|
60
|
-
- - ">="
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '0'
|
63
|
-
type: :runtime
|
64
|
-
prerelease: false
|
65
|
-
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
56
|
- !ruby/object:Gem::Dependency
|
71
57
|
name: sentry-raven
|
72
58
|
requirement: !ruby/object:Gem::Requirement
|