Sha256: 12d6c915df3f307dfa7deee3082b9372361f3daf74d3374f6db54aa885072f4a

Contents?: true

Size: 1.51 KB

Versions: 5

Compression:

Stored size: 1.51 KB

Contents

# encoding: utf-8

module OneApm
  class Transaction

    SUBTRANSACTION_PREFIX        = 'Nested/'.freeze
    CONTROLLER_PREFIX            = 'Controller/'.freeze
    MIDDLEWARE_PREFIX            = 'Middleware/Rack/'.freeze
    TASK_PREFIX                  = 'OtherTransaction/Background/'.freeze
    RACK_PREFIX                  = 'Controller/Rack/'.freeze
    SINATRA_PREFIX               = 'Controller/Sinatra/'.freeze
    GRAPE_PREFIX                 = 'Controller/Grape/'.freeze
    OTHER_TRANSACTION_PREFIX     = 'OtherTransaction/'.freeze

    CONTROLLER_MIDDLEWARE_PREFIX = 'Controller/Middleware/Rack'.freeze

    WEB_SUMMARY_METRIC   = 'HttpDispatcher'.freeze
    OTHER_SUMMARY_METRIC = 'OtherTransaction/all'.freeze

    APDEX_S = 'S'.freeze
    APDEX_T = 'T'.freeze
    APDEX_F = 'F'.freeze
    APDEX_METRIC = 'Apdex'.freeze

    QUEUE_TIME_METRIC = 'WebFrontend/QueueTime'.freeze

    NESTED_TRACE_STOP_OPTIONS    = { :metric => true }.freeze
    WEB_TRANSACTION_CATEGORIES   = [:controller, :uri, :rack, :sinatra, :grape, :middleware].freeze
    TRANSACTION_NAMING_SOURCES   = [:child, :api].freeze

    MIDDLEWARE_SUMMARY_METRICS   = ['Middleware/all'.freeze].freeze
    EMPTY_SUMMARY_METRICS        = [].freeze

    TRACE_OPTIONS_SCOPED         = {:metric => true, :scoped_metric => true}.freeze
    TRACE_OPTIONS_UNSCOPED       = {:metric => true, :scoped_metric => false}.freeze

    UNKNOWN_METRIC = '(unknown)'.freeze

    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.2.0 lib/one_apm/transaction/metric_constants.rb
oneapm_rpm-1.1.3 lib/one_apm/transaction/metric_constants.rb
oneapm_rpm-1.1.2 lib/one_apm/transaction/metric_constants.rb
oneapm_rpm-1.1.1 lib/one_apm/transaction/metric_constants.rb
oneapm_rpm-1.1.0 lib/one_apm/transaction/metric_constants.rb