lib/contrast/framework/manager.rb in contrast-agent-5.3.0 vs lib/contrast/framework/manager.rb in contrast-agent-6.0.0

- old
+ new

@@ -123,20 +123,20 @@ # # @param request [Contrast::Agent::Request] the current request. # @return [Contrast::Api::Dtm::RouteCoverage] the current route as a Dtm. def get_route_dtm request @_frameworks.lazy.map { |framework_support| framework_support.current_route(request) }. - reject(&:nil?).first + reject(&:nil?).first # rubocop:disable Style/CollectionCompact end # Iterate through current frameworks and return the current request's route. This will be the first non-nil # result. # # @param request [Contrast::Agent::Request] the current request. # @return [Contrast::Agent::Reporting::RouteCoverage] the current route as a Dtm. def get_route_information request @_frameworks.lazy.map { |framework_support| framework_support.current_route_coverage(request) }. - reject(&:nil?).first + reject(&:nil?).first # rubocop:disable Style/CollectionCompact end # Sometimes the framework we want to instrument is loaded after our agent code. To catch that case, we'll detect # if the loaded_module is the marker class for any of our supported frameworks. If it is, and we don't already # have support enabled, we'll enable it now. We'll also need to catch up on any other startup actions that we've