# File lib/new_relic/agent/instrumentation/action_view_subscriber.rb, line 62
          def metric_path(name, identifier)
            # Rails 5 sets identifier to nil for empty collections,
            # so do not mistake rendering a collection for rendering a file.
            if identifier == nil && name != RENDER_COLLECTION_EVENT_NAME
              'file'
            elsif identifier =~ /template$/
              identifier
            elsif identifier && (parts = identifier.split('/')).size > 1
              parts[-2..-1].join('/')
            else
              ::NewRelic::Agent::UNKNOWN_METRIC
            end
          end