mergeTime.deriveMetric(Sensor.all); this.getAllWeightSensors().put(SessionProfiler.Merge, mergeTime); jtsAferCompletion.deriveMetric(Sensor.all); this.getAllWeightSensors().put(SessionProfiler.JtsAfterCompletion, jtsAferCompletion); jtsBeforeCompletion.deriveMetric(Sensor.all); this.getAllWeightSensors().put(SessionProfiler.JtsBeforeCompletion, jtsBeforeCompletion); uowRegister.deriveMetric(Sensor.all); this.getAllWeightSensors().put(SessionProfiler.Register, uowRegister); distributedMerge.deriveMetric(Sensor.all); this.getAllWeightSensors().put(SessionProfiler.DistributedMerge, distributedMerge); sequence.deriveMetric(Sensor.all); this.getAllWeightSensors().put(SessionProfiler.AssignSequence, sequence); cache.deriveMetric(Sensor.all); this.getAllWeightSensors().put(CACHE, cache); dbConnect.deriveMetric(Sensor.all); this.getAllWeightSensors().put(CONNECT, dbConnect); logging.deriveMetric(Sensor.all); this.getAllWeightSensors().put(SessionProfiler.Logging, logging); descriptorEvent.deriveMetric(Sensor.all); this.getAllWeightSensors().put(SessionProfiler.DescriptorEvent, descriptorEvent);
mergeTime.deriveMetric(Sensor.all); this.getAllWeightSensors().put(SessionProfiler.Merge, mergeTime); jtsAferCompletion.deriveMetric(Sensor.all); this.getAllWeightSensors().put(SessionProfiler.JtsAfterCompletion, jtsAferCompletion); jtsBeforeCompletion.deriveMetric(Sensor.all); this.getAllWeightSensors().put(SessionProfiler.JtsBeforeCompletion, jtsBeforeCompletion); uowRegister.deriveMetric(Sensor.all); this.getAllWeightSensors().put(SessionProfiler.Register, uowRegister); distributedMerge.deriveMetric(Sensor.all); this.getAllWeightSensors().put(SessionProfiler.DistributedMerge, distributedMerge); sequence.deriveMetric(Sensor.all); this.getAllWeightSensors().put(SessionProfiler.AssignSequence, sequence); cache.deriveMetric(Sensor.all); this.getAllWeightSensors().put(CACHE, cache); dbConnect.deriveMetric(Sensor.all); this.getAllWeightSensors().put(CONNECT, dbConnect); logging.deriveMetric(Sensor.all); this.getAllWeightSensors().put(SessionProfiler.Logging, logging); descriptorEvent.deriveMetric(Sensor.all); this.getAllWeightSensors().put(SessionProfiler.DescriptorEvent, descriptorEvent);
uowCommit.deriveMetric(Sensor.all); getHeavyWeightSensors().put(SessionProfiler.UowCommit, uowCommit); Event uowCommits = Event.create(transactionNoun, SessionProfiler.UowCommits, DMSLocalization.buildMessage("unitofwork_commits")); connectionPing.deriveMetric(Sensor.all); this.getAllWeightSensors().put(SessionProfiler.ConnectionPing, connectionPing);
uowCommit.deriveMetric(Sensor.all); getHeavyWeightSensors().put(SessionProfiler.UowCommit, uowCommit); Event uowCommits = Event.create(transactionNoun, SessionProfiler.UowCommits, DMSLocalization.buildMessage("unitofwork_commits")); connectionPing.deriveMetric(Sensor.all); this.getAllWeightSensors().put(SessionProfiler.ConnectionPing, connectionPing);