fluent-plugin-raven 0.1.3 → 0.1.4
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/.gitignore +4 -0
- data/.travis.yml +8 -0
- data/README.md +10 -4
- data/fluent-plugin-raven.gemspec +1 -1
- data/lib/fluent/plugin/out_raven.rb +5 -1
- data/test/plugin/test_out_raven.rb +7 -2
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c76a4ef14dd2212f285603c6e646de0009f5265890da9f712743bf441a9dc05e
|
4
|
+
data.tar.gz: 3dde49be38c328de366815d085dd626a0ddaeec0070dbb7fc2e86c46f07b8b4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2935862392b7952d15dc6cbeef5307c8ec6fd412496e1f4beabf2e28947ba597c8ddb8072d46ee60558c1ce66a6dface7dc43aae3477943f95bb820fbbadf402
|
7
|
+
data.tar.gz: 1de3b106ba871dd36051b8990dfeede9dff0464a565168ba0baf8860d3f943e032178dca6407309eacd382f8f6190933240e4a4c63de192f514ec353c8ae86e8
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -18,16 +18,22 @@ If `tag` is specified as bufferd chunk key, it send as tag for sentry.
|
|
18
18
|
|
19
19
|
### config params
|
20
20
|
|
21
|
-
- `dsn
|
22
|
-
- `environment
|
21
|
+
- `dsn` (required): DSN KEY shown at setting page
|
22
|
+
- `environment` : set environment
|
23
|
+
- `default_level`: set default log level for sentry. default value is `error`
|
24
|
+
|
25
|
+
### record keys
|
26
|
+
|
27
|
+
- `message`: message body for sentry as events.
|
28
|
+
- `level`: log level for sentry as events.
|
23
29
|
|
24
30
|
|
25
31
|
### Example
|
26
32
|
|
27
|
-
```
|
33
|
+
```aconf
|
28
34
|
<match **>
|
29
35
|
@type sentry
|
30
|
-
dsn https://12345678@sentry.io/123456
|
36
|
+
dsn https://12345678@sentry.io/123456
|
31
37
|
environment development
|
32
38
|
<buffer tag>
|
33
39
|
@type file
|
data/fluent-plugin-raven.gemspec
CHANGED
@@ -17,7 +17,7 @@ require "fluent/plugin/output"
|
|
17
17
|
require "raven"
|
18
18
|
|
19
19
|
module Fluent::Plugin
|
20
|
-
class
|
20
|
+
class RavenOutput < Output
|
21
21
|
Fluent::Plugin.register_output("raven", self)
|
22
22
|
|
23
23
|
helpers :inject
|
@@ -29,6 +29,10 @@ module Fluent::Plugin
|
|
29
29
|
def configure(conf)
|
30
30
|
super
|
31
31
|
|
32
|
+
if dsn == nil
|
33
|
+
raise Fluent::ConfigError, "Need to Set DSN"
|
34
|
+
end
|
35
|
+
|
32
36
|
Raven.configure do |config|
|
33
37
|
config.dsn = dsn
|
34
38
|
config.current_environment = environment
|
@@ -6,8 +6,13 @@ class RavenOutputTest < Test::Unit::TestCase
|
|
6
6
|
Fluent::Test.setup
|
7
7
|
end
|
8
8
|
|
9
|
-
|
10
|
-
|
9
|
+
sub_test_case 'configure' do
|
10
|
+
test 'check default' do
|
11
|
+
d = nil
|
12
|
+
assert_raise do
|
13
|
+
d = create_driver('')
|
14
|
+
end
|
15
|
+
end
|
11
16
|
end
|
12
17
|
|
13
18
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-raven
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuto Suzuki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -93,6 +93,8 @@ executables: []
|
|
93
93
|
extensions: []
|
94
94
|
extra_rdoc_files: []
|
95
95
|
files:
|
96
|
+
- ".gitignore"
|
97
|
+
- ".travis.yml"
|
96
98
|
- Gemfile
|
97
99
|
- LICENSE
|
98
100
|
- README.md
|