23 lines
597 B
Ruby
23 lines
597 B
Ruby
require 'fast_jsonapi/instrumentation/skylight/normalizers/base'
|
|
require 'fast_jsonapi/instrumentation/serializable_hash'
|
|
|
|
module FastJsonapi
|
|
module Instrumentation
|
|
module Skylight
|
|
module Normalizers
|
|
class SerializableHash < SKYLIGHT_NORMALIZER_BASE_CLASS
|
|
|
|
register FastJsonapi::ObjectSerializer::SERIALIZABLE_HASH_NOTIFICATION
|
|
|
|
CAT = "view.#{FastJsonapi::ObjectSerializer::SERIALIZABLE_HASH_NOTIFICATION}".freeze
|
|
|
|
def normalize(trace, name, payload)
|
|
[ CAT, payload[:name], nil ]
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|