opentelemetry-instrumentation-ethon 0.23.0 → 0.23.1

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: 8bbbe66773c8fce6953073cbd3abc9ed960cedc72dab5d23b58681f2970b6d1f
4
- data.tar.gz: 1decc400420cc2a26de71704e789a91dbd1db8a264fb105f1f6cb62bb3f26be6
3
+ metadata.gz: c84a22f816b0575721fa9e501efc78f58af6e15e968ed83faf8c0cf546833783
4
+ data.tar.gz: 8a19d873db4b6ea144cbbc187e319476a8aaddfc58be35ae4507df999cfe775a
5
5
  SHA512:
6
- metadata.gz: 4977551e5520240c119eca62427f21e493b35f48e3033e370517679ad21050187a4352468944f590ee62cc25aaa7e5d55ee51eb239fd457ce5408dcdd0de7493
7
- data.tar.gz: 6c35ebff6e824bbc848db16c7094906fe2b36d3756583d899164c809b91fe6951c1b74b1095169b96a347b245933e4b6bf8a9fae3507d29d7093111c45d64116
6
+ metadata.gz: e69933909862ca50e1c0ecc8845d4ae9625e3f03c6a67487a43c82447144478a30dbf36dc0f0f5a678c6868016c7f54188ce07ebae3d9b0c0309fc969c20129b
7
+ data.tar.gz: 36cd30785a9ff5f6e422b35ae6b1213c5d85d3f84087bfe05cf1cb8826e755b3fb95a16f3ba7aff70e060c434c1fb115c29b75472ff3174ddd4a8bb59fe13b59
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Release History: opentelemetry-instrumentation-ethon
2
2
 
3
- ### v0.23.0 / 2025-07-29
3
+ ### v0.23.1 / 2025-09-02
4
+
5
+ * FIXED: Improve Ethon exception handling
6
+
7
+ ### v0.23.0 / 2025-08-13
4
8
 
5
9
  * ADDED: Add Ethon `OTEL_SEMCONV_STABILITY_OPT_IN` environment variable [#1561](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/1561)
6
10
 
@@ -44,23 +48,23 @@
44
48
 
45
49
  ### v0.21.1 / 2023-06-05
46
50
 
47
- * FIXED: Base config options
51
+ * FIXED: Base config options
48
52
 
49
53
  ### v0.21.0 / 2023-04-17
50
54
 
51
- * BREAKING CHANGE: Drop support for EoL Ruby 2.7
55
+ * BREAKING CHANGE: Drop support for EoL Ruby 2.7
52
56
 
53
- * ADDED: Drop support for EoL Ruby 2.7
57
+ * ADDED: Drop support for EoL Ruby 2.7
54
58
 
55
59
  ### v0.20.1 / 2023-01-14
56
60
 
57
- * DOCS: Fix gem homepage
58
- * DOCS: More gem documentation fixes
61
+ * DOCS: Fix gem homepage
62
+ * DOCS: More gem documentation fixes
59
63
 
60
64
  ### v0.20.0 / 2022-06-09
61
65
 
62
66
  * Upgrading Base dependency version
63
- * FIXED: Broken test file requirements
67
+ * FIXED: Broken test file requirements
64
68
 
65
69
  ### v0.19.5 / 2022-05-05
66
70
 
@@ -68,7 +72,7 @@
68
72
 
69
73
  ### v0.19.4 / 2022-02-02
70
74
 
71
- * FIXED: Excessive hash creation on context attr merging
75
+ * FIXED: Excessive hash creation on context attr merging
72
76
 
73
77
  ### v0.19.3 / 2021-12-02
74
78
 
@@ -80,13 +84,13 @@
80
84
 
81
85
  ### v0.19.1 / 2021-08-12
82
86
 
83
- * DOCS: Update docs to rely more on environment variable configuration
87
+ * DOCS: Update docs to rely more on environment variable configuration
84
88
 
85
89
  ### v0.19.0 / 2021-06-23
86
90
 
87
- * BREAKING CHANGE: Total order constraint on span.status=
91
+ * BREAKING CHANGE: Total order constraint on span.status=
88
92
 
89
- * FIXED: Total order constraint on span.status=
93
+ * FIXED: Total order constraint on span.status=
90
94
 
91
95
  ### v0.18.0 / 2021-05-21
92
96
 
@@ -38,6 +38,11 @@ module OpenTelemetry
38
38
  def perform
39
39
  otel_before_request
40
40
  super
41
+ rescue StandardError => e
42
+ # If an exception occurs before we can call `complete`, we should add and error status and close the span
43
+ @otel_span&.status = OpenTelemetry::Trace::Status.error("Request threw an exception: #{e.message}")
44
+ @otel_span&.finish
45
+ @otel_span = nil
41
46
  end
42
47
 
43
48
  def complete
@@ -35,6 +35,11 @@ module OpenTelemetry
35
35
  def perform
36
36
  otel_before_request
37
37
  super
38
+ rescue StandardError => e
39
+ # If an exception occurs before we can call `complete`, we should add and error status and close the span
40
+ @otel_span&.status = OpenTelemetry::Trace::Status.error("Request threw an exception: #{e.message}")
41
+ @otel_span&.finish
42
+ @otel_span = nil
38
43
  end
39
44
 
40
45
  def complete
@@ -38,6 +38,11 @@ module OpenTelemetry
38
38
  def perform
39
39
  otel_before_request
40
40
  super
41
+ rescue StandardError => e
42
+ # If an exception occurs before we can call `complete`, we should add and error status and close the span
43
+ @otel_span&.status = OpenTelemetry::Trace::Status.error("Request threw an exception: #{e.message}")
44
+ @otel_span&.finish
45
+ @otel_span = nil
41
46
  end
42
47
 
43
48
  def complete
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Ethon
10
- VERSION = '0.23.0'
10
+ VERSION = '0.23.1'
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.23.0
4
+ version: 0.23.1
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-08-13 00:00:00.000000000 Z
11
+ date: 2025-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -62,10 +62,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
62
62
  licenses:
63
63
  - Apache-2.0
64
64
  metadata:
65
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-ethon/0.23.0/file/CHANGELOG.md
65
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-ethon/0.23.1/file/CHANGELOG.md
66
66
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/ethon
67
67
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
68
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-ethon/0.23.0
68
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-ethon/0.23.1
69
69
  post_install_message:
70
70
  rdoc_options: []
71
71
  require_paths: