opentelemetry-instrumentation-base 0.22.2 → 0.22.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: a80537963b43bf6ed4bb2a60a7ad6d11f13ebb2868d8c2a486f6c0c6fbdbc880
4
- data.tar.gz: 821f40a647e4499fcb47d70fdfc2eb0f4924a9173a11e59150a702a171f68574
3
+ metadata.gz: 4f6e531e85a3fa060f3b88fdf1c23f7b0d9099ab800e7a1d81dd4fcfc446a3ab
4
+ data.tar.gz: 3a21d329371b1aedba7a14a38d3f5cfe2e1ba5617ff22c91ebce635b9f7f1c7b
5
5
  SHA512:
6
- metadata.gz: 73f424b8d211cb2d2518d4a96c3bebbf1fe775bbccf17d8e1e383bfd87fb7e0f9c09a08905433dab002a1c6837e6216de69c66dbfbd5d22216163e340013ee8d
7
- data.tar.gz: 167b3c4dc090350001b870837ee913cc7e950121ef7ca5fe11111d3bb7a627559d36920402e584a64982a733a77f558102a5ea19751e993101e5c2326c3d89f6
6
+ metadata.gz: a72ce4aa13c65c1eae23396a1959db319ccc324abddc855803a78d62e477d09fa11a4769526f1dd47af5b1cc70c463d9f25d4e964c036cbe3de3d85b43397ae9
7
+ data.tar.gz: 3681b7a09c821127ef7fbf610699c9e330cd8f1547dcbc56fa36c0cbf938af6a99f465ea2bdb1145116ac69c4a217a506a9b1e1e181c5ac5ff1d453b33e3b841
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release History: opentelemetry-instrumentation-base
2
2
 
3
+ ### v0.22.4 / 2024-06-18
4
+
5
+ * FIXED: Relax otel common gem constraints
6
+ * DOCS: Add function doc for config_overrides_from_env
7
+
8
+ ### v0.22.3 / 2023-11-23
9
+
10
+ * CHANGED: Applied Rubocop Performance Recommendations [#727](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/727)
11
+
12
+ ### v0.22.2 / 2023-08-03
13
+
14
+ * FIXED: Remove inline linter rules
15
+
3
16
  ### v0.22.1 / 2023-06-02
4
17
 
5
18
  * feat: make config available to compatible blocks #453
@@ -49,7 +62,3 @@
49
62
  ### v0.17.0 / 2021-04-22
50
63
 
51
64
  * Initial release.
52
-
53
- ### v0.22.2 / 2023-08-03
54
-
55
- * FIXED: Remove inline linter rules
@@ -326,6 +326,18 @@ module OpenTelemetry
326
326
  ENV[var_name] != 'false'
327
327
  end
328
328
 
329
+ # Checks to see if the user has passed any environment variables that set options
330
+ # for instrumentation. By convention, the environment variable will be the name
331
+ # of the instrumentation, uppercased, with '::' replaced by underscores,
332
+ # OPENTELEMETRY shortened to OTEL_{LANG}, and _CONFIG_OPTS appended.
333
+ # For example, the environment variable name for OpenTelemetry::Instrumentation::Faraday
334
+ # will be OTEL_RUBY_INSTRUMENTATION_FARADAY_CONFIG_OPTS. A value of 'peer_service=new_service;'
335
+ # will override the options set from ::OpenTelemetry::SDK.configure do |c| ... end for Faraday.
336
+ #
337
+ # For an array option, simply separate the values with commas (e.g., option=a,b,c,d).
338
+ # For a boolean option, set the value to true or false (e.g., option=true).
339
+ # For integer, string, enum, set the value as a string (e.g., option=string).
340
+ # Callable options are not allowed to be set through environment variables.
329
341
  def config_overrides_from_env
330
342
  var_name = name.dup.tap do |n|
331
343
  n.upcase!
@@ -353,7 +365,7 @@ module OpenTelemetry
353
365
  when :array
354
366
  env_var.split(',').map(&:strip)
355
367
  when :boolean
356
- env_var.to_s.strip.downcase == 'true'
368
+ env_var.to_s.strip.casecmp('true').zero?
357
369
  when :integer
358
370
  env_var.to_i
359
371
  when :string
@@ -6,6 +6,6 @@
6
6
 
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
- VERSION = '0.22.2'
9
+ VERSION = '0.22.4'
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.22.2
4
+ version: 0.22.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-08-07 00:00:00.000000000 Z
11
+ date: 2024-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: opentelemetry-common
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.21'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.21'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: opentelemetry-registry
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -100,56 +114,56 @@ dependencies:
100
114
  requirements:
101
115
  - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: 1.55.1
117
+ version: 1.64.0
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: 1.55.1
124
+ version: 1.64.0
111
125
  - !ruby/object:Gem::Dependency
112
- name: simplecov
126
+ name: rubocop-performance
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - "~>"
116
130
  - !ruby/object:Gem::Version
117
- version: 0.22.0
131
+ version: '1.20'
118
132
  type: :development
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
136
  - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: 0.22.0
138
+ version: '1.20'
125
139
  - !ruby/object:Gem::Dependency
126
- name: yard
140
+ name: simplecov
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
143
  - - "~>"
130
144
  - !ruby/object:Gem::Version
131
- version: '0.9'
145
+ version: 0.22.0
132
146
  type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
150
  - - "~>"
137
151
  - !ruby/object:Gem::Version
138
- version: '0.9'
152
+ version: 0.22.0
139
153
  - !ruby/object:Gem::Dependency
140
- name: yard-doctest
154
+ name: yard
141
155
  requirement: !ruby/object:Gem::Requirement
142
156
  requirements:
143
157
  - - "~>"
144
158
  - !ruby/object:Gem::Version
145
- version: 0.1.6
159
+ version: '0.9'
146
160
  type: :development
147
161
  prerelease: false
148
162
  version_requirements: !ruby/object:Gem::Requirement
149
163
  requirements:
150
164
  - - "~>"
151
165
  - !ruby/object:Gem::Version
152
- version: 0.1.6
166
+ version: '0.9'
153
167
  description: Instrumentation Base for the OpenTelemetry framework
154
168
  email:
155
169
  - cncf-opentelemetry-contributors@lists.cncf.io
@@ -169,10 +183,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
169
183
  licenses:
170
184
  - Apache-2.0
171
185
  metadata:
172
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-base/0.22.2/file/CHANGELOG.md
186
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-base/0.22.4/file/CHANGELOG.md
173
187
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/base
174
188
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
175
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-base/0.22.2
189
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-base/0.22.4
176
190
  post_install_message:
177
191
  rdoc_options: []
178
192
  require_paths: