opentelemetry-instrumentation-net_http 0.10.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/LICENSE +1 -1
- data/README.md +2 -2
- data/lib/opentelemetry-instrumentation-net_http.rb +1 -1
- data/lib/opentelemetry/instrumentation.rb +1 -1
- data/lib/opentelemetry/instrumentation/net/http.rb +1 -1
- data/lib/opentelemetry/instrumentation/net/http/instrumentation.rb +1 -1
- data/lib/opentelemetry/instrumentation/net/http/patches/instrumentation.rb +20 -2
- data/lib/opentelemetry/instrumentation/net/http/version.rb +2 -2
- metadata +11 -11
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
@@ -1,5 +1,27 @@
|
|
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
|
+
|
7
|
+
### v0.14.0 / 2021-02-03
|
8
|
+
|
9
|
+
* BREAKING CHANGE: Replace getter and setter callables and remove rack specific propagators
|
10
|
+
|
11
|
+
* ADDED: Replace getter and setter callables and remove rack specific propagators
|
12
|
+
|
13
|
+
### v0.13.0 / 2021-01-29
|
14
|
+
|
15
|
+
* (No significant changes)
|
16
|
+
|
17
|
+
### v0.12.0 / 2020-12-24
|
18
|
+
|
19
|
+
* (No significant changes)
|
20
|
+
|
21
|
+
### v0.11.0 / 2020-12-11
|
22
|
+
|
23
|
+
* FIXED: Copyright comments to not reference year
|
24
|
+
|
3
25
|
### v0.10.0 / 2020-12-03
|
4
26
|
|
5
27
|
* (No significant changes)
|
data/LICENSE
CHANGED
@@ -186,7 +186,7 @@
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
187
187
|
identification within third-party archives.
|
188
188
|
|
189
|
-
Copyright
|
189
|
+
Copyright The OpenTelemetry Authors
|
190
190
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
192
192
|
you may not use this file except in compliance with the License.
|
data/README.md
CHANGED
@@ -32,7 +32,7 @@ end
|
|
32
32
|
|
33
33
|
## Example
|
34
34
|
|
35
|
-
An example of usage can be seen in [`example/net_http.rb`](https://github.com/open-telemetry/opentelemetry-ruby/blob/
|
35
|
+
An example of usage can be seen in [`example/net_http.rb`](https://github.com/open-telemetry/opentelemetry-ruby/blob/main/instrumentation/net_http/example/net_http.rb).
|
36
36
|
|
37
37
|
## How can I get involved?
|
38
38
|
|
@@ -47,7 +47,7 @@ Apache 2.0 license. See [LICENSE][license-github] for more information.
|
|
47
47
|
[net-http-home]: https://docs.ruby-lang.org/en/2.0.0/Net/HTTP.html
|
48
48
|
[bundler-home]: https://bundler.io
|
49
49
|
[repo-github]: https://github.com/open-telemetry/opentelemetry-ruby
|
50
|
-
[license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/
|
50
|
+
[license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/main/LICENSE
|
51
51
|
[ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
|
52
52
|
[community-meetings]: https://github.com/open-telemetry/community#community-meetings
|
53
53
|
[ruby-gitter]: https://gitter.im/open-telemetry/opentelemetry-ruby
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright
|
3
|
+
# Copyright The OpenTelemetry Authors
|
4
4
|
#
|
5
5
|
# SPDX-License-Identifier: Apache-2.0
|
6
6
|
|
@@ -30,7 +30,7 @@ module OpenTelemetry
|
|
30
30
|
),
|
31
31
|
kind: :client
|
32
32
|
) do |span|
|
33
|
-
OpenTelemetry.propagation.
|
33
|
+
OpenTelemetry.propagation.inject(req)
|
34
34
|
|
35
35
|
super(req, body, &block).tap do |response|
|
36
36
|
annotate_span_with_response!(span, response)
|
@@ -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
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright
|
3
|
+
# Copyright The OpenTelemetry Authors
|
4
4
|
#
|
5
5
|
# SPDX-License-Identifier: Apache-2.0
|
6
6
|
|
@@ -8,7 +8,7 @@ module OpenTelemetry
|
|
8
8
|
module Instrumentation
|
9
9
|
module Net
|
10
10
|
module HTTP
|
11
|
-
VERSION = '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.
|
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:
|
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.
|
189
|
-
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/
|
188
|
+
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-net_http/v0.15.0/file.CHANGELOG.html
|
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:
|