opentelemetry-instrumentation-ethon 0.21.7 → 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: 766a82dc1adc280bb20809695eb98451bb49cffc5c3d22d175afbc2c475d4501
4
- data.tar.gz: 20416ffea76c3efe1605cfbafb65039b2be80a5eca180f5a9d316b78d340d8c6
3
+ metadata.gz: 78968a2ac9f7d6c0b9d1b2976f8a52c848d64fcb189bf24879370f0c7f7221db
4
+ data.tar.gz: 285e222e108cc6849e9c8978d33acfddf77c8b677d8d8d275e991ced18cd5e77
5
5
  SHA512:
6
- metadata.gz: c2d8f5f7a01c3e914f11ce8870569a8287093c6748fe7719174fc561e7c281f62cf94ac488a8b2871ffa05255f14bc366ff81701e2560f71b1c68eec4dbfea43
7
- data.tar.gz: 8a75e0e5feefdfbe1fe72802bd57c7542bdef99a5892811ace90886d42b489376f088e4cf34c537f67e87a132beabcdf981f138d56b50773e3fa9ac1b582fff3
6
+ metadata.gz: 98db02a9ca090e6b803e7aa6de10564dc3fef731d7ca595a2adc50720cee65295acb5eddab15347963c633a3fa7db0dff99a70112e42d3dcfd86b7ccadeeb2aa
7
+ data.tar.gz: 1df05dfc5e845005e1acae8d2e6d51810a020f9d3f118469e506ed6d80d360eb9ca151bb3149bf4950ebf40280657df812e7517e0cae1da61b120288eb308a36
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.21.8 / 2024-07-23
8
+
9
+ * DOCS: Add cspell to CI
10
+
3
11
  ### v0.21.7 / 2024-06-18
4
12
 
5
13
  * FIXED: Relax otel common gem constraints
@@ -72,7 +80,7 @@
72
80
 
73
81
  ### v0.18.0 / 2021-05-21
74
82
 
75
- * ADDED: Updated API depedency for 1.0.0.rc1
83
+ * ADDED: Updated API dependency for 1.0.0.rc1
76
84
 
77
85
  ### v0.17.0 / 2021-04-22
78
86
 
@@ -128,7 +136,7 @@
128
136
  ### v0.7.0 / 2020-10-07
129
137
 
130
138
  * DOCS: Add README for Ethon
131
- * DOCS: Standardize toplevel docs structure and readme
139
+ * DOCS: Standardize top-level docs structure and readme
132
140
 
133
141
  ### v0.6.0 / 2020-09-10
134
142
 
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.7'
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.7
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-06-18 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.64.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.64.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.7/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.7
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: