tracekit 0.2.1 → 0.2.2
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/tracekit/snapshots/client.rb +3 -2
- data/lib/tracekit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7a2a8b53b2c100727c3161bd201a6e310135d603c7ac7ab1e8370417a4ff2342
|
|
4
|
+
data.tar.gz: 710eb5980307b7a4e82a698a86ff1dea131af93a24b0785f9d88c07a1cb4288a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7548453f27b8b0781cda582feb75c25479e5abb5d2cf670c969055402dd6cea6d15582df725038112e35f277045d13baa6b82645295aa8b8a348349b4a0a0d17
|
|
7
|
+
data.tar.gz: 9e103dc9c20d0a00182bc403df79cb7fe8043bc58adf68a63a76996ed0952183a5251b94f6c35fdc47957e71e1934ab4365d630a1dd2268d1c85afec71668727
|
|
@@ -437,13 +437,14 @@ module Tracekit
|
|
|
437
437
|
when "kill_switch"
|
|
438
438
|
payload = JSON.parse(data_str, symbolize_names: true)
|
|
439
439
|
@kill_switch_active = payload[:enabled] == true
|
|
440
|
+
reschedule_polling(@kill_switch_active ? 60 : @normal_poll_interval)
|
|
440
441
|
if @kill_switch_active
|
|
441
442
|
warn "TraceKit: Code monitoring disabled by server kill switch via SSE."
|
|
442
443
|
close_sse
|
|
443
444
|
end
|
|
444
445
|
|
|
445
|
-
when "heartbeat"
|
|
446
|
-
# No action needed -- keeps connection alive
|
|
446
|
+
when "heartbeat", "sdk_count"
|
|
447
|
+
# No action needed -- heartbeat keeps connection alive, sdk_count is for dashboard UI
|
|
447
448
|
|
|
448
449
|
else
|
|
449
450
|
warn "TraceKit: Unknown SSE event type: #{event_type}" if ENV["DEBUG"]
|
data/lib/tracekit/version.rb
CHANGED