opentelemetry-instrumentation-base 0.21.0 → 0.21.1

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: 99e6450e5fe0a34262181644384ac289093fb11dc924dcdb44be21e46715cddb
4
- data.tar.gz: 91dcb93efdcabe5db3619fe0fb962f0512373759aafb34bcabee9ea31f1092c1
3
+ metadata.gz: 68289a48e73f4b932c2bfec1ec6c41bd2762dd6c7a8801bd58f1f84307857335
4
+ data.tar.gz: f7897e296091d94828653e0696ab5321e3ee63f355e082228a0d608b34ab5494
5
5
  SHA512:
6
- metadata.gz: e4da44cb456ec692d62577aee339c9bcf3b1cd57aa49d5e6a8e96b0a6ab2da1f8b3b367a10f8593751b1caa4c163c257d9760b8842d94bc66839816828456c2c
7
- data.tar.gz: 54de81f111d50c53305054975bd43e6dbb8bebe3386eed876dc7a36ed4f42ef5416c5668f25962b1427a911fbdcde7ea1c87892f5fcc9fdb9407f83c4e392a65
6
+ metadata.gz: 2f49d6aa1665d9452a390d160df35b3d004e221621284aac29662d9b8c8d01c22a96fed65ccc4d15fd2d6a344afa68729c345a31ce98f0fcc7459f77157624a3
7
+ data.tar.gz: a18559b8b4ae2fb1d9ef12d132f2268089139594ac6c6f9e2326174b3930812307347e5961a051d4e7a6470ee54043847344850e9e12c3d1d4a0c6ef501a7cef
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release History: opentelemetry-instrumentation-base
2
2
 
3
+ ### v0.21.1 / 2023-01-14
4
+
5
+ * DOCS: Fix gem homepage
6
+ * DOCS: More gem documentation fixes
7
+
3
8
  ### v0.21.0 / 2022-05-26
4
9
 
5
10
  * BREAKING CHANGE: This requires upgrading both the SDK and Instrumentation gem in tandem
data/README.md CHANGED
@@ -148,7 +148,7 @@ The `opentelemetry-instrumentation-base` gem is distributed under the Apache 2.0
148
148
 
149
149
  [bundler-home]: https://bundler.io
150
150
  [repo-github]: https://github.com/open-telemetry/opentelemetry-ruby
151
- [license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/main/LICENSE
151
+ [license-github]: https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/LICENSE
152
152
  [ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
153
153
  [community-meetings]: https://github.com/open-telemetry/community#community-meetings
154
154
  [discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
@@ -72,9 +72,9 @@ module OpenTelemetry
72
72
 
73
73
  private_constant :NAME_REGEX, :VALIDATORS
74
74
 
75
- private :new # rubocop:disable Style/AccessModifierDeclarations
75
+ private :new
76
76
 
77
- def inherited(subclass)
77
+ def inherited(subclass) # rubocop:disable Lint/MissingSuper
78
78
  OpenTelemetry::Instrumentation.registry.register(subclass)
79
79
  end
80
80
 
@@ -193,6 +193,7 @@ module OpenTelemetry
193
193
 
194
194
  alias installed? installed
195
195
 
196
+ # rubocop:disable Metrics/ParameterLists
196
197
  def initialize(name, version, install_blk, present_blk,
197
198
  compatible_blk, options)
198
199
  @name = name
@@ -205,6 +206,7 @@ module OpenTelemetry
205
206
  @options = options
206
207
  @tracer = OpenTelemetry::Trace::Tracer.new
207
208
  end
209
+ # rubocop:enable Metrics/ParameterLists
208
210
 
209
211
  # Install instrumentation with the given config. The present? and compatible?
210
212
  # will be run first, and install will return false if either fail. Will
@@ -266,7 +268,7 @@ module OpenTelemetry
266
268
  # Invalid configuration values are logged, and replaced by the default.
267
269
  #
268
270
  # @param [Hash] user_config The user supplied configuration hash
269
- def config_options(user_config) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
271
+ def config_options(user_config) # rubocop:disable Metrics/MethodLength, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
270
272
  @options ||= {}
271
273
  user_config ||= {}
272
274
  config_overrides = config_overrides_from_env
@@ -275,6 +277,7 @@ module OpenTelemetry
275
277
  config_value = user_config[option_name]
276
278
  config_override = coerce_env_var(config_overrides[option_name], option[:validation_type]) if config_overrides[option_name]
277
279
 
280
+ # rubocop:disable Lint/DuplicateBranch
278
281
  value = if config_value.nil? && config_override.nil?
279
282
  option[:default]
280
283
  elsif option[:validator].respond_to?(:include?) && option[:validator].include?(config_override)
@@ -292,6 +295,7 @@ module OpenTelemetry
292
295
  )
293
296
  option[:default]
294
297
  end
298
+ # rubocop:enable Lint/DuplicateBranch
295
299
 
296
300
  h[option_name] = value
297
301
  rescue StandardError => e
@@ -6,6 +6,6 @@
6
6
 
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
- VERSION = '0.21.0'
9
+ VERSION = '0.21.1'
10
10
  end
11
11
  end
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.21.0
4
+ version: 0.21.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: 2022-05-26 00:00:00.000000000 Z
11
+ date: 2023-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.17'
47
+ version: '2.4'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.17'
54
+ version: '2.4'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -86,28 +86,28 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 12.3.3
89
+ version: '13.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 12.3.3
96
+ version: '13.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.73.0
103
+ version: 1.41.1
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: 0.73.0
110
+ version: 1.41.1
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -165,14 +165,14 @@ files:
165
165
  - lib/opentelemetry/instrumentation.rb
166
166
  - lib/opentelemetry/instrumentation/base.rb
167
167
  - lib/opentelemetry/instrumentation/version.rb
168
- homepage: https://github.com/open-telemetry/opentelemetry-ruby
168
+ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
169
169
  licenses:
170
170
  - Apache-2.0
171
171
  metadata:
172
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-base/v0.21.0/file.CHANGELOG.html
173
- source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/base
174
- bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
175
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-base/v0.21.0
172
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-base/0.21.1/file/CHANGELOG.md
173
+ source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/base
174
+ bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
175
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-base/0.21.1
176
176
  post_install_message:
177
177
  rdoc_options: []
178
178
  require_paths: