opentelemetry-instrumentation-excon 0.19.2 → 0.19.5
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: 980a11059263e903db8ce2bb0cf7e947cdb68f20d12ac4fa66821eabed0d0edd
|
4
|
+
data.tar.gz: a00af5961da80b16cda46e1b96558dce7ea899cc04fff9556ed8b86d16ef9001
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f06ed7c3d848fc96a3151d8badd9c383f3ceb4dde5d613dea701437299f6fbca67f53f07a57324c185340e703f1ae5a5972b5c4979fbc2c762881d9d6c564e3
|
7
|
+
data.tar.gz: f49b8867ae82f186204d6ca9cdc1ae8435155d88b29b09c2c9fc6f5bda1cb4f97128987b841a9bbffde92e1b3b66b0bd235c2a303f9dd6dd60429936159cee58
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-excon
|
2
2
|
|
3
|
+
### v0.19.5 / 2022-05-05
|
4
|
+
|
5
|
+
* (No significant changes)
|
6
|
+
|
7
|
+
### v0.19.4 / 2022-02-02
|
8
|
+
|
9
|
+
* FIXED: Excessive hash creation on context attr merging
|
10
|
+
|
11
|
+
### v0.19.3 / 2021-12-02
|
12
|
+
|
13
|
+
* (No significant changes)
|
14
|
+
|
3
15
|
### v0.19.2 / 2021-09-29
|
4
16
|
|
5
17
|
* (No significant changes)
|
@@ -10,25 +10,24 @@ module OpenTelemetry
|
|
10
10
|
module Middlewares
|
11
11
|
# Excon middleware for instrumentation
|
12
12
|
class TracerMiddleware < ::Excon::Middleware::Base
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
}.freeze
|
13
|
+
HTTP_METHODS_TO_UPPERCASE = %w[connect delete get head options patch post put trace].each_with_object({}) do |method, hash|
|
14
|
+
uppercase_method = method.upcase
|
15
|
+
hash[method] = uppercase_method
|
16
|
+
hash[method.to_sym] = uppercase_method
|
17
|
+
hash[uppercase_method] = uppercase_method
|
18
|
+
end.freeze
|
19
|
+
|
20
|
+
HTTP_METHODS_TO_SPAN_NAMES = HTTP_METHODS_TO_UPPERCASE.values.each_with_object({}) do |uppercase_method, hash|
|
21
|
+
hash[uppercase_method] ||= "HTTP #{uppercase_method}"
|
22
|
+
end.freeze
|
24
23
|
|
25
24
|
def request_call(datum)
|
26
25
|
begin
|
27
26
|
unless datum.key?(:otel_span)
|
28
|
-
http_method =
|
27
|
+
http_method = HTTP_METHODS_TO_UPPERCASE[datum[:method]]
|
29
28
|
attributes = span_creation_attributes(datum, http_method)
|
30
29
|
tracer.start_span(
|
31
|
-
|
30
|
+
HTTP_METHODS_TO_SPAN_NAMES[http_method],
|
32
31
|
attributes: attributes,
|
33
32
|
kind: :client
|
34
33
|
).tap do |span|
|
@@ -101,7 +100,7 @@ module OpenTelemetry
|
|
101
100
|
}
|
102
101
|
config = Excon::Instrumentation.instance.config
|
103
102
|
instrumentation_attrs['peer.service'] = config[:peer_service] if config[:peer_service]
|
104
|
-
instrumentation_attrs.merge(
|
103
|
+
instrumentation_attrs.merge!(
|
105
104
|
OpenTelemetry::Common::HTTP::ClientContext.attributes
|
106
105
|
)
|
107
106
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentelemetry-instrumentation-excon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.5
|
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: 2022-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.19.
|
33
|
+
version: 0.19.3
|
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.19.
|
40
|
+
version: 0.19.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: opentelemetry-instrumentation-base
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.20.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.20.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: appraisal
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '1.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: opentelemetry-test-helpers
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
140
|
name: rubocop
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -213,10 +227,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
|
|
213
227
|
licenses:
|
214
228
|
- Apache-2.0
|
215
229
|
metadata:
|
216
|
-
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-excon/v0.19.
|
230
|
+
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-excon/v0.19.5/file.CHANGELOG.html
|
217
231
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/excon
|
218
232
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
|
219
|
-
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-excon/v0.19.
|
233
|
+
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-excon/v0.19.5
|
220
234
|
post_install_message:
|
221
235
|
rdoc_options: []
|
222
236
|
require_paths:
|
@@ -225,7 +239,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
225
239
|
requirements:
|
226
240
|
- - ">="
|
227
241
|
- !ruby/object:Gem::Version
|
228
|
-
version: 2.
|
242
|
+
version: 2.6.0
|
229
243
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
244
|
requirements:
|
231
245
|
- - ">="
|