Sha256: 65c34ef4c9ae59a1d68ea6d913715fed8aaf28e9fd2d917f300c5d05021e5daf

Contents?: true

Size: 745 Bytes

Versions: 73

Compression:

Stored size: 745 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.

module NewRelic
  module MetricParser
    class ORM < NewRelic::MetricParser::MetricParser
      module Hibernate
        def self.extended(base)
          if base.segments.length == 4
            base.extend JavaParser
            def base.full_class_name
              segment_2
            end
            def base.method_name
              segment_3
            end
          end
        end
      end

      def initialize(name)
        super

        if segment_1 == "Hibernate"
          self.extend NewRelic::MetricParser::ORM::Hibernate
        end
      end
    end
  end
end

Version data entries

73 entries across 73 versions & 2 rubygems

Version Path
newrelic_rpm-3.6.3.106 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb
newrelic_rpm-3.6.3.105.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb
newrelic_rpm-3.6.3.104 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb
newrelic_rpm-3.6.3.103.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb
newrelic_rpm-3.6.2.96 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb
newrelic_rpm-3.6.2.90.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb
newrelic_rpm-3.6.1.88 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb
newrelic_rpm-3.6.1.87 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb
newrelic_rpm-3.6.1.86.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb
newrelic_rpm-3.6.1.85.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb
newrelic_rpm-3.6.0.83 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb
newrelic_rpm-3.6.0.78 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb
newrelic_rpm-3.6.0.74.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb