File tree Expand file tree Collapse file tree
lib/fast_jsonapi/instrumentation Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ require 'fast_jsonapi/instrumentation/skylight/normalizers/serializable_hash'
2+ require 'fast_jsonapi/instrumentation/skylight/normalizers/serialized_json'
Original file line number Diff line number Diff line change 1+ require 'skylight'
2+ require 'fast_jsonapi/instrumentation/serializable_hash'
3+
4+ module FastJsonapi
5+ module Instrumentation
6+ module Skylight
7+ module Normalizers
8+ class SerializableHash < Skylight ::Normalizers ::Normalizer
9+
10+ register FastJsonapi ::ObjectSerializer ::SERIALIZABLE_HASH_NOTIFICATION
11+
12+ CAT = "view.#{ FastJsonapi ::ObjectSerializer ::SERIALIZABLE_HASH_NOTIFICATION } " . freeze
13+
14+ def normalize ( trace , name , payload )
15+ [ CAT , payload [ :name ] , nil ]
16+ end
17+
18+ end
19+ end
20+ end
21+ end
22+ end
Original file line number Diff line number Diff line change 1+ require 'skylight'
2+ require 'fast_jsonapi/instrumentation/serializable_hash'
3+
4+ module FastJsonapi
5+ module Instrumentation
6+ module Skylight
7+ module Normalizers
8+ class SerializedJson < Skylight ::Normalizers ::Normalizer
9+
10+ register FastJsonapi ::ObjectSerializer ::SERIALIZED_JSON_NOTIFICATION
11+
12+ CAT = "view.#{ FastJsonapi ::ObjectSerializer ::SERIALIZED_JSON_NOTIFICATION } " . freeze
13+
14+ def normalize ( trace , name , payload )
15+ [ CAT , payload [ :name ] , nil ]
16+ end
17+
18+ end
19+ end
20+ end
21+ end
22+ end
You can’t perform that action at this time.
0 commit comments