opentelemetry-instrumentation-net_http 0.8.0 → 0.9.0

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: e9945718a392c66cb0be627147c08eac1bd6f12c375ca8243e6ef8def5551912
4
- data.tar.gz: 2391f7d388e104f3a398ad983ae4951104e7d0dd4b042cf00c47b153e299d2f4
3
+ metadata.gz: 02ec9df17277cfdef2dd368cc6372ad8346e41988eba813bd282a9265c2c2994
4
+ data.tar.gz: cddb50d9e978eb1066fa6902761cac251a4d855c4ddba822de4a82cbcca9d454
5
5
  SHA512:
6
- metadata.gz: 1d6beae2a28c75ec76beb3249f4b9647eb8b0fc8a3ad9b55a86d12be528d4cb3a127b9cde8c73b3786dba4d14ef62ea6dd24d8d9f33722852238fbdd2eabc108
7
- data.tar.gz: 9dba77ca54e85f44b2a3355b3dd97968aae15e4e5537836140d066d2371f2f7ba6f32c6f4cfc6bbaa49879c88273c53ebd9e0ef102a48cfbe5148277a9221678
6
+ metadata.gz: c2bbf81eedc9a4427fce73d32c722bba935271348378d9f3af4b49c3a6c2b7d03d14ac6d36aaa9c06f5bee6b5c53f90a7e79c21c001c6791982aa8e4991f1a58
7
+ data.tar.gz: bc50f57309353bfc93ac0f4a5da2ff1fef8a98c995529aed87fa832fd526ae3d09971f5abddad25947e084c1a6e73966e8b3bcefa1071f4c8326dff3ca63c207
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-net_http
2
2
 
3
+ ### v0.9.0 / 2020-11-27
4
+
5
+ * ADDED: Add common helpers
6
+
3
7
  ### v0.8.0 / 2020-10-27
4
8
 
5
9
  * BREAKING CHANGE: Remove 'canonical' from status codes
@@ -5,6 +5,7 @@
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
7
7
  require 'opentelemetry'
8
+ require 'opentelemetry/common'
8
9
 
9
10
  module OpenTelemetry
10
11
  module Instrumentation
@@ -18,15 +18,16 @@ module OpenTelemetry
18
18
  # Do not trace recursive call for starting the connection
19
19
  return super(req, body, &block) unless started?
20
20
 
21
+ attributes = OpenTelemetry::Common::HTTP::ClientContext.attributes
21
22
  tracer.in_span(
22
23
  HTTP_METHODS_TO_SPAN_NAMES[req.method],
23
- attributes: {
24
+ attributes: attributes.merge(
24
25
  'http.method' => req.method,
25
26
  'http.scheme' => USE_SSL_TO_SCHEME[use_ssl?],
26
27
  'http.target' => req.path,
27
28
  'peer.hostname' => @address,
28
29
  'peer.port' => @port
29
- },
30
+ ),
30
31
  kind: :client
31
32
  ) do |span|
32
33
  OpenTelemetry.propagation.http.inject(req)
@@ -8,7 +8,7 @@ module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Net
10
10
  module HTTP
11
- VERSION = '0.8.0'
11
+ VERSION = '0.9.0'
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.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-27 00:00:00.000000000 Z
11
+ date: 2020-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -16,14 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.8.0
19
+ version: 0.9.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.8.0
26
+ version: 0.9.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: opentelemetry-common
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.9.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.9.0
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -171,10 +185,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
171
185
  licenses:
172
186
  - Apache-2.0
173
187
  metadata:
174
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-net_http/v0.8.0/file.CHANGELOG.html
188
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-net_http/v0.9.0/file.CHANGELOG.html
175
189
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/master/instrumentation/net_http
176
190
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
177
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-net_http/v0.8.0
191
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-net_http/v0.9.0
178
192
  post_install_message:
179
193
  rdoc_options: []
180
194
  require_paths: