opentelemetry-instrumentation-sinatra 0.7.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/LICENSE +1 -1
- data/lib/opentelemetry-instrumentation-sinatra.rb +1 -1
- data/lib/opentelemetry/instrumentation.rb +1 -1
- data/lib/opentelemetry/instrumentation/sinatra.rb +1 -1
- data/lib/opentelemetry/instrumentation/sinatra/extensions/tracer_extension.rb +1 -1
- data/lib/opentelemetry/instrumentation/sinatra/instrumentation.rb +1 -1
- data/lib/opentelemetry/instrumentation/sinatra/middlewares/tracer_middleware.rb +3 -4
- data/lib/opentelemetry/instrumentation/sinatra/version.rb +2 -2
- metadata +9 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5db06d1b177df176d6ba677940e1547620a4be081e46f6535c97f94a7772aedc
|
4
|
+
data.tar.gz: 1bdb2741ee4d336ba6b617ddda2f71ffe4447ad2e1cf2b353717cfaed218b560
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 576b3f14c49a47d9c5399edbcba844e13bd187b83a04e10fd87590f66c0078379e99e0d1080f6d3bae91d4f9f9cc216c6b7f3443691692b01ae14d6d297e213d
|
7
|
+
data.tar.gz: c57367f9a94f1f0f3a2c0038d67ec7ddbc196eb6c04994b72a823e158a40dcf0c05d545f4517f84b3d9dfcfe6915e80c50017b24a9bdc072b2f4e99593db7f3d
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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
|
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
|
-
|
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
|
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.
|
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.
|
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-
|
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.
|
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.
|
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:
|