deployangel 0.1.5 → 0.1.6

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: 7d7f056df70ef5a14b11ff88312b8dd9e48330567b9f653cf57d6ddd9caf8050
4
- data.tar.gz: 7d8c30865b517b59e76cea6cc61d5c0d6853ea7766b41378b790f98983a23d37
3
+ metadata.gz: 95e80de544815ec904e01198f948c81c722ddadb005f6e87761827ac1cb3a362
4
+ data.tar.gz: 6175861126a88ed4bc09bdaf600c03e1ce5cd88fa3361c53d7c761ff7a066b38
5
5
  SHA512:
6
- metadata.gz: 4223fbd9e23df830ab6538e927550cbf79057856112427df383da9a77a9a1a0af2f22b5461a4934e1bd945bef60dc8160644632fba1cacd99be0183a29f40295
7
- data.tar.gz: 790766bea10aa1c12f8e6212fb9d0b10a127f4f7a809bee9434c2952f4ad725c491c20fc2767a606142ec4f9d8d748a50197b6a52861e417f7bb87e0df40a6fa
6
+ metadata.gz: 9d20de4305540d12d4b24223c7f4eda020b0855b8205cbeac03c51bf8befc701cb783a1e4600c3781b7d15b906a739aa63988bacc4864bc15a286e32c0138405
7
+ data.tar.gz: 38682cdc5941ad48af3ed324356d5bf71309bc5fe2c41fd0c582198ce0315c1863575f5896b13516b634cf6d56e69aee1124a3491c2fa4aae28c49f4b6a77a59
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.6 (2026-10-04)
4
+
5
+ - Requests to Rails' health check (`rails/health#show`, at `/up` by default)
6
+ are no longer recorded, wherever it's mounted. Load balancers and uptime
7
+ monitors call it all the time and it always answers fast, so it made apps
8
+ look busier and healthier than their real pages. DeployAngel already
9
+ leaves out `/up` from older agents.
10
+
3
11
  ## 0.1.5 (2026-10-03)
4
12
 
5
13
  - Declared recurring jobs from sidekiq-cron and sidekiq-scheduler, alongside
@@ -7,6 +7,10 @@ module DeployAngel
7
7
  # never the raw path, which keeps IDs out of route keys.
8
8
  class Http
9
9
  FORMAT_SUFFIX = "(.:format)"
10
+ # Rails' health check (/up by default). Load balancers and uptime
11
+ # monitors call it all the time and it always answers fast, so
12
+ # counting it would make any app look busy and healthy.
13
+ HEALTH_CHECK_CONTROLLER = "rails/health"
10
14
 
11
15
  def initialize(app)
12
16
  @app = app
@@ -31,6 +35,8 @@ module DeployAngel
31
35
 
32
36
  private
33
37
  def record(env, status, started, unhandled:, exception: nil)
38
+ return if env["action_dispatch.request.path_parameters"]&.dig(:controller) == HEALTH_CHECK_CONTROLLER
39
+
34
40
  route = route_key(env)
35
41
  # Unrouted successes are static files and similar; unrouted
36
42
  # errors (such as routing 404s) still count.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeployAngel
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.6"
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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Owens