opentelemetry-instrumentation-active_storage 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 14864466611a7ee620cdb3ccaed37b3206ec81292c00ae145eee6b9bd630ebf3
|
|
4
|
+
data.tar.gz: 8a3fbfaba1ca3690c4af8c1724b032f81914024e7f5961b8d28881a533ef9175
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b3d6a7d0055ce260be320af328478d3a59170b3a1520b3074f6c1ef994e966a65f533391e6744f1118a91767e0d30fb67d5f17201480ecb06496beac72cc182c
|
|
7
|
+
data.tar.gz: 7161dbb8ed07b082bee4e1fe78b8cbc54f30dcfc8ff2572f3a3cf0cc5d5f12b65fd59d3cfd6b0dacb6822e8f25ae69511b37b874c10198b76a081edc7b628868
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Release History: opentelemetry-instrumentation-active_storage
|
|
2
2
|
|
|
3
|
+
## v0.5.1 / 2026-06-02
|
|
4
|
+
|
|
5
|
+
- DOCS: Document payload-key and payload-transform options in action_mailer and active_storage READMEs (#2363)
|
|
6
|
+
|
|
7
|
+
## v0.5.0 / 2026-04-28
|
|
8
|
+
|
|
9
|
+
- BREAKING CHANGE: Min Rails 7.1 (enforced this time) (#2283)
|
|
10
|
+
- ADDED: Min Rails 7.1 (enforced this time) (#2283)
|
|
11
|
+
|
|
3
12
|
## v0.4.0 / 2026-04-14
|
|
4
13
|
|
|
5
14
|
- BREAKING CHANGE: Min Ruby Version 3.3 (#2125)
|
data/README.md
CHANGED
|
@@ -36,6 +36,32 @@ OpenTelemetry::SDK.configure do |c|
|
|
|
36
36
|
end
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
+
## Configuration Options
|
|
40
|
+
|
|
41
|
+
The instrumentation supports the following configuration options:
|
|
42
|
+
|
|
43
|
+
- **`disallowed_notification_payload_keys`:** Array of keys excluded from notification payloads before they are recorded as span attributes. Keys are matched against the payload after the `active_storage.` prefix has been applied (e.g. `active_storage.url`).
|
|
44
|
+
- Default: `[]`
|
|
45
|
+
- **`notification_payload_transform`:** Custom `proc` used to extract span attributes from notification payloads. The proc receives the payload after the built-in `active_storage.` prefix transform and must return a `Hash`. Use this to rename keys, extract nested values, or perform any other custom logic.
|
|
46
|
+
- Default: `nil`
|
|
47
|
+
- **`key`:** Whether to include the secure token (`active_storage.key`) as a span attribute. Valid values are `:omit` and `:include`. When set to `:omit`, the key is appended to `disallowed_notification_payload_keys`.
|
|
48
|
+
- Default: `:omit`
|
|
49
|
+
- **`url`:** Whether to include the URL (`active_storage.url`) as a span attribute. Valid values are `:omit` and `:include`. When set to `:omit`, the key is appended to `disallowed_notification_payload_keys`.
|
|
50
|
+
- Default: `:omit`
|
|
51
|
+
|
|
52
|
+
Example with all options set:
|
|
53
|
+
|
|
54
|
+
```ruby
|
|
55
|
+
OpenTelemetry::SDK.configure do |c|
|
|
56
|
+
c.use 'OpenTelemetry::Instrumentation::ActiveStorage', {
|
|
57
|
+
disallowed_notification_payload_keys: ['active_storage.checksum'],
|
|
58
|
+
notification_payload_transform: ->(payload) { payload },
|
|
59
|
+
key: :include,
|
|
60
|
+
url: :include,
|
|
61
|
+
}
|
|
62
|
+
end
|
|
63
|
+
```
|
|
64
|
+
|
|
39
65
|
## Active Support Instrumentation
|
|
40
66
|
|
|
41
67
|
This instrumentation relies entirely on `ActiveSupport::Notifications` and registers a custom Subscriber that listens to relevant events to report as spans.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: opentelemetry-instrumentation-active_storage
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenTelemetry Authors
|
|
@@ -44,10 +44,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
|
|
44
44
|
licenses:
|
|
45
45
|
- Apache-2.0
|
|
46
46
|
metadata:
|
|
47
|
-
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_storage/0.
|
|
48
|
-
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/opentelemetry-instrumentation-active_storage/v0.
|
|
47
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_storage/0.5.1/file/CHANGELOG.md
|
|
48
|
+
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/opentelemetry-instrumentation-active_storage/v0.5.1/instrumentation/active_storage
|
|
49
49
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
|
50
|
-
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_storage/0.
|
|
50
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_storage/0.5.1
|
|
51
51
|
rdoc_options: []
|
|
52
52
|
require_paths:
|
|
53
53
|
- lib
|
|
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
62
62
|
- !ruby/object:Gem::Version
|
|
63
63
|
version: '0'
|
|
64
64
|
requirements: []
|
|
65
|
-
rubygems_version: 4.0.
|
|
65
|
+
rubygems_version: 4.0.10
|
|
66
66
|
specification_version: 4
|
|
67
67
|
summary: ActiveStorage instrumentation for the OpenTelemetry framework
|
|
68
68
|
test_files: []
|