Sha256: 746ae73de936fd5b3de3b160bd20395fe5f2bcef857b78601d157c2db76f86e7
Contents?: true
Size: 588 Bytes
Versions: 28
Compression:
Stored size: 588 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
28 entries across 28 versions & 1 rubygems