opentelemetry-instrumentation-base 0.21.1 → 0.22.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +50 -40
- data/lib/opentelemetry/instrumentation/base.rb +4 -3
- data/lib/opentelemetry/instrumentation/version.rb +1 -1
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe72c36bbbbd3a7e29d55ec4cb24b5b9a98b3e727cf1988c59b44916a3125b8c
|
4
|
+
data.tar.gz: 5b9b7014c4f5e7ffed20268594e4b41fc9a16192eb46f2bd270556dc700023c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 757b5f39197b3c40fc1be7a1fe9d61c764b848c8ce2c6b6ae26aa8da17eaa79a8b4e4f62aa9a501843932614684a7d05a5d828a76e11b157a46bce7b6448e9b5
|
7
|
+
data.tar.gz: 58139acb65095a3c16c65b0e4f44ce6123500daedeba440939b227d5fd74a4f79236691dc87471fe202d533d7a5b9e2be051ccf826cf0b32366ee527ae509046
|
data/CHANGELOG.md
CHANGED
@@ -1,41 +1,51 @@
|
|
1
|
-
# Release History: opentelemetry-instrumentation-base
|
2
|
-
|
3
|
-
### v0.
|
4
|
-
|
5
|
-
*
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
# Release History: opentelemetry-instrumentation-base
|
2
|
+
|
3
|
+
### v0.22.1 / 2023-06-02
|
4
|
+
|
5
|
+
* feat: make config available to compatible blocks #453
|
6
|
+
|
7
|
+
### v0.22.0 / 2023-04-16
|
8
|
+
|
9
|
+
* BREAKING CHANGE: Drop support for EoL Ruby 2.7
|
10
|
+
|
11
|
+
* ADDED: Drop support for EoL Ruby 2.7
|
12
|
+
|
13
|
+
### v0.21.1 / 2023-01-14
|
14
|
+
|
15
|
+
* DOCS: Fix gem homepage
|
16
|
+
* DOCS: More gem documentation fixes
|
17
|
+
|
18
|
+
### v0.21.0 / 2022-05-26
|
19
|
+
|
10
20
|
* BREAKING CHANGE: This requires upgrading both the SDK and Instrumentation gem in tandem
|
11
|
-
|
12
|
-
|
13
|
-
### v0.20.0 / 2022-05-02
|
14
|
-
|
15
|
-
* ADDED: Validate Using Enums
|
16
|
-
* FIXED: RubyGems Fallback
|
17
|
-
|
18
|
-
### v0.19.0 / 2021-12-01
|
19
|
-
|
20
|
-
* ADDED: Add default options config helper + env var config option support
|
21
|
-
|
22
|
-
### v0.18.3 / 2021-09-29
|
23
|
-
|
24
|
-
* (No significant changes)
|
25
|
-
|
26
|
-
### v0.18.2 / 2021-08-12
|
27
|
-
|
28
|
-
* (No significant changes)
|
29
|
-
|
30
|
-
### v0.18.1 / 2021-06-23
|
31
|
-
|
32
|
-
* (No significant changes)
|
33
|
-
|
34
|
-
### v0.18.0 / 2021-05-21
|
35
|
-
|
36
|
-
* ADDED: Updated API depedency for 1.0.0.rc1
|
37
|
-
* FIXED: Missing instrumentation classes during configuration
|
38
|
-
|
39
|
-
### v0.17.0 / 2021-04-22
|
40
|
-
|
41
|
-
* Initial release.
|
21
|
+
|
22
|
+
|
23
|
+
### v0.20.0 / 2022-05-02
|
24
|
+
|
25
|
+
* ADDED: Validate Using Enums
|
26
|
+
* FIXED: RubyGems Fallback
|
27
|
+
|
28
|
+
### v0.19.0 / 2021-12-01
|
29
|
+
|
30
|
+
* ADDED: Add default options config helper + env var config option support
|
31
|
+
|
32
|
+
### v0.18.3 / 2021-09-29
|
33
|
+
|
34
|
+
* (No significant changes)
|
35
|
+
|
36
|
+
### v0.18.2 / 2021-08-12
|
37
|
+
|
38
|
+
* (No significant changes)
|
39
|
+
|
40
|
+
### v0.18.1 / 2021-06-23
|
41
|
+
|
42
|
+
* (No significant changes)
|
43
|
+
|
44
|
+
### v0.18.0 / 2021-05-21
|
45
|
+
|
46
|
+
* ADDED: Updated API depedency for 1.0.0.rc1
|
47
|
+
* FIXED: Missing instrumentation classes during configuration
|
48
|
+
|
49
|
+
### v0.17.0 / 2021-04-22
|
50
|
+
|
51
|
+
* Initial release.
|
@@ -59,9 +59,9 @@ module OpenTelemetry
|
|
59
59
|
# convention for environment variable name is the library name, upcased with
|
60
60
|
# '::' replaced by underscores, OPENTELEMETRY shortened to OTEL_{LANG}, and '_ENABLED' appended.
|
61
61
|
# For example: OTEL_RUBY_INSTRUMENTATION_SINATRA_ENABLED = false.
|
62
|
-
class Base
|
62
|
+
class Base
|
63
63
|
class << self
|
64
|
-
NAME_REGEX = /^(?:(?<namespace>[a-zA-Z0-9_:]+):{2})?(?<classname>[a-zA-Z0-9_]+)
|
64
|
+
NAME_REGEX = /^(?:(?<namespace>[a-zA-Z0-9_:]+):{2})?(?<classname>[a-zA-Z0-9_]+)$/
|
65
65
|
VALIDATORS = {
|
66
66
|
array: ->(v) { v.is_a?(Array) },
|
67
67
|
boolean: ->(v) { v == true || v == false }, # rubocop:disable Style/MultipleComparison
|
@@ -215,9 +215,10 @@ module OpenTelemetry
|
|
215
215
|
# @param [Hash] config The config for this instrumentation
|
216
216
|
def install(config = {})
|
217
217
|
return true if installed?
|
218
|
-
return false unless installable?(config)
|
219
218
|
|
220
219
|
@config = config_options(config)
|
220
|
+
return false unless installable?(config)
|
221
|
+
|
221
222
|
instance_exec(@config, &@install_blk)
|
222
223
|
@tracer = OpenTelemetry.tracer_provider.tracer(name, version)
|
223
224
|
@installed = true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentelemetry-instrumentation-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.22.1
|
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-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -70,16 +70,16 @@ dependencies:
|
|
70
70
|
name: opentelemetry-test-helpers
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
75
|
+
version: '0.3'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
82
|
+
version: '0.3'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,28 +100,28 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
103
|
+
version: 1.52.0
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
110
|
+
version: 1.52.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: simplecov
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
117
|
+
version: 0.22.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
124
|
+
version: 0.22.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: yard
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -169,10 +169,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
|
169
169
|
licenses:
|
170
170
|
- Apache-2.0
|
171
171
|
metadata:
|
172
|
-
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-base/0.
|
172
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-base/0.22.1/file/CHANGELOG.md
|
173
173
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/base
|
174
174
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
175
|
-
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-base/0.
|
175
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-base/0.22.1
|
176
176
|
post_install_message:
|
177
177
|
rdoc_options: []
|
178
178
|
require_paths:
|
@@ -181,14 +181,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
181
181
|
requirements:
|
182
182
|
- - ">="
|
183
183
|
- !ruby/object:Gem::Version
|
184
|
-
version:
|
184
|
+
version: '3.0'
|
185
185
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
186
|
requirements:
|
187
187
|
- - ">="
|
188
188
|
- !ruby/object:Gem::Version
|
189
189
|
version: '0'
|
190
190
|
requirements: []
|
191
|
-
rubygems_version: 3.
|
191
|
+
rubygems_version: 3.2.33
|
192
192
|
signing_key:
|
193
193
|
specification_version: 4
|
194
194
|
summary: Instrumentation Base for the OpenTelemetry framework
|