rails-healthcheck 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -2
  3. data/lib/healthcheck/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce27596dd48e930452ec7144f4ea22ead777cb823da6eaa94878f133bebf5e23
4
- data.tar.gz: 481e699b6e66c2b4f8fd7b74b4cbe0a415090cd9280e77dd71c72a00801906a0
3
+ metadata.gz: 22fb393936d02fef7c715773678079e8bd55dda200a2691b09c6ef1e5bd8d16e
4
+ data.tar.gz: 4922a32a61ab5099aeedd14087a5b76567a34b41acec65a79b7dd7cde093ecb9
5
5
  SHA512:
6
- metadata.gz: d07453b2057255eb46516ba4b7111b98f5d9048a69c22b1e9caa9bdf61a3b5589461dc25e2f22cc7ff9016cb61a6c62cd704f6548fa7a289982cc14d11a7d182
7
- data.tar.gz: 374e196839af8ae138834861d15e8919cda48e0a99b4c9b13113242536018ffbee454d1f42764a46d466fb19a1cf9a691f83ebacb6c34d0117b31a78905eea16
6
+ metadata.gz: 3f0967885d9c1f473ba3c0aedc951430f766f76da7e74da2cdb5301801f62fd52c631a1bb2d4cac6d009a41d2c1fe15a5cc22c582b1edeb5c4543b9c83d7c445
7
+ data.tar.gz: 513bb01b1d0c3dc472fd96d935eeb70bd26ffec2295a001ed2737228a04d0c0b9c7753eb3737d9eba18b5352cee737dee273dc7b0e7bf309abd0244538d4190f
data/README.md CHANGED
@@ -14,6 +14,7 @@ A simple way to configure a healthcheck route in Rails applications
14
14
  - [Verbose Errors](#verbose-errors)
15
15
  - [Ignoring logs](#ignoring-logs)
16
16
  - [Lograge](#lograge)
17
+ - [Datadog](#lograge)
17
18
  - [Requests Examples](#requests-examples)
18
19
  - [Contributing](#contributing)
19
20
  - [License](#license)
@@ -80,9 +81,9 @@ When happen an error and verbose is enabled (`config.verbose = true`), the respo
80
81
 
81
82
  ## Ignoring logs
82
83
 
83
- ### Lograge
84
+ If you want to ignore Healthcheck request logs, you can use these options:
84
85
 
85
- If you are using [Lograge](https://github.com/roidrage/lograge) you can ignore Healthcheck logs using this code:
86
+ ### [Lograge](https://github.com/roidrage/lograge)
86
87
 
87
88
  ```ruby
88
89
  # config/environments/production.rb
@@ -93,6 +94,18 @@ Rails.application.configure do
93
94
  end
94
95
  ```
95
96
 
97
+ ### [Datadog](https://github.com/roidrage/lograge)
98
+
99
+ ```ruby
100
+ # config/environments/production.rb
101
+
102
+ filter = Datadog::Pipeline::SpanFilter.new do |span|
103
+ span.name == 'rack.request' && span.get_tag('http.url') == Healthcheck.configuration.route
104
+ end
105
+
106
+ Datadog::Pipeline.before_flush(filter)
107
+ ```
108
+
96
109
  ### Requests Examples
97
110
 
98
111
  - Success
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Healthcheck
4
- VERSION = '1.1.4'
4
+ VERSION = '1.1.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-healthcheck
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - linqueta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-15 00:00:00.000000000 Z
11
+ date: 2020-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails