opentelemetry-instrumentation-active_support 0.4.1 → 0.4.3

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: 10cc3d1761d4077b46ae784f4379d4a491ac2f72017504de0ac6c12f1a943d86
4
- data.tar.gz: 5cb9fed3409a250568bef5cb9defc9a65e1f531e9e36dc7047fb5e79f62146cd
3
+ metadata.gz: d434dcacb053fbc80fd50dcbe5696cfa66faabcf2a76a941c5dd52f84de310e2
4
+ data.tar.gz: 3fb535ec6c52dec4ec4d6fc0643bd1a8ed5023529bfbb37c034c2b5b5a931b40
5
5
  SHA512:
6
- metadata.gz: fa1d19ac9738cbf151631bf82fecd188e6ec4b5639995b97d7cfad43855f0f0fd4b89cc42157f568fb73e01b33e94bbab8cd7323feadde6514cbca17e6bcead3
7
- data.tar.gz: e7954c3bf9218638310112f3b79cb684973ffb288418e70ba70193e01f1928ff35221c8cad13bde35f0a0fdbc990b0614891093ce0281958ec3139fd75078544
6
+ metadata.gz: eee7e6875c9d830739331dd6a9f2a978f722e8a42e7f7eb3835a58194f1e3fd638b859fcbe173c4348c4b9b3a5c018c09bc61ec40c070ffaabfe898991d9b4e5
7
+ data.tar.gz: bb789e89cbb0dcde291d320f6655c5aab1ce00406131909442c2ab3236ab4a23025b911491ce738db7b4501d58410e3a42380f196d2fc7cbc3c8ecd1665c9bcd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release History: opentelemetry-instrumentation-active_support
2
2
 
3
+ ### v0.4.3 / 2023-10-16
4
+
5
+ * FIXED: Add Rails 7.1 compatibility
6
+
7
+ ### v0.4.2 / 2023-09-07
8
+
9
+ FIXED: Reduce Object allocation
10
+
3
11
  ### v0.4.1 / 2023-06-05
4
12
 
5
13
  * FIXED: Base config options
@@ -76,11 +76,11 @@ module OpenTelemetry
76
76
  token = payload.delete(:__opentelemetry_ctx_token)
77
77
  return unless span && token
78
78
 
79
- payload = transform_payload(payload)
80
- attrs = payload.map do |k, v|
81
- [k.to_s, sanitized_value(v)] if valid_payload_key?(k) && valid_payload_value?(v)
79
+ attrs = transform_payload(payload).each_with_object({}) do |(k, v), accum|
80
+ accum[k.to_s] = sanitized_value(v) if valid_payload_key?(k) && valid_payload_value?(v)
82
81
  end
83
- span.add_attributes(attrs.compact.to_h)
82
+
83
+ span.add_attributes(attrs)
84
84
 
85
85
  if (e = payload[:exception_object])
86
86
  span.record_exception(e)
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module ActiveSupport
10
- VERSION = '0.4.1'
10
+ VERSION = '0.4.3'
11
11
  end
12
12
  end
13
13
  end
@@ -15,5 +15,5 @@ module OpenTelemetry
15
15
  end
16
16
  end
17
17
 
18
- require_relative './active_support/instrumentation'
19
- require_relative './active_support/version'
18
+ require_relative 'active_support/instrumentation'
19
+ require_relative 'active_support/version'
@@ -16,4 +16,4 @@ module OpenTelemetry
16
16
  end
17
17
  end
18
18
 
19
- require_relative './instrumentation/active_support'
19
+ require_relative 'instrumentation/active_support'
@@ -4,4 +4,4 @@
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
7
- require_relative './opentelemetry/instrumentation'
7
+ require_relative 'opentelemetry/instrumentation'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-instrumentation-active_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-05 00:00:00.000000000 Z
11
+ date: 2023-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.2.0
61
+ version: '2.5'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 2.2.0
68
+ version: '2.5'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 1.50.2
187
+ version: 1.56.1
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: 1.50.2
194
+ version: 1.56.1
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: simplecov
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -212,14 +212,14 @@ dependencies:
212
212
  requirements:
213
213
  - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: 3.7.6
215
+ version: '3.19'
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - "~>"
221
221
  - !ruby/object:Gem::Version
222
- version: 3.7.6
222
+ version: '3.19'
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: yard
225
225
  requirement: !ruby/object:Gem::Requirement
@@ -234,20 +234,6 @@ dependencies:
234
234
  - - "~>"
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0.9'
237
- - !ruby/object:Gem::Dependency
238
- name: yard-doctest
239
- requirement: !ruby/object:Gem::Requirement
240
- requirements:
241
- - - "~>"
242
- - !ruby/object:Gem::Version
243
- version: 0.1.6
244
- type: :development
245
- prerelease: false
246
- version_requirements: !ruby/object:Gem::Requirement
247
- requirements:
248
- - - "~>"
249
- - !ruby/object:Gem::Version
250
- version: 0.1.6
251
237
  description: ActiveSupport instrumentation for the OpenTelemetry framework
252
238
  email:
253
239
  - cncf-opentelemetry-contributors@lists.cncf.io
@@ -269,10 +255,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
269
255
  licenses:
270
256
  - Apache-2.0
271
257
  metadata:
272
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_support/0.4.1/file/CHANGELOG.md
258
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_support/0.4.3/file/CHANGELOG.md
273
259
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/active_support
274
260
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
275
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_support/0.4.1
261
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_support/0.4.3
276
262
  post_install_message:
277
263
  rdoc_options: []
278
264
  require_paths: