opentelemetry-instrumentation-sinatra 0.6.0 → 0.7.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdee82e8bd068a794364933acb18c4569d6f772648c36ff0082a0b3adbc4f007
|
4
|
+
data.tar.gz: 81545c7dba47f6a3fc6be47be8095e9f523c2acaa07b82040a794fc216dbcc94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5e8ab53f94d347c95b340e4089e2cc39488667266dfb721930548d823800057ced64ba93fda3526955ad264cb7db99d95a54959313b6b596646b6a9879191cd
|
7
|
+
data.tar.gz: 188cd6b93d7547091bd145f7d0505dc97ee8df7d8becab933f77c2ee56605d2385dcbf3f692f2c245985aaa07b56ec88e93fdc844ee1a49394d56deef95e1e66
|
data/.yardopts
ADDED
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -15,12 +15,14 @@ module OpenTelemetry
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def call(env)
|
18
|
+
span_name = env['sinatra.route'] || env['PATH_INFO']
|
19
|
+
|
18
20
|
tracer.in_span(
|
19
|
-
|
21
|
+
span_name,
|
20
22
|
attributes: { 'http.method' => env['REQUEST_METHOD'],
|
21
23
|
'http.url' => env['PATH_INFO'] },
|
22
24
|
kind: :server,
|
23
|
-
|
25
|
+
with_parent: parent_context(env)
|
24
26
|
) do |span|
|
25
27
|
app.call(env).tap { |resp| trace_response(span, env, resp) }
|
26
28
|
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.7.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-10-08 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.7.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.7.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
|
@@ -214,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
215
|
- !ruby/object:Gem::Version
|
215
216
|
version: '0'
|
216
217
|
requirements: []
|
217
|
-
rubygems_version: 3.1.
|
218
|
+
rubygems_version: 3.1.4
|
218
219
|
signing_key:
|
219
220
|
specification_version: 4
|
220
221
|
summary: Sinatra instrumentation for the OpenTelemetry framework
|