faraday-honeycomb 0.1.0 → 0.2.0

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: 662f9769cef6145f94d9961867eb40d17fbd749caf1b9cb8b186395d0f3ed5f4
4
- data.tar.gz: 19f748000a214e7b31de663248c04844a5ef7aa8b57efe9c19e48cfc9e46b700
3
+ metadata.gz: 6887c601f02715d2c33ca94055712fa9ab0d7b126794e46b996a939d8ca908b1
4
+ data.tar.gz: 7c45103c384d236df6881a50882bbaf6946597a14f1b54528f37d1c36397345d
5
5
  SHA512:
6
- metadata.gz: 69ace7bea79e8d6674f8575f4aa2bde18abc4f2024b60f700d0e640ede15757204868764a72fc6bbc04d0c8a870cb70560b96266783b70f36ec998b6042d5e58
7
- data.tar.gz: dc918e1f24e8ed5e1a8a512e81c55e97320403e1288a8ba6e652e174c7871e326e3af141a819158959d4b9616c3e9143335a91f485ad4d3c9f0355843c52b07f
6
+ metadata.gz: 603231fa0c5da3ca0c6ba421cfe18a136c10b42290dc2e9887f7282f00f8a7592c7f76f5f527de38758f68d7f359749e7ca3366a3a02438d05dbb8216ad01789
7
+ data.tar.gz: 60e0a10b9135fc370f6dc3f98b0c3daad8bd5f06d8a343b306b4987b5211619b151ab4625d7ce723840eebc2618171db32e55f36c9bdbaa19320ba925d6c2232
@@ -69,16 +69,13 @@ module Faraday
69
69
  return yield unless defined?(::Honeycomb.trace_id)
70
70
 
71
71
  trace_id = ::Honeycomb.trace_id
72
- name = "#{env.method} #{env.url.path}"
73
72
 
74
- event.add_field :traceId, trace_id if trace_id
73
+ event.add_field 'trace.id', trace_id if trace_id
75
74
  span_id = SecureRandom.uuid
76
- event.add_field :id, span_id
77
- event.add_field :serviceName, 'faraday'
78
- event.add_field :name, name if name
75
+ event.add_field 'trace.span_id', span_id
79
76
 
80
77
  ::Honeycomb.with_span_id(span_id) do |parent_span_id|
81
- event.add_field :parentId, parent_span_id
78
+ event.add_field 'trace.parent_id', parent_span_id
82
79
  yield
83
80
  end
84
81
  end
@@ -1,7 +1,7 @@
1
1
  module Faraday
2
2
  module Honeycomb
3
3
  GEM_NAME = 'faraday-honeycomb'
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.0'
5
5
 
6
6
  MIN_FARADAY_VERSION = '0.8'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday-honeycomb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Stokes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-21 00:00:00.000000000 Z
11
+ date: 2018-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: libhoney