rack-tracer 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/tracer.rb +3 -5
- data/rack-tracer.gemspec +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: 8edea4b96ac89df004d94ca52bb8a1ad6a79082f
|
4
|
+
data.tar.gz: 6773af6a72de1d3a4cfe55bcde5015e83eb7503a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d83b56ce246ff9f0ab17c017e6f435c4d5142387d500d597b07c4c5cd3230e31a270e95237fc2e21994bcc18d12e532d8e2b254a25ca4511e4f85a2392c8851
|
7
|
+
data.tar.gz: 17fafe6fb2ad9cd90b05fcbb18ab7d8a4d3931c058411a434833e3553bd99894d54accd6ba173637a4b742513310bfe3b585cd2026988e97ffec85312a96445e
|
data/lib/rack/tracer.rb
CHANGED
@@ -41,8 +41,7 @@ module Rack
|
|
41
41
|
'component' => 'rack',
|
42
42
|
'span.kind' => 'server',
|
43
43
|
'http.method' => method,
|
44
|
-
'http.url' => env[REQUEST_URI]
|
45
|
-
'http.uri' => env[REQUEST_URI] # For zipkin, not OT convention
|
44
|
+
'http.url' => env[REQUEST_URI]
|
46
45
|
}
|
47
46
|
)
|
48
47
|
span = scope.span
|
@@ -55,7 +54,7 @@ module Rack
|
|
55
54
|
span.set_tag('http.status_code', status_code)
|
56
55
|
|
57
56
|
route = route_from_env(env)
|
58
|
-
span.
|
57
|
+
span.operation_name = route if route
|
59
58
|
end
|
60
59
|
rescue *@errors => e
|
61
60
|
span.set_tag('error', true)
|
@@ -78,8 +77,7 @@ module Rack
|
|
78
77
|
private
|
79
78
|
|
80
79
|
def route_from_env(env)
|
81
|
-
|
82
|
-
route.split(' ').last if route
|
80
|
+
env['sinatra.route']
|
83
81
|
end
|
84
82
|
end
|
85
83
|
end
|
data/rack-tracer.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-tracer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SaleMove TechMovers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentracing
|