fluentd-sentry-output 0.0.2 → 0.0.5
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 +4 -4
- data/lib/fluent/plugin/out_sentry.rb +8 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 369964da79ae137cdbb6d65e293e3a88708dda0881d504f16d9c8b6317686c95
|
4
|
+
data.tar.gz: 764c4f6366ce936eb15f5668041f10b0cfe7e2da616dc376c718484f328004d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73f846ab0d018acdfd78f19888fb668caf21847538f6c5b4faa235f03534b396bebfb16652214ca4b21cd722b5a47a8d9a167291af2147ef646661743c50e953
|
7
|
+
data.tar.gz: d159b845d6157a6355f2f0d1c4957450ab69cdb1133c94c4d2780644ece6792f03b43e7936ab3cc4bdf9982894faf0fa041307480f3ea4abc8d2a9acf672c81b
|
@@ -28,7 +28,7 @@ class SentryException
|
|
28
28
|
sentry_frame = {
|
29
29
|
in_app: frame['in_app'] || false,
|
30
30
|
function: frame['function_name'] || nil,
|
31
|
-
filename: frame['
|
31
|
+
filename: frame['file_name'] || nil,
|
32
32
|
lineno: frame['line_number'] || nil,
|
33
33
|
colno: frame['column_number'] || nil
|
34
34
|
}
|
@@ -64,7 +64,8 @@ class SentryMessageFormat
|
|
64
64
|
tags,
|
65
65
|
request,
|
66
66
|
exception,
|
67
|
-
platform
|
67
|
+
platform,
|
68
|
+
transaction
|
68
69
|
)
|
69
70
|
@event_id = event_id
|
70
71
|
@timestamp = timestamp
|
@@ -74,6 +75,7 @@ class SentryMessageFormat
|
|
74
75
|
@tags = tags
|
75
76
|
@request = request
|
76
77
|
@platform = platform
|
78
|
+
@transaction = transaction
|
77
79
|
self.exception = SentryException.new(exception)
|
78
80
|
end
|
79
81
|
|
@@ -98,13 +100,12 @@ module Fluent::Plugin
|
|
98
100
|
config_param :project_id, :string
|
99
101
|
|
100
102
|
def write(chunk)
|
101
|
-
real_path = extract_placeholders(@path, chunk)
|
102
|
-
|
103
103
|
chunk.each do |time, record|
|
104
|
+
log.debug time, record
|
104
105
|
begin
|
105
106
|
send_to_sentry(record, time)
|
106
107
|
rescue => e
|
107
|
-
log.error 'Unable to send event to Sentry, Err class - ', e.class, ', error message - ', e.message
|
108
|
+
log.error 'Unable to send event to Sentry, Err class - ', e.class, ', error message - ', e.message, ', error backtrace - ', e.backtrace
|
108
109
|
end
|
109
110
|
end
|
110
111
|
end
|
@@ -123,7 +124,8 @@ module Fluent::Plugin
|
|
123
124
|
record['tags'] || nil,
|
124
125
|
record['request'] || nil,
|
125
126
|
record['exception'] || nil,
|
126
|
-
record['platform'] || 'node'
|
127
|
+
record['platform'] || 'node',
|
128
|
+
record['transaction'] || nil
|
127
129
|
)
|
128
130
|
|
129
131
|
url = create_sentry_event_ingestion_url
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluentd-sentry-output
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anirudh Singh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|