deployangel 0.1.2 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd9c6a1966ad36b07d9544c19cfc0b431afd75794ec53f8710792b078e6370ba
4
- data.tar.gz: 7048de09969cb804f374efbe9e3117402b9e7d048faceb45ad8390707d1e01ac
3
+ metadata.gz: 5169af9bd2d83ec8ec1446d4ddf641a8908428bc8d50be14fc124a76cfdca936
4
+ data.tar.gz: 466bff7d697f32e27362394130e2e1e0fc0f4e7c62a098740b3c38598443b0fe
5
5
  SHA512:
6
- metadata.gz: 0d11c1b1a206d317f433af474f908fabdc0aae002d36b5977577c5691c9756a0717b2377a4e09815b299ea9c9e096402f74742ca7bb204ae2f2be97bd277b581
7
- data.tar.gz: 3fa2290369ffdb891d9eb575e4ba90187b3576146a46310e31319352b4ae408b0aae7e1659e5bb45adaf400eea6ca6dab02c032f143d527daf0212a6c5505f17
6
+ metadata.gz: 5be25747e622d3556d6f2b6d04351f1d3402f910045ad36e15b1e181b393955acee510906c37abafde57f7cfdde4b41d4742bcf6bcf6e90c549914a033f1205d
7
+ data.tar.gz: ed4075d93e23c0a96b813bb385384de53cd05ca878e3e77140af6cae1eeb827e52c5fef5bb8fcfd40e162cac62ead212ea74a019c93bae629ad55fc1dbbd0365
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.3 (2026-10-02)
4
+
5
+ - Each process sends its minute of telemetry 1 to 50 seconds after the
6
+ minute ends, chosen once per process, instead of within the first 10
7
+ seconds. Apps' batches reach DeployAngel spread across the minute rather
8
+ than all at once.
9
+
3
10
  ## 0.1.2 (2026-10-02)
4
11
 
5
12
  - Unsent minutes wait in the buffer as gzipped JSON rather than Ruby objects.
@@ -9,6 +9,12 @@ module DeployAngel
9
9
  METADATA_PATH = "/api/v1/application_metadata"
10
10
  SHUTDOWN_TIMEOUT = 2
11
11
  DEFAULT_PAUSE = 60
12
+ # Seconds past each minute a process waits before sending, chosen once
13
+ # per process so the cloud gets a steady stream instead of a burst at
14
+ # the top of the minute. The cloud reads a minute 2 minutes after it
15
+ # ends, so a send that times out (5 seconds) and goes again a minute
16
+ # later still lands in time.
17
+ FLUSH_JITTER = 1.0..50.0
12
18
 
13
19
  attr_reader :config, :release, :instance
14
20
  attr_writer :metadata
@@ -173,8 +179,7 @@ module DeployAngel
173
179
  @paused_until = nil
174
180
  @metadata_sent = false
175
181
  @thread = nil
176
- # Spread processes across the first seconds of each minute.
177
- @jitter = rand(1.0..10.0)
182
+ @jitter = rand(FLUSH_JITTER)
178
183
  end
179
184
 
180
185
  def run_reporter
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeployAngel
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deployangel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Owens