chef-handler-datadog 0.12.1 → 0.12.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/CHANGELOG.md +7 -1
- data/CONTRIBUTING.md +14 -0
- data/lib/chef/handler/datadog.rb +4 -4
- data/lib/chef_handler_datadog.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b3608d27f3427fa1f07ecd1748fa02cc245ff15bceaf0ee7125707763d881122
|
|
4
|
+
data.tar.gz: a1093543048a39d22ddea517d5791002d103c15cba4e375483131f8fa9cccea9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8878920f4498541aac73071a96249123012ed6fb6a0ff57d760da5287c653e0a81f08700052a2cc8a270f26c339429fc03251e850b8a653fb338016b60d46073
|
|
7
|
+
data.tar.gz: 3d6887a1e64193c7783bf078fe2b62ebd2b43855169466768a2e78109b55725a8535d2e912d287fefa7515d5ec1fa82e71489aad20740cd9c0a3bd050cee95d4
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
data/CONTRIBUTING.md
CHANGED
|
@@ -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
|
data/lib/chef/handler/datadog.rb
CHANGED
|
@@ -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
|
|
82
|
-
Chef::Log.error("Could not
|
|
83
|
-
Chef::Log.error('
|
|
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
|
-
|
|
137
|
+
false, # silent
|
|
138
138
|
nil, # timeout
|
|
139
139
|
url
|
|
140
140
|
))
|
data/lib/chef_handler_datadog.rb
CHANGED
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.
|
|
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-
|
|
13
|
+
date: 2019-10-23 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: dogapi
|