Sha256: 4fc01783f5cd5cebfc829562af40707366c89da8f77ef20976baa377bf500628

Contents?: true

Size: 463 Bytes

Versions: 20

Compression:

Stored size: 463 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]

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

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
skylight-6.1.0.beta lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-6.0.4 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-6.0.3 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-5.3.5 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-6.0.2 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-6.0.1 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-6.0.0 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-6.0.0.beta2 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-6.0.0.beta lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-5.3.4 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-5.3.3 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-5.3.2 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-5.3.1 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-5.3.0 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-5.2.0 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-5.2.0.beta2 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-5.2.0.beta lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-5.1.1 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-5.1.0.beta3 lib/skylight/normalizers/grape/endpoint_run_filters.rb
skylight-5.1.0.beta2 lib/skylight/normalizers/grape/endpoint_run_filters.rb