inspec-reporter-honeycomb 0.1.6 → 0.1.7

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: 4c2f109b62e34e566f2876df594be1c94ba8092c336dc7fedd03f16c562b3da8
4
- data.tar.gz: addc8b0b975c5178d14678213c94ed1c3dbef74866ece256c8ac9971f00394c3
3
+ metadata.gz: 2a686431fc59cd42b90fe946768507bb63a27eaa26419933cb252393c2237f35
4
+ data.tar.gz: fc54bf1e32961570c16d1cf5c16deee73722819ae6a5cce864069f5871ff57a6
5
5
  SHA512:
6
- metadata.gz: bdf66219ba779b8c39629edd0c0c75e8ea766eda6a0194d14715b1887c77641efc68f33e7625f7a3738a2e3dd61762e371e0fe2ae9e08e26819d6c7bbaaccb8b
7
- data.tar.gz: 1e467ab210fd5e219ccf595766e1dffea6dfe91d5731419be4b5dd09730994bbe7201c4403dba5509bc926c00bf6b8653cf94cec3c51ec9e5db6325edce65ca9
6
+ metadata.gz: 9f24f1c87098e61af97d859a3ed1b0a6b6c93ab37899a1cb5b87dae98404546934baf9c57640b6a4866d7e7f297348ec121ce1a9a489c498f7652010253d032d
7
+ data.tar.gz: 8dc64453785afa13e951d0b85de5d75273a0648a012b1de928e0a40140c370042ce25e102b38ed7512daa9e53134da4f4726618a4fcfe834f7c0b0dd748ce788
@@ -131,6 +131,9 @@ module InspecPlugins::HoneycombReporter
131
131
  headers = { "Content-Type" => "application/json" }
132
132
  headers["X-Honeycomb-Team"] = ENV['HONEYCOMB_API_KEY']
133
133
 
134
+ # Hardcoded as I don't have a variable to reference right now
135
+ headers["User-Agent"] = "inspec-reporter-honeycomb/0.1.7"
136
+
134
137
  uri = URI(ENV['HONEYCOMB_API_URL'])
135
138
  req = Net::HTTP::Post.new(uri.path, headers)
136
139
  req.body = trace_batch.to_json
@@ -183,6 +186,10 @@ module InspecPlugins::HoneycombReporter
183
186
  def generate_span_data(**args)
184
187
 
185
188
  time_in_ms = args[:duration] ? args[:duration] * 1000 : 0
189
+ ip_addresses = []
190
+ Socket.ip_address_list.each do |ipaddr|
191
+ ip_addresses << ipaddr.ip_address unless ipaddr.ip_address == '127.0.0.1'
192
+ end
186
193
  span_data = {
187
194
  'trace.trace_id' => args[:trace_id],
188
195
  'trace.span_id' => args[:span_id],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inspec-reporter-honeycomb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Dufour
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-09-01 00:00:00.000000000 Z
12
+ date: 2022-11-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: inspec