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 +4 -4
- data/fluent-plugin-sentry.gemspec +1 -1
- data/lib/fluent/plugin/out_sentry.rb +10 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48596345eadcbfb3c799951352afdceeb7cd66bb
|
4
|
+
data.tar.gz: edfdd67c375c82f605d87dd63beec6866db20f92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
95
|
-
|
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
|