opentelemetry-instrumentation-http 0.19.3 → 0.19.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: d662117ed848fbc48a2521e34d1278288b366f36460721f57657e4a3747fccf2
4
- data.tar.gz: c0cfa91c5795503c5a82cab32c4f6a206386aeb19407ab5cf7f4afb0dd9ec5ed
3
+ metadata.gz: c9570118296fb851ea1c1ea32f2daa62f05c9ce7fab282848023858bae05be9e
4
+ data.tar.gz: 9d605b372fe2e1572a950618424d6b15a930d80f4f9f61b033e79d2f536225f1
5
5
  SHA512:
6
- metadata.gz: c911390b5be8366be040148ab203db9e5da115d04069e6d5181ca1e35dd876e007fd64e147d662abf54b90d0c7aac98a261ebef70575ee4b4b02877123cfc250
7
- data.tar.gz: fff6adf48925ecf3b0d8331aaaef5ec6c6a19b723e4310268ff4d11075884512c636cc7348b91886a3f8e4c5a9e6e0c6e04ffcf3ee9f52e510daace3a0425dc3
6
+ metadata.gz: 29ba0108de767f29e73928c18465d0e91043c8c53b5a45044f2b85504fadcd91467e80afe3fbb24b143b7a4bf521ec6bc2263be6913757153effaa0a47216bc3
7
+ data.tar.gz: d3188b798e5a241ea6a38a413d6ef626c8089c9335bb297bdffb507c01c739cf6573ea126289ee0703f3fa75ab37a14d1815296b4504d41b20743c4f70aa65f5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-http
2
2
 
3
+ ### v0.19.4 / 2022-02-02
4
+
5
+ * FIXED: Excessive hash creation on context attr merging
6
+
3
7
  ### v0.19.3 / 2021-12-01
4
8
 
5
9
  * FIXED: Change net attribute names to match the semantic conventions spec for http
@@ -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.4'
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.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: 2021-12-01 00:00:00.000000000 Z
11
+ date: 2022-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -228,10 +228,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
228
228
  licenses:
229
229
  - Apache-2.0
230
230
  metadata:
231
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-http/v0.19.3/file.CHANGELOG.html
231
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-http/v0.19.4/file.CHANGELOG.html
232
232
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/http
233
233
  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
234
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-http/v0.19.4
235
235
  post_install_message:
236
236
  rdoc_options: []
237
237
  require_paths: