fluent-plugin-sentry-rubrik 0.0.14 → 0.0.15

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
  SHA1:
3
- metadata.gz: e9d735c9999a2f9e07c45e99ba034ede076f5663
4
- data.tar.gz: '0078205ce40f7a2be3ab3991b0bc50f5546b944b'
3
+ metadata.gz: a3e2385bce8401cb4f04f7f8951db5a067a61420
4
+ data.tar.gz: 3aee83af4f0989a2fd4380efe013f7d81fa072e3
5
5
  SHA512:
6
- metadata.gz: a604a680cfa1a20aac1f3d7cc1580c88d2943d00fd5491282e6561d912fcaeab8308ba324daf050bbe5cfb0124f493e296b6d4d6f10265829b0fb79abaa214e4
7
- data.tar.gz: 6ff5045f7003416dfb91a40e7ed14333c8f34e47fed412c3505d7524496f1c10dcd4bea1def7aa7d48e49aba92494d014820262ad5f5e606418659187ab815e4
6
+ metadata.gz: 3dadf83a00764e05baf23fcab5ff101215b67e8aca3e7d1d273d5feb692b53b94978e6b0a7f1725dc68108cd2e9ea15bd148ea30091ccf0094cd00ccaa787a8d
7
+ data.tar.gz: 95b793a1e2e4c44e4a2603b73cf3db1a724a68786c074ff463a6fb4b759dec094980eab8e8e2edf9e84b185d25b63bbbd8e02be8147b453681e30f523be438f0
data/README.md CHANGED
@@ -130,6 +130,14 @@ id will be set to "foo/babar".
130
130
 
131
131
  Forward slash is used to identify the different keys.
132
132
 
133
+ * environment
134
+ [default] "default"
135
+
136
+ Can be default, production or development. Used to set the environment tag in
137
+ Sentry.
138
+
139
+ ### Tag rewriting
140
+
133
141
  It also support rewriting Tag with SetTagKeyMixin.
134
142
 
135
143
  * remove_tag_prefix
@@ -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 = "fluent-plugin-sentry-rubrik"
7
- spec.version = "0.0.14"
7
+ spec.version = "0.0.15"
8
8
  spec.authors = ["Kentaro Yoshida", "François-Xavier Bourlet"]
9
9
  spec.email = ["y.ken.studio@gmail.com", "fx.bourlet@rubrik.com"]
10
10
  spec.summary = %q{Fluentd output plugin that sends aggregated errors/exception events to Sentry. Sentry is a event logging and aggregation platform.}
@@ -22,6 +22,7 @@ module Fluent
22
22
  config_param :flush_interval, :time, :default => 0
23
23
  config_param :hostname_command, :string, :default => 'hostname'
24
24
  config_param :stacktrace_expand_json_escaping, :bool, :default => true
25
+ config_param :environment, :enum, list: [:default, :production, :development], :default => :default
25
26
 
26
27
  def configure(conf)
27
28
  super
@@ -49,8 +50,6 @@ module Fluent
49
50
  @userid_key_patterns.push(keys)
50
51
  end
51
52
 
52
- $log.info(@userid_key_patterns)
53
-
54
53
  hostname_command = @hostname_command || DEFAULT_HOSTNAME_COMMAND
55
54
  @hostname = `#{hostname_command}`.chomp
56
55
 
@@ -100,6 +99,8 @@ module Fluent
100
99
  :level => level,
101
100
  :logger => record['logger'] || @default_logger,
102
101
  :message => record['message'] || record['msg'] || "",
102
+ :release => record['release'] || nil,
103
+ :environment => @environment,
103
104
  )
104
105
 
105
106
  stacktrace = record['stacktrace']
@@ -146,6 +147,7 @@ module Fluent
146
147
  return values.join("/")
147
148
  end
148
149
  end
150
+ return nil
149
151
  end
150
152
  end
151
153
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-sentry-rubrik
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kentaro Yoshida
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-03-09 00:00:00.000000000 Z
12
+ date: 2018-03-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler