mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 14:29:31 +00:00
20 lines
321 B
Markdown
20 lines
321 B
Markdown
# Instrumentation
|
|
|
|
ActiveModelSerializers uses the ActiveSupport::Notification API, which
|
|
allows for subscribing to events, such as for logging.
|
|
|
|
## Events
|
|
|
|
Name:
|
|
|
|
`render.active_model_serializers`
|
|
|
|
Payload (example):
|
|
|
|
```ruby
|
|
{
|
|
serializer: PostSerializer,
|
|
adapter: ActiveModel::Serializer::Adapter::Attributes
|
|
}
|
|
```
|