raven-transports-fluentd 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/raven/transports/fluentd.rb +4 -7
- data/raven-transports-fluentd.gemspec +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71e76a8b3501c33de6f77a6de18e3e99fcf5f219
|
4
|
+
data.tar.gz: fe49b16d8756e1540938551989627acb4b191c83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfdd4861728152f4d54b4c6610ef56b20de7ecf85a93e6b9fe2fa16be29bc8614a1f133a1c904dabc46d2bdb9f066a293b75d8a14aa765ebe09c855168429564
|
7
|
+
data.tar.gz: c7a6c54b2327278a9c0b56fb69bdf21a6d9ca66f00c37135e0615152b583c4d2be4e5eac86466454237f91e49e474bf5c74f562dc34f07d0173174b167ce61c8
|
data/CHANGELOG.md
CHANGED
@@ -10,25 +10,22 @@ module Raven
|
|
10
10
|
class Fluentd < Transport
|
11
11
|
|
12
12
|
def send_event(auth_header, data, options = {})
|
13
|
+
unless configuration.sending_allowed?
|
14
|
+
configuration.logger.debug("Event not sent: #{configuration.error_messages}")
|
15
|
+
end
|
16
|
+
|
13
17
|
conn.post('error', auth_header: auth_header, data: data, options: options, project_id: configuration.project_id)
|
14
18
|
end
|
15
19
|
|
16
20
|
private
|
17
21
|
|
18
22
|
def conn
|
19
|
-
verify_configuration
|
20
|
-
|
21
23
|
@conn ||= begin
|
22
24
|
uri = URI.parse(self.configuration.server)
|
23
25
|
|
24
26
|
::Fluent::Logger::FluentLogger.new('sentry', host: uri.host, port: uri.port)
|
25
27
|
end
|
26
28
|
end
|
27
|
-
|
28
|
-
def verify_configuration
|
29
|
-
super
|
30
|
-
end
|
31
|
-
|
32
29
|
end
|
33
30
|
end
|
34
31
|
end
|
@@ -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.
|
7
|
+
spec.version = '0.2.0'
|
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,5 +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 "sentry-raven", ">=
|
24
|
+
spec.add_dependency "sentry-raven", ">= 2.2.0"
|
25
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.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naoto Takai
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-01-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -59,14 +59,14 @@ dependencies:
|
|
59
59
|
requirements:
|
60
60
|
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
62
|
+
version: 2.2.0
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 2.2.0
|
70
70
|
description: Send error logs to sentry via fluentd.
|
71
71
|
email:
|
72
72
|
- takai@cookpad.com
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
version: '0'
|
106
106
|
requirements: []
|
107
107
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.
|
108
|
+
rubygems_version: 2.6.8
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: Send error logs to sentry via fluentd.
|