opentelemetry-instrumentation-sinatra 0.6.0 → 0.10.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
  SHA256:
3
- metadata.gz: a68eab996378005f85f10e592666ad33126db4ec57cba44b06d3910e22ea74e0
4
- data.tar.gz: 428b057ae473af8d09f91140d1c4e0ac76969897d0ec5ff3ae1dfcffc0852ee3
3
+ metadata.gz: aea4f3bdd8ec0042ca5b57a42122c12794fdca499860d671addcfb12d768ad33
4
+ data.tar.gz: f8b5d81c50b1249eed44323ed1292f21df71486882a6320179f649aff22cedde
5
5
  SHA512:
6
- metadata.gz: 59de658729f17446c4047b43ea446956b485eeaf421a5f867da354e41ea8511a2f2d8b90104266199172db45a7e0217ee5fd698fa3c05ee44f5f78842bb11436
7
- data.tar.gz: 26fb938c3ed4f8bea9e8d77d46c3f04de29ab3b7150d58e02c9c6958260cb3f666ba20d1afe392c00b5b2c02e1d3432e9304e4feda75079bdbf6278161fbad19
6
+ metadata.gz: a00b35fa63b04dce7a76502a9642531a6b2545e6e4ffd3ebffeaaf16f813c6916d1aaf6311b021692f050f01c34cce425ffd24b0a98df69e2d8b0360347de0db
7
+ data.tar.gz: 71bc05d8787f23d421de892136706d433ad14c48dca102bfa4f7bb4a5d76fd1596fd5cfcafb00614c846b8fb917d48204641bcb29d93d487f8424ec3c53a08b6
@@ -0,0 +1,9 @@
1
+ --no-private
2
+ --title=OpenTelemetry Sinatra Instrumentation
3
+ --markup=markdown
4
+ --main=README.md
5
+ ./lib/opentelemetry/instrumentation/**/*.rb
6
+ ./lib/opentelemetry/instrumentation.rb
7
+ -
8
+ README.md
9
+ CHANGELOG.md
@@ -1,5 +1,30 @@
1
1
  # Release History: opentelemetry-instrumentation-sinatra
2
2
 
3
+ ### v0.10.0 / 2020-12-03
4
+
5
+ * (No significant changes)
6
+
7
+ ### v0.9.0 / 2020-11-27
8
+
9
+ * BREAKING CHANGE: Add timeout for force_flush and shutdown
10
+
11
+ * ADDED: Add timeout for force_flush and shutdown
12
+
13
+ ### v0.8.0 / 2020-10-27
14
+
15
+ * BREAKING CHANGE: Remove 'canonical' from status codes
16
+
17
+ * FIXED: Remove 'canonical' from status codes
18
+
19
+ ### v0.7.1 / 2020-10-08
20
+
21
+ * FIXED: Set span name to sinatra.route
22
+
23
+ ### v0.7.0 / 2020-10-07
24
+
25
+ * FIXED: Default to sinatra.route for span name
26
+ * DOCS: Standardize toplevel docs structure and readme
27
+
3
28
  ### v0.6.0 / 2020-09-10
4
29
 
5
30
  * (No significant changes)
@@ -4,6 +4,12 @@
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
7
+ # OpenTelemetry is an open source observability framework, providing a
8
+ # general-purpose API, SDK, and related tools required for the instrumentation
9
+ # of cloud-native software, frameworks, and libraries.
10
+ #
11
+ # The OpenTelemetry module provides global accessors for telemetry objects.
12
+ # See the documentation for the `opentelemetry-api` gem for details.
7
13
  module OpenTelemetry
8
14
  # "Instrumentation" are specified by
9
15
  # https://github.com/open-telemetry/opentelemetry-specification/blob/784635d01d8690c8f5fcd1f55bdbc8a13cf2f4f2/specification/glossary.md#instrumentation-library
@@ -20,7 +20,7 @@ module OpenTelemetry
20
20
  attributes: { 'http.method' => env['REQUEST_METHOD'],
21
21
  'http.url' => env['PATH_INFO'] },
22
22
  kind: :server,
23
- with_parent_context: parent_context(env)
23
+ with_parent: parent_context(env)
24
24
  ) do |span|
25
25
  app.call(env).tap { |resp| trace_response(span, env, resp) }
26
26
  end
@@ -44,6 +44,7 @@ module OpenTelemetry
44
44
  span.set_attribute('http.status_code', status)
45
45
  span.set_attribute('http.status_text', ::Rack::Utils::HTTP_STATUS_CODES[status])
46
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']
47
48
  span.status = OpenTelemetry::Trace::Status.http_to_status(status)
48
49
  end
49
50
  end
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Sinatra
10
- VERSION = '0.6.0'
10
+ VERSION = '0.10.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.6.0
4
+ version: 0.10.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-09-11 00:00:00.000000000 Z
11
+ date: 2020-12-03 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.6.0
19
+ version: 0.10.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.6.0
26
+ version: 0.10.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: appraisal
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -185,6 +185,7 @@ executables: []
185
185
  extensions: []
186
186
  extra_rdoc_files: []
187
187
  files:
188
+ - ".yardopts"
188
189
  - CHANGELOG.md
189
190
  - LICENSE
190
191
  - README.md
@@ -198,7 +199,11 @@ files:
198
199
  homepage: https://github.com/open-telemetry/opentelemetry-ruby
199
200
  licenses:
200
201
  - Apache-2.0
201
- metadata: {}
202
+ metadata:
203
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-sinatra/v0.10.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.10.0
202
207
  post_install_message:
203
208
  rdoc_options: []
204
209
  require_paths:
@@ -214,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
219
  - !ruby/object:Gem::Version
215
220
  version: '0'
216
221
  requirements: []
217
- rubygems_version: 3.1.2
222
+ rubygems_version: 3.1.4
218
223
  signing_key:
219
224
  specification_version: 4
220
225
  summary: Sinatra instrumentation for the OpenTelemetry framework