chef-handler-datadog 0.12.1 → 0.12.2

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: 26dd78bfdbd6e79d3544943a1bf0030c3d8636328da7dc666cb4963f4aee498b
4
- data.tar.gz: a78ec6092d2cb6b5d50e8271ae227b810e214f1430cc498d2cdb9e4aee317b48
3
+ metadata.gz: b3608d27f3427fa1f07ecd1748fa02cc245ff15bceaf0ee7125707763d881122
4
+ data.tar.gz: a1093543048a39d22ddea517d5791002d103c15cba4e375483131f8fa9cccea9
5
5
  SHA512:
6
- metadata.gz: ca5d68347a7e8f2bff5d7e973421558a72e910a86dbfcb88bd08d3888e00e6135982df39eb51927e312a444c7a9cdd4797c7f121625963b2a9c45ef0707880b1
7
- data.tar.gz: 688cc56577e5097111fc309a4e74e6814ae5cb1fca8ddedc1ea2fd49cefb01d6d14ee2ea205b6de254eee145e705eae2ff22fabed30b4faa534a2f89f589c19f
6
+ metadata.gz: 8878920f4498541aac73071a96249123012ed6fb6a0ff57d760da5287c653e0a81f08700052a2cc8a270f26c339429fc03251e850b8a653fb338016b60d46073
7
+ data.tar.gz: 3d6887a1e64193c7783bf078fe2b62ebd2b43855169466768a2e78109b55725a8535d2e912d287fefa7515d5ec1fa82e71489aad20740cd9c0a3bd050cee95d4
@@ -1,6 +1,10 @@
1
1
  Changes
2
2
  =======
3
3
 
4
+ # 0.12.2 / 2019-10-23
5
+
6
+ * [OPTIMIZE] Rescue all errors when sending/emitting from the handler. [#98][] [@borgstrom][]
7
+
4
8
  # 0.12.1 / 2019-09-30
5
9
 
6
10
  * [BUGFIX] Fix standard error rescue in metrics sender. [#109][] [@rmoriz][]
@@ -122,6 +126,7 @@ And all other versions were prior to this. See git history for more.
122
126
  [#93]: https://github.com/DataDog/chef-handler-datadog/issues/93
123
127
  [#96]: https://github.com/DataDog/chef-handler-datadog/issues/96
124
128
  [#97]: https://github.com/DataDog/chef-handler-datadog/issues/97
129
+ [#98]: https://github.com/DataDog/chef-handler-datadog/issues/98
125
130
  [#101]: https://github.com/DataDog/chef-handler-datadog/issues/101
126
131
  [#102]: https://github.com/DataDog/chef-handler-datadog/issues/102
127
132
  [#103]: https://github.com/DataDog/chef-handler-datadog/issues/103
@@ -133,6 +138,7 @@ And all other versions were prior to this. See git history for more.
133
138
  [@alq]: https://github.com/alq
134
139
  [@andrewjamesbrown]: https://github.com/andrewjamesbrown
135
140
  [@bigbam505]: https://github.com/bigbam505
141
+ [@borgstrom]: https://github.com/borgstrom
136
142
  [@datwiz]: https://github.com/datwiz
137
143
  [@david-ds]: https://github.com/david-ds
138
144
  [@degemer]: https://github.com/degemer
@@ -148,4 +154,4 @@ And all other versions were prior to this. See git history for more.
148
154
  [@remeh]: https://github.com/remeh
149
155
  [@remh]: https://github.com/remh
150
156
  [@rlaveycal]: https://github.com/rlaveycal
151
- [@rmoriz]: https://github.com/rmoriz
157
+ [@rmoriz]: https://github.com/rmoriz
@@ -21,3 +21,17 @@ If you'd like to run the test suite, fix a bug or add a feature, please follow t
21
21
  * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
22
22
  * Please try not to mess with the `Rakefile`, version, or history.
23
23
  If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
24
+
25
+
26
+ ## Building and using local snapshots
27
+
28
+ Sometimes you need to test chef-handler-datadog before a fix is merged. In this case you need to:
29
+
30
+ * Set the version in `lib/chef_handler_datadog.rb`
31
+ If the current version is `0.11.0` then you should bump to `0.11.1.pre`.
32
+ This way when the next version is released it will take precedence over your snapshot.
33
+ * Run `rake build`, this will create the .gem file in the `pkg/` dir
34
+ * Copy the .gem file to your own gem server
35
+ * When you include `datadog::dd-handler` in your Chef runlist set `node.override['datadog']['gem_server']` to your gem server URL and `node.override['datadog']['chef_handler_version']` to your `.pre` version.
36
+ * Chef will install your version of the gem
37
+ * Don't forget to unset `gem_server` and `chef_handler_version` once the handler has been released with your changes
@@ -78,9 +78,9 @@ class Chef
78
78
  @metrics.emit_to_datadog dog
79
79
  @event.emit_to_datadog dog
80
80
  @tags.send_update_to_datadog dog
81
- rescue Errno::ECONNREFUSED, Errno::ETIMEDOUT => e
82
- Chef::Log.error("Could not connect to Datadog. Connection error:\n" + e)
83
- Chef::Log.error('Data to be submitted was:')
81
+ rescue => e
82
+ Chef::Log.error("Could not send/emit to Datadog:\n" + e)
83
+ Chef::Log.error('Event data to be submitted was:')
84
84
  Chef::Log.error(@event.event_title)
85
85
  Chef::Log.error(@event.event_body)
86
86
  Chef::Log.error('Tags to be set for this run:')
@@ -134,7 +134,7 @@ class Chef
134
134
  app_key,
135
135
  nil, # host
136
136
  nil, # device
137
- true, # silent
137
+ false, # silent
138
138
  nil, # timeout
139
139
  url
140
140
  ))
@@ -2,5 +2,5 @@
2
2
  # Helper module for version number only.
3
3
  # Real deal in 'chef/handler/datadog.rb'
4
4
  module ChefHandlerDatadog
5
- VERSION = '0.12.1'
5
+ VERSION = '0.12.2'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-handler-datadog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Fiedler
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-09-30 00:00:00.000000000 Z
13
+ date: 2019-10-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: dogapi