opentelemetry-instrumentation-restclient 0.12.0 → 0.17.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 +25 -0
- data/README.md +3 -3
- data/lib/opentelemetry/instrumentation/restclient.rb +1 -0
- data/lib/opentelemetry/instrumentation/restclient/instrumentation.rb +2 -0
- data/lib/opentelemetry/instrumentation/restclient/patches/request.rb +10 -5
- data/lib/opentelemetry/instrumentation/restclient/version.rb +1 -1
- metadata +36 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e1c38763a3ab08222e8f320cf2db81814591705c5faf4ffcf46d8decaad8182
|
4
|
+
data.tar.gz: 17c76748db8f2c272525350f513d66ce186a5e74bc3681b853b83d3850c55421
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d1c9affb4bd9baddf43d2555f5ef5254a65af75342ca748522e114509320e07cba143785fd54321690831ac47dd0027cf093b3d981e1ca353468b38e5f5f91b
|
7
|
+
data.tar.gz: d1d4337e6bd4d581f36021284d00e13eacdcda87f25a6fa56aa5b02a787170900ab2759b8e510b91a40ac36a2adc6a436859e5ee07e8e7318b4c76863313588f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,30 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-restclient
|
2
2
|
|
3
|
+
### v0.17.0 / 2021-04-22
|
4
|
+
|
5
|
+
* ADDED: RestClient instrumentation accepts peer service config attribute.
|
6
|
+
* FIXED: Refactor propagators to add #fields
|
7
|
+
|
8
|
+
### v0.16.0 / 2021-03-17
|
9
|
+
|
10
|
+
* FIXED: Remove passwords from http.url
|
11
|
+
* FIXED: Example scripts now reference local common lib
|
12
|
+
* DOCS: Replace Gitter with GitHub Discussions
|
13
|
+
|
14
|
+
### v0.15.0 / 2021-02-18
|
15
|
+
|
16
|
+
* (No significant changes)
|
17
|
+
|
18
|
+
### v0.14.0 / 2021-02-03
|
19
|
+
|
20
|
+
* BREAKING CHANGE: Replace getter and setter callables and remove rack specific propagators
|
21
|
+
|
22
|
+
* ADDED: Replace getter and setter callables and remove rack specific propagators
|
23
|
+
|
24
|
+
### v0.13.0 / 2021-01-29
|
25
|
+
|
26
|
+
* (No significant changes)
|
27
|
+
|
3
28
|
### v0.12.0 / 2020-12-24
|
4
29
|
|
5
30
|
* (No significant changes)
|
data/README.md
CHANGED
@@ -34,7 +34,7 @@ end
|
|
34
34
|
|
35
35
|
The `opentelemetry-instrumentation-restclient` gem source is [on github][repo-github], along with related gems including `opentelemetry-api` and `opentelemetry-sdk`.
|
36
36
|
|
37
|
-
The OpenTelemetry Ruby gems are maintained by the OpenTelemetry-Ruby special interest group (SIG). You can get involved by joining us
|
37
|
+
The OpenTelemetry Ruby gems are maintained by the OpenTelemetry-Ruby special interest group (SIG). You can get involved by joining us in [GitHub Discussions][discussions-url] or attending our weekly meeting. See the [meeting calendar][community-meetings] for dates and times. For more information on this and other language SIGs, see the OpenTelemetry [community page][ruby-sig].
|
38
38
|
|
39
39
|
## License
|
40
40
|
|
@@ -43,7 +43,7 @@ Apache 2.0 license. See [LICENSE][license-github] for more information.
|
|
43
43
|
[restclient-home]: https://github.com/rest-client/rest-client
|
44
44
|
[bundler-home]: https://bundler.io
|
45
45
|
[repo-github]: https://github.com/open-telemetry/opentelemetry-ruby
|
46
|
-
[license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/
|
46
|
+
[license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/main/LICENSE
|
47
47
|
[ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
|
48
48
|
[community-meetings]: https://github.com/open-telemetry/community#community-meetings
|
49
|
-
[
|
49
|
+
[discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
|
@@ -20,17 +20,22 @@ module OpenTelemetry
|
|
20
20
|
|
21
21
|
def trace_request # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
|
22
22
|
http_method = method.upcase
|
23
|
+
instrumentation_attrs = {
|
24
|
+
'http.method' => http_method,
|
25
|
+
'http.url' => OpenTelemetry::Common::Utilities.cleanse_url(url)
|
26
|
+
}
|
27
|
+
config = RestClient::Instrumentation.instance.config
|
28
|
+
instrumentation_attrs['peer.service'] = config[:peer_service] if config[:peer_service]
|
23
29
|
span = tracer.start_span(
|
24
30
|
"HTTP #{http_method}",
|
25
|
-
attributes:
|
26
|
-
|
27
|
-
|
28
|
-
},
|
31
|
+
attributes: instrumentation_attrs.merge(
|
32
|
+
OpenTelemetry::Common::HTTP::ClientContext.attributes
|
33
|
+
),
|
29
34
|
kind: :client
|
30
35
|
)
|
31
36
|
|
32
37
|
OpenTelemetry::Trace.with_span(span) do
|
33
|
-
OpenTelemetry.propagation.
|
38
|
+
OpenTelemetry.propagation.inject(processed_headers)
|
34
39
|
end
|
35
40
|
|
36
41
|
yield(span).tap do |response|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentelemetry-instrumentation-restclient
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.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-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -16,14 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.17.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.17.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.17.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.17.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: opentelemetry-instrumentation-base
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.17.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.17.0
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
56
|
name: appraisal
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -185,10 +213,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
|
|
185
213
|
licenses:
|
186
214
|
- Apache-2.0
|
187
215
|
metadata:
|
188
|
-
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-restclient/v0.
|
189
|
-
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/
|
216
|
+
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-restclient/v0.17.0/file.CHANGELOG.html
|
217
|
+
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/restclient
|
190
218
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
|
191
|
-
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-restclient/v0.
|
219
|
+
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-restclient/v0.17.0
|
192
220
|
post_install_message:
|
193
221
|
rdoc_options: []
|
194
222
|
require_paths:
|
@@ -204,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
232
|
- !ruby/object:Gem::Version
|
205
233
|
version: '0'
|
206
234
|
requirements: []
|
207
|
-
rubygems_version: 3.1.
|
235
|
+
rubygems_version: 3.1.6
|
208
236
|
signing_key:
|
209
237
|
specification_version: 4
|
210
238
|
summary: REST Client instrumentation for the OpenTelemetry framework
|