diff --git a/lib/new_relic/agent/configuration/default_source.rb b/lib/new_relic/agent/configuration/default_source.rb index 797655fe90..c7056415b3 100644 --- a/lib/new_relic/agent/configuration/default_source.rb +++ b/lib/new_relic/agent/configuration/default_source.rb @@ -130,8 +130,10 @@ def self.framework ::NewRelic::Agent.logger.warn("Detected untested Rails version #{Rails::VERSION::STRING}") :rails_notifications end + when defined?(::Padrino) && defined?(::Padrino::PathRouter::Router) then :padrino when defined?(::Sinatra) && defined?(::Sinatra::Base) then :sinatra when defined?(::Roda) then :roda + when defined?(::Grape) then :grape when defined?(::NewRelic::IA) then :external else :ruby end diff --git a/lib/new_relic/control/frameworks/grape.rb b/lib/new_relic/control/frameworks/grape.rb new file mode 100644 index 0000000000..b6cbb93a7c --- /dev/null +++ b/lib/new_relic/control/frameworks/grape.rb @@ -0,0 +1,14 @@ +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. +# frozen_string_literal: true + +require 'new_relic/control/frameworks/ruby' +module NewRelic + class Control + module Frameworks + # Contains basic control logic for Grape + class Grape < NewRelic::Control::Frameworks::Ruby + end + end + end +end diff --git a/lib/new_relic/control/frameworks/padrino.rb b/lib/new_relic/control/frameworks/padrino.rb new file mode 100644 index 0000000000..1a5b75c0eb --- /dev/null +++ b/lib/new_relic/control/frameworks/padrino.rb @@ -0,0 +1,14 @@ +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. +# frozen_string_literal: true + +require 'new_relic/control/frameworks/sinatra' +module NewRelic + class Control + module Frameworks + # Contains basic control logic for Padrino + class Padrino < NewRelic::Control::Frameworks::Sinatra + end + end + end +end