apptuit-fluent-plugin 0.1.2 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4f4ec20c78c76c4ed7e63a9dd3c9d1ea21f7b97a191bd9579a809d921033bf9
4
- data.tar.gz: cf63ee09ba3dce61bd4552ced62436e981ae708768e01536b8097bce39b501cf
3
+ metadata.gz: 1307342316fe6f37a4720e9cd35cbfaa07d1e0bd8ae9cef04547eca0c519dd54
4
+ data.tar.gz: 82c06218485631107c90a9ac84a3037d25181afbfaf1eee031c20958f0425c61
5
5
  SHA512:
6
- metadata.gz: 643bd6cea7b55195db893065266775fe5e5d25bf2411cbed21f907061560b2a314c946c5dc2815e0ace83c0b0f3bf06160118669f667334126bbb1864d61faec
7
- data.tar.gz: 31c51647b43ac1f73b8d642a939b667a9654afb537d943722295c1829b0601a99ada667060ef992ad2d3086cd9022cdfbf14b770f44378f0c7c61b4064c737de
6
+ metadata.gz: e63c937598b18e486335ecf7462486ecaf37694f43690048078c6e8a38fc8d18040ddbc35a782d2837d23015d3f264de3b847ddc4cf13cccf59d63823c29299c
7
+ data.tar.gz: 683775dca19051efbb2b76a6f0d35ebbb0add9ba14ed3bc05f53f6e893a9999719cd2900246129d54bd2e99533b4c4588482cd9e28b4b092d7be4ddb8a78a75c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- apptuit-fluent-plugin (0.1.2)
4
+ apptuit-fluent-plugin (0.1.3)
5
5
  fluentd (>= 0.14.10, < 2)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -45,8 +45,6 @@ $ sudo td-agent-gem install apptuit-fluent-plugin
45
45
  2. java
46
46
  3. nodejs
47
47
 
48
-
49
-
50
48
  * **syslog (bool) (optional)**
51
49
  * This is boolean config parameter and its default value is `false`.
52
50
 
@@ -58,16 +56,6 @@ $ sudo td-agent-gem install apptuit-fluent-plugin
58
56
  * This config parameter is used to give the tag name of the error message.
59
57
 
60
58
  Default value: `message`.
61
-
62
- * **fingerprint_name (string) (optional)**
63
- * This config parameter is used to give a custom name to he fingerprint tag.
64
-
65
- Default value: `error_fingerprint`.
66
-
67
- * **exception_name (string) (optional)**
68
- * This config parameter is used to give a custom name to he exception tag.
69
-
70
- Default value: `exception`.
71
59
 
72
60
  ## Result
73
61
  If the provided message is valid then the record is added with an two new tags that is `error` and `error_hash` and the can be specified in labels section for exposing in metrics
@@ -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 = "apptuit-fluent-plugin"
6
- spec.version = "0.1.2"
6
+ spec.version = "0.1.3"
7
7
  spec.authors = ["hari prasad"]
8
8
  spec.email = ["hariprasad.pothuri@agilitix.ai"]
9
9
 
@@ -24,9 +24,7 @@ module Fluent::Plugin
24
24
 
25
25
  config_param :lang, :string
26
26
  config_param :syslog, :bool, default: false
27
- config_param :error_msg_tag, :string, default: 'message'
28
- config_param :fingerprint_name, :string, default: 'error_fingerprint'
29
- config_param :exception_name, :string, default: 'exception'
27
+ config_param :error_msg_tag, :string, default: 'message'
30
28
 
31
29
  def get_decoded_message(message)
32
30
  message = message.gsub(/#([0-9]{3})/) {$1.oct.chr}
@@ -45,8 +43,8 @@ module Fluent::Plugin
45
43
  end
46
44
  err_name, fingerprint, essence, stack = fingerprint_object.fingerprint_java(message)
47
45
  if err_name != nil
48
- record[@exception_name] = err_name
49
- record[@fingerprint_name] = fingerprint
46
+ record['error_fingerprint'] = fingerprint
47
+ record['exception'] = err_name
50
48
  end
51
49
  end
52
50
  elsif @lang.downcase == 'python'
@@ -58,8 +56,8 @@ module Fluent::Plugin
58
56
  end
59
57
  err_name, fingerprint, essence, stack = fingerprint_object.fingerprint_python(message)
60
58
  if err_name != nil
61
- record[@exception_name] = err_name
62
- record[@fingerprint_name] = fingerprint
59
+ record['error_fingerprint'] = fingerprint
60
+ record['exception'] = err_name
63
61
  end
64
62
  end
65
63
  elsif @lang.downcase == 'nodejs'
@@ -71,8 +69,8 @@ module Fluent::Plugin
71
69
  end
72
70
  err_name, fingerprint, essence, stack = fingerprint_object.fingerprint_nodejs(message)
73
71
  if err_name != nil
74
- record[@exception_name] = err_name
75
- record[@fingerprint_name] = fingerprint
72
+ record['error_fingerprint'] = fingerprint
73
+ record['exception'] = err_name
76
74
  end
77
75
  end
78
76
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apptuit-fluent-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - hari prasad
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-06 00:00:00.000000000 Z
11
+ date: 2019-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler