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 +4 -4
- data/lib/faraday/honeycomb/middleware.rb +3 -6
- data/lib/faraday/honeycomb/version.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: 6887c601f02715d2c33ca94055712fa9ab0d7b126794e46b996a939d8ca908b1
|
4
|
+
data.tar.gz: 7c45103c384d236df6881a50882bbaf6946597a14f1b54528f37d1c36397345d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
73
|
+
event.add_field 'trace.id', trace_id if trace_id
|
75
74
|
span_id = SecureRandom.uuid
|
76
|
-
event.add_field
|
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
|
78
|
+
event.add_field 'trace.parent_id', parent_span_id
|
82
79
|
yield
|
83
80
|
end
|
84
81
|
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.
|
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-
|
11
|
+
date: 2018-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: libhoney
|