Sha256: 25d5006a361b9d90820e6ef4410e78eab436cc9d639062bd8a9cc96ab7f49feb

Contents?: true

Size: 451 Bytes

Versions: 2

Compression:

Stored size: 451 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 Grape
    module Prepend
      def call(env)
        begin
          super(env)
        ensure
          Grape::Instrumentation.capture_transaction(env, self)
        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/grape/prepend.rb
newrelic_rpm-8.10.0 lib/new_relic/agent/instrumentation/grape/prepend.rb