opentelemetry-instrumentation-sinatra 0.21.2 → 0.21.3

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: b0a14b908ca1f401a9657cdbd3937ef98482b02f3a6e16da78a0f27212ccb2ba
4
- data.tar.gz: 2f5898171cb60ca80347694cb672247eab7c3424ca76c1301c8e37087e4d5dd9
3
+ metadata.gz: 822814bc143062681bae4c966a65bc9e2ca8662c6ba68a9d1d9a3ab18eb3686b
4
+ data.tar.gz: 6a93b2c9632764e5a1faf764c20028e72e86064c2acf0f1d116bc4000ed700df
5
5
  SHA512:
6
- metadata.gz: 60eb9e48b449d1150658a7b81eddbab2a001243d7247cdb3ec6a73ce49813262ba51af2c18d0870d962d0f6efdde4c3bb8e561504d84109c74719ff797a7da10
7
- data.tar.gz: 8f34294542b491cd2bdf8da3201dd1b177dbcdfbfe756f37cb8b00792d6640ed81a8f0c10c19c4b284d221dd52c4cf61dd1de1b994165e29fe564c8e0ecb24c2
6
+ metadata.gz: ad23ae956e284ebf96e1d328e4074e834df0fc4bd04fbe9540ac3ee7abdef3d2b414c4142cfda1338504e2595d2384ace4e2c750c706b840dd200cfee5ff8d3d
7
+ data.tar.gz: 2aa584a56bb111aa5d9a5a08744986e993dc945d43bedf01f4ca1884c7cd7146412e0805a24af3ae71f28f2c3781538ca6b8739738872a70ec11a638210d1b99
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-sinatra
2
2
 
3
+ ### v0.21.3 / 2023-01-27
4
+
5
+ * fix: Check if env['sinatra.error'] exists before recording it
6
+
3
7
  ### v0.21.2 / 2023-01-14
4
8
 
5
9
  * DOCS: Fix gem homepage
@@ -31,7 +31,7 @@ module OpenTelemetry
31
31
  sinatra_response = ::Sinatra::Response.new([], response.first)
32
32
  return unless sinatra_response.server_error?
33
33
 
34
- span.record_exception(env['sinatra.error'])
34
+ span.record_exception(env['sinatra.error']) if env['sinatra.error']
35
35
  span.status = OpenTelemetry::Trace::Status.error
36
36
  end
37
37
  end
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Sinatra
10
- VERSION = '0.21.2'
10
+ VERSION = '0.21.3'
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.21.2
4
+ version: 0.21.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-14 00:00:00.000000000 Z
11
+ date: 2023-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -256,10 +256,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
256
256
  licenses:
257
257
  - Apache-2.0
258
258
  metadata:
259
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-sinatra/0.21.2/file/CHANGELOG.md
259
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-sinatra/0.21.3/file/CHANGELOG.md
260
260
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/sinatra
261
261
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
262
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-sinatra/0.21.2
262
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-sinatra/0.21.3
263
263
  post_install_message:
264
264
  rdoc_options: []
265
265
  require_paths: