opentelemetry-instrumentation-http 0.19.3 → 0.19.6

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: d662117ed848fbc48a2521e34d1278288b366f36460721f57657e4a3747fccf2
4
- data.tar.gz: c0cfa91c5795503c5a82cab32c4f6a206386aeb19407ab5cf7f4afb0dd9ec5ed
3
+ metadata.gz: 149ab36c5fb80f4920b7c2900976cf6adef179a49b03e92c36a3475abb5cfe73
4
+ data.tar.gz: 766d74915e52c85356db8ead152e617287024e1d3a038744d60d22ecffd90441
5
5
  SHA512:
6
- metadata.gz: c911390b5be8366be040148ab203db9e5da115d04069e6d5181ca1e35dd876e007fd64e147d662abf54b90d0c7aac98a261ebef70575ee4b4b02877123cfc250
7
- data.tar.gz: fff6adf48925ecf3b0d8331aaaef5ec6c6a19b723e4310268ff4d11075884512c636cc7348b91886a3f8e4c5a9e6e0c6e04ffcf3ee9f52e510daace3a0425dc3
6
+ metadata.gz: 29bc9a472f0bd0af6dd5859f95770b85ca250b9733210326939ecf14616b2c95a4719a1851dd1393142a68d03f43dcc9d5f3fdcb7aaa3307e629aa9650c7c392
7
+ data.tar.gz: 77693cf71ba6899aaa43362522a1ed041389a7ba840c2d61424e0d6f226c51ce3deb86984a575e93c84e089546edab704f558324b0cfa674504d834fc8e39ecb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release History: opentelemetry-instrumentation-http
2
2
 
3
+ ### v0.19.6 / 2022-05-05
4
+
5
+ * (No significant changes)
6
+
7
+ ### v0.19.5 / 2022-05-02
8
+
9
+ * FIXED: RubyGems Fallback
10
+
11
+ ### v0.19.4 / 2022-02-02
12
+
13
+ * FIXED: Excessive hash creation on context attr merging
14
+
3
15
  ### v0.19.3 / 2021-12-01
4
16
 
5
17
  * FIXED: Change net attribute names to match the semantic conventions spec for http
@@ -15,7 +15,7 @@ module OpenTelemetry
15
15
  end
16
16
 
17
17
  present do
18
- !(defined?(::HTTP) && Gem.loaded_specs['http']).nil?
18
+ !(defined?(::HTTP::Client).nil? || defined?(::HTTP::Connection).nil?)
19
19
  end
20
20
 
21
21
  def patch
@@ -21,7 +21,7 @@ module OpenTelemetry
21
21
  'http.url' => "#{uri.scheme}://#{uri.host}",
22
22
  'net.peer.name' => uri.host,
23
23
  'net.peer.port' => uri.port
24
- }.merge(OpenTelemetry::Common::HTTP::ClientContext.attributes)
24
+ }.merge!(OpenTelemetry::Common::HTTP::ClientContext.attributes)
25
25
 
26
26
  tracer.in_span("HTTP #{request_method}", attributes: attributes, kind: :client) do |span|
27
27
  OpenTelemetry.propagation.inject(req.headers)
@@ -11,10 +11,10 @@ module OpenTelemetry
11
11
  # Module to prepend to HTTP::Connection for instrumentation
12
12
  module Connection
13
13
  def initialize(req, options)
14
- attributes = OpenTelemetry::Common::HTTP::ClientContext.attributes.merge(
14
+ attributes = {
15
15
  'net.peer.name' => req.uri.host,
16
16
  'net.peer.port' => req.uri.port
17
- )
17
+ }.merge!(OpenTelemetry::Common::HTTP::ClientContext.attributes)
18
18
 
19
19
  tracer.in_span('HTTP CONNECT', attributes: attributes) do
20
20
  super
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module HTTP
10
- VERSION = '0.19.3'
10
+ VERSION = '0.19.6'
11
11
  end
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-instrumentation-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.3
4
+ version: 0.19.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-01 00:00:00.000000000 Z
11
+ date: 2022-05-06 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.0
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.0
40
+ version: 0.20.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: appraisal
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '1.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: opentelemetry-test-helpers
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: rake
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -228,10 +242,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
228
242
  licenses:
229
243
  - Apache-2.0
230
244
  metadata:
231
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-http/v0.19.3/file.CHANGELOG.html
245
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-http/v0.19.6/file.CHANGELOG.html
232
246
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/http
233
247
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
234
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-http/v0.19.3
248
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-http/v0.19.6
235
249
  post_install_message:
236
250
  rdoc_options: []
237
251
  require_paths:
@@ -240,7 +254,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
240
254
  requirements:
241
255
  - - ">="
242
256
  - !ruby/object:Gem::Version
243
- version: 2.5.0
257
+ version: 2.6.0
244
258
  required_rubygems_version: !ruby/object:Gem::Requirement
245
259
  requirements:
246
260
  - - ">="