opentelemetry-instrumentation-net_http 0.22.1 → 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: 599c3320ccf32df13d0443dd4ad2476f152ef9ca9250c47e1a8aa27aa5e0e267
4
- data.tar.gz: 1c10d4faf78bbdf451820b12dc6194a1fe59f555fad20a6e221e0bfa51ccc442
3
+ metadata.gz: f4ef9c31fa8b905925e135c59707c8d0762eb86968455cae5398bd6553e91cbd
4
+ data.tar.gz: 6551561ede8cbde5362eb53fdecde3adb27e9837d79ecc4ce728c903709d3f19
5
5
  SHA512:
6
- metadata.gz: 466ebf40f909f3277e9919c38722e0bb5be45fe9d3dcaa4ae6332de184c782b391cfa67d1302d2c5adcb30a55fa206651bdfd22058465fc4bf95021d048d457d
7
- data.tar.gz: e56964ce1efc18bbb7f5cb8ba91a7956c94fe85adcd1838e1148ffac0881d485fb206d620302981a304d5dcac9448d6927be11e9ebe627003e02e329e8151a4e
6
+ metadata.gz: f92f833dd731fbb5030a272f6cef239016f2b57b5693480c1aacd3ec5a11d23c54b2fb148f4c3f1274cfe7994ea35ddf2f573bbddc1e2a4d21f0b3feff8b2481
7
+ data.tar.gz: de8da5f98c6a52417fce3043562c4543cd7ba5fb85d2aa484fc259ce3418b0cb0add09a2c4617246a3381f5fea6a6d85bf4b5ad33ec20c98df7132f2e96acfa0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.22.2 / 2023-07-21
8
+
9
+ * ADDED: Update `opentelemetry-common` from [0.19.3 to 0.20.0](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/537)
10
+
3
11
  ### v0.22.1 / 2023-06-05
4
12
 
5
13
  * FIXED: Base config options
@@ -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.1'
11
+ VERSION = '0.22.3'
12
12
  end
13
13
  end
14
14
  end
@@ -18,5 +18,5 @@ module OpenTelemetry
18
18
  end
19
19
  end
20
20
 
21
- require_relative './http/instrumentation'
22
- require_relative './http/version'
21
+ require_relative 'http/instrumentation'
22
+ require_relative 'http/version'
@@ -19,4 +19,4 @@ module OpenTelemetry
19
19
  end
20
20
  end
21
21
 
22
- require_relative './instrumentation/net/http'
22
+ require_relative 'instrumentation/net/http'
@@ -4,4 +4,4 @@
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
7
- require_relative './opentelemetry/instrumentation'
7
+ require_relative 'opentelemetry/instrumentation'
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.1
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-06-05 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
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.19.3
33
+ version: 0.20.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.19.3
40
+ version: 0.20.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: opentelemetry-instrumentation-base
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -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.50.2
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.50.2
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.1/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.1
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: