opentelemetry-instrumentation-ethon 0.21.8 → 0.21.9

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: 90a711046e29a0fdfde1904c52fc7c381e68b73d6d7f008e745ac5145b0378a8
4
- data.tar.gz: 6a110db3e974507cfe494b4c1cbb62a6bac35aacbe949fbc7e27c8952a1c8ecf
3
+ metadata.gz: 78968a2ac9f7d6c0b9d1b2976f8a52c848d64fcb189bf24879370f0c7f7221db
4
+ data.tar.gz: 285e222e108cc6849e9c8978d33acfddf77c8b677d8d8d275e991ced18cd5e77
5
5
  SHA512:
6
- metadata.gz: b181d68bdbbdc33405d113e2789f33ca70754b7c17b2a085d754a8351b18be12f13dabaf4134d41ce245f83b06620b7911f5c7be18bf2675bb60d344abc8956f
7
- data.tar.gz: 19f894dc75fb72dd1a483fa850d843eb27e0c9a91060ffcc7f6981488835d3ca321ba297838ca4c0bbe9148d41825b651f64b7aa9e69705f3602ae1872b0808f
6
+ metadata.gz: 98db02a9ca090e6b803e7aa6de10564dc3fef731d7ca595a2adc50720cee65295acb5eddab15347963c633a3fa7db0dff99a70112e42d3dcfd86b7ccadeeb2aa
7
+ data.tar.gz: 1df05dfc5e845005e1acae8d2e6d51810a020f9d3f118469e506ed6d80d360eb9ca151bb3149bf4950ebf40280657df812e7517e0cae1da61b120288eb308a36
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-ethon
2
2
 
3
+ ### v0.21.9 / 2024-11-26
4
+
5
+ * CHANGED: Performance Freeze all range objects #1222
6
+
3
7
  ### v0.21.8 / 2024-07-23
4
8
 
5
9
  * DOCS: Add cspell to CI
data/README.md CHANGED
@@ -6,7 +6,7 @@ The ethon instrumentation is a community-maintained instrumentation for the [eth
6
6
 
7
7
  Install the gem using:
8
8
 
9
- ```
9
+ ```console
10
10
  gem install opentelemetry-instrumentation-ethon
11
11
  ```
12
12
 
@@ -38,17 +38,17 @@ Example usage of faraday can be seen in the `./example/ethon.rb` file [here](htt
38
38
 
39
39
  The `opentelemetry-instrumentation-ethon` gem source is [on github][repo-github], along with related gems including `opentelemetry-api` and `opentelemetry-sdk`.
40
40
 
41
- 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].
41
+ The OpenTelemetry Ruby gems are maintained by the OpenTelemetry Ruby special interest group (SIG). You can get involved by joining us on our [GitHub Discussions][discussions-url], [Slack Channel][slack-channel] 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].
42
42
 
43
43
  ## License
44
44
 
45
45
  The `opentelemetry-instrumentation-all` gem is distributed under the Apache 2.0 license. See [LICENSE][license-github] for more information.
46
46
 
47
- [ethon]:https://github.com/typhoeus/ethon
48
47
  [ethon-home]:https://github.com/typhoeus/ethon
49
48
  [bundler-home]: https://bundler.io
50
49
  [repo-github]: https://github.com/open-telemetry/opentelemetry-ruby
51
50
  [license-github]: https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/LICENSE
52
51
  [ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
53
52
  [community-meetings]: https://github.com/open-telemetry/community#community-meetings
53
+ [slack-channel]: https://cloud-native.slack.com/archives/C01NWKKMKMY
54
54
  [discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
@@ -16,6 +16,9 @@ module OpenTelemetry
16
16
  end
17
17
  HTTP_METHODS_TO_SPAN_NAMES = Hash.new { |h, k| h[k] = "HTTP #{k}" }
18
18
 
19
+ # Constant for the HTTP status range
20
+ HTTP_STATUS_SUCCESS_RANGE = (100..399)
21
+
19
22
  def http_request(url, action_name, options = {})
20
23
  @otel_method = ACTION_NAMES_TO_HTTP_METHODS[action_name]
21
24
  super
@@ -42,7 +45,7 @@ module OpenTelemetry
42
45
  @otel_span.status = OpenTelemetry::Trace::Status.error("Request has failed: #{message}")
43
46
  else
44
47
  @otel_span.set_attribute('http.status_code', response_code)
45
- @otel_span.status = OpenTelemetry::Trace::Status.error unless (100..399).cover?(response_code.to_i)
48
+ @otel_span.status = OpenTelemetry::Trace::Status.error unless HTTP_STATUS_SUCCESS_RANGE.cover?(response_code.to_i)
46
49
  end
47
50
  ensure
48
51
  @otel_span&.finish
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Ethon
10
- VERSION = '0.21.8'
10
+ VERSION = '0.21.9'
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-ethon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.8
4
+ version: 0.21.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-24 00:00:00.000000000 Z
11
+ date: 2024-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -114,28 +114,28 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.65.0
117
+ version: 1.68.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.65.0
124
+ version: 1.68.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rubocop-performance
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '1.20'
131
+ version: 1.23.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: '1.20'
138
+ version: 1.23.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: simplecov
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -186,10 +186,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
186
186
  licenses:
187
187
  - Apache-2.0
188
188
  metadata:
189
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-ethon/0.21.8/file/CHANGELOG.md
189
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-ethon/0.21.9/file/CHANGELOG.md
190
190
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/ethon
191
191
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
192
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-ethon/0.21.8
192
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-ethon/0.21.9
193
193
  post_install_message:
194
194
  rdoc_options: []
195
195
  require_paths: