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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14e847fe82d881c1a45f7980c3f2b5e7e440f9a8
4
- data.tar.gz: 1b12ffdbef6149a5f0ccb469367c0682e28d9a53
3
+ metadata.gz: 8edea4b96ac89df004d94ca52bb8a1ad6a79082f
4
+ data.tar.gz: 6773af6a72de1d3a4cfe55bcde5015e83eb7503a
5
5
  SHA512:
6
- metadata.gz: 3b5a2f9c86e512e712f5ee07b130b1ec5b4a1f6dc0de05886dc201ff392c35f92b54c70e1413072ed2c7a8225b58c5d8293062dcaed4909e4b57da82ffecd8fe
7
- data.tar.gz: 0c0c5e0084d26ed366d9d31c7803ba82cb4c2a41ee0b0902a2887dfd2af22afe8c2c026ae6cecf79075d4e2f1ee9101f0bfabfac35992d7ae1ca557dbf402c7b
6
+ metadata.gz: 4d83b56ce246ff9f0ab17c017e6f435c4d5142387d500d597b07c4c5cd3230e31a270e95237fc2e21994bcc18d12e532d8e2b254a25ca4511e4f85a2392c8851
7
+ data.tar.gz: 17fafe6fb2ad9cd90b05fcbb18ab7d8a4d3931c058411a434833e3553bd99894d54accd6ba173637a4b742513310bfe3b585cd2026988e97ffec85312a96445e
@@ -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.set_tag('route', route) if route
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
- route = env['sinatra.route']
82
- route.split(' ').last if route
80
+ env['sinatra.route']
83
81
  end
84
82
  end
85
83
  end
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = 'rack-tracer'
6
- spec.version = '0.7.0'
6
+ spec.version = '0.8.0'
7
7
  spec.authors = ['SaleMove TechMovers']
8
8
  spec.email = ['techmovers@salemove.com']
9
9
 
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.7.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-07 00:00:00.000000000 Z
11
+ date: 2018-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentracing