Sha256: 5db41ae8522f431a159b6e2c65aa48ed25f7fd4a811dccc385bb7412a118d143

Contents?: true

Size: 1.74 KB

Versions: 5

Compression:

Stored size: 1.74 KB

Contents

# encoding: utf-8

module OneApm
  class Transaction

    OA_SUBTRANSACTION_PREFIX        = 'Nested/'.freeze
    OA_CONTROLLER_PREFIX            = 'Controller/'.freeze
    OA_MIDDLEWARE_PREFIX            = 'Middleware/Rack/'.freeze
    OA_TASK_PREFIX                  = 'OtherTransaction/Background/'.freeze
    OA_RACK_PREFIX                  = 'WebTransaction/Rack/'.freeze
    OA_SINATRA_PREFIX               = 'WebTransaction/Sinatra/'.freeze
    OA_GRAPE_PREFIX                 = 'WebTransaction/Grape/'.freeze
    OA_OTHER_TRANSACTION_PREFIX     = 'OtherTransaction/'.freeze
    OA_WEB_TRANSACTION_PREFIX       = 'WebTransaction/'.freeze  

    OA_CONTROLLER_OA_MIDDLEWARE_PREFIX = 'Controller/Middleware/Rack'.freeze

    OA_WEB_SUMMARY_METRIC   = 'WebTransaction'.freeze
    OA_OTHER_SUMMARY_METRIC = 'OtherTransaction/all'.freeze

    OA_APDEX_S = 'S'.freeze
    OA_APDEX_T = 'T'.freeze
    OA_APDEX_F = 'F'.freeze
    OA_APDEX_METRIC = 'Apdex'.freeze

    OA_QUEUE_TIME_METRIC = 'WebFrontend/QueueTime'.freeze

    OA_NESTED_TRACE_STOP_OPTIONS    = { :metric => true }.freeze
    OA_WEB_TRANSACTION_CATEGORIES   = [:controller, :uri, :rack, :sinatra, :grape, :middleware].freeze
    OA_TRANSACTION_NAMING_SOURCES   = [:child, :api].freeze

    OA_MIDDLEWARE_SUMMARY_METRICS   = ['Middleware/all'.freeze].freeze
    OA_EMPTY_SUMMARY_METRICS        = [].freeze

    OA_TRACE_OPTIONS_SCOPED         = {:metric => true, :scoped_metric => true}.freeze
    OA_TRACE_OPTIONS_UNSCOPED       = {:metric => true, :scoped_metric => false}.freeze
    
    OA_TRACE_IGNORE_OPTIONS         = {:metric => false}.freeze
    
    OA_UNKNOWN_METRIC = '(unknown)'.freeze

    OA_FAILED_TO_STOP_MESSAGE = "Failed during Transaction.stop because there is no current transaction"

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
oneapm_rpm-1.4.2 lib/one_apm/transaction/metric_constants.rb
oneapm_rpm-1.4.1 lib/one_apm/transaction/metric_constants.rb
oneapm_rpm-1.4.0 lib/one_apm/transaction/metric_constants.rb
oneapm_rpm-1.3.7 lib/one_apm/transaction/metric_constants.rb
oneapm_rpm-1.3.7.rc1 lib/one_apm/transaction/metric_constants.rb