sentry-ruby-core 7.2.0 → 7.3.0
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/gemfiles/ruby-2.7_rack-2_redis-4.gemfile.lock +13 -13
- data/gemfiles/ruby-2.7_rack-3.1_redis-4.gemfile.lock +13 -13
- data/gemfiles/ruby-2.7_rack-3_redis-4.gemfile.lock +13 -13
- data/gemfiles/ruby-3.0_rack-2_redis-4.gemfile.lock +14 -14
- data/gemfiles/ruby-3.0_rack-3.1_redis-4.gemfile.lock +14 -14
- data/gemfiles/ruby-3.0_rack-3_redis-4.gemfile.lock +14 -14
- data/gemfiles/ruby-3.1_rack-2_redis-4.gemfile.lock +28 -28
- data/gemfiles/ruby-3.1_rack-3.1_redis-4.gemfile.lock +28 -28
- data/gemfiles/ruby-3.1_rack-3_redis-4.gemfile.lock +28 -28
- data/gemfiles/ruby-3.2_rack-0_redis-5.gemfile.lock +28 -28
- data/gemfiles/ruby-3.2_rack-2_redis-4.gemfile.lock +30 -30
- data/gemfiles/ruby-3.2_rack-2_redis-5.gemfile.lock +30 -30
- data/gemfiles/ruby-3.2_rack-3.1_redis-4.gemfile.lock +30 -30
- data/gemfiles/ruby-3.2_rack-3_redis-4.gemfile.lock +30 -30
- data/gemfiles/ruby-3.2_rack-3_redis-5.gemfile.lock +30 -30
- data/gemfiles/ruby-3.3_rack-2_redis-4.gemfile.lock +32 -33
- data/gemfiles/ruby-3.3_rack-3.1_redis-4.gemfile.lock +32 -33
- data/gemfiles/ruby-3.3_rack-3.1_redis-5.3.gemfile.lock +32 -33
- data/gemfiles/ruby-3.3_rack-3_redis-4.gemfile.lock +32 -33
- data/gemfiles/ruby-3.4_rack-2_redis-4.gemfile.lock +32 -33
- data/gemfiles/ruby-3.4_rack-3.1_redis-4.gemfile.lock +32 -33
- data/gemfiles/ruby-3.4_rack-3.1_redis-5.3.gemfile.lock +32 -33
- data/gemfiles/ruby-3.4_rack-3_redis-4.gemfile.lock +32 -33
- data/gemfiles/ruby-4.0_rack-2_redis-4.gemfile.lock +32 -33
- data/gemfiles/ruby-4.0_rack-3.1_redis-4.gemfile.lock +32 -33
- data/gemfiles/ruby-4.0_rack-3_redis-4.gemfile.lock +32 -33
- data/gemfiles/ruby-jruby-9.4.14.0_rack-2_redis-4.gemfile.lock +32 -32
- data/gemfiles/ruby-jruby-9.4.14.0_rack-3.1_redis-4.gemfile.lock +32 -32
- data/gemfiles/ruby-jruby-9.4.14.0_rack-3_redis-4.gemfile.lock +32 -32
- data/lib/sentry/configuration.rb +2 -26
- data/lib/sentry/debug_structured_logger.rb +18 -21
- data/lib/sentry/job_extensions/extension.rb +348 -0
- data/lib/sentry/propagation_context.rb +2 -0
- data/lib/sentry/redis.rb +7 -1
- data/lib/sentry/rufus_scheduler.rb +10 -5
- data/lib/sentry/scope.rb +39 -1
- data/lib/sentry/session_flusher.rb +5 -2
- data/lib/sentry/span.rb +25 -2
- data/lib/sentry/structured_logger.rb +16 -13
- data/lib/sentry/transport/debug_transport.rb +70 -19
- data/lib/sentry/utils/latency.rb +18 -0
- data/lib/sentry/utils/ring_buffer.rb +38 -0
- data/lib/sentry/version.rb +1 -1
- data/lib/sentry-ruby.rb +12 -0
- metadata +6 -3
|
@@ -6,7 +6,7 @@ GIT
|
|
|
6
6
|
PATH
|
|
7
7
|
remote: ..
|
|
8
8
|
specs:
|
|
9
|
-
sentry-ruby (7.
|
|
9
|
+
sentry-ruby (7.2.0)
|
|
10
10
|
bigdecimal
|
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
12
12
|
logger
|
|
@@ -37,7 +37,7 @@ GEM
|
|
|
37
37
|
minitest (>= 5.1, < 6)
|
|
38
38
|
securerandom (>= 0.3)
|
|
39
39
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
40
|
-
addressable (2.9.
|
|
40
|
+
addressable (2.9.2)
|
|
41
41
|
public_suffix (>= 2.0.2, < 8.0)
|
|
42
42
|
base64 (0.3.0)
|
|
43
43
|
benchmark (0.5.0)
|
|
@@ -65,7 +65,7 @@ GEM
|
|
|
65
65
|
tzinfo
|
|
66
66
|
excon (1.6.0)
|
|
67
67
|
logger
|
|
68
|
-
faraday (2.15.
|
|
68
|
+
faraday (2.15.1)
|
|
69
69
|
faraday-net_http (>= 2.0, < 3.6)
|
|
70
70
|
json
|
|
71
71
|
logger
|
|
@@ -75,20 +75,20 @@ GEM
|
|
|
75
75
|
fugit (1.14.0)
|
|
76
76
|
et-orbi (~> 1.4)
|
|
77
77
|
raabro (~> 1.4)
|
|
78
|
-
graphql (2.6.
|
|
78
|
+
graphql (2.6.15)
|
|
79
79
|
base64
|
|
80
80
|
fiber-storage
|
|
81
81
|
logger
|
|
82
|
-
hashdiff (1.2.
|
|
82
|
+
hashdiff (1.2.2)
|
|
83
83
|
i18n (1.15.2)
|
|
84
84
|
concurrent-ruby (~> 1.0)
|
|
85
|
-
io-console (0.9.
|
|
86
|
-
irb (1.
|
|
85
|
+
io-console (0.9.5-java)
|
|
86
|
+
irb (1.19.0)
|
|
87
87
|
pp (>= 0.6.0)
|
|
88
88
|
prism (>= 1.3.0)
|
|
89
89
|
rdoc (>= 4.0.0)
|
|
90
90
|
reline (>= 0.4.2)
|
|
91
|
-
jar-dependencies (0.6.
|
|
91
|
+
jar-dependencies (0.6.2-java)
|
|
92
92
|
jdbc-mysql (8.4.0.1)
|
|
93
93
|
jdbc-sqlite3 (3.46.1.1)
|
|
94
94
|
json (3.1.0-java)
|
|
@@ -104,15 +104,15 @@ GEM
|
|
|
104
104
|
pp (0.6.4)
|
|
105
105
|
prettyprint
|
|
106
106
|
prettyprint (0.2.1)
|
|
107
|
-
prism (2.
|
|
107
|
+
prism (2.1.0)
|
|
108
108
|
psych (5.5.0-java)
|
|
109
109
|
date
|
|
110
110
|
jar-dependencies (>= 0.1.7)
|
|
111
111
|
public_suffix (6.0.2)
|
|
112
|
-
puma (8.
|
|
112
|
+
puma (8.1.1-java)
|
|
113
113
|
nio4r (~> 2.0)
|
|
114
114
|
raabro (1.5.0)
|
|
115
|
-
rack (3.2.
|
|
115
|
+
rack (3.2.8)
|
|
116
116
|
rake (12.3.3)
|
|
117
117
|
rdoc (7.2.0)
|
|
118
118
|
erb
|
|
@@ -126,21 +126,21 @@ GEM
|
|
|
126
126
|
rspec-core (~> 3.13.0)
|
|
127
127
|
rspec-expectations (~> 3.13.0)
|
|
128
128
|
rspec-mocks (~> 3.13.0)
|
|
129
|
-
rspec-core (3.13.
|
|
129
|
+
rspec-core (3.13.7)
|
|
130
130
|
rspec-support (~> 3.13.0)
|
|
131
|
-
rspec-expectations (3.13.
|
|
131
|
+
rspec-expectations (3.13.6)
|
|
132
132
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
133
133
|
rspec-support (~> 3.13.0)
|
|
134
|
-
rspec-mocks (3.13.
|
|
134
|
+
rspec-mocks (3.13.9)
|
|
135
135
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
136
136
|
rspec-support (~> 3.13.0)
|
|
137
137
|
rspec-retry (0.6.2)
|
|
138
138
|
rspec-core (> 3.3)
|
|
139
|
-
rspec-support (3.13.
|
|
139
|
+
rspec-support (3.13.8)
|
|
140
140
|
rufus-scheduler (3.9.2)
|
|
141
141
|
fugit (~> 1.1, >= 1.11.1)
|
|
142
142
|
securerandom (0.4.1)
|
|
143
|
-
sequel (5.
|
|
143
|
+
sequel (5.110.0)
|
|
144
144
|
bigdecimal
|
|
145
145
|
simplecov (0.22.0)
|
|
146
146
|
docile (~> 1.1)
|
|
@@ -206,7 +206,7 @@ CHECKSUMS
|
|
|
206
206
|
activerecord-jdbc-adapter (72.1-java) sha256=4487cb4606b5d76913b5abaaf681ef21b7aa9478ed201918f48da6b3f7fcec70
|
|
207
207
|
activerecord-jdbcmysql-adapter (72.1-java) sha256=094d6e074e23668dff143f5c69cda0f0fc29468d9634b3c5e5884a3345e3d166
|
|
208
208
|
activesupport (7.2.4) sha256=b97027b31e111675dba67b86edcd589acc25a0dddf8eecacca18d33a703a0788
|
|
209
|
-
addressable (2.9.
|
|
209
|
+
addressable (2.9.2) sha256=9117c7e7d6ee07230e75ce41fb9401ae55354dc654fcd0e862ba41d539e9a610
|
|
210
210
|
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
|
|
211
211
|
benchmark (0.5.0) sha256=465df122341aedcb81a2a24b4d3bd19b6c67c1530713fd533f3ff034e419236c
|
|
212
212
|
benchmark-ips (2.5.0) sha256=aa98e9dc420c0dc225f6bf8cea7f112ca015596868e9dcf2e15d4ee4e3eb80ee
|
|
@@ -225,16 +225,16 @@ CHECKSUMS
|
|
|
225
225
|
erb (4.0.4.1-java) sha256=3e4805edebd25f48cdb43ad4ebf1d61c11538f29373f0a48716b688819e3f7ce
|
|
226
226
|
et-orbi (1.4.2) sha256=bb555dae668419cb24caa2a293a170e58be6d4df1e017c51f5030bdc133cd20c
|
|
227
227
|
excon (1.6.0) sha256=ebe2ab83c055ef8e117c62c91a3535b966a59a64868188219d49ab90cd83b65f
|
|
228
|
-
faraday (2.15.
|
|
228
|
+
faraday (2.15.1) sha256=8708154deda739c5e86cc42b74960e23e8491fce0eba9e11639a6a34b1ac288f
|
|
229
229
|
faraday-net_http (3.5.0) sha256=2e7094c34e38754ee048cc3df47376f8657005d9375f8473bce1c3b526a22e36
|
|
230
230
|
fiber-storage (1.0.1) sha256=f48e5b6d8b0be96dac486332b55cee82240057065dc761c1ea692b2e719240e1
|
|
231
231
|
fugit (1.14.0) sha256=e311a9cc85a54bb67649df45060e721282a1e2c8ebad40e41874a3a7d576f37e
|
|
232
|
-
graphql (2.6.
|
|
233
|
-
hashdiff (1.2.
|
|
232
|
+
graphql (2.6.15) sha256=b978f938a0d169669d98ba591af28e6b96da65080429dfa4652cdb86bb9d9604
|
|
233
|
+
hashdiff (1.2.2) sha256=e2e287452b42f18d2a8d82dd48c435e214a81dbadccf49344b956842a3b9127f
|
|
234
234
|
i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5
|
|
235
|
-
io-console (0.9.
|
|
236
|
-
irb (1.
|
|
237
|
-
jar-dependencies (0.6.
|
|
235
|
+
io-console (0.9.5-java) sha256=34b74ec7d8e39a526fb9a82aa34853257a1baa08f56c5cd5d37ec6be2a5e6000
|
|
236
|
+
irb (1.19.0) sha256=55ee56acbdd6c9fe06a2e6909f46a24e5c41f45f16906bab04e8049cf46f1d27
|
|
237
|
+
jar-dependencies (0.6.2-java) sha256=3196d7c5b63a221e0593c260c449e3a36dbbde733ec34260109ebd50546cb8e5
|
|
238
238
|
jdbc-mysql (8.4.0.1) sha256=429cb7999d11c4f46a7153a382b6ac07935a4c10ddc52dd98e2d52b22c17fa13
|
|
239
239
|
jdbc-sqlite3 (3.46.1.1) sha256=2498fea7d37c0d51c6bad1b95ffc909173c014ba6bd36825f37910113d0230cf
|
|
240
240
|
json (3.1.0-java) sha256=5052301b8f7fa676608d9470da9cde02931a9824e02f462b635d07bf2fcc5bfc
|
|
@@ -246,27 +246,27 @@ CHECKSUMS
|
|
|
246
246
|
nio4r (2.7.5-java) sha256=d14779d2a9b012ec0148a53344fbb2ed2a3c4d90c5dd923bf281135ab983b2c9
|
|
247
247
|
pp (0.6.4) sha256=dfcb0fce700c41456265922884f9fe195d7fbb0674a3578e6c0f69588e82b570
|
|
248
248
|
prettyprint (0.2.1) sha256=d555d57ea6d7cf001d4774b693546a6bd88bec1e778ddffb5c60b68ceec4b7d4
|
|
249
|
-
prism (2.
|
|
249
|
+
prism (2.1.0) sha256=1c0a7c6dea0e93183390fb123f007564dbe663198e2f86ad87204151147601f3
|
|
250
250
|
psych (5.5.0-java) sha256=3b7cf3684c44d049c3dee87ec4118ec9cd6ac714cbdcfba386997f96dbbd36ab
|
|
251
251
|
public_suffix (6.0.2) sha256=bfa7cd5108066f8c9602e0d6d4114999a5df5839a63149d3e8b0f9c1d3558394
|
|
252
|
-
puma (8.
|
|
252
|
+
puma (8.1.1-java) sha256=1ea716d494a73dce87478096ac5b3cf3ad9d3b063a0280b0c74f3a73d03ab37c
|
|
253
253
|
raabro (1.5.0) sha256=3f998a7bc84f9c84df3ab580634d2e0a5bda4f0841168d56035f529c9877440a
|
|
254
|
-
rack (3.2.
|
|
254
|
+
rack (3.2.8) sha256=1fecc85e463ebc7a2a945fff829ffcd549babeb1556384796fad946c28dc4ec7
|
|
255
255
|
rake (12.3.3) sha256=f7694adb4fe638da35452300cee6c545e9c377a0e3190018ac04d590b3c26ab3
|
|
256
256
|
rdoc (7.2.0) sha256=8650f76cd4009c3b54955eb5d7e3a075c60a57276766ebf36f9085e8c9f23192
|
|
257
257
|
redis (4.8.1) sha256=387ee086694fffc9632aaeb1efe4a7b1627ca783bf373320346a8a20cd93333a
|
|
258
258
|
reline (0.7.0) sha256=5b012d8e55dbf9d450f12bde2cf7d15ff546ae80b3f8f3b30e570d431815583d
|
|
259
259
|
rexml (3.4.1) sha256=c74527a9a0a04b4ec31dbe0dc4ed6004b960af943d8db42e539edde3a871abca
|
|
260
260
|
rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
|
|
261
|
-
rspec-core (3.13.
|
|
262
|
-
rspec-expectations (3.13.
|
|
263
|
-
rspec-mocks (3.13.
|
|
261
|
+
rspec-core (3.13.7) sha256=c64ff16d9788119805cbc6a3f4b6d87cc22417c2d25976a3330de136896b5469
|
|
262
|
+
rspec-expectations (3.13.6) sha256=bf538ca6d367ff5b0d85a87fdb5c0c6038f2cd1308a0eeba07476caa02d22f35
|
|
263
|
+
rspec-mocks (3.13.9) sha256=ea5c7ff3054a6098ca6039aacef80aec69d5a8a3ef80be8fc88337359b672a30
|
|
264
264
|
rspec-retry (0.6.2) sha256=6101ba23a38809811ae3484acde4ab481c54d846ac66d5037ccb40131a60d858
|
|
265
|
-
rspec-support (3.13.
|
|
265
|
+
rspec-support (3.13.8) sha256=e4160030309b7e3e9d9863dfe720a35dfcc577162f5402cd68fc8c5258a0ffd6
|
|
266
266
|
rufus-scheduler (3.9.2) sha256=55fa9e4db0ff69d7f38c804f17baba0c9bce5cba39984ae3c5cf6c039d1323b9
|
|
267
267
|
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
|
268
|
-
sentry-ruby (7.
|
|
269
|
-
sequel (5.
|
|
268
|
+
sentry-ruby (7.2.0)
|
|
269
|
+
sequel (5.110.0) sha256=c316335b352adb4109bb02ade237b1a6dbd493493def34542ce05893f62138ae
|
|
270
270
|
simplecov (0.22.0) sha256=fe2622c7834ff23b98066bb0a854284b2729a569ac659f82621fc22ef36213a5
|
|
271
271
|
simplecov-cobertura (3.2.0) sha256=70d702658677fcb20e5aceb6915ccf8bc62ff2ccd38b62b3ad5c9db5c0888740
|
|
272
272
|
simplecov-html (0.13.2) sha256=bd0b8e54e7c2d7685927e8d6286466359b6f16b18cb0df47b508e8d73c777246
|
|
@@ -6,7 +6,7 @@ GIT
|
|
|
6
6
|
PATH
|
|
7
7
|
remote: ..
|
|
8
8
|
specs:
|
|
9
|
-
sentry-ruby (7.
|
|
9
|
+
sentry-ruby (7.2.0)
|
|
10
10
|
bigdecimal
|
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
12
12
|
logger
|
|
@@ -37,7 +37,7 @@ GEM
|
|
|
37
37
|
minitest (>= 5.1, < 6)
|
|
38
38
|
securerandom (>= 0.3)
|
|
39
39
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
40
|
-
addressable (2.9.
|
|
40
|
+
addressable (2.9.2)
|
|
41
41
|
public_suffix (>= 2.0.2, < 8.0)
|
|
42
42
|
base64 (0.3.0)
|
|
43
43
|
benchmark (0.5.0)
|
|
@@ -65,7 +65,7 @@ GEM
|
|
|
65
65
|
tzinfo
|
|
66
66
|
excon (1.6.0)
|
|
67
67
|
logger
|
|
68
|
-
faraday (2.15.
|
|
68
|
+
faraday (2.15.1)
|
|
69
69
|
faraday-net_http (>= 2.0, < 3.6)
|
|
70
70
|
json
|
|
71
71
|
logger
|
|
@@ -75,20 +75,20 @@ GEM
|
|
|
75
75
|
fugit (1.14.0)
|
|
76
76
|
et-orbi (~> 1.4)
|
|
77
77
|
raabro (~> 1.4)
|
|
78
|
-
graphql (2.6.
|
|
78
|
+
graphql (2.6.15)
|
|
79
79
|
base64
|
|
80
80
|
fiber-storage
|
|
81
81
|
logger
|
|
82
|
-
hashdiff (1.2.
|
|
82
|
+
hashdiff (1.2.2)
|
|
83
83
|
i18n (1.15.2)
|
|
84
84
|
concurrent-ruby (~> 1.0)
|
|
85
|
-
io-console (0.9.
|
|
86
|
-
irb (1.
|
|
85
|
+
io-console (0.9.5-java)
|
|
86
|
+
irb (1.19.0)
|
|
87
87
|
pp (>= 0.6.0)
|
|
88
88
|
prism (>= 1.3.0)
|
|
89
89
|
rdoc (>= 4.0.0)
|
|
90
90
|
reline (>= 0.4.2)
|
|
91
|
-
jar-dependencies (0.6.
|
|
91
|
+
jar-dependencies (0.6.2-java)
|
|
92
92
|
jdbc-mysql (8.4.0.1)
|
|
93
93
|
jdbc-sqlite3 (3.46.1.1)
|
|
94
94
|
json (3.1.0-java)
|
|
@@ -104,15 +104,15 @@ GEM
|
|
|
104
104
|
pp (0.6.4)
|
|
105
105
|
prettyprint
|
|
106
106
|
prettyprint (0.2.1)
|
|
107
|
-
prism (2.
|
|
107
|
+
prism (2.1.0)
|
|
108
108
|
psych (5.5.0-java)
|
|
109
109
|
date
|
|
110
110
|
jar-dependencies (>= 0.1.7)
|
|
111
111
|
public_suffix (6.0.2)
|
|
112
|
-
puma (8.
|
|
112
|
+
puma (8.1.1-java)
|
|
113
113
|
nio4r (~> 2.0)
|
|
114
114
|
raabro (1.5.0)
|
|
115
|
-
rack (3.2.
|
|
115
|
+
rack (3.2.8)
|
|
116
116
|
rake (12.3.3)
|
|
117
117
|
rdoc (7.2.0)
|
|
118
118
|
erb
|
|
@@ -126,21 +126,21 @@ GEM
|
|
|
126
126
|
rspec-core (~> 3.13.0)
|
|
127
127
|
rspec-expectations (~> 3.13.0)
|
|
128
128
|
rspec-mocks (~> 3.13.0)
|
|
129
|
-
rspec-core (3.13.
|
|
129
|
+
rspec-core (3.13.7)
|
|
130
130
|
rspec-support (~> 3.13.0)
|
|
131
|
-
rspec-expectations (3.13.
|
|
131
|
+
rspec-expectations (3.13.6)
|
|
132
132
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
133
133
|
rspec-support (~> 3.13.0)
|
|
134
|
-
rspec-mocks (3.13.
|
|
134
|
+
rspec-mocks (3.13.9)
|
|
135
135
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
136
136
|
rspec-support (~> 3.13.0)
|
|
137
137
|
rspec-retry (0.6.2)
|
|
138
138
|
rspec-core (> 3.3)
|
|
139
|
-
rspec-support (3.13.
|
|
139
|
+
rspec-support (3.13.8)
|
|
140
140
|
rufus-scheduler (3.9.2)
|
|
141
141
|
fugit (~> 1.1, >= 1.11.1)
|
|
142
142
|
securerandom (0.4.1)
|
|
143
|
-
sequel (5.
|
|
143
|
+
sequel (5.110.0)
|
|
144
144
|
bigdecimal
|
|
145
145
|
simplecov (0.22.0)
|
|
146
146
|
docile (~> 1.1)
|
|
@@ -206,7 +206,7 @@ CHECKSUMS
|
|
|
206
206
|
activerecord-jdbc-adapter (72.1-java) sha256=4487cb4606b5d76913b5abaaf681ef21b7aa9478ed201918f48da6b3f7fcec70
|
|
207
207
|
activerecord-jdbcmysql-adapter (72.1-java) sha256=094d6e074e23668dff143f5c69cda0f0fc29468d9634b3c5e5884a3345e3d166
|
|
208
208
|
activesupport (7.2.4) sha256=b97027b31e111675dba67b86edcd589acc25a0dddf8eecacca18d33a703a0788
|
|
209
|
-
addressable (2.9.
|
|
209
|
+
addressable (2.9.2) sha256=9117c7e7d6ee07230e75ce41fb9401ae55354dc654fcd0e862ba41d539e9a610
|
|
210
210
|
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
|
|
211
211
|
benchmark (0.5.0) sha256=465df122341aedcb81a2a24b4d3bd19b6c67c1530713fd533f3ff034e419236c
|
|
212
212
|
benchmark-ips (2.5.0) sha256=aa98e9dc420c0dc225f6bf8cea7f112ca015596868e9dcf2e15d4ee4e3eb80ee
|
|
@@ -225,16 +225,16 @@ CHECKSUMS
|
|
|
225
225
|
erb (4.0.4.1-java) sha256=3e4805edebd25f48cdb43ad4ebf1d61c11538f29373f0a48716b688819e3f7ce
|
|
226
226
|
et-orbi (1.4.2) sha256=bb555dae668419cb24caa2a293a170e58be6d4df1e017c51f5030bdc133cd20c
|
|
227
227
|
excon (1.6.0) sha256=ebe2ab83c055ef8e117c62c91a3535b966a59a64868188219d49ab90cd83b65f
|
|
228
|
-
faraday (2.15.
|
|
228
|
+
faraday (2.15.1) sha256=8708154deda739c5e86cc42b74960e23e8491fce0eba9e11639a6a34b1ac288f
|
|
229
229
|
faraday-net_http (3.5.0) sha256=2e7094c34e38754ee048cc3df47376f8657005d9375f8473bce1c3b526a22e36
|
|
230
230
|
fiber-storage (1.0.1) sha256=f48e5b6d8b0be96dac486332b55cee82240057065dc761c1ea692b2e719240e1
|
|
231
231
|
fugit (1.14.0) sha256=e311a9cc85a54bb67649df45060e721282a1e2c8ebad40e41874a3a7d576f37e
|
|
232
|
-
graphql (2.6.
|
|
233
|
-
hashdiff (1.2.
|
|
232
|
+
graphql (2.6.15) sha256=b978f938a0d169669d98ba591af28e6b96da65080429dfa4652cdb86bb9d9604
|
|
233
|
+
hashdiff (1.2.2) sha256=e2e287452b42f18d2a8d82dd48c435e214a81dbadccf49344b956842a3b9127f
|
|
234
234
|
i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5
|
|
235
|
-
io-console (0.9.
|
|
236
|
-
irb (1.
|
|
237
|
-
jar-dependencies (0.6.
|
|
235
|
+
io-console (0.9.5-java) sha256=34b74ec7d8e39a526fb9a82aa34853257a1baa08f56c5cd5d37ec6be2a5e6000
|
|
236
|
+
irb (1.19.0) sha256=55ee56acbdd6c9fe06a2e6909f46a24e5c41f45f16906bab04e8049cf46f1d27
|
|
237
|
+
jar-dependencies (0.6.2-java) sha256=3196d7c5b63a221e0593c260c449e3a36dbbde733ec34260109ebd50546cb8e5
|
|
238
238
|
jdbc-mysql (8.4.0.1) sha256=429cb7999d11c4f46a7153a382b6ac07935a4c10ddc52dd98e2d52b22c17fa13
|
|
239
239
|
jdbc-sqlite3 (3.46.1.1) sha256=2498fea7d37c0d51c6bad1b95ffc909173c014ba6bd36825f37910113d0230cf
|
|
240
240
|
json (3.1.0-java) sha256=5052301b8f7fa676608d9470da9cde02931a9824e02f462b635d07bf2fcc5bfc
|
|
@@ -246,27 +246,27 @@ CHECKSUMS
|
|
|
246
246
|
nio4r (2.7.5-java) sha256=d14779d2a9b012ec0148a53344fbb2ed2a3c4d90c5dd923bf281135ab983b2c9
|
|
247
247
|
pp (0.6.4) sha256=dfcb0fce700c41456265922884f9fe195d7fbb0674a3578e6c0f69588e82b570
|
|
248
248
|
prettyprint (0.2.1) sha256=d555d57ea6d7cf001d4774b693546a6bd88bec1e778ddffb5c60b68ceec4b7d4
|
|
249
|
-
prism (2.
|
|
249
|
+
prism (2.1.0) sha256=1c0a7c6dea0e93183390fb123f007564dbe663198e2f86ad87204151147601f3
|
|
250
250
|
psych (5.5.0-java) sha256=3b7cf3684c44d049c3dee87ec4118ec9cd6ac714cbdcfba386997f96dbbd36ab
|
|
251
251
|
public_suffix (6.0.2) sha256=bfa7cd5108066f8c9602e0d6d4114999a5df5839a63149d3e8b0f9c1d3558394
|
|
252
|
-
puma (8.
|
|
252
|
+
puma (8.1.1-java) sha256=1ea716d494a73dce87478096ac5b3cf3ad9d3b063a0280b0c74f3a73d03ab37c
|
|
253
253
|
raabro (1.5.0) sha256=3f998a7bc84f9c84df3ab580634d2e0a5bda4f0841168d56035f529c9877440a
|
|
254
|
-
rack (3.2.
|
|
254
|
+
rack (3.2.8) sha256=1fecc85e463ebc7a2a945fff829ffcd549babeb1556384796fad946c28dc4ec7
|
|
255
255
|
rake (12.3.3) sha256=f7694adb4fe638da35452300cee6c545e9c377a0e3190018ac04d590b3c26ab3
|
|
256
256
|
rdoc (7.2.0) sha256=8650f76cd4009c3b54955eb5d7e3a075c60a57276766ebf36f9085e8c9f23192
|
|
257
257
|
redis (4.8.1) sha256=387ee086694fffc9632aaeb1efe4a7b1627ca783bf373320346a8a20cd93333a
|
|
258
258
|
reline (0.7.0) sha256=5b012d8e55dbf9d450f12bde2cf7d15ff546ae80b3f8f3b30e570d431815583d
|
|
259
259
|
rexml (3.4.1) sha256=c74527a9a0a04b4ec31dbe0dc4ed6004b960af943d8db42e539edde3a871abca
|
|
260
260
|
rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
|
|
261
|
-
rspec-core (3.13.
|
|
262
|
-
rspec-expectations (3.13.
|
|
263
|
-
rspec-mocks (3.13.
|
|
261
|
+
rspec-core (3.13.7) sha256=c64ff16d9788119805cbc6a3f4b6d87cc22417c2d25976a3330de136896b5469
|
|
262
|
+
rspec-expectations (3.13.6) sha256=bf538ca6d367ff5b0d85a87fdb5c0c6038f2cd1308a0eeba07476caa02d22f35
|
|
263
|
+
rspec-mocks (3.13.9) sha256=ea5c7ff3054a6098ca6039aacef80aec69d5a8a3ef80be8fc88337359b672a30
|
|
264
264
|
rspec-retry (0.6.2) sha256=6101ba23a38809811ae3484acde4ab481c54d846ac66d5037ccb40131a60d858
|
|
265
|
-
rspec-support (3.13.
|
|
265
|
+
rspec-support (3.13.8) sha256=e4160030309b7e3e9d9863dfe720a35dfcc577162f5402cd68fc8c5258a0ffd6
|
|
266
266
|
rufus-scheduler (3.9.2) sha256=55fa9e4db0ff69d7f38c804f17baba0c9bce5cba39984ae3c5cf6c039d1323b9
|
|
267
267
|
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
|
268
|
-
sentry-ruby (7.
|
|
269
|
-
sequel (5.
|
|
268
|
+
sentry-ruby (7.2.0)
|
|
269
|
+
sequel (5.110.0) sha256=c316335b352adb4109bb02ade237b1a6dbd493493def34542ce05893f62138ae
|
|
270
270
|
simplecov (0.22.0) sha256=fe2622c7834ff23b98066bb0a854284b2729a569ac659f82621fc22ef36213a5
|
|
271
271
|
simplecov-cobertura (3.2.0) sha256=70d702658677fcb20e5aceb6915ccf8bc62ff2ccd38b62b3ad5c9db5c0888740
|
|
272
272
|
simplecov-html (0.13.2) sha256=bd0b8e54e7c2d7685927e8d6286466359b6f16b18cb0df47b508e8d73c777246
|
data/lib/sentry/configuration.rb
CHANGED
|
@@ -421,7 +421,7 @@ module Sentry
|
|
|
421
421
|
|
|
422
422
|
# these are not config options
|
|
423
423
|
# @!visibility private
|
|
424
|
-
attr_reader :
|
|
424
|
+
attr_reader :gem_specs
|
|
425
425
|
|
|
426
426
|
# These exceptions could enter Puma's `lowlevel_error_handler` callback and the SDK's Puma integration
|
|
427
427
|
# But they are mostly considered as noise and should be ignored by default
|
|
@@ -764,9 +764,7 @@ module Sentry
|
|
|
764
764
|
end
|
|
765
765
|
|
|
766
766
|
def sending_to_dsn_allowed?
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
valid? && capture_in_environment?
|
|
767
|
+
!!@dsn&.valid? && enabled_in_current_env?
|
|
770
768
|
end
|
|
771
769
|
|
|
772
770
|
def sample_allowed?
|
|
@@ -856,12 +854,6 @@ module Sentry
|
|
|
856
854
|
log_error("Error detecting release", e, debug: debug)
|
|
857
855
|
end
|
|
858
856
|
|
|
859
|
-
# @api private
|
|
860
|
-
def error_messages
|
|
861
|
-
@errors = [@errors[0]] + @errors[1..-1].map(&:downcase) # fix case of all but first
|
|
862
|
-
@errors.join(", ")
|
|
863
|
-
end
|
|
864
|
-
|
|
865
857
|
# @api private
|
|
866
858
|
def run_after_close_callbacks
|
|
867
859
|
run_callbacks(:after, :closed)
|
|
@@ -908,22 +900,6 @@ module Sentry
|
|
|
908
900
|
nil
|
|
909
901
|
end
|
|
910
902
|
|
|
911
|
-
def capture_in_environment?
|
|
912
|
-
return true if enabled_in_current_env?
|
|
913
|
-
|
|
914
|
-
@errors << "Not configured to send/capture in environment '#{environment}'"
|
|
915
|
-
false
|
|
916
|
-
end
|
|
917
|
-
|
|
918
|
-
def valid?
|
|
919
|
-
if @dsn&.valid?
|
|
920
|
-
true
|
|
921
|
-
else
|
|
922
|
-
@errors << "DSN not set or not valid"
|
|
923
|
-
false
|
|
924
|
-
end
|
|
925
|
-
end
|
|
926
|
-
|
|
927
903
|
def environment_from_env
|
|
928
904
|
ENV["SENTRY_CURRENT_ENV"] || ENV["SENTRY_ENVIRONMENT"] || ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development"
|
|
929
905
|
end
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require "
|
|
4
|
-
require "fileutils"
|
|
5
|
-
require "pathname"
|
|
3
|
+
require "sentry/transport/debug_transport"
|
|
6
4
|
require "delegate"
|
|
7
5
|
|
|
8
6
|
module Sentry
|
|
@@ -15,9 +13,8 @@ module Sentry
|
|
|
15
13
|
attr_reader :log_file, :backend
|
|
16
14
|
|
|
17
15
|
def initialize(configuration)
|
|
18
|
-
@
|
|
19
|
-
|
|
20
|
-
)
|
|
16
|
+
@log = DebugLogFile.new(configuration.structured_logging.file_path, File.basename(DEFAULT_LOG_FILE_PATH, ".log"))
|
|
17
|
+
@log_file = @log.path
|
|
21
18
|
@backend = initialize_backend(configuration)
|
|
22
19
|
|
|
23
20
|
super(@backend)
|
|
@@ -25,14 +22,20 @@ module Sentry
|
|
|
25
22
|
|
|
26
23
|
# Override all log level methods to capture events
|
|
27
24
|
%i[trace debug info warn error fatal].each do |level|
|
|
28
|
-
define_method(level) do |message, parameters = [], **attributes|
|
|
25
|
+
define_method(level) do |message = nil, parameters = [], **attributes, &block|
|
|
26
|
+
message = block.call if block
|
|
27
|
+
raise ArgumentError, "message or block is required" if message.nil?
|
|
28
|
+
|
|
29
29
|
log_event = capture_log_event(level, message, parameters, **attributes)
|
|
30
30
|
backend.public_send(level, message, parameters, **attributes)
|
|
31
31
|
log_event
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
def log(level, message, parameters:, **attributes)
|
|
35
|
+
def log(level, message = nil, parameters:, **attributes)
|
|
36
|
+
message = yield if block_given?
|
|
37
|
+
raise ArgumentError, "message or block is required" if message.nil?
|
|
38
|
+
|
|
36
39
|
log_event = capture_log_event(level, message, parameters, **attributes)
|
|
37
40
|
backend.log(level, message, parameters: parameters, **attributes)
|
|
38
41
|
log_event
|
|
@@ -47,18 +50,20 @@ module Sentry
|
|
|
47
50
|
attributes: attributes
|
|
48
51
|
}
|
|
49
52
|
|
|
50
|
-
|
|
53
|
+
@log.append(log_event_json)
|
|
51
54
|
log_event_json
|
|
52
55
|
end
|
|
53
56
|
|
|
54
57
|
def logged_events
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
@log.entries
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
def start_run
|
|
62
|
+
@log.start_run
|
|
58
63
|
end
|
|
59
64
|
|
|
60
65
|
def clear
|
|
61
|
-
|
|
66
|
+
@log.clear
|
|
62
67
|
if backend.respond_to?(:config)
|
|
63
68
|
backend.config.sdk_logger.debug("DebugStructuredLogger: Cleared events from #{log_file}")
|
|
64
69
|
end
|
|
@@ -69,13 +74,5 @@ module Sentry
|
|
|
69
74
|
def initialize_backend(configuration)
|
|
70
75
|
StructuredLogger.new(configuration)
|
|
71
76
|
end
|
|
72
|
-
|
|
73
|
-
def initialize_log_file(log_file_path)
|
|
74
|
-
log_file = Pathname(log_file_path)
|
|
75
|
-
|
|
76
|
-
FileUtils.mkdir_p(log_file.dirname) unless log_file.dirname.exist?
|
|
77
|
-
|
|
78
|
-
log_file
|
|
79
|
-
end
|
|
80
77
|
end
|
|
81
78
|
end
|