Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yoones/6f7c031142e8e7898d946f1539ce2522 to your computer and use it in GitHub Desktop.
Save yoones/6f7c031142e8e7898d946f1539ce2522 to your computer and use it in GitHub Desktop.
commit 78260d5663702f153f6bae64073f9659de366946
commit 78260d5663702f153f6bae64073f9659de366946
Author: Younes SERRAJ <[email protected]>
Date: Wed Apr 17 19:25:46 2019 +0200
Mention more ActiveStorage hooks in Active Support Instrumentation guide [ci skip]
Hooks added:
- `service_download_chunk.active_storage`
- `service_update_metadata.active_storage`
- `preview.active_storage`
diff --git a/guides/source/active_support_instrumentation.md b/guides/source/active_support_instrumentation.md
index e5ed283c45..4868b00bbe 100644
--- a/guides/source/active_support_instrumentation.md
+++ b/guides/source/active_support_instrumentation.md
@@ -545,6 +545,14 @@ Active Storage
| `:key` | Secure token |
| `:service` | Name of the service |
+### service_download_chunk.active_storage
+
+| Key | Value |
+| ------------ | ------------------------------- |
+| `:key` | Secure token |
+| `:service` | Name of the service |
+| `:range` | Byte range attempted to be read |
+
### service_download.active_storage
| Key | Value |
@@ -582,6 +590,23 @@ Active Storage
| `:service` | Name of the service |
| `:url` | Generated URL |
+### service_update_metadata.active_storage
+
+| Key | Value |
+| --------------- | ------------------------------ |
+| `:key` | Secure token |
+| `:service` | Name of the service |
+| `:content_type` | HTTP Content-Type field |
+| `:disposition` | HTTP Content-Disposition field |
+
+INFO. The only ActiveStorage service that provides this hook so far is GCS.
+
+### preview.active_storage
+
+| Key | Value |
+| ------------ | ------------------- |
+| `:key` | Secure token |
+
Railties
--------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment