opentelemetry-instrumentation-sinatra 0.21.3 → 0.21.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85b1b440635f35ac1e5bc03c523595be638bb891410583e0a187b4383f2a6fd3
|
4
|
+
data.tar.gz: 271f907ceada618172ba071a1233c7ab6bea435088576c8a6a7851156eaadf49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a80a8025ec62917cc02e837195e8ce986986598a8ca3e32a1c53f9858a2ae5f18d5d958aa74b133592bd5ece74731673c37605b237c66c27146ea5116399f09
|
7
|
+
data.tar.gz: 3e3a1ee118b6befbe56f510e0c6b1befa2692c4aab7c16050a3de8e04a145f5855d5628042eb23b250b9a9a1d4a925b6f0933384a72fc7e0911bc2c716775092
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-sinatra
|
2
2
|
|
3
|
+
### v0.21.4 / 2023-02-08
|
4
|
+
|
5
|
+
* CHANGED: incorrect error type being recorded when Sinatra route raises exception [#317](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/317)
|
6
|
+
|
3
7
|
### v0.21.3 / 2023-01-27
|
4
8
|
|
5
9
|
* fix: Check if env['sinatra.error'] exists before recording it
|
@@ -16,23 +16,17 @@ module OpenTelemetry
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def call(env)
|
19
|
-
|
19
|
+
@app.call(env)
|
20
20
|
ensure
|
21
|
-
trace_response(env
|
21
|
+
trace_response(env)
|
22
22
|
end
|
23
23
|
|
24
|
-
def trace_response(env
|
24
|
+
def trace_response(env)
|
25
25
|
span = OpenTelemetry::Instrumentation::Rack.current_span
|
26
26
|
return unless span.recording?
|
27
27
|
|
28
28
|
span.set_attribute('http.route', env['sinatra.route'].split.last) if env['sinatra.route']
|
29
29
|
span.name = env['sinatra.route'] if env['sinatra.route']
|
30
|
-
|
31
|
-
sinatra_response = ::Sinatra::Response.new([], response.first)
|
32
|
-
return unless sinatra_response.server_error?
|
33
|
-
|
34
|
-
span.record_exception(env['sinatra.error']) if env['sinatra.error']
|
35
|
-
span.status = OpenTelemetry::Trace::Status.error
|
36
30
|
end
|
37
31
|
end
|
38
32
|
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.
|
4
|
+
version: 0.21.4
|
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-
|
11
|
+
date: 2023-02-08 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.
|
259
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-sinatra/0.21.4/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.
|
262
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-sinatra/0.21.4
|
263
263
|
post_install_message:
|
264
264
|
rdoc_options: []
|
265
265
|
require_paths:
|