opentelemetry-instrumentation-http_client 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: 7fa451f0b4298e27b1f52906988f8b1b43c1adf98fe49a90a95a90843e79eb64
4
- data.tar.gz: f929ec719e5898795439cf4e0199875ebff6b2be2af446ceb82c6a23eed295ec
3
+ metadata.gz: 221b04a120465c02a88b9afde6bd0c1f22a5cd8be8803492d9eb044081c36f98
4
+ data.tar.gz: cc4847fca013eb77946868030ab9c3545115096254a08f1f0bc72eb3b06a8aca
5
5
  SHA512:
6
- metadata.gz: f5b8b60501c9a3e158963ddc5c9f801fa21a680ec0a65b1890ed10be0bbce15050f88e84689292505a53f904baeee2d1ca7f694c7238ae0fbc9246bd7b0ef616
7
- data.tar.gz: 74dbfab623610dec1618f86a631b3375afe7cfd7318c3bd0edb019e3112ac56751514a38ac6f1c2ae6329d4fbb35825bdd07eee97400379ed5219165f4e0a592
6
+ metadata.gz: 0176e65bca0e81fe0ffe79f868ac695c9c25abf8640e82d2aa3076a399ff8b17451e43c722419b23758b987c4ee2ec601885b5043903c584ab4ee7ef2ac90d98
7
+ data.tar.gz: ed8d94d6de3720dc10fc123893634549b02b4aea90719e968bb0e43bce13c5de1f6d865862db7b28babb9dfc06945b465553925bbc5628d7f659be22a7c67246
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-http_client
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
@@ -16,6 +16,7 @@ module OpenTelemetry
16
16
  uri = req.header.request_uri
17
17
  url = "#{uri.scheme}://#{uri.host}"
18
18
  request_method = req.header.request_method
19
+
19
20
  attributes = {
20
21
  'http.method' => request_method,
21
22
  'http.scheme' => uri.scheme,
@@ -23,7 +24,7 @@ module OpenTelemetry
23
24
  'http.url' => url,
24
25
  'net.peer.name' => uri.host,
25
26
  'net.peer.port' => uri.port
26
- }.merge(OpenTelemetry::Common::HTTP::ClientContext.attributes)
27
+ }.merge!(OpenTelemetry::Common::HTTP::ClientContext.attributes)
27
28
 
28
29
  tracer.in_span("HTTP #{request_method}", attributes: attributes, kind: :client) do |span|
29
30
  OpenTelemetry.propagation.inject(req.header)
@@ -14,7 +14,7 @@ module OpenTelemetry
14
14
  site = @proxy || @dest
15
15
  url = site.addr
16
16
 
17
- attributes = OpenTelemetry::Common::HTTP::ClientContext.attributes.merge('http.url' => url)
17
+ attributes = { 'http.url' => url }.merge!(OpenTelemetry::Common::HTTP::ClientContext.attributes)
18
18
  tracer.in_span('HTTP CONNECT', attributes: attributes) do
19
19
  super
20
20
  end
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module HttpClient
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_client
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_client/v0.19.3/file.CHANGELOG.html
231
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-http_client/v0.19.4/file.CHANGELOG.html
232
232
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/master/instrumentation/http_client
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_client/v0.19.3
234
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-http_client/v0.19.4
235
235
  post_install_message:
236
236
  rdoc_options: []
237
237
  require_paths: