opentelemetry-instrumentation-net_http 0.22.2 → 0.22.3

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: 007cde7a5d322f2f456f8aee591a73f55d4e5333ffa4afb728932f610e6bed47
4
- data.tar.gz: d966470cae253695f618d1fe4eb9e646ee1013f5a5df87e396748eedfd3ff419
3
+ metadata.gz: f4ef9c31fa8b905925e135c59707c8d0762eb86968455cae5398bd6553e91cbd
4
+ data.tar.gz: 6551561ede8cbde5362eb53fdecde3adb27e9837d79ecc4ce728c903709d3f19
5
5
  SHA512:
6
- metadata.gz: 9965b2f58484868f7e47a4dcb60bf4ec2baf89347b8ca309321c92f1f22e517c5442a850d11cef7e7f59b139517d069a1092232246f637ef331d5a79882f84e8
7
- data.tar.gz: 1e606a813ebc6d40c1957efe5bfbf0a415ba3fa72c31417dbb5be17d23a7277226f83b2591d2e68353797adeef3de5dbbb023ea3de58918fdd5986480d03c4de
6
+ metadata.gz: f92f833dd731fbb5030a272f6cef239016f2b57b5693480c1aacd3ec5a11d23c54b2fb148f4c3f1274cfe7994ea35ddf2f573bbddc1e2a4d21f0b3feff8b2481
7
+ data.tar.gz: de8da5f98c6a52417fce3043562c4543cd7ba5fb85d2aa484fc259ce3418b0cb0add09a2c4617246a3381f5fea6a6d85bf4b5ad33ec20c98df7132f2e96acfa0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-net_http
2
2
 
3
+ ### v0.22.3 / 2023-11-22
4
+
5
+ * FIXED: Update `Net::HTTP` instrumentation to no-op on untraced contexts
6
+
3
7
  ### v0.22.2 / 2023-07-21
4
8
 
5
9
  * ADDED: Update `opentelemetry-common` from [0.19.3 to 0.20.0](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/537)
@@ -86,12 +86,20 @@ module OpenTelemetry
86
86
  end
87
87
 
88
88
  def untraced?
89
+ untraced_context? || untraced_host?
90
+ end
91
+
92
+ def untraced_host?
89
93
  return true if Net::HTTP::Instrumentation.instance.config[:untraced_hosts]&.any? do |host|
90
94
  host.is_a?(Regexp) ? host.match?(@address) : host == @address
91
95
  end
92
96
 
93
97
  false
94
98
  end
99
+
100
+ def untraced_context?
101
+ OpenTelemetry::Common::Utilities.untraced?
102
+ end
95
103
  end
96
104
  end
97
105
  end
@@ -8,7 +8,7 @@ module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Net
10
10
  module HTTP
11
- VERSION = '0.22.2'
11
+ VERSION = '0.22.3'
12
12
  end
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-instrumentation-net_http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.2
4
+ version: 0.22.3
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-07-21 00:00:00.000000000 Z
11
+ date: 2023-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -123,75 +123,75 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: 13.0.1
125
125
  - !ruby/object:Gem::Dependency
126
- name: rubocop
126
+ name: rspec-mocks
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: 1.54.1
131
+ version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - "~>"
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: 1.54.1
138
+ version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: simplecov
140
+ name: rubocop
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 0.17.1
145
+ version: 1.56.1
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 0.17.1
152
+ version: 1.56.1
153
153
  - !ruby/object:Gem::Dependency
154
- name: webmock
154
+ name: simplecov
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 3.11.0
159
+ version: 0.17.1
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 3.11.0
166
+ version: 0.17.1
167
167
  - !ruby/object:Gem::Dependency
168
- name: yard
168
+ name: webmock
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: '0.9'
173
+ version: '3.19'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: '0.9'
180
+ version: '3.19'
181
181
  - !ruby/object:Gem::Dependency
182
- name: yard-doctest
182
+ name: yard
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 0.1.6
187
+ version: '0.9'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: 0.1.6
194
+ version: '0.9'
195
195
  description: Net::HTTP instrumentation for the OpenTelemetry framework
196
196
  email:
197
197
  - cncf-opentelemetry-contributors@lists.cncf.io
@@ -213,10 +213,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
213
213
  licenses:
214
214
  - Apache-2.0
215
215
  metadata:
216
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-net_http/0.22.2/file/CHANGELOG.md
216
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-net_http/0.22.3/file/CHANGELOG.md
217
217
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/net_http
218
218
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
219
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-net_http/0.22.2
219
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-net_http/0.22.3
220
220
  post_install_message:
221
221
  rdoc_options: []
222
222
  require_paths: