Sha256: 738c9953bfc0e718d27a72159910d1ebeb38b8887ee8f2a08ae0b07d9ecf90b3
Contents?: true
Size: 1.14 KB
Versions: 4
Compression:
Stored size: 1.14 KB
Contents
module ManageEngine module Tracker class DefaultTracker attr_accessor :name, :error, :endtime, :starttime def initialize(name = "unknonwn", time = ManageEngine::APMObjectHolder.instance.util.currenttimemillis) @starttime = time.to_i @name = ManageEngine::APMObjectHolder.instance.txn_util.normalizeName(name) @logger = ManageEngine::APMObjectHolder.instance.log end def finish(time = ManageEngine::APMObjectHolder.instance.util.currenttimemillis) @endtime = time.to_i end def error? @error != nil end def setError(exception) @error = exception end def setName(context) @name = context end def duration (@endtime - @starttime).to_i end def to_s @name end def getAdditionalInfo if error? {ManageEngine::APMObjectHolder.instance.constants.mf_exception_st => ManageEngine::APMObjectHolder.instance.util.formatStacktrace(@error.backtrace)} else nil end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems