fluent-plugin-raven 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d13c862fce8b4eae0320b7615c582d4129cdc9a6c02588b5126db84d29334ad0
4
- data.tar.gz: ceb60e796cb74c98a9b3507cc78148be4f0c728726f4d4f62350a90b5e0ef08a
3
+ metadata.gz: c76a4ef14dd2212f285603c6e646de0009f5265890da9f712743bf441a9dc05e
4
+ data.tar.gz: 3dde49be38c328de366815d085dd626a0ddaeec0070dbb7fc2e86c46f07b8b4d
5
5
  SHA512:
6
- metadata.gz: 5dacc4c06b3fb85ee09985dfbb6206a1f4f983b04e2d487853f4c38232a41f000a70bb272c68aecdf8091580beee3389145906148208bea1db4eb4177d5ef673
7
- data.tar.gz: ec9f68a995d3f7ae6323bb7092fc21fc1e5ffb3de34ae5ce992fabb06b58f2f0ef3618fd2eef8ec77fa141f4fcff949b43e5e6318ba713856b5d13741a978359
6
+ metadata.gz: 2935862392b7952d15dc6cbeef5307c8ec6fd412496e1f4beabf2e28947ba597c8ddb8072d46ee60558c1ce66a6dface7dc43aae3477943f95bb820fbbadf402
7
+ data.tar.gz: 1de3b106ba871dd36051b8990dfeede9dff0464a565168ba0baf8860d3f943e032178dca6407309eacd382f8f6190933240e4a4c63de192f514ec353c8ae86e8
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg
@@ -0,0 +1,8 @@
1
+ os: linux
2
+ language: ruby
3
+
4
+ rvm:
5
+ - 2.6
6
+ - 2.5
7
+ - 2.4
8
+ - 2.3
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`: DSN KEY shown at setting page
22
- - `environment`: set 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
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "fluent-plugin-raven"
6
- spec.version = "0.1.3"
6
+ spec.version = "0.1.4"
7
7
  spec.authors = ["Yuto Suzuki"]
8
8
  spec.email = ["yuutoo.advance@gmail.com"]
9
9
 
@@ -17,7 +17,7 @@ require "fluent/plugin/output"
17
17
  require "raven"
18
18
 
19
19
  module Fluent::Plugin
20
- class SentryOutput < Output
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
- test "failure" do
10
- flunk
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.3
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-27 00:00:00.000000000 Z
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