Sha256: e62f5c10f4c8f12766845b1c71412924a9decd8dcf6cc0289b2543dbe0b17775

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

module RailsCloudTasks
  module Instrumentation
    class NewRelic
      def transaction_name!(opts)
        agent.set_transaction_name(*opts)
      end

      def add_custom_attributes(custom_attributes)
        agent.add_custom_attributes(custom_attributes)
      end

      def agent
        @agent ||= ::NewRelic::Agent
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-cloud-tasks-0.0.10 lib/rails_cloud_tasks/instrumentation/new_relic.rb