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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec2fef0a9be40896dd4037d9136ed54191450ecf1ccba2f0d0951cf2662ff2bb
|
4
|
+
data.tar.gz: 6316b2619c5be32d7809886f7cec29823ec5e2d0540dea9d888850ea81a0a014
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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
|
)
|
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.
|
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:
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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:
|