lib/new_relic/agent/transaction/segment.rb in newrelic_rpm-4.5.0.337 vs lib/new_relic/agent/transaction/segment.rb in newrelic_rpm-4.6.0.338
- old
+ new
@@ -16,10 +16,12 @@
def initialize name=nil, unscoped_metrics=nil, start_time=nil
@unscoped_metrics = unscoped_metrics
super name, start_time
end
+ private
+
def record_metrics
if record_scoped_metric?
metric_cache.record_scoped_and_unscoped name, duration, exclusive_duration
else
append_unscoped_metric name
@@ -27,12 +29,10 @@
if unscoped_metrics
metric_cache.record_unscoped unscoped_metrics, duration, exclusive_duration
end
end
- private
-
def append_unscoped_metric metric
if @unscoped_metrics
if Array === @unscoped_metrics
if unscoped_metrics.frozen?
@unscoped_metrics += [name]
@@ -46,10 +46,9 @@
@unscoped_metrics = metric
end
end
def segment_complete
- Agent.instance.transaction_sampler.add_node_parameters params if params?
end
end
end
end
end