sqreen 1.15.2 → 1.15.3.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sqreen/frameworks/generic.rb +6 -1
- data/lib/sqreen/frameworks/request_recorder.rb +2 -0
- data/lib/sqreen/sdk.rb +7 -1
- data/lib/sqreen/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbb664dd1e3cac0de5c1a05dcc99871cdc2c404e480344fade45a1cd7c938ada
|
4
|
+
data.tar.gz: 76fe67fac3ae676b4e9262b8c21ebd4175cc42275726271709a7dbe0b326bef6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1d9174082fc76585abc4d74dd25d064dda15d6ec68d0f30699194c59cac5aa7041c5d6d487b90e467a9704246d9006b2f23ccf9d2782e201b6757799afe6615
|
7
|
+
data.tar.gz: b9d7a157aa6b5a9abd145476cb660f5acee9044bedfdb364794e149e15b5939325701fd695dfecd140c2547c4ed7a3942c192b9868facab038a8be4ab723a01a
|
@@ -259,7 +259,12 @@ module Sqreen
|
|
259
259
|
|
260
260
|
# Cleanup request context
|
261
261
|
def clean_request
|
262
|
-
|
262
|
+
unless SharedStorage.dec(:stored_requests) <= 0
|
263
|
+
Sqreen.log.debug('Skipping clean_request due to value of ' \
|
264
|
+
"stored_requests: #{SharedStorage.get(:stored_requests)}")
|
265
|
+
return
|
266
|
+
end
|
267
|
+
|
263
268
|
payload_creator = Sqreen::PayloadCreator.new(self)
|
264
269
|
close_request_record(Sqreen.queue, Sqreen.observations_queue, payload_creator)
|
265
270
|
self.remaining_perf_budget = nil
|
@@ -47,6 +47,8 @@ module Sqreen
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def close_request_record(queue, observations_queue, payload_creator)
|
50
|
+
Sqreen.log.debug { "close_request_record called. observed_items: #{observed_items}" }
|
51
|
+
|
50
52
|
clean_request_record if observed_items.nil?
|
51
53
|
if only_metric_observation
|
52
54
|
push_metrics(observations_queue, queue)
|
data/lib/sqreen/sdk.rb
CHANGED
@@ -24,7 +24,13 @@ module Sqreen
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def track(event_name, options = {})
|
27
|
-
|
27
|
+
unless Sqreen.framework
|
28
|
+
Sqreen.log.warn("Ignored track call (event #{event_name}) due to framework absence")
|
29
|
+
return
|
30
|
+
end
|
31
|
+
|
32
|
+
Sqreen.log.debug { "Sqreen.track() call (event #{event_name}, options #{options})" }
|
33
|
+
|
28
34
|
if event_name.start_with? SDK_RESERVED_PREFIX
|
29
35
|
Sqreen.log.warn("Event names starting with '#{SDK_RESERVED_PREFIX}' " \
|
30
36
|
'are reserved. Event ignored.')
|
data/lib/sqreen/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sqreen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.15.
|
4
|
+
version: 1.15.3.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sqreen
|
@@ -133,9 +133,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
133
133
|
version: '0'
|
134
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - ">"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: 1.3.1
|
139
139
|
requirements: []
|
140
140
|
rubyforge_project:
|
141
141
|
rubygems_version: 2.7.7
|