opentelemetry-instrumentation-active_support 0.5.0 → 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,13 @@
|
|
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
|
+
|
7
|
+
### v0.5.1 / 2023-11-23
|
8
|
+
|
9
|
+
* CHANGED: Applied Rubocop Performance Recommendations [#727](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/727)
|
10
|
+
|
3
11
|
### v0.5.0 / 2023-11-22
|
4
12
|
|
5
13
|
* BREAKING CHANGE: Drop Rails 6.0 EOL
|
@@ -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,22 +57,21 @@ 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
|
)
|
70
|
-
payload
|
71
|
-
|
72
|
-
__opentelemetry_ctx_token: token
|
73
|
-
)
|
73
|
+
payload[:__opentelemetry_span] = span
|
74
|
+
payload[:__opentelemetry_ctx_token] = token
|
74
75
|
|
75
76
|
[span, token]
|
76
77
|
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.
|
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,14 +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
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: rubocop-performance
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "~>"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '1.20'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "~>"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '1.20'
|
195
209
|
- !ruby/object:Gem::Dependency
|
196
210
|
name: simplecov
|
197
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -255,10 +269,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
|
255
269
|
licenses:
|
256
270
|
- Apache-2.0
|
257
271
|
metadata:
|
258
|
-
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
|
259
273
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/active_support
|
260
274
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
261
|
-
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
|
262
276
|
post_install_message:
|
263
277
|
rdoc_options: []
|
264
278
|
require_paths:
|