Sha256: 78775f97c2fb96f6631ed7319ba54676f3cd73e5ad262e55d008647f96555feb
Contents?: true
Size: 989 Bytes
Versions: 28
Compression:
Stored size: 989 Bytes
Contents
module Skylight module Normalizers module Coach class MiddlewareFinish < Normalizer begin require "coach/version" version = Gem::Version.new(::Coach::VERSION) rescue LoadError # rubocop:disable Lint/SuppressedException end if version && version < Gem::Version.new("1.0") register "coach.middleware.finish" else register "finish_middleware.coach" end CAT = "app.coach.middleware".freeze # See information on the events Coach emits here: # https://github.com/gocardless/coach#instrumentation # Called whenever a new middleware is executed. We can expect this to happen # within a Coach::Handler. # # We can expect the payload to have the :middleware key. def normalize(trace, _name, payload) trace.endpoint = payload[:middleware] [CAT, payload[:middleware], nil] end end end end end
Version data entries
28 entries across 28 versions & 1 rubygems