lib/new_relic/agent/transaction/segment.rb in newrelic_rpm-4.2.0.334 vs lib/new_relic/agent/transaction/segment.rb in newrelic_rpm-4.3.0.335
- old
+ new
@@ -11,12 +11,12 @@
# unscoped_metrics can be nil, a string, or array. we do this to save
# object allocations. if allocations weren't important then we would
# initialize it as an array that would be empty, have one item, or many items.
attr_reader :unscoped_metrics
- def initialize name = nil, unscoped_metrics=nil
+ def initialize name=nil, unscoped_metrics=nil, start_time=nil
@unscoped_metrics = unscoped_metrics
- super name
+ super name, start_time
end
def record_metrics
if record_scoped_metric?
metric_cache.record_scoped_and_unscoped name, duration, exclusive_duration