opentelemetry-instrumentation-net_http 0.14.0 → 0.15.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: 670e2e325288712b5ef934c6a791fb41d662c339389b7b9387c45cce8c51c7cd
4
- data.tar.gz: a9136b4209f584f8c4fd8d5e5a59c5b292caf1175a19a76f0e4bfc8ec020edf5
3
+ metadata.gz: 0a406f8b1d0f2eaaca7e427f15e99c50af0cbe50a919151f903b8f099b2845eb
4
+ data.tar.gz: 07d712e989d358e918b57468313721962b5b56d95d5e57e4c3e300cfe60d215c
5
5
  SHA512:
6
- metadata.gz: 85ae38a7319a2e768fa7fddcbc972967bae073d8b03ae19cf89bda34713a58fc3c235e9b781215752188414dc30c3db109763f019684d9aff411bb4495309139
7
- data.tar.gz: a2e7a7c01021ad6b4fdbb8d8ce0d331ff8e35983118f2da88e44e44f3776397d02619b80c3bfcba22595b07823e5587e40d3ce6eaefa2c966c4cb5beeeea3d5a
6
+ metadata.gz: fa7784ef36b913b2d813fa222b8d7d8123d03010f735781f70e260807318d35612eb1e5ec34f6a3757458562cefb6c76e16d021bf9e632df53cf8a8d3e9dbad1
7
+ data.tar.gz: bb5f3d65451773dc46b30d66dd5d616d4951fcd5b5f216594c48cd4ef98b6fc7deec09fa665bace9a2544ea7c944fec75bf285e580985837d6e908f3961d4026
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-net_http
2
2
 
3
+ ### v0.15.0 / 2021-02-18
4
+
5
+ * ADDED: Add Net::HTTP#connect tracing
6
+
3
7
  ### v0.14.0 / 2021-02-03
4
8
 
5
9
  * BREAKING CHANGE: Replace getter and setter callables and remove rack specific propagators
@@ -40,6 +40,24 @@ module OpenTelemetry
40
40
 
41
41
  private
42
42
 
43
+ def connect
44
+ if proxy?
45
+ conn_address = proxy_address
46
+ conn_port = proxy_port
47
+ else
48
+ conn_address = address
49
+ conn_port = port
50
+ end
51
+
52
+ attributes = OpenTelemetry::Common::HTTP::ClientContext.attributes
53
+ tracer.in_span('HTTP CONNECT', attributes: attributes.merge(
54
+ 'peer.hostname' => conn_address,
55
+ 'peer.port' => conn_port
56
+ )) do
57
+ super
58
+ end
59
+ end
60
+
43
61
  def annotate_span_with_response!(span, response)
44
62
  return unless response&.code
45
63
 
@@ -8,7 +8,7 @@ module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Net
10
10
  module HTTP
11
- VERSION = '0.14.0'
11
+ VERSION = '0.15.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.14.0
4
+ version: 0.15.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: 2021-02-03 00:00:00.000000000 Z
11
+ date: 2021-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.0
19
+ version: 0.15.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.14.0
26
+ version: 0.15.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: opentelemetry-common
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.14.0
33
+ version: 0.15.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.14.0
40
+ version: 0.15.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 3.7.6
131
+ version: 3.11.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: 3.7.6
138
+ version: 3.11.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: yard
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -185,10 +185,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
185
185
  licenses:
186
186
  - Apache-2.0
187
187
  metadata:
188
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-net_http/v0.14.0/file.CHANGELOG.html
188
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-net_http/v0.15.0/file.CHANGELOG.html
189
189
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/net_http
190
190
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
191
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-net_http/v0.14.0
191
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-net_http/v0.15.0
192
192
  post_install_message:
193
193
  rdoc_options: []
194
194
  require_paths: