opentelemetry-instrumentation-active_support 0.5.1 → 0.5.2

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: ec2fef0a9be40896dd4037d9136ed54191450ecf1ccba2f0d0951cf2662ff2bb
4
+ data.tar.gz: 6316b2619c5be32d7809886f7cec29823ec5e2d0540dea9d888850ea81a0a014
5
5
  SHA512:
6
- metadata.gz: 007fef18454feed53b827dd3058b8911153d0e9835fcedb0d2c658230d911e552979386f404324e6c94efb5fcce087180073ce5ca761d53dee1c28392e8f6636
7
- data.tar.gz: f6a86aec5dda8669c2ead5a05a254203cf957cd6332f448d0f9d4bc10e7065562b4a1c4057031c68bf4090c43f2d86d5d8ec0daa22bdd59f67518c12ccf9797a
6
+ metadata.gz: 8dac90c7b89cf0d8187edc753083d350594a0c24d5f47a7886916c7c1d694131527183a78a5caed186e58fcddf0af9590ce01ee28ec198edf22184112cc7ae5f
7
+ data.tar.gz: f36bdd1b69c72bb8eacf80e35e7b781fb6effa6693eba3c4e16ae0fd99e0a8527ee741d596297e156bdd3503a2e4c053b336cd0d72dab9ff52af6052f97c1bc9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-active_support
2
2
 
3
+ ### v0.5.2 / 2024-06-20
4
+
5
+ * ADDED: ActiveSupport user specified span kind
6
+
3
7
  ### v0.5.1 / 2023-11-23
4
8
 
5
9
  * 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: nil
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.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-active_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.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: 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.2/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.2
276
276
  post_install_message:
277
277
  rdoc_options: []
278
278
  require_paths: