Sha256: 8ecc4af277433475a9b17b4f0edbc0e89007856d7a39ec61b7ee4be2a4f8d9d8
Contents?: true
Size: 896 Bytes
Versions: 5
Compression:
Stored size: 896 Bytes
Contents
# typed: false require 'ddtrace/contrib/integration' require 'ddtrace/contrib/grape/configuration/settings' require 'ddtrace/contrib/grape/patcher' module Datadog module Contrib module Grape # Description of Grape integration class Integration include Contrib::Integration MINIMUM_VERSION = Gem::Version.new('1.0') register_as :grape, auto_patch: true def self.version Gem.loaded_specs['grape'] && Gem.loaded_specs['grape'].version end def self.loaded? !defined?(::Grape).nil? \ && !defined?(::ActiveSupport::Notifications).nil? end def self.compatible? super && version >= MINIMUM_VERSION end def default_configuration Configuration::Settings.new end def patcher Patcher end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems