Sha256: 61f0b1c90158af93ea45b85b54371cc0b608cc817a0df4265a3eb516d5e5082c
Contents?: true
Size: 585 Bytes
Versions: 40
Compression:
Stored size: 585 Bytes
Contents
module Skylight module Normalizers module Grape class EndpointRender < Endpoint register "endpoint_render.grape" CAT = "app.grape.endpoint".freeze def normalize(trace, name, payload) if endpoint = payload[:endpoint] path = get_path(endpoint) namespace = get_namespace(endpoint) method = get_method(endpoint) title = [method, namespace, path].join(' ').gsub(/\s+/, ' ') [CAT, title, nil] else :skip end end end end end end
Version data entries
40 entries across 40 versions & 1 rubygems