Sha256: 45c575e9c1c517044b0ad727268c8260df774f5961595e3c84ec0d3eac61654d

Contents?: true

Size: 849 Bytes

Versions: 2

Compression:

Stored size: 849 Bytes

Contents

# encoding: utf-8
# 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

module NewRelic::Agent::Instrumentation
  module Sinatra
    module Prepend
      include ::NewRelic::Agent::Instrumentation::Sinatra::Tracer

      def dispatch!
        dispatch_with_tracing { super }
      end

      def process_route(*args, &block)
        process_route_with_tracing(*args) { super }
      end

      def route_eval(*args, &block)
        route_eval_with_tracing(*args) { super }
      end
    end

    module Build
      module Prepend
        include ::NewRelic::Agent::Instrumentation::Sinatra::Tracer

        def build(*args, &block)
          build_with_tracing(*args) { super }
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
newrelic_rpm-8.10.1 lib/new_relic/agent/instrumentation/sinatra/prepend.rb
newrelic_rpm-8.10.0 lib/new_relic/agent/instrumentation/sinatra/prepend.rb