opentelemetry-instrumentation-ethon 0.24.1 → 0.24.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c301d820e7c508a72b9108b948f7f4c6091c24bd1089365bd7f858b3d04bc8c
4
- data.tar.gz: 8026be209bb3161e9c6d5dd7b905aaf05b11c9eac2e2e07846f250fbe7071a36
3
+ metadata.gz: 16d849c09165616b85fc397ea91f9a9f31dc51db8d9d68f798bb7ea1a9f7233a
4
+ data.tar.gz: aaf50d54cacfd867f6e08db70c37733705723d7bfebf96534aebd79b988f82e6
5
5
  SHA512:
6
- metadata.gz: f1e9622263a591e11437d7f775d7d41be2db9d1f5b7c0ad019e6d951ef35e4e82b103c962cd3814266ec3fa75ef269c5119d3e0e4f6682b4a5bcc776f45fa7bb
7
- data.tar.gz: 8f72990d13f54e7548705f4153df12dc79efad55ffbc01ee1387b98db708793b4e3349f0a6ebeaff578f7799a668be8c904ae9b607020f9b46cd8f1d36ac7a14
6
+ metadata.gz: 4981c11e3e68eed261361187ab90ec95ce50f0430d7ac065f10e9b6cba3300e531b0023fb43d282a1782c601811857e2bc56c0c25b15b46786bf95f3b30e5e61
7
+ data.tar.gz: 4faed89708b77c0b2df49b04ad8d2c32fe2e5ed64f2efaf0908477d86ddbe41e9b3d6089b5e2d75117e02011841230eded5cf9c9260e00f5b792e3748df90a92
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-ethon
2
2
 
3
+ ### v0.24.2 / 2025-10-14
4
+
5
+ * FIXED: Raise original Ethon error after span updates
6
+
3
7
  ### v0.24.1 / 2025-09-30
4
8
 
5
9
  * FIXED: Min OTel Ruby API 1.7
data/README.md CHANGED
@@ -10,7 +10,7 @@ Install the gem using:
10
10
  gem install opentelemetry-instrumentation-ethon
11
11
  ```
12
12
 
13
- Or, if you use [bundler][bundler-home], include `opentelemetry-instrumentation-ethon` to your `Gemfile`.
13
+ Or, if you use [bundler][bundler-home], include `opentelemetry-instrumentation-ethon` in your `Gemfile`.
14
14
 
15
15
  ## Usage
16
16
 
@@ -39,10 +39,13 @@ module OpenTelemetry
39
39
  otel_before_request
40
40
  super
41
41
  rescue StandardError => e
42
- # If an exception occurs before we can call `complete`, we should add and error status and close the span
42
+ # If an exception occurs before we can call `complete`
43
+ # we should add an error status and close the span
44
+ # and raise the original error
43
45
  @otel_span&.status = OpenTelemetry::Trace::Status.error("Request threw an exception: #{e.message}")
44
46
  @otel_span&.finish
45
47
  @otel_span = nil
48
+ raise e
46
49
  end
47
50
 
48
51
  def complete
@@ -36,10 +36,13 @@ module OpenTelemetry
36
36
  otel_before_request
37
37
  super
38
38
  rescue StandardError => e
39
- # If an exception occurs before we can call `complete`, we should add and error status and close the span
39
+ # If an exception occurs before we can call `complete`
40
+ # we should add an error status and close the span
41
+ # and raise the original error
40
42
  @otel_span&.status = OpenTelemetry::Trace::Status.error("Request threw an exception: #{e.message}")
41
43
  @otel_span&.finish
42
44
  @otel_span = nil
45
+ raise e
43
46
  end
44
47
 
45
48
  def complete
@@ -39,10 +39,13 @@ module OpenTelemetry
39
39
  otel_before_request
40
40
  super
41
41
  rescue StandardError => e
42
- # If an exception occurs before we can call `complete`, we should add and error status and close the span
42
+ # If an exception occurs before we can call `complete`
43
+ # we should add an error status and close the span
44
+ # and raise the original error
43
45
  @otel_span&.status = OpenTelemetry::Trace::Status.error("Request threw an exception: #{e.message}")
44
46
  @otel_span&.finish
45
47
  @otel_span = nil
48
+ raise e
46
49
  end
47
50
 
48
51
  def complete
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Ethon
10
- VERSION = '0.24.1'
10
+ VERSION = '0.24.2'
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.24.1
4
+ version: 0.24.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-01 00:00:00.000000000 Z
11
+ date: 2025-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-instrumentation-base
@@ -48,10 +48,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
48
48
  licenses:
49
49
  - Apache-2.0
50
50
  metadata:
51
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-ethon/0.24.1/file/CHANGELOG.md
51
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-ethon/0.24.2/file/CHANGELOG.md
52
52
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/ethon
53
53
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
54
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-ethon/0.24.1
54
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-ethon/0.24.2
55
55
  post_install_message:
56
56
  rdoc_options: []
57
57
  require_paths: