httprb-opentracing 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +2 -2
- data/lib/http/tracer.rb +8 -3
- data/lib/http/tracer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50b18a2d9a0feda14fd4a6ae95e83990e8d0a8c5
|
4
|
+
data.tar.gz: ad8f234aabbdf45219673abb58a118e87a058b53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab6f34d863c17bba047b8bfc89559d6cf30101e47dd5d8cba50a7109db2c90462ac8be894f0be8f306113da58634979e8d0b9d5bfd7a1daaf042c5016d364b2f
|
7
|
+
data.tar.gz: afbe3a44cc99fd5d93887c95174af889a7939f4613893c0de47ff9e4068171d2f01b3566bbd3c2f0c791d27add2324505e0071fb29f13c5126b952b034a26a60
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/http/tracer.rb
CHANGED
@@ -48,13 +48,18 @@ module HTTP
|
|
48
48
|
if ::HTTP::Tracer.ignore_request.call(verb, uri, options)
|
49
49
|
res = request_original(verb, uri, options)
|
50
50
|
else
|
51
|
+
path, host, port = nil
|
52
|
+
path = parsed_uri.path if parsed_uri.respond_to?(:path)
|
53
|
+
host = parsed_uri.host if parsed_uri.respond_to?(:host)
|
54
|
+
port = parsed_uri.port if parsed_uri.respond_to?(:port)
|
55
|
+
|
51
56
|
tags = {
|
52
57
|
'component' => 'ruby-httprb',
|
53
58
|
'span.kind' => 'client',
|
54
59
|
'http.method' => verb,
|
55
|
-
'http.url' =>
|
56
|
-
'peer.host' =>
|
57
|
-
'peer.port' =>
|
60
|
+
'http.url' => path,
|
61
|
+
'peer.host' => host,
|
62
|
+
'peer.port' => port
|
58
63
|
}
|
59
64
|
|
60
65
|
tracer = ::HTTP::Tracer.tracer
|
data/lib/http/tracer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httprb-opentracing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Fischer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentracing
|