Sha256: 8b95e68d8e218d11cdf5a3cd8457e67a360f075c9ad8967b0eacad771ab4e9fc

Contents?: true

Size: 714 Bytes

Versions: 4

Compression:

Stored size: 714 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'new_relic/agent/datastores/mongo/metric_translator'

module NewRelic
  module Agent
    module Datastores
      module Mongo
        module MetricGenerator
          def self.generate_metrics_for(name, payload)
            if NewRelic::Agent::Transaction.recording_web_transaction?
              request_type = :web
            else
              request_type = :other
            end

            NewRelic::Agent::Datastores::Mongo::MetricTranslator.metrics_for(name, payload, request_type)
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
newrelic_rpm-3.7.2.190.beta lib/new_relic/agent/datastores/mongo/metric_generator.rb
newrelic_rpm-3.7.1.188 lib/new_relic/agent/datastores/mongo/metric_generator.rb
newrelic_rpm-3.7.1.182 lib/new_relic/agent/datastores/mongo/metric_generator.rb
newrelic_rpm-3.7.1.180 lib/new_relic/agent/datastores/mongo/metric_generator.rb