fluent-plugin-sentry-rubrik 0.0.10 → 0.0.11

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: 2ceeba4b727703fa63816c1eaca4086bf12d13d1
4
- data.tar.gz: ac55b32dc671343685c744c21e53c93e469b654a
3
+ metadata.gz: 48596345eadcbfb3c799951352afdceeb7cd66bb
4
+ data.tar.gz: edfdd67c375c82f605d87dd63beec6866db20f92
5
5
  SHA512:
6
- metadata.gz: 9d8b4cb85592bda9a1b792b537c2f605d32445b48c347adb47b24812e28f1c2f943c5633e8a4231b14861f38428f2c723ab57c9a876812467772c0487fc1b7b2
7
- data.tar.gz: 6dd209bad668377119aaaed147b17bf7eba9bf1140d1ed577bf2b48532ee0507f16e48a2ea5de0299f775bef2045449630cd2a9d7de3c3e49cba0e80c2193f6e
6
+ metadata.gz: b8122b0087738562cb48e3ee95db9a2b3e9c4da322b5609c7f489856dff6bec4fe26c6d8116d154fde9616504b16d81fb69f634223b31cedabf9ba9e84179fef
7
+ data.tar.gz: 5bb56923822e1780d16547a9667abdf3a94805784dd7d1ce50574bc118024b29126dabcee4475473bbfdd012a4020ad97824f0d8dbf7533e0e12b45f8f017597
@@ -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.10"
7
+ spec.version = "0.0.11"
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.}
@@ -10,7 +10,7 @@ module Fluent
10
10
  include Fluent::HandleTagNameMixin
11
11
 
12
12
  LOG_LEVEL = %w(fatal error warn warning info debug).to_set()
13
- EVENT_KEYS = %w(message msg timestamp level logger).to_set()
13
+ EVENT_KEYS = %w(message msg timestamp level logger stacktrace backtrace).to_set()
14
14
  DEFAULT_HOSTNAME_COMMAND = 'hostname'
15
15
 
16
16
  config_param :default_level, :string, :default => 'info'
@@ -91,8 +91,15 @@ module Fluent
91
91
  :logger => record['logger'] || @default_logger,
92
92
  :message => record['message'] || record['msg'] || "",
93
93
  )
94
- event.tags = event.tags
95
- .merge(extract_tags(record))
94
+
95
+ stacktrace = record['backtrace'] || record['stacktrace']
96
+ if stacktrace
97
+ event.interface(:stacktrace) do |int|
98
+ int.frames = event.stacktrace_interface_from(stacktrace)
99
+ end
100
+ end
101
+
102
+ event.tags = event.tags.merge(extract_tags(record))
96
103
  event.extra = record.reject{ |key| EVENT_KEYS.include?(key) }
97
104
  @client.send_event(event)
98
105
  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.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kentaro Yoshida