Sha256: ea4f9d40203f6a52589ba45ee8f7c2329038f7829850f38ff01bf983bc7710f5

Contents?: true

Size: 489 Bytes

Versions: 8

Compression:

Stored size: 489 Bytes

Contents

module Skylight
  module Normalizers
    module Grape
      class EndpointRunFilters < Endpoint
        register "endpoint_run_filters.grape"

        CAT = "app.grape.filters".freeze

        def normalize(_trace, _name, payload)
          filters = payload[:filters]
          type = payload[:type]

          if (!filters || filters.empty?) || !type
            return :skip
          end

          [CAT, "#{type.to_s.capitalize} Filters", nil]
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
skylight-5.1.0.beta lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-5.0.1 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-5.0.0 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-5.0.0.beta5 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-5.0.0.beta4 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-5.0.0.beta3 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-5.0.0.beta2 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-5.0.0.beta lib/skylight/normalizers/grape/endpoint_run_filters.rb