opentelemetry-instrumentation-net_http 0.28.0 → 0.29.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: e00a6b4c4bbb252a2de6b684c92a1ee795ff093f90e4a78c92531952b12ec20b
4
- data.tar.gz: 31143899e71925865b825d865b18bc5131494ffe708a4258fa4d10a71e33614b
3
+ metadata.gz: 02a3be5d6fb9479bbb5cc4c7e440214d49dde5b962ef37ce0a50016063284146
4
+ data.tar.gz: 81272a50229497ce11663b203a971be657b2735625113f46efd9e548c90f41e8
5
5
  SHA512:
6
- metadata.gz: 074a27e1cdb249da3207f2963d2b989abb92ac6a0d554a47a4dfba39623962ce7f4c5785377096a27957eff5354aae3cb1a1dfeed20d240a955677021c737f95
7
- data.tar.gz: db493c52e928e60c519f4f0a09e566c5c45b1a5cac1bb5f60db2b04aca800200e5b6390c237030e53ee3483fb32724f624d8a8252bc219cfae117f489c93930f
6
+ metadata.gz: d36d6791940c617a460049079163d5a2abb77de584641f26e36d2f27811743b36341354ac6ee44383443f2083793362fda5f64593a1b2472afcc777aa6694b85
7
+ data.tar.gz: 797fd212861854421b91754947e7ac138158041f376106b4de0f7e6e24dae6d0e467dc696d84b9352f964954f10b3a6e17d64cab55bcdfa6c2290e047318464f
data/CHANGELOG.md CHANGED
@@ -1,176 +1,186 @@
1
1
  # Release History: opentelemetry-instrumentation-net_http
2
2
 
3
- ### v0.28.0 / 2026-03-17
3
+ ## v0.29.1 / 2026-09-15
4
4
 
5
- * BREAKING CHANGE: Default to stable HTTP semantic conventions (#2051)
6
- * ADDED: Default to stable HTTP semantic conventions (#2051)
5
+ - FIXED: Omit nil attributes on spans (#2558)
7
6
 
8
- ### v0.27.0 / 2026-01-13
7
+ ## v0.29.0 / 2026-04-14
9
8
 
10
- * ADDED: HTTP Client Semconv v1.17 Span Naming
9
+ - BREAKING CHANGE: Min Ruby Version 3.3 (#2125)
10
+ - ADDED: Min Ruby Version 3.3 (#2125)
11
+ - ADDED: Add release tag into source code url of gem metadata (#1984)
11
12
 
12
- ### v0.26.1 / 2025-11-25
13
+ ## v0.28.0 / 2026-03-17
13
14
 
14
- * FIXED: Update support for unknown HTTP methods to match semantic conventions
15
+ - BREAKING CHANGE: Default to stable HTTP semantic conventions (#2051)
16
+ - ADDED: Default to stable HTTP semantic conventions (#2051)
15
17
 
16
- ### v0.26.0 / 2025-10-22
18
+ ## v0.27.0 / 2026-01-13
17
19
 
18
- * BREAKING CHANGE: Min Ruby Version 3.2
19
- * ADDED: Min Ruby Version 3.2
20
+ - ADDED: HTTP Client Semconv v1.17 Span Naming
20
21
 
21
- ### v0.25.1 / 2025-09-30
22
+ ## v0.26.1 / 2025-11-25
22
23
 
23
- * FIXED: Min OTel Ruby API 1.7
24
+ - FIXED: Update support for unknown HTTP methods to match semantic conventions
24
25
 
25
- ### v0.25.0 / 2025-09-30
26
+ ## v0.26.0 / 2025-10-22
26
27
 
27
- * ADDED: Bump minimum API Version to 1.7
28
+ - BREAKING CHANGE: Min Ruby Version 3.2
29
+ - ADDED: Min Ruby Version 3.2
28
30
 
29
- ### v0.24.0 / 2025-08-26
31
+ ## v0.25.1 / 2025-09-30
30
32
 
31
- * ADDED: Add `OTEL_SEMCONV_STABILITY_OPT_IN` environment variable compatibility [#1572](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/1572)
33
+ - FIXED: Min OTel Ruby API 1.7
32
34
 
33
- ### v0.23.1 / 2025-08-13
35
+ ## v0.25.0 / 2025-09-30
34
36
 
35
- * FIXED: net_http and aws_sdk ci fix
37
+ - ADDED: Bump minimum API Version to 1.7
36
38
 
37
- ### v0.23.0 / 2025-01-16
39
+ ## v0.24.0 / 2025-08-26
38
40
 
39
- * BREAKING CHANGE: Set minimum supported version to Ruby 3.1
40
- * ADDED: Set minimum supported version to Ruby 3.1
41
+ - ADDED: Add `OTEL_SEMCONV_STABILITY_OPT_IN` environment variable compatibility [#1572](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/1572)
41
42
 
42
- ### v0.22.8 / 2024-11-26
43
+ ## v0.23.1 / 2025-08-13
43
44
 
44
- * CHANGED: Performance Freeze all range objects #1222
45
+ - FIXED: net_http and aws_sdk ci fix
45
46
 
46
- ### v0.22.7 / 2024-07-23
47
+ ## v0.23.0 / 2025-01-16
47
48
 
48
- * DOCS: Add cspell to CI
49
+ - BREAKING CHANGE: Set minimum supported version to Ruby 3.1
50
+ - ADDED: Set minimum supported version to Ruby 3.1
49
51
 
50
- ### v0.22.6 / 2024-06-18
52
+ ## v0.22.8 / 2024-11-26
51
53
 
52
- * FIXED: Relax otel common gem constraints
54
+ - CHANGED: Performance Freeze all range objects #1222
53
55
 
54
- ### v0.22.5 / 2024-05-09
56
+ ## v0.22.7 / 2024-07-23
55
57
 
56
- * FIXED: Untrace entire request
58
+ - DOCS: Add cspell to CI
57
59
 
58
- ### v0.22.4 / 2023-11-23
60
+ ## v0.22.6 / 2024-06-18
59
61
 
60
- * CHANGED: Applied Rubocop Performance Recommendations [#727](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/727)
62
+ - FIXED: Relax otel common gem constraints
61
63
 
62
- ### v0.22.3 / 2023-11-22
64
+ ## v0.22.5 / 2024-05-09
63
65
 
64
- * FIXED: Update `Net::HTTP` instrumentation to no-op on untraced contexts
66
+ - FIXED: Untrace entire request
65
67
 
66
- ### v0.22.2 / 2023-07-21
68
+ ## v0.22.4 / 2023-11-23
67
69
 
68
- * ADDED: Update `opentelemetry-common` from [0.19.3 to 0.20.0](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/537)
70
+ - CHANGED: Applied Rubocop Performance Recommendations [#727](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/727)
69
71
 
70
- ### v0.22.1 / 2023-06-05
72
+ ## v0.22.3 / 2023-11-22
71
73
 
72
- * FIXED: Base config options
74
+ - FIXED: Update `Net::HTTP` instrumentation to no-op on untraced contexts
73
75
 
74
- ### v0.22.0 / 2023-04-17
76
+ ## v0.22.2 / 2023-07-21
75
77
 
76
- * BREAKING CHANGE: Drop support for EoL Ruby 2.7
77
- * ADDED: Drop support for EoL Ruby 2.7
78
- * FIXED: Drop Rails dependency for ActiveSupport Instrumentation
78
+ - ADDED: Update `opentelemetry-common` from [0.19.3 to 0.20.0](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/537)
79
79
 
80
- ### v0.21.1 / 2023-01-14
80
+ ## v0.22.1 / 2023-06-05
81
81
 
82
- * FIXED: Add untraced check to the Net::HTTP connect instrumentation
83
- * DOCS: Fix gem homepage
84
- * DOCS: More gem documentation fixes
82
+ - FIXED: Base config options
85
83
 
86
- ### v0.21.0 / 2022-10-04
84
+ ## v0.22.0 / 2023-04-17
87
85
 
88
- * ADDED: Add Net::HTTP :untraced_hosts option
89
- * FIXED: Rename HTTP CONNECT for low level connection spans
86
+ - BREAKING CHANGE: Drop support for EoL Ruby 2.7
87
+ - ADDED: Drop support for EoL Ruby 2.7
88
+ - FIXED: Drop Rails dependency for ActiveSupport Instrumentation
90
89
 
91
- ### v0.20.0 / 2022-06-09
90
+ ## v0.21.1 / 2023-01-14
92
91
 
93
- * Upgrading Base dependency version
94
- * FIXED: Broken test file requirements
92
+ - FIXED: Add untraced check to the Net::HTTP connect instrumentation
93
+ - DOCS: Fix gem homepage
94
+ - DOCS: More gem documentation fixes
95
95
 
96
- ### v0.19.5 / 2022-05-05
96
+ ## v0.21.0 / 2022-10-04
97
97
 
98
- * (No significant changes)
98
+ - ADDED: Add Net::HTTP :untraced_hosts option
99
+ - FIXED: Rename HTTP CONNECT for low level connection spans
99
100
 
100
- ### v0.19.4 / 2022-02-02
101
+ ## v0.20.0 / 2022-06-09
101
102
 
102
- * FIXED: Client Context attrs overwrite in net::http
103
- * FIXED: Excessive hash creation on context attr merging
103
+ - Upgrading Base dependency version
104
+ - FIXED: Broken test file requirements
104
105
 
105
- ### v0.19.3 / 2021-12-01
106
+ ## v0.19.5 / 2022-05-05
106
107
 
107
- * FIXED: Change net attribute names to match the semantic conventions spec for http
108
+ - (No significant changes)
108
109
 
109
- ### v0.19.2 / 2021-09-29
110
+ ## v0.19.4 / 2022-02-02
110
111
 
111
- * (No significant changes)
112
+ - FIXED: Client Context attrs overwrite in net::http
113
+ - FIXED: Excessive hash creation on context attr merging
112
114
 
113
- ### v0.19.1 / 2021-08-12
115
+ ## v0.19.3 / 2021-12-01
114
116
 
115
- * DOCS: Update docs to rely more on environment variable configuration
117
+ - FIXED: Change net attribute names to match the semantic conventions spec for http
116
118
 
117
- ### v0.19.0 / 2021-06-23
119
+ ## v0.19.2 / 2021-09-29
118
120
 
119
- * BREAKING CHANGE: Total order constraint on span.status=
120
- * FIXED: Total order constraint on span.status=
121
+ - (No significant changes)
121
122
 
122
- ### v0.18.0 / 2021-05-21
123
+ ## v0.19.1 / 2021-08-12
123
124
 
124
- * ADDED: Updated API dependency for 1.0.0.rc1
125
+ - DOCS: Update docs to rely more on environment variable configuration
125
126
 
126
- ### v0.17.0 / 2021-04-22
127
+ ## v0.19.0 / 2021-06-23
127
128
 
128
- * FIXED: Refactor propagators to add #fields
129
+ - BREAKING CHANGE: Total order constraint on span.status=
130
+ - FIXED: Total order constraint on span.status=
129
131
 
130
- ### v0.16.0 / 2021-03-17
132
+ ## v0.18.0 / 2021-05-21
131
133
 
132
- * FIXED: Example scripts now reference local common lib
133
- * DOCS: Replace Gitter with GitHub Discussions
134
+ - ADDED: Updated API dependency for 1.0.0.rc1
134
135
 
135
- ### v0.15.0 / 2021-02-18
136
+ ## v0.17.0 / 2021-04-22
136
137
 
137
- * ADDED: Add Net::HTTP#connect tracing
138
+ - FIXED: Refactor propagators to add #fields
138
139
 
139
- ### v0.14.0 / 2021-02-03
140
+ ## v0.16.0 / 2021-03-17
140
141
 
141
- * BREAKING CHANGE: Replace getter and setter callables and remove rack specific propagators
142
- * ADDED: Replace getter and setter callables and remove rack specific propagators
142
+ - FIXED: Example scripts now reference local common lib
143
+ - DOCS: Replace Gitter with GitHub Discussions
143
144
 
144
- ### v0.13.0 / 2021-01-29
145
+ ## v0.15.0 / 2021-02-18
145
146
 
146
- * (No significant changes)
147
+ - ADDED: Add Net::HTTP#connect tracing
147
148
 
148
- ### v0.12.0 / 2020-12-24
149
+ ## v0.14.0 / 2021-02-03
149
150
 
150
- * (No significant changes)
151
+ - BREAKING CHANGE: Replace getter and setter callables and remove rack specific propagators
152
+ - ADDED: Replace getter and setter callables and remove rack specific propagators
151
153
 
152
- ### v0.11.0 / 2020-12-11
154
+ ## v0.13.0 / 2021-01-29
153
155
 
154
- * FIXED: Copyright comments to not reference year
156
+ - (No significant changes)
155
157
 
156
- ### v0.10.0 / 2020-12-03
158
+ ## v0.12.0 / 2020-12-24
157
159
 
158
- * (No significant changes)
160
+ - (No significant changes)
159
161
 
160
- ### v0.9.0 / 2020-11-27
162
+ ## v0.11.0 / 2020-12-11
161
163
 
162
- * ADDED: Add common helpers
164
+ - FIXED: Copyright comments to not reference year
163
165
 
164
- ### v0.8.0 / 2020-10-27
166
+ ## v0.10.0 / 2020-12-03
165
167
 
166
- * BREAKING CHANGE: Remove 'canonical' from status codes
167
- * FIXED: Remove 'canonical' from status codes
168
+ - (No significant changes)
168
169
 
169
- ### v0.7.0 / 2020-10-07
170
+ ## v0.9.0 / 2020-11-27
170
171
 
171
- * DOCS: Added documentation for net_http gem in instrumentation
172
- * DOCS: Standardize top-level docs structure and readme
172
+ - ADDED: Add common helpers
173
173
 
174
- ### v0.6.0 / 2020-09-10
174
+ ## v0.8.0 / 2020-10-27
175
175
 
176
- * (No significant changes)
176
+ - BREAKING CHANGE: Remove 'canonical' from status codes
177
+ - FIXED: Remove 'canonical' from status codes
178
+
179
+ ## v0.7.0 / 2020-10-07
180
+
181
+ - DOCS: Added documentation for net_http gem in instrumentation
182
+ - DOCS: Standardize top-level docs structure and readme
183
+
184
+ ## v0.6.0 / 2020-09-10
185
+
186
+ - (No significant changes)
@@ -30,7 +30,7 @@ module OpenTelemetry
30
30
  OpenTelemetry::SemanticConventions::Trace::NET_PEER_NAME => @address,
31
31
  OpenTelemetry::SemanticConventions::Trace::NET_PEER_PORT => @port, 'url.scheme' => USE_SSL_TO_SCHEME[use_ssl?],
32
32
  'server.address' => @address,
33
- 'server.port' => @port }
33
+ 'server.port' => @port }.compact
34
34
  path, query = split_path_and_query(req.path)
35
35
  attributes['url.path'] = path
36
36
  attributes['url.query'] = query if query
@@ -68,7 +68,7 @@ module OpenTelemetry
68
68
  OpenTelemetry::SemanticConventions::Trace::NET_PEER_PORT => conn_port,
69
69
  'server.address' => conn_address,
70
70
  'server.port' => conn_port
71
- }.merge!(OpenTelemetry::Common::HTTP::ClientContext.attributes)
71
+ }.compact.merge!(OpenTelemetry::Common::HTTP::ClientContext.attributes)
72
72
 
73
73
  if use_ssl? && proxy?
74
74
  span_name = 'CONNECT'
@@ -28,7 +28,7 @@ module OpenTelemetry
28
28
  attributes = { OpenTelemetry::SemanticConventions::Trace::HTTP_SCHEME => USE_SSL_TO_SCHEME[use_ssl?],
29
29
  OpenTelemetry::SemanticConventions::Trace::HTTP_TARGET => req.path,
30
30
  OpenTelemetry::SemanticConventions::Trace::NET_PEER_NAME => @address,
31
- OpenTelemetry::SemanticConventions::Trace::NET_PEER_PORT => @port }.merge!(span_data.attributes)
31
+ OpenTelemetry::SemanticConventions::Trace::NET_PEER_PORT => @port }.compact.merge!(span_data.attributes)
32
32
 
33
33
  tracer.in_span(
34
34
  span_data.span_name,
@@ -59,7 +59,7 @@ module OpenTelemetry
59
59
  attributes = {
60
60
  OpenTelemetry::SemanticConventions::Trace::NET_PEER_NAME => conn_address,
61
61
  OpenTelemetry::SemanticConventions::Trace::NET_PEER_PORT => conn_port
62
- }.merge!(OpenTelemetry::Common::HTTP::ClientContext.attributes)
62
+ }.compact.merge!(OpenTelemetry::Common::HTTP::ClientContext.attributes)
63
63
 
64
64
  if use_ssl? && proxy?
65
65
  span_name = 'HTTP CONNECT'
@@ -27,7 +27,7 @@ module OpenTelemetry
27
27
 
28
28
  attributes = { 'url.scheme' => USE_SSL_TO_SCHEME[use_ssl?],
29
29
  'server.address' => @address,
30
- 'server.port' => @port }
30
+ 'server.port' => @port }.compact
31
31
  path, query = split_path_and_query(req.path)
32
32
  attributes['url.path'] = path
33
33
  attributes['url.query'] = query if query
@@ -63,7 +63,7 @@ module OpenTelemetry
63
63
  attributes = {
64
64
  'server.address' => conn_address,
65
65
  'server.port' => conn_port
66
- }.merge!(OpenTelemetry::Common::HTTP::ClientContext.attributes)
66
+ }.compact.merge!(OpenTelemetry::Common::HTTP::ClientContext.attributes)
67
67
 
68
68
  if use_ssl? && proxy?
69
69
  span_name = 'CONNECT'
@@ -8,7 +8,7 @@ module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Net
10
10
  module HTTP
11
- VERSION = '0.28.0'
11
+ VERSION = '0.29.1'
12
12
  end
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-instrumentation-net_http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0
4
+ version: 0.29.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
@@ -47,10 +47,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
47
47
  licenses:
48
48
  - Apache-2.0
49
49
  metadata:
50
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-net_http/0.28.0/file/CHANGELOG.md
51
- source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/net_http
50
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-net_http/0.29.1/file/CHANGELOG.md
51
+ source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/opentelemetry-instrumentation-net_http/v0.29.1/instrumentation/net_http
52
52
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
53
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-net_http/0.28.0
53
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-net_http/0.29.1
54
54
  rdoc_options: []
55
55
  require_paths:
56
56
  - lib
@@ -58,14 +58,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '3.2'
61
+ version: '3.3'
62
62
  required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  requirements:
64
64
  - - ">="
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
67
  requirements: []
68
- rubygems_version: 4.0.3
68
+ rubygems_version: 4.0.16
69
69
  specification_version: 4
70
70
  summary: Net::HTTP instrumentation for the OpenTelemetry framework
71
71
  test_files: []