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.0.1 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.0.0 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-0.10.6 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.0.0.beta5 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-0.10.5 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-0.10.4 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.0.0.beta4 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.0.0.beta3 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-0.10.3 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-0.10.2 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-1.0.0.beta2 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-0.10.0 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-0.9.4 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-0.9.3 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-0.9.2 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-0.9.1 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-0.9.0 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-0.8.1 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-0.8.0 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-0.8.0.beta.3 lib/skylight/normalizers/grape/endpoint_run_filters.rb