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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd9348f46f9d003e9a1302fdf2f138fe6f0db7e49e50a51d1482991ad68ee2a5
4
- data.tar.gz: 2d49d42af3a45e9c1061d550c5b45c1652406f901f89c81525dca90c2f2c6584
3
+ metadata.gz: dbb664dd1e3cac0de5c1a05dcc99871cdc2c404e480344fade45a1cd7c938ada
4
+ data.tar.gz: 76fe67fac3ae676b4e9262b8c21ebd4175cc42275726271709a7dbe0b326bef6
5
5
  SHA512:
6
- metadata.gz: 3ccb75506d4344d4d2ec1d6c7f4e2c1957a762d7d60cee5e34bf2aec98abdf9d8c72158f4dd3e23fa0da8a054cbc694754d2a81d959facdbe9fd6911e36de1e2
7
- data.tar.gz: 20933b21b52fa4f95de2964a3a15ab757f7dff8f4058b91a29547440f3446eae6510c40193ae4a44494c5494e60c9de1290d2c483033b687c79c5526dbff66ab
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
- return unless SharedStorage.dec(:stored_requests) <= 0
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
- return unless Sqreen.framework
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.')
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
2
  # Please refer to our terms for more information: https://www.sqreen.io/terms.html
3
3
  module Sqreen
4
- VERSION = '1.15.2'.freeze
4
+ VERSION = '1.15.3.beta1'.freeze
5
5
  end
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.2
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: '0'
138
+ version: 1.3.1
139
139
  requirements: []
140
140
  rubyforge_project:
141
141
  rubygems_version: 2.7.7