opentelemetry-instrumentation-sinatra 0.7.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cdee82e8bd068a794364933acb18c4569d6f772648c36ff0082a0b3adbc4f007
4
- data.tar.gz: 81545c7dba47f6a3fc6be47be8095e9f523c2acaa07b82040a794fc216dbcc94
3
+ metadata.gz: 5db06d1b177df176d6ba677940e1547620a4be081e46f6535c97f94a7772aedc
4
+ data.tar.gz: 1bdb2741ee4d336ba6b617ddda2f71ffe4447ad2e1cf2b353717cfaed218b560
5
5
  SHA512:
6
- metadata.gz: f5e8ab53f94d347c95b340e4089e2cc39488667266dfb721930548d823800057ced64ba93fda3526955ad264cb7db99d95a54959313b6b596646b6a9879191cd
7
- data.tar.gz: 188cd6b93d7547091bd145f7d0505dc97ee8df7d8becab933f77c2ee56605d2385dcbf3f692f2c245985aaa07b56ec88e93fdc844ee1a49394d56deef95e1e66
6
+ metadata.gz: 576b3f14c49a47d9c5399edbcba844e13bd187b83a04e10fd87590f66c0078379e99e0d1080f6d3bae91d4f9f9cc216c6b7f3443691692b01ae14d6d297e213d
7
+ data.tar.gz: c57367f9a94f1f0f3a2c0038d67ec7ddbc196eb6c04994b72a823e158a40dcf0c05d545f4517f84b3d9dfcfe6915e80c50017b24a9bdc072b2f4e99593db7f3d
@@ -1,5 +1,29 @@
1
1
  # Release History: opentelemetry-instrumentation-sinatra
2
2
 
3
+ ### v0.11.0 / 2020-12-11
4
+
5
+ * FIXED: Copyright comments to not reference year
6
+
7
+ ### v0.10.0 / 2020-12-03
8
+
9
+ * (No significant changes)
10
+
11
+ ### v0.9.0 / 2020-11-27
12
+
13
+ * BREAKING CHANGE: Add timeout for force_flush and shutdown
14
+
15
+ * ADDED: Add timeout for force_flush and shutdown
16
+
17
+ ### v0.8.0 / 2020-10-27
18
+
19
+ * BREAKING CHANGE: Remove 'canonical' from status codes
20
+
21
+ * FIXED: Remove 'canonical' from status codes
22
+
23
+ ### v0.7.1 / 2020-10-08
24
+
25
+ * FIXED: Set span name to sinatra.route
26
+
3
27
  ### v0.7.0 / 2020-10-07
4
28
 
5
29
  * FIXED: Default to sinatra.route for span name
data/LICENSE CHANGED
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2020 OpenTelemetry Authors
189
+ Copyright The OpenTelemetry Authors
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 OpenTelemetry Authors
3
+ # Copyright The OpenTelemetry Authors
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 OpenTelemetry Authors
3
+ # Copyright The OpenTelemetry Authors
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 OpenTelemetry Authors
3
+ # Copyright The OpenTelemetry Authors
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019 OpenTelemetry Authors
3
+ # Copyright The OpenTelemetry Authors
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 OpenTelemetry Authors
3
+ # Copyright The OpenTelemetry Authors
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019 OpenTelemetry Authors
3
+ # Copyright The OpenTelemetry Authors
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
@@ -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
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2019 OpenTelemetry Authors
3
+ # Copyright The OpenTelemetry Authors
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Sinatra
10
- VERSION = '0.7.0'
10
+ VERSION = '0.11.0'
11
11
  end
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-08 00:00:00.000000000 Z
11
+ date: 2020-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.0
19
+ version: 0.11.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.7.0
26
+ version: 0.11.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: appraisal
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -199,7 +199,11 @@ files:
199
199
  homepage: https://github.com/open-telemetry/opentelemetry-ruby
200
200
  licenses:
201
201
  - Apache-2.0
202
- metadata: {}
202
+ metadata:
203
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-sinatra/v0.11.0/file.CHANGELOG.html
204
+ source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/master/instrumentation/sinatra
205
+ bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
206
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-sinatra/v0.11.0
203
207
  post_install_message:
204
208
  rdoc_options: []
205
209
  require_paths: