Sha256: 998fa902b7baca2df294e3a86bec33cc8e96a46f067fb25d432e5e2ceefbdf1a

Contents?: true

Size: 488 Bytes

Versions: 40

Compression:

Stored size: 488 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

40 entries across 40 versions & 1 rubygems

Version Path
skylight-1.7.2 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.7.1 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.7.0 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.6.1 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.6.0 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.5.1 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.5.0 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.4.4 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.4.3 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.4.2 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.4.1 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.4.0 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.4.0.beta.2 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.4.0.beta lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.3.1 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.3.0 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.2.2 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.2.1 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.2.0 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.1.0 lib/skylight/normalizers/grape/endpoint_run_filters.rb