You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -244,6 +244,36 @@ object_method_name | Set custom method name to get related objects | ```has_many
244
244
record_type | Set custom Object Type for a relationship | ```belongs_to :owner, record_type: :user```
245
245
serializer | Set custom Serializer for a relationship | ```has_many :actors, serializer: :custom_actor```
246
246
247
+
### Instrumentation
248
+
249
+
`fast_jsonapi` also has builtin [Skylight](https://www.skylight.io/) integration. To enable, add the following to an initializer:
250
+
251
+
```ruby
252
+
require'fast_jsonapi/instrumentation/skylight'
253
+
```
254
+
255
+
Skylight relies on `ActiveSupport::Notifications` to track these two core methods. If you would like to use these notifications without using Skylight, simply require the instrumentation integration:
256
+
257
+
```ruby
258
+
require'fast_jsonapi/instrumentation'
259
+
```
260
+
261
+
The two instrumented notifcations are supplied by these two constants:
0 commit comments