Sha256: b1ab4deda71b21f80e3bc657f3aab0804903725624e793edab1fc8d7a98fa202

Contents?: true

Size: 553 Bytes

Versions: 30

Compression:

Stored size: 553 Bytes

Contents

# encoding: utf-8

module OneApm
  class Transaction

    def summary_metrics
      if @frozen_name.start_with?(WEB_TRANSACTION_PREFIX)
        [WEB_SUMMARY_METRIC]
      else
        background_summary_metrics
      end
    end

    def background_summary_metrics
      segments = @frozen_name.split('/')
      if segments.size > 2
        ["OtherTransaction/#{segments[1]}/all", OTHER_SUMMARY_METRIC]
      else
        []
      end
    end

    def needs_middleware_summary_metrics?(name)
      name.start_with?(MIDDLEWARE_PREFIX)
    end

  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
oneapm_rpm-1.3.6 lib/one_apm/transaction/transaction_summary.rb
oneapm_rpm-1.3.6.rc1 lib/one_apm/transaction/transaction_summary.rb
oneapm_rpm-1.3.5 lib/one_apm/transaction/transaction_summary.rb
oneapm_rpm-1.3.5.rc1 lib/one_apm/transaction/transaction_summary.rb
oneapm_rpm-1.3.4 lib/one_apm/transaction/transaction_summary.rb
oneapm_rpm-1.3.4.rc1 lib/one_apm/transaction/transaction_summary.rb
oneapm_rpm-1.3.3 lib/one_apm/transaction/transaction_summary.rb
oneapm_rpm-1.3.3.rc1 lib/one_apm/transaction/transaction_summary.rb
oneapm_rpm-1.3.2 lib/one_apm/transaction/transaction_summary.rb
oneapm_rpm-1.3.2.rc1 lib/one_apm/transaction/transaction_summary.rb
oneapm_rpm-1.3.1 lib/one_apm/transaction/transaction_summary.rb
oneapm_rpm-1.3.1.rc1 lib/one_apm/transaction/transaction_summary.rb
oneapm_rpm-1.3.0 lib/one_apm/transaction/transaction_summary.rb
oneapm_rpm-1.3.0.rc1 lib/one_apm/transaction/transaction_summary.rb
oneapm_rpm-1.2.9 lib/one_apm/transaction/transaction_summary.rb
oneapm_rpm-1.2.9.rc1 lib/one_apm/transaction/transaction_summary.rb
oneapm_rpm-1.2.8 lib/one_apm/transaction/transaction_summary.rb
oneapm_rpm-1.2.8.rc1 lib/one_apm/transaction/transaction_summary.rb
oneapm_rpm-1.2.7 lib/one_apm/transaction/transaction_summary.rb
oneapm_rpm-1.2.7.rc1 lib/one_apm/transaction/transaction_summary.rb