gitlab-fluent-plugin-detect-exceptions 0.0.15 → 0.0.17
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb966ab945381b25b836d8c365636e494cc8bb6f65aa03776703deb57f34adf4
|
4
|
+
data.tar.gz: 606301396220e283e1ed3a55f0a27a4ecac8e5f34ae9bc35285514766b824ac4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1e57669f3740291699de1feeab09a61638d62279e4f5c93aea331d5ef1a303890b791635f9e8dd578a990264da43847bb1c23f53113d463bc0d8b63f16d8ad2
|
7
|
+
data.tar.gz: 9fe0f8364c81659a0592f15b4c8e020f80111c6d3213a8c12af2c2a4be76fd94fb63894579498bee1dfc620cf289e2bd9aab9503c8b494e026eaf107b6088b3f
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fluent-plugin-detect-exceptions (0.0.
|
4
|
+
gitlab-fluent-plugin-detect-exceptions (0.0.17)
|
5
5
|
fluentd (>= 0.10)
|
6
6
|
|
7
7
|
GEM
|
@@ -39,7 +39,7 @@ GEM
|
|
39
39
|
ruby-progressbar (~> 1.7)
|
40
40
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
41
41
|
ruby-progressbar (1.11.0)
|
42
|
-
serverengine (2.3.
|
42
|
+
serverengine (2.3.1)
|
43
43
|
sigdump (~> 0.2.2)
|
44
44
|
sigdump (0.2.4)
|
45
45
|
strptime (0.2.5)
|
@@ -55,10 +55,11 @@ GEM
|
|
55
55
|
|
56
56
|
PLATFORMS
|
57
57
|
arm64-darwin-21
|
58
|
+
arm64-darwin-22
|
58
59
|
|
59
60
|
DEPENDENCIES
|
60
61
|
flexmock (~> 2.0)
|
61
|
-
fluent-plugin-detect-exceptions!
|
62
|
+
gitlab-fluent-plugin-detect-exceptions!
|
62
63
|
rake (~> 10.3)
|
63
64
|
rubocop (= 0.42.0)
|
64
65
|
test-unit (~> 3.0)
|
@@ -11,7 +11,7 @@ eos
|
|
11
11
|
gem.homepage = \
|
12
12
|
'https://gitlab.com/gitlab-org/ruby/gems/gitlab-fluent-plugin-detect-exceptions'
|
13
13
|
gem.license = 'Apache-2.0'
|
14
|
-
gem.version = '0.0.
|
14
|
+
gem.version = '0.0.17'
|
15
15
|
gem.authors = ['Stackdriver Agents']
|
16
16
|
gem.email = ['stackdriver-agents@google.com']
|
17
17
|
gem.required_ruby_version = Gem::Requirement.new('>= 2.0')
|
@@ -115,50 +115,50 @@ module Fluent
|
|
115
115
|
|
116
116
|
RUBY_SEGFAULT_RULES = [
|
117
117
|
rule(:start_state,
|
118
|
-
/:\d+:\s\[BUG\] Segmentation fault/, :
|
119
|
-
rule(:
|
120
|
-
rule(:
|
121
|
-
rule(:
|
118
|
+
/:\d+:\s\[BUG\] Segmentation fault/, :ruby_segfault),
|
119
|
+
rule(:ruby_segfault, /^ruby\n*/, :ruby_segfault),
|
120
|
+
rule(:ruby_segfault, /^\n*$/, :ruby_segfault),
|
121
|
+
rule(:ruby_segfault,
|
122
122
|
/^-- Control frame information --/, :ruby_control_frames),
|
123
123
|
rule(:ruby_control_frames, /^c:/, :ruby_control_frames),
|
124
|
-
rule(:ruby_control_frames, /^\n
|
125
|
-
rule(:
|
126
|
-
|
124
|
+
rule(:ruby_control_frames, /^\n*$/, :ruby_segfault),
|
125
|
+
rule([:ruby_segfault, :ruby_control_frames],
|
126
|
+
/^-- Ruby level backtrace information --/,
|
127
127
|
:ruby_level_backtrace_frames),
|
128
128
|
rule(:ruby_level_backtrace_frames, /:\d+:in /,
|
129
129
|
:ruby_level_backtrace_frames),
|
130
|
-
rule(:ruby_level_backtrace_frames, /^\n
|
131
|
-
rule(:
|
130
|
+
rule(:ruby_level_backtrace_frames, /^\n*$/, :ruby_segfault),
|
131
|
+
rule([:ruby_segfault, :ruby_level_backtrace_frames],
|
132
132
|
/^-- Machine register context --/, :ruby_machine_registers),
|
133
133
|
rule(:ruby_machine_registers, /: /, :ruby_machine_registers),
|
134
|
-
rule(:ruby_machine_registers, /^\n
|
135
|
-
rule(:
|
134
|
+
rule(:ruby_machine_registers, /^\n*$/, :ruby_segfault),
|
135
|
+
rule([:ruby_segfault, :ruby_machine_registers],
|
136
136
|
/^-- C level backtrace information --/,
|
137
137
|
:ruby_c_level_backtrace_frames),
|
138
138
|
rule(:ruby_c_level_backtrace_frames, /\[.*\]/,
|
139
139
|
:ruby_c_level_backtrace_frames),
|
140
140
|
rule(:ruby_c_level_backtrace_frames, / .*:\d+$/,
|
141
141
|
:ruby_c_level_backtrace_frames),
|
142
|
-
rule(:ruby_c_level_backtrace_frames, /^\n
|
143
|
-
|
144
|
-
rule(:ruby_c_level_backtrace_end,
|
142
|
+
rule(:ruby_c_level_backtrace_frames, /^\n*$/, :ruby_segfault),
|
143
|
+
rule([:ruby_segfault, :ruby_c_level_backtrace_frames],
|
145
144
|
/^-- Other runtime information/, :ruby_other_runtime_info),
|
146
|
-
rule(:ruby_other_runtime_info, /^\n
|
145
|
+
rule(:ruby_other_runtime_info, /^\n*$/, :ruby_other_runtime_info),
|
147
146
|
rule(:ruby_other_runtime_info, /^* Loaded script:/, :ruby_loaded_script),
|
148
|
-
rule(:ruby_loaded_script, /^\n
|
149
|
-
rule(:ruby_loaded_features,
|
150
|
-
|
151
|
-
rule(:ruby_loaded_features_frames,
|
147
|
+
rule(:ruby_loaded_script, /^\n*$/, :ruby_loaded_features),
|
148
|
+
rule([:ruby_loaded_features, :ruby_loaded_script],
|
149
|
+
/^* Loaded features:/, :ruby_loaded_features),
|
150
|
+
rule(:ruby_loaded_features, /^\n*$/, :ruby_loaded_features_frames),
|
151
|
+
rule([:ruby_loaded_features_frames, :ruby_loaded_features],
|
152
152
|
/\d/, :ruby_loaded_features_frames),
|
153
153
|
rule(:ruby_loaded_features_frames,
|
154
|
-
/^\n
|
155
|
-
rule(:ruby_process_memory_map,
|
154
|
+
/^\n*$/, :ruby_process_memory_map),
|
155
|
+
rule([:ruby_process_memory_map, :ruby_loaded_features_frames],
|
156
156
|
/^* Process memory map:/, :ruby_process_memory_map),
|
157
157
|
rule(:ruby_process_memory_map,
|
158
|
-
/^\n
|
159
|
-
rule(:ruby_process_memory_map_frames,
|
158
|
+
/^\n*$/, :ruby_process_memory_map_frames),
|
159
|
+
rule([:ruby_process_memory_map_frames, :ruby_process_memory_map],
|
160
160
|
/\-/, :ruby_process_memory_map_frames),
|
161
|
-
rule(:ruby_process_memory_map_frames, /^\n
|
161
|
+
rule(:ruby_process_memory_map_frames, /^\n*$/, :start_state)
|
162
162
|
].freeze
|
163
163
|
|
164
164
|
DART_RULES = [
|
@@ -905,6 +905,7 @@ END
|
|
905
905
|
def test_ruby
|
906
906
|
check_exception(RUBY_EXC, false)
|
907
907
|
check_exception(RUBY_SEGFAULT_EXC, true)
|
908
|
+
check_exception(strip_blank_lines(RUBY_SEGFAULT_EXC), true)
|
908
909
|
check_exception(RAILS_EXC, false)
|
909
910
|
end
|
910
911
|
|
@@ -980,6 +981,10 @@ END
|
|
980
981
|
check_no_multiline(detector, JAVA_EXC_PART2)
|
981
982
|
end
|
982
983
|
|
984
|
+
def strip_blank_lines(str)
|
985
|
+
str.split("\n").reject(&:empty?).join("\n") + "\n\n"
|
986
|
+
end
|
987
|
+
|
983
988
|
def feed_lines(buffer, *messages)
|
984
989
|
messages.each do |m|
|
985
990
|
m.each_line do |line|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-fluent-plugin-detect-exceptions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stackdriver Agents
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
|
-
rubygems_version: 3.3
|
126
|
+
rubygems_version: 3.4.3
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: fluentd output plugin for combining stack traces as multi-line JSON logs
|