opentelemetry-instrumentation-active_support 0.5.1 → 0.5.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: 8155a18f410f16b78236effec355ced0afde41f28fcadbd5ce784de094905452
4
- data.tar.gz: a9460a310301f3aabcf5676236435bbaf097241dbe930c711a96c73cb95c988b
3
+ metadata.gz: 15bdb28b45d8b0dfab7ad69153b8e0a6af3c6569a55278f75c409ecc6459d0fb
4
+ data.tar.gz: b8e85520ac481e488ba47b70810512fc346576354de4e37d5ed492624636b05f
5
5
  SHA512:
6
- metadata.gz: 007fef18454feed53b827dd3058b8911153d0e9835fcedb0d2c658230d911e552979386f404324e6c94efb5fcce087180073ce5ca761d53dee1c28392e8f6636
7
- data.tar.gz: f6a86aec5dda8669c2ead5a05a254203cf957cd6332f448d0f9d4bc10e7065562b4a1c4057031c68bf4090c43f2d86d5d8ec0daa22bdd59f67518c12ccf9797a
6
+ metadata.gz: dada81d63cb0cd45dc50d1c5a80b6ab708f2a1e7f21e4d5c3b45a0b3628f4ac52cdf5225c9877aa4466aa19353bd934079254b6451f919610370e7b8041cfc1e
7
+ data.tar.gz: e1944614599d427560609810766dea450d1cb1d660b7d2ed86b9c1a2a9dd0e90d58e5435686474ab80e5f80907f2ac1a29100f784b28c969610bd576f6736f43
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release History: opentelemetry-instrumentation-active_support
2
2
 
3
+ ### v0.5.3 / 2024-06-20
4
+
5
+ * FIXED: Include span kind in ActiveSupport Instrumentation helper
6
+
7
+ ### v0.5.2 / 2024-06-20
8
+
9
+ * ADDED: ActiveSupport user specified span kind
10
+
3
11
  ### v0.5.1 / 2023-11-23
4
12
 
5
13
  * CHANGED: Applied Rubocop Performance Recommendations [#727](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/727)
@@ -19,13 +19,15 @@ module OpenTelemetry
19
19
  tracer,
20
20
  pattern,
21
21
  notification_payload_transform = nil,
22
- disallowed_notification_payload_keys = []
22
+ disallowed_notification_payload_keys = [],
23
+ kind: nil
23
24
  )
24
25
  subscriber = OpenTelemetry::Instrumentation::ActiveSupport::SpanSubscriber.new(
25
26
  name: pattern,
26
27
  tracer: tracer,
27
28
  notification_payload_transform: notification_payload_transform,
28
- disallowed_notification_payload_keys: disallowed_notification_payload_keys
29
+ disallowed_notification_payload_keys: disallowed_notification_payload_keys,
30
+ kind: kind
29
31
  )
30
32
 
31
33
  subscriber_object = ::ActiveSupport::Notifications.subscribe(pattern, subscriber)
@@ -55,15 +57,16 @@ module OpenTelemetry
55
57
  class SpanSubscriber
56
58
  ALWAYS_VALID_PAYLOAD_TYPES = [TrueClass, FalseClass, String, Numeric, Symbol].freeze
57
59
 
58
- def initialize(name:, tracer:, notification_payload_transform: nil, disallowed_notification_payload_keys: [])
60
+ def initialize(name:, tracer:, notification_payload_transform: nil, disallowed_notification_payload_keys: [], kind: nil)
59
61
  @span_name = name.split('.')[0..1].reverse.join(' ').freeze
60
62
  @tracer = tracer
61
63
  @notification_payload_transform = notification_payload_transform
62
64
  @disallowed_notification_payload_keys = disallowed_notification_payload_keys
65
+ @kind = kind || :internal
63
66
  end
64
67
 
65
68
  def start(name, id, payload)
66
- span = @tracer.start_span(@span_name, kind: :internal)
69
+ span = @tracer.start_span(@span_name, kind: @kind)
67
70
  token = OpenTelemetry::Context.attach(
68
71
  OpenTelemetry::Trace.context_with_span(span)
69
72
  )
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module ActiveSupport
10
- VERSION = '0.5.1'
10
+ VERSION = '0.5.3'
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-active_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.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-11-23 00:00:00.000000000 Z
11
+ date: 2024-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -184,28 +184,28 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 1.56.1
187
+ version: 1.64.0
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.56.1
194
+ version: 1.64.0
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: rubocop-performance
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: 1.19.1
201
+ version: '1.20'
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: 1.19.1
208
+ version: '1.20'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: simplecov
211
211
  requirement: !ruby/object:Gem::Requirement
@@ -269,10 +269,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
269
269
  licenses:
270
270
  - Apache-2.0
271
271
  metadata:
272
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_support/0.5.1/file/CHANGELOG.md
272
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_support/0.5.3/file/CHANGELOG.md
273
273
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/active_support
274
274
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
275
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_support/0.5.1
275
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_support/0.5.3
276
276
  post_install_message:
277
277
  rdoc_options: []
278
278
  require_paths: