opentelemetry-instrumentation-excon 0.19.4 → 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: c706b837f1831eda7978bf6d69c15a195421349dc47213d4702b7de44e5a4fcc
4
- data.tar.gz: 8ffa1c5bdfe3f2a9bc14316cb3191f2e0e7187d8beadd809f22b6eddd97385c7
3
+ metadata.gz: 980a11059263e903db8ce2bb0cf7e947cdb68f20d12ac4fa66821eabed0d0edd
4
+ data.tar.gz: a00af5961da80b16cda46e1b96558dce7ea899cc04fff9556ed8b86d16ef9001
5
5
  SHA512:
6
- metadata.gz: 4e21e063d7bd350e6603e0adf72d7cfb38f8f6ac1867286d80ad84efa98062000c4db1bb0ee52b1fc704741896e14b21eacd50e555462ba97a14c29914552c7c
7
- data.tar.gz: e3f0429cd46ad35bf058e5fcd3741956d2aa3e7a0c8bf13c37bb6f589c12d3451e1baa935e8a4b16e1e1e8df417c00d1bd31b06a38ce8f83b073bc2c7e4dbc8a
6
+ metadata.gz: 8f06ed7c3d848fc96a3151d8badd9c383f3ceb4dde5d613dea701437299f6fbca67f53f07a57324c185340e703f1ae5a5972b5c4979fbc2c762881d9d6c564e3
7
+ data.tar.gz: f49b8867ae82f186204d6ca9cdc1ae8435155d88b29b09c2c9fc6f5bda1cb4f97128987b841a9bbffde92e1b3b66b0bd235c2a303f9dd6dd60429936159cee58
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-excon
2
2
 
3
+ ### v0.19.5 / 2022-05-05
4
+
5
+ * (No significant changes)
6
+
3
7
  ### v0.19.4 / 2022-02-02
4
8
 
5
9
  * FIXED: Excessive hash creation on context attr merging
@@ -10,25 +10,24 @@ module OpenTelemetry
10
10
  module Middlewares
11
11
  # Excon middleware for instrumentation
12
12
  class TracerMiddleware < ::Excon::Middleware::Base
13
- HTTP_METHODS_SYMBOL_TO_STRING = {
14
- connect: 'CONNECT',
15
- delete: 'DELETE',
16
- get: 'GET',
17
- head: 'HEAD',
18
- options: 'OPTIONS',
19
- patch: 'PATCH',
20
- post: 'POST',
21
- put: 'PUT',
22
- trace: 'TRACE'
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 = HTTP_METHODS_SYMBOL_TO_STRING[datum[: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
- "HTTP #{http_method}",
30
+ HTTP_METHODS_TO_SPAN_NAMES[http_method],
32
31
  attributes: attributes,
33
32
  kind: :client
34
33
  ).tap do |span|
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Excon
10
- VERSION = '0.19.4'
10
+ VERSION = '0.19.5'
11
11
  end
12
12
  end
13
13
  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
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: 2022-02-03 00:00:00.000000000 Z
11
+ date: 2022-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.19.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.19.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.4/file.CHANGELOG.html
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.4
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.5.0
242
+ version: 2.6.0
229
243
  required_rubygems_version: !ruby/object:Gem::Requirement
230
244
  requirements:
231
245
  - - ">="