opentelemetry-instrumentation-sinatra 0.7.0 → 0.7.1

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: cdee82e8bd068a794364933acb18c4569d6f772648c36ff0082a0b3adbc4f007
4
- data.tar.gz: 81545c7dba47f6a3fc6be47be8095e9f523c2acaa07b82040a794fc216dbcc94
3
+ metadata.gz: 3b6a81ca23845eaccd905ebc8a80cd74b155840fcaa9c23e64fefb4c077dcaca
4
+ data.tar.gz: 3aa4b7102a36fe76351ce8141d69d1738c567fbdd26de37f3c56dfef97258760
5
5
  SHA512:
6
- metadata.gz: f5e8ab53f94d347c95b340e4089e2cc39488667266dfb721930548d823800057ced64ba93fda3526955ad264cb7db99d95a54959313b6b596646b6a9879191cd
7
- data.tar.gz: 188cd6b93d7547091bd145f7d0505dc97ee8df7d8becab933f77c2ee56605d2385dcbf3f692f2c245985aaa07b56ec88e93fdc844ee1a49394d56deef95e1e66
6
+ metadata.gz: 2f3d401f47cdec488bf76a1c323e2ea548da48c414cf495a115664bdedaafe1639d8bf5fbf03e5c4944d3e621c0c0ee4e43e77ee7d3394b4f03093d5e721dd44
7
+ data.tar.gz: 704c8a1c5c2fa96b84a4f7b83faf4fc75618380ba14b4200b1df63f87efe997cbe5b7ce980acc37efa30f977067dee385791d8006c7e2a6518f73e46f41acab2
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-sinatra
2
2
 
3
+ ### v0.7.1 / 2020-10-08
4
+
5
+ * FIXED: Set span name to sinatra.route
6
+
3
7
  ### v0.7.0 / 2020-10-07
4
8
 
5
9
  * FIXED: Default to sinatra.route for span name
@@ -15,10 +15,8 @@ module OpenTelemetry
15
15
  end
16
16
 
17
17
  def call(env)
18
- span_name = env['sinatra.route'] || env['PATH_INFO']
19
-
20
18
  tracer.in_span(
21
- span_name,
19
+ env['PATH_INFO'],
22
20
  attributes: { 'http.method' => env['REQUEST_METHOD'],
23
21
  'http.url' => env['PATH_INFO'] },
24
22
  kind: :server,
@@ -46,6 +44,7 @@ module OpenTelemetry
46
44
  span.set_attribute('http.status_code', status)
47
45
  span.set_attribute('http.status_text', ::Rack::Utils::HTTP_STATUS_CODES[status])
48
46
  span.set_attribute('http.route', env['sinatra.route'].split.last) if env['sinatra.route']
47
+ span.name = env['sinatra.route'] if env['sinatra.route']
49
48
  span.status = OpenTelemetry::Trace::Status.http_to_status(status)
50
49
  end
51
50
  end
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Sinatra
10
- VERSION = '0.7.0'
10
+ VERSION = '0.7.1'
11
11
  end
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-instrumentation-sinatra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors