ach-fluent-plugin-sentry 0.0.11 → 0.0.12
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 +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0aff9ca9fa6de5b7d882fa769df71133580d7f4df6d01105e61c8f834ce47f78
|
4
|
+
data.tar.gz: ffa221398919720d1c36f49ff311e5c87d423773fab4755c711c36c21dbf7444
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae217a992cc6122c50f4a061981fcbbb0aefd005d1a56057447ae1b4434e839834f68df99eaa5fab94e4b3d1d417afadeb3fed50e0a0a7a5976b45abcdd852d2
|
7
|
+
data.tar.gz: e0a23f26bf7206acd41a8e04136c50e024e70726bd68ea8fc9dab09e11f33510e1ad7826843eb4386adf37bdb636536c47fc19a3b7ea3d27b3f7be7566076395
|
@@ -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 = "ach-fluent-plugin-sentry"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.12"
|
8
8
|
spec.authors = ["Kentaro Yoshida"]
|
9
9
|
spec.email = ["y.ken.studio@gmail.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.}
|
@@ -15,6 +15,7 @@ class Fluent::SentryOutput < Fluent::BufferedOutput
|
|
15
15
|
|
16
16
|
def initialize
|
17
17
|
require 'time'
|
18
|
+
require 'json'
|
18
19
|
require 'sentry-ruby'
|
19
20
|
|
20
21
|
super
|
@@ -68,7 +69,7 @@ class Fluent::SentryOutput < Fluent::BufferedOutput
|
|
68
69
|
#$log.warning("Message: ",:error => record['message'])
|
69
70
|
event = Sentry::Event.new(
|
70
71
|
:configuration => @configuration,
|
71
|
-
:message => record
|
72
|
+
:message => record.to_json
|
72
73
|
)
|
73
74
|
event.timestamp = record['timestamp'] || Time.at(time).utc.strftime('%Y-%m-%dT%H:%M:%S')
|
74
75
|
event.level = record['level'] || @default_level
|