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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a406f8b1d0f2eaaca7e427f15e99c50af0cbe50a919151f903b8f099b2845eb
|
4
|
+
data.tar.gz: 07d712e989d358e918b57468313721962b5b56d95d5e57e4c3e300cfe60d215c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa7784ef36b913b2d813fa222b8d7d8123d03010f735781f70e260807318d35612eb1e5ec34f6a3757458562cefb6c76e16d021bf9e632df53cf8a8d3e9dbad1
|
7
|
+
data.tar.gz: bb5f3d65451773dc46b30d66dd5d616d4951fcd5b5f216594c48cd4ef98b6fc7deec09fa665bace9a2544ea7c944fec75bf285e580985837d6e908f3961d4026
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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:
|